CDC National Healthcare Safety Network (NHSN) Digital Quality Measures (dQM) Content Package IG
1.0.0 - Release 1 United States of America flag

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 Daily 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 "NHSNAcuteCareHospitalDailyInitialPopulation"] ; # 
  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;\">NHSNAcuteCareHospitalDailyInitialPopulation</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-NHSNAcuteCareHospitalDailyInitialPopulation.html\">NHSNAcuteCareHospitalDailyInitialPopulation</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-v3-loinc.html\">Logical Observation Identifiers, Names and Codes (LOINC)</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-rxNorm.html\">RxNorm</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.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.113762.1.4.1111.143/expansion\">Observation Services</a></li>\n                  \n                    <li><a href=\"http://terminology.hl7.org/6.5.0/ValueSet-encounter-discharge-disposition.html\">Discharge dispositionversion: null1.0.1)</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1146.1142/expansion\">COVID_19 (Tests for SARS_CoV_2 Nucleic Acid)</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1146.1158/expansion\">COVID_19 (Tests for SARS_CoV_2 Antigen)</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1146.1143/expansion\">COVID_19 (Organism or Substance in Lab Results)</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1146.336/expansion\">Influenza (Tests for influenza A or B virus Nucleic Acid)</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1146.337/expansion\">Influenza (Tests for influenza A or B virus Antigen)</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1146.340/expansion\">Influenza (influenza A or B virus in Lab Results)</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1146.1311/expansion\">http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1311</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1146.1312/expansion\">http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1312</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1146.1308/expansion\">http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1308</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1114.10/expansion\">LIVD SARS CoV2 Test Result Codes</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.3616.200.110.102.2046/expansion\">Baricitinib</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.3616.200.110.102.2054/expansion\">Anakinra</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.3616.200.110.102.2084/expansion\">Sarilumab</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.3616.200.110.102.2087/expansion\">COVID19 RxNorm Value Set for Tocilizumab</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.3616.200.110.102.2097/expansion\">http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2097</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.3616.200.110.102.2098/expansion\">http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2098</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.3616.200.110.102.2099/expansion\">http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2099</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.3616.200.110.102.2100/expansion\">http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2100</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.3616.200.110.102.2101/expansion\">http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2101</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.3616.200.110.102.2102/expansion\">http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2102</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.3616.200.110.102.2103/expansion\">http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2103</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.3616.200.110.102.2119/expansion\">http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2119</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.3616.200.110.102.2081/expansion\">Remdesivir</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.3616.200.110.102.2104/expansion\">http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2104</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.3616.200.110.102.2105/expansion\">http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2105</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1190.85/expansion\">http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.85</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1190.86/expansion\">http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.86</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1190.87/expansion\">http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.87</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.3616.200.110.102.2078/expansion\">Oseltamivir</a></li>\n                  \n                    <li><a href=\"https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.10.20.22.5.300/expansion\">http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.10.20.22.5.300</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>EncounterInpatient</th><th>Encounter</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>EncounterObservation</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>COVID And Influenza Observation</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>RSV Observation</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>ACH Daily Observation</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>COVID And Influenza PRE Admission Observation</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>RSV PRE Admission Observation</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>COVID And Influenza DiagnosticReport</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>RSV DiagnosticReport</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>ACH Daily DiagnosticReport</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>COVID And Influenza DiagnosticReport PRE Admission</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>RSV DiagnosticReport PRE Admission</th><th>DiagnosticReport</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>COVID and Influenza DiagnosticReport Observations</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>COVID and Influenza DiagnosticReport Result from Lab</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>RSV Observations</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>RSV DiagnosticReport Observations</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>RSV DiagnosticReport Result from Lab</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>ACH Daily DiagnosticReport Result from Lab</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>COVID and Influenza DiagnosticReport Result from Lab PRE Admission</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>RSV DiagnosticReport Result from Lab PRE Admission</th><th>DiagnosticReport</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>Encounters</th><th>Encounter</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 Minimal Patient</th><th>Patient</th><th>0</th><th>1</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 Encounter Discharge Dispositions</th><th>Encounter</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE ACH Daily Observation</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE RSV PRE Admission Observation</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE COVID And Influenza PRE Admission Observation</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE ACH Daily Specimen</th><th>Specimen</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE RSV Specimen</th><th>Specimen</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE COVID And Influenza Specimen</th><th>Specimen</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE ACH Daily DiagnosticReport</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE COVID And Influenza DiagnosticReport</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE RSV DiagnosticReport</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE ACH Daily DiagnosticReport Result from Lab</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE COVID and Influenza DiagnosticReport Result from Lab</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE RSV DiagnosticReport Result from Lab</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE ACH Daily ServiceRequest</th><th>ServiceRequest</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE Isolation Precautions Implemented</th><th>Procedure</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE Covid or Influenza Medication Administered</th><th>MedicationAdministration</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE Covid or Influenza Medication Ordered</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 All Observations</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE All ServiceRequests</th><th>ServiceRequest</th><th>0</th><th>*</th><th>Out</th></tr>\n              \n                <tr><th>SDE All Procedures</th><th>Procedure</th><th>0</th><th>*</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>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>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                      \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>Observation</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Observation</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>code</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.1146.336</span>\n                      </span>\n                      \n                      \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                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>code</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.1146.337</span>\n                      </span>\n                      \n                      \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                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>code</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.1146.1142</span>\n                      </span>\n                      \n                      \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                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>code</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.1146.1158</span>\n                      </span>\n                      \n                      \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                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>code</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.1146.1312</span>\n                      </span>\n                      \n                      \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                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>code</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.1146.1311</span>\n                      </span>\n                      \n                      \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>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>DiagnosticReport</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/DiagnosticReport</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>code</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.1146.1142</span>\n                      </span>\n                      \n                      \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                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>code</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.1146.1158</span>\n                      </span>\n                      \n                      \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                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>code</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.1146.336</span>\n                      </span>\n                      \n                      \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                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>code</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.1146.337</span>\n                      </span>\n                      \n                      \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                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>code</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.1146.1312</span>\n                      </span>\n                      \n                      \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                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>code</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.1146.1311</span>\n                      </span>\n                      \n                      \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>Location</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Location</th>\n                  <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                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>code</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.1146.1142</span>\n                      </span>\n                      \n                      \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                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>code</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.1146.1158</span>\n                      </span>\n                      \n                      \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                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>code</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.1146.336</span>\n                      </span>\n                      \n                      \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                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>code</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.1146.337</span>\n                      </span>\n                      \n                      \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                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>code</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.1146.1312</span>\n                      </span>\n                      \n                      \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                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>code</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.1146.1311</span>\n                      </span>\n                      \n                      \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                <tr>\n                  <th>Procedure</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Procedure</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>code</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.10.20.22.5.300</span>\n                      </span>\n                      \n                      \n                    \n                  </th>\n                </tr>\n              \n                <tr>\n                  <th>Procedure</th>\n                  <th>http://hl7.org/fhir/StructureDefinition/Procedure</th>\n                  <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                      <b>code filter: </b>\n                      \n                      <br/>\n                      \n                      \n                      <span style=\"padding-left: 4px;\">\n                          <b>path: </b><span>id</span>\n                      </span>\n                      \n                      \n                      \n                      \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            </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 NHSNAcuteCareHospitalDailyInitialPopulation version '1.0.0-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 \"LOINC\": 'http://loinc.org' #xD;\ncodesystem \"Observation Category\": 'http://terminology.hl7.org/CodeSystem/observation-category' #xD;\ncodesystem \"RXNORM\": 'http://www.nlm.nih.gov/research/umls/rxnorm'#xD;\n#xD;\nvalueset \"Encounter Inpatient\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307' #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 \"Observation Services\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143' #xD;\nvalueset \"Discharge Disposition\": 'http://terminology.hl7.org/ValueSet/encounter-discharge-disposition'#xD;\n#xD;\n//COVID-19 lab tests#xD;\nvalueset \"COVID_19 (Tests for SARS_CoV_2 Nucleic Acid)\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1142'#xD;\nvalueset \"COVID_19 (Tests for SARS_CoV_2 Antigen)\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1158'#xD;\n#xD;\n//COVID-19 test results (unused)#xD;\nvalueset \"COVID_19 (Organism or Substance in Lab Results)\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1143'#xD;\n#xD;\n//Influenza lab tests#xD;\nvalueset \"Influenza (Tests for influenza A or B virus Nucleic Acid)\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.336'#xD;\nvalueset \"Influenza (Tests for influenza A or B virus Antigen)\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.337'#xD;\n#xD;\n//Influenza test Results (unused)#xD;\nvalueset \"Influenza (influenza A or B virus in Lab Results)\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.340'#xD;\n#xD;\n//RSV lab tests#xD;\nvalueset \"RSV (Tests for RSV Antigen)\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1311'#xD;\nvalueset \"RSV (Tests for RSV Nucleic Acid)\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1312'#xD;\n#xD;\n//RSV test results (unused)#xD;\nvalueset \"RSV (Organism or Substance in Lab Results)\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1308'#xD;\n#xD;\n//Test results shared among COVID-19, Influenza and RSV (unused)#xD;\nvalueset \"LIVD SARS CoV2 Test Result Codes\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1114.10'#xD;\n#xD;\n//COVID-19 medications#xD;\nvalueset \"Baricitinib\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2046'#xD;\nvalueset \"Anakinra\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2054'#xD;\nvalueset \"Sarilumab\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2084'#xD;\nvalueset \"COVID19 RxNorm Value Set for Tocilizumab\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2087'#xD;\nvalueset \"Casirivimab\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2097'#xD;\nvalueset \"Imdevimab\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2098'#xD;\nvalueset \"Bamlanivimab\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2099'#xD;\nvalueset \"Etesevimab\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2100'#xD;\nvalueset \"Sotrovimab\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2101'#xD;\nvalueset \"Tofacitinib\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2102'#xD;\nvalueset \"Casirivimab / Imdevimab\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2103'#xD;\nvalueset \"Molnupiravir\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2119'#xD;\nvalueset \"Remdesivir\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2081'#xD;\nvalueset \"Nirmatrelvir / Ritonavir\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2104'#xD;\nvalueset \"Bebtelovimab\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2105'#xD;\n#xD;\n//Influenza medications#xD;\nvalueset \"Baloxavir\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.85'#xD;\nvalueset \"Peramivir\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.86'#xD;\nvalueset \"Zanamivir\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.87'#xD;\nvalueset \"Oseltamivir\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2078'#xD;\n#xD;\n//Isolation Precautions#xD;\nvalueset \"Transmission Based Precaution Types\": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.10.20.22.5.300'#xD;\n#xD;\n//Encounter Class Codes#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//Observation Category Codes#xD;\ncode \"laboratory\": 'laboratory' from \"Observation Category\" display 'Laboratory'#xD;\n#xD;\n//Observation Encounter Class Code#xD;\ncode \"observation encounter\": 'OBSENC' from \"ActCode\" display 'observation encounter'#xD;\n#xD;\nparameter \"Measurement Period\" #xD;\n  default Interval[@2022-01-01T00:00:00.0, @2022-01-02T00:00:00.0)#xD;\n#xD;\ncontext Patient#xD;\n#xD;\n//----------------------------------#xD;\n// Initial Population#xD;\n//----------------------------------#xD;\ndefine \"Initial Population\":#xD;\n  EncounterInpatient#xD;\n  union EncounterObservation#xD;\n  union \"Encounters with Patient Hospital Locations\"#xD;\n#xD;\ndefine \"EncounterInpatient\":#xD;\n  ([Encounter: \"Encounter Inpatient\"]#xD;\n    union [Encounter: class in \"NHSN Inpatient Encounter Class Codes\"]) Encounters#xD;\n  where Encounters.status in {'in-progress', 'finished', 'triaged', 'onleave', 'entered-in-error'}#xD;\n    and Encounters.period overlaps \"Measurement Period\"#xD;\n#xD;\ndefine \"EncounterObservation\":#xD;\n  ([Encounter: \"Observation Services\"]#xD;\n    union [Encounter: class in {\"observation encounter\"}]) Encounters#xD;\n  where Encounters.status in {'in-progress', 'finished', 'triaged', 'onleave', 'entered-in-error'}#xD;\n    and Encounters.period overlaps \"Measurement Period\"#xD;\n#xD;\ndefine \"Encounters with Patient Hospital Locations\":#xD;\n  [Encounter] Encounters#xD;\n  where exists(#xD;\n    Encounters.location EncounterLocation#xD;\n    let types: NHSNHelpers.GetLocation(EncounterLocation.location).type#xD;\n    where exists(#xD;\n      types type#xD;\n      where type in \"Inpatient, Emergency, and Observation Locations\"#xD;\n    )#xD;\n    and EncounterLocation.period overlaps Encounters.period#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;\n#xD;\n#xD;\n//-----------------------------------------------#xD;\n// Logic related to Laboratory#xD;\n//-----------------------------------------------#xD;\n//Lab Observations#xD;\ndefine \"COVID And Influenza Observation\":#xD;\n  ([Observation: \"Influenza (Tests for influenza A or B virus Nucleic Acid)\"] #xD;\n  union [Observation: \"Influenza (Tests for influenza A or B virus Antigen)\"]#xD;\n  union [Observation: \"COVID_19 (Tests for SARS_CoV_2 Nucleic Acid)\"]#xD;\n  union [Observation: \"COVID_19 (Tests for SARS_CoV_2 Antigen)\"]#xD;\n  ) Observations#xD;\n    where exists(Observations.category Category where Category ~ \"laboratory\")#xD;\n      and Observations.status in {'final','registered','preliminary','partial'}#xD;\n      and exists(\"Initial Population\")#xD;\n#xD;\ndefine \"RSV Observation\":#xD;\n  ([Observation: \"RSV (Tests for RSV Nucleic Acid)\"]#xD;\n  union [Observation: \"RSV (Tests for RSV Antigen)\"]   #xD;\n  ) Observations#xD;\n    where exists(Observations.category Category where Category ~ \"laboratory\")#xD;\n      and Observations.status in {'final','registered','preliminary','partial'}#xD;\n      and exists(\"Initial Population\")#xD;\n#xD;\ndefine \"ACH Daily Observation\":#xD;\n  \"RSV Observation\"#xD;\n  union \"COVID And Influenza Observation\"#xD;\n#xD;\n//further constrain COVID-19 and Influenza Observations for 14 day lookback#xD;\ndefine \"COVID And Influenza PRE Admission Observation\":#xD;\n  \"COVID And Influenza Observation\" O #xD;\n   where exists( EncounterInpatient E #xD;\n    where (#xD;\n      NHSNHelpers.\"Normalize Interval\"(O.effective) 14 days or less on or before start of E.period#xD;\n      or NHSNHelpers.\"Normalize Interval\"(GetSpecimen(O.specimen).collection.collected) 14 days or less on or before start of E.period#xD;\n      )#xD;\n      and start of E.period during \"Measurement Period\"#xD;\n    )  #xD;\n#xD;\n//further constrain RSV observation for 8 day lookback#xD;\ndefine \"RSV PRE Admission Observation\":#xD;\n  \"RSV Observation\" O #xD;\n  where exists(EncounterInpatient E #xD;\n    where (#xD;\n      NHSNHelpers.\"Normalize Interval\"(O.effective) 8 days or less on or before start of E.period#xD;\n      or NHSNHelpers.\"Normalize Interval\"(GetSpecimen(O.specimen).collection.collected) 8 days or less on or before start of E.period#xD;\n      )#xD;\n      and start of E.period during \"Measurement Period\"#xD;\n    )#xD;\n#xD;\n//Lab DiagnosticReport#xD;\ndefine \"COVID And Influenza DiagnosticReport\":#xD;\n  ([DiagnosticReport: \"COVID_19 (Tests for SARS_CoV_2 Nucleic Acid)\"]#xD;\n    union [DiagnosticReport: \"COVID_19 (Tests for SARS_CoV_2 Antigen)\"]#xD;\n    union [DiagnosticReport: \"Influenza (Tests for influenza A or B virus Nucleic Acid)\"]#xD;\n    union [DiagnosticReport: \"Influenza (Tests for influenza A or B virus Antigen)\"]#xD;\n  ) Reports#xD;\n    where exists(\"Initial Population\")#xD;\n      and Reports.status in {'final','registered','preliminary','partial'}#xD;\n#xD;\ndefine \"RSV DiagnosticReport\":#xD;\n  ([DiagnosticReport: \"RSV (Tests for RSV Nucleic Acid)\"]#xD;\n    union [DiagnosticReport: \"RSV (Tests for RSV Antigen)\"]#xD;\n  ) Reports#xD;\n    where exists(\"Initial Population\")#xD;\n      and Reports.status in {'final','registered','preliminary','partial'}#xD;\n#xD;\ndefine \"ACH Daily DiagnosticReport\":#xD;\n  \"COVID And Influenza DiagnosticReport\"#xD;\n    union \"RSV DiagnosticReport\"#xD;\n#xD;\n//further constrain COVID-19 and Influenza with 14 day lookback #xD;\ndefine \"COVID And Influenza DiagnosticReport PRE Admission\":#xD;\n  \"COVID And Influenza DiagnosticReport\" R #xD;\n  where exists(EncounterInpatient E #xD;\n    where (#xD;\n      NHSNHelpers.\"Normalize Interval\"(R.effective) 14 days or less on or before start of E.period)#xD;\n      and start of E.period during \"Measurement Period\"#xD;\n    )#xD;\n#xD;\n//further constrain RSV for 8 day lookback#xD;\ndefine \"RSV DiagnosticReport PRE Admission\":#xD;\n  \"RSV DiagnosticReport\" R #xD;\n  where exists(EncounterInpatient E #xD;\n    where (#xD;\n      NHSNHelpers.\"Normalize Interval\"(R.effective) 8 days or less on or before start of E.period)#xD;\n      and start of E.period during \"Measurement Period\"#xD;\n    )#xD;\n#xD;\ndefine \"COVID and Influenza DiagnosticReport Result from Lab\":#xD;\n  \"DiagnosticReports\" Reports#xD;\n    where exists(#xD;\n      \"COVID and Influenza DiagnosticReport Observations\" Observations#xD;\n      where Reports.result.references(Observations)#xD;\n    )#xD;\n    and Reports.status in {'final','registered','preliminary','partial'}#xD;\n    and exists(\"Initial Population\")#xD;\n#xD;\ndefine \"COVID and Influenza DiagnosticReport Observations\":#xD;\n  \"Observations\" Observations#xD;\n  where Observations.code in \"COVID_19 (Tests for SARS_CoV_2 Nucleic Acid)\"#xD;\n    or Observations.code in \"COVID_19 (Tests for SARS_CoV_2 Antigen)\"#xD;\n    or Observations.code in \"Influenza (Tests for influenza A or B virus Nucleic Acid)\"#xD;\n    or Observations.code in \"Influenza (Tests for influenza A or B virus Antigen)\"#xD;\n#xD;\n #xD;\ndefine \"RSV DiagnosticReport Result from Lab\":#xD;\n  [DiagnosticReport] Reports#xD;\n    where exists(\"RSV DiagnosticReport Observations\")#xD;\n      and Reports.status in {'final','registered','preliminary','partial'}#xD;\n      and exists(\"Initial Population\")#xD;\n#xD;\ndefine \"RSV Observations\":#xD;\n  \"Observations\" Observations#xD;\n  where Observations.code in \"RSV (Tests for RSV Nucleic Acid)\"#xD;\n    or Observations.code in \"RSV (Tests for RSV Antigen)\"#xD;\n    #xD;\ndefine \"RSV DiagnosticReport Observations\":#xD;\n  \"DiagnosticReports\" Reports#xD;\n  where exists(#xD;\n    \"RSV Observations\" Observations#xD;\n    where Reports.result.references(Observations)#xD;\n  )#xD;\n#xD;\ndefine \"ACH Daily DiagnosticReport Result from Lab\":#xD;\n  \"COVID and Influenza DiagnosticReport Result from Lab\"#xD;\n    union \"RSV DiagnosticReport Result from Lab\"#xD;\n#xD;\n//further constrain COVID-19 and Influenza with 14 day lookback#xD;\ndefine \"COVID and Influenza DiagnosticReport Result from Lab PRE Admission\":#xD;\n  \"COVID and Influenza DiagnosticReport Result from Lab\" R #xD;\n  where exists(EncounterInpatient E #xD;\n    where (#xD;\n      NHSNHelpers.\"Normalize Interval\"(R.effective) 14 days or less on or before start of E.period)#xD;\n      and start of E.period during \"Measurement Period\"#xD;\n    )#xD;\n#xD;\n//further constrain RSV with 8 day lookback#xD;\ndefine \"RSV DiagnosticReport Result from Lab PRE Admission\":#xD;\n  \"RSV DiagnosticReport Result from Lab\" R #xD;\n  where exists(EncounterInpatient E #xD;\n    where (#xD;\n      NHSNHelpers.\"Normalize Interval\"(R.effective) 8 days or less on or before start of E.period)#xD;\n      and start of E.period during \"Measurement Period\"#xD;\n    )#xD;\n    #xD;\n//----------------------------------#xD;\n// SDE#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-daily-encounter'}})#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 Minimal Patient\":#xD;\n  Patient p#xD;\n  where exists(\"Initial Population\")#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;\ndefine \"SDE Location\":#xD;\n  [Location] Locations#xD;\n  where exists(\"Initial Population\")#xD;\n  return SharedResource.LocationResource(Locations,#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-location'}})#xD;\n   #xD;\ndefine \"SDE Encounter Discharge Dispositions\":#xD;\n	\"Initial Population\" DischargeDispositions #xD;\n  where DischargeDispositions.hospitalization.dischargeDisposition in \"Discharge Disposition\"#xD;\n  return SharedResource.EncounterResource(DischargeDispositions,#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-encounter'}})#xD;\n#xD;\n//return the Observation during the Measurement Period#xD;\ndefine \"SDE ACH Daily Observation\":#xD;\n  \"ACH Daily Observation\" Observations#xD;\n    return SharedResource.ObservationLabResource(Observations,#xD;\n    {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-observation-lab'}})#xD;\n#xD;\n//return the RSV Observation Pre Admission    #xD;\ndefine \"SDE RSV PRE Admission Observation\":#xD;\n  \"RSV PRE Admission Observation\" Observations#xD;\n    return SharedResource.ObservationLabResource(Observations, #xD;\n    {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-observation-lab'}})#xD;\n#xD;\n//return the COVID-19 and Influenza Observation Pre Admission#xD;\ndefine \"SDE COVID And Influenza PRE Admission Observation\":#xD;\n  \"COVID And Influenza PRE Admission Observation\" Observations#xD;\n    return SharedResource.ObservationLabResource(Observations,#xD;\n    {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-observation-lab'}})#xD;\n#xD;\n//return the Specimen related to the Observation during the Measurement Period#xD;\ndefine \"SDE ACH Daily Specimen\":#xD;\n  \"ACH Daily Observation\" ObservationWithSpecimen#xD;\n    let Specimen: GetSpecimen(ObservationWithSpecimen.specimen)#xD;\n    return SharedResource.SpecimenResource(Specimen,#xD;\n    {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-specimen'}})#xD;\n#xD;\n//return the Specimen related to the RSV Observation Pre Admission#xD;\ndefine \"SDE RSV Specimen\":#xD;\n  \"RSV PRE Admission Observation\" ObservationWithSpecimen#xD;\n    let Specimen: GetSpecimen(ObservationWithSpecimen.specimen)#xD;\n    return SharedResource.SpecimenResource(Specimen,#xD;\n    {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-specimen'}})#xD;\n#xD;\n//return the Specimen related to the COVID-19 And Influenza Observation Pre Admission#xD;\ndefine \"SDE COVID And Influenza Specimen\":#xD;\n  \"COVID And Influenza PRE Admission Observation\" ObservationWithSpecimen#xD;\n    let Specimen: GetSpecimen(ObservationWithSpecimen.specimen)#xD;\n    return SharedResource.SpecimenResource(Specimen,#xD;\n    {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-specimen'}})#xD;\n#xD;\n//return the DiagnosticReport during the Measurement Period#xD;\ndefine \"SDE ACH Daily DiagnosticReport\":#xD;\n  \"ACH Daily DiagnosticReport\" Reports#xD;\n    return SharedResource.DiagnosticReportLabResource(Reports,#xD;\n    {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-diagnosticreport-lab'}})#xD;\n#xD;\n//return the COVID-19 And Influenza DiagnosticReport pre admission#xD;\ndefine \"SDE COVID And Influenza DiagnosticReport\":#xD;\n  \"COVID And Influenza DiagnosticReport\" Reports#xD;\n    return SharedResource.DiagnosticReportLabResource(Reports,#xD;\n    {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-diagnosticreport-lab'}})#xD;\n#xD;\n//return the RSV DiagnosticReport pre admission#xD;\ndefine \"SDE RSV DiagnosticReport\":#xD;\n  \"RSV DiagnosticReport\" Reports#xD;\n    return SharedResource.DiagnosticReportLabResource(Reports,#xD;\n    {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-diagnosticreport-lab'}})#xD;\n#xD;\n//return the DiagnosticReport based on the result during the Measurement Period    #xD;\ndefine \"SDE ACH Daily DiagnosticReport Result from Lab\":#xD;\n  \"ACH Daily DiagnosticReport Result from Lab\" Reports#xD;\n    return SharedResource.DiagnosticReportLabResource(Reports,#xD;\n    {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-diagnosticreport-lab'}})#xD;\n#xD;\n//return the COVID-19 and Influenza DiagnosticReport based on the result pre admission#xD;\ndefine \"SDE COVID and Influenza DiagnosticReport Result from Lab\":#xD;\n  \"COVID and Influenza DiagnosticReport Result from Lab\" Reports#xD;\n    return SharedResource.DiagnosticReportLabResource(Reports,#xD;\n    {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-diagnosticreport-lab'}})#xD;\n#xD;\n//return the RSV DiagnosticReport based on the result pre admission#xD;\ndefine \"SDE RSV DiagnosticReport Result from Lab\":#xD;\n  \"RSV DiagnosticReport Result from Lab\" Reports#xD;\n    return SharedResource.DiagnosticReportLabResource(Reports,#xD;\n    {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-diagnosticreport-lab'}})#xD;\n  #xD;\ndefine \"SDE ACH Daily ServiceRequest\":#xD;\n  ([ServiceRequest: \"COVID_19 (Tests for SARS_CoV_2 Nucleic Acid)\"] #xD;\n  union  [ServiceRequest: \"COVID_19 (Tests for SARS_CoV_2 Antigen)\"] #xD;\n  union  [ServiceRequest: \"Influenza (Tests for influenza A or B virus Nucleic Acid)\"]#xD;\n  union  [ServiceRequest: \"Influenza (Tests for influenza A or B virus Antigen)\"]#xD;\n  union  [ServiceRequest: \"RSV (Tests for RSV Nucleic Acid)\"]#xD;\n  union  [ServiceRequest: \"RSV (Tests for RSV Antigen)\"]#xD;\n  ) ServiceRequests#xD;\n    where ServiceRequests.intent ~ 'order'#xD;\n      and ServiceRequests.status ~ 'completed'#xD;\n      and exists(\"Initial Population\")#xD;\n  return SharedResource.ServiceRequestResource(ServiceRequests,#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-servicerequest'}})#xD;\n#xD;\ndefine \"SDE Isolation Precautions Implemented\":#xD;\n  [Procedure: \"Transmission Based Precaution Types\"] IsolationPrecautions#xD;\n    where NHSNHelpers.\"Normalize Interval\"(IsolationPrecautions.performed) during \"Measurement Period\"#xD;\n    and exists(\"Initial Population\")#xD;\n  return SharedResource.ProcedureResource(IsolationPrecautions,#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-procedure'}})#xD;\n#xD;\ndefine \"SDE Covid or Influenza Medication Administered\":#xD;\n  [MedicationAdministration] RPSMedAdmin#xD;\n    let Meds: GetMedicationCode(RPSMedAdmin.medication)#xD;\n   where (Meds in \"Anakinra\"#xD;\n            or Meds in \"Bamlanivimab\"#xD;\n            or Meds in \"Baloxavir\"#xD;\n            or Meds in \"Baricitinib\"#xD;\n            or Meds in \"Bebtelovimab\"#xD;\n            or Meds in \"Casirivimab\"#xD;\n            or Meds in \"Casirivimab / Imdevimab\"#xD;\n            or Meds in \"COVID19 RxNorm Value Set for Tocilizumab\"#xD;\n            or Meds in \"Etesevimab\"#xD;\n            or Meds in \"Imdevimab\"#xD;\n            or Meds in \"Molnupiravir\"#xD;\n            or Meds in \"Nirmatrelvir / Ritonavir\"#xD;\n            or Meds in \"Oseltamivir\"#xD;\n            or Meds in \"Peramivir\"#xD;\n            or Meds in \"Remdesivir\"#xD;\n            or Meds in \"Sarilumab\"#xD;\n            or Meds in \"Sotrovimab\"    #xD;\n            or Meds in \"Tofacitinib\"#xD;\n            or Meds in \"Zanamivir\")#xD;\n      and RPSMedAdmin.status ~ 'completed'#xD;\n      and exists(\"Initial Population\")#xD;\n      and NHSNHelpers.\"Normalize Interval\"(RPSMedAdmin.effective) during \"Measurement Period\"#xD;\n    return SharedResource.MedicationAdministrationResource(RPSMedAdmin,#xD;\n    {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-medicationadministration'}})#xD;\n#xD;\ndefine \"SDE Covid or Influenza Medication Ordered\":#xD;\n  [MedicationRequest] RPSMedRequest#xD;\n    let Meds: GetMedicationCode(RPSMedRequest.medication)#xD;\n    where (Meds in \"Anakinra\"#xD;\n            or Meds in \"Baloxavir\"#xD;\n            or Meds in \"Bamlanivimab\"#xD;\n            or Meds in \"Baricitinib\"#xD;\n            or Meds in \"Bebtelovimab\"#xD;\n            or Meds in \"Casirivimab\"#xD;\n            or Meds in \"Casirivimab / Imdevimab\"#xD;\n            or Meds in \"COVID19 RxNorm Value Set for Tocilizumab\"#xD;\n            or Meds in \"Etesevimab\"#xD;\n            or Meds in \"Imdevimab\"#xD;\n            or Meds in \"Molnupiravir\"#xD;\n            or Meds in \"Nirmatrelvir / Ritonavir\"#xD;\n            or Meds in \"Oseltamivir\"#xD;\n            or Meds in \"Peramivir\"#xD;\n            or Meds in \"Remdesivir\"#xD;\n            or Meds in \"Sarilumab\"#xD;\n            or Meds in \"Sotrovimab\"    #xD;\n            or Meds in \"Tofacitinib\"#xD;\n            or Meds in \"Zanamivir\")#xD;\n      and exists(\"Initial Population\")#xD;\n      and NHSNHelpers.\"Normalize Interval\"(RPSMedRequest.authoredOn) during \"Measurement Period\"#xD;\n    return SharedResource.MedicationRequestResource(RPSMedRequest,#xD;\n    {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-medicationrequest'}})#xD;\n#xD;\ndefine \"SDE Medication\":#xD;\n  (\"SDE Covid or Influenza Medication Ordered\"#xD;\n  union \"SDE Covid or Influenza Medication Administered\") MedReqOrAdmin#xD;\n  where MedReqOrAdmin.medication is FHIR.Reference#xD;\n  return SharedResource.MedicationResource(GetMedicationFrom(MedReqOrAdmin.medication),#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-medication'}})#xD;\n#xD;\n//To catch all isolation precautions#xD;\ndefine \"SDE All Observations\":#xD;\n  \"Observations\" O#xD;\n  where exists(\"Initial Population\")#xD;\n  return SharedResource.ObservationLabResource(O,#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-observation'}})#xD;\n#xD;\n//To catch all isolation precautions#xD;\ndefine \"SDE All ServiceRequests\":#xD;\n  [ServiceRequest] SR#xD;\n  where exists(\"Initial Population\")#xD;\n  return SharedResource.ServiceRequestResource(SR,#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-servicerequest'}})#xD;\n#xD;\n//To catch all isolation precautions#xD;\ndefine \"SDE All Procedures\":#xD;\n  [Procedure] P#xD;\n  where exists(\"Initial Population\")#xD;\n  return SharedResource.ProcedureResource(P,#xD;\n  {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-procedure'}})#xD;\n#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 \"GetMedication\"(reference Reference ):#xD;\n  singleton from (#xD;\n    [Medication: id in {NHSNHelpers.GetId(reference.reference)}]#xD;\n  )#xD;\n#xD;\ndefine function \"GetMedicationCode\"(choice Choice&lt;FHIR.CodeableConcept, FHIR.Reference&gt;):#xD;\n  case#xD;\n    when choice is FHIR.CodeableConcept then#xD;\n      choice as FHIR.CodeableConcept#xD;\n    when choice is FHIR.Reference then#xD;\n      GetMedication(choice as FHIR.Reference).code#xD;\n    else#xD;\n      null as FHIR.CodeableConcept#xD;\n  end#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 \"GetSpecimen\"(reference FHIR.Reference):#xD;\n  singleton from (#xD;\n    [Specimen] Specimens#xD;\n    where Specimens.id = NHSNHelpers.GetId(reference.reference)#xD;\n  )#xD;\n#xD;\ndefine function \"GetEncounter\"(reference FHIR.Reference):#xD;\n  singleton from (#xD;\n    \"Encounters\" Encounters#xD;\n    where Encounters.id = NHSNHelpers.GetId(reference.reference)#xD;\n  )#xD;\n#xD;\ndefine fluent function references(reference FHIR.Reference, resource FHIR.Resource):#xD;\n  resource.id = Last(Split(reference.reference, '/'))#xD;\n#xD;\ndefine fluent function references(references List&lt;FHIR.Reference&gt;, resource FHIR.Resource):#xD;\n  exists(references R where R.references(resource))#xD;\n#xD;\n//Common Retrievals#xD;\ndefine \"Encounters\":#xD;\n  [Encounter]#xD;\n#xD;\ndefine \"Observations\":#xD;\n  [Observation]#xD;\n#xD;\ndefine \"DiagnosticReports\":#xD;\n  [DiagnosticReport]#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/NHSNAcuteCareHospitalDailyInitialPopulation"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "1.0.0"] ; # 
  fhir:name [ fhir:v "NHSNAcuteCareHospitalDailyInitialPopulation"] ; # 
  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 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 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 RXNORM" ] ;
