Clinical Practice Guidelines Example Implementation Guide - Antenatal Care Guidelines
1.0.0 - ci-build
Clinical Practice Guidelines Example Implementation Guide - Antenatal Care Guidelines, published by HL7 International - Clinical Decision Support WG. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/cpg-example-anc/ and changes regularly. See the Directory of published versions
Official URL: http://github.com/cqframework/cpg-example-anc/Library/ANCCommon | Version: 1.0.0 | |||
Active as of 2024-11-14 | 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
Documentation | WHO guideline for a positive pregnancy experience | https://www.who.int/reproductivehealth/publications/maternal_perinatal_health/anc-positive-pregnancy-experience/en |
Depends On | Code System OpenMRSEntity | http://openmrs.org/concepts |
Depends On | Value Set Active Condition | CPG Active Condition Value Set |
Patient | out | 0 | 1 | Patient |
Gestational Age in Weeks | out | 0 | 1 | Quantity |
Up to 12 Weeks | out | 0 | 1 | boolean |
20 weeks gestation | out | 0 | 1 | boolean |
26 weeks gestation | out | 0 | 1 | boolean |
30 weeks gestation | out | 0 | 1 | boolean |
34 weeks gestation | out | 0 | 1 | boolean |
36 weeks gestation | out | 0 | 1 | boolean |
38 weeks gestation | out | 0 | 1 | boolean |
40 weeks gestation | out | 0 | 1 | boolean |
Type: Observation (Observation) | |
Filter | Value |
code | One of these codes: concepts 1438AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA: Weeks of gestational age |
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 )