| Title: |
ANC.DT.28 Gestational diabetes mellitus (GDM) risk counselling |
| Id: |
ANCDT28 |
| Version: |
0.3.0 |
| Url: |
ANC.DT.28 Gestational diabetes mellitus (GDM) risk counselling |
|
Official
|
ANC.DT.28
|
| Type: |
system: http://terminology.hl7.org/CodeSystem/library-type
code: logic-library
|
| Date: |
2025-08-16 08:48:39+0000 |
| Publisher: |
World Health Organization (WHO) |
| Description: |
If the woman has risk factors for developing gestational diabetes mellitus (GDM), provide counselling to reduce risk of developing GDM
|
| Jurisdiction: |
001 |
| Related Artifacts: |
Dependencies
|
| Parameters: |
| Name | Type | Min | Max | In/Out |
| Patient | Patient | 0 | 1 | Out |
| Should Provide counselling on gestational diabetes mellitus (GDM) risk | boolean | 0 | 1 | Out |
|
| Data Requirements: |
| Type | Profile | MS | Code Filter |
| Patient |
http://hl7.org/fhir/StructureDefinition/Patient |
|
|
|
| Content: text/cql |
library ANCDT28
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
/*
((((((("BMI" ≥ 30)
AND ("Gestational diabetes mellitus (GDM) diagnosis" = "GDM negative")
AND ("Diabetes mellitus (DM) during pregnancy diagnosis" = "DM negative"))
OR (("Past pregnancy complications" = "Gestational diabetes mellitus")
AND ("Gestational diabetes mellitus (GDM) diagnosis" = "GDM negative")
AND ("Diabetes mellitus (DM) during pregnancy diagnosis" = "DM negative")))
OR (("Past pregnancy complications" = "Macrosomia")
AND ("Gestational diabetes mellitus (GDM) diagnosis" = "GDM negative")
AND ("Diabetes mellitus (DM) during pregnancy diagnosis" = "DM negative")))
OR (("Urine dipstick result – glucose" = "++")
AND ("Gestational diabetes mellitus (GDM) diagnosis" = "GDM negative")
AND ("Diabetes mellitus (DM) during pregnancy diagnosis" = "DM negative")))
OR (("Urine dipstick result – glucose" = "+++")
AND ("Gestational diabetes mellitus (GDM) diagnosis" = "GDM negative")
AND ("Diabetes mellitus (DM) during pregnancy diagnosis" = "DM negative")))
OR (("Urine dipstick result – glucose" = "++++")
AND ("Gestational diabetes mellitus (GDM) diagnosis" = "GDM negative")
AND ("Diabetes mellitus (DM) during pregnancy diagnosis" = "DM negative")))
OR (("Urine dipstick result – glucose" = "+" ON MORE THAN ONE TEST ACROSS PREGNANCY)
AND ("Gestational diabetes mellitus (GDM) diagnosis" = "GDM negative")
AND ("Diabetes mellitus (DM) during pregnancy diagnosis" = "DM negative"))
*/
define "Should Provide counselling on gestational diabetes mellitus (GDM) risk":
ContactData."Gestational diabetes mellitus (GDM) diagnosis" in Cx."Gestational diabetes mellitus (GDM) diagnosis - Negative Choices"
and ContactData."Diabetes mellitus (DM) during pregnancy diagnosis" in Cx."Gestational diabetes mellitus (GDM) diagnosis - Negative Choices"
and (
ContactData."BMI" >= 30
or ContactData."Past pregnancy complications" in Cx."Past pregnancy complications - Gestational diabetes mellitus Choices"
or ContactData."Past pregnancy complications" in Cx. "Past pregnancy complications - Macrosomia Choices"
or ContactData."Urine dipstick result - glucose" in Cx. "Urine dipstick result - glucose - 2 plus Choices"
or ContactData."Urine dipstick result - glucose" in Cx. "Urine dipstick result - glucose - 3 plus Choices"
or ContactData."Urine dipstick result - glucose" in Cx. "Urine dipstick result - glucose - 4 plus Choices"
or (Count(PatientData."Urine dipstick result - glucose" O where O.value in Cx. "Urine dipstick result - glucose - 1 plus Choices") > 1)
)
|
|
| Content: application/elm+json |
Encoded data (64244 characters)
|
|