Quality Measure Implementation Guide
1.0.0 - STU 1

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

## : Example Logic Library - Module Definition Direct Reference - TTL Representation

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 "EXMLogic-ModuleDefinitionDirectReference"] ; #
      fhir:meta [
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-moduledefinitionlibrary"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-moduledefinitionlibrary>     ] )
      ] ; #
      fhir:text [
    fhir:status [ fhir:v "extensions" ] ;
    fhir:div "<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<td class=\"content-container\">Example Logic Library - Module Definition Direct Reference</td>\n</tr>\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Version</th>\n\n\n<td class=\"content-container\">1.0.0</td>\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<td class=\"content-container\">EXMLogic-ModuleDefinitionDirectReference</td>\n</tr>\n\n\n  \n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Identifier</th>\n\n\n<td class=\"content-container\">urn:oid:2.16.840.1.113883.4.642.40.61.28.19</td>\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<td class=\"content-container\">true</td>\n</tr>\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Jurisdiction</th>\n\n\n<td class=\"content-container\"><span title=\"Codes:{http://unstats.un.org/unsd/methods/m49/m49.htm 001}\">Global (Whole world)</span></td>\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<td class=\"content-container\">HL7 International / Clinical Quality Information</td>\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<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</tr>\n\n\n\n\n\n\n<tr>\n\n\n<th scope=\"row\" class=\"row-header\">Type</th>\n\n\n<td class=\"content-container\"><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/library-type module-definition}\">Module Definition</span></td>\n</tr>\n\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n\n  <td class=\"content-container\">\n    \n    <em>Name</em>: Measurement Period\n    \n    \n    <br/>\n    \n    \n    <em>Use</em>: In\n    \n    \n    <br/>\n    \n    \n    <em>Min Cardinality</em>: 0\n    \n    \n    <br/>\n    \n    \n    <em>Max Cardinality</em>: 1\n    \n    \n    <br/>\n    \n    \n    <em>Type</em>: Period\n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n\n  <td class=\"content-container\">\n    \n    <em>Name</em>: Patient\n    \n    \n    <br/>\n    \n    \n    <em>Use</em>: Out\n    \n    \n    <br/>\n    \n    \n    <em>Min Cardinality</em>: 0\n    \n    \n    <br/>\n    \n    \n    <em>Max Cardinality</em>: 1\n    \n    \n    <br/>\n    \n    \n    <em>Type</em>: Patient\n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n\n  <td class=\"content-container\">\n    \n    <em>Name</em>: Inpatient Encounter\n    \n    \n    <br/>\n    \n    \n    <em>Use</em>: Out\n    \n    \n    <br/>\n    \n    \n    <em>Min Cardinality</em>: 0\n    \n    \n    <br/>\n    \n    \n    <em>Max Cardinality</em>: *\n    \n    \n    <br/>\n    \n    \n    <em>Type</em>: Encounter\n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n\n  <td class=\"content-container\">\n    \n    <em>Name</em>: Initial Population\n    \n    \n    <br/>\n    \n    \n    <em>Use</em>: Out\n    \n    \n    <br/>\n    \n    \n    <em>Min Cardinality</em>: 0\n    \n    \n    <br/>\n    \n    \n    <em>Max Cardinality</em>: *\n    \n    \n    <br/>\n    \n    \n    <em>Type</em>: Encounter\n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n\n  <td class=\"content-container\">\n    \n    <em>Name</em>: Measure Population\n    \n    \n    <br/>\n    \n    \n    <em>Use</em>: Out\n    \n    \n    <br/>\n    \n    \n    <em>Min Cardinality</em>: 0\n    \n    \n    <br/>\n    \n    \n    <em>Max Cardinality</em>: *\n    \n    \n    <br/>\n    \n    \n    <em>Type</em>: Encounter\n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n\n  <td class=\"content-container\">\n    \n    <em>Name</em>: Stratifier 1\n    \n    \n    <br/>\n    \n    \n    <em>Use</em>: Out\n    \n    \n    <br/>\n    \n    \n    <em>Min Cardinality</em>: 0\n    \n    \n    <br/>\n    \n    \n    <em>Max Cardinality</em>: *\n    \n    \n    <br/>\n    \n    \n    <em>Type</em>: Encounter\n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n\n  <td class=\"content-container\">\n    \n    <em>Name</em>: Stratifier 2\n    \n    \n    <br/>\n    \n    \n    <em>Use</em>: Out\n    \n    \n    <br/>\n    \n    \n    <em>Min Cardinality</em>: 0\n    \n    \n    <br/>\n    \n    \n    <em>Max Cardinality</em>: *\n    \n    \n    <br/>\n    \n    \n    <em>Type</em>: Encounter\n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n\n  <td class=\"content-container\">\n    \n    <em>Name</em>: Stratifier 3\n    \n    \n    <br/>\n    \n    \n    <em>Use</em>: Out\n    \n    \n    <br/>\n    \n    \n    <em>Min Cardinality</em>: 0\n    \n    \n    <br/>\n    \n    \n    <em>Max Cardinality</em>: *\n    \n    \n    <br/>\n    \n    \n    <em>Type</em>: Encounter\n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n\n  <td class=\"content-container\">\n    \n    <em>Name</em>: Stratifier 4\n    \n    \n    <br/>\n    \n    \n    <em>Use</em>: Out\n    \n    \n    <br/>\n    \n    \n    <em>Min Cardinality</em>: 0\n    \n    \n    <br/>\n    \n    \n    <em>Max Cardinality</em>: *\n    \n    \n    <br/>\n    \n    \n    <em>Type</em>: Encounter\n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n\n  <td class=\"content-container\">\n    \n    <em>Name</em>: SDE Ethnicity\n    \n    \n    <br/>\n    \n    \n    <em>Use</em>: Out\n    \n    \n    <br/>\n    \n    \n    <em>Min Cardinality</em>: 0\n    \n    \n    <br/>\n    \n    \n    <em>Max Cardinality</em>: *\n    \n    \n    <br/>\n    \n    \n    <em>Type</em>: Coding\n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n\n  <td class=\"content-container\">\n    \n    <em>Name</em>: SDE Payer\n    \n    \n    <br/>\n    \n    \n    <em>Use</em>: Out\n    \n    \n    <br/>\n    \n    \n    <em>Min Cardinality</em>: 0\n    \n    \n    <br/>\n    \n    \n    <em>Max Cardinality</em>: *\n    \n    \n    <br/>\n    \n    \n    <em>Type</em>: Resource\n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n\n  <td class=\"content-container\">\n    \n    <em>Name</em>: SDE Race\n    \n    \n    <br/>\n    \n    \n    <em>Use</em>: Out\n    \n    \n    <br/>\n    \n    \n    <em>Min Cardinality</em>: 0\n    \n    \n    <br/>\n    \n    \n    <em>Max Cardinality</em>: *\n    \n    \n    <br/>\n    \n    \n    <em>Type</em>: Coding\n    \n  </td>\n</tr>\n\n<tr>\n  \n\n<th scope=\"row\" class=\"row-header\">Parameter</th>\n\n\n  <td class=\"content-container\">\n    \n    <em>Name</em>: SDE Sex\n    \n    \n    <br/>\n    \n    \n    <em>Use</em>: Out\n    \n    \n    <br/>\n    \n    \n    <em>Min Cardinality</em>: 0\n    \n    \n    <br/>\n    \n    \n    <em>Max Cardinality</em>: 1\n    \n    \n    <br/>\n    \n    \n    <em>Type</em>: Coding\n    \n  </td>\n</tr>\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    <em>Must Support Elements</em>: type, status, period\n    <br/>\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    <em>Must Support Elements</em>: id\n    <br/>\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    <em>Must Support Elements</em>: type, period\n    <br/>\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  <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    <em>Must Support Elements</em>: url, extension, value\n    <br/>\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    <em>Must Support Elements</em>: period\n    <br/>\n   \n   \n  </td>\n</tr>\n\n\n<tr>\n  <th colspan=\"2\" scope=\"row\" class=\"row-header\">Generated using version 0.4.9 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/cqf-directReferenceCode"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:Coding ;
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/diagnosis-role"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "billing" ] ;
    fhir:display [ fhir:v "Billing" ]     ]
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"       ]     ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Inpatient Encounter"       ]     ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Inpatient Encounter\" :\n  [\"Encounter\"] Encounter\n    where LengthInDays(Encounter.period) <= 120\n      and Encounter.period ends during \"Measurement Period\""       ]     ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 0       ]     ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"       ]     ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Initial Population"       ]     ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Initial Population\" :\n  \"Inpatient Encounter\" Encounter"       ]     ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 1       ]     ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"       ]     ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Measure Population"       ]     ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Measure Population\" :\n  \"Initial Population\""       ]     ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 2       ]     ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"       ]     ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Stratifier 1"       ]     ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Stratifier 1\" :\n  \"Inpatient Encounter\" Encounter\n    where not (PrincipalDiagnosis(Encounter).code in \"Psychiatric/Mental Health Patient\")"       ]     ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 3       ]     ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"       ]     ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Stratifier 2"       ]     ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Stratifier 2\" :\n  \"Inpatient Encounter\" Encounter\n    where PrincipalDiagnosis(Encounter).code in \"Psychiatric/Mental Health Patient\""       ]     ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 4       ]     ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"       ]     ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Stratifier 3"       ]     ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Stratifier 3\" :\n  \"Inpatient Encounter\" Encounter\n    where PrincipalDiagnosis(Encounter) is null"       ]     ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 5       ]     ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"       ]     ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Stratifier 4"       ]     ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"Stratifier 4\" :\n  \"Inpatient Encounter\" Encounter\n    where PrincipalDiagnosis(Encounter) is null"       ]     ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 6       ]     ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"       ]     ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "SDE Ethnicity"       ]     ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"SDE Ethnicity\":\n  (flatten (\n    Patient.extension Extension\n      where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'\n        return Extension.extension\n  )) E\n    where E.url = 'ombCategory'\n      or E.url = 'detailed'\n    return E.value as Coding"       ]     ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 7       ]     ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"       ]     ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "SDE Payer"       ]     ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"SDE Payer\":\n    [Coverage: type in \"Payer\"] Payer\n      return {\n        code: Payer.type,\n        period: Payer.period\n      }"       ]     ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 8       ]     ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"       ]     ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "SDE Race"       ]     ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"SDE Race\":\n  (flatten (\n    Patient.extension Extension\n      where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'\n        return Extension.extension\n  )) E\n    where E.url = 'ombCategory'\n      or E.url = 'detailed'\n    return E.value as Coding"       ]     ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 9       ]     ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "libraryName"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EXMLogic"       ]     ] [
    fhir:url [ fhir:v "name"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "SDE Sex"       ]     ] [
    fhir:url [ fhir:v "statement"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "define \"SDE Sex\":\n  case\n    when Patient.gender = 'male' then Code { code: 'M', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Male' }\n    when Patient.gender = 'female' then Code { code: 'F', system: 'http://hl7.org/fhir/v3/AdministrativeGender', display: 'Female' }\n    else null\n  end"       ]     ] [
    fhir:url [ fhir:v "displaySequence"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:integer ;
    fhir:v 10       ]     ] ) ;
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"^^xsd:anyURI ]
      ] [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:code ;
    fhir:v "cqi"     ]
      ] ) ; #
      fhir:url [ fhir:v "http://hl7.org/fhir/uv/cqm/Library/EXMLogic-ModuleDefinitionDirectReference"^^xsd:anyURI] ; #
      fhir:identifier ( [
    fhir:use [ fhir:v "official" ] ;
    fhir:system [ fhir:v "http://example.org/fhir/cqi/ecqm/Library/Identifier"^^xsd:anyURI ] ;
    fhir:value [ fhir:v "EXMLogic-ModuleDefinitionDirectReference" ]
      ] [
    fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;
    fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.40.61.28.19" ]
      ] ) ; #
      fhir:version [ fhir:v "1.0.0"] ; #
      fhir:name [ fhir:v "EXMLogicModuleDefinitionDirectReference"] ; #
      fhir:title [ fhir:v "Example Logic Library - Module Definition Direct Reference"] ; #
      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: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: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:link <http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|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:link <http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|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:link <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:link <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:link <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:link <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 Chronic Liver Disease Legacy Example" ] ;
    fhir:resource [
    fhir:v "http://hl7.org/fhir/uv/cqm/ValueSet/chronic-liver-disease-legacy-example"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/uv/cqm/ValueSet/chronic-liver-disease-legacy-example>     ]
      ] [
    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:link <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:link <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:link <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:link <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:value [
    a fhir:string ;
    fhir:v "Patient?_id={{context.patientId}}"       ]     ] ) ;
    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:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Encounter?subject=Patient/{{context.patientId}}"       ]     ] ) ;
    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 "period" ] )
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Encounter?subject=Patient/{{context.patientId}}"       ]     ] ) ;
    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 "period" ] )
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Encounter?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:link <http://hl7.org/fhir/StructureDefinition/Encounter>     ] ) ;
        ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "status" ] [ fhir:v "period" ] ) ;
        ( 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:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292>       ]     ] )
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Condition?subject=Patient/{{context.patientId}}"       ]     ] ) ;
    fhir:type [ fhir:v "Condition" ] ;
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Condition"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Condition>     ] ) ;
        ( fhir:mustSupport [ fhir:v "id" ] ) ;
        ( fhir:codeFilter [
    fhir:path [ fhir:v "id" ]     ] )
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Encounter?subject=Patient/{{context.patientId}}"       ]     ] ) ;
    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 "period" ] )
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Encounter?subject=Patient/{{context.patientId}}"       ]     ] ) ;
    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 "period" ] )
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Encounter?subject=Patient/{{context.patientId}}"       ]     ] ) ;
    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 "period" ] )
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Encounter?subject=Patient/{{context.patientId}}"       ]     ] ) ;
    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 "period" ] )
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Patient?_id={{context.patientId}}"       ]     ] ) ;
    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 "extension" ] [ fhir:v "value" ] )
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Patient?_id={{context.patientId}}"       ]     ] ) ;
    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 "extension" ] [ fhir:v "value" ] )
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Coverage?beneficiary=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:link <http://hl7.org/fhir/StructureDefinition/Coverage>     ] ) ;
        ( fhir:mustSupport [ fhir:v "type" ] [ fhir:v "period" ] ) ;
        ( 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:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591>       ]     ] )
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Patient?_id={{context.patientId}}"       ]     ] ) ;
    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 "extension" ] [ fhir:v "value" ] )
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Patient?_id={{context.patientId}}"       ]     ] ) ;
    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 "extension" ] [ fhir:v "value" ] )
      ] [
        ( fhir:extension [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-fhirQueryPattern"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Encounter?subject=Patient/{{context.patientId}}"       ]     ] ) ;
    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 "period" ] )
      ] ) . #