Quality Measure Implementation Guide
2.0.0-ballot - STU 2 Ballot

Quality Measure Implementation Guide - Downloaded Version null See the Directory of published versions

## : Module Definition Example Logic Library

Page standards status: Informative

Raw ttl | Download

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

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

     a fhir:Library ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:id [ fhir:v "moduledefinition-example"] ; #
      fhir:meta [
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-moduledefinitionlibrary"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-moduledefinitionlibrary>     ] )
      ] ; #
      fhir:language [ fhir:v "en"] ; #
      fhir:text [
    fhir:status [ fhir:v "extensions" ] ;
    fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n  <table class=\"narrative-table\">\n    <tbody>\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\">Metadata</th>\n\n\n</tr>\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Title</th>\n\n\n\n<td class=\"content-container\">Module Definition Example Logic Library</td>\n\n\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Version</th>\n\n\n\n<td class=\"content-container\">1.0.0</td>\n\n\n</tr>\n\n\n\n\n\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Identifier</th>\n\n\n\n<td class=\"content-container\">EXMLogic</td>\n\n\n</tr>\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Identifier</th>\n\n\n\n<td class=\"content-container\">urn:oid:2.16.840.1.113883.4.642.40.61.28.37</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Experimental</th>\n\n\n\n<td class=\"content-container\">true</td>\n\n\n</tr>\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Jurisdiction</th>\n\n\n\n<td class=\"content-container\">\n    001 from <a href=\"http://unstats.un.org/unsd/methods/m49/m49.htm\">http://unstats.un.org/unsd/methods/m49/m49.htm</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Steward (Publisher)</th>\n\n\n\n<td class=\"content-container\">HL7 International / Clinical Quality Information</td>\n\n\n</tr>\n\n\n\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Description</th>\n\n\n\n<td class=\"content-container\"><div><p>This library is used as an example module definition in the FHIR Quality Measure Implementation Guide</p>\n</div></td>\n\n\n</tr>\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Type</th>\n\n\n\n<td class=\"content-container\">\n    module-definition from <a href=\"http://terminology.hl7.org/7.1.0/CodeSystem-library-type.html\">http://terminology.hl7.org/CodeSystem/library-type</a> \n\n\n</td>\n\n\n</tr>\n\n\n\n<tr>\n  \n  \n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: FHIR model information\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://hl7.org/fhir/uv/cql/STU2/Library-FHIR-ModelInfo.html\">http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1</tt>\n    \n    \n    \n  </td>\n</tr>\n\n<tr>\n  \n  \n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Library FHIRHelpers\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://hl7.org/fhir/uv/cql/STU2/Library-FHIRHelpers.html\">http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1</tt>\n    \n    \n    \n  </td>\n</tr>\n\n<tr>\n  \n  \n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Code system Diagnosis Role\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"http://terminology.hl7.org/7.1.0/CodeSystem-diagnosis-role.html\">Diagnosis Role</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://terminology.hl7.org/CodeSystem/diagnosis-role</tt>\n    \n    \n    \n  </td>\n</tr>\n\n<tr>\n  \n  \n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set Emergency Department Visit\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.292/expansion\">Emergency Department Visit</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292</tt>\n    \n    \n    \n  </td>\n</tr>\n\n<tr>\n  \n  \n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set Psychiatric/Mental Health Patient\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.299/expansion\">Psychiatric/Mental Health Diagnosis</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.299</tt>\n    \n    \n    \n  </td>\n</tr>\n\n<tr>\n  \n  \n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set Hospital Settings\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1111.126/expansion\">Hospital Settings</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.126</tt>\n    \n    \n    \n  </td>\n</tr>\n\n<tr>\n  \n  \n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set ONC Administrative Sex\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1/expansion\">ONC Administrative Sex</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1</tt>\n    \n    \n    \n  </td>\n</tr>\n\n<tr>\n  \n  \n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set Race\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.114222.4.11.836/expansion\">Race</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.836</tt>\n    \n    \n    \n  </td>\n</tr>\n\n<tr>\n  \n  \n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set Ethnicity\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.114222.4.11.837/expansion\">Ethnicity</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.837</tt>\n    \n    \n    \n  </td>\n</tr>\n\n<tr>\n  \n  \n  \n  \n  \n\n<th scope=\"row\" class=\"row-header\">Dependency</th>\n\n\n  \n  \n  <td class=\"content-container\">\n    \n    <em>Description</em>: Value set Payer\n    \n    <br/>\n    \n    \n    \n    \n    \n    \n    <em>Resource</em>: <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.114222.4.11.3591/expansion\">Payer Type</a>\n    <br/>\n    <em>Canonical URL</em>: <tt>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591</tt>\n    \n    \n    \n  </td>\n</tr>\n\n\n\n\n\n\n\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Patient\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/patient.html\">Patient</a>\n    <br/>        \n  \n   \n   \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Encounter\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/encounter.html\">Encounter</a>\n    <br/>        \n  \n   \n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: type</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.292/expansion\">Emergency Department Visit</a>\n    <br/> \n  \n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Condition\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/condition.html\">Condition</a>\n    <br/>        \n  \n   \n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: id</span>\n    <br/>\n  \n  \n  \n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n  <th scope=\"row\" class=\"row-header\">Data Requirement</th>\n  <td class=\"content-container\">\n    <em>Type</em>: Coverage\n    <br/>\n  \n    <em>Profile(s)</em>: \n  \n    <a href=\"http://hl7.org/fhir/R4/coverage.html\">Coverage</a>\n    <br/>        \n  \n   \n   \n  \n    <em>Code Filter(s)</em>: \n    <br/>\n  \n  \n    <span class=\"tab-one\"><em>Path</em>: type</span>\n    <br/>\n  \n  \n  \n    <span class=\"tab-one\"><em>ValueSet</em>:</span> <a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.114222.4.11.3591/expansion\">Payer Type</a>\n    <br/> \n  \n  \n  \n   \n  </td>\n</tr>\n\n<tr>\n\n\n<th colspan=\"2\" scope=\"row\" class=\"row-header\"><a name=\"parameters\"> </a>Parameters</th>\n\n\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\"/>\n\n\n  <td class=\"content-container\">\n    <table>\n      <thead>\n        <tr>\n          <td><em>Name</em></td>\n          <td><em>Use</em></td>\n          <td><em>Card.</em></td>\n          <td><em>Type</em></td>\n          <td><em>Documentation</em></td>\n        </tr>\n      </thead>\n      <tbody>\n      \n        <tr>\n          <td>Measurement Period</td>\n          <td>In</td>\n          <td>0..1</td>\n          <td>Period</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Patient</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>Patient</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Inpatient Encounter</td>\n          <td>Out</td>\n          <td>0..*</td>\n          <td>Encounter</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Initial Population</td>\n          <td>Out</td>\n          <td>0..*</td>\n          <td>Encounter</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Measure Population</td>\n          <td>Out</td>\n          <td>0..*</td>\n          <td>Encounter</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Stratifier 1</td>\n          <td>Out</td>\n          <td>0..*</td>\n          <td>Encounter</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Stratifier 2</td>\n          <td>Out</td>\n          <td>0..*</td>\n          <td>Encounter</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Stratifier 3</td>\n          <td>Out</td>\n          <td>0..*</td>\n          <td>Encounter</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>Stratifier 4</td>\n          <td>Out</td>\n          <td>0..*</td>\n          <td>Encounter</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>SDE Ethnicity</td>\n          <td>Out</td>\n          <td>0..*</td>\n          <td>Coding</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>SDE Payer</td>\n          <td>Out</td>\n          <td>0..*</td>\n          <td>Resource</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>SDE Race</td>\n          <td>Out</td>\n          <td>0..*</td>\n          <td>Coding</td>\n          <td/>\n        </tr>\n      \n        <tr>\n          <td>SDE Sex</td>\n          <td>Out</td>\n          <td>0..1</td>\n          <td>Coding</td>\n          <td/>\n        </tr>\n      \n      </tbody>\n    </table>\n  </td>\n</tr>\n\n\n\n\n\n\n\n<tr>\n  <th colspan=\"2\" scope=\"row\" class=\"row-header\">Generated using version 0.5.4 of the sample-content-ig Liquid templates</th>\n</tr>\n\n    </tbody>\n  </table>\n</div>"^^rdf:XMLLiteral ]
      ] ; #
      fhir:extension ( [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-wg>     ] ;
    fhir:value [
    a fhir:Code ;
    fhir:v "cqi"     ]
      ] ) ; #
      fhir:url [
    fhir:v "http://hl7.org/fhir/uv/cqm/Library/moduledefinition-example"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/cqm/Library/moduledefinition-example>
      ] ; #
      fhir:identifier ( [
    fhir:use [ fhir:v "official" ] ;
    fhir:system [
    fhir:v "http://example.org/fhir/cqi/ecqm/Library/Identifier"^^xsd:anyURI ;
    fhir:l <http://example.org/fhir/cqi/ecqm/Library/Identifier>     ] ;
    fhir:value [ fhir:v "EXMLogic" ]
      ] [
    fhir:system [
    fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
    fhir:l <urn:ietf:rfc:3986>     ] ;
    fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.40.61.28.37" ]
      ] ) ; #
      fhir:version [ fhir:v "1.0.0"] ; #
      fhir:name [ fhir:v "EXMLogicModuleDefinition"] ; #
      fhir:title [ fhir:v "Module Definition Example Logic Library"] ; #
      fhir:status [ fhir:v "active"] ; #
      fhir:experimental [ fhir:v true] ; #
      fhir:type [
        ( fhir:coding [
    fhir:system [
    fhir:v "http://terminology.hl7.org/CodeSystem/library-type"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/library-type>       ] ;
    fhir:code [ fhir:v "module-definition" ]     ] )
      ] ; #
      fhir:date [ fhir:v "2019-09-03"^^xsd:date] ; #
      fhir:publisher [ fhir:v "HL7 International / Clinical Quality Information"] ; #
      fhir:contact ( [
        ( fhir:telecom [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "http://www.hl7.org/Special/committees/cqi" ]     ] )
      ] ) ; #
      fhir:description [ fhir:v "This library is used as an example module definition in the FHIR Quality Measure Implementation Guide"] ; #
      fhir:jurisdiction ( [
        ( fhir:coding [
    fhir:system [
    fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ;
    fhir:l <http://unstats.un.org/unsd/methods/m49/m49.htm>       ] ;
    fhir:code [ fhir:v "001" ]     ] )
      ] ) ; #
      fhir:relatedArtifact ( [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "FHIR model information" ] ;
    fhir:resource [
    fhir:v "http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo?version=4.0.1>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Library FHIRHelpers" ] ;
    fhir:resource [
    fhir:v "http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/uv/cql/Library/FHIRHelpers?version=4.0.1>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Code system Diagnosis Role" ] ;
    fhir:resource [
    fhir:v "http://terminology.hl7.org/CodeSystem/diagnosis-role"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/diagnosis-role>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Emergency Department Visit" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Psychiatric/Mental Health Patient" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.299"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.299>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Hospital Settings" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.126"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.126>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set ONC Administrative Sex" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Race" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.836"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.836>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Ethnicity" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.837"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.837>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Payer" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591>     ]
      ] ) ; #
      fhir:parameter ( [
    fhir:name [ fhir:v "Measurement Period" ] ;
    fhir:use [ fhir:v "in" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:type [ fhir:v "Period" ]
      ] [
    fhir:name [ fhir:v "Patient" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:type [ fhir:v "Patient" ]
      ] [
    fhir:name [ fhir:v "Inpatient Encounter" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Encounter" ]
      ] [
    fhir:name [ fhir:v "Initial Population" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Encounter" ]
      ] [
    fhir:name [ fhir:v "Measure Population" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Encounter" ]
      ] [
    fhir:name [ fhir:v "Stratifier 1" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Encounter" ]
      ] [
    fhir:name [ fhir:v "Stratifier 2" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Encounter" ]
      ] [
    fhir:name [ fhir:v "Stratifier 3" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Encounter" ]
      ] [
    fhir:name [ fhir:v "Stratifier 4" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Encounter" ]
      ] [
    fhir:name [ fhir:v "SDE Ethnicity" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Coding" ]
      ] [
    fhir:name [ fhir:v "SDE Payer" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Resource" ]
      ] [
    fhir:name [ fhir:v "SDE Race" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Coding" ]
      ] [
    fhir:name [ fhir:v "SDE Sex" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:type [ fhir:v "Coding" ]
      ] ) ; #
      fhir:dataRequirement ( [
        ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern>       ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Patient?_id={{context.patientId}}"       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "path"^^xsd:anyURI ;
    fhir:l fhir:path         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "url"         ]       ] [
    fhir:url [
    fhir:v "comparator"^^xsd:anyURI ;
    fhir:l fhir:comparator         ] ;
    fhir:value [
    a fhir:Code ;
    fhir:v "eq"         ]       ] [
    fhir:url [
    fhir:v "value"^^xsd:anyURI ;
    fhir:l fhir:value         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity"         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-valueFilter"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-valueFilter>       ]     ] ) ;
    fhir:type [ fhir:v "Patient" ] ;
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Patient"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Patient>     ] )
      ] [
        ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern>       ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Encounter?status=finished&subject=Patient/{{context.patientId}}&type:in=http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"       ]     ] ) ;
    fhir:type [ fhir:v "Encounter" ] ;
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Encounter"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Encounter>     ] ) ;
        ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292>       ]     ] )
      ] [
    fhir:type [ fhir:v "Condition" ] ;
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Condition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Condition>     ] ) ;
        ( fhir:codeFilter [
    fhir:path [ fhir:v "id" ]     ] )
      ] [
        ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern>       ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Coverage?policy-holder=Patient/{{context.patientId}}&type:in=http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"       ]     ] ) ;
    fhir:type [ fhir:v "Coverage" ] ;
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Coverage"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/Coverage>     ] ) ;
        ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591>       ]     ] )
      ] ) . #