fhir:resource [
fhir:v "http://www.nlm.nih.gov/research/umls/rxnorm"^^xsd:anyURI ;
fhir:link <http://www.nlm.nih.gov/research/umls/rxnorm>     ]
  ] [
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 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 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 Discharge Disposition" ] ;
fhir:resource [
fhir:v "http://terminology.hl7.org/ValueSet/encounter-discharge-disposition|1.0.1"^^xsd:anyURI ;
fhir:link <http://terminology.hl7.org/ValueSet/encounter-discharge-disposition|1.0.1>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set COVID_19 (Tests for SARS_CoV_2 Nucleic Acid)" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1142"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1142>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set COVID_19 (Tests for SARS_CoV_2 Antigen)" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1158"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1158>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set COVID_19 (Organism or Substance in Lab Results)" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1143"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1143>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Influenza (Tests for influenza A or B virus Nucleic Acid)" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.336"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.336>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Influenza (Tests for influenza A or B virus Antigen)" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.337"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.337>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Influenza (influenza A or B virus in Lab Results)" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.340"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.340>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set RSV (Tests for RSV Antigen)" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1311"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1311>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set RSV (Tests for RSV Nucleic Acid)" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1312"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1312>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set RSV (Organism or Substance in Lab Results)" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1308"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1308>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set LIVD SARS CoV2 Test Result Codes" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1114.10"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1114.10>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Baricitinib" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2046"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2046>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Anakinra" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2054"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2054>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Sarilumab" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2084"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2084>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set COVID19 RxNorm Value Set for Tocilizumab" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2087"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2087>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Casirivimab" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2097"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2097>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Imdevimab" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2098"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2098>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Bamlanivimab" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2099"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2099>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Etesevimab" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2100"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2100>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Sotrovimab" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2101"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2101>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Tofacitinib" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2102"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2102>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Casirivimab / Imdevimab" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2103"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2103>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Molnupiravir" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2119"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2119>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Remdesivir" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2081"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2081>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Nirmatrelvir / Ritonavir" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2104"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2104>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Bebtelovimab" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2105"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2105>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Baloxavir" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.85"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.85>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Peramivir" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.86"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.86>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Zanamivir" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.87"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.87>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Oseltamivir" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2078"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2078>     ]
  ] [
fhir:type [ fhir:v "depends-on" ] ;
fhir:display [ fhir:v "Value set Transmission Based Precaution Types" ] ;
fhir:resource [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.10.20.22.5.300"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.10.20.22.5.300>     ]
  ] [
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 "EncounterInpatient" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Encounter" ]
  ] [
fhir:name [ fhir:v "EncounterObservation" ] ;
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 "COVID And Influenza Observation" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Observation" ]
  ] [
fhir:name [ fhir:v "RSV Observation" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Observation" ]
  ] [
fhir:name [ fhir:v "ACH Daily Observation" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Observation" ]
  ] [
fhir:name [ fhir:v "COVID And Influenza PRE Admission Observation" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Observation" ]
  ] [
fhir:name [ fhir:v "RSV PRE Admission Observation" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Observation" ]
  ] [
fhir:name [ fhir:v "COVID And Influenza DiagnosticReport" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "DiagnosticReport" ]
  ] [
fhir:name [ fhir:v "RSV DiagnosticReport" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "DiagnosticReport" ]
  ] [
fhir:name [ fhir:v "ACH Daily DiagnosticReport" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "DiagnosticReport" ]
  ] [
fhir:name [ fhir:v "COVID And Influenza DiagnosticReport PRE Admission" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "DiagnosticReport" ]
  ] [
fhir:name [ fhir:v "RSV DiagnosticReport PRE Admission" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "DiagnosticReport" ]
  ] [
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 "COVID and Influenza DiagnosticReport Observations" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Observation" ]
  ] [
fhir:name [ fhir:v "COVID and Influenza DiagnosticReport Result from Lab" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "DiagnosticReport" ]
  ] [
fhir:name [ fhir:v "RSV Observations" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Observation" ]
  ] [
fhir:name [ fhir:v "RSV DiagnosticReport Observations" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "DiagnosticReport" ]
  ] [
fhir:name [ fhir:v "RSV DiagnosticReport Result from Lab" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "DiagnosticReport" ]
  ] [
fhir:name [ fhir:v "ACH Daily DiagnosticReport Result from Lab" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "DiagnosticReport" ]
  ] [
fhir:name [ fhir:v "COVID and Influenza DiagnosticReport Result from Lab PRE Admission" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "DiagnosticReport" ]
  ] [
fhir:name [ fhir:v "RSV DiagnosticReport Result from Lab PRE Admission" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "DiagnosticReport" ]
  ] [
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 "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 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 Minimal 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 "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 Encounter Discharge Dispositions" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Encounter" ]
  ] [
fhir:name [ fhir:v "SDE ACH Daily Observation" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Observation" ]
  ] [
fhir:name [ fhir:v "SDE RSV PRE Admission Observation" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Observation" ]
  ] [
fhir:name [ fhir:v "SDE COVID And Influenza PRE Admission Observation" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Observation" ]
  ] [
fhir:name [ fhir:v "SDE ACH Daily 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 RSV 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 COVID And Influenza 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 ACH Daily DiagnosticReport" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "DiagnosticReport" ]
  ] [
fhir:name [ fhir:v "SDE COVID And Influenza DiagnosticReport" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "DiagnosticReport" ]
  ] [
fhir:name [ fhir:v "SDE RSV DiagnosticReport" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "DiagnosticReport" ]
  ] [
fhir:name [ fhir:v "SDE ACH Daily DiagnosticReport Result from 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 COVID and Influenza DiagnosticReport Result from 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 RSV DiagnosticReport Result from 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 ACH Daily ServiceRequest" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "ServiceRequest" ]
  ] [
fhir:name [ fhir:v "SDE Isolation Precautions Implemented" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Procedure" ]
  ] [
fhir:name [ fhir:v "SDE Covid or Influenza Medication Administered" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "MedicationAdministration" ]
  ] [
fhir:name [ fhir:v "SDE Covid or Influenza Medication Ordered" ] ;
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 All Observations" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Observation" ]
  ] [
fhir:name [ fhir:v "SDE All ServiceRequests" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "ServiceRequest" ]
  ] [
fhir:name [ fhir:v "SDE All Procedures" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v 0 ] ;
fhir:max [ fhir:v "*" ] ;
fhir:type [ fhir:v "Procedure" ]
  ] ) ; # 
  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 "id" ] [ fhir:v "hospitalization" ] [ fhir:v "hospitalization.dischargeDisposition" ] ) ;
    ( 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 "class" ] [ fhir:v "status" ] [ fhir:v "period" ] [ fhir:v "id" ] [ fhir:v "hospitalization" ] [ fhir:v "hospitalization.dischargeDisposition" ] ) ;
    ( 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 "type" ] [ fhir:v "status" ] [ fhir:v "period" ] [ fhir:v "id" ] [ fhir:v "hospitalization" ] [ fhir:v "hospitalization.dischargeDisposition" ] ) ;
    ( 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 "id" ] [ fhir:v "hospitalization" ] [ fhir:v "hospitalization.dischargeDisposition" ] ) ;
    ( 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 "location" ] [ fhir:v "period" ] [ fhir:v "status" ] [ fhir:v "id" ] [ fhir:v "hospitalization" ] [ fhir:v "hospitalization.dischargeDisposition" ] )
  ] [
fhir:type [ fhir:v "Observation" ] ;
    ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>     ] ) ;
    ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "category" ] [ fhir:v "status" ] [ fhir:v "effective" ] [ fhir:v "specimen" ] [ fhir:v "specimen.collection" ] [ fhir:v "specimen.collection.collected" ] ) ;
    ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.336"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.336>       ]     ] )
  ] [
fhir:type [ fhir:v "Observation" ] ;
    ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>     ] ) ;
    ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "category" ] [ fhir:v "status" ] [ fhir:v "effective" ] [ fhir:v "specimen" ] [ fhir:v "specimen.collection" ] [ fhir:v "specimen.collection.collected" ] ) ;
    ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.337"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.337>       ]     ] )
  ] [
fhir:type [ fhir:v "Observation" ] ;
    ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>     ] ) ;
    ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "category" ] [ fhir:v "status" ] [ fhir:v "effective" ] [ fhir:v "specimen" ] [ fhir:v "specimen.collection" ] [ fhir:v "specimen.collection.collected" ] ) ;
    ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1142"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1142>       ]     ] )
  ] [
fhir:type [ fhir:v "Observation" ] ;
    ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>     ] ) ;
    ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "category" ] [ fhir:v "status" ] [ fhir:v "effective" ] [ fhir:v "specimen" ] [ fhir:v "specimen.collection" ] [ fhir:v "specimen.collection.collected" ] ) ;
    ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1158"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1158>       ]     ] )
  ] [
fhir:type [ fhir:v "Observation" ] ;
    ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>     ] ) ;
    ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "category" ] [ fhir:v "status" ] [ fhir:v "effective" ] [ fhir:v "specimen" ] [ fhir:v "specimen.collection" ] [ fhir:v "specimen.collection.collected" ] ) ;
    ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1312"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1312>       ]     ] )
  ] [
fhir:type [ fhir:v "Observation" ] ;
    ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>     ] ) ;
    ( fhir:mustSupport [ fhir:v "code" ] [ fhir:v "category" ] [ fhir:v "status" ] [ fhir:v "effective" ] [ fhir:v "specimen" ] [ fhir:v "specimen.collection" ] [ fhir:v "specimen.collection.collected" ] ) ;
    ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1311"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1311>       ]     ] )
  ] [
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 "category" ] [ fhir:v "status" ] [ fhir:v "effective" ] [ fhir:v "specimen" ] [ fhir:v "specimen.collection" ] [ fhir:v "specimen.collection.collected" ] [ fhir:v "code" ] )
  ] [
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 "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 "code" ] [ fhir:v "status" ] [ fhir:v "effective" ] ) ;
    ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1142"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1142>       ]     ] )
  ] [
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 "code" ] [ fhir:v "status" ] [ fhir:v "effective" ] ) ;
    ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1158"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1158>       ]     ] )
  ] [
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 "code" ] [ fhir:v "status" ] [ fhir:v "effective" ] ) ;
    ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.336"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.336>       ]     ] )
  ] [
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 "code" ] [ fhir:v "status" ] [ fhir:v "effective" ] ) ;
    ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.337"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.337>       ]     ] )
  ] [
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 "code" ] [ fhir:v "status" ] [ fhir:v "effective" ] ) ;
    ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1312"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1312>       ]     ] )
  ] [
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 "code" ] [ fhir:v "status" ] [ fhir:v "effective" ] ) ;
    ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1311"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1311>       ]     ] )
  ] [
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 "status" ] [ fhir:v "effective" ] [ fhir:v "result" ] )
  ] [
fhir:type [ fhir:v "Location" ] ;
    ( fhir:profile [
fhir:v "http://hl7.org/fhir/StructureDefinition/Location"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Location>     ] )
  ] [
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 "code" ] [ fhir:v "intent" ] [ fhir:v "status" ] ) ;
    ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1142"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1142>       ]     ] )
  ] [
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 "code" ] [ fhir:v "intent" ] [ fhir:v "status" ] ) ;
    ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1158"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1158>       ]     ] )
  ] [
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 "code" ] [ fhir:v "intent" ] [ fhir:v "status" ] ) ;
    ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.336"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.336>       ]     ] )
  ] [
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 "code" ] [ fhir:v "intent" ] [ fhir:v "status" ] ) ;
    ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.337"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.337>       ]     ] )
  ] [
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 "code" ] [ fhir:v "intent" ] [ fhir:v "status" ] ) ;
    ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1312"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1312>       ]     ] )
  ] [
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 "code" ] [ fhir:v "intent" ] [ fhir:v "status" ] ) ;
    ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1311"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1311>       ]     ] )
  ] [
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 "intent" ] [ fhir:v "status" ] )
  ] [
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 "code" ] [ fhir:v "performed" ] ) ;
    ( fhir:codeFilter [
fhir:path [ fhir:v "code" ] ;
fhir:valueSet [
fhir:v "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.10.20.22.5.300"^^xsd:anyURI ;
fhir:link <http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.10.20.22.5.300>       ]     ] )
  ] [
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: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:codeFilter [
fhir:path [ fhir:v "id" ]     ] )
  ] [
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 "medication" ] [ fhir:v "status" ] [ 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 "medication" ] [ fhir:v "authoredOn" ] )
  ] ) ; # 
  fhir:content ( [
fhir:contentType [ fhir:v "text/cql" ] ;
fhir:data [ fhir:v "bGlicmFyeSBOSFNOQWN1dGVDYXJlSG9zcGl0YWxEYWl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Og0KICBbTWVkaWNhdGlvbkFkbWluaXN0cmF0aW9uXSBSUFNNZWRBZG1pbg0KICAgIGxldCBNZWRzOiBHZXRNZWRpY2F0aW9uQ29kZShSUFNNZWRBZG1pbi5tZWRpY2F0aW9uKQ0KICAgd2hlcmUgKE1lZHMgaW4gIkFuYWtpbnJhIg0KICAgICAgICAgICAgb3IgTWVkcyBpbiAiQmFtbGFuaXZpbWFiIg0KICAgICAgICAgICAgb3IgTWVkcyBpbiAiQmFsb3hhdmlyIg0KICAgICAgICAgICAgb3IgTWVkcyBpbiAiQmFyaWNpdGluaWIiDQogICAgICAgICAgICBvciBNZWRzIGluICJCZWJ0ZWxvdmltYWIiDQogICAgICAgICAgICBvciBNZWRzIGluICJDYXNpcml2aW1hYiINCiAgICAgICAgICAgIG9yIE1lZHMgaW4gIkNhc2lyaXZpbWFiIC8gSW1kZXZpbWFiIg0KICAgICAgICAgICAgb3IgTWVkcyBpbiAiQ09WSUQxOSBSeE5vcm0gVmFsdWUgU2V0IGZvciBUb2NpbGl6dW1hYiINCiAgICAgICAgICAgIG9yIE1lZHMgaW4gIkV0ZXNldmltYWIiDQogICAgICAgICAgICBvciBNZWRzIGluICJJbWRldmltYWIiDQogICAgICAgICAgICBvciBNZWRzIGluICJNb2xudXBpcmF2aXIiDQogICAgICAgICAgICBvciBNZWRzIGluICJOaXJtYXRyZWx2aXIgLyBSaXRvbmF2aXIiDQogICAgICAgICAgICBvciBNZWRzIGluICJPc2VsdGFtaXZpciINCiAgICAgICAgICAgIG9yIE1lZHMgaW4gIlBlcmFtaXZpciINCiAgICAgICAgICAgIG9yIE1lZHMgaW4gIlJlbWRlc2l2aXIiDQogICAgICAgICAgICBvciBNZWRzIGluICJTYXJpbHVtYWIiDQogICAgICAgICAgICBvciBNZWRzIGluICJTb3Ryb3ZpbWFiIiAgICANCiAgICAgICAgICAgIG9yIE1lZHMgaW4gIlRvZmFjaXRpbmliIg0KICAgICAgICAgICAgb3IgTWVkcyBpbiAiWmFuY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