@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/uv/crmi/Measure/publishable-example> a fhir:Measure ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "publishable-example"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure"^^xsd:anyURI ;
       fhir:link <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-publishablemeasure>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "extensions" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: Measure </b><a name=\"publishable-example\"> </a><a name=\"hcpublishable-example\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">ResourceMeasure &quot;publishable-example&quot; </p><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-crmi-publishablemeasure.html\">CRMI Publishable Measure</a></p></div><p><b>CRMI Software System</b>: <a href=\"Device-cqf-tooling.html\">Device/cqf-tooling</a></p><p><b>CRMI Effective Data Requirements</b>: <code>#effective-data-requirements</code></p><p><b>url</b>: <code>http://hl7.org/fhir/uv/crmi/Measure/publishable-example</code></p><p><b>identifier</b>: <a href=\"http://terminology.hl7.org/5.5.0/NamingSystem-uri.html\" title=\"As defined by RFC 3986 (http://www.ietf.org/rfc/rfc3986.txt)(with many schemes defined in many RFCs). For OIDs and UUIDs, use the URN form (urn:oid:(note: lowercase) and urn:uuid:). See http://www.ietf.org/rfc/rfc3001.txt and http://www.ietf.org/rfc/rfc4122.txt \r\n\r\nThis oid is used as an identifier II.root to indicate the the extension is an absolute URI (technically, an IRI). Typically, this is used for OIDs and GUIDs. Note that when this OID is used with OIDs and GUIDs, the II.extension should start with urn:oid or urn:uuid: \r\n\r\nNote that this OID is created to aid with interconversion between CDA and FHIR - FHIR uses urn:ietf:rfc:3986 as equivalent to this OID. URIs as identifiers appear more commonly in FHIR.\r\n\r\nThis OID may also be used in CD.codeSystem.\">Uniform Resource Identifier (URI)</a>/urn:oid:2.16.840.1.113883.4.642.40.38.29.1</p><p><b>version</b>: 1.0.0</p><p><b>name</b>: ANCIND01Publishable</p><p><b>title</b>: ANC.IND.01 Percentage of pregnant women with first ANC contact in the first trimester (Publishable Example)</p><p><b>status</b>: draft</p><p><b>experimental</b>: true</p><p><b>date</b>: 2023-03-13 22:32:10-0600</p><p><b>publisher</b>: HL7 International / Clinical Decision Support</p><p><b>contact</b>: <a href=\"http://www.hl7.org/Special/committees/dss\">http://www.hl7.org/Special/committees/dss</a></p><p><b>description</b>: Percentage of pregnant women with first ANC contact in the first trimester (before 12 weeks of gestation)</p><p><b>jurisdiction</b>: World <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (m49.htm#001)</span></p><blockquote><p><b>relatedArtifact</b></p><p><b>Is Primary Citation</b>: true</p><p><b>type</b>: citation</p><p><b>citation</b>: WHO, UN Women, UNFPA. Health care for women subjected to intimate partner violence or sexual violence – a clinical handbook. Geneva: World Health Organization; 2014</p><p><b>url</b>: <a href=\"https://apps.who.int/iris/bitstream/handle/10665/136101/WHO_RHR_14.26_eng.pdf\">https://apps.who.int/iris/bitstream/handle/10665/136101/WHO_RHR_14.26_eng.pdf</a></p><blockquote><p><b>document</b></p></blockquote></blockquote><p><b>library</b>: <a href=\"Library-ANCCohort.html\">ANC Cohort</a></p><p><b>scoring</b>: Proportion <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-measure-scoring.html\">MeasureScoring</a>#proportion)</span></p><p><b>type</b>: Process <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-measure-type.html\">MeasureType</a>#process)</span></p><p><b>improvementNotation</b>: Increased score indicates improvement <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-measure-improvement-notation.html\">MeasureImprovementNotation</a>#increase)</span></p><blockquote><p><b>group</b></p><blockquote><p><b>id</b></p>group-1</blockquote><blockquote><p><b>population</b></p><blockquote><p><b>id</b></p>initial-population</blockquote><p><b>code</b>: Initial Population <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-measure-population.html\">MeasurePopulationType</a>#initial-population)</span></p><h3>Criteria</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Language</b></td><td><b>Expression</b></td></tr><tr><td style=\"display: none\">*</td><td>text/cql-identifier</td><td>Initial Population</td></tr></table></blockquote><blockquote><p><b>population</b></p><blockquote><p><b>id</b></p>denominator</blockquote><p><b>code</b>: Denominator <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-measure-population.html\">MeasurePopulationType</a>#denominator)</span></p><h3>Criteria</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Language</b></td><td><b>Expression</b></td></tr><tr><td style=\"display: none\">*</td><td>text/cql-identifier</td><td>Denominator</td></tr></table></blockquote><blockquote><p><b>population</b></p><blockquote><p><b>id</b></p>numerator</blockquote><p><b>code</b>: Numerator <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/5.5.0/CodeSystem-measure-population.html\">MeasurePopulationType</a>#numerator)</span></p><h3>Criteria</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Language</b></td><td><b>Expression</b></td></tr><tr><td style=\"display: none\">*</td><td>text/cql-identifier</td><td>Numerator</td></tr></table></blockquote><blockquote><p><b>stratifier</b></p><blockquote><p><b>id</b></p>by-age</blockquote><p><b>code</b>: Age <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> ()</span></p><h3>Criteria</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Language</b></td><td><b>Expression</b></td></tr><tr><td style=\"display: none\">*</td><td>text/cql-identifier</td><td>Age Stratifier</td></tr></table></blockquote><blockquote><p><b>stratifier</b></p><blockquote><p><b>id</b></p>by-education-level</blockquote><p><b>code</b>: Education Level <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> ()</span></p><h3>Criteria</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Language</b></td><td><b>Expression</b></td></tr><tr><td style=\"display: none\">*</td><td>text/cql-identifier</td><td>Education Level Stratifier</td></tr></table></blockquote></blockquote></div>"
  ] ; # 
  fhir:contained ( [
     a fhir:Library ;
     fhir:id [ fhir:v "effective-data-requirements" ] ;
     fhir:extension ( [
       fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ] ;
       fhir:value [
         a fhir:Coding ;
         fhir:system [ fhir:v "http://example.org/CodeSystem/iso-8601-derived-periods"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "P10Y--P14Y" ] ;
         fhir:display [ fhir:v "10-14 years" ]
       ]
     ] [
       fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ] ;
       fhir:value [
         a fhir:Coding ;
         fhir:system [ fhir:v "http://example.org/CodeSystem/iso-8601-derived-periods"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "P15Y--P19Y" ] ;
         fhir:display [ fhir:v "15-19 years" ]
       ]
     ] [
       fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode"^^xsd:anyURI ] ;
       fhir:value [
         a fhir:Coding ;
         fhir:system [ fhir:v "http://example.org/CodeSystem/iso-8601-derived-periods"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "P20Y--P9999Y" ] ;
         fhir:display [ fhir:v "20+ years" ]
       ]
     ] [
       fhir:extension ( [
         fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "ANCBaseDataElements" ]
       ] [
         fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "Antenatal care contact" ]
       ] [
         fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "define \"Antenatal care contact\":\n  [\"Encounter\": type in BCx.\"Antenatal care contact\"]" ]
       ] [
         fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "0"^^xsd:integer ]
       ] ) ;
       fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]
     ] [
       fhir:extension ( [
         fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "ANCIND01" ]
       ] [
         fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "First antenatal care contact" ]
       ] [
         fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "define \"First antenatal care contact\":\n  BaseData.\"Antenatal care contact\" C\n    where C.reasonCode in Cx.\"First Antenatal Care Contact Choices\"" ]
       ] [
         fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "1"^^xsd:integer ]
       ] ) ;
       fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]
     ] [
       fhir:extension ( [
         fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "ANCContactDataElements" ]
       ] [
         fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "Gestational age" ]
       ] [
         fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "/*\n  @dataElement: ANC.B6.DE17 Gestational age\n  @activity: ANC.B6 Profile\n  @description: Gestational age in weeks and/or days depending on the source of gestational age\n*/\ndefine \"Gestational age\":\n  WC.MostRecent(\n  [Observation: Cx.\"Gestational age\"] O\n    where O.status in { 'final', 'amended', 'corrected' }\n      and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n      and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n  ).value as FHIR.Quantity" ]
       ] [
         fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "2"^^xsd:integer ]
       ] ) ;
       fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]
     ] [
       fhir:extension ( [
         fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "ANCIND01" ]
       ] [
         fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "Numerator" ]
       ] [
         fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "/*\nNumerator: Number of pregnant women who had their first ANC contact before 12 weeks (facility level)\nNumerator Computation: Count of women whose gestational age <= 12 weeks at the time of first contact\n*/\ndefine Numerator:\n  exists (\n    \"First antenatal care contact\" C\n      where C.period starts during \"Measurement Period\"\n        and ContactData.\"Gestational age\" <= 12 weeks\n  )" ]
       ] [
         fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "3"^^xsd:integer ]
       ] ) ;
       fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]
     ] [
       fhir:extension ( [
         fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "ANCStratifiers" ]
       ] [
         fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "By Age" ]
       ] [
         fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "/*\nBy Patient Age as of the start of the Measurement Period\nAge (10-14, 15-19, 20+)\n*/\ndefine \"By Age\":\n  case\n    when AgeInYearsAt(start of \"Measurement Period\") in Interval[10, 14] then \"P10Y--P14Y\"\n    when AgeInYearsAt(start of \"Measurement Period\") in Interval[15, 19] then \"P15Y--P19Y\"\n    when AgeInYearsAt(start of \"Measurement Period\") >= 20 then \"P20Y--P9999Y\"\n    else null\n  end" ]
       ] [
         fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "4"^^xsd:integer ]
       ] ) ;
       fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]
     ] [
       fhir:extension ( [
         fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "ANCIND01" ]
       ] [
         fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "Age Stratifier" ]
       ] [
         fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "/*\nDisaggregation: Age (10-14, 15-19, 20+)\n*/\ndefine \"Age Stratifier\":\n  Stratifiers.\"By Age\"" ]
       ] [
         fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "5"^^xsd:integer ]
       ] ) ;
       fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]
     ] [
       fhir:extension ( [
         fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "ANCIND01" ]
       ] [
         fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "Denominator" ]
       ] [
         fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "/*\nDenominator: Total number of antenatal clients with a first contact\nDenominator Computation: Count of all women who had first contact within the last reporting period\n*/\ndefine Denominator:\n  exists (\n    \"First antenatal care contact\" C\n      where C.period starts during \"Measurement Period\"\n  )" ]
       ] [
         fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "6"^^xsd:integer ]
       ] ) ;
       fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]
     ] [
       fhir:extension ( [
         fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "ANCStratifiers" ]
       ] [
         fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "By Education Level" ]
       ] [
         fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "/*\nBy Patient Education Level (none, don't know, primary, secondary, higher)\n*/\ndefine \"By Education Level\":\n  Patient.extension E\n    where E.url = 'http://fhir.org/guides/who/anc-cds/StructureDefinition/educationlevel'\n    return E.value as CodeableConcept" ]
       ] [
         fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "7"^^xsd:integer ]
       ] ) ;
       fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]
     ] [
       fhir:extension ( [
         fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "ANCIND01" ]
       ] [
         fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "Education Level Stratifier" ]
       ] [
         fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "/*\nDisaggregation: Education Level (none, don't know, primary, secondary, higher)\n*/\ndefine \"Education Level Stratifier\":\n  Stratifiers.\"By Education Level\"" ]
       ] [
         fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "8"^^xsd:integer ]
       ] ) ;
       fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]
     ] [
       fhir:extension ( [
         fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "ANCBaseDataElements" ]
       ] [
         fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "Antenatal care case" ]
       ] [
         fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "/*\ndefine \"Pregnant\":\n  \"Pregnancy\" is not null\n    or \"Pregnancy status\" in BCx.\"Pregnancy status - pregnant\"\n\ndefine \"Pregnancy status\":\n  FHIRHelpers.ToConcept(\n    Last(\n      [Observation: BCx.\"Pregnancy status\"] O\n        where O.status = 'final'\n        sort by FHIRHelpers.ToDateTime(effective as FHIR.dateTime)\n    ).value\n  )\n*/\ndefine \"Antenatal care case\":\n  [\"EpisodeOfCare\": type in BCx.\"Antenatal care case\"]" ]
       ] [
         fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "9"^^xsd:integer ]
       ] ) ;
       fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]
     ] [
       fhir:extension ( [
         fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "ANCIND01" ]
       ] [
         fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "Initial Population" ]
       ] [
         fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "/*\nInitial population: Antenatal clients\n*/\ndefine \"Initial Population\":\n  exists (BaseData.\"Antenatal care case\")" ]
       ] [
         fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "10"^^xsd:integer ]
       ] ) ;
       fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]
     ] ) ;
     fhir:status [ fhir:v "active" ] ;
     fhir:type [
       fhir:coding ( [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/library-type"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "module-definition" ]
       ] )
     ] ;
     fhir:relatedArtifact ( [
       fhir:type [ fhir:v "depends-on" ] ;
       fhir:display [ fhir:v "Library ANCCohort" ] ;
       fhir:resource [
         fhir:v "http://hl7.org/fhir/uv/crmi/Library/ANCCohort"^^xsd:anyURI ;
         fhir:link <http://hl7.org/fhir/uv/crmi/Library/ANCCohort>
       ]
     ] [
       fhir:type [ fhir:v "depends-on" ] ;
       fhir:display [ fhir:v "Library FHIRHelpers" ] ;
       fhir:resource [
         fhir:v "http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"^^xsd:anyURI ;
         fhir:link <http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1>
       ]
     ] [
       fhir:type [ fhir:v "depends-on" ] ;
       fhir:display [ fhir:v "Example Code system ISO-8601-Derived Periods" ] ;
       fhir:resource [
         fhir:v "http://example.org/CodeSystem/iso-8601-derived-periods"^^xsd:anyURI ;
         fhir:link <http://example.org/CodeSystem/iso-8601-derived-periods>
       ]
     ] [
       fhir:type [ fhir:v "depends-on" ] ;
       fhir:display [ fhir:v "Value set Antenatal care contact" ] ;
       fhir:resource [
         fhir:v "http://fhir.org/guides/who/anc-cds/ValueSet/antenatal-care-contact"^^xsd:anyURI ;
         fhir:link <http://fhir.org/guides/who/anc-cds/ValueSet/antenatal-care-contact>
       ]
     ] [
       fhir:type [ fhir:v "depends-on" ] ;
       fhir:display [ fhir:v "Value set First Antenatal Care Contact Choices" ] ;
       fhir:resource [
         fhir:v "http://fhir.org/guides/who/anc-cds/ValueSet/anc-b5-de2"^^xsd:anyURI ;
         fhir:link <http://fhir.org/guides/who/anc-cds/ValueSet/anc-b5-de2>
       ]
     ] [
       fhir:type [ fhir:v "depends-on" ] ;
       fhir:display [ fhir:v "Value set Gestational age" ] ;
       fhir:resource [
         fhir:v "http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de17"^^xsd:anyURI ;
         fhir:link <http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de17>
       ]
     ] [
       fhir:type [ fhir:v "depends-on" ] ;
       fhir:display [ fhir:v "Value set Antenatal care case" ] ;
       fhir:resource [
         fhir:v "http://fhir.org/guides/who/anc-cds/ValueSet/antenatal-care-case"^^xsd:anyURI ;
         fhir:link <http://fhir.org/guides/who/anc-cds/ValueSet/antenatal-care-case>
       ]
     ] ) ;
     fhir:parameter ( [
       fhir:name [ fhir:v "Measurement Period" ] ;
       fhir:use [ fhir:v "in" ] ;
       fhir:min [ fhir:v "0"^^xsd:integer ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "Period" ]
     ] [
       fhir:name [ fhir:v "encounter" ] ;
       fhir:use [ fhir:v "in" ] ;
       fhir:min [ fhir:v "0"^^xsd:integer ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "string" ]
     ] [
       fhir:name [ fhir:v "Numerator" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v "0"^^xsd:integer ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "boolean" ]
     ] [
       fhir:name [ fhir:v "Age Stratifier" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v "0"^^xsd:integer ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "Coding" ]
     ] [
       fhir:name [ fhir:v "Denominator" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v "0"^^xsd:integer ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "boolean" ]
     ] [
       fhir:name [ fhir:v "Education Level Stratifier" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v "0"^^xsd:integer ] ;
       fhir:max [ fhir:v "*" ] ;
       fhir:type [ fhir:v "CodeableConcept" ]
     ] [
       fhir:name [ fhir:v "Initial Population" ] ;
       fhir:use [ fhir:v "out" ] ;
       fhir:min [ fhir:v "0"^^xsd:integer ] ;
       fhir:max [ fhir:v "1" ] ;
       fhir:type [ fhir:v "boolean" ]
     ] ) ;
     fhir:dataRequirement ( [
       fhir:extension ( [
         fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-isSelective"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "true"^^xsd:boolean ]
       ] ) ;
       fhir:type [ fhir:v "Encounter" ] ;
       fhir:profile ( [
         fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
         fhir:link <http://hl7.org/fhir/StructureDefinition/Encounter>
       ] ) ;
       fhir:mustSupport ( [ fhir:v "type" ] [ fhir:v "reasonCode" ] [ fhir:v "period" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "type" ] ;
         fhir:valueSet [
           fhir:v "http://fhir.org/guides/who/anc-cds/ValueSet/antenatal-care-contact"^^xsd:anyURI ;
           fhir:link <http://fhir.org/guides/who/anc-cds/ValueSet/antenatal-care-contact>
         ]
       ] )
     ] [
       fhir:extension ( [
         fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-isSelective"^^xsd:anyURI ] ;
         fhir:value [ fhir:v "true"^^xsd:boolean ]
       ] ) ;
       fhir:type [ fhir:v "Observation" ] ;
       fhir:profile ( [
         fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ;
         fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>
       ] ) ;
       fhir:mustSupport ( [ fhir:v "code" ] [ fhir:v "status" ] [ fhir:v "encounter" ] [ fhir:v "encounter.reference" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "code" ] ;
         fhir:valueSet [
           fhir:v "http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de17"^^xsd:anyURI ;
           fhir:link <http://fhir.org/guides/who/anc-cds/ValueSet/anc-b6-de17>
         ]
       ] )
     ] [
       fhir:type [ fhir:v "Patient" ] ;
       fhir:profile ( [
         fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
         fhir:link <http://hl7.org/fhir/StructureDefinition/Patient>
       ] ) ;
       fhir:mustSupport ( [ fhir:v "url" ] [ fhir:v "value" ] )
     ] [
       fhir:type [ fhir:v "EpisodeOfCare" ] ;
       fhir:profile ( [
         fhir:v "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"^^xsd:anyURI ;
         fhir:link <http://hl7.org/fhir/StructureDefinition/EpisodeOfCare>
       ] ) ;
       fhir:mustSupport ( [ fhir:v "type" ] ) ;
       fhir:codeFilter ( [
         fhir:path [ fhir:v "type" ] ;
         fhir:valueSet [
           fhir:v "http://fhir.org/guides/who/anc-cds/ValueSet/antenatal-care-case"^^xsd:anyURI ;
           fhir:link <http://fhir.org/guides/who/anc-cds/ValueSet/antenatal-care-case>
         ]
       ] )
     ] )
  ] ) ; # 
  fhir:extension ( [
     fhir:url [ fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:Reference ;
       fhir:link <http://hl7.org/fhir/uv/crmi/Device/cqf-tooling> ;
       fhir:reference [ fhir:v "Device/cqf-tooling" ]
     ]
  ] [
     fhir:id [ fhir:v "effective-data-requirements" ] ;
     fhir:url [ fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "#effective-data-requirements"^^xsd:anyURI ]
  ] ) ; # 
  fhir:url [ fhir:v "http://hl7.org/fhir/uv/crmi/Measure/publishable-example"^^xsd:anyURI] ; # 
  fhir:identifier ( [
     fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.40.38.29.1" ]
  ] ) ; # 
  fhir:version [ fhir:v "1.0.0"] ; # 
  fhir:name [ fhir:v "ANCIND01Publishable"] ; # 
  fhir:title [ fhir:v "ANC.IND.01 Percentage of pregnant women with first ANC contact in the first trimester (Publishable Example)"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:experimental [ fhir:v "true"^^xsd:boolean] ; # 
  fhir:date [ fhir:v "2023-03-13T22:32:10-06:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "HL7 International / Clinical Decision Support"] ; # 
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/dss" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "Percentage of pregnant women with first ANC contact in the first trimester (before 12 weeks of gestation)"] ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "001" ] ;
       fhir:display [ fhir:v "World" ]
     ] )
  ] ) ; # 
  fhir:relatedArtifact ( [
     fhir:extension ( [
       fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-isPrimaryCitation"^^xsd:anyURI ] ;
       fhir:value [ fhir:v "true"^^xsd:boolean ]
     ] ) ;
     fhir:type [ fhir:v "citation" ] ;
     fhir:citation [ fhir:v "WHO, UN Women, UNFPA. Health care for women subjected to intimate partner violence or sexual violence – a clinical handbook. Geneva: World Health Organization; 2014" ] ;
     fhir:url [ fhir:v "https://apps.who.int/iris/bitstream/handle/10665/136101/WHO_RHR_14.26_eng.pdf"^^xsd:anyURI ] ;
     fhir:document [
       fhir:url [ fhir:v "https://apps.who.int/iris/bitstream/handle/10665/136101/WHO_RHR_14.26_eng.pdf"^^xsd:anyURI ]
     ]
  ] ) ; # 
  fhir:library ( [
     fhir:v "http://hl7.org/fhir/uv/crmi/Library/ANCCohort"^^xsd:anyURI ;
     fhir:link <http://hl7.org/fhir/uv/crmi/Library/ANCCohort>
  ] ) ; # 
  fhir:scoring [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-scoring"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "proportion" ]
     ] )
  ] ; # 
  fhir:type ( [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-type"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "process" ]
     ] )
  ] ) ; # 
  fhir:improvementNotation [
     fhir:coding ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-improvement-notation"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "increase" ]
     ] )
  ] ; # 
  fhir:group ( [
     fhir:id [ fhir:v "group-1" ] ;
     fhir:population ( [
       fhir:id [ fhir:v "initial-population" ] ;
       fhir:code [
         fhir:coding ( [
           fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "initial-population" ]
         ] )
       ] ;
       fhir:criteria [
         fhir:language [ fhir:v "text/cql-identifier" ] ;
         fhir:expression [ fhir:v "Initial Population" ]
       ]
     ] [
       fhir:id [ fhir:v "denominator" ] ;
       fhir:code [
         fhir:coding ( [
           fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "denominator" ]
         ] )
       ] ;
       fhir:criteria [
         fhir:language [ fhir:v "text/cql-identifier" ] ;
         fhir:expression [ fhir:v "Denominator" ]
       ]
     ] [
       fhir:id [ fhir:v "numerator" ] ;
       fhir:code [
         fhir:coding ( [
           fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ] ;
           fhir:code [ fhir:v "numerator" ]
         ] )
       ] ;
       fhir:criteria [
         fhir:language [ fhir:v "text/cql-identifier" ] ;
         fhir:expression [ fhir:v "Numerator" ]
       ]
     ] ) ;
     fhir:stratifier ( [
       fhir:id [ fhir:v "by-age" ] ;
       fhir:code [
         fhir:text [ fhir:v "Age" ]
       ] ;
       fhir:criteria [
         fhir:language [ fhir:v "text/cql-identifier" ] ;
         fhir:expression [ fhir:v "Age Stratifier" ]
       ]
     ] [
       fhir:id [ fhir:v "by-education-level" ] ;
       fhir:code [
         fhir:text [ fhir:v "Education Level" ]
       ] ;
       fhir:criteria [
         fhir:language [ fhir:v "text/cql-identifier" ] ;
         fhir:expression [ fhir:v "Education Level Stratifier" ]
       ]
     ] )
  ] ) . # 

<http://hl7.org/fhir/uv/crmi/Device/cqf-tooling> a fhir:uv .

# -------------------------------------------------------------------------------------

