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.34 Birth preparedness counselling

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

General counselling to be provided/reviewed at every contact

Id: ANCDT34
Url: ANC.DT.34 Birth preparedness counselling
Version: 0.3.0
Identifier:

value: ANC.DT.34

Name: ANCDT34
Title: ANC.DT.34 Birth preparedness 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: General counselling to be provided/reviewed at every contact
Jurisdiction: 001
Related Artifacts:

Dependencies

Parameters:
NameTypeMinMaxIn/Out
encounterstring01In
PatientPatient01Out
Should Conduct counselling on birth preparedness and complications readinessboolean01Out
Should Conduct counselling on birth preparedness and complications readiness 2boolean01Out
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-b7-de43
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b8-de111
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de33
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-b10-de145
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de24
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de32
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b9-de45
Observation http://hl7.org/fhir/StructureDefinition/Observation ;;;; code filter:
path: code
value set: http://fhir.org/guides/who/anc-cds/ValueSet/anc-b10-de137
Content: text/cql
library ANCDT34

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

/*
(((((((((((((((Age" ≤ 17 years)
  OR ("Fetal presentation" = "Transverse fetal presentation"))
  OR ("Fetal presentation" = "Other fetal presentation (specify)"))
  OR (Number of caesarian sections" > 0))
  OR ("Number of fetuses" > 1))
  OR ("Family planning method provided" = "Copper-bearing intrauterine device (Cu-IUD)"))
  OR ("Family planning method provided" = "Levonorgestrel intrauterine device (LNG-IUD)"))
  OR ("Family planning method provided" = "Female sterilization"))
  OR ("Past pregnancy complications" = "Convulsions"))
  OR ("Past pregnancy complications" = "Heavy bleeding (during or after delivery)"))
  OR ("Past pregnancy complications" = "Forceps or vacuum delivery"))
  OR ("Past pregnancy complications" = "3rd or 4th degree tear"))
  OR ("Current physiological symptoms" = "Vaginal bleeding"))
  OR ("Number of pregnancies (gravida)" = 1))
  OR ("Parity" > 5))
  OR ("HIV status" = "HIV positive")
*/
define "Should Conduct counselling on birth preparedness and complications readiness":
  (AgeInYearsAt(Today()) <= 17)
    or ContactData."Fetal presentation" in Cx."Fetal presentation - Transverse fetal presentation Choices"
    or ContactData."Fetal presentation" in Cx."Fetal presentation - Other fetal presentation (specify) Choices"
    or ContactData."Number of caesarian sections" > 0
    or ContactData."Number of fetuses" > 1
    or (ContactData."Family planning method selected" in Cx."Family planning method selected - Copper-bearing intrauterine device (Cu-IUD) Choices")
    or (ContactData."Family planning method selected" in Cx."Family planning method selected - Levonorgestrel intrauterine device (LNG-IUD) Choices")
    or (ContactData."Family planning method selected" in Cx."Family planning method selected - Female sterilization Choices")
    or (ContactData."Past pregnancy complications" in Cx."Past pregnancy complications - Convulsions Choices")
    or (ContactData."Past pregnancy complications" in Cx."Past pregnancy complications - Heavy bleeding (during or after delivery) Choices")
    or (ContactData."Past pregnancy complications" in Cx."Past pregnancy complications - Forceps Choices")
    or (ContactData."Past pregnancy complications" in Cx."Past pregnancy complications - Perineal tear (3rd or 4th degree) Choices")
    or (ContactData."Current physiological symptoms" in Cx."Current physiological symptoms - Vaginal bleeding Choices")
    or ContactData."Number of pregnancies (gravida)" = 1
    or ContactData."Parity" > 5
    or ContactData."HIV status" in Cx."HIV status - HIV positive Choices"

/*
"Planned birth place" = "Home"
*/
define "Should Conduct counselling on birth preparedness and complications readiness 2":
  ContactData."Planned birth place" in Cx."Planned birth place - Home Choices"
Content: application/elm+xml
Encoded data (59572 characters)
Content: application/elm+json
Encoded data (107968 characters)