CDC National Healthcare Safety Network (NHSN) Digital Quality Measures (dQM) Content Package IG
1.0.0 - Release 1

CDC National Healthcare Safety Network (NHSN) Digital Quality Measures (dQM) Content Package IG - Downloaded Version 1.0.0 See the Directory of published versions

## : NHSN Acute Care Hospital Monthly Initial Population Library - TTL Representation

Page standards status: Trial-use | Maturity Level: 1

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 "NHSNAcuteCareHospitalMonthlyInitialPopulation"] ; #
      fhir:text [
    fhir:status [ fhir:v "extensions" ] ;
    fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n<div>\n    <table class=\"grid dict\">\n        \n        \n\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Id: </b></th>\n            <td style=\"padding-left: 4px;\">NHSNAcuteCareHospitalMonthlyInitialPopulation</td>\n        </tr>\n        \n\n        \n        \n        <tr>\n            <th scope=\"row\"><b>Version: </b></th>\n            <td style=\"padding-left: 4px;\">1.0.0</td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Url: </b></th>\n            <td style=\"padding-left: 4px;\"><a href=\"Library-NHSNAcuteCareHospitalMonthlyInitialPopulation.html\">NHSNAcuteCareHospitalMonthlyInitialPopulation</a></td>\n        </tr>\n        \n\n        \n\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\n        \n        <tr>\n            <th scope=\"row\"><b>Type: </b></th>\n            <td style=\"padding-left: 4px;\">\n                \n                    \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>system: </b> <span><a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-library-type.html\">http://terminology.hl7.org/CodeSystem/library-type</a></span>\n                        </p>\n                        \n                        \n                        <p style=\"margin-bottom: 5px;\">\n                            <b>code: </b> <span>logic-library</span>\n                        </p>\n                        \n                        \n                    \n                \n                \n            </td>\n        </tr>\n        \n\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Date: </b></th>\n            <td style=\"padding-left: 4px;\">2025-09-15 11:51:36-0400</td>\n        </tr>\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Publisher: </b></th>\n            <td style=\"padding-left: 4px;\">CDC National Healthcare Safety Network (NHSN)</td>\n        </tr>\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Jurisdiction: </b></th>\n            <td style=\"padding-left: 4px;\">US</td>\n        </tr>\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n\n        \n        <tr>\n            <th scope=\"row\"><b>Related Artifacts: </b></th>\n            <td style=\"padding-left: 4px;\">\n                \n                \n                \n                <p><b>Dependencies</b></p>\n                <ul>\n                  \n                    <li><a href=\"http://fhir.org/guides/cqf/common/4.0.1/4.0.1/Library-FHIR-ModelInfo.html\">http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1</a></li>\n                  \n                    <li><code>http://www.cdc.gov/nhsn/fhirportal/dqm/ig/Library/FHIRHelpers|4.0.2</code></li>\n                  \n                    <li><code>http://www.cdc.gov/nhsn/fhirportal/dqm/ig/Library/NHSNHelpers|0.0.002</code></li>\n                  \n                    <li><code>http://www.cdc.gov/nhsn/fhirportal/dqm/ig/Library/SharedResourceCreation|0.1.010</code></li>\n                  \n                    <li><a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-v3-ActCode.html\">ActCodeversion: null9.0.0)</a></li>\n                  \n                    <li><a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-observation-category.html\">Observation Category Codesversion: null1.0.1)</a></li>\n                  \n                    <li><a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-v3-loinc.html\">Logical Observation Identifiers, Names and Codes (LOINC)</a></li>\n                  \n                    <li><a href=\"http://terminology.hl7.org/5.0.0/CodeSystem-v2-0074.html\">diagnosticServiceSectionIdversion: null2.5.0)</a></li>\n                  \n                    <li><a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-condition-category.html\">Condition Category Codesversion: null1.0.1)</a></li>\n                  \n                    <li><a href=\"http://hl7.org/fhir/us/core/STU3.1.1/CodeSystem-condition-category.html\">US Core Condition Category Extension Codes</a></li>\n                  \n                    <li><a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-condition-clinical.html\">Condition Clinical Status Codesversion: null3.0.0)</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1046.265/expansion\">http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.265</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.292/expansion\">Emergency Department Visit</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.666.5.307/expansion\">Encounter Inpatient</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1111.143/expansion\">Observation Services</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1046.274/expansion\">http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.274</a></li>\n                  \n                </ul>\n                \n                \n                \n                \n                \n            </td>\n        </tr>\n        \n\n        \n        <tr>\n          <th scope=\"row\"><b>Parameters: </b></th>\n          <td style=\"padding-left: 4px;\">\n            <table class=\"grid-dict\">\n              <tr><th><b>Name</b></th><th><b>Type</b></th><th><b>Min</b></th><th><b>Max</b></th><th><b>In/Out</b></th></tr>\n              \n                <tr><th>Measurement Period</th><th>Period</th><th>0</th><th>1</th><th>In</th></tr>\n              \n                <tr><th>Patient</th><th>Patient</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n                <tr><th>Qualifying Encounters During Measurement Period</th><th>Encounter</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>Encounters</th><th>Encounter</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>Encounters with Patient Hospital Locations</th><th>Encounter</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>Initial Population</th><th>Encounter</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>Conditions</th><th>Condition</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>DiagnosticReports</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>Observations</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>Get Locations from IP Encounters in Measurement Period</th><th>Location</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE Condition</th><th>Condition</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE Device</th><th>Device</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE DiagnosticReport Lab</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE DiagnosticReport Note</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE DiagnosticReport Others</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE Encounter</th><th>Encounter</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE IP Encounters</th><th>Encounter</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE Location</th><th>Location</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE Medication Administration</th><th>MedicationAdministration</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE Medication Request</th><th>MedicationRequest</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE Medication</th><th>Medication</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE Observation Lab Category</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE Observation Vital Signs Category</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE Observation Category</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE Coverage</th><th>Coverage</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE Procedure</th><th>Procedure</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE Specimen</th><th>Specimen</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE Service Request</th><th>ServiceRequest</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE Minimal Patient</th><th>Patient</th><th>0</th><th>1</th><th>Out</th></tr>\n              \n            </table>\n          </td>\n        </tr>\n        \n\n        \n        <tr>\n          <th scope=\"row\"><b>Data Requirements:</b></th>\n          <td style=\"padding-left: 4px;\">\n            <table class=\"grid-dict\">\n              <tr><th><b>Type</b></th><th><b>Profile</b></th><th><b>MS</b></th><th><b>Code Filter</b></th></tr>\n              \n                <tr>\n                  <th>Patient</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Patient</th>\n                  <th/>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Encounter</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Encounter</th>\n                  <th>;;;;;;</th>\n                  <th>\n                    \n                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>type</span>\n                      </span>\n                      \n                      <br/>\n                      \n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307</span>\n                      </span>\n                      \n                      \n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Encounter</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Encounter</th>\n                  <th>;;;;;;</th>\n                  <th>\n                    \n                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>type</span>\n                      </span>\n                      \n                      <br/>\n                      \n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292</span>\n                      </span>\n                      \n                      \n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Encounter</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Encounter</th>\n                  <th>;;;;;;</th>\n                  <th>\n                    \n                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>type</span>\n                      </span>\n                      \n                      <br/>\n                      \n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143</span>\n                      </span>\n                      \n                      \n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Encounter</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Encounter</th>\n                  <th>;;;;;;</th>\n                  <th>\n                    \n                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>class</span>\n                      </span>\n                      \n                      <br/>\n                      \n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.274</span>\n                      </span>\n                      \n                      \n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Encounter</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Encounter</th>\n                  <th>;;;;;;</th>\n                  <th>\n                    \n                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>class</span>\n                      </span>\n                      \n                      <br/>\n                      \n                      \n                      \n                      \n                          \n                          <p style=\"margin-bottom: 5px;\">\n                              <b>system: </b> <span><a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-v3-ActCode.html\">http://terminology.hl7.org/CodeSystem/v3-ActCode</a></span>\n                          </p>\n                          \n                          \n                          <p style=\"margin-bottom: 5px;\">\n                              <b>code: </b> <span>EMER</span>\n                          </p>\n                          \n                          \n                          <p style=\"margin-bottom: 5px;\">\n                              <b>display: </b> <span>emergency</span>\n                          </p>\n                          \n                      \n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Encounter</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Encounter</th>\n                  <th>;;;;;;</th>\n                  <th>\n                    \n                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>class</span>\n                      </span>\n                      \n                      <br/>\n                      \n                      \n                      \n                      \n                          \n                          <p style=\"margin-bottom: 5px;\">\n                              <b>system: </b> <span><a href=\"http://terminology.hl7.org/6.5.0/CodeSystem-v3-ActCode.html\">http://terminology.hl7.org/CodeSystem/v3-ActCode</a></span>\n                          </p>\n                          \n                          \n                          <p style=\"margin-bottom: 5px;\">\n                              <b>code: </b> <span>OBSENC</span>\n                          </p>\n                          \n                          \n                          <p style=\"margin-bottom: 5px;\">\n                              <b>display: </b> <span>observation encounter</span>\n                          </p>\n                          \n                      \n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Encounter</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Encounter</th>\n                  <th>;;;;;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Condition</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Condition</th>\n                  <th>;;;;;;;;;;;;;;;;;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>DiagnosticReport</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/DiagnosticReport</th>\n                  <th>;;;;;;;;;;;;;;;;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Observation</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Observation</th>\n                  <th>;;;;;;;;;;;;;;;;;;;;;;;;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Device</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Device</th>\n                  <th>;;;;;;;;;;;;;;;;;;;;;;;;;;;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>MedicationAdministration</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/MedicationAdministration</th>\n                  <th>;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>MedicationRequest</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/MedicationRequest</th>\n                  <th>;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Medication</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Medication</th>\n                  <th>;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Coverage</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Coverage</th>\n                  <th>;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Procedure</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Procedure</th>\n                  <th>;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Specimen</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Specimen</th>\n                  <th>;;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>ServiceRequest</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/ServiceRequest</th>\n                  <th>;</th>\n                  <th>\n                    \n                  </th>\n                </tr>\n              \n            </table>\n          </td>\n        </tr>\n        \n\n        \n        \n        <tr>\n          <td colspan=\"2\">\n            <table>\n              <tr><th><a id=\"cql-content\"><b>Content: </b></a> text/cql</th></tr>\n              <tr><td><pre><code class=\"language-cql\">library NHSNAcuteCareHospitalMonthlyInitialPopulation version '1.0.1-dev'#xD;\n#xD;\nusing FHIR version '4.0.1'#xD;\n#xD;\ninclude FHIRHelpers version '4.0.2' called FHIRHelpers#xD;\ninclude NHSNHelpers version '0.0.002' called NHSNHelpers#xD;\ninclude SharedResourceCreation version '0.1.010' called SharedResource#xD;\n#xD;\ncodesystem \"ActCode\": 'http://terminology.hl7.org/CodeSystem/v3-ActCode'#xD;\ncodesystem \"Observation Category\": 'http://terminology.hl7.org/CodeSystem/observation-category'#xD;\ncodesystem \"LOINC\": 'http://loinc.org' #xD;\ncodesystem \"V2-0074\": 'http://terminology.hl7.org/CodeSystem/v2-0074'#xD;\ncodesystem \"Condition Category\": 'http://terminology.hl7.org/CodeSystem/condition-category'#xD;\ncodesystem \"US Core Condition Category\": 'http://hl7.org/fhir/us/core/CodeSystem/condition-category'#xD;\ncodesystem \"Condition Clinical Status\": 'http://terminology.hl7.org/CodeSystem/condition-clinical'#xD;\n#xD;\nvalueset \"Inpatient, Emergency, and Observation Locations\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.265'#xD;\nvalueset \"Emergency Department Visit\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292'#xD;\nvalueset \"Encounter Inpatient\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307'#xD;\nvalueset \"Observation Services\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143'#xD;\nvalueset \"NHSN Inpatient Encounter Class Codes\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.274'#xD;\n#xD;\n//code for Observation Category#xD;\ncode \"laboratory\": 'laboratory' from \"Observation Category\" display 'Laboratory'#xD;\ncode \"social-history\": 'social-history' from \"Observation Category\" display 'Social History'#xD;\ncode \"vital-signs\": 'vital-signs' from \"Observation Category\" display 'Vital Signs'#xD;\ncode \"imaging\": 'imaging' from \"Observation Category\" display 'Imaging'#xD;\ncode \"procedure\": 'procedure' from \"Observation Category\" display 'Procedure'#xD;\ncode \"survey\": 'survey' from \"Observation Category\" display 'Survey'#xD;\n#xD;\n//code for Condition category#xD;\ncode \"problem-list-item\": 'problem-list-item' from \"Condition Category\" display 'Problem List Item'#xD;\ncode \"encounter-diagnosis\": 'encounter-diagnosis' from \"Condition Category\" display 'Encounter Diagnosis'#xD;\ncode \"health-concern\": 'health-concern' from \"US Core Condition Category\" display 'Health Concern'#xD;\n#xD;\n//code for Diagnostic Report Category#xD;\ncode \"LAB\": 'LAB' from \"V2-0074\" display 'Laboratory'#xD;\ncode \"Radiology\": 'LP29684-5' from \"LOINC\" display 'Radiology'#xD;\ncode \"Pathology\": 'LP7839-6' from \"LOINC\" display 'Pathology'#xD;\ncode \"Cardiology\": 'LP29708-2' from \"LOINC\" display 'Cardiology'#xD;\n#xD;\n//code for Emergency Encounter Class#xD;\ncode \"emergency\": 'EMER' from \"ActCode\" display 'emergency'#xD;\ncode \"observation encounter\": 'OBSENC' from \"ActCode\" display 'observation encounter'#xD;\n#xD;\n//code for Condition clinicalStatus#xD;\ncode \"active\": 'active' from \"Condition Clinical Status\" display 'active'#xD;\n#xD;\nparameter \"Measurement Period\" #xD;\n    default Interval[@2024-04-01T00:00:00.0, @2024-04-30T23:59:59.0)#xD;\n#xD;\ncontext Patient #xD;\n#xD;\ndefine \"Qualifying Encounters During Measurement Period\":#xD;\n ( [Encounter: \"Encounter Inpatient\"]#xD;\n  union [Encounter: \"Emergency Department Visit\"]#xD;\n  union [Encounter: \"Observation Services\"]#xD;\n  union [Encounter: class in \"NHSN Inpatient Encounter Class Codes\"]#xD;\n  union [Encounter: class ~ \"emergency\"]#xD;\n  union [Encounter: class ~ \"observation encounter\"]) QualifyingEncounters#xD;\n  where QualifyingEncounters.status in {'in-progress', 'finished', 'triaged', 'onleave', 'entered-in-error'}#xD;\n    and QualifyingEncounters.period overlaps \"Measurement Period\" #xD;\n#xD;\ndefine \"Encounters with Patient Hospital Locations\":#xD;\n  \"Encounters\" Encounters#xD;\n  where exists(#xD;\n    Encounters.location EncounterLocation#xD;\n    where NHSNHelpers.GetLocation(EncounterLocation.location).type in \"Inpatient, Emergency, and Observation Locations\"#xD;\n      and EncounterLocation.period overlaps Encounters.period#xD;\n  )#xD;\n  and Encounters.status in {'in-progress', 'finished', 'triaged', 'onleave', 'entered-in-error'}#xD;\n  and Encounters.period overlaps \"Measurement Period\"#xD;\n#xD;\ndefine \"Initial Population\":#xD;\n  \"Qualifying Encounters During Measurement Period\"#xD;\n  union \"Encounters with Patient Hospital Locations\"#xD;\n#xD;\ndefine \"Encounters\":#xD;\n  [Encounter]#xD;\n#xD;\ndefine \"Conditions\":#xD;\n  [Condition]#xD;\n#xD;\ndefine \"DiagnosticReports\":#xD;\n  [DiagnosticReport]#xD;\n#xD;\ndefine \"Observations\":#xD;\n  [Observation]#xD;\n#xD;\ndefine \"Get Locations from IP Encounters in Measurement Period\":#xD;\n  flatten(\"Initial Population\" IP#xD;\n  let locationElements: IP.location#xD;\n  return#xD;\n    locationElements LE#xD;\n    let locationReference: LE.location#xD;\n    return NHSNHelpers.GetLocation(locationReference))#xD;\n#xD;\n//============================================================================#xD;\n//Supplemental Data Element#xD;\n//When FHIR.canonical value is present, US Core 3.1.1 profiles are used#xD;\n//When FHIR.canonical value is not present, FHIR Base profiles are used#xD;\n//============================================================================#xD;\ndefine \"SDE Condition\":#xD;\n  \"Conditions\" Conditions #xD;\n  where exists(#xD;\n    \"Initial Population\" IP#xD;\n    //Check for Problem List Conditions that were recorded before or during IP#xD;\n    where (#xD;\n      Conditions.recordedDate before end of IP.period#xD;\n      and exists(Conditions.category categories#xD;\n        where categories ~ \"problem-list-item\")#xD;\n      and Conditions.clinicalStatus ~ \"active\"#xD;\n    )#xD;\n    //Check for Encounter Diagnosis Conditions that reference an IP encounter#xD;\n    or (#xD;\n      (exists(IP.diagnosis Diagnoses#xD;\n          where GetCondition(Diagnoses.condition).id = Conditions.id#xD;\n        )#xD;\n        or GetEncounter(Conditions.encounter).id = IP.id#xD;\n      )#xD;\n      and exists (Conditions.category categories#xD;\n        where categories ~ \"encounter-diagnosis\"#xD;\n          or categories ~ \"health-concern\")#xD;\n    )#xD;\n  )#xD;\n  return ConditionResource(Conditions,#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-monthly-condition'}},#xD;\n  {\"problem-list-item\", \"encounter-diagnosis\", \"health-concern\"})#xD;\n#xD;\ndefine \"SDE Device\":#xD;\n  [Device] Devices #xD;\n  where exists(\"Initial Population\")#xD;\n  return DeviceResource(Devices,#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-monthly-device'}})#xD;\n#xD;\n//This block collects all DiagnosticReport resources while also marking Lab and Note DiagnosticReports with the appropriate profiles#xD;\n//#Start DiagnosticReport block#xD;\ndefine \"SDE DiagnosticReport Lab\":#xD;\n  \"DiagnosticReports\" DiagnosticReports#xD;\n  where (exists(DiagnosticReports.category Category where Category ~ \"LAB\")#xD;\n    and exists(#xD;\n      \"Initial Population\" IP#xD;\n      where NHSNHelpers.\"Normalize Interval\"(DiagnosticReports.effective) overlaps IP.period))#xD;\n  return SharedResource.DiagnosticReportLabResource(DiagnosticReports,#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-monthly-diagnosticreport-lab'}})#xD;\n #xD;\ndefine \"SDE DiagnosticReport Note\":#xD;\n  \"DiagnosticReports\" DiagnosticReports#xD;\n  where ((exists(DiagnosticReports.category Category where Category ~ \"Radiology\"))#xD;\n    or exists((DiagnosticReports.category Category where Category ~ \"Pathology\"))#xD;\n    or exists((DiagnosticReports.category Category where Category ~ \"Cardiology\")))#xD;\n    and exists(#xD;\n      \"Initial Population\" IP#xD;\n      where NHSNHelpers.\"Normalize Interval\"(DiagnosticReports.effective) overlaps IP.period)#xD;\n  return DiagnosticReportResource(DiagnosticReports,#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-monthly-diagnosticreport-note'}})#xD;\n#xD;\ndefine \"SDE DiagnosticReport Others\":#xD;\n  [DiagnosticReport] DiagnosticReports#xD;\n  where not ((exists(DiagnosticReports.category Category where Category ~ \"Radiology\"))#xD;\n    or exists((DiagnosticReports.category Category where Category ~ \"Pathology\"))#xD;\n    or exists((DiagnosticReports.category Category where Category ~ \"Cardiology\"))#xD;\n    or exists(DiagnosticReports.category Category where Category ~ \"LAB\"))#xD;\n    and exists(\"Initial Population\" IP#xD;\n      where NHSNHelpers.\"Normalize Interval\"(DiagnosticReports.effective) overlaps IP.period)#xD;\n  return DiagnosticReportResource(DiagnosticReports,#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-monthly-diagnosticreport'}})#xD;\n//#End DiagnosticReport block#xD;\n#xD;\ndefine \"SDE Encounter\": #xD;\n  \"Encounters\" Encounters#xD;\n  where not CheckIP(Encounters)#xD;\n  and exists(#xD;\n    \"Initial Population\" IP#xD;\n    where Encounters.period overlaps IP.period)#xD;\n  return SharedResource.EncounterResource(Encounters,#xD;\n  {FHIR.canonical{value: 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter'}})#xD;\n#xD;\ndefine \"SDE IP Encounters\":#xD;\n  \"Initial Population\" IP#xD;\n  return SharedResource.EncounterResource(IP, #xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-monthly-encounter'}})#xD;\n#xD;\ndefine \"SDE Location\":#xD;\n  \"Get Locations from IP Encounters in Measurement Period\" Locations#xD;\n  where exists(\"Initial Population\")#xD;\n  and Locations is not null#xD;\n  return SharedResource.LocationResource(Locations,#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-monthly-location'}})#xD;\n #xD;\ndefine \"SDE Medication Administration\":#xD;\n  [MedicationAdministration] MedicationAdministrations #xD;\n  where exists(#xD;\n    \"Initial Population\" IP#xD;\n    where NHSNHelpers.\"Normalize Interval\"(MedicationAdministrations.effective) overlaps IP.period)#xD;\n  return SharedResource.MedicationAdministrationResource(MedicationAdministrations,#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-monthly-medicationadministration'}})#xD;\n #xD;\ndefine \"SDE Medication Request\":#xD;\n  [MedicationRequest] MedicationRequests #xD;\n  where exists(#xD;\n    \"Initial Population\" IP#xD;\n    where MedicationRequests.authoredOn during IP.period)#xD;\n  return SharedResource.MedicationRequestResource(MedicationRequests,#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-monthly-medicationrequest'}})#xD;\n#xD;\ndefine \"SDE Medication\":#xD;\n  (\"SDE Medication Request\"#xD;\n  union \"SDE Medication Administration\") MedReqOrAdmin#xD;\n  where MedReqOrAdmin.medication is FHIR.Reference#xD;\n  and exists(\"Initial Population\") //No longer need to check for timing here because it's checked in SDE Medication Request/Administriation#xD;\n  return SharedResource.MedicationResource(GetMedicationFrom(MedReqOrAdmin.medication),#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-monthly-medication'}})#xD;\n#xD;\ndefine \"SDE Observation Lab Category\":#xD;\n  \"Observations\" Observations #xD;\n  where (exists(Observations.category Category where Category ~ \"laboratory\"))#xD;\n    and exists(#xD;\n      \"Initial Population\" IP#xD;\n      where NHSNHelpers.\"Normalize Interval\"(Observations.effective) overlaps IP.period)#xD;\n  return SharedResource.ObservationLabResource(Observations,#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-monthly-observation-lab'}})#xD;\n#xD;\n//Vital Signs Observation has its own profile in FHIR Base#xD;\ndefine \"SDE Observation Vital Signs Category\":#xD;\n  \"Observations\" Observations #xD;\n  where (exists(Observations.category Category where Category ~ \"vital-signs\"))#xD;\n    and exists(#xD;\n      \"Initial Population\" IP#xD;\n      where NHSNHelpers.\"Normalize Interval\"(Observations.effective) overlaps IP.period)#xD;\n  return ObservationVitalSignsResource(Observations,#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-monthly-observation-vitals'}})#xD;\n#xD;\n//Defaulting to base FHIR profile as there are no individual profiles in US Core 3.1.1 that cover these Observation categories#xD;\ndefine \"SDE Observation Category\":#xD;\n  \"Observations\" Observations #xD;\n  where ((exists(Observations.category Category where Category ~ \"social-history\"))#xD;\n    or (exists(Observations.category Category where Category ~ \"survey\"))#xD;\n    or (exists(Observations.category Category where Category ~ \"imaging\"))#xD;\n    or (exists(Observations.category Category where Category ~ \"procedure\")))#xD;\n    and exists(#xD;\n      \"Initial Population\" IP#xD;\n      where NHSNHelpers.\"Normalize Interval\"(Observations.effective) overlaps IP.period)#xD;\n  return ObservationResource(Observations,#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-monthly-observation'}})#xD;\n#xD;\ndefine \"SDE Coverage\": #xD;\n	[Coverage] Coverages#xD;\n  where exists(#xD;\n    \"Initial Population\" IP#xD;\n    where Coverages.period overlaps IP.period)#xD;\n  return SharedResource.CoverageResource(Coverages,#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-monthly-coverage'}})#xD;\n#xD;\ndefine \"SDE Procedure\":#xD;\n  [Procedure] Procedures #xD;\n  where exists(#xD;\n    \"Initial Population\" IP#xD;\n    where NHSNHelpers.\"Normalize Interval\"(Procedures.performed) overlaps IP.period)#xD;\n  return SharedResource.ProcedureResource(Procedures,#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-monthly-procedure'}})#xD;\n#xD;\ndefine \"SDE Specimen\":#xD;\n  [Specimen] Specimens#xD;\n  where exists(#xD;\n    \"Initial Population\" IP#xD;\n    where NHSNHelpers.\"Normalize Interval\"(Specimens.collection.collected) overlaps IP.period#xD;\n  )#xD;\n  return SharedResource.SpecimenResource(Specimens,#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-monthly-specimen'}})#xD;\n#xD;\ndefine \"SDE Service Request\":#xD;\n  [ServiceRequest] ServiceRequests#xD;\n  where exists(\"Initial Population\" IP#xD;\n    where ServiceRequests.authoredOn during IP.period)#xD;\n  return SharedResource.ServiceRequestResource(ServiceRequests,#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-monthly-servicerequest'}})#xD;\n#xD;\ndefine \"SDE Minimal Patient\":#xD;\n  Patient p#xD;\n  return SharedResource.PatientResource(p,#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/cross-measure-patient'}})#xD;\n#xD;\n//#xD;\n//Functions#xD;\n//#xD;\ndefine function \"CheckIP\"(encounter Encounter):#xD;\n  exists(\"Initial Population\" IP#xD;\n  where encounter.id = IP.id)#xD;\n#xD;\ndefine function \"GetMedicationFrom\"(choice Choice&lt;FHIR.CodeableConcept, FHIR.Reference&gt;):#xD;\n  case#xD;\n    when choice is FHIR.Reference then#xD;\n      GetMedication(choice as FHIR.Reference)#xD;\n    else#xD;\n      null#xD;\n  end#xD;\n#xD;\ndefine function \"GetMedication\"(reference Reference):#xD;\n  singleton from (#xD;\n    [Medication] Medications#xD;\n    where Medications.id = NHSNHelpers.GetId(reference.reference)#xD;\n  )#xD;\n#xD;\ndefine function \"GetCondition\"(reference Reference):#xD;\n  singleton from (#xD;\n    \"Conditions\" Conditions#xD;\n    where Conditions.id = NHSNHelpers.GetId(reference.reference)#xD;\n  )#xD;\n#xD;\ndefine function \"GetEncounter\"(reference Reference):#xD;\n  singleton from (#xD;\n    \"Encounters\" Encounters#xD;\n    where Encounters.id = NHSNHelpers.GetId(reference.reference)#xD;\n  )#xD;\n#xD;\ndefine function RemoveUnaccepted(codes List&lt;FHIR.CodeableConcept&gt;, accepted List&lt;System.Code&gt;):#xD;\n	codes c#xD;\n  where exists(#xD;\n    accepted a#xD;\n    where c ~ a#xD;\n  )#xD;\n#xD;\ndefine function FilterCodeableConcepts(codes List&lt;FHIR.CodeableConcept&gt;, accepted List&lt;System.Code&gt;):#xD;\n	if Count(accepted) &gt; 0#xD;\n		then RemoveUnaccepted(codes, accepted)#xD;\n	else codes#xD;\n#xD;\n//#xD;\n//Measure Specific Resource Creation Functions#xD;\n//#xD;\ndefine function ConditionResource(condition Condition, profileURLs List&lt;FHIR.canonical&gt;, acceptedCategories List&lt;System.Code&gt;):#xD;\n  condition c#xD;\n  return Condition{#xD;\n    id: FHIR.id {value: 'LCR-' + c.id},#xD;\n    meta: SharedResource.MetaElement(c, profileURLs),#xD;\n    extension: c.extension,#xD;\n    clinicalStatus: c.clinicalStatus,#xD;\n    verificationStatus: c.verificationStatus,#xD;\n    category: FilterCodeableConcepts(c.category, acceptedCategories),#xD;\n    severity: c.severity,#xD;\n    code: c.code,#xD;\n    bodySite: c.bodySite,#xD;\n    subject: c.subject,#xD;\n    encounter: c.encounter,#xD;\n    onset: c.onset,#xD;\n    abatement: c.abatement,#xD;\n    recordedDate: c.recordedDate,#xD;\n    stage: SharedResource.ConditionStage(c.stage),#xD;\n    evidence: SharedResource.ConditionEvidence(c.evidence),#xD;\n    note: c.note#xD;\n  }#xD;\n#xD;\ndefine function DeviceUdiCarrier(udiCarrier List&lt;FHIR.Device.UdiCarrier&gt;):#xD;\n  udiCarrier u#xD;\n  return FHIR.Device.UdiCarrier{#xD;\n    deviceIdentifier: u.deviceIdentifier,#xD;\n    issuer: u.issuer,#xD;\n    jurisdiction: u.jurisdiction,#xD;\n    carrierAIDC: u.carrierAIDC,#xD;\n    carrierHRF: u.carrierHRF,#xD;\n    entryType: u.entryType#xD;\n  }#xD;\n#xD;\ndefine function DeviceDeviceName(deviceName List&lt;FHIR.Device.DeviceName&gt;):#xD;\n  deviceName d#xD;\n  return FHIR.Device.DeviceName{#xD;\n    name: d.name,#xD;\n    type: d.type#xD;\n  }#xD;\n#xD;\ndefine function DeviceSpecialization(specialization List&lt;FHIR.Device.Specialization&gt;):#xD;\n  specialization s#xD;\n  return FHIR.Device.Specialization{#xD;\n    systemType: s.systemType,#xD;\n    version: s.version#xD;\n  }#xD;\n#xD;\ndefine function DeviceVersion(version List&lt;FHIR.Device.Version&gt;):#xD;\n  version v#xD;\n  return FHIR.Device.Version{#xD;\n    type: v.type,#xD;\n    component: v.component,#xD;\n    value: v.value#xD;\n  }#xD;\n#xD;\ndefine function DeviceProperty(deviceProperty List&lt;FHIR.Device.Property&gt;):#xD;\n  deviceProperty d#xD;\n  return FHIR.Device.Property{#xD;\n    id: d.id,#xD;\n    type: d.type,#xD;\n    valueQuantity: d.valueQuantity,#xD;\n    valueCode: d.valueCode#xD;\n  }#xD;\n#xD;\ndefine function DeviceResource(device Device, profileURLs List&lt;FHIR.canonical&gt;):#xD;\n  device d#xD;\n  return Device{#xD;\n    id: FHIR.id{value: 'LCR-' + d.id},#xD;\n    meta: SharedResource.MetaElement(d, profileURLs),#xD;\n    extension: d.extension,#xD;\n    definition: d.definition,#xD;\n    udiCarrier: DeviceUdiCarrier(d.udiCarrier),#xD;\n    status: d.status,#xD;\n    statusReason: d.statusReason,#xD;\n    distinctIdentifier: d.distinctIdentifier,#xD;\n    manufacturer: d.manufacturer,#xD;\n    manufactureDate: d.manufactureDate,#xD;\n    expirationDate: d.expirationDate,#xD;\n    lotNumber: d.lotNumber,#xD;\n    serialNumber: d.serialNumber,#xD;\n    deviceName: DeviceDeviceName(d.deviceName),#xD;\n    modelNumber: d.modelNumber,#xD;\n    partNumber: d.partNumber,#xD;\n    type: d.type,#xD;\n    specialization: DeviceSpecialization(d.specialization),#xD;\n    version: DeviceVersion(d.version),#xD;\n    property: DeviceProperty(d.property),#xD;\n    patient: d.patient,#xD;\n    owner: d.owner,#xD;\n    contact: d.contact,#xD;\n    location: d.location,#xD;\n    url: d.url,#xD;\n    note: d.note,#xD;\n    safety: d.safety,#xD;\n    parent: d.parent#xD;\n  }#xD;\n#xD;\ndefine function DiagnosticReportResource(diagnosticReport DiagnosticReport, profileURLs List&lt;FHIR.canonical&gt;):#xD;\n  diagnosticReport d#xD;\n  return DiagnosticReport{#xD;\n    id: FHIR.id{value: 'LCR-' + d.id},#xD;\n    meta: SharedResource.MetaElement(d, profileURLs),#xD;\n    extension: d.extension,#xD;\n    basedOn: d.basedOn,#xD;\n    status: d.status,#xD;\n    category: d.category,#xD;\n    code: d.code,#xD;\n    subject: d.subject,#xD;\n    encounter: d.encounter,#xD;\n    effective: d.effective,#xD;\n    issued: d.issued,#xD;\n    performer: d.performer,#xD;\n    resultsInterpreter: d.resultsInterpreter,#xD;\n    specimen: d.specimen,#xD;\n    result: d.result,#xD;\n    conclusion: d.conclusion,#xD;\n    conclusionCode: d.conclusionCode#xD;\n  }#xD;\n#xD;\ndefine function ObservationResource(observation Observation, profileURLs List&lt;FHIR.canonical&gt;):#xD;\n  observation o#xD;\n  return Observation{#xD;\n    id: FHIR.id {value: 'LCR-' + o.id},#xD;\n    meta: SharedResource.MetaElement(o, profileURLs),#xD;\n    extension: o.extension,#xD;\n    partOf: o.partOf,#xD;\n    status: o.status,#xD;\n    category: o.category,#xD;\n    code: o.code,#xD;\n    subject: o.subject,#xD;\n    focus: o.focus,#xD;\n    encounter: o.encounter,#xD;\n    effective: o.effective,#xD;\n    issued: o.issued,#xD;\n    performer: o.performer,#xD;\n    value: o.value,#xD;\n    dataAbsentReason: o.dataAbsentReason,#xD;\n    interpretation: o.interpretation,#xD;\n    note: o.note,#xD;\n    bodySite: o.bodySite,#xD;\n    method: o.method,#xD;\n    specimen: o.specimen,#xD;\n    device: o.device,#xD;\n    referenceRange: SharedResource.ObservationReferenceRange(o.referenceRange),#xD;\n    hasMember: o.hasMember,#xD;\n    derivedFrom: o.derivedFrom,#xD;\n    component: SharedResource.ObservationComponent(o.component)#xD;\n  }#xD;\n#xD;\ndefine function ObservationVitalSignsCoding(coding List&lt;Coding&gt;):#xD;\n  coding c#xD;\n  return Coding{#xD;\n    system: c.system,#xD;\n    version: c.version,#xD;\n    code: c.code,#xD;\n    display: c.display,#xD;\n    userSelected: c.userSelected#xD;\n  }#xD;\n#xD;\ndefine function ObservationVitalSignsCategory(category List&lt;CodeableConcept&gt;):#xD;\n  category c#xD;\n  return CodeableConcept{#xD;\n    coding: ObservationVitalSignsCoding(c.coding),#xD;\n    text: c.text#xD;\n  }#xD;\n#xD;\ndefine function ObservationVitalSignsComponent(component List&lt;FHIR.Observation.Component&gt;):#xD;\n  component c#xD;\n  return FHIR.Observation.Component{#xD;\n    code: c.code,#xD;\n    value: c.value,#xD;\n    dataAbsentReason: c.dataAbsentReason,#xD;\n    interpretation: c.interpretation,#xD;\n    referenceRange: SharedResource.ObservationReferenceRange(c.referenceRange)#xD;\n  }#xD;\n#xD;\ndefine function ObservationVitalSignsResource(observation Observation, profileURLs List&lt;FHIR.canonical&gt;):#xD;\n  observation o#xD;\n  return Observation{#xD;\n    id: FHIR.id {value: 'LCR-' + o.id},#xD;\n    meta: SharedResource.MetaElement(o, profileURLs),#xD;\n    extension: o.extension,#xD;\n    partOf: o.partOf,#xD;\n    status: o.status,#xD;\n    category: ObservationVitalSignsCategory(o.category),#xD;\n    code: o.code,#xD;\n    subject: o.subject,#xD;\n    focus: o.focus,#xD;\n    encounter: o.encounter,#xD;\n    effective: o.effective,#xD;\n    issued: o.issued,#xD;\n    performer: o.performer,#xD;\n    value: o.value,#xD;\n    dataAbsentReason: o.dataAbsentReason,#xD;\n    interpretation: o.interpretation,#xD;\n    note: o.note,#xD;\n    bodySite: o.bodySite,#xD;\n    method: o.method,#xD;\n    specimen: o.specimen,#xD;\n    device: o.device,#xD;\n    referenceRange: SharedResource.ObservationReferenceRange(o.referenceRange),#xD;\n    hasMember: o.hasMember,#xD;\n    derivedFrom: o.derivedFrom,#xD;\n    component: ObservationVitalSignsComponent(o.component)#xD;\n  }</code></pre></td></tr>\n            </table>\n          </td>\n        </tr>\n        \n        \n        \n    </table>\n</div>\n</div>"^^rdf:XMLLiteral
      ] ; #
      fhir:contained ( [
    a fhir:Parameters ;
    fhir:id [ fhir:v "options" ] ;
        ( fhir:parameter [
    fhir:name [ fhir:v "translatorVersion" ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "3.25.0"       ]     ] [
    fhir:name [ fhir:v "option" ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EnableDateRangeOptimization"       ]     ] [
    fhir:name [ fhir:v "option" ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EnableAnnotations"       ]     ] [
    fhir:name [ fhir:v "option" ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "EnableLocators"       ]     ] [
    fhir:name [ fhir:v "option" ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "DisableListDemotion"       ]     ] [
    fhir:name [ fhir:v "option" ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "DisableListPromotion"       ]     ] [
    fhir:name [ fhir:v "analyzeDataRequirements" ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v false       ]     ] [
    fhir:name [ fhir:v "collapseDataRequirements" ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v true       ]     ] [
    fhir:name [ fhir:v "compatibilityLevel" ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "1.5"       ]     ] [
    fhir:name [ fhir:v "enableCqlOnly" ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v false       ]     ] [
    fhir:name [ fhir:v "errorLevel" ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Info"       ]     ] [
    fhir:name [ fhir:v "signatureLevel" ] ;
    fhir:value [
    a fhir:string ;
    fhir:v "Overloads"       ]     ] [
    fhir:name [ fhir:v "validateUnits" ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v true       ]     ] [
    fhir:name [ fhir:v "verifyOnly" ] ;
    fhir:value [
    a fhir:boolean ;
    fhir:v false       ]     ] )
      ] ) ; #
      fhir:extension ( [
    fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-cqlOptions"^^xsd:anyURI ] ;
    fhir:value [
    a fhir:Reference ;
    fhir:reference [ fhir:v "#options" ]     ]
      ] ) ; #
      fhir:url [ fhir:v "http://www.cdc.gov/nhsn/fhirportal/dqm/ig/Library/NHSNAcuteCareHospitalMonthlyInitialPopulation"^^xsd:anyURI] ; #
      fhir:version [ fhir:v "1.0.0"] ; #
      fhir:name [ fhir:v "NHSNAcuteCareHospitalMonthlyInitialPopulation"] ; #
      fhir:status [ fhir:v "draft"] ; #
      fhir:type [
        ( fhir:coding [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/library-type"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "logic-library" ]     ] )
      ] ; #
      fhir:date [ fhir:v "2025-09-15T11:51:36-04:00"^^xsd:dateTime] ; #
      fhir:publisher [ fhir:v "CDC National Healthcare Safety Network (NHSN)"] ; #
      fhir:contact ( [
    fhir:name [ fhir:v "CDC National Healthcare Safety Network (NHSN)" ] ;
        ( fhir:telecom [
    fhir:system [ fhir:v "url" ] ;
    fhir:value [ fhir:v "http://www.cdc.gov/nhsn" ]     ] [
    fhir:system [ fhir:v "email" ] ;
    fhir:value [ fhir:v "nhsn@cdc.gov" ]     ] )
      ] ) ; #
      fhir:jurisdiction ( [
        ( fhir:coding [
    fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "US" ]     ] )
      ] ) ; #
      fhir:relatedArtifact ( [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "FHIR model information" ] ;
    fhir:resource [
    fhir:v "http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1"^^xsd:anyURI ;
    fhir:link <http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Library FHIRHelpers" ] ;
    fhir:resource [
    fhir:v "http://www.cdc.gov/nhsn/fhirportal/dqm/ig/Library/FHIRHelpers|4.0.2"^^xsd:anyURI ;
    fhir:link <http://www.cdc.gov/nhsn/fhirportal/dqm/ig/Library/FHIRHelpers|4.0.2>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Library NHSNHelpers" ] ;
    fhir:resource [
    fhir:v "http://www.cdc.gov/nhsn/fhirportal/dqm/ig/Library/NHSNHelpers|0.0.002"^^xsd:anyURI ;
    fhir:link <http://www.cdc.gov/nhsn/fhirportal/dqm/ig/Library/NHSNHelpers|0.0.002>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Library SharedResource" ] ;
    fhir:resource [
    fhir:v "http://www.cdc.gov/nhsn/fhirportal/dqm/ig/Library/SharedResourceCreation|0.1.010"^^xsd:anyURI ;
    fhir:link <http://www.cdc.gov/nhsn/fhirportal/dqm/ig/Library/SharedResourceCreation|0.1.010>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Code system ActCode" ] ;
    fhir:resource [
    fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode|9.0.0"^^xsd:anyURI ;
    fhir:link <http://terminology.hl7.org/CodeSystem/v3-ActCode|9.0.0>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Code system Observation Category" ] ;
    fhir:resource [
    fhir:v "http://terminology.hl7.org/CodeSystem/observation-category|1.0.1"^^xsd:anyURI ;
    fhir:link <http://terminology.hl7.org/CodeSystem/observation-category|1.0.1>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Code system LOINC" ] ;
    fhir:resource [
    fhir:v "http://loinc.org"^^xsd:anyURI ;
    fhir:link <http://loinc.org>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Code system V2-0074" ] ;
    fhir:resource [
    fhir:v "http://terminology.hl7.org/CodeSystem/v2-0074|2.5.0"^^xsd:anyURI ;
    fhir:link <http://terminology.hl7.org/CodeSystem/v2-0074|2.5.0>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Code system Condition Category" ] ;
    fhir:resource [
    fhir:v "http://terminology.hl7.org/CodeSystem/condition-category|1.0.1"^^xsd:anyURI ;
    fhir:link <http://terminology.hl7.org/CodeSystem/condition-category|1.0.1>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Code system US Core Condition Category" ] ;
    fhir:resource [
    fhir:v "http://hl7.org/fhir/us/core/CodeSystem/condition-category"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/us/core/CodeSystem/condition-category>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Code system Condition Clinical Status" ] ;
    fhir:resource [
    fhir:v "http://terminology.hl7.org/CodeSystem/condition-clinical|3.0.0"^^xsd:anyURI ;
    fhir:link <http://terminology.hl7.org/CodeSystem/condition-clinical|3.0.0>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Inpatient, Emergency, and Observation Locations" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.265"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.265>     ]
      ] [
    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 Encounter Inpatient" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set Observation Services" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143>     ]
      ] [
    fhir:type [ fhir:v "depends-on" ] ;
    fhir:display [ fhir:v "Value set NHSN Inpatient Encounter Class Codes" ] ;
    fhir:resource [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.274"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.274>     ]
      ] ) ; #
      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 "Qualifying Encounters During Measurement Period" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Encounter" ]
      ] [
    fhir:name [ fhir:v "Encounters" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Encounter" ]
      ] [
    fhir:name [ fhir:v "Encounters with Patient Hospital Locations" ] ;
    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 "Conditions" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Condition" ]
      ] [
    fhir:name [ fhir:v "DiagnosticReports" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "DiagnosticReport" ]
      ] [
    fhir:name [ fhir:v "Observations" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Observation" ]
      ] [
    fhir:name [ fhir:v "Get Locations from IP Encounters in Measurement Period" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Location" ]
      ] [
    fhir:name [ fhir:v "SDE Condition" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Condition" ]
      ] [
    fhir:name [ fhir:v "SDE Device" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Device" ]
      ] [
    fhir:name [ fhir:v "SDE DiagnosticReport Lab" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "DiagnosticReport" ]
      ] [
    fhir:name [ fhir:v "SDE DiagnosticReport Note" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "DiagnosticReport" ]
      ] [
    fhir:name [ fhir:v "SDE DiagnosticReport Others" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "DiagnosticReport" ]
      ] [
    fhir:name [ fhir:v "SDE Encounter" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Encounter" ]
      ] [
    fhir:name [ fhir:v "SDE IP Encounters" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Encounter" ]
      ] [
    fhir:name [ fhir:v "SDE Location" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Location" ]
      ] [
    fhir:name [ fhir:v "SDE Medication Administration" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "MedicationAdministration" ]
      ] [
    fhir:name [ fhir:v "SDE Medication Request" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "MedicationRequest" ]
      ] [
    fhir:name [ fhir:v "SDE Medication" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Medication" ]
      ] [
    fhir:name [ fhir:v "SDE Observation Lab Category" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Observation" ]
      ] [
    fhir:name [ fhir:v "SDE Observation Vital Signs Category" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Observation" ]
      ] [
    fhir:name [ fhir:v "SDE Observation Category" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Observation" ]
      ] [
    fhir:name [ fhir:v "SDE Coverage" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Coverage" ]
      ] [
    fhir:name [ fhir:v "SDE Procedure" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Procedure" ]
      ] [
    fhir:name [ fhir:v "SDE Specimen" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "Specimen" ]
      ] [
    fhir:name [ fhir:v "SDE Service Request" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "*" ] ;
    fhir:type [ fhir:v "ServiceRequest" ]
      ] [
    fhir:name [ fhir:v "SDE Minimal Patient" ] ;
    fhir:use [ fhir:v "out" ] ;
    fhir:min [ fhir:v 0 ] ;
    fhir:max [ fhir:v "1" ] ;
    fhir:type [ fhir:v "Patient" ]
      ] ) ; #
      fhir:dataRequirement ( [
    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: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:v "location" ] [ fhir:v "diagnosis" ] [ fhir:v "id" ] ) ;
        ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307>       ]     ] )
      ] [
    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:v "location" ] [ fhir:v "diagnosis" ] [ fhir:v "id" ] ) ;
        ( 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: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:v "location" ] [ fhir:v "diagnosis" ] [ fhir:v "id" ] ) ;
        ( fhir:codeFilter [
    fhir:path [ fhir:v "type" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143>       ]     ] )
      ] [
    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 "class" ] [ fhir:v "status" ] [ fhir:v "period" ] [ fhir:v "location" ] [ fhir:v "diagnosis" ] [ fhir:v "id" ] ) ;
        ( fhir:codeFilter [
    fhir:path [ fhir:v "class" ] ;
    fhir:valueSet [
    fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.274"^^xsd:anyURI ;
    fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.274>       ]     ] )
      ] [
    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 "class" ] [ fhir:v "status" ] [ fhir:v "period" ] [ fhir:v "location" ] [ fhir:v "diagnosis" ] [ fhir:v "id" ] ) ;
        ( fhir:codeFilter [
    fhir:path [ fhir:v "class" ] ;
          ( fhir:code [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "EMER" ] ;
    fhir:display [ fhir:v "emergency" ]       ] )     ] )
      ] [
    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 "class" ] [ fhir:v "status" ] [ fhir:v "period" ] [ fhir:v "location" ] [ fhir:v "diagnosis" ] [ fhir:v "id" ] ) ;
        ( fhir:codeFilter [
    fhir:path [ fhir:v "class" ] ;
          ( fhir:code [
    fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActCode"^^xsd:anyURI ] ;
    fhir:code [ fhir:v "OBSENC" ] ;
    fhir:display [ fhir:v "observation encounter" ]       ] )     ] )
      ] [
    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 "status" ] [ fhir:v "period" ] [ fhir:v "location" ] [ fhir:v "diagnosis" ] [ fhir:v "id" ] )
      ] [
    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:v "extension" ] [ fhir:v "clinicalStatus" ] [ fhir:v "verificationStatus" ] [ fhir:v "category" ] [ fhir:v "severity" ] [ fhir:v "code" ] [ fhir:v "bodySite" ] [ fhir:v "subject" ] [ fhir:v "encounter" ] [ fhir:v "onset" ] [ fhir:v "abatement" ] [ fhir:v "recordedDate" ] [ fhir:v "stage" ] [ fhir:v "evidence" ] [ fhir:v "note" ] [ fhir:v "encounter.id" ] )
      ] [
    fhir:type [ fhir:v "DiagnosticReport" ] ;
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/DiagnosticReport>     ] ) ;
        ( fhir:mustSupport [ fhir:v "id" ] [ fhir:v "extension" ] [ fhir:v "basedOn" ] [ fhir:v "status" ] [ fhir:v "category" ] [ fhir:v "code" ] [ fhir:v "subject" ] [ fhir:v "encounter" ] [ fhir:v "effective" ] [ fhir:v "issued" ] [ fhir:v "performer" ] [ fhir:v "resultsInterpreter" ] [ fhir:v "specimen" ] [ fhir:v "result" ] [ fhir:v "conclusion" ] [ fhir:v "conclusionCode" ] )
      ] [
    fhir:type [ fhir:v "Observation" ] ;
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>     ] ) ;
        ( fhir:mustSupport [ fhir:v "id" ] [ fhir:v "extension" ] [ fhir:v "partOf" ] [ fhir:v "status" ] [ fhir:v "category" ] [ fhir:v "code" ] [ fhir:v "subject" ] [ fhir:v "focus" ] [ fhir:v "encounter" ] [ fhir:v "effective" ] [ fhir:v "issued" ] [ fhir:v "performer" ] [ fhir:v "value" ] [ fhir:v "dataAbsentReason" ] [ fhir:v "interpretation" ] [ fhir:v "note" ] [ fhir:v "bodySite" ] [ fhir:v "method" ] [ fhir:v "specimen" ] [ fhir:v "device" ] [ fhir:v "referenceRange" ] [ fhir:v "hasMember" ] [ fhir:v "derivedFrom" ] [ fhir:v "component" ] )
      ] [
    fhir:type [ fhir:v "Device" ] ;
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Device"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Device>     ] ) ;
        ( fhir:mustSupport [ fhir:v "id" ] [ fhir:v "extension" ] [ fhir:v "definition" ] [ fhir:v "udiCarrier" ] [ fhir:v "status" ] [ fhir:v "statusReason" ] [ fhir:v "distinctIdentifier" ] [ fhir:v "manufacturer" ] [ fhir:v "manufactureDate" ] [ fhir:v "expirationDate" ] [ fhir:v "lotNumber" ] [ fhir:v "serialNumber" ] [ fhir:v "deviceName" ] [ fhir:v "modelNumber" ] [ fhir:v "partNumber" ] [ fhir:v "type" ] [ fhir:v "specialization" ] [ fhir:v "version" ] [ fhir:v "property" ] [ fhir:v "patient" ] [ fhir:v "owner" ] [ fhir:v "contact" ] [ fhir:v "location" ] [ fhir:v "url" ] [ fhir:v "note" ] [ fhir:v "safety" ] [ fhir:v "parent" ] )
      ] [
    fhir:type [ fhir:v "MedicationAdministration" ] ;
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/MedicationAdministration>     ] ) ;
        ( fhir:mustSupport [ fhir:v "effective" ] )
      ] [
    fhir:type [ fhir:v "MedicationRequest" ] ;
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/MedicationRequest"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/MedicationRequest>     ] ) ;
        ( fhir:mustSupport [ fhir:v "authoredOn" ] )
      ] [
    fhir:type [ fhir:v "Medication" ] ;
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Medication"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Medication>     ] ) ;
        ( fhir:mustSupport [ fhir:v "id" ] )
      ] [
    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 "period" ] )
      ] [
    fhir:type [ fhir:v "Procedure" ] ;
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Procedure"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Procedure>     ] ) ;
        ( fhir:mustSupport [ fhir:v "performed" ] )
      ] [
    fhir:type [ fhir:v "Specimen" ] ;
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/Specimen"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/Specimen>     ] ) ;
        ( fhir:mustSupport [ fhir:v "collection" ] [ fhir:v "collection.collected" ] )
      ] [
    fhir:type [ fhir:v "ServiceRequest" ] ;
        ( fhir:profile [
    fhir:v "http://hl7.org/fhir/StructureDefinition/ServiceRequest"^^xsd:anyURI ;
    fhir:link <http://hl7.org/fhir/StructureDefinition/ServiceRequest>     ] ) ;
        ( fhir:mustSupport [ fhir:v "authoredOn" ] )
      ] ) ; #
      fhir:content ( [
    fhir:contentType [ fhir:v "text/cql" ] ;
    fhir:data [ fhir:v " "^^xsd:base64Binary ]
      ] ) . #