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, 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

: WHO Antenatal Care Guidelines Logic for recommendation #A2 - XML Representation

Active as of 2024-11-14

Raw xml | Download


<Library xmlns="http://hl7.org/fhir">
  <id value="ANCRecommendationA2"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: Library ANCRecommendationA2</b></p><a name="ANCRecommendationA2"> </a><a name="hcANCRecommendationA2"> </a><a name="ANCRecommendationA2-en-US"> </a><h2>Related Artifacts</h2><table class="grid"><tr><td>Documentation</td><td>WHO guideline for a positive pregnancy experience</td><td>https://www.who.int/reproductivehealth/publications/maternal_perinatal_health/anc-positive-pregnancy-experience/en</td></tr></table><h2>Contents</h2><p><code>text/cql</code></p><pre><code class="language-sql">library ANCRecommendationA2 version '0.1.0'

using FHIR version '4.0.1'

include FHIRHelpers version '4.0.1'
include ANCCommon version '0.1.0' called Common

code &quot;Hb&quot;: '165395AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' from Common.OpenMRSEntity display 'Haemoglobin measured from haemoglobinometer (g/dl)'
code &quot;Iron Intake Compliance&quot;: '165272AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' from Common.OpenMRSEntity display 'Iron intake compliance'
code &quot;Iron Side Effects&quot;: '165273AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' from Common.OpenMRSEntity display 'Iron side effects' // NOTE: OpenMRS concept is just side effects from medication

// TODO: How do parameters like this get configured for local/site usage
//parameter &quot;Anaemia Prevalence&quot; System.Quantity default 40 '%'

context Patient

// TODO: Configuring in-line directly for now
define &quot;Anaemia Prevalence&quot;: 40 '%'

/*
IAF - Iron and Folic Acid Supplements

RECOMMENDATION A.2.1: Daily oral iron and folic acid supplementation with 30 mg to
60 mg of elemental iron and 400 μg (0.4 mg) folic acid is recommended for pregnant
women to prevent maternal anaemia, puerperal sepsis, low birth weight, and preterm birth.
(Recommended)

RECOMMENDATION A.2.2: Intermittent oral iron and folic acid supplementation with 120 mg
of elemental iron and 2800 μg (2.8 mg) of folic acid once weekly is recommended for pregnant
women to improve maternal and neonatal outcomes if daily iron is not acceptable due to sideeffects,
and in populations with an anaemia prevalence among pregnant women of less than
20%. (Context-specific recommendation)

On every contact,
  if anaemia detected
    recommend 120 mg of elemental iron daily (Recommendation A.2.1)
  else if population anaemia prevalence &gt;= 40%
    recommend 60 mg of elemental iron and 400 ug of folic acid, daily (Recommendation A.2.1)
  else if population anaemia prevalence &lt; 20% or daily iron not acceptable due to side-effects
    recommend intermittent oral iron: 120 mg of oral iron, and 2.8 ug of folic acid, weekly (Recommendation A.2.2)
  else
    recommend 30 to 60 mg of elemental iron and 400 ug of folic acid, daily (Recommendation A.2.1)
  check iron-intake compliance;
  check iron-side effects;

Has Anaemia
  Hb Concentration &lt; 11 g/dL and Gestational Age &lt; 12 weeks or Gestational Age &gt; 28 weeks
  Hb Concentration &lt; 10.5 g/dL and Gestational Age between 13 weeks and 27 weeks
*/

define &quot;Has Anaemia&quot;:
  if Common.&quot;Gestational Age in Weeks&quot; between 13 weeks and 27 weeks then
    &quot;Hb Concentration&quot; &lt; 10.5 'g/dL'
  else
    &quot;Hb Concentration&quot; &lt; 11 'g/dL'

define &quot;Hb Concentration&quot;:
  First(
    [&quot;Observation&quot;: &quot;Hb&quot;] O
		  where O.status = 'final'
			  and O.effective after Common.&quot;Start of Current Pregnancy&quot;
      sort by FHIRHelpers.ToDateTime(effective as FHIR.dateTime) descending
  ).value as Quantity

define &quot;Has Iron Side-Effects&quot;:
  exists (
    [&quot;Condition&quot;: &quot;Iron Side Effects&quot;] C
		  where C.onset on or after Common.&quot;Start of Current Pregnancy&quot;
			  and C.clinicalStatus in Common.&quot;Active Condition&quot;
  )
