WHO Antenatal Care Guideline Implementation Guide
0.3.0 - CI Build International flag

WHO Antenatal Care Guideline Implementation Guide, published by World Health Organization (WHO). This guide is not an authorized publication; it is the continuous build for version 0.3.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/WorldHealthOrganization/smart-anc/ and changes regularly. See the Directory of published versions

Library: ANC Data Elements

Official URL: http://fhir.org/guides/who/anc-cds/Library/ANCDataElements Version: 0.3.0
Active as of 2024-09-10 Computable Name: ANCDataElements

The ANC Contact Data Elements library provides patient-scoped expressions for each data element in the ANC content. These expressions are referenced by the decision support and indicator logic to access clinical data elements scoped to the patient in context.

Id: ANCDataElements
Url: ANC Data Elements
Version: 0.3.0
Name: ANCDataElements
Title: ANC Data Elements
Status: active
Experimental: false
Type:

system: http://terminology.hl7.org/CodeSystem/library-type

code: logic-library

Date: 2024-09-10 13:23:00+0000
Publisher: World Health Organization (WHO)
Description: The ANC Contact Data Elements library provides patient-scoped expressions for each data element in the ANC content. These expressions are referenced by the decision support and indicator logic to access clinical data elements scoped to the patient in context.
Jurisdiction: 001
Related Artifacts:

Dependencies

Parameters:
NameTypeMinMaxIn/Out
PatientPatient01Out
Contact datedateTime0*Out
Reason for coming to facilityResource0*Out
ANC contact numberinteger0*Out
Unique identificationstring0*Out
First namestring0*Out
Last namestring0*Out
Date of birthdate0*Out
Addressstring0*Out
Mobile phone numberstring0*Out
Alternative contact's namestring01Out
Alternative contact's phone numberstring01Out
Woman wants to receive reminders during pregnancyboolean0*Out
Highest level of education achievedCodeableConcept0*Out
OccupationCodeableConcept0*Out
Co-habitantsCodeableConcept0*Out
Pregnancy confirmedObservation0*Out
Danger signsObservation0*Out
Specific health concern(s)Observation0*Out
Tetanus toxoid-containing vaccine (TTCV) immunization historyObservation0*Out
Flu immunization historyObservation0*Out
Current medicationsObservation0*Out
Daily caffeine intakeObservation0*Out
Last menstrual period (LMP) dateObservation0*Out
Clinical enquiry for alcohol and other substance use doneObservation0*Out
Current alcohol and/or other substance useObservation0*Out
Ultrasound doneObservation0*Out
Tobacco useObservation0*Out
Recently quit tobacco productsObservation0*Out
Exposure to second-hand smokeObservation0*Out
Partner HIV status (reported)Observation0*Out
Contraceptive use of male condomsboolean0*Out
Contraceptive use of female condomsboolean0*Out
Gestational ageObservation0*Out
Source of gestational ageObservation0*Out
Expected date of delivery (EDD)dateTime0*Out
Number of pregnancies (gravida)integer0*Out
Number of miscarriages and/or abortionsinteger0*Out
Number of live birthsinteger0*Out
Whether last live birth was pretermObservation0*Out
Number of stillbirthsinteger0*Out
Parityinteger0*Out
Number of caesarian sectionsinteger0*Out
Past pregnancy complicationsObservation0*Out
Substance use during past pregnancy specificationObservation0*Out
AllergiesObservation0*Out
Past surgeriesObservation0*Out
Existing chronic health conditionsObservation0*Out
HIV diagnosis dateCodeableConcept0*Out
Ultrasound dateProcedure0*Out
Ultrasound scan conductedProcedure0*Out
Medication follow-upObservation0*Out
Persistent physiological symptomsObservation0*Out
Current physiological symptomsObservation0*Out
Presenting signs and symptoms that trigger suspicion of IPV and clinical inquiryObservation0*Out
Woman discloses or is suspected to be subjected to intimate partner violenceCodeableConcept0*Out
Fetal movementObservation0*Out
Persistent behavioursObservation0*Out
Has the woman been subjected to intimate partner violenceObservation0*Out
HeightObservation0*Out
Expected weight gainObservation0*Out
Oedema severityObservation0*Out
Symphysis-fundal height (SFH)Observation0*Out
Fetal heartbeat presentObservation0*Out
Fetal heart rateObservation0*Out
Second fetal heart rateObservation0*Out
Number of fetusesObservation0*Out
Number of fetuses unknownObservation0*Out
Fetal presentationObservation0*Out
Presenting signs/conditions for IPVObservation0*Out
Clinical enquiry for IPVObservation0*Out
Reason clinical enquiry not doneObservation0*Out
Types of IPVObservation0*Out
Average weight gain per weekQuantity0*Out
Total weight gain (kg)Quantity0*Out
Systolic blood pressureObservation0*Out
Diastolic blood pressureObservation0*Out
Pre-gestational weightObservation0*Out
Repeat systolic blood pressureObservation0*Out
Repeat diastolic blood pressureObservation0*Out
Blood pressure cannot be takenObservation0*Out
Reason blood pressure cannot be takenObservation0*Out
Symptoms of severe pre-eclampsiaObservation0*Out
Current weightObservation0*Out
Body temperatureObservation0*Out
Second body temperatureObservation0*Out
Pulse rateObservation0*Out
Second pulse rateObservation0*Out
Pallor presentObservation0*Out
Respiratory exam resultObservation0*Out
BMIObservation0*Out
OximetryQuantity0*Out
Weight categoryObservation0*Out
Cardiac exam resultObservation0*Out
Breast exam resultObservation0*Out
Abdominal exam resultObservation0*Out
Pelvic exam result (visual)Observation0*Out
Cervical exam conductedObservation0*Out
Cervical dilationObservation0*Out
Oedema presentObservation0*Out
Oedema typeObservation0*Out
Ultrasound requiredObservation0*Out
Reason syphilis test not doneObservation0*Out
Syphilis test resultObservation0*Out
Syphilis diagnosisObservation0*Out
Urine test requiredObservation0*Out
Urine test orderedServiceRequest0*Out
Urine test typeObservation0*Out
Reason urine test not doneProcedure0*Out
Midstream urine culture (recommended)Observation0*Out
Midstream urine Gram-stainingObservation0*Out
Placenta locationObservation0*Out
Urine dipstick result - nitritesObservation0*Out
Urine dipstick result - leukocytesObservation0*Out
Urine dipstick result - proteinObservation0*Out
Urine dipstick result - glucoseObservation0*Out
Asymptomatic bacteriuria (ASB) diagnosisObservation0*Out
Blood glucose test orderedServiceRequest0*Out
Blood glucose test typeObservation0*Out
Fasting plasma glucoseObservation0*Out
75 g oral glucose tolerance test (OGTT) - fasting glucoseObservation0*Out
75 g oral glucose tolerance test (OGTT) - 1 hourObservation0*Out
75 g oral glucose tolerance test (OGTT) - 2 hoursObservation0*Out
Random plasma glucoseObservation0*Out
Blood glucose test resultObservation0*Out
Gestational diabetes mellitus (GDM) diagnosisObservation0*Out
Diabetes mellitus (DM) during pregnancy diagnosisObservation0*Out
Blood haemoglobin test orderedServiceRequest0*Out
Blood haemoglobin test typeObservation0*Out
Reason blood haemoglobin test not doneProcedure0*Out
Blood haemoglobin test resultObservation0*Out
Anaemia diagnosisObservation0*Out
Hematocrit (Ht)Observation0*Out
White blood cell (WBC) countObservation0*Out
Platelet countObservation0*Out
TB screening recommendedServiceRequest0*Out
TB screening orderedServiceRequest0*Out
Reason TB screening not doneProcedure0*Out
Ultrasound scan orderedServiceRequest0*Out
TB screening resultObservation0*Out
Blood type test orderedServiceRequest0*Out
Other test(s) result(s)Observation0*Out
Blood typeObservation0*Out
Rh factorObservation0*Out
HIV test requiredObservation0*Out
HIV test orderedServiceRequest0*Out
Reason HIV test not doneProcedure0*Out
HIV test resultObservation0*Out
HIV statusObservation0*Out
Partner HIV test resultObservation0*Out
Partner HIV test orderedServiceRequest0*Out
Reason ultrasound scan not doneProcedure0*Out
Partner HIV status (confirmed)Observation0*Out
High risk for HIVObservation0*Out
Hepatitis B test requiredObservation0*Out
Hepatitis B test orderedServiceRequest0*Out
Hepatitis B test typeObservation0*Out
Hepatitis B test resultProcedure0*Out
Hepatitis B diagnosisObservation0*Out
Hepatitis C test requiredObservation0*Out
Hepatitis C test orderedCodeableConcept0*Out
Hepatitis C test typeObservation0*Out
Reason Hepatitis C test not doneProcedure0*Out
Hepatitis C test resultObservation0*Out
Amniotic fluid levelObservation0*Out
Hepatitis C diagnosisObservation0*Out
Syphilis test orderedServiceRequest0*Out
Syphilis test typeObservation0*Out
Blood glucose test dateProcedure0*Out
Blood haemoglobin test conductedProcedure0*Out
Blood haemoglobin test dateProcedure0*Out
Blood type test conductedProcedure0*Out
Blood type test dateProcedure0*Out
Hepatitis B test conductedProcedure0*Out
Hepatitis B test datedateTime0*Out
Hepatitis C test conductedProcedure0*Out
Hepatitis C test datedateTime0*Out
Syphilis test dateResource0*Out
HIV test conductedProcedure0*Out
HIV test dateProcedure0*Out
Other tests conductedProcedure0*Out
Other test(s) nameProcedure0*Out
Other test(s) dateProcedure0*Out
Partner HIV test conductedProcedure0*Out
Partner HIV test dateProcedure0*Out
Syphilis test conductedProcedure0*Out
TB screening conductedProcedure0*Out
TB screening datedateTime0*Out
Urine test conductedProcedure0*Out
Urine test datedateTime0*Out
Counselling conducted on caffeine reductionProcedure0*Out
Reason counselling on second-hand smoke was not conductedProcedure0*Out
Counselling conducted on condom useProcedure0*Out
Reason counselling on condom use was not conductedProcedure0*Out
Counselling conducted on alcohol / substance useProcedure0*Out
Reason counselling on alcohol / substance use was not conductedProcedure0*Out
Reason counselling on caffeine reduction was not doneProcedure0*Out
Counselling conducted on tobacco cessationProcedure0*Out
Reason counselling on tobacco cessation was not conductedProcedure0*Out
Counselling conducted on second-hand smokeProcedure0*Out
Counselling conducted on non-pharma measures to relieve nausea and vomitingProcedure0*Out
Reason counselling on non-pharma measures to relieve nausea and vomiting was not conductedProcedure0*Out
Counselling conducted on pharmacological treatments for nausea and vomitingProcedure0*Out
Reason counselling on pharmacological treatments for nausea and vomiting was not conductedProcedure0*Out
Counselling conducted on diet and lifestyle changes to prevent and relieve heartburnProcedure0*Out
Reason counselling on diet and lifestyle changes to prevent and relieve heartburn was not conductedProcedure0*Out
Counselling conducted on antacid preparations to relieve heartburnProcedure0*Out
Reason counselling on antacid preparations to relieve heartburn was not conductedProcedure0*Out
Counselling on non-pharmacological treatment for the relief of leg crampsProcedure0*Out
Reason counselling on non-pharmacological treatment for the relief of leg cramps was not conductedProcedure0*Out
Counselling conducted on use of magnesium and calcium to relieve leg crampsProcedure0*Out
Reason counselling on use of magnesium and calcium to relieve leg cramps was not conductedProcedure0*Out
Counselling conducted on dietary modifications to relieve constipationProcedure0*Out
Reason counselling on dietary modifications to relieve constipation was not conductedProcedure0*Out
Counselling conducted on use of wheat bran or other fibre supplements to relieve constipationProcedure0*Out
Reason counselling on use of wheat bran or other fibre supplements to relieve constipation was not conductedProcedure0*Out
Counselling conducted on regular exercise, physiotherapy, support belts and acupuncture to relieve low back and pelvic painProcedure0*Out
Reason counselling on regular exercise, physiotherapy, support belts and acupuncture to relieve low back and pelvic pain was not conductedProcedure0*Out
Counselling conducted on non-pharmacological options for varicose veins and oedemaCodeableConcept0*Out
Reason counselling on non-pharmacological options for varicose veins and oedema was not conductedProcedure0*Out
Counselling conducted on healthy eating and keeping physically activeProcedure0*Out
Reason counselling on healthy eating and keeping physically active was not conductedProcedure0*Out
Counselling conducted on increasing daily energy and protein intakeProcedure0*Out
Reason counselling on increasing daily energy and protein intake was not conductedProcedure0*Out
Counselling conducted on balanced energy and protein dietary supplementationProcedure0*Out
Reason counselling on balanced energy and protein dietary supplementation was not conductedProcedure0*Out
HypertensionCondition0*Out
Severe hypertensionCondition0*Out
Pre-eclampsiaCondition0*Out
Severe pre-eclampsiaCondition0*Out
Counselling conducted on hypertensionProcedure0*Out
Counselling conducted on HIV positiveProcedure0*Out
Counselling conducted on hepatitis B positiveProcedure0*Out
Counselling conducted on hepatitis C positiveProcedure0*Out
Syphilis counselling and treatmentProcedure0*Out
Syphilis counselling, treatment and further testingProcedure0*Out
Seven-day antibiotic regimen for asymptomatic bacteriuria (ASB) providedProcedure0*Out
Reason seven-day antibiotic regimen for asymptomatic bacteriuria (ASB) not providedProcedure0*Out
Counselling conducted on TB screening positiveProcedure0*Out
Counselling conducted on gestational diabetes mellitus (GDM)Procedure0*Out
Counselling conducted on diabetes mellitus (DM)Procedure0*Out
Counselling conducted on anaemiaProcedure0*Out
Vitamin A supplementation not providedMedicationRequest0*Out
Amount of daily calcium supplements providedMedicationRequest0*Out
Reason calcium not prescribedMedicationRequest0*Out
Amount of daily dose of folic acid prescribedMedicationRequest0*Out
Reason iron and folic acid not prescribedMedicationRequest0*Out
Amount of iron prescribedMedicationRequest0*Out
Type of iron supplement dosage providedMedicationRequest0*Out
Amount of vitamin A supplementation providedMedicationRequest0*Out
Type of vitamin A supplement dosage providedMedicationRequest0*Out
Preventive antihelminthic treatment providedObservation0*Out
Reason no preventative treatment providedServiceRequest0*Out
Counselling conducted on malaria preventionCodeableConcept0*Out
Reason counselling on malaria prevention was not conductedProcedure0*Out
Reason malaria prophylaxis not providedImmunization0*Out
IPTp-SP dose 1 providedImmunization0*Out
IPTp-SP dose 1 dateImmunization0*Out
IPTp-SP dose 2 providedImmunization0*Out
IPTp-SP dose 2 dateImmunization0*Out
IPTp-SP dose 3 providedImmunization0*Out
IPTp-SP dose 3 dateImmunization0*Out
Referred to hospitalServiceRequest0*Out
Reason referral not doneServiceRequest0*Out
Risk of pre-eclampsiaCondition0*Out
Pre-eclampsia risk counselling providedProcedure0*Out
Amount of daily aspirin prescribed until deliveryMedicationRequest0*Out
Reason aspirin not prescribedMedicationRequest0*Out
Risk of gestational diabetes mellitus (GDM)Condition0*Out
Gestational diabetes mellitus (GDM) risk counselling conductedProcedure0*Out
Counselling conducted on HIV riskProcedure0*Out
PrEP for HIV prevention providedProcedure0*Out
Reason PrEP for HIV prevention was not providedMedicationRequest0*Out
Amount of oral PrEP providedMedicationRequest0*Out
Counselling conducted on seeking care when danger signs occurProcedure0*Out
Counsel to immediately go to the hospital if severe danger signs are presentProcedure0*Out
Counselling on ANC contact schedule conductedProcedure0*Out
Counselling conducted on birth preparedness and complications readinessProcedure0*Out
Planned birth placeObservation0*Out
Counselling conducted on Rh factor negativeProcedure0*Out
Counselling conducted on intrapartum antibiotic to prevent early neonatal Group B Streptococcus (GBS) infectionProcedure0*Out
Counselling on postpartum family planning conductedProcedure0*Out
Family planning method selectedObservation0*Out
Counselling conducted on breastfeedingProcedure0*Out
Reason tetanus toxoid (TT) vaccination not providedImmunization0*Out
Counselling conducted on Hep B negativeProcedure0*Out
No doses of hepatitis BObservation0*Out
Reason Hep B vaccination not providedImmunization0*Out
Reason flu vaccine not providedImmunization0*Out
Flu immunization providedCodeableConcept0*Out
Date flu immunization was receiveddateTime0*Out
Hepatitis B-1 immunization providedImmunization0*Out
Date hepatitis B-1 immunization was receivedImmunization0*Out
Hepatitis B-2 immunization providedImmunization0*Out
Date hepatitis B-2 immunization was receivedImmunization0*Out
Hepatitis B-3 immunization providedImmunization0*Out
Date hepatitis B-3 immunization was receivedImmunization0*Out
Tetanus toxoid (TT) 1 immunization providedImmunization0*Out
Date tetanus toxoid 1 immunization was receivedImmunization0*Out
Tetanus toxoid (TT) 2 immunization providedImmunization0*Out
Date tetanus toxoid 2 immunization was receivedImmunization0*Out
Tetanus toxoid (TT) 3 immunization providedImmunization0*Out
Date tetanus toxoid 3 immunization was receivedImmunization0*Out
Tetanus toxoid (TT) 4 immunization providedImmunization0*Out
Date tetanus toxoid 4 immunization was receivedImmunization0*Out
Tetanus toxoid (TT) 5 immunization providedImmunization0*Out
Date tetanus toxoid 5 immunization was receivedImmunization0*Out
IPV first-line support providedProcedure0*Out
Reason IPV first line support not doneProcedure0*Out
What additional type of care providedProcedure0*Out
Safety assessementObservation0*Out
Has the physical violence happened more often or gotten worse over the past 6 monthsboolean0*Out
Has he ever used a weapon or threatened you with a weaponboolean0*Out
Has he ever tried to strangle youboolean0*Out
Has he ever beaten you when you were pregnantboolean0*Out
Is he violently and constantly jealous of youboolean0*Out
Do you believe he could kill youboolean0*Out
Referrals made as part of first-line support and careServiceRequest0*Out
Was client referredCodeableConcept0*Out
Emergency referralCodeableConcept0*Out
Date of scheduled referraldateTime0*Out
Location of referralResource0*Out
Date referral was madedateTime0*Out
Provider who made referralReference0*Out
Referral notesResource0*Out
Client history summaryResource0*Out
Reason for referralCodeableConcept0*Out
Any treatment given before referralboolean0*Out
Provider's facilityPractitionerRole0*Out
Provider's telephone numberPractitionerRole0*Out
Reason for closing ANC recordObservation0*Out
Delivery datedateTime0*Out
Place of deliveryEncounter0*Out
Preterm Birthboolean0*Out
Delivery modeCodeableConcept0*Out
Birth weightQuantity0*Out
Exclusively breastfeedingboolean0*Out
Delivery complicationsCodeableConcept0*Out
Date of miscarriage or abortiondateTime0*Out
Date of deathdateTime0*Out
Cause of deathCodeableConcept0*Out
Data Requirements:
TypeProfileMSCode Filter
Patient http://hl7.org/fhir/StructureDefinition/Patient ;;;;;;;;;;;
Encounter http://hl7.org/fhir/StructureDefinition/Encounter ;;;
Encounter http://hl7.org/fhir/StructureDefinition/Encounter ; code filter:
path: type
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-end-13
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-a-de13
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b4-de1
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b5-de48
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b5-de5
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de100
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de105
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de109
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de139
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de14
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de145
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de146
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de15
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de153
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de154
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de155
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de156
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de160
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de161
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de17
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de18
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de22
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de24
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de25
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de26
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de27
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de31
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de32
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de33
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de34
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de51
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de57
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de72
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de83
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de99
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b7-de1
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b7-de18
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b7-de43
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b7-de71
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b7-de97
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b7-de98
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b7-ded9
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de128
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de1
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de10
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de100
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de105
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de106
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de107
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de108
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de109
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de110
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de111
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de117
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de121
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de122
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de129
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de15
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de16
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de17
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de19
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de2
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de20
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de21
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de22
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de23
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de27
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de3
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de34
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de35
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de36
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de37
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de38
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de39
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de4
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de49
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de5
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de50
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de61
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de71
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de79
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de92
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de93
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de94
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de95
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de1
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de102
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de107
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de110
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de113
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de116
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de124
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de129
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de13
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de132
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de138
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de144
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de150
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de156
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de162
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de163
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de164
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de165
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de166
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de167
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de168
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de169
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de172
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de177
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de186
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de187
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de190
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de191
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de192
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de206
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de214
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de24
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de29
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de33
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de41
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de45
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de48
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de55
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de58
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de59
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de62
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de74
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de77
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de80
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de89
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de9
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de92
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de98
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de233
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de137
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de145
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de188
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de216
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de217
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de218
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de219
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de220
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de221
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de222
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de224
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-c-de5
Observation http://hl7.org/fhir/StructureDefinition/Observation ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-end-1
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-end-12
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-end-17
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-end-18
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-end-23
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-end-24
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-end-25
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-end-38
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-end-39
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-end-40
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de3
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de120
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de181
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de196
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de36
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de5
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de66
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de84
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de175
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de22
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de60
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de78
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de35
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de211
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de50
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de96
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de194
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de114
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de13
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de17
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de1
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de5
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de9
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de21
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de25
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de29
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de33
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de37
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de41
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de45
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de49
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de53
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de57
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de61
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de65
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de69
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de77
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de78
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de79
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de80
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de81
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de82
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de83
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de84
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de87
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de88
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de89
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;;
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de241
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de114
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de124
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de125
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de126
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de133
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de134
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de135
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de136
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de142
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de143
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de144
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de164
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de181
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de203
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de204
Procedure http://hl7.org/fhir/StructureDefinition/Procedure ;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de210
ServiceRequest http://hl7.org/fhir/StructureDefinition/ServiceRequest ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de115
ServiceRequest http://hl7.org/fhir/StructureDefinition/ServiceRequest ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de160
ServiceRequest http://hl7.org/fhir/StructureDefinition/ServiceRequest ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de176
ServiceRequest http://hl7.org/fhir/StructureDefinition/ServiceRequest ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de195
ServiceRequest http://hl7.org/fhir/StructureDefinition/ServiceRequest ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de2
ServiceRequest http://hl7.org/fhir/StructureDefinition/ServiceRequest ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de34
ServiceRequest http://hl7.org/fhir/StructureDefinition/ServiceRequest ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de49
ServiceRequest http://hl7.org/fhir/StructureDefinition/ServiceRequest ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de61
ServiceRequest http://hl7.org/fhir/StructureDefinition/ServiceRequest ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de79
ServiceRequest http://hl7.org/fhir/StructureDefinition/ServiceRequest ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de97
ServiceRequest http://hl7.org/fhir/StructureDefinition/ServiceRequest ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de237
ServiceRequest http://hl7.org/fhir/StructureDefinition/ServiceRequest ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de256
ServiceRequest http://hl7.org/fhir/StructureDefinition/ServiceRequest ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de223
ServiceRequest http://hl7.org/fhir/StructureDefinition/ServiceRequest ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-c-de1
ServiceRequest http://hl7.org/fhir/StructureDefinition/ServiceRequest ;;;;;;;;
ServiceRequest http://hl7.org/fhir/StructureDefinition/ServiceRequest ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-c-de2
Condition http://hl7.org/fhir/StructureDefinition/Condition ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de73
Condition http://hl7.org/fhir/StructureDefinition/Condition ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de74
Condition http://hl7.org/fhir/StructureDefinition/Condition ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de75
Condition http://hl7.org/fhir/StructureDefinition/Condition ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de76
Condition http://hl7.org/fhir/StructureDefinition/Condition ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de113
Condition http://hl7.org/fhir/StructureDefinition/Condition ;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de121
MedicationRequest http://hl7.org/fhir/StructureDefinition/MedicationRequest ; code filter:
path: medication
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de104
MedicationRequest http://hl7.org/fhir/StructureDefinition/MedicationRequest ; code filter:
path: medication
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de108
MedicationRequest http://hl7.org/fhir/StructureDefinition/MedicationRequest ; code filter:
path: medication
value set: http://fhir.org/guides/who/anc-cds/ValueSet/folic-acid-supplement
MedicationRequest http://hl7.org/fhir/StructureDefinition/MedicationRequest ; code filter:
path: medication
value set: http://fhir.org/guides/who/anc-cds/ValueSet/iron-supplement
MedicationRequest http://hl7.org/fhir/StructureDefinition/MedicationRequest ; code filter:
path: medication
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de116
MedicationRequest http://hl7.org/fhir/StructureDefinition/MedicationRequest ; code filter:
path: medication
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de127
MedicationRequest http://hl7.org/fhir/StructureDefinition/MedicationRequest ;;
Immunization http://hl7.org/fhir/StructureDefinition/Immunization ;; code filter:
path: vaccineCode
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de251
Immunization http://hl7.org/fhir/StructureDefinition/Immunization ;; code filter:
path: vaccineCode
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de245
Immunization http://hl7.org/fhir/StructureDefinition/Immunization ;; code filter:
path: vaccineCode
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de247
Immunization http://hl7.org/fhir/StructureDefinition/Immunization ;; code filter:
path: vaccineCode
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de249
Immunization http://hl7.org/fhir/StructureDefinition/Immunization ;; code filter:
path: vaccineCode
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de175
Immunization http://hl7.org/fhir/StructureDefinition/Immunization ;; code filter:
path: vaccineCode
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de189
Immunization http://hl7.org/fhir/StructureDefinition/Immunization ;; code filter:
path: vaccineCode
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de197
Immunization http://hl7.org/fhir/StructureDefinition/Immunization ;; code filter:
path: vaccineCode
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de195
Immunization http://hl7.org/fhir/StructureDefinition/Immunization ;; code filter:
path: vaccineCode
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de182
Immunization http://hl7.org/fhir/StructureDefinition/Immunization ;; code filter:
path: vaccineCode
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de184
Immunization http://hl7.org/fhir/StructureDefinition/Immunization ;; code filter:
path: vaccineCode
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de186
Immunization http://hl7.org/fhir/StructureDefinition/Immunization ;; code filter:
path: vaccineCode
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de165
Immunization http://hl7.org/fhir/StructureDefinition/Immunization ;; code filter:
path: vaccineCode
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de167
Immunization http://hl7.org/fhir/StructureDefinition/Immunization ;; code filter:
path: vaccineCode
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de169
Immunization http://hl7.org/fhir/StructureDefinition/Immunization ;; code filter:
path: vaccineCode
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de171
Immunization http://hl7.org/fhir/StructureDefinition/Immunization ;; code filter:
path: vaccineCode
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de173
Immunization http://hl7.org/fhir/StructureDefinition/Immunization ;;
PractitionerRole http://hl7.org/fhir/StructureDefinition/PractitionerRole
Content: text/cql
library ANCDataElements

