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 04:55:21+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: |
Name | Type | Min | Max | In/Out |
encounter | string | 0 | 1 | In |
Patient | Patient | 0 | 1 | Out |
Should Provide counselling on pre-eclampsia risk | boolean | 0 | 1 | Out |
Should Provide counselling on pre-eclampsia risk 2 | boolean | 0 | 1 | Out |
Should Provide counselling on pre-eclampsia risk 3 | boolean | 0 | 1 | Out |
|
Data Requirements: |
Type | Profile | MS | Code 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)
|
|