</code></pre><p><code>No Content</code> (<code>application/elm+xml</code>)</p></div>
  </text>
  <url
       value="http://github.com/cqframework/cpg-example-anc/Library/ANCRecommendationA2"/>
  <identifier>
    <use value="official"/>
    <value value="ANCRecommendationA2"/>
  </identifier>
  <version value="1.0.0"/>
  <name value="ANCRecommendationA2"/>
  <title value="WHO Antenatal Care Guidelines Logic for recommendation #A2"/>
  <status value="active"/>
  <experimental value="true"/>
  <type>
    <coding>
      <system value="http://terminology.hl7.org/CodeSystem/library-type"/>
      <code value="logic-library"/>
      <display value="Logic Library"/>
    </coding>
  </type>
  <date value="2024-11-14T21:47:54+00:00"/>
  <publisher value="HL7 International - Clinical Decision Support WG"/>
  <contact>
    <name value="HL7 International - Clinical Decision Support WG"/>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/dss/index.cfm"/>
    </telecom>
  </contact>
  <description
               value="Decision Support Logic for use in ANC Recommendation A2"/>
  <useContext>
    <code>
      <system
              value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
      <code value="focus"/>
    </code>
    <valueCodeableConcept>
      <coding>
        <system value="http://snomed.info/sct"/>
        <code value="77386006"/>
        <display value="Pregnancy (finding)"/>
      </coding>
    </valueCodeableConcept>
  </useContext>
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
      <code value="001"/>
      <display value="World"/>
    </coding>
  </jurisdiction>
  <copyright value="© WHO 2019+."/>
  <topic>
    <text value="Pregnancy"/>
  </topic>
  <relatedArtifact>
    <type value="documentation"/>
    <display value="WHO guideline for a positive pregnancy experience"/>
    <url
         value="https://www.who.int/reproductivehealth/publications/maternal_perinatal_health/anc-positive-pregnancy-experience/en"/>
    <document>
      <url
           value="https://www.who.int/reproductivehealth/publications/maternal_perinatal_health/anc-positive-pregnancy-experience/en"/>
    </document>
  </relatedArtifact>
  <content>
    <contentType value="text/cql"/>
    <data
          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uYWwgQWdlIGluIFdlZWtzIiBiZXR3ZWVuIDEzIHdlZWtzIGFuZCAyNyB3ZWVrcyB0aGVuCiAgICAiSGIgQ29uY2VudHJhdGlvbiIgPCAxMC41ICdnL2RMJwogIGVsc2UKICAgICJIYiBDb25jZW50cmF0aW9uIiA8IDExICdnL2RMJwoKZGVmaW5lICJIYiBDb25jZW50cmF0aW9uIjoKICBGaXJzdCgKICAgIFsiT2JzZXJ2YXRpb24iOiAiSGIiXSBPCgkJICB3aGVyZSBPLnN0YXR1cyA9ICdmaW5hbCcKCQkJICBhbmQgTy5lZmZlY3RpdmUgYWZ0ZXIgQ29tbW9uLiJTdGFydCBvZiBDdXJyZW50IFByZWduYW5jeSIKICAgICAgc29ydCBieSBGSElSSGVscGVycy5Ub0RhdGVUaW1lKGVmZmVjdGl2ZSBhcyBGSElSLmRhdGVUaW1lKSBkZXNjZW5kaW5nCiAgKS52YWx1ZSBhcyBRdWFudGl0eQoKZGVmaW5lICJIYXMgSXJvbiBTaWRlLUVmZmVjdHMiOgogIGV4aXN0cyAoCiAgICBbIkNvbmRpdGlvbiI6ICJJcm9uIFNpZGUgRWZmZWN0cyJdIEMKCQkgIHdoZXJlIEMub25zZXQgb24gb3IgYWZ0ZXIgQ29tbW9uLiJTdGFydCBvZiBDdXJyZW50IFByZWduYW5jeSIKCQkJICBhbmQgQy5jbGluaWNhbFN0YXR1cyBpbiBDb21tb24uIkFjdGl2ZSBDb25kaXRpb24iCiAgKQo="/>
  </content>
  <content>
    <contentType value="application/elm+xml"/>
  </content>
</Library>