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.28 Gestational diabetes mellitus (GDM) risk counselling

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

If the woman has risk factors for developing gestational diabetes mellitus (GDM), provide counselling to reduce risk of developing GDM

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:
NameTypeMinMaxIn/Out
encounterstring01In
PatientPatient01Out
Should Provide counselling on gestational diabetes mellitus (GDM) riskboolean01Out
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-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)