using FHIR version '4.0.1'

include FHIRHelpers version '4.0.1'
include FHIRCommon called FC

include WHOCommon called WC
include ANCCommon called AC
include ANCConcepts called Cx
include ANCBaseConcepts called BCx

context Patient

/*
  @dataElement: ANC.A.DE4 Contact date
  @activity: ANC.A4. Gather client details
  @description: The date and time of the client's contact
*/
define "Contact date":
  [Encounter] E
    return E.period.start


/*
  @dataElement: ANC.B5.DE1 Reason for coming to facility
  @activity: ANC.A4. Gather client details
  @description: Records the reason why the woman came to the health-care facility today
*/
define "Reason for coming to facility":
  [Encounter] E
    return E.reasonCode


/*
  @dataElement: ANC.A.DE12 ANC contact number
  @activity: ANC.A4. Gather client details
  @description: The ANC contact or visit number – recommended minimum is 8 contacts
*/
define "ANC contact number":
  [Encounter] E
    return AC.Extension(E, 'contactNumber').value as integer


/*
  @dataElement: ANC.A.DE1 Unique identification
  @activity: ANC.A4. Gather client details
  @description: Unique identifier generated for new clients or a universal ID, if used in the country
*/
define "Unique identification":
  [Patient] P
    return WC.Official(P.identifier).value


/*
  @dataElement: ANC.A.DE2 First name
  @activity: ANC.A4. Gather client details
  @description: Client's first name
*/
define "First name":
  [Patient] P
    return First(WC.Official(P.name).given)


/*
  @dataElement: ANC.A.DE3 Last name
  @activity: ANC.A4. Gather client details
  @description: Client's family name or last name
*/
define "Last name":
  [Patient] P
    return WC.Official(P.name).family


/*
  @dataElement: ANC.A.DE5 Date of birth
  @activity: ANC.A4. Gather client details
  @description: The client's date of birth (DOB), if known
*/
define "Date of birth":
  [Patient] P
    return P.birthDate


/*
  @dataElement: ANC.A.DE7 Address
  @activity: ANC.A4. Gather client details
  @description: Client's home address or address that the client is consenting to disclose
*/
define "Address":
  [Patient] P
    return WC.Official(P.address).text


/*
  @dataElement: ANC.A.DE8 Mobile phone number
  @activity: ANC.A4. Gather client details
  @description: Client's mobile phone number
*/
define "Mobile phone number":
  [Patient] P
    return WC.Mobile(P.telecom).value


/*
  @dataElement: ANC.A.DE10 Alternative contact's name
  @activity: ANC.A4. Gather client details
  @description: Name of an alternative contact, which could be next of kin (e.g. partner, mother, sibling); the alternative contact would be used in the case of an emergency situation
*/
define "Alternative contact's name":
  WC.Official(First(
    [Patient] P
      return P.contact
  ).name).text


/*
  @dataElement: ANC.A.DE11 Alternative contact's phone number
  @activity: ANC.A4. Gather client details
  @description: Phone number of the alternative contact
*/
define "Alternative contact's phone number":
  First(First(
    [Patient] P
      return P.contact
  ).telecom).value


/*
  @dataElement: ANC.A.DE9 Woman wants to receive reminders during pregnancy
  @activity: ANC.A4. Gather client details
  @description: Whether or not the woman wants to receive SMS or other messages regarding her ANC contacts and health status during pregnancy
*/
define "Woman wants to receive reminders during pregnancy":
  [Patient] P
    return AC.Extension(P, 'reminder').value as boolean


/*
  @dataElement: ANC.B6.DE1 Highest level of education achieved
  @activity: ANC.A4. Gather client details
  @description: The highest level of schooling the woman has reached
*/
define "Highest level of education achieved":
  [Patient] P
    return AC.Extension(P, 'educationLevel').value as FHIR.CodeableConcept


