Clinical Practice Guidelines Example Implementation Guide - Antenatal Care Guidelines
1.0.0 - ci-build International flag

Clinical Practice Guidelines Example Implementation Guide - Antenatal Care Guidelines - Local Development build (v1.0.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

Library: WHO Antenatal Care Guidelines Common Logic (Experimental)

Official URL: http://cqframework.org/cpg-example-anc/Library/ANCCommon Version: 1.0.0
Active as of 2024-11-18 Computable Name: ANCCommon
Other Identifiers: ANCCommon (use: official, )

Usage:Clinical Focus: Pregnancy (finding)

Copyright/Legal: © WHO 2019+.

Decision Support Logic for use in WHO Antenatal Care Guidelines

Generated Narrative: Library ANCCommon

Related Artifacts

DocumentationWHO guideline for a positive pregnancy experiencehttps://www.who.int/reproductivehealth/publications/maternal_perinatal_health/anc-positive-pregnancy-experience/en
Depends OnCode System OpenMRSEntityhttp://openmrs.org/concepts
Depends OnValue Set Active ConditionCPG Active Condition Value Set

Parameters

Patientout01Patient
Gestational Age in Weeksout01Quantity
Up to 12 Weeksout01boolean
20 weeks gestationout01boolean
26 weeks gestationout01boolean
30 weeks gestationout01boolean
34 weeks gestationout01boolean
36 weeks gestationout01boolean
38 weeks gestationout01boolean
40 weeks gestationout01boolean

Data Requirements

Type: Observation (Observation)
FilterValue
codeOne of these codes: concepts 1438AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA: Weeks of gestational age

Contents

text/cql

library ANCCommon version '0.1.0'

using FHIR version '4.0.1'

include FHIRHelpers version '4.0.1'

codesystem OpenMRSEntity: 'http://openmrs.org/concepts'

valueset "Active Condition": 'http://hl7.org/fhir/uv/cpg/ValueSet/cpg-active-condition-vs'

code LMP: '1427AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' from OpenMRSEntity display 'Date of last menstrual period'
code UltrasoundGA: '165220AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' from OpenMRSEntity display 'Gestational age in weeks from ultrasound'
code FundalHeight: '1439AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' from OpenMRSEntity display 'FUNDAL HEIGHT'
code "Weeks of gestational age": '1438AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' from OpenMRSEntity display 'Weeks of gestational age'

context Patient

//define GestationalAgeFromLMP:
  // Calculate from LMP if known
  // Observation from Ultrasound
  // Observation from SFH or abdominal palpitation
  // If Gestational Age and Estimated Due Date are calculated from different values, health worker should select gestational age

define "Gestational Age in Weeks":
  First(
    ["Observation": "Weeks of gestational age"] O
		  where O.status in { 'final', 'amended' }
      sort by FHIRHelpers.ToDateTime(effective as FHIR.dateTime) descending
  ).value as Quantity

define "Up to 12 Weeks":
  "Gestational Age in Weeks" <= 12

define "20 weeks gestation":
  "Gestational Age in Weeks" = 20

define "26 weeks gestation":
	"Gestational Age in Weeks" = 26

define "30 weeks gestation":
	"Gestational Age in Weeks" = 30

define "34 weeks gestation":
	"Gestational Age in Weeks" = 34

define "36 weeks gestation":
	"Gestational Age in Weeks" = 36

define "38 weeks gestation":
	"Gestational Age in Weeks" = 38

define "40 weeks gestation":
	"Gestational Age in Weeks" = 40

Content not shown - (application/elm+xml, size = 22Kb )