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.DT.27 Pre-eclampsia risk counselling

Official URL: http://fhir.org/guides/who/anc-cds/Library/ANCDT27 Version: 0.3.0
Active as of 2024-09-10 Computable Name: ANCDT27
Other Identifiers: ANC.DT.27 (use: official, )

If the woman has risk factors for developing pre-eclampsia, provide counselling to reduce risk of developing pre-eclampsia

Id: ANCDT27
Url: ANC.DT.27 Pre-eclampsia risk counselling
Version: 0.3.0
Identifier:

value: ANC.DT.27

Name: ANCDT27
Title: ANC.DT.27 Pre-eclampsia risk counselling
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: If the woman has risk factors for developing pre-eclampsia, provide counselling to reduce risk of developing pre-eclampsia
Jurisdiction: 001
Related Artifacts:

Dependencies

Parameters:
NameTypeMinMaxIn/Out
encounterstring01In
PatientPatient01Out
Should Provide counselling on pre-eclampsia riskboolean01Out
Should Provide counselling on pre-eclampsia risk 2boolean01Out
Should Provide counselling on pre-eclampsia risk 3boolean01Out
Data Requirements:
TypeProfileMSCode Filter
Patient http://hl7.org/fhir/StructureDefinition/Patient
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-de83
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-b6-de17
Content: text/cql
library ANCDT27

using FHIR version '4.0.1'

include FHIRHelpers version '4.0.1'

include ANCConfig called Config
include ANCConcepts called Cx
include ANCDataElements called PatientData
include ANCContactDataElements called ContactData

context Patient

/*
((((((("Number of fetuses" ≥ 2 )
  OR ("Past pregnancy complications" = "Pre-eclampsia"))
  OR ("Past pregnancy complications" = "Eclampsia"))
  OR ("Past pregnancy complications" = "Convulsions"))
  OR ("Existing chronic health conditions" = "Autoimmune disease"))
  OR ("Existing chronic health conditions" = "Diabetes"))
  OR ("Existing chronic health conditions" = "Hypertension"))
  OR ("Existing chronic health conditions" = "Kidney disease")
*/
define "Should Provide counselling on pre-eclampsia risk":
  ContactData."Number of fetuses" >= 2
    or ContactData."Past pregnancy complications" in Cx."Past pregnancy complications - Pre-eclampsia Choices"
    or ContactData."Past pregnancy complications" in Cx."Past pregnancy complications - Eclampsia Choices"
    or ContactData."Past pregnancy complications" in Cx."Past pregnancy complications - Convulsions Choices"
    or ContactData."Existing chronic health conditions" in Cx."Existing chronic health conditions - Autoimmune disease Choices"
    or ContactData."Existing chronic health conditions" in Cx."Existing chronic health conditions - Diabetes arising in pregnancy (gestational diabetes) Choices"
    or ContactData."Existing chronic health conditions" in Cx."Existing chronic health conditions - Diabetes, other or unspecified Choices"
    or ContactData."Existing chronic health conditions" in Cx."Existing chronic health conditions - Diabetes, pre-existing type 1 Choices"
    or ContactData."Existing chronic health conditions" in Cx."Existing chronic health conditions - Diabetes, pre-existing type 2 Choices"
    or ContactData."Existing chronic health conditions" in Cx."Existing chronic health conditions - Hypertension Choices"
    or ContactData."Existing chronic health conditions" in Cx."Existing chronic health conditions - Kidney disease Choices"

