Id: |
ANCDT28 |
Url: |
ANC.DT.28 Gestational diabetes mellitus (GDM) risk counselling |
Version: |
0.3.0 |
Identifier: |
value: ANC.DT.28
|
Name: |
ANCDT28 |
Title: |
ANC.DT.28 Gestational diabetes mellitus (GDM) 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 gestational diabetes mellitus (GDM), provide counselling to reduce risk of developing GDM |
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 gestational diabetes mellitus (GDM) risk | 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-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-b8-de4
|
Observation |
http://hl7.org/fhir/StructureDefinition/Observation |
;;;;; |
code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de150
|
|
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+xml |
Encoded data (34804 characters)
|
|
Content: application/elm+json |
Encoded data (59152 characters)
|
|