/*
  @dataElement: ANC.B6.DE7 Occupation
  @activity: ANC.A4. Gather client details
  @description: The woman's occupation (select all that apply)
*/
define "Occupation":
  [Patient] P
    return AC.Extension(P, 'occupation').value as FHIR.CodeableConcept


/*
  @dataElement: ANC.A.DE13 Co-habitants
  @activity: ANC.A7. Create client record?OR?ANC.A8. Validate client details
  @description: Who does the client live with? It is important to know whether client lives with parents, other family members, a partner, friends, etc.
*/
define "Co-habitants":
  [Observation: Cx."Co-habitants"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.CodeableConcept


/*
  @dataElement: ANC.B4.DE1 Pregnancy confirmed
  @activity: ANC.B4. Confirm pregnancy
  @description: Pregnancy has been confirmed
*/
define "Pregnancy confirmed":
  [Observation: Cx."Pregnancy confirmed"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B5.DE48 Danger signs
  @activity: ANC.B5. Quick check
  @description: Before each contact, the health worker should check whether the woman has any of the danger signs listed here – if yes, she should refer to the hospital urgently; if no, she should continue to the normal contact
*/
define "Danger signs":
  [Observation: Cx."Danger signs"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B5.DE5 Specific health concern(s)
  @activity: ANC.B5. Quick check
  @description: If the woman came to the facility with a specific health concern, select the health concern(s) from the list
*/
define "Specific health concern(s)":
  [Observation: Cx."Specific health concern(s)"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B6.DE100 Tetanus toxoid-containing vaccine (TTCV) immunization history
  @activity: ANC.B6. Collect woman's profile and history
  @description: The woman's history of receiving tetanus toxoid-containing vaccine (TTCV)
*/
define "Tetanus toxoid-containing vaccine (TTCV) immunization history":
  [Observation: Cx."Tetanus toxoid-containing vaccine (TTCV) immunization history"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B6.DE105 Flu immunization history
  @activity: ANC.B6. Collect woman's profile and history
  @description: Whether or not this year's seasonal flu vaccine has been provided
*/
define "Flu immunization history":
  [Observation: Cx."Flu immunization history"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B6.DE109 Current medications
  @activity: ANC.B6. Collect woman's profile and history
  @description: Select all of the medications the woman is currently taking
*/
define "Current medications":
  [Observation: Cx."Current medications"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B6.DE139 Daily caffeine intake
  @activity: ANC.B6. Collect woman's profile and history
  @description: Assesses whether the woman consumes more than 300 mg of caffeine per day
*/
define "Daily caffeine intake":
  [Observation: Cx."Daily caffeine intake"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B6.DE14 Last menstrual period (LMP) date
  @activity: ANC.B6. Collect woman's profile and history
  @description: The woman's last menstrual period (LMP) date; this is defined as the first day of her most recent period
*/
define "Last menstrual period (LMP) date":
  [Observation: Cx."Last menstrual period (LMP) date"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B6.DE145 Clinical enquiry for alcohol and other substance use done
  @activity: ANC.B6. Collect woman's profile and history
  @description: Whether or not the health worker has performed a clinical enquiry into alcohol and substance use
*/
define "Clinical enquiry for alcohol and other substance use done":
  [Observation: Cx."Clinical enquiry for alcohol and other substance use done"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B6.DE146 Current alcohol and/or other substance use
  @activity: ANC.B6. Collect woman's profile and history
  @description: Whether or not the woman currently consumes any alcohol or substances
*/
define "Current alcohol and/or other substance use":
  [Observation: Cx."Current alcohol and/or other substance use"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B6.DE15 Ultrasound done
  @activity: ANC.B6. Collect woman's profile and history
  @description: Whether or not the woman has had an ultrasound scan done at any point in this pregnancy
*/
define "Ultrasound done":
  [Observation: Cx."Ultrasound done"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B6.DE153 Tobacco use
  @activity: ANC.B6. Collect woman's profile and history
  @description: Whether the woman uses tobacco products
*/
define "Tobacco use":
  [Observation: Cx."Tobacco use"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B6.DE154 Recently quit tobacco products
  @activity: ANC.B6. Collect woman's profile and history
  @description: Whether the woman has recently quit using any tobacco products
*/
define "Recently quit tobacco products":
  [Observation: Cx."Recently quit tobacco products"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B6.DE155 Exposure to second-hand smoke
  @activity: ANC.B6. Collect woman's profile and history
  @description: Anyone in the household smokes tobacco products – whether the woman is exposed to second-hand smoke from anyone in her household
*/
define "Exposure to second-hand smoke":
  [Observation: Cx."Exposure to second-hand smoke"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B6.DE156 Partner HIV status (reported)
  @activity: ANC.B6. Collect woman's profile and history
  @description: The HIV status of the woman's partner
*/
define "Partner HIV status (reported)":
  [Observation: Cx."Partner HIV status (reported)"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B6.DE160 Contraceptive use of male condoms
  @activity: ANC.B6. Collect woman's profile and history
  @description: Whether or not the woman (and her partner) use male condoms during sex
*/
define "Contraceptive use of male condoms":
  [Observation: Cx."Contraceptive use of male condoms"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.boolean


/*
  @dataElement: ANC.B6.DE161 Contraceptive use of female condoms
  @activity: ANC.B6. Collect woman's profile and history
  @description: Whether or not the woman (and her partner) use female condoms during sex
*/
define "Contraceptive use of female condoms":
  [Observation: Cx."Contraceptive use of female condoms"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.boolean


/*
  @dataElement: ANC.B6.DE17 Gestational age
  @activity: ANC.B6. Collect woman's profile and history
  @description: Gestational age in weeks and/or days depending on the source of gestational age
*/
define "Gestational age":
  [Observation: Cx."Gestational age"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B6.DE18 Source of gestational age
  @activity: ANC.B6. Collect woman's profile and history
  @description: Gestational age can be calculated multiple ways – this data element describes where the gestational age above has been calculated from
*/
define "Source of gestational age":
  [Observation: Cx."Source of gestational age"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B6.DE22 Expected date of delivery (EDD)
  @activity: ANC.B6. Collect woman's profile and history
  @description: Expected date of delivery based on gestational age
*/
define "Expected date of delivery (EDD)":
  [Observation: Cx."Expected date of delivery (EDD)"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.dateTime


/*
  @dataElement: ANC.B6.DE24 Number of pregnancies (gravida)
  @activity: ANC.B6. Collect woman's profile and history
  @description: Total number of times the woman has been pregnant (including this pregnancy); also referred to as gravida
*/
define "Number of pregnancies (gravida)":
  [Observation: Cx."Number of pregnancies (gravida)"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.integer


/*
  @dataElement: ANC.B6.DE25 Number of miscarriages and/or abortions
  @activity: ANC.B6. Collect woman's profile and history
  @description: Total number of pregnancies lost/ended due to miscarriages and/or abortions before 22 weeks / 5 months
*/
define "Number of miscarriages and/or abortions":
  [Observation: Cx."Number of miscarriages and/or abortions"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.integer


/*
  @dataElement: ANC.B6.DE26 Number of live births
  @activity: ANC.B6. Collect woman's profile and history
  @description: Total number of live births after 22 weeks
*/
define "Number of live births":
  [Observation: Cx."Number of live births"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.integer


/*
  @dataElement: ANC.B6.DE27 Whether last live birth was preterm
  @activity: ANC.B6. Collect woman's profile and history
  @description: Was the last live birth preterm? Whether the last live birth was preterm (i.e. less than 37 weeks gestation at the time of delivery)
*/
define "Whether last live birth was preterm":
  [Observation: Cx."Whether last live birth was preterm"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B6.DE31 Number of stillbirths
  @activity: ANC.B6. Collect woman's profile and history
  @description: Total number of stillbirths after 22 weeks
*/
define "Number of stillbirths":
  [Observation: Cx."Number of stillbirths"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.integer


/*
  @dataElement: ANC.B6.DE32 Parity
  @activity: ANC.B6. Collect woman's profile and history
  @description: Calculated parity is the total number of live and stillbirths
*/
define "Parity":
  [Observation: Cx."Parity"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.integer


/*
  @dataElement: ANC.B6.DE33 Number of caesarian sections
  @activity: ANC.B6. Collect woman's profile and history
  @description: Total number of caesarean sections
*/
define "Number of caesarian sections":
  [Observation: Cx."Number of caesarian sections"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.integer


/*
  @dataElement: ANC.B6.DE34 Past pregnancy complications
  @activity: ANC.B6. Collect woman's profile and history
  @description: Mark whether the woman has had any complications or problems in any previous pregnancy
*/
define "Past pregnancy complications":
  [Observation: Cx."Past pregnancy complications"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B6.DE51 Substance use during past pregnancy specification
  @activity: ANC.B6. Collect woman's profile and history
  @description: If selected substance use, specify and indicate what type of substances used during past pregnancies
*/
define "Substance use during past pregnancy specification":
  [Observation: Cx."Substance use during past pregnancy specification"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B6.DE57 Allergies
  @activity: ANC.B6. Collect woman's profile and history
  @description: Does the woman have any allergies?
*/
define "Allergies":
  [Observation: Cx."Allergies"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B6.DE72 Past surgeries
  @activity: ANC.B6. Collect woman's profile and history
  @description: Has the woman had any prior surgeries?
*/
define "Past surgeries":
  [Observation: Cx."Past surgeries"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B6.DE83 Existing chronic health conditions
  @activity: ANC.B6. Collect woman's profile and history
  @description: Does the woman have any current chronic health conditions or problems?
*/
define "Existing chronic health conditions":
  [Observation: Cx."Existing chronic health conditions"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B6.DE99 HIV diagnosis date
  @activity: ANC.B6. Collect woman's profile and history
  @description: If woman knows she's HIV+, record the date of her diagnosis
*/
define "HIV diagnosis date":
  [Observation: Cx."HIV diagnosis date"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.CodeableConcept


/*
  @dataElement: ANC.B6.DE16 Ultrasound date
  @activity: ANC.B6. Collect woman's profile and history
  @description: Date that the ultrasound was done
*/
define "Ultrasound date":
  [Procedure: Cx."Ultrasound scan conducted"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B9.DE3 Ultrasound scan conducted
  @activity: ANC.B6. Collect woman's profile and history
  @description: Whether an ultrasound scan was conducted during a specific contact
*/
define "Ultrasound scan conducted":
  [Procedure: Cx."Ultrasound scan conducted"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B7.DE1 Medication follow-up
  @activity: ANC.B7. Check symptoms and follow-up
  @description: Which of the medications(including supplements and vitamins) is the woman taking and any side effects?
*/
define "Medication follow-up":
  [Observation: Cx."Medication follow-up"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B7.DE18 Persistent physiological symptoms
  @activity: ANC.B7. Check symptoms and follow-up
  @description: Which of the following physiological symptoms persist? Select which of the following physiological symptoms persist after being reported during last contact
*/
define "Persistent physiological symptoms":
  [Observation: Cx."Persistent physiological symptoms"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B7.DE43 Current physiological symptoms
  @activity: ANC.B7. Check symptoms and follow-up
  @description: The physiological symptoms that the woman is experiencing right now: select "None" if she is experiencing none of these symptoms
*/
define "Current physiological symptoms":
  [Observation: Cx."Current physiological symptoms"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B7.DE71 Presenting signs and symptoms that trigger suspicion of IPV and clinical inquiry
  @activity: ANC.B7. Check symptoms and follow-up
  @description: Presenting signs and symptoms that trigger clinical enquiry of IPV. The Input Options listed below are based on Health care for women subjected to intimate partner violence or sexual violence – a clinical handbook (3)
*/
define "Presenting signs and symptoms that trigger suspicion of IPV and clinical inquiry":
  [Observation: Cx."Presenting signs and symptoms that trigger suspicion of IPV and clinical inquiry"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B7.DE97 Woman discloses or is suspected to be subjected to intimate partner violence
  @activity: ANC.B7. Check symptoms and follow-up
  @description: Woman discloses or is suspected   to be subjected to intimate partner violence
*/
define "Woman discloses or is suspected to be subjected to intimate partner violence":
  [Observation: Cx."Woman discloses or is suspected to be subjected to intimate partner violence"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.CodeableConcept


/*
  @dataElement: ANC.B7.DE98 Fetal movement
  @activity: ANC.B7. Check symptoms and follow-up
  @description: Whether the woman has felt the baby move or not or if the baby's movements have decreased
*/
define "Fetal movement":
  [Observation: Cx."Fetal movement"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B7.DED9 Persistent behaviours
  @activity: ANC.B7. Check symptoms and follow-up
  @description: Which of the following behaviours persist? Select which of the following behaviours persist after being reported during last contact
*/
define "Persistent behaviours":
  [Observation: Cx."Persistent behaviours"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE128 Has the woman  been subjected to intimate partner violence
  @activity: ANC.B7. Check symptoms and follow-up
  @description: Whether the woman has been subjected to intimate partner violence
*/
define "Has the woman  been subjected to intimate partner violence":
  [Observation: Cx."Has the woman  been subjected to intimate partner violence"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE1 Height
  @activity: ANC.B8. Conduct physical exam
  @description: The woman's current height in centimetres
*/
define "Height":
  [Observation: Cx."Height"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE10 Expected weight gain
  @activity: ANC.B8. Conduct physical exam
  @description: Expected weight gain during pregnancy is based on the woman's weight category
*/
define "Expected weight gain":
  [Observation: Cx."Expected weight gain"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE100 Oedema severity
  @activity: ANC.B8. Conduct physical exam
  @description: Severity of the oedema
*/
define "Oedema severity":
  [Observation: Cx."Oedema severity"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE105 Symphysis-fundal height (SFH)
  @activity: ANC.B8. Conduct physical exam
  @description: The symphysis-fundal height (SFH) in centimetres
*/
define "Symphysis-fundal height (SFH)":
  [Observation: Cx."Symphysis-fundal height (SFH)"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE106 Fetal heartbeat present
  @activity: ANC.B8. Conduct physical exam
  @description: Whether or not the health worker observes a fetal heartbeat
*/
define "Fetal heartbeat present":
  [Observation: Cx."Fetal heartbeat present"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE107 Fetal heart rate
  @activity: ANC.B8. Conduct physical exam
  @description: The fetal heart rate in beats per minute (bpm)
*/
define "Fetal heart rate":
  [Observation: Cx."Fetal heart rate"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE108 Second fetal heart rate
  @activity: ANC.B8. Conduct physical exam
  @description: The second fetal heart rate reading in beats per minute (bpm)
*/
define "Second fetal heart rate":
  [Observation: Cx."Second fetal heart rate"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE109 Number of fetuses
  @activity: ANC.B8. Conduct physical exam
  @description: Indicate the number of fetuses the woman is carrying
*/
define "Number of fetuses":
  [Observation: Cx."Number of fetuses"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE110 Number of fetuses unknown
  @activity: ANC.B8. Conduct physical exam
  @description: Number of fetuses cannot be determined at this time, thus the number of fetuses is unknown
*/
define "Number of fetuses unknown":
  [Observation: Cx."Number of fetuses unknown"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE111 Fetal presentation
  @activity: ANC.B8. Conduct physical exam
  @description: If a single fetus only, indicate the presentation of the fetus in the uterus
*/
define "Fetal presentation":
  [Observation: Cx."Fetal presentation"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE117 Presenting signs/conditions for IPV
  @activity: ANC.B8. Conduct physical exam
  @description: Signs or conditions that are due to or trigger suspicion of  intimate partner violence?
*/
define "Presenting signs/conditions for IPV":
  [Observation: Cx."Presenting signs/conditions for IPV"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE121 Clinical enquiry for IPV
  @activity: ANC.B8. Conduct physical exam
  @description: Whether or not clinical enquiry for IPV was conducted based on presenting signs and symptoms and conditions
*/
define "Clinical enquiry for IPV":
  [Observation: Cx."Clinical enquiry for IPV"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE122 Reason clinical enquiry not done
  @activity: ANC.B8. Conduct physical exam
  @description: Reason clinical enquiry not done
*/
define "Reason clinical enquiry not done":
  [Observation: Cx."Reason clinical enquiry not done"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE129 Types of IPV
  @activity: ANC.B8. Conduct physical exam
  @description: What type(s) of violence has the woman been subjected to?
*/
define "Types of IPV":
  [Observation: Cx."Types of IPV"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE15 Average weight gain per week
  @activity: ANC.B8. Conduct physical exam
  @description: Average weight gain per week since last contact (kg); this would only display starting at the 2nd contact
*/
define "Average weight gain per week":
  [Observation: Cx."Average weight gain per week"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.Quantity


/*
  @dataElement: ANC.B8.DE16 Total weight gain (kg)
  @activity: ANC.B8. Conduct physical exam
  @description: Total weight gain in pregnancy so far (kg)
*/
define "Total weight gain (kg)":
  [Observation: Cx."Total weight gain (kg)"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.Quantity


/*
  @dataElement: ANC.B8.DE17 Systolic blood pressure
  @activity: ANC.B8. Conduct physical exam
  @description: Systolic blood pressure (SBP) in mmHg
*/
define "Systolic blood pressure":
  [Observation: Cx."Systolic blood pressure"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE19 Diastolic blood pressure
  @activity: ANC.B8. Conduct physical exam
  @description: Diastolic blood pressure (DBP) in mmHg
*/
define "Diastolic blood pressure":
  [Observation: Cx."Diastolic blood pressure"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE2 Pre-gestational weight
  @activity: ANC.B8. Conduct physical exam
  @description: The woman's pre-gestational weight in kilograms
*/
define "Pre-gestational weight":
  [Observation: Cx."Pre-gestational weight"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE20 Repeat systolic blood pressure
  @activity: ANC.B8. Conduct physical exam
  @description: Repeat measurement of the woman's systolic blood pressure in mmHg after 10–15 minutes rest
*/
define "Repeat systolic blood pressure":
  [Observation: Cx."Repeat systolic blood pressure"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE21 Repeat diastolic blood pressure
  @activity: ANC.B8. Conduct physical exam
  @description: Repeat measurement of the woman's diastolic blood pressure in mmHg after 10–15 minutes rest
*/
define "Repeat diastolic blood pressure":
  [Observation: Cx."Repeat diastolic blood pressure"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE22 Blood pressure cannot be taken
  @activity: ANC.B8. Conduct physical exam
  @description: If the woman's blood pressure cannot be taken, this should be indicated here; otherwise, blood pressure should be measured
*/
define "Blood pressure cannot be taken":
  [Observation: Cx."Blood pressure cannot be taken"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE23 Reason blood pressure cannot be taken
  @activity: ANC.B8. Conduct physical exam
  @description: The reason why the health worker is unable to record the woman's BP during this contact visit
*/
define "Reason blood pressure cannot be taken":
  [Observation: Cx."Reason blood pressure cannot be taken"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE27 Symptoms of severe pre-eclampsia
  @activity: ANC.B8. Conduct physical exam
  @description: Check if the woman has any of the following symptoms of severe pre-eclampsia
*/
define "Symptoms of severe pre-eclampsia":
  [Observation: Cx."Symptoms of severe pre-eclampsia"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE3 Current  weight
  @activity: ANC.B8. Conduct physical exam
  @description: The woman's current weight in kilograms
*/
define "Current  weight":
  [Observation: Cx."Current  weight"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE34 Body temperature
  @activity: ANC.B8. Conduct physical exam
  @description: The woman's body temperature in degrees Celsius  (°C) (first reading)
*/
define "Body temperature":
  [Observation: Cx."Body temperature"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE35 Second body temperature
  @activity: ANC.B8. Conduct physical exam
  @description: The woman's body temperature in degrees Celsius (°C) (second reading)
*/
define "Second body temperature":
  [Observation: Cx."Second body temperature"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE36 Pulse rate
  @activity: ANC.B8. Conduct physical exam
  @description: The woman's pulse rate in beats per minute (bpm)
*/
define "Pulse rate":
  [Observation: Cx."Pulse rate"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE37 Second pulse rate
  @activity: ANC.B8. Conduct physical exam
  @description: The woman's second pulse rate in beats per minute (bpm)
*/
define "Second pulse rate":
  [Observation: Cx."Second pulse rate"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE38 Pallor present
  @activity: ANC.B8. Conduct physical exam
  @description: Whether or not the woman has pallor
*/
define "Pallor present":
  [Observation: Cx."Pallor present"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE39 Respiratory exam result
  @activity: ANC.B8. Conduct physical exam
  @description: The woman's respiratory condition based on respiratory exam
*/
define "Respiratory exam result":
  [Observation: Cx."Respiratory exam result"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE4 BMI
  @activity: ANC.B8. Conduct physical exam
  @description: Body mass index (BMI): calculated by taking weight in kg divided by the squared height in meters, i.e. kg/(m^2)
*/
define "BMI":
  [Observation: Cx."BMI"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE49 Oximetry
  @activity: ANC.B8. Conduct physical exam
  @description: The measure of the oxygen saturation (%) in the woman's blood: this is usually measured using a pulse oximeter medical device
*/
define "Oximetry":
  [Observation: Cx."Respiratory exam result - Oximetry"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.Quantity


/*
  @dataElement: ANC.B8.DE5 Weight category
  @activity: ANC.B8. Conduct physical exam
  @description: Weight category is calculated from BMI
*/
define "Weight category":
  [Observation: Cx."Weight category"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE50 Cardiac exam result
  @activity: ANC.B8. Conduct physical exam
  @description: The woman's cardiac condition
*/
define "Cardiac exam result":
  [Observation: Cx."Cardiac exam result"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE61 Breast exam result
  @activity: ANC.B8. Conduct physical exam
  @description: Whether or not the result of the breast exam is normal
*/
define "Breast exam result":
  [Observation: Cx."Breast exam result"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE71 Abdominal exam result
  @activity: ANC.B8. Conduct physical exam
  @description: Whether or not the result of the abdominal exam is normal
*/
define "Abdominal exam result":
  [Observation: Cx."Abdominal exam result"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE79 Pelvic exam result (visual)
  @activity: ANC.B8. Conduct physical exam
  @description: Whether or not the result of the pelvic exam is normal
*/
define "Pelvic exam result (visual)":
  [Observation: Cx."Pelvic exam result (visual)"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE92 Cervical exam conducted
  @activity: ANC.B8. Conduct physical exam
  @description: Whether or not the health worker performed a cervical exam
*/
define "Cervical exam conducted":
  [Observation: Cx."Cervical exam conducted"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE93 Cervical dilation
  @activity: ANC.B8. Conduct physical exam
  @description: If a cervical exam was done, how many centimeters is the cervix dilated?
*/
define "Cervical dilation":
  [Observation: Cx."Cervical dilation"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE94 Oedema present
  @activity: ANC.B8. Conduct physical exam
  @description: Whether or not the woman has oedema
*/
define "Oedema present":
  [Observation: Cx."Oedema present"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B8.DE95 Oedema type
  @activity: ANC.B8. Conduct physical exam
  @description: Select the type of oedema the woman has
*/
define "Oedema type":
  [Observation: Cx."Oedema type"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE1 Ultrasound required
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Woman requires an ultrasound scan
*/
define "Ultrasound required":
  [Observation: Cx."Ultrasound required"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE102 Reason syphilis test not done
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the reason why a syphilis test was not done
*/
define "Reason syphilis test not done":
  [Observation: Cx."Reason syphilis test not done"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE107 Syphilis test result
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Syphilis test result
*/
define "Syphilis test result":
  [Observation: Cx."Syphilis test result"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE110 Syphilis diagnosis
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Calculation for whether woman has syphilis (1) or not (0)
*/
define "Syphilis diagnosis":
  [Observation: Cx."Syphilis diagnosis"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE113 Urine test required
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Urine test is required
*/
define "Urine test required":
  [Observation: Cx."Urine test required"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE115 Urine test ordered
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Urine test has been ordered
*/
define "Urine test ordered":
  [ServiceRequest: Cx."Urine test ordered"] SR
    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(SR.doNotPerform, false) is false


/*
  @dataElement: ANC.B9.DE116 Urine test type
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the type of urine test that was done. Of the three types of tests, the midstream urine culture is the preferred method. If culture is not available, then midstream Gram-staining test is preferred over dipstick. Urine dipstick test is required if need to check urine for protein.
*/
define "Urine test type":
  [Observation: Cx."Urine test type"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE120 Reason urine test not done
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the reason why a urine test was not done at this contact
*/
define "Reason urine test not done":
  [Procedure: Cx."Reason urine test not done"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B9.DE124 Midstream urine culture (recommended)
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Midstream urine culture is the recommended method for diagnosing asymptomatic bacteriuria (ASB) in pregnancy
*/
define "Midstream urine culture (recommended)":
  [Observation: Cx."Midstream urine culture (recommended)"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE129 Midstream urine Gram-staining
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: On-site midstream urine Gram-staining is recommended over the use of dipstick tests as the method for diagnosing ASB in pregnancy if midstream culture is not possible
*/
define "Midstream urine Gram-staining":
  [Observation: Cx."Midstream urine Gram-staining"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE13 Placenta location
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Location of the placenta detected during the ultrasound
*/
define "Placenta location":
  [Observation: Cx."Placenta location"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE132 Urine dipstick result - nitrites
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Dipstick test results – nitrites
*/
define "Urine dipstick result - nitrites":
  [Observation: Cx."Urine dipstick result - nitrites"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE138 Urine dipstick result - leukocytes
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Dipstick test results – leukocytes
*/
define "Urine dipstick result - leukocytes":
  [Observation: Cx."Urine dipstick result - leukocytes"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE144 Urine dipstick result - protein
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Enter the result for the dipstick test – protein
*/
define "Urine dipstick result - protein":
  [Observation: Cx."Urine dipstick result - protein"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE150 Urine dipstick result - glucose
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Dipstick test results – glucose
*/
define "Urine dipstick result - glucose":
  [Observation: Cx."Urine dipstick result - glucose"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE156 Asymptomatic bacteriuria (ASB) diagnosis
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: A woman is considered to have ASB if she has one of the following test results:?– Positive culture (> 100,000 bacteria/mL)?– Gram-staining positive?– Urine dipstick test positive (nitrites or leukocytes)
*/
define "Asymptomatic bacteriuria (ASB) diagnosis":
  [Observation: Cx."Asymptomatic bacteriuria (ASB) diagnosis"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE160 Blood glucose test ordered
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Blood glucose test has been ordered
*/
define "Blood glucose test ordered":
  [ServiceRequest: Cx."Blood glucose test ordered"] SR
    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(SR.doNotPerform, false) is false


/*
  @dataElement: ANC.B9.DE162 Blood glucose test type
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the type of blood glucose test done
*/
define "Blood glucose test type":
  [Observation: Cx."Blood glucose test type"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE163 Fasting plasma glucose
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Fasting plasma glucose
*/
define "Fasting plasma glucose":
  [Observation: Cx."Fasting plasma glucose"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE164 75 g oral glucose tolerance test (OGTT) - fasting glucose
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: 75 g oral glucose tolerance test (OGTT) – fasting glucose
*/
define "75 g oral glucose tolerance test (OGTT) - fasting glucose":
  [Observation: Cx."75 g oral glucose tolerance test (OGTT) - fasting glucose"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE165 75 g oral glucose tolerance test (OGTT) - 1 hour
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: 75 g oral glucose tolerance test (OGTT) –  1 hour
*/
define "75 g oral glucose tolerance test (OGTT) - 1 hour":
  [Observation: Cx."75 g oral glucose tolerance test (OGTT) - 1 hour"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE166 75 g oral glucose tolerance test (OGTT) - 2 hours
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: 75 g oral glucose tolerance test (OGTT) – 2 hours
*/
define "75 g oral glucose tolerance test (OGTT) - 2 hours":
  [Observation: Cx."75 g oral glucose tolerance test (OGTT) - 2 hours"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE167 Random plasma glucose
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Random plasma glucose
*/
define "Random plasma glucose":
  [Observation: Cx."Random plasma glucose"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE168 Blood glucose test result
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Enter the result for the blood glucose test (mg/dl)
*/
define "Blood glucose test result":
  [Observation: Cx."Blood glucose test result"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE169 Gestational diabetes mellitus (GDM) diagnosis
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Whether the woman has gestational diabetes mellitus (GDM)
*/
define "Gestational diabetes mellitus (GDM) diagnosis":
  [Observation: Cx."Gestational diabetes mellitus (GDM) diagnosis"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE172 Diabetes mellitus (DM) during pregnancy diagnosis
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Whether the woman has developed diabetes mellitus during pregnancy
*/
define "Diabetes mellitus (DM) during pregnancy diagnosis":
  [Observation: Cx."Diabetes mellitus (DM) during pregnancy diagnosis"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE176 Blood haemoglobin test ordered
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Whether or not the blood haemoglobin test (Hb test) has been ordered
*/
define "Blood haemoglobin test ordered":
  [ServiceRequest: Cx."Blood haemoglobin test ordered"] SR
    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(SR.doNotPerform, false) is false


/*
  @dataElement: ANC.B9.DE177 Blood haemoglobin test type
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the type of Hb test that was done
*/
define "Blood haemoglobin test type":
  [Observation: Cx."Blood haemoglobin test type"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE181 Reason blood haemoglobin test not done
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the reason why a Hb test was not done
*/
define "Reason blood haemoglobin test not done":
  [Procedure: Cx."Reason blood haemoglobin test not done"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B9.DE186 Blood haemoglobin test result
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Blood haemoglobin test result in g/dl
*/
define "Blood haemoglobin test result":
  [Observation: Cx."Blood haemoglobin test result"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE187 Anaemia diagnosis
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Calculated field to determine woman's anaemia status
*/
define "Anaemia diagnosis":
  [Observation: Cx."Anaemia diagnosis"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE190 Hematocrit (Ht)
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Hematocrit percentage
*/
define "Hematocrit (Ht)":
  [Observation: Cx."Hematocrit (Ht)"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE191 White blood cell (WBC) count
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Full white blood cells count
*/
define "White blood cell (WBC) count":
  [Observation: Cx."White blood cell (WBC) count"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE192 Platelet count
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Full platelets count
*/
define "Platelet count":
  [Observation: Cx."Platelet count"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE193 TB screening recommended
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: TB screening is recommended
*/
define "TB screening recommended":
  [ServiceRequest] SR
    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(SR.doNotPerform, false) is false


/*
  @dataElement: ANC.B9.DE195 TB screening ordered
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: TB screening has been ordered
*/
define "TB screening ordered":
  [ServiceRequest: Cx."TB screening ordered"] SR
    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(SR.doNotPerform, false) is false


/*
  @dataElement: ANC.B9.DE196 Reason TB screening not done
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the reason why TB screening was not done
*/
define "Reason TB screening not done":
  [Procedure: Cx."Reason TB screening not done"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B9.DE2 Ultrasound scan ordered
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: An ultrasound scan has been ordered
*/
define "Ultrasound scan ordered":
  [ServiceRequest: Cx."Ultrasound scan ordered"] SR
    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(SR.doNotPerform, false) is false


/*
  @dataElement: ANC.B9.DE206 TB screening result
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Record the result of the TB screening
*/
define "TB screening result":
  [Observation: Cx."TB screening result"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE21 Blood type test ordered
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Blood type test has been ordered
*/
define "Blood type test ordered":
  [ServiceRequest] SR
    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(SR.doNotPerform, false) is false


/*
  @dataElement: ANC.B9.DE214 Other test(s) result(s)
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Input the result from the test(s)
*/
define "Other test(s) result(s)":
  [Observation: Cx."Other test(s) result(s)"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE24 Blood type
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: The client's blood type
*/
define "Blood type":
  [Observation: Cx."Blood type"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE29 Rh factor
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: The client's Rhesus (Rh) factor
*/
define "Rh factor":
  [Observation: Cx."Rh factor"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE33 HIV test required
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: HIV test is required
*/
define "HIV test required":
  [Observation: Cx."HIV test required"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE34 HIV test ordered
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: HIV test has been ordered
*/
define "HIV test ordered":
  [ServiceRequest: Cx."HIV test ordered"] SR
    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(SR.doNotPerform, false) is false


/*
  @dataElement: ANC.B9.DE36 Reason HIV test not done
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the reason why an HIV test was not done
*/
define "Reason HIV test not done":
  [Procedure: Cx."Reason HIV test not done"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B9.DE41 HIV test result
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the result of the HIV test
*/
define "HIV test result":
  [Observation: Cx."HIV test result"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE45 HIV status
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Calculated field for woman's HIV status
*/
define "HIV status":
  [Observation: Cx."HIV status"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE48 Partner HIV test result
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the result of her partner's HIV test
*/
define "Partner HIV test result":
  [Observation: Cx."Partner HIV test result"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE49 Partner HIV test ordered
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: An HIV test for the woman's partner has been ordered
*/
define "Partner HIV test ordered":
  [ServiceRequest: Cx."Partner HIV test ordered"] SR
    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(SR.doNotPerform, false) is false


/*
  @dataElement: ANC.B9.DE5 Reason ultrasound scan not done
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the reason why an ultrasound scan was not done
*/
define "Reason ultrasound scan not done":
  [Procedure: Cx."Reason ultrasound scan not done"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B9.DE55 Partner HIV status (confirmed)
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Partner's confirmed HIV status
*/
define "Partner HIV status (confirmed)":
  [Observation: Cx."Partner HIV status (confirmed)"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE58 High risk for HIV
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: If the woman lives in a setting with a generalized HIV epidemic, or her partner is HIV positive, or she injects drugs, or she has an employment at increased risk for HIV, then she is at high risk for HIV
*/
define "High risk for HIV":
  [Observation: Cx."High risk for HIV"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE59 Hepatitis B test required
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Hepatitis B test is required
*/
define "Hepatitis B test required":
  [Observation: Cx."Hepatitis B test required"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE61 Hepatitis B test ordered
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Hepatitis B test has been ordered
*/
define "Hepatitis B test ordered":
  [ServiceRequest: Cx."Hepatitis B test ordered"] SR
    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(SR.doNotPerform, false) is false


/*
  @dataElement: ANC.B9.DE62 Hepatitis B test type
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the type of Hep B test done
*/
define "Hepatitis B test type":
  [Observation: Cx."Hepatitis B test type"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE66 Hepatitis B test result
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the reason why a Hep B test was not done
*/
define "Hepatitis B test result":
  [Procedure: Cx."Hepatitis B test result"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B9.DE74 Hepatitis B diagnosis
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: This calculates the woman's Hep B infection status as positive (1) or negative (0), taking into account any of the three methods for Hep B testing
*/
define "Hepatitis B diagnosis":
  [Observation: Cx."Hepatitis B diagnosis"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE77 Hepatitis C test required
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Hepatitis C test is required
*/
define "Hepatitis C test required":
  [Observation: Cx."Hepatitis C test required"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE79 Hepatitis C test ordered
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Hepatitis C test has been ordered
*/
define "Hepatitis C test ordered":
  [ServiceRequest: Cx."Hepatitis C test ordered"] SR
    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(SR.doNotPerform, false) is false
    return SR.code


/*
  @dataElement: ANC.B9.DE80 Hepatitis C test type
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the type of Hep C test that was done
*/
define "Hepatitis C test type":
  [Observation: Cx."Hepatitis C test type"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE84 Reason Hepatitis C test not done
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the reason why a Hep C test was not done
*/
define "Reason Hepatitis C test not done":
  [Procedure: Cx."Reason Hepatitis C test not done"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B9.DE89 Hepatitis C test result
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Hepatitis C test result
*/
define "Hepatitis C test result":
  [Observation: Cx."Hepatitis C test result"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE9 Amniotic fluid level
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Amniotic fluid level detected during ultrasound
*/
define "Amniotic fluid level":
  [Observation: Cx."Amniotic fluid level"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE92 Hepatitis C diagnosis
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: This calculates the woman's Hep C infection status as positive (1) or negative (0), taking into account any of the three methods for Hep C testing
*/
define "Hepatitis C diagnosis":
  [Observation: Cx."Hepatitis C diagnosis"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE97 Syphilis test ordered
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Syphilis test has been ordered
*/
define "Syphilis test ordered":
  [ServiceRequest: Cx."Syphilis test ordered"] SR
    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(SR.doNotPerform, false) is false


/*
  @dataElement: ANC.B9.DE98 Syphilis test type
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the type of syphilis test that was done
*/
define "Syphilis test type":
  [Observation: Cx."Syphilis test type"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B9.DE161 Blood glucose test date
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the date of the glucose test
*/
define "Blood glucose test date":
  [Procedure] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B9.DE175 Blood haemoglobin test conducted
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: A blood haemoglobin test (Hb test) is required for all women multiple times during pregnancy to determine whether she's anaemic
*/
define "Blood haemoglobin test conducted":
  [Procedure: Cx."Blood haemoglobin test conducted"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B9.DE185 Blood haemoglobin test date
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the date of the Hb test
*/
define "Blood haemoglobin test date":
  [Procedure] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B9.DE22 Blood type test conducted
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Blood type test has been conducted
*/
define "Blood type test conducted":
  [Procedure: Cx."Blood type test conducted"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B9.DE23 Blood type test date
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Date of the blood type test
*/
define "Blood type test date":
  [Procedure] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B9.DE60 Hepatitis B test conducted
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the status of the Hep B test – record result, ordered (pending) or not done
*/
define "Hepatitis B test conducted":
  [Procedure: Cx."Hepatitis B test conducted"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B9.DE70 Hepatitis B test date
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the date of the hepatitis B test
*/
define "Hepatitis B test date":
  [Procedure] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }
    return P.performed as FHIR.dateTime


/*
  @dataElement: ANC.B9.DE78 Hepatitis C test conducted
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: In a setting where the proportion of HCV antibody seroprevalence in the general population is ≥ 2% or the woman is HIV positive, injects drugs or is a sex worker, then a Hep C test is required
*/
define "Hepatitis C test conducted":
  [Procedure: Cx."Hepatitis C test conducted"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B9.DE88 Hepatitis C test date
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the date of the hepatitis C test
*/
define "Hepatitis C test date":
  [Procedure] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }
    return P.performed as FHIR.dateTime


/*
  @dataElement: ANC.B9.DE106 Syphilis test date
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the date of the syphilis test
*/
define "Syphilis test date":
  [Procedure] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }
    return P.performed


/*
  @dataElement: ANC.B9.DE35 HIV test conducted
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: An HIV test is required for all pregnant women at the first contact in pregnancy and again at the first contact of the 3rd trimester if the HIV prevalence in the pregnant woman population is ≥ 5%. A test is not required if the woman is already confirmed HIV+.
*/
define "HIV test conducted":
  [Procedure: Cx."HIV test conducted"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B9.DE40 HIV test date
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Date of the HIV test
*/
define "HIV test date":
  [Procedure] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B9.DE211 Other tests conducted
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: If the health worker performed other tests on the woman that are not explicitly listed in the application, select "yes" here and fill in the details below
*/
define "Other tests conducted":
  [Procedure: Cx."Other tests conducted"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B9.DE212 Other test(s) name
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Input the name of other test(s) that were done
*/
define "Other test(s) name":
  [Procedure] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B9.DE213 Other test(s) date
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Input the date of other test(s) that were done
*/
define "Other test(s) date":
  [Procedure] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B9.DE50 Partner HIV test conducted
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: If the woman does not know the HIV status of her partner(s), offer to test and add results here
*/
define "Partner HIV test conducted":
  [Procedure: Cx."Partner HIV test conducted"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B9.DE51 Partner HIV test date
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the date of her partner's HIV test
*/
define "Partner HIV test date":
  [Procedure] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B9.DE96 Syphilis test conducted
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: A syphilis test is recommended for all pregnant women at the first contact and again at the first contact of 3rd trimester; women who are already confirmed positive for syphilis do not need to be tested
*/
define "Syphilis test conducted":
  [Procedure: Cx."Syphilis test conducted"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B9.DE194 TB screening conducted
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: In settings where the tuberculosis (TB) prevalence in the general population is 100/100,000 population or higher or in settings with subpopulations that have very poor access to health care, or if the woman is HIV positive, TB screening is recommended
*/
define "TB screening conducted":
  [Procedure: Cx."TB screening conducted"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B9.DE205 TB screening date
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Record the date of the TB screening
*/
define "TB screening date":
  [Procedure] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }
    return P.performed as FHIR.dateTime


/*
  @dataElement: ANC.B9.DE114 Urine test conducted
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: A urine test is required at the first contact, last contact in 2nd trimester, and 2nd contact in 3rd trimester OR anytime the woman reports pain during urination (dysuria). A dipstick test is required if the woman has a repeat high BP reading (140/90 or higher). Otherwise, a urine test is optional. The urine test checks for bacterial or other infections that can lead to adverse outcomes for the neonate. The urine dipstick test can check for proteins in the urine, which can be a sign of pre-eclampsia.
*/
define "Urine test conducted":
  [Procedure: Cx."Urine test conducted"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B9.DE125 Urine test date
  @activity: ANC.B9. Conduct laboratory tests and imaging
  @description: Select the date of the urine test
*/
define "Urine test date":
  [Procedure] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }
    return P.performed as FHIR.dateTime


/*
  @dataElement: ANC.B10.DE1 Counselling conducted on caffeine reduction
  @activity: ANC.B10.1 Behaviour counselling
  @description: Whether or not counselling was done on lowering daily caffeine intake
*/
define "Counselling conducted on caffeine reduction":
  [Procedure: Cx."Counselling on Caffeine Reduction"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE10 Reason counselling on second-hand smoke was not conducted
  @activity: ANC.B10.1 Behaviour counselling
  @description: Select the reason why counselling on second-hand smoke cessation was not done
*/
define "Reason counselling on second-hand smoke was not conducted":
  [Procedure: Cx."Counselling on Second-Hand Smoke"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE13 Counselling conducted on condom use
  @activity: ANC.B10.1 Behaviour counselling
  @description: Whether or not counselling was done on condom use
*/
define "Counselling conducted on condom use":
  [Procedure: Cx."Counselling on Condom Use"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE14 Reason counselling on condom use was not conducted
  @activity: ANC.B10.1 Behaviour counselling
  @description: Select the reason why counselling on condom use was not done
*/
define "Reason counselling on condom use was not conducted":
  [Procedure: Cx."Counselling on Condom Use"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE17 Counselling conducted on alcohol / substance use
  @activity: ANC.B10.1 Behaviour counselling
  @description: Whether or not counselling was done on alcohol and substance use cessation
*/
define "Counselling conducted on alcohol / substance use":
  [Procedure: Cx."Counselling on Alcohol Substance Abuse"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE18 Reason counselling on alcohol / substance use was not conducted
  @activity: ANC.B10.1 Behaviour counselling
  @description: Select the reason why counselling on alcohol and substance use was not done
*/
define "Reason counselling on alcohol / substance use was not conducted":
  [Procedure: Cx."Counselling on Alcohol Substance Abuse"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE2 Reason counselling on caffeine reduction was not done
  @activity: ANC.B10.1 Behaviour counselling
  @description: The reason why the health worker did not counsel on caffeine reduction
*/
define "Reason counselling on caffeine reduction was not done":
  [Procedure: Cx."Counselling on Caffeine Reduction"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE5 Counselling conducted on tobacco cessation
  @activity: ANC.B10.1 Behaviour counselling
  @description: Whether or not counselling was done on tobacco cessation
*/
define "Counselling conducted on tobacco cessation":
  [Procedure: Cx."Counselling on Tobacco Cessation"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE6 Reason counselling on tobacco cessation was not conducted
  @activity: ANC.B10.1 Behaviour counselling
  @description: Select the reason why counselling on tobacco cessation was not done
*/
define "Reason counselling on tobacco cessation was not conducted":
  [Procedure: Cx."Counselling on Tobacco Cessation"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE9 Counselling conducted on second-hand smoke
  @activity: ANC.B10.1 Behaviour counselling
  @description: Whether or not counselling was done on second-hand smoke cessation
*/
define "Counselling conducted on second-hand smoke":
  [Procedure: Cx."Counselling on Second-Hand Smoke"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE21 Counselling conducted on non-pharma measures to relieve nausea and vomiting
  @activity: ANC.B10.2 Physiological symptoms counselling
  @description: Whether or not counselling was conducted on nausea and vomiting
*/
define "Counselling conducted on non-pharma measures to relieve nausea and vomiting":
  [Procedure: Cx."Counselling on Non-Pharma Measures to Relieve Nausea and Vomiting"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE22 Reason counselling on non-pharma measures to relieve nausea and vomiting was not conducted
  @activity: ANC.B10.2 Physiological symptoms counselling
  @description: Select the reason why non-pharma measures to relieve nausea and vomiting counselling was not done
*/
define "Reason counselling on non-pharma measures to relieve nausea and vomiting was not conducted":
  [Procedure: Cx."Counselling on Non-Pharma Measures to Relieve Nausea and Vomiting"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE25 Counselling conducted on pharmacological treatments for nausea and vomiting
  @activity: ANC.B10.2 Physiological symptoms counselling
  @description: Whether or not counselling for the repeat symptom "nausea and vomiting" was done
*/
define "Counselling conducted on pharmacological treatments for nausea and vomiting":
  [Procedure: Cx."Counselling on Pharmacological Measures to Relieve Nausea and Vomiting"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE26 Reason counselling on pharmacological treatments for nausea and vomiting was not conducted
  @activity: ANC.B10.2 Physiological symptoms counselling
  @description: Select the reason why counselling on pharmacological treatments to relieve nausea and vomiting was not done
*/
define "Reason counselling on pharmacological treatments for nausea and vomiting was not conducted":
  [Procedure: Cx."Counselling on Pharmacological Measures to Relieve Nausea and Vomiting"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE29 Counselling conducted on diet and lifestyle changes to prevent and relieve heartburn
  @activity: ANC.B10.2 Physiological symptoms counselling
  @description: Whether or not counselling for the symptom "heartburn" was done
*/
define "Counselling conducted on diet and lifestyle changes to prevent and relieve heartburn":
  [Procedure: Cx."Counselling on Diet and Lifestyle Changes to Prevent and Relieve Heartburn"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE30 Reason counselling on diet and lifestyle changes to prevent and relieve heartburn was not conducted
  @activity: ANC.B10.2 Physiological symptoms counselling
  @description: Select the reason why counselling for the symptom "Heartburn" was not done
*/
define "Reason counselling on diet and lifestyle changes to prevent and relieve heartburn was not conducted":
  [Procedure: Cx."Counselling on Diet and Lifestyle Changes to Prevent and Relieve Heartburn"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE33 Counselling conducted on antacid preparations to relieve heartburn
  @activity: ANC.B10.2 Physiological symptoms counselling
  @description: Whether or not counselling for the repeat symptom "Heartburn" was done
*/
define "Counselling conducted on antacid preparations to relieve heartburn":
  [Procedure: Cx."Counselling on Antacid Preparations to Relieve Heartburn"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE34 Reason counselling on antacid preparations to relieve heartburn was not conducted
  @activity: ANC.B10.2 Physiological symptoms counselling
  @description: Select the reason why counselling for the repeat symptom "Heartburn" was not done
*/
define "Reason counselling on antacid preparations to relieve heartburn was not conducted":
  [Procedure: Cx."Counselling on Antacid Preparations to Relieve Heartburn"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE37 Counselling on non-pharmacological treatment for the relief of leg cramps
  @activity: ANC.B10.2 Physiological symptoms counselling
  @description: Whether or not counselling for the symptom "Leg cramps" was done
*/
define "Counselling on non-pharmacological treatment for the relief of leg cramps":
  [Procedure: Cx."Counselling on Non-Pharmacological Treatment for Relief of Leg Cramps"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE38 Reason counselling on non-pharmacological treatment for the relief of leg cramps was not conducted
  @activity: ANC.B10.2 Physiological symptoms counselling
  @description: Select the reason why counselling for the symptom "Leg cramps" was not done
*/
define "Reason counselling on non-pharmacological treatment for the relief of leg cramps was not conducted":
  [Procedure: Cx."Counselling on Non-Pharmacological Treatment for Relief of Leg Cramps"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE41 Counselling conducted on use of magnesium and calcium to relieve leg cramps
  @activity: ANC.B10.2 Physiological symptoms counselling
  @description: Whether or not counselling for the repeat symptom "Leg cramps" was done
*/
define "Counselling conducted on use of magnesium and calcium to relieve leg cramps":
  [Procedure: Cx."Counselling on Use of Magnesium-and Calcium to Relieve Leg Cramps"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE42 Reason counselling on use of magnesium and calcium to relieve leg cramps was not conducted
  @activity: ANC.B10.2 Physiological symptoms counselling
  @description: Select the reason why counselling for the repeat symptom "Leg cramps" was not done
*/
define "Reason counselling on use of magnesium and calcium to relieve leg cramps was not conducted":
  [Procedure: Cx."Counselling on Use of Magnesium-and Calcium to Relieve Leg Cramps"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE45 Counselling conducted on dietary modifications to relieve constipation
  @activity: ANC.B10.2 Physiological symptoms counselling
  @description: Whether or not counselling for the symptom "Constipation" was done
*/
define "Counselling conducted on dietary modifications to relieve constipation":
  [Procedure: Cx."Counselling on Dietary Modifications to Relieve Constipation"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE46 Reason counselling on dietary modifications to relieve constipation was not conducted
  @activity: ANC.B10.2 Physiological symptoms counselling
  @description: Select the reason why counselling for the symptom "Constipation" was not done
*/
define "Reason counselling on dietary modifications to relieve constipation was not conducted":
  [Procedure: Cx."Counselling on Dietary Modifications to Relieve Constipation"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE49 Counselling conducted on use of wheat bran or other fibre supplements to relieve constipation
  @activity: ANC.B10.2 Physiological symptoms counselling
  @description: Whether or not counselling for the repeat symptom "Constipation" was done
*/
define "Counselling conducted on use of wheat bran or other fibre supplements to relieve constipation":
  [Procedure: Cx."Counselling on Use of Wheat Bran or Other Fibre Supplements to Relieve Constipation"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE50 Reason counselling on use of wheat bran or other fibre supplements to relieve constipation was not conducted
  @activity: ANC.B10.2 Physiological symptoms counselling
  @description: Select the reason why counselling for the repeat symptom "Constipation" was not done
*/
define "Reason counselling on use of wheat bran or other fibre supplements to relieve constipation was not conducted":
  [Procedure: Cx."Counselling on Use of Wheat Bran or Other Fibre Supplements to Relieve Constipation"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE53 Counselling conducted on regular exercise, physiotherapy, support belts and acupuncture to relieve low back and pelvic pain
  @activity: ANC.B10.2 Physiological symptoms counselling
  @description: Whether or not counselling for the symptom "low back and pelvic pain" was done
*/
define "Counselling conducted on regular exercise, physiotherapy, support belts and acupuncture to relieve low back and pelvic pain":
  [Procedure: Cx."Counselling on Regular Exercise Physiotherapy Support Belts and Acupuncture to Relieve Low Back and Pelvic Pain"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE54 Reason counselling on regular exercise, physiotherapy, support belts and acupuncture to relieve low back and pelvic pain was not conducted
  @activity: ANC.B10.2 Physiological symptoms counselling
  @description: Select the reason why counselling for the symptom "low back and pelvic pain" was not done
*/
define "Reason counselling on regular exercise, physiotherapy, support belts and acupuncture to relieve low back and pelvic pain was not conducted":
  [Procedure: Cx."Counselling on Regular Exercise Physiotherapy Support Belts and Acupuncture to Relieve Low Back and Pelvic Pain"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE57 Counselling conducted on non-pharmacological options for varicose veins and oedema
  @activity: ANC.B10.2 Physiological symptoms counselling
  @description: Whether or not counselling for the symptom "Varicose veins or oedema" was done
*/
define "Counselling conducted on non-pharmacological options for varicose veins and oedema":
  [Procedure: Cx."Counselling on Non-Pharmacological Options for Varicose Veins and Oedema"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }
    return P.code


/*
  @dataElement: ANC.B10.DE58 Reason counselling on non-pharmacological options for varicose veins and oedema was not conducted
  @activity: ANC.B10.2 Physiological symptoms counselling
  @description: Select the reason why counselling for the symptom "Varicose veins or oedema" was not done
*/
define "Reason counselling on non-pharmacological options for varicose veins and oedema was not conducted":
  [Procedure: Cx."Counselling on Non-Pharmacological Options for Varicose Veins and Oedema"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE61 Counselling conducted on healthy eating and keeping physically active
  @activity: ANC.B10.3 Diet counselling
  @description: Whether or not counselling was done on healthy eating and keeping physically active during pregnancy
*/
define "Counselling conducted on healthy eating and keeping physically active":
  [Procedure: Cx."Counselling on Healthy Eating and Keeping Physically Active"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE62 Reason counselling on healthy eating and keeping physically active was not conducted
  @activity: ANC.B10.3 Diet counselling
  @description: Select the reason why counselling on healthy eating and exercise during pregnancy was not done
*/
define "Reason counselling on healthy eating and keeping physically active was not conducted":
  [Procedure: Cx."Counselling on Healthy Eating and Keeping Physically Active"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE65 Counselling conducted on increasing daily energy and protein intake
  @activity: ANC.B10.3 Diet counselling
  @description: Whether or not counselling was done on increasing energy and protein intake
*/
define "Counselling conducted on increasing daily energy and protein intake":
  [Procedure: Cx."Counselling on Increasing Daily Energy Protein Intake"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE66 Reason counselling on increasing daily energy and protein intake was not conducted
  @activity: ANC.B10.3 Diet counselling
  @description: Select the reason why counselling on increasing daily energy intake was not done
*/
define "Reason counselling on increasing daily energy and protein intake was not conducted":
  [Procedure: Cx."Counselling on Increasing Daily Energy Protein Intake"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE69 Counselling conducted on balanced energy and protein dietary supplementation
  @activity: ANC.B10.3 Diet counselling
  @description: Whether or not counselling was done on balanced energy and protein dietary supplementation
*/
define "Counselling conducted on balanced energy and protein dietary supplementation":
  [Procedure: Cx."Counselling on Balanced Energy and Protein Dietary Supplementation"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE70 Reason counselling on balanced energy and protein dietary supplementation was not conducted
  @activity: ANC.B10.3 Diet counselling
  @description: Select the reason why counselling on balanced energy and protein intake was not done
*/
define "Reason counselling on balanced energy and protein dietary supplementation was not conducted":
  [Procedure: Cx."Counselling on Balanced Energy and Protein Dietary Supplementation"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE73 Hypertension
  @activity: ANC.B10.4 Diagnosis & treatment
  @description: Whether the client has developed hypertension associated with pregnancy
*/
define "Hypertension":
  [Condition: Cx."Hypertension"] C
    where C.clinicalStatus in FC."Active Condition"
      and C.verificationStatus ~ FC."confirmed"


/*
  @dataElement: ANC.B10.DE74 Severe hypertension
  @activity: ANC.B10.4 Diagnosis & treatment
  @description: Whether the client has developed severe hypertension associated with pregnancy, as defined in the decision logic (If SBP is 160 mmHg or higher and/or DBP is 110 mmHg or higher)
*/
define "Severe hypertension":
  [Condition: Cx."Severe hypertension"] C
    where C.clinicalStatus in FC."Active Condition"
      and C.verificationStatus ~ FC."confirmed"


/*
  @dataElement: ANC.B10.DE75 Pre-eclampsia
  @activity: ANC.B10.4 Diagnosis & treatment
  @description: Whether the client has pre-eclampsia
*/
define "Pre-eclampsia":
  [Condition: Cx."Pre-eclampsia"] C
    where C.clinicalStatus in FC."Active Condition"
      and C.verificationStatus ~ FC."confirmed"


/*
  @dataElement: ANC.B10.DE76 Severe pre-eclampsia
  @activity: ANC.B10.4 Diagnosis & treatment
  @description: Whether the client has severe pre-eclampsia as defined by decision logic and reported symptoms
*/
define "Severe pre-eclampsia":
  [Condition: Cx."Severe pre-eclampsia"] C
    where C.clinicalStatus in FC."Active Condition"
      and C.verificationStatus ~ FC."confirmed"


/*
  @dataElement: ANC.B10.DE77 Counselling conducted on hypertension
  @activity: ANC.B10.4 Diagnosis & treatment
  @description: Whether counselling was provided to a client who has been diagnosed with hypertension
*/
define "Counselling conducted on hypertension":
  [Procedure: Cx."Counselling conducted on hypertension"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE78 Counselling conducted on HIV positive
  @activity: ANC.B10.4 Diagnosis & treatment
  @description: Whether counselling was provided to a client who has been diagnosed with HIV
*/
define "Counselling conducted on HIV positive":
  [Procedure: Cx."Counselling conducted on HIV positive"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE79 Counselling conducted on hepatitis B positive
  @activity: ANC.B10.4 Diagnosis & treatment
  @description: Whether counselling was provided to a client who has been diagnosed with Hepatitis B
*/
define "Counselling conducted on hepatitis B positive":
  [Procedure: Cx."Counselling conducted on hepatitis B positive"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE80 Counselling conducted on hepatitis C positive
  @activity: ANC.B10.4 Diagnosis & treatment
  @description: Whether counselling was provided to a client who has been diagnosed with Hepatitis C
*/
define "Counselling conducted on hepatitis C positive":
  [Procedure: Cx."Counselling conducted on hepatitis C positive"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE81 Syphilis counselling and treatment
  @activity: ANC.B10.4 Diagnosis & treatment
  @description: Whether counselling and treatment was provided to a client who has been diagnosed with syphilis
*/
define "Syphilis counselling and treatment":
  [Procedure: Cx."Syphilis counselling and treatment"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE82 Syphilis counselling, treatment and further testing
  @activity: ANC.B10.4 Diagnosis & treatment
  @description: Whether counselling and treatment was provided to a client who has been diagnosed with syphilis – additional testing (RPR test) recommended
*/
define "Syphilis counselling, treatment and further testing":
  [Procedure: Cx."Syphilis counselling, treatment and further testing"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE83 Seven-day antibiotic regimen for asymptomatic bacteriuria (ASB) provided
  @activity: ANC.B10.4 Diagnosis & treatment
  @description: Whether seven-day antibiotic regimen was provided to a client who has been diagnosed with ASB
*/
define "Seven-day antibiotic regimen for asymptomatic bacteriuria (ASB) provided":
  [Procedure: Cx."Seven-day antibiotic regimen for asymptomatic bacteriuria (ASB) provided"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE84 Reason seven-day antibiotic regimen for asymptomatic bacteriuria (ASB) not provided
  @activity: ANC.B10.4 Diagnosis & treatment
  @description: Please explain why woman was not provided treatment
*/
define "Reason seven-day antibiotic regimen for asymptomatic bacteriuria (ASB) not provided":
  [Procedure: Cx."Reason seven-day antibiotic regimen for asymptomatic bacteriuria (ASB) not provided"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE87 Counselling conducted on TB screening positive
  @activity: ANC.B10.4 Diagnosis & treatment
  @description: Counselling provided to woman when TB screening result is positive
*/
define "Counselling conducted on TB screening positive":
  [Procedure: Cx."Counselling conducted on TB screening positive"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE88 Counselling conducted on gestational diabetes mellitus (GDM)
  @activity: ANC.B10.4 Diagnosis & treatment
  @description: Whether counselling was provided to a woman who has been diagnosed with GDM
*/
define "Counselling conducted on gestational diabetes mellitus (GDM)":
  [Procedure: Cx."Counselling conducted on gestational diabetes mellitus (GDM)"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE89 Counselling conducted on diabetes mellitus (DM)
  @activity: ANC.B10.4 Diagnosis & treatment
  @description: Whether counselling was provided to a woman who has been diagnosed with DM during pregnancy
*/
define "Counselling conducted on diabetes mellitus (DM)":
  [Procedure: Cx."Counselling conducted on diabetes mellitus (DM)"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE90 Counselling conducted on anaemia
  @activity: ANC.B10.4 Diagnosis & treatment
  @description: Whether counselling was provided to a woman who has been diagnosed with anaemia
*/
define "Counselling conducted on anaemia":
  [Procedure] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE104 Vitamin A supplementation not provided
  @activity: ANC.B10.5 Nutrition supplementation
  @description: Select the reason why the supplement was not given
*/
define "Vitamin A supplementation not provided":
  [MedicationRequest: Cx."Vitamin A supplementation not provided"] MR
    where MR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and MR.doNotPerform is true


/*
  @dataElement: ANC.B10.DE107 Amount of daily calcium supplements provided
  @activity: ANC.B10.5 Nutrition supplementation
  @description: Amount in grams (g) of calcium supplements provided
*/
define "Amount of daily calcium supplements provided":
  [MedicationRequest] MR
    where MR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(MR.doNotPerform, false) is false


/*
  @dataElement: ANC.B10.DE108 Reason calcium not prescribed
  @activity: ANC.B10.5 Nutrition supplementation
  @description: Select the reason why calcium supplementation was not prescribed
*/
define "Reason calcium not prescribed":
  [MedicationRequest: Cx."Reason calcium not prescribed"] MR
    where MR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and MR.doNotPerform is true


/*
  @dataElement: ANC.B10.DE95 Amount of daily dose of folic acid prescribed
  @activity: ANC.B10.5 Nutrition supplementation
  @description: Amount of folic acid supplements prescribed in milligrams for daily intake
*/
define "Amount of daily dose of folic acid prescribed":
  [MedicationRequest: BCx."Folic acid supplement"] MR
    where MR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(MR.doNotPerform, false) is false


/*
  @dataElement: ANC.B10.DE96 Reason iron and folic acid not prescribed
  @activity: ANC.B10.5 Nutrition supplementation
  @description: Select the reason why the supplement was not prescribed
*/
define "Reason iron and folic acid not prescribed":
  ([MedicationRequest: BCx."Iron supplement"] MR
    where MR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and MR.doNotPerform is true
  ) union
  ([MedicationRequest: BCx."Folic acid supplement"] MR
    where MR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and MR.doNotPerform is true
  )


/*
  @dataElement: ANC.B10.DE91 Amount of iron prescribed
  @activity: ANC.B10.5 Nutrition supplementation
  @description: Amount of iron supplements prescribed in milligrams for intake
*/
define "Amount of iron prescribed":
  [MedicationRequest: BCx."Iron supplement"] MR
    where MR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(MR.doNotPerform, false) is false


/*
  @dataElement: ANC.B10.DE92 Type of iron supplement dosage provided
  @activity: ANC.B10.5 Nutrition supplementation
  @description: Whether the amount of iron prescribed is for daily or weekly intake
*/
define "Type of iron supplement dosage provided":
  [MedicationRequest: BCx."Iron supplement"] MR
    where MR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(MR.doNotPerform, false) is false


/*
  @dataElement: ANC.B10.DE100 Amount of vitamin A supplementation provided
  @activity: ANC.B10.5 Nutrition supplementation
  @description: Amount of vitamin A supplementation provided in IU
*/
define "Amount of vitamin A supplementation provided":
  [MedicationRequest] MR
    where MR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(MR.doNotPerform, false) is false


/*
  @dataElement: ANC.B10.DE101 Type of vitamin A supplement dosage provided
  @activity: ANC.B10.5 Nutrition supplementation
  @description: Whether the amount of vitamin A prescribed is for daily or weekly intake
*/
define "Type of vitamin A supplement dosage provided":
  [MedicationRequest] MR
    where MR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(MR.doNotPerform, false) is false


/*
  @dataElement: ANC.B10.DE233 Preventive antihelminthic treatment provided
  @activity: ANC.B10.9 Deworming & malaria prophylaxis
  @description: Preventive antihelminthic treatment was provided
*/
define "Preventive antihelminthic treatment provided":
  [Observation: Cx."Preventive antihelminthic treatment provided"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B10.DE237 Reason no preventative treatment provided
  @activity: ANC.B10.9 Deworming & malaria prophylaxis
  @description: Select the reason why the treatment was not given
*/
define "Reason no preventative treatment provided":
  [ServiceRequest: Cx."Reason no preventative treatment provided"] SNR
    where SNR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and SNR.doNotPerform is true


/*
  @dataElement: ANC.B10.DE241 Counselling conducted on malaria prevention
  @activity: ANC.B10.9 Deworming & malaria prophylaxis
  @description: Counselling provided on how to prevent malaria
*/
define "Counselling conducted on malaria prevention":
  [Procedure: Cx."Counselling conducted on malaria prevention"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }
    return P.code


/*
  @dataElement: ANC.B10.DE242 Reason counselling on malaria prevention was not conducted
  @activity: ANC.B10.9 Deworming & malaria prophylaxis
  @description: Select the reason why the counselling was not given
*/
define "Reason counselling on malaria prevention was not conducted":
  [Procedure: Cx."Counselling conducted on malaria prevention"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE251 Reason malaria prophylaxis not provided
  @activity: ANC.B10.9 Deworming & malaria prophylaxis
  @description: Select the reason why the treatment was not given
*/
define "Reason malaria prophylaxis not provided":
  [Immunization: Cx."Malaria Prophylaxis"] IND
    where IND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE245 IPTp-SP dose 1 provided
  @activity: ANC.B10.9 Deworming & malaria prophylaxis
  @description: Whether or not IPTp-SP dose 1 was provided
*/
define "IPTp-SP dose 1 provided":
  [Immunization: Cx."IPTp-SP dose 1 provided"] I
    where I.status = 'completed'


/*
  @dataElement: ANC.B10.DE246 IPTp-SP dose 1 date
  @activity: ANC.B10.9 Deworming & malaria prophylaxis
  @description: Date IPTp-SP dose 1 given
*/
define "IPTp-SP dose 1 date":
  [Immunization] I
    where I.status = 'completed'


/*
  @dataElement: ANC.B10.DE247 IPTp-SP dose 2 provided
  @activity: ANC.B10.9 Deworming & malaria prophylaxis
  @description: Whether or not IPTp-SP dose 2 was provided
*/
define "IPTp-SP dose 2 provided":
  [Immunization: Cx."IPTp-SP dose 2 provided"] I
    where I.status = 'completed'


/*
  @dataElement: ANC.B10.DE248 IPTp-SP dose 2 date
  @activity: ANC.B10.9 Deworming & malaria prophylaxis
  @description: Date IPTp-SP dose 2 given
*/
define "IPTp-SP dose 2 date":
  [Immunization] I
    where I.status = 'completed'


/*
  @dataElement: ANC.B10.DE249 IPTp-SP dose 3 provided
  @activity: ANC.B10.9 Deworming & malaria prophylaxis
  @description: Whether or not IPTp-SP dose 3 was provided
*/
define "IPTp-SP dose 3 provided":
  [Immunization: Cx."IPTp-SP dose 3 provided"] I
    where I.status = 'completed'


/*
  @dataElement: ANC.B10.DE250 IPTp-SP dose 3 date
  @activity: ANC.B10.9 Deworming & malaria prophylaxis
  @description: Date IPTp-SP dose 3 given
*/
define "IPTp-SP dose 3 date":
  [Immunization] I
    where I.status = 'completed'


/*
  @dataElement: ANC.B10.DE256 Referred to hospital
  @activity: ANC.B11. Urgent referral needed?
  @description: Whether or not the health worker referred the woman to a hospital or higher-level facility
*/
define "Referred to hospital":
  [ServiceRequest: Cx."Referral to Hospital"] SR
    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(SR.doNotPerform, false) is false


/*
  @dataElement: ANC.B10.DE257 Reason referral not done
  @activity: ANC.B11. Urgent referral needed?
  @description: The reason why the health worker did not refer the woman to a hospital or higher-level facility
*/
define "Reason referral not done":
  [ServiceRequest: Cx."Referral to Hospital"] SNR
    where SNR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and SNR.doNotPerform is true


/*
  @dataElement: ANC.B10.DE113 Risk of pre-eclampsia
  @activity: ANC.B.10.6 Risk reduction & general counselling
  @description: The woman is at risk for developing pre-eclampsia
*/
define "Risk of pre-eclampsia":
  [Condition: Cx."Risk of pre-eclampsia"] C
    where C.clinicalStatus in FC."Active Condition"
      and C.verificationStatus ~ FC."confirmed"


/*
  @dataElement: ANC.B10.DE114 Pre-eclampsia risk counselling provided
  @activity: ANC.B.10.6 Risk reduction & general counselling
  @description: Whether or not counselling on pre-eclampsia was provided
*/
define "Pre-eclampsia risk counselling provided":
  [Procedure: Cx."Pre-eclampsia risk counselling provided"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE115 Amount of daily aspirin prescribed until delivery
  @activity: ANC.B.10.6 Risk reduction & general counselling
  @description: Amount in milligrams (mg) of aspirin prescribed
*/
define "Amount of daily aspirin prescribed until delivery":
  [MedicationRequest] MR
    where MR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(MR.doNotPerform, false) is false


/*
  @dataElement: ANC.B10.DE116 Reason aspirin not prescribed
  @activity: ANC.B.10.6 Risk reduction & general counselling
  @description: Select the reason why the aspirin was not prescribed
*/
define "Reason aspirin not prescribed":
  [MedicationRequest: Cx."Reason aspirin not prescribed"] MR
    where MR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and MR.doNotPerform is true


/*
  @dataElement: ANC.B10.DE121 Risk of gestational diabetes mellitus (GDM)
  @activity: ANC.B.10.6 Risk reduction & general counselling
  @description: The woman is at risk for developing gestational diabetes mellitus (GDM)
*/
define "Risk of gestational diabetes mellitus (GDM)":
  [Condition: Cx."Risk of gestational diabetes mellitus (GDM)"] C
    where C.clinicalStatus in FC."Active Condition"
      and C.verificationStatus ~ FC."confirmed"


/*
  @dataElement: ANC.B10.DE124 Gestational diabetes mellitus (GDM) risk counselling conducted
  @activity: ANC.B.10.6 Risk reduction & general counselling
  @description: Gestational diabetes mellitus (GDM) risk counselling conducted
*/
define "Gestational diabetes mellitus (GDM) risk counselling conducted":
  [Procedure: Cx."Gestational diabetes mellitus (GDM) risk counselling conducted"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE125 Counselling conducted on HIV risk
  @activity: ANC.B.10.6 Risk reduction & general counselling
  @description: Whether counselling on HIV risk was conducted for a client who is at a high risk of HIV
*/
define "Counselling conducted on HIV risk":
  [Procedure: Cx."Counselling conducted on HIV risk"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE126 PrEP for HIV prevention provided
  @activity: ANC.B.10.6 Risk reduction & general counselling
  @description: Whether or not the client has been counselled on use of oral pre-exposure prophylaxis (PrEP) as a means to reduce risk of HIV transmission and provided with oral PrEP
*/
define "PrEP for HIV prevention provided":
  [Procedure: Cx."PrEP for HIV prevention provided"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE127 Reason PrEP for HIV prevention was not provided
  @activity: ANC.B.10.6 Risk reduction & general counselling
  @description: Why the client was not provided with PrEP
*/
define "Reason PrEP for HIV prevention was not provided":
  [MedicationRequest: Cx."Reason PrEP for HIV prevention was not provided"] MR
    where MR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and MR.doNotPerform is true


/*
  @dataElement: ANC.B10.DE132 Amount of oral PrEP provided
  @activity: ANC.B.10.6 Risk reduction & general counselling
  @description: Amount of oral PrEP provided to the woman
*/
define "Amount of oral PrEP provided":
  [MedicationRequest] MR
    where MR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(MR.doNotPerform, false) is false


/*
  @dataElement: ANC.B10.DE133 Counselling conducted on seeking care when danger signs occur
  @activity: ANC.B.10.6 Risk reduction & general counselling
  @description: Counselling provided on when and how to seek care when danger signs are present
*/
define "Counselling conducted on seeking care when danger signs occur":
  [Procedure: Cx."Counselling conducted on seeking care when danger signs occur"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE134 Counsel to immediately go to the hospital if severe danger signs are present
  @activity: ANC.B.10.6 Risk reduction & general counselling
  @description: Counselling on going immediately to the hospital if severe danger signs
*/
define "Counsel to immediately go to the hospital if severe danger signs are present":
  [Procedure: Cx."Counsel to immediately go to the hospital if severe danger signs are present"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE135 Counselling on ANC contact schedule conducted
  @activity: ANC.B.10.6 Risk reduction & general counselling
  @description: Counselling on ANC contact schedule conducted
*/
define "Counselling on ANC contact schedule conducted":
  [Procedure: Cx."Counselling on ANC contact schedule conducted"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE136 Counselling conducted on birth preparedness and complications readiness
  @activity: ANC.B.10.6 Risk reduction & general counselling
  @description: Counselling on birth preparedness and complications readiness conducted
*/
define "Counselling conducted on birth preparedness and complications readiness":
  [Procedure: Cx."Counselling conducted on birth preparedness and complications readiness"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE137 Planned birth place
  @activity: ANC.B.10.6 Risk reduction & general counselling
  @description: Place where woman plans to give birth
*/
define "Planned birth place":
  [Observation: Cx."Planned birth place"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B10.DE142 Counselling conducted on Rh factor negative
  @activity: ANC.B.10.6 Risk reduction & general counselling
  @description: Counselling conducted on Rh factor negative
*/
define "Counselling conducted on Rh factor negative":
  [Procedure: Cx."Counselling conducted on Rh factor negative"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE143 Counselling conducted on intrapartum antibiotic to prevent early neonatal Group B Streptococcus (GBS) infection
  @activity: ANC.B.10.6 Risk reduction & general counselling
  @description: Counselling conducted on intrapartum antibiotic to prevent early neonatal Group B Streptococcus (GBS) infection
*/
define "Counselling conducted on intrapartum antibiotic to prevent early neonatal Group B Streptococcus (GBS) infection":
  [Procedure: Cx."Counselling conducted on intrapartum antibiotic to prevent early neonatal Group B Streptococcus (GBS) infection"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE144 Counselling on postpartum family planning conducted
  @activity: ANC.B.10.6 Risk reduction & general counselling
  @description: Counselling on postpartum family planning conducted
*/
define "Counselling on postpartum family planning conducted":
  [Procedure: Cx."Counselling on postpartum family planning conducted"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE145 Family planning method selected
  @activity: ANC.B.10.6 Risk reduction & general counselling
  @description: Type of postpartum family planning method selected
*/
define "Family planning method selected":
  [Observation: Cx."Family planning method selected"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B10.DE164 Counselling conducted on breastfeeding
  @activity: ANC.B.10.6 Risk reduction & general counselling
  @description: Counselling on breastfeeding was conducted
*/
define "Counselling conducted on breastfeeding":
  [Procedure: Cx."Counselling conducted on breastfeeding"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE175 Reason tetanus toxoid (TT) vaccination not provided
  @activity: ANC.B.10.7 Immunizations
  @description: Select the reason why the TT dose was not given
*/
define "Reason tetanus toxoid (TT) vaccination not provided":
  [Immunization: Cx."Reason tetanus toxoid (TT) vaccination not provided"] IND
    where IND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE181 Counselling conducted on Hep B negative
  @activity: ANC.B.10.7 Immunizations
  @description: Counselling conducted on Hep B negative
*/
define "Counselling conducted on Hep B negative":
  [Procedure: Cx."Counselling conducted on Hep B negative"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE188 No doses of hepatitis B
  @activity: ANC.B.10.7 Immunizations
  @description: No dose, or zero doses, of hepatitis B immunization has ever been provided
*/
define "No doses of hepatitis B":
  [Observation: Cx."No doses of hepatitis B"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B10.DE189 Reason Hep B vaccination not provided
  @activity: ANC.B.10.7 Immunizations
  @description: Select the reason why the Hep B dose was not given
*/
define "Reason Hep B vaccination not provided":
  [Immunization: Cx."Reason Hep B vaccination not provided"] IND
    where IND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE197 Reason flu vaccine not provided
  @activity: ANC.B.10.7 Immunizations
  @description: Select the reason why the flu dose was not given
*/
define "Reason flu vaccine not provided":
  [Immunization: Cx."Reason flu vaccine not provided"] IND
    where IND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE195 Flu immunization provided
  @activity: ANC.B.10.7 Immunizations
  @description: Whether or not the seasonal flu immunization was provided
*/
define "Flu immunization provided":
  [Immunization: Cx."Flu immunization provided"] I
    where I.status = 'completed'
    return I.vaccineCode


/*
  @dataElement: ANC.B10.DE196 Date flu immunization was received
  @activity: ANC.B.10.7 Immunizations
  @description: Date on which this year's seasonal flu dose has been given
*/
define "Date flu immunization was received":
  [Immunization] I
    where I.status = 'completed'
    return I.occurrence as FHIR.dateTime


/*
  @dataElement: ANC.B10.DE182 Hepatitis B-1 immunization provided
  @activity: ANC.B.10.7 Immunizations
  @description: Whether the first dose of hepatitis B immunization was provided
*/
define "Hepatitis B-1 immunization provided":
  [Immunization: Cx."Hepatitis B-1 immunization provided"] I
    where I.status = 'completed'


/*
  @dataElement: ANC.B10.DE183 Date hepatitis B-1 immunization was received
  @activity: ANC.B.10.7 Immunizations
  @description: Date on which the first dose of hepatitis B immunization was provided
*/
define "Date hepatitis B-1 immunization was received":
  [Immunization] I
    where I.status = 'completed'


/*
  @dataElement: ANC.B10.DE184 Hepatitis B-2 immunization provided
  @activity: ANC.B.10.7 Immunizations
  @description: Whether the second dose of hepatitis B immunization was provided
*/
define "Hepatitis B-2 immunization provided":
  [Immunization: Cx."Hepatitis B-2 immunization provided"] I
    where I.status = 'completed'


/*
  @dataElement: ANC.B10.DE185 Date hepatitis B-2 immunization was received
  @activity: ANC.B.10.7 Immunizations
  @description: Date on which the second dose of hepatitis B immunization was provided
*/
define "Date hepatitis B-2 immunization was received":
  [Immunization] I
    where I.status = 'completed'


/*
  @dataElement: ANC.B10.DE186 Hepatitis B-3 immunization provided
  @activity: ANC.B.10.7 Immunizations
  @description: Whether the third dose of hepatitis B immunization was provided
*/
define "Hepatitis B-3 immunization provided":
  [Immunization: Cx."Hepatitis B-3 immunization provided"] I
    where I.status = 'completed'


/*
  @dataElement: ANC.B10.DE187 Date hepatitis B-3 immunization was received
  @activity: ANC.B.10.7 Immunizations
  @description: Date on which the third dose of hepatitis B immunization was provided
*/
define "Date hepatitis B-3 immunization was received":
  [Immunization] I
    where I.status = 'completed'


/*
  @dataElement: ANC.B10.DE165 Tetanus toxoid (TT) 1 immunization provided
  @activity: ANC.B.10.7 Immunizations
  @description: Whether or not the first tetanus toxoid-containing vaccine (TT1) dose was provided
*/
define "Tetanus toxoid (TT) 1 immunization provided":
  [Immunization: Cx."Tetanus toxoid (TT) 1 immunization provided"] I
    where I.status = 'completed'


/*
  @dataElement: ANC.B10.DE166 Date tetanus toxoid 1 immunization was received
  @activity: ANC.B.10.7 Immunizations
  @description: Date on which TT1 was provided
*/
define "Date tetanus toxoid 1 immunization was received":
  [Immunization] I
    where I.status = 'completed'


/*
  @dataElement: ANC.B10.DE167 Tetanus toxoid (TT) 2 immunization provided
  @activity: ANC.B.10.7 Immunizations
  @description: Whether or not the second tetanus toxoid-containing vaccine (TT2) dose was provided
*/
define "Tetanus toxoid (TT) 2 immunization provided":
  [Immunization: Cx."Tetanus toxoid (TT) 2 immunization provided"] I
    where I.status = 'completed'


/*
  @dataElement: ANC.B10.DE168 Date tetanus toxoid 2 immunization was received
  @activity: ANC.B.10.7 Immunizations
  @description: Date on which TT2 was provided
*/
define "Date tetanus toxoid 2 immunization was received":
  [Immunization] I
    where I.status = 'completed'


/*
  @dataElement: ANC.B10.DE169 Tetanus toxoid (TT) 3 immunization provided
  @activity: ANC.B.10.7 Immunizations
  @description: Whether or not the third tetanus toxoid-containing vaccine (TT3) dose was provided
*/
define "Tetanus toxoid (TT) 3 immunization provided":
  [Immunization: Cx."Tetanus toxoid (TT) 3 immunization provided"] I
    where I.status = 'completed'


/*
  @dataElement: ANC.B10.DE170 Date tetanus toxoid 3 immunization was received
  @activity: ANC.B.10.7 Immunizations
  @description: Date on which TT3 was provided
*/
define "Date tetanus toxoid 3 immunization was received":
  [Immunization] I
    where I.status = 'completed'


/*
  @dataElement: ANC.B10.DE171 Tetanus toxoid (TT) 4 immunization provided
  @activity: ANC.B.10.7 Immunizations
  @description: Whether or not the fourth tetanus toxoid-containing vaccine (TT4) dose was provided
*/
define "Tetanus toxoid (TT) 4 immunization provided":
  [Immunization: Cx."Tetanus toxoid (TT) 4 immunization provided"] I
    where I.status = 'completed'


/*
  @dataElement: ANC.B10.DE172 Date tetanus toxoid 4 immunization was received
  @activity: ANC.B.10.7 Immunizations
  @description: Date on which TT4 was provided
*/
define "Date tetanus toxoid 4 immunization was received":
  [Immunization] I
    where I.status = 'completed'


/*
  @dataElement: ANC.B10.DE173 Tetanus toxoid (TT) 5 immunization provided
  @activity: ANC.B.10.7 Immunizations
  @description: Whether or not the fifth tetanus toxoid-containing vaccine (TT5) dose was provided
*/
define "Tetanus toxoid (TT) 5 immunization provided":
  [Immunization: Cx."Tetanus toxoid (TT) 5 immunization provided"] I
    where I.status = 'completed'


/*
  @dataElement: ANC.B10.DE174 Date tetanus toxoid 5 immunization was received
  @activity: ANC.B.10.7 Immunizations
  @description: Date on which TT5 was provided
*/
define "Date tetanus toxoid 5 immunization was received":
  [Immunization] I
    where I.status = 'completed'


/*
  @dataElement: ANC.B10.DE203 IPV first-line support provided
  @activity: ANC.B.10.8 Intimate partner violence first-line support and care
  @description: First-line support includes basic counselling or psychosocial support using LIVES, which involves the following steps: Listen, Inquire, Validate, Enhance safety and Support
*/
define "IPV first-line support provided":
  [Procedure: Cx."IPV first-line support provided"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE204 Reason IPV first line support not done
  @activity: ANC.B.10.8 Intimate partner violence first-line support and care
  @description: Reason IPV first line support not done
*/
define "Reason IPV first line support not done":
  [Procedure: Cx."Reason IPV first line support not done"] PND
    where PND.status = 'not-done'


/*
  @dataElement: ANC.B10.DE210 What additional type of care provided
  @activity: ANC.B.10.8 Intimate partner violence first-line support and care
  @description: What care was provided for survivor/woman subject to intimate partner violence
*/
define "What additional type of care provided":
  [Procedure: Cx."What additional type of care provided"] P
    where P.status in { 'preparation', 'in-progress', 'on-hold', 'completed' }


/*
  @dataElement: ANC.B10.DE216 Safety assessement
  @activity: ANC.B.10.8 Intimate partner violence first-line support and care
  @description: Assess immediate risk of violence/danger
*/
define "Safety assessement":
  [Observation: Cx."Safety assessement"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false


/*
  @dataElement: ANC.B10.DE217 Has the physical violence happened more often or gotten worse over the past 6 months
  @activity: ANC.B.10.8 Intimate partner violence first-line support and care
  @description: Has the physical violence happened more often or gotten worse over the past 6 months?
*/
define "Has the physical violence happened more often or gotten worse over the past 6 months":
  [Observation: Cx."Has the physical violence happened more often or gotten worse over the past 6 months"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.boolean


/*
  @dataElement: ANC.B10.DE218 Has he ever used a weapon or threatened you with a weapon
  @activity: ANC.B.10.8 Intimate partner violence first-line support and care
  @description: Has he ever used a weapon or threatened you with a weapon?
*/
define "Has he ever used a weapon or threatened you with a weapon":
  [Observation: Cx."Has he ever used a weapon or threatened you with a weapon"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.boolean


/*
  @dataElement: ANC.B10.DE219 Has he ever tried to strangle you
  @activity: ANC.B.10.8 Intimate partner violence first-line support and care
  @description: Has he ever tried to strangle you?
*/
define "Has he ever tried to strangle you":
  [Observation: Cx."Has he ever tried to strangle you"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.boolean


/*
  @dataElement: ANC.B10.DE220 Has he ever beaten you when you were pregnant
  @activity: ANC.B.10.8 Intimate partner violence first-line support and care
  @description: Has he ever beaten you when you were pregnant?
*/
define "Has he ever beaten you when you were pregnant":
  [Observation: Cx."Has he ever beaten you when you were pregnant"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.boolean


/*
  @dataElement: ANC.B10.DE221 Is he violently and constantly jealous of you
  @activity: ANC.B.10.8 Intimate partner violence first-line support and care
  @description: Is he violently and constantly jealous of you?
*/
define "Is he violently and constantly jealous of you":
  [Observation: Cx."Is he violently and constantly jealous of you"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.boolean


/*
  @dataElement: ANC.B10.DE222 Do you believe he could kill you
  @activity: ANC.B.10.8 Intimate partner violence first-line support and care
  @description: Do you believe he could kill you?
*/
define "Do you believe he could kill you":
  [Observation: Cx."Do you believe he could kill you"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.boolean


/*
  @dataElement: ANC.B10.DE223 Referrals made as part of first-line support and care
  @activity: ANC.B.10.8 Intimate partner violence first-line support and care
  @description: Referrals made as part of first-line support and care
*/
define "Referrals made as part of first-line support and care":
  [ServiceRequest: Cx."Referrals made as part of first-line support and care"] SR
    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(SR.doNotPerform, false) is false


/*
  @dataElement: ANC.B10.DE224 Was client referred
  @activity: ANC.B.10.8 Intimate partner violence first-line support and care
  @description: Whether the client was referred to external services
*/
define "Was client referred":
  [Observation: Cx."Was client referred"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.CodeableConcept


/*
  @dataElement: ANC.C.DE1 Emergency referral
  @activity: ANC.C1. Emergency referral?
  @description: Referral for urgent care
*/
define "Emergency referral":
  [ServiceRequest: Cx."Emergency referral"] SR
    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(SR.doNotPerform, false) is false
    return SR.code


/*
  @dataElement: ANC.C.DE6 Date of scheduled referral
  @activity: ANC.C1. Emergency referral?
  @description: When the referral is scheduled
*/
define "Date of scheduled referral":
  [ServiceRequest] SR
    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(SR.doNotPerform, false) is false
    return SR.occurrence as FHIR.dateTime


/*
  @dataElement: ANC.C.DE7 Location of referral
  @activity: ANC.C1. Emergency referral?
  @description: Where the client is being referred to
*/
define "Location of referral":
  [ServiceRequest] SR
    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(SR.doNotPerform, false) is false
    return SR.locationReference


/*
  @dataElement: ANC.C.DE8 Date referral was made
  @activity: ANC.C1. Emergency referral?
  @description: The date the referral was made
*/
define "Date referral was made":
  [ServiceRequest] SR
    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(SR.doNotPerform, false) is false
    return SR.authoredOn


/*
  @dataElement: ANC.C.DE9 Provider who made referral
  @activity: ANC.C1. Emergency referral?
  @description: The name of the provider who made the referral
*/
define "Provider who made referral":
  [ServiceRequest] SR
    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(SR.doNotPerform, false) is false
    return SR.requester


/*
  @dataElement: ANC.C.DE12 Referral notes
  @activity: ANC.C1. Emergency referral?
  @description: Any additional relevant details of clinical significance for the referral facility to provide continuity of care
*/
define "Referral notes":
  [ServiceRequest] SR
    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(SR.doNotPerform, false) is false
    return SR.note


/*
  @dataElement: ANC.C.DE13 Client history summary
  @activity: ANC.C1. Emergency referral?
  @description: With interoperable systems, the provider receiving the referral should be able to access the client's health record digitally. However, in the absence of this, the referral provider should receive a summary of the client's health records that includes the client's history, reported issues and concerns, and any other relevant clinical information the health-care provider had already obtained
*/
define "Client history summary":
  [ServiceRequest] SR
    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(SR.doNotPerform, false) is false
    return SR.relevantHistory


/*
  @dataElement: ANC.C.DE2 Reason for referral
  @activity: ANC.C6. Provide information to referral facility
  @description: Reason why the client is being referred
*/
define "Reason for referral":
  [ServiceRequest: Cx."Reason for referral"] SR
    where SR.status in { 'draft', 'active', 'on-hold', 'completed' }
      and Coalesce(SR.doNotPerform, false) is false
    return SR.code


/*
  @dataElement: ANC.C.DE5 Any treatment given before referral
  @activity: ANC.C6. Provide information to referral facility
  @description: If woman was referred, was any treatment provided before referral?
*/
define "Any treatment given before referral":
  [Observation: Cx."Any treatment given before referral"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.boolean


/*
  @dataElement: ANC.C.DE10 Provider's facility
  @activity: ANC.C6. Provide information to referral facility
  @description: Facility client is being referred from
*/
define "Provider's facility":
  [PractitionerRole]

/*
  @dataElement: ANC.C.DE11 Provider's telephone number
  @activity: ANC.C6. Provide information to referral facility
  @description: The contact details of the provider making the referral
*/
define "Provider's telephone number":
  [PractitionerRole]

/*
  @dataElement: ANC.End.1 Reason for closing ANC record
  @activity: ANC.End End
  @description: Select the reason why you are closing the woman's ANC record
*/
define "Reason for closing ANC record":
  [Observation: Cx."Reason for closing ANC record"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    //return O.value as FHIR.CodeableConcept


/*
  @dataElement: ANC.End.12 Delivery date
  @activity: ANC.End End
  @description: Date on which the woman delivered
*/
define "Delivery date":
  [Observation: Cx."Delivery date"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.dateTime


/*
  @dataElement: ANC.End.13 Place of delivery
  @activity: ANC.End End
  @description: Place where the woman delivered
*/
define "Place of delivery":
  [Encounter: Cx."Place of delivery"]

/*
  @dataElement: ANC.End.17 Preterm Birth
  @activity: ANC.End End
  @description: The woman gave birth when the gestational age was less than 37 weeks
*/
define "Preterm Birth":
  [Observation: Cx."Preterm Birth"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.boolean


/*
  @dataElement: ANC.End.18 Delivery mode
  @activity: ANC.End End
  @description: How the woman gave birth/delivered
*/
define "Delivery mode":
  [Observation: Cx."Delivery mode"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.CodeableConcept


/*
  @dataElement: ANC.End.23 Birth weight
  @activity: ANC.End End
  @description: Enter the birth weight of the baby in kg
*/
define "Birth weight":
  [Observation: Cx."Birth weight"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.Quantity


/*
  @dataElement: ANC.End.24 Exclusively breastfeeding
  @activity: ANC.End End
  @description: Specify whether the woman is exclusively breastfeeding
*/
define "Exclusively breastfeeding":
  [Observation: Cx."Exclusively breastfeeding"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.boolean


/*
  @dataElement: ANC.End.25 Delivery complications
  @activity: ANC.End End
  @description: Any complications that occurred during delivery
*/
define "Delivery complications":
  [Observation: Cx."Delivery complications"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.CodeableConcept


/*
  @dataElement: ANC.End.38 Date of miscarriage or abortion
  @activity: ANC.End End
  @description: Date of the miscarriage/abortion
*/
define "Date of miscarriage or abortion":
  [Observation: Cx."Date of miscarriage or abortion"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.dateTime


/*
  @dataElement: ANC.End.39 Date of death
  @activity: ANC.End End
  @description: Date that the woman died
*/
define "Date of death":
  [Observation: Cx."Date of death"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.dateTime


/*
  @dataElement: ANC.End.40 Cause of death
  @activity: ANC.End End
  @description: Cause of the woman's death
*/
define "Cause of death":
  [Observation: Cx."Cause of death"] O
    where O.status in { 'final', 'amended', 'corrected' }
      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false
    return O.value as FHIR.CodeableConcept
Content: application/elm+xml
Encoded data (2463940 characters)
Content: application/elm+json
Encoded data (4542772 characters)