/*
(((((((("Number of fetuses" ≥ 2 )
  AND ("Gestational age" ≥ 12 weeks))
  OR (("Past pregnancy complications" = "Pre-eclampsia")
  AND ("Gestational age" ≥ 12 weeks)))
  OR (("Past pregnancy complications" = "Eclampsia")
  AND ("Gestational age" ≥ 12 weeks)))
  OR (("Past pregnancy complications" = "Convulsions")
  AND ("Gestational age" ≥ 12 weeks)))
  OR (("Existing chronic health conditions" = "Autoimmune disease")
  AND ("Gestational age" ≥ 12 weeks)))
  OR (("Existing chronic health conditions" = "Diabetes")
  AND ("Gestational age" ≥ 12 weeks)))
  OR (("Existing chronic health conditions" = "Hypertension")
  AND ("Gestational age" ≥ 12 weeks)))
  OR (("Existing chronic health conditions" = "Kidney disease")
  AND ("Gestational age" ≥ 12 weeks))
*/
define "Should Provide counselling on pre-eclampsia risk 2":
  ContactData."Gestational age" <= 12 'weeks'
    and (
      ContactData."Number of fetuses" >= 2
        or ContactData."Past pregnancy complications" in Cx."Past pregnancy complications - Pre-eclampsia Choices"
        or ContactData."Past pregnancy complications" in Cx."Past pregnancy complications - Eclampsia Choices"
        or ContactData."Past pregnancy complications" in Cx."Past pregnancy complications - Convulsions Choices"
        or ContactData."Existing chronic health conditions" in Cx."Existing chronic health conditions - Autoimmune disease Choices"
        or ContactData."Existing chronic health conditions" in Cx."Existing chronic health conditions - Diabetes arising in pregnancy (gestational diabetes) Choices"
        or ContactData."Existing chronic health conditions" in Cx."Existing chronic health conditions - Diabetes, other or unspecified Choices"
        or ContactData."Existing chronic health conditions" in Cx."Existing chronic health conditions - Diabetes, pre-existing type 1 Choices"
        or ContactData."Existing chronic health conditions" in Cx."Existing chronic health conditions - Diabetes, pre-existing type 2 Choices"
        or ContactData."Existing chronic health conditions" in Cx."Existing chronic health conditions - Hypertension Choices"
        or ContactData."Existing chronic health conditions" in Cx."Existing chronic health conditions - Kidney disease Choices"
    )

/*
(((((((("Number of fetuses" ≥ 2)
  AND ("Gestational age" ≥ 12 weeks)
  AND ("Population with low dietary calcium intake" = TRUE))
  OR (("Past pregnancy complications" = "Pre-eclampsia")
  AND ("Gestational age" ≥ 12 weeks)
  AND ("Population with low dietary calcium intake" = TRUE)))
  OR (("Past pregnancy complications" = "Eclampsia")
  AND ("Gestational age" ≥ 12 weeks)
  AND ("Population with low dietary calcium intake" = TRUE)))
  OR (("Past pregnancy complications" = "Convulsions")
  AND ("Gestational age" ≥ 12 weeks)
  AND ("Population with low dietary calcium intake" = TRUE)))
  OR (("Existing chronic health conditions" = "Autoimmune disease")
  AND ("Gestational age" ≥ 12 weeks)
  AND ("Population with low dietary calcium intake" = TRUE)))
  OR (("Existing chronic health conditions" = "Diabetes")
  AND ("Gestational age" ≥ 12 weeks)
  AND ("Population with low dietary calcium intake" = TRUE)))
  OR (("Existing chronic health conditions" = "Hypertension")
  AND ("Gestational age" ≥ 12 weeks)
  AND ("Population with low dietary calcium intake" = TRUE)))
  OR (("Existing chronic health conditions" = "Kidney disease")
  AND ("Gestational age" ≥ 12 weeks)
  AND ("Population with low dietary calcium intake" = TRUE))
*/
define "Should Provide counselling on pre-eclampsia risk 3":
  Config."Population with low dietary calcium intake"
    and ContactData."Gestational age" <= 12 'weeks'
    and (
      ContactData."Number of fetuses" >= 2
        or ContactData."Past pregnancy complications" in Cx."Past pregnancy complications - Pre-eclampsia Choices"
        or ContactData."Past pregnancy complications" in Cx."Past pregnancy complications - Eclampsia Choices"
        or ContactData."Past pregnancy complications" in Cx."Past pregnancy complications - Convulsions Choices"
        or ContactData."Existing chronic health conditions" in Cx."Existing chronic health conditions - Autoimmune disease Choices"
        or ContactData."Existing chronic health conditions" in Cx."Existing chronic health conditions - Diabetes arising in pregnancy (gestational diabetes) Choices"
        or ContactData."Existing chronic health conditions" in Cx."Existing chronic health conditions - Diabetes, other or unspecified Choices"
        or ContactData."Existing chronic health conditions" in Cx."Existing chronic health conditions - Diabetes, pre-existing type 1 Choices"
        or ContactData."Existing chronic health conditions" in Cx."Existing chronic health conditions - Diabetes, pre-existing type 2 Choices"
        or ContactData."Existing chronic health conditions" in Cx."Existing chronic health conditions - Hypertension Choices"
        or ContactData."Existing chronic health conditions" in Cx."Existing chronic health conditions - Kidney disease Choices"
    )
Content: application/elm+xml
Encoded data (124176 characters)
Content: application/elm+json
Encoded data (220508 characters)