eCQM QICore Content Implementation Guide
2023.0.0 - CI Build

eCQM QICore Content Implementation Guide, published by cqframework. This guide is not an authorized publication; it is the continuous build for version 2023.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/cqframework/ecqm-content-qicore-2023/ and changes regularly. See the Directory of published versions

## : Multi-provider Patient Encounter Level Example - TTL Representation

Draft as of 2023-10-27

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:Measure ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:id [ fhir:v "MPPEncounterLevel"] ; #
      fhir:meta [
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-measure-cqfm>     ] [
    fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/publishable-measure-cqfm"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/publishable-measure-cqfm>     ] [
    fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/executable-measure-cqfm"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/executable-measure-cqfm>     ] )
      ] ; #
      fhir:text [
    fhir:status [ fhir:v "extensions" ] ;
    fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n    <table class=\"grid dict\">\n        \n            <tr>\n                <th scope=\"row\"><b>Title: </b></th>\n                <td style=\"padding-left: 4px;\">Multi-provider Patient Encounter Level Example</td>\n            </tr>\n        \n\n        \n\n        \n            <tr>\n                <th scope=\"row\"><b>Id: </b></th>\n                <td style=\"padding-left: 4px;\">MPPEncounterLevel</td>\n            </tr>\n            \n                <tr>\n                    <th scope=\"row\"><b>Download cql: </b></th>\n                    <td style=\"padding-left: 4px;\"><a href=\"Library-MPPEncounterLevel.cql\">MPPEncounterLevel.cql</a></td>\n                </tr>\n            \n        \n\n        \n            <tr>\n                <th scope=\"row\"><b>Version: </b></th>\n                <td style=\"padding-left: 4px;\">0.8.000</td>\n            </tr>\n        \n\n        \n            <tr>\n                <th scope=\"row\"><b>Url: </b></th>\n                <td style=\"padding-left: 4px;\"><a href=\"Measure-MPPEncounterLevel.html\">Multi-provider Patient Encounter Level Example</a></td>\n            </tr>\n        \n\n        \n\n        \n            <tr>\n                <th scope=\"row\"><b>Effective Period: </b></th>\n                <td style=\"padding-left: 4px;\">2024-01-01\n                    ..2024-12-31</td>\n            </tr>\n        \n\n        \n            <tr>\n                <th scope=\"row\"><b>Status: </b></th>\n                <td style=\"padding-left: 4px;\">draft</td>\n            </tr>\n        \n\n        \n            <tr>\n                <th scope=\"row\"><b>Experimental: </b></th>\n                <td style=\"padding-left: 4px;\">true</td>\n            </tr>\n        \n\n        \n            <tr>\n                <th scope=\"row\"><b>Date: </b></th>\n                <td style=\"padding-left: 4px;\">2023-10-27 08:12:32+0000</td>\n            </tr>\n        \n\n        \n\n        \n\n        \n            <tr>\n                <th scope=\"row\"><b>Name: </b></th>\n                <td style=\"padding-left: 4px;\">MPPEncounterLevel</td>\n            </tr>\n        \n\n        \n\n        \n\n        \n\n        \n            <tr>\n                <th scope=\"row\"><b>Description: </b></th>\n                <td style=\"padding-left: 4px;\"><div><p>Example measure supporting testing of the multi-provider patient scenario for encounter-based measures</p>\n</div></td>\n            </tr>\n        \n\n        \n\n        \n\n        \n            <tr>\n                <th scope=\"row\"><b>Use Context: </b></th>\n                <td style=\"padding-left: 4px;\">\n                    <table class=\"grid-dict\">\n                        <tr>\n                            <th><b>code</b></th>\n                            <th><b>value</b></th>\n                        </tr>\n                        \n                            <tr>\n                                <td>program</td>\n                                <td/>\n                            </tr>\n                        \n                    </table>\n                </td>\n            </tr>\n        \n\n        \n\n        \n\n        \n            <tr>\n                <th scope=\"row\"><b>Purpose: </b></th>\n                <td style=\"padding-left: 4px;\"><div><p>To support testing of approaches to multi-provider patient scenarios with an encounter-based measure</p>\n</div></td>\n            </tr>\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n            \n        \n\n        \n\n        \n\n        \n            <tr>\n                <th scope=\"row\"><b>Libraries: </b></th>\n                <td style=\"padding-left: 4px;\">\n                    <table class=\"grid-dict\">\n                        \n                            <tr>\n                                <td><a href=\"Library-MPPEncounterLevel.html\">MPPEncounterLevel</a></td>\n                            </tr>\n                        \n                    </table>\n                </td>\n            </tr>\n        \n\n        \n\n        \n            \n                <tr>\n                    <th scope=\"row\"><b>Related Artifact Dependencies: </b></th>\n                    <td style=\"padding-left: 4px;\">\n                        \n                            <li><a href=\"Library-FHIRHelpers.html\">FHIRHelpers</a> version: 4.3.000</li>\n                        \n                            <li><a href=\"Library-CQMCommon.html\">CQMCommon</a> version: 1.4.000</li>\n                        \n                            <li><a href=\"Library-QICoreCommon.html\">QICoreCommon</a> version: 1.5.000</li>\n                        \n                            <li><a href=\"Library-AttributionModel.html\">AttributionModel</a> version: 0.1.0</li>\n                        \n                            <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.424/expansion\">Non-Elective Inpatient Encounter</a></li>\n                        \n                            <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.212/expansion\">Hemorrhagic Stroke</a></li>\n                        \n                            <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.247/expansion\">Ischemic Stroke</a></li>\n                        \n                    </td>\n                </tr>\n                <tr>\n                    <th scope=\"row\"><b>Parameters:</b></th>\n                    <td style=\"padding-left: 4px;\">\n                        <table class=\"grid-dict\">\n                            <tr>\n                                <th><b>name</b></th>\n                                <th><b>use</b></th>\n                                <th><b>min</b></th>\n                                <th><b>max</b></th>\n                                <th><b>type</b></th>\n                            </tr>\n                            \n                                <tr>\n                                    <td>Measurement Period</td>\n                                    <td>In</td>\n                                    <td>0</td>\n                                    <td>1</td>\n                                    <td>Period</td>\n                                </tr>\n                            \n                                <tr>\n                                    <td>Provider</td>\n                                    <td>In</td>\n                                    <td>0</td>\n                                    <td>1</td>\n                                    <td>string</td>\n                                </tr>\n                            \n                                <tr>\n                                    <td>Initial Population</td>\n                                    <td>Out</td>\n                                    <td>0</td>\n                                    <td>*</td>\n                                    <td>Resource</td>\n                                </tr>\n                            \n                        </table>\n                    </td>\n                </tr>\n\n                <tr>\n                    <th scope=\"row\"><b>DataRequirements:</b></th>\n                    <td style=\"padding-left: 4px;\">\n                        <table class=\"grid-dict\">\n                            <tr>\n                                <th><b>Type</b></th>\n                                <th><b>Elements</b></th>\n                                <th><b>Valueset Name</b></th>\n                                <th><b>Valueset</b></th>\n                            </tr>\n                            \n                                <tr>\n                                    <td>Encounter(<a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-encounter.html\">QICoreEncounter</a>)</td>\n                                    <td>\n                                        \n                                            type\n                                        \n                                            period\n                                        \n                                            rank\n                                        \n                                            rank.value\n                                        \n                                            condition\n                                        \n                                            condition.reference\n                                        \n                                            condition.reference.value\n                                        \n                                    </td>\n                                    <td>\n                                        \n                                            \n                                                 Nonelective Inpatient Encounter\n                                            \n                                        \n                                    </td>\n                                    <td><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.424/expansion\">Non-Elective Inpatient Encounter</a></td>\n                                </tr>\n                            \n                                <tr>\n                                    <td>Condition(<a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-condition.html\">QICoreCondition</a>)</td>\n                                    <td>\n                                        \n                                            id\n                                        \n                                            id.value\n                                        \n                                    </td>\n                                    <td>\n                                        \n                                    </td>\n                                    <td/>\n                                </tr>\n                            \n                                <tr>\n                                    <td>Patient(<a href=\"http://hl7.org/fhir/us/qicore/STU4.1.1/StructureDefinition-qicore-patient.html\">QICorePatient</a>)</td>\n                                    <td>\n                                        \n                                    </td>\n                                    <td>\n                                        \n                                    </td>\n                                    <td/>\n                                </tr>\n                            \n                        </table>\n                    </td>\n                </tr>\n\n                \n\n                \n                <tr>\n                    <th scope=\"row\"><b>Logic Definitions:</b></th>\n                    <td style=\"padding-left: 4px;\">\n                        \n                        <table class=\"grid-dict\">\n                            <tr>\n                                <th><b>Group</b></th>\n                                <th><b>Scoring</b></th>\n                                <th><b>Population Criteria</b></th>\n                                <th><b>Expression</b></th>\n                            </tr>\n                            <tr>\n                                \n                                <td> 64403d17d4d7050edabb0562 </td>\n                                <td>\n                                    \n                                        <b>Group scoring:</b>\n                                        \n                                            <span>  proportion </span>\n                                        \n                                    \n\n                                    \n\n                                    \n\n                                    \n\n                                    \n\n                                    \n\n                                    \n\n                                    \n\n                                </td>\n                                \n                                <tr>\n                                    <td/>\n                                    <td/>\n                                    <td>Initial Population</td>\n                                    <td>\n                                        \n                                            <pre><code class=\"language-cql\">define \"Initial Population\":\n  \"Encounter with Principal Diagnosis and Age\" Encounter\n    where Encounter.isAttributable()</code></pre>\n                                        \n                                    </td>\n                                </tr>\n                                \n                                <tr>\n                                    <td/>\n                                    <td/>\n                                    <td>Denominator</td>\n                                    <td>\n                                        \n                                            <pre><code class=\"language-cql\"/></pre>\n                                        \n                                    </td>\n                                </tr>\n                                \n                                <tr>\n                                    <td/>\n                                    <td/>\n                                    <td>Numerator</td>\n                                    <td>\n                                        \n                                            <pre><code class=\"language-cql\"/></pre>\n                                        \n                                    </td>\n                                </tr>\n                                \n                                \n                            \n                            </tr>\n                        </table>\n                \n\n                <table class=\"grid-dict\">\n                    \n                        <tr>\n                            <th><b>Library Name</b></th>\n                            <th><b>Name</b></th>\n                        </tr>\n                        <tr>\n                            \n                                <td>MPPEncounterLevel</td>\n                            \n                            \n                                <td>Non Elective Inpatient Encounter</td>\n                            \n                        </tr>\n                        <tr>\n                            \n                                <td/>\n                                <td>\n                                    <pre class=\"highlight language-cql\"><code class=\"language-cql\">define \"Non Elective Inpatient Encounter\":\n  [\"Encounter\": \"Nonelective Inpatient Encounter\"] NonElectiveEncounter\n        where NonElectiveEncounter.period ends during day of \"Measurement Period\"</code></pre>\n                                </td>\n                            \n                        </tr>\n                    \n                        <tr>\n                            <th><b>Library Name</b></th>\n                            <th><b>Name</b></th>\n                        </tr>\n                        <tr>\n                            \n                                <td>MPPEncounterLevel</td>\n                            \n                            \n                                <td>All Stroke Encounter</td>\n                            \n                        </tr>\n                        <tr>\n                            \n                                <td/>\n                                <td>\n                                    <pre class=\"highlight language-cql\"><code class=\"language-cql\">define \"All Stroke Encounter\":\n  \"Non Elective Inpatient Encounter\" NonElectiveEncounter\n  let ConditionCode: NonElectiveEncounter.principalDiagnosis().code\n    where ( ConditionCode in \"Hemorrhagic Stroke\"\n       or   ConditionCode in \"Ischemic Stroke\" )</code></pre>\n                                </td>\n                            \n                        </tr>\n                    \n                        <tr>\n                            <th><b>Library Name</b></th>\n                            <th><b>Name</b></th>\n                        </tr>\n                        <tr>\n                            \n                                <td>MPPEncounterLevel</td>\n                            \n                            \n                                <td>Encounter with Principal Diagnosis and Age</td>\n                            \n                        </tr>\n                        <tr>\n                            \n                                <td/>\n                                <td>\n                                    <pre class=\"highlight language-cql\"><code class=\"language-cql\">define \"Encounter with Principal Diagnosis and Age\":\n  \"All Stroke Encounter\" AllStrokeEncounter\n    where AgeInYearsAt(date from start of AllStrokeEncounter.period ) &gt;= 18</code></pre>\n                                </td>\n                            \n                        </tr>\n                    \n                        <tr>\n                            <th><b>Library Name</b></th>\n                            <th><b>Name</b></th>\n                        </tr>\n                        <tr>\n                            \n                                <td>MPPEncounterLevel</td>\n                            \n                            \n                                <td>Initial Population</td>\n                            \n                        </tr>\n                        <tr>\n                            \n                                <td/>\n                                <td>\n                                    <pre class=\"highlight language-cql\"><code class=\"language-cql\">define \"Initial Population\":\n  \"Encounter with Principal Diagnosis and Age\" Encounter\n    where Encounter.isAttributable()</code></pre>\n                                </td>\n                            \n                        </tr>\n                    \n                        <tr>\n                            <th><b>Library Name</b></th>\n                            <th><b>Name</b></th>\n                        </tr>\n                        <tr>\n                            \n                                <td>CQMCommon</td>\n                            \n                            \n                                <td>principalDiagnosis</td>\n                            \n                        </tr>\n                        <tr>\n                            \n                                <td/>\n                                <td>\n                                    <pre class=\"highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns the condition that is specified as the principal diagnosis for the encounter\n*/\ndefine fluent function principalDiagnosis(Encounter Encounter ):\n	singleton from ((Encounter.diagnosis D where D.rank = 1) PD\n      return singleton from ([Condition] C where C.id = PD.condition.reference.getId())\n	)</code></pre>\n                                </td>\n                            \n                        </tr>\n                    \n                        <tr>\n                            <th><b>Library Name</b></th>\n                            <th><b>Name</b></th>\n                        </tr>\n                        <tr>\n                            \n                                <td>QICoreCommon</td>\n                            \n                            \n                                <td>getId</td>\n                            \n                        </tr>\n                        <tr>\n                            \n                                <td/>\n                                <td>\n                                    <pre class=\"highlight language-cql\"><code class=\"language-cql\">/*\n@description: Returns the tail of the given uri (i.e. everything after the last slash in the URI).\n@comment: This function can be used to determine the logical id of a given resource. It can be used in\na single-server environment to trace references. However, this function does not attempt to resolve\nor distinguish the base of the given url, and so cannot be used safely in multi-server environments.\n*/\ndefine fluent function getId(uri String):\n  Last(Split(uri, '/'))</code></pre>\n                                </td>\n                            \n                        </tr>\n                    \n                        <tr>\n                            <th><b>Library Name</b></th>\n                            <th><b>Name</b></th>\n                        </tr>\n                        <tr>\n                            \n                                <td>AttributionModel</td>\n                            \n                            \n                                <td>isAttributable</td>\n                            \n                        </tr>\n                        <tr>\n                            \n                                <td/>\n                                <td>\n                                    <pre class=\"highlight language-cql\"><code class=\"language-cql\">define fluent function isAttributable(encounter Encounter):\n  encounter.period during \"Measurement Period\"\n    and \"Provider\" is not null implies encounter.serviceProvider.reference.endsWith(\"Provider\")</code></pre>\n                                </td>\n                            \n                        </tr>\n                    \n                    </table>\n                </td>\n            </tr>\n            \n        \n    \n\n    </table>\n</div>"^^rdf:XMLLiteral ]
      ] ; #
      fhir:contained ( [
    a fhir:Library ;
    fhir:id [ fhir:v "effective-data-requirements" ] ;
        ( fhir:extension [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "MPPEncounterLevel"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Non Elective Inpatient Encounter"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"Non Elective Inpatient Encounter\":\n  [\"Encounter\": \"Nonelective Inpatient Encounter\"] NonElectiveEncounter\n        where NonElectiveEncounter.period ends during day of \"Measurement Period\""         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 0         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "MPPEncounterLevel"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "All Stroke Encounter"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"All Stroke Encounter\":\n  \"Non Elective Inpatient Encounter\" NonElectiveEncounter\n  let ConditionCode: NonElectiveEncounter.principalDiagnosis().code\n    where ( ConditionCode in \"Hemorrhagic Stroke\"\n       or   ConditionCode in \"Ischemic Stroke\" )"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 1         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "MPPEncounterLevel"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Encounter with Principal Diagnosis and Age"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"Encounter with Principal Diagnosis and Age\":\n  \"All Stroke Encounter\" AllStrokeEncounter\n    where AgeInYearsAt(date from start of AllStrokeEncounter.period ) >= 18"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 2         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "MPPEncounterLevel"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "Initial Population"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define \"Initial Population\":\n  \"Encounter with Principal Diagnosis and Age\" Encounter\n    where Encounter.isAttributable()"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 3         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "CQMCommon"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "principalDiagnosis"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "/*\n@description: Returns the condition that is specified as the principal diagnosis for the encounter\n*/\ndefine fluent function principalDiagnosis(Encounter Encounter ):\n	singleton from ((Encounter.diagnosis D where D.rank = 1) PD\n      return singleton from ([Condition] C where C.id = PD.condition.reference.getId())\n	)"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 4         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "QICoreCommon"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "getId"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "/*\n@description: Returns the tail of the given uri (i.e. everything after the last slash in the URI).\n@comment: This function can be used to determine the logical id of a given resource. It can be used in\na single-server environment to trace references. However, this function does not attempt to resolve\nor distinguish the base of the given url, and so cannot be used safely in multi-server environments.\n*/\ndefine fluent function getId(uri String):\n  Last(Split(uri, '/'))"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 5         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition>       ]     ] [
          ( fhir:extension [
    fhir:url [
    fhir:v "libraryName"^^xsd:anyURI ;
    fhir:l fhir:libraryName         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "AttributionModel"         ]       ] [
    fhir:url [
    fhir:v "name"^^xsd:anyURI ;
    fhir:l fhir:name         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "isAttributable"         ]       ] [
    fhir:url [
    fhir:v "statement"^^xsd:anyURI ;
    fhir:l fhir:statement         ] ;
    fhir:value [
    a fhir:String ;
    fhir:v "define fluent function isAttributable(encounter Encounter):\n  encounter.period during \"Measurement Period\"\n    and \"Provider\" is not null implies encounter.serviceProvider.reference.endsWith(\"Provider\")"         ]       ] [
    fhir:url [
    fhir:v "displaySequence"^^xsd:anyURI ;
    fhir:l fhir:displaySequence         ] ;
    fhir:value [
    a fhir:Integer ;
    fhir:v 6         ]       ] ) ;
    fhir:url [
    fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition>       ]     ] ) ;
    fhir:status [ fhir:v "active" ] ;
    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:relatedArtifact [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Library FHIRHelpers" ] ;
    fhir:resource [
    fhir:v "http://ecqi.healthit.gov/ecqms/Library/FHIRHelpers|4.3.000"^^xsd:anyURI ;
    fhir:l <http://ecqi.healthit.gov/ecqms/Library/FHIRHelpers?version=4.3.000>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Library CQMCommon" ] ;
    fhir:resource [
    fhir:v "http://ecqi.healthit.gov/ecqms/Library/CQMCommon|1.4.000"^^xsd:anyURI ;
    fhir:l <http://ecqi.healthit.gov/ecqms/Library/CQMCommon?version=1.4.000>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Library QICoreCommon" ] ;
    fhir:resource [
    fhir:v "http://ecqi.healthit.gov/ecqms/Library/QICoreCommon|1.5.000"^^xsd:anyURI ;
    fhir:l <http://ecqi.healthit.gov/ecqms/Library/QICoreCommon?version=1.5.000>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Library AM" ] ;
    fhir:resource [
    fhir:v "http://ecqi.healthit.gov/ecqms/Library/AttributionModel|0.1.0"^^xsd:anyURI ;
    fhir:l <http://ecqi.healthit.gov/ecqms/Library/AttributionModel?version=0.1.0>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Nonelective Inpatient Encounter" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.424"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.424>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Hemorrhagic Stroke" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.212"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.212>       ]     ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Ischemic Stroke" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.247"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.247>       ]     ] ) ;
        ( 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 "Provider" ] ;
    fhir:use [ fhir:v "in" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:type [ fhir:v "string" ]     ] [
    fhir:name [ fhir:v "Initial Population" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Resource" ]     ] ) ;
        ( fhir:dataRequirement [
    fhir:type [ fhir:v "Encounter" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter>       ] ) ;
          ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] [ fhir:v "rank" ] [ fhir:v "rank.value" ] [ fhir:v "condition" ] [ fhir:v "condition.reference" ] [ fhir:v "condition.reference.value" ] ) ;
          ( 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.424"^^xsd:anyURI ;
    fhir:l <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.424>         ]       ] ) ;
          ( fhir:dateFilter [
    fhir:path [ fhir:v "period" ] ;
    fhir:value [
    a fhir:Period ;
              ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-expression"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-expression>             ] ;
    fhir:value [
    a fhir:Expression ;
    fhir:language [ fhir:v "text/cql-identifier" ] ;
    fhir:expression [ fhir:v "Measurement Period" ]             ]           ] )         ]       ] )     ] [
    fhir:type [ fhir:v "Condition" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition>       ] ) ;
          ( fhir:mustSupport [ fhir:v "id" ] [ fhir:v "id.value" ] )     ] [
    fhir:type [ fhir:v "Patient" ] ;
          ( fhir:profile [
    fhir:v "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient>       ] )     ] )
      ] ) ; #
      fhir:extension ( [
    fhir:url [
    fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem>     ] ;
    fhir:value [
    a fhir:Reference ;
    fhir:l fhir: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/us/cqfmeasures/StructureDefinition/cqfm-effectiveDataRequirements"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-effectiveDataRequirements>     ] ;
    fhir:value [
    a fhir:Reference ;
    fhir:l <#effective-data-requirements> ;
    fhir:reference [ fhir:v "#effective-data-requirements" ]     ]
      ] ) ; #
      fhir:url [
    fhir:v "http://ecqi.healthit.gov/ecqms/Measure/MPPEncounterLevel"^^xsd:anyURI ;
    fhir:l <http://ecqi.healthit.gov/ecqms/Measure/MPPEncounterLevel>
      ] ; #
      fhir:version [ fhir:v "0.8.000"] ; #
      fhir:name [ fhir:v "MPPEncounterLevel"] ; #
      fhir:title [ fhir:v "Multi-provider Patient Encounter Level Example"] ; #
      fhir:status [ fhir:v "draft"] ; #
      fhir:experimental [ fhir:v true] ; #
      fhir:date [ fhir:v "2023-10-27T08:12:32+00:00"^^xsd:dateTime] ; #
      fhir:description [ fhir:v "Example measure supporting testing of the multi-provider patient scenario for encounter-based measures"] ; #
      fhir:useContext ( [
    fhir:code [
    fhir:system [
    fhir:v "http://terminology.hl7.org/CodeSystem/usage-context-type"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/usage-context-type>       ] ;
    fhir:code [ fhir:v "program" ]     ] ;
    fhir:value [
    a fhir:CodeableConcept ;
          ( fhir:coding [
    fhir:system [
    fhir:v "http://hl7.org/fhir/us/cqfmeasures/CodeSystem/quality-programs"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/cqfmeasures/CodeSystem/quality-programs>         ] ;
    fhir:code [ fhir:v "eh-cah" ] ;
    fhir:display [ fhir:v "EH/CAH" ]       ] )     ]
      ] ) ; #
      fhir:purpose [ fhir:v "To support testing of approaches to multi-provider patient scenarios with an encounter-based measure"] ; #
      fhir:effectivePeriod [
    fhir:start [ fhir:v "2024-01-01"^^xsd:date ] ;
    fhir:end [ fhir:v "2024-12-31"^^xsd:date ]
      ] ; #
      fhir:library ( [
    fhir:v "http://ecqi.healthit.gov/ecqms/Library/MPPEncounterLevel"^^xsd:anyURI ;
    fhir:l <http://ecqi.healthit.gov/ecqms/Library/MPPEncounterLevel>
      ] ) ; #
      fhir:group ( [
    fhir:id [ fhir:v "64403d17d4d7050edabb0562" ] ;
        ( fhir:extension [
    fhir:url [
    fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-scoring>       ] ;
    fhir:value [
    a fhir:CodeableConcept ;
            ( fhir:coding [
    fhir:system [
    fhir:v "http://terminology.hl7.org/CodeSystem/measure-scoring"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/measure-scoring>           ] ;
    fhir:code [ fhir:v "proportion" ] ;
    fhir:display [ fhir:v "Proportion" ]         ] )       ]     ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-populationBasis>       ] ;
    fhir:value [
    a fhir:Code ;
    fhir:v "Encounter"       ]     ] [
    fhir:url [
    fhir:v "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type"^^xsd:anyURI ;
    fhir:l <http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-type>       ] ;
    fhir:value [
    a fhir:CodeableConcept ;
            ( fhir:coding [
    fhir:system [
    fhir:v "http://terminology.hl7.org/CodeSystem/measure-type"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/measure-type>           ] ;
    fhir:code [ fhir:v "process" ] ;
    fhir:display [ fhir:v "Process" ]         ] )       ]     ] ) ;
        ( fhir:population [
    fhir:id [ fhir:v "937BAF2A-D36A-4EE5-B2B2-762A0FE04502" ] ;
    fhir:code [
            ( fhir:coding [
    fhir:system [
    fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/measure-population>           ] ;
    fhir:code [ fhir:v "initial-population" ] ;
    fhir:display [ fhir:v "Initial Population" ]         ] )       ] ;
    fhir:criteria [
    fhir:language [ fhir:v "text/cql-identifier" ] ;
    fhir:expression [ fhir:v "Initial Population" ]       ]     ] [
    fhir:id [ fhir:v "302C1DCC-7FE6-41EF-A94E-FDAE24B7BB1B" ] ;
    fhir:code [
            ( fhir:coding [
    fhir:system [
    fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/measure-population>           ] ;
    fhir:code [ fhir:v "denominator" ] ;
    fhir:display [ fhir:v "Denominator" ]         ] )       ] ;
    fhir:criteria [
    fhir:language [ fhir:v "text/cql-identifier" ] ;
    fhir:expression [ fhir:v "Denominator" ]       ]     ] [
    fhir:id [ fhir:v "99961E3A-EFC4-4858-A3EE-F7F1D5B222FB" ] ;
    fhir:code [
            ( fhir:coding [
    fhir:system [
    fhir:v "http://terminology.hl7.org/CodeSystem/measure-population"^^xsd:anyURI ;
    fhir:l <http://terminology.hl7.org/CodeSystem/measure-population>           ] ;
    fhir:code [ fhir:v "numerator" ] ;
    fhir:display [ fhir:v "Numerator" ]         ] )       ] ;
    fhir:criteria [
    fhir:language [ fhir:v "text/cql-identifier" ] ;
    fhir:expression [ fhir:v "Numerator" ]       ]     ] )
      ] ) . #