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

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

## : NHSN Acute Care Hospital Daily Initial Population Library - XML Representation

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

Raw xml | Download

    <Library xmlns="http://hl7.org/fhir">
      <id value="NHSNAcuteCareHospitalDailyInitialPopulation"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml">
    <div>
        <table class="grid dict">

            <tr>
                <th scope="row"><b>Id: </b></th>
                <td style="padding-left: 4px;">NHSNAcuteCareHospitalDailyInitialPopulation</td>
            </tr>

            <tr>
                <th scope="row"><b>Version: </b></th>
                <td style="padding-left: 4px;">1.0.0</td>
            </tr>

            <tr>
                <th scope="row"><b>Url: </b></th>
                <td style="padding-left: 4px;"><a href="Library-NHSNAcuteCareHospitalDailyInitialPopulation.html">NHSNAcuteCareHospitalDailyInitialPopulation</a></td>
            </tr>

            <tr>
                <th scope="row"><b>Status: </b></th>
                <td style="padding-left: 4px;">draft</td>
            </tr>

            <tr>
                <th scope="row"><b>Type: </b></th>
                <td style="padding-left: 4px;">

                            <p style="margin-bottom: 5px;">
                                <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>
                            </p>

                            <p style="margin-bottom: 5px;">
                                <b>code: </b> <span>logic-library</span>
                            </p>

                </td>
            </tr>

            <tr>
                <th scope="row"><b>Date: </b></th>
                <td style="padding-left: 4px;">2025-09-15 12:53:39-0400</td>
            </tr>

            <tr>
                <th scope="row"><b>Publisher: </b></th>
                <td style="padding-left: 4px;">CDC National Healthcare Safety Network (NHSN)</td>
            </tr>

            <tr>
                <th scope="row"><b>Jurisdiction: </b></th>
                <td style="padding-left: 4px;">US</td>
            </tr>

            <tr>
                <th scope="row"><b>Related Artifacts: </b></th>
                <td style="padding-left: 4px;">

                    <p><b>Dependencies</b></p>
                    <ul>

                        <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>

                        <li><code>http://www.cdc.gov/nhsn/fhirportal/dqm/ig/Library/FHIRHelpers|4.0.2</code></li>

                        <li><code>http://www.cdc.gov/nhsn/fhirportal/dqm/ig/Library/NHSNHelpers|0.0.002</code></li>

                        <li><code>http://www.cdc.gov/nhsn/fhirportal/dqm/ig/Library/SharedResourceCreation|0.1.010</code></li>

                        <li><a href="http://terminology.hl7.org/6.5.0/CodeSystem-v3-ActCode.html">ActCodeversion: null9.0.0)</a></li>

                        <li><a href="http://terminology.hl7.org/6.5.0/CodeSystem-v3-loinc.html">Logical Observation Identifiers, Names and Codes (LOINC)</a></li>

                        <li><a href="http://terminology.hl7.org/6.5.0/CodeSystem-observation-category.html">Observation Category Codesversion: null1.0.1)</a></li>

                        <li><a href="http://terminology.hl7.org/6.5.0/CodeSystem-v3-rxNorm.html">RxNorm</a></li>

                        <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.666.5.307/expansion">Encounter Inpatient</a></li>

                        <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>

                        <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1111.143/expansion">Observation Services</a></li>

                        <li><a href="http://terminology.hl7.org/6.5.0/ValueSet-encounter-discharge-disposition.html">Discharge dispositionversion: null1.0.1)</a></li>

                        <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>

                        <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>

                        <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>

                        <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>

                        <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>

                        <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>

                        <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>

                        <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>

                        <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>

                        <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>

                        <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.3616.200.110.102.2046/expansion">Baricitinib</a></li>

                        <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.3616.200.110.102.2054/expansion">Anakinra</a></li>

                        <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.3616.200.110.102.2084/expansion">Sarilumab</a></li>

                        <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>

                        <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>

                        <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>

                        <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>

                        <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>

                        <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>

                        <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>

                        <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>

                        <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>

                        <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.3616.200.110.102.2081/expansion">Remdesivir</a></li>

                        <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>

                        <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>

                        <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>

                        <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>

                        <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>

                        <li><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.3616.200.110.102.2078/expansion">Oseltamivir</a></li>

                        <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>

                        <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>

                    </ul>

                </td>
            </tr>

            <tr>
              <th scope="row"><b>Parameters: </b></th>
              <td style="padding-left: 4px;">
                <table class="grid-dict">
                  <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>

                    <tr><th>Measurement Period</th><th>Period</th><th>0</th><th>1</th><th>In</th></tr>

                    <tr><th>Patient</th><th>Patient</th><th>0</th><th>1</th><th>Out</th></tr>

                    <tr><th>EncounterInpatient</th><th>Encounter</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>EncounterObservation</th><th>Encounter</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>Encounters with Patient Hospital Locations</th><th>Encounter</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>Initial Population</th><th>Encounter</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>COVID And Influenza Observation</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>RSV Observation</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>ACH Daily Observation</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>COVID And Influenza PRE Admission Observation</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>RSV PRE Admission Observation</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>COVID And Influenza DiagnosticReport</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>RSV DiagnosticReport</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>ACH Daily DiagnosticReport</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>COVID And Influenza DiagnosticReport PRE Admission</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>RSV DiagnosticReport PRE Admission</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>DiagnosticReports</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>Observations</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>COVID and Influenza DiagnosticReport Observations</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>COVID and Influenza DiagnosticReport Result from Lab</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>RSV Observations</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>RSV DiagnosticReport Observations</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>RSV DiagnosticReport Result from Lab</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>ACH Daily DiagnosticReport Result from Lab</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>COVID and Influenza DiagnosticReport Result from Lab PRE Admission</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>RSV DiagnosticReport Result from Lab PRE Admission</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE IP Encounters</th><th>Encounter</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>Encounters</th><th>Encounter</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE Encounter</th><th>Encounter</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE Minimal Patient</th><th>Patient</th><th>0</th><th>1</th><th>Out</th></tr>

                    <tr><th>SDE Location</th><th>Location</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE Encounter Discharge Dispositions</th><th>Encounter</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE ACH Daily Observation</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE RSV PRE Admission Observation</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE COVID And Influenza PRE Admission Observation</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE ACH Daily Specimen</th><th>Specimen</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE RSV Specimen</th><th>Specimen</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE COVID And Influenza Specimen</th><th>Specimen</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE ACH Daily DiagnosticReport</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE COVID And Influenza DiagnosticReport</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE RSV DiagnosticReport</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE ACH Daily DiagnosticReport Result from Lab</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE COVID and Influenza DiagnosticReport Result from Lab</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE RSV DiagnosticReport Result from Lab</th><th>DiagnosticReport</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE ACH Daily ServiceRequest</th><th>ServiceRequest</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE Isolation Precautions Implemented</th><th>Procedure</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE Covid or Influenza Medication Administered</th><th>MedicationAdministration</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE Covid or Influenza Medication Ordered</th><th>MedicationRequest</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE Medication</th><th>Medication</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE All Observations</th><th>Observation</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE All ServiceRequests</th><th>ServiceRequest</th><th>0</th><th>*</th><th>Out</th></tr>

                    <tr><th>SDE All Procedures</th><th>Procedure</th><th>0</th><th>*</th><th>Out</th></tr>

                </table>
              </td>
            </tr>

            <tr>
              <th scope="row"><b>Data Requirements:</b></th>
              <td style="padding-left: 4px;">
                <table class="grid-dict">
                  <tr><th><b>Type</b></th><th><b>Profile</b></th><th><b>MS</b></th><th><b>Code Filter</b></th></tr>

                    <tr>
                      <th>Patient</th>
                      <th>http://hl7.org/fhir/StructureDefinition/Patient</th>
                      <th/>
                      <th>

                      </th>
                    </tr>

                    <tr>
                      <th>Encounter</th>
                      <th>http://hl7.org/fhir/StructureDefinition/Encounter</th>
                      <th>;;;;;;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>type</span>
                          </span>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307</span>
                          </span>

                      </th>
                    </tr>

                    <tr>
                      <th>Encounter</th>
                      <th>http://hl7.org/fhir/StructureDefinition/Encounter</th>
                      <th>;;;;;;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>class</span>
                          </span>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.274</span>
                          </span>

                      </th>
                    </tr>

                    <tr>
                      <th>Encounter</th>
                      <th>http://hl7.org/fhir/StructureDefinition/Encounter</th>
                      <th>;;;;;;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>type</span>
                          </span>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143</span>
                          </span>

                      </th>
                    </tr>

                    <tr>
                      <th>Encounter</th>
                      <th>http://hl7.org/fhir/StructureDefinition/Encounter</th>
                      <th>;;;;;;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>class</span>
                          </span>

                          <br/>

                              <p style="margin-bottom: 5px;">
                                  <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>
                              </p>

                              <p style="margin-bottom: 5px;">
                                  <b>code: </b> <span>OBSENC</span>
                              </p>

                              <p style="margin-bottom: 5px;">
                                  <b>display: </b> <span>observation encounter</span>
                              </p>

                      </th>
                    </tr>

                    <tr>
                      <th>Encounter</th>
                      <th>http://hl7.org/fhir/StructureDefinition/Encounter</th>
                      <th>;;;;;;</th>
                      <th>

                      </th>
                    </tr>

                    <tr>
                      <th>Observation</th>
                      <th>http://hl7.org/fhir/StructureDefinition/Observation</th>
                      <th>;;;;;;;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.336</span>
                          </span>

                      </th>
                    </tr>

                    <tr>
                      <th>Observation</th>
                      <th>http://hl7.org/fhir/StructureDefinition/Observation</th>
                      <th>;;;;;;;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.337</span>
                          </span>

                      </th>
                    </tr>

                    <tr>
                      <th>Observation</th>
                      <th>http://hl7.org/fhir/StructureDefinition/Observation</th>
                      <th>;;;;;;;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1142</span>
                          </span>

                      </th>
                    </tr>

                    <tr>
                      <th>Observation</th>
                      <th>http://hl7.org/fhir/StructureDefinition/Observation</th>
                      <th>;;;;;;;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1158</span>
                          </span>

                      </th>
                    </tr>

                    <tr>
                      <th>Observation</th>
                      <th>http://hl7.org/fhir/StructureDefinition/Observation</th>
                      <th>;;;;;;;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1312</span>
                          </span>

                      </th>
                    </tr>

                    <tr>
                      <th>Observation</th>
                      <th>http://hl7.org/fhir/StructureDefinition/Observation</th>
                      <th>;;;;;;;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1311</span>
                          </span>

                      </th>
                    </tr>

                    <tr>
                      <th>Observation</th>
                      <th>http://hl7.org/fhir/StructureDefinition/Observation</th>
                      <th>;;;;;;;</th>
                      <th>

                      </th>
                    </tr>

                    <tr>
                      <th>Specimen</th>
                      <th>http://hl7.org/fhir/StructureDefinition/Specimen</th>
                      <th>;</th>
                      <th>

                      </th>
                    </tr>

                    <tr>
                      <th>DiagnosticReport</th>
                      <th>http://hl7.org/fhir/StructureDefinition/DiagnosticReport</th>
                      <th>;;;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1142</span>
                          </span>

                      </th>
                    </tr>

                    <tr>
                      <th>DiagnosticReport</th>
                      <th>http://hl7.org/fhir/StructureDefinition/DiagnosticReport</th>
                      <th>;;;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1158</span>
                          </span>

                      </th>
                    </tr>

                    <tr>
                      <th>DiagnosticReport</th>
                      <th>http://hl7.org/fhir/StructureDefinition/DiagnosticReport</th>
                      <th>;;;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.336</span>
                          </span>

                      </th>
                    </tr>

                    <tr>
                      <th>DiagnosticReport</th>
                      <th>http://hl7.org/fhir/StructureDefinition/DiagnosticReport</th>
                      <th>;;;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.337</span>
                          </span>

                      </th>
                    </tr>

                    <tr>
                      <th>DiagnosticReport</th>
                      <th>http://hl7.org/fhir/StructureDefinition/DiagnosticReport</th>
                      <th>;;;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1312</span>
                          </span>

                      </th>
                    </tr>

                    <tr>
                      <th>DiagnosticReport</th>
                      <th>http://hl7.org/fhir/StructureDefinition/DiagnosticReport</th>
                      <th>;;;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1311</span>
                          </span>

                      </th>
                    </tr>

                    <tr>
                      <th>DiagnosticReport</th>
                      <th>http://hl7.org/fhir/StructureDefinition/DiagnosticReport</th>
                      <th>;;;</th>
                      <th>

                      </th>
                    </tr>

                    <tr>
                      <th>Location</th>
                      <th>http://hl7.org/fhir/StructureDefinition/Location</th>
                      <th/>
                      <th>

                      </th>
                    </tr>

                    <tr>
                      <th>ServiceRequest</th>
                      <th>http://hl7.org/fhir/StructureDefinition/ServiceRequest</th>
                      <th>;;;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1142</span>
                          </span>

                      </th>
                    </tr>

                    <tr>
                      <th>ServiceRequest</th>
                      <th>http://hl7.org/fhir/StructureDefinition/ServiceRequest</th>
                      <th>;;;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1158</span>
                          </span>

                      </th>
                    </tr>

                    <tr>
                      <th>ServiceRequest</th>
                      <th>http://hl7.org/fhir/StructureDefinition/ServiceRequest</th>
                      <th>;;;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.336</span>
                          </span>

                      </th>
                    </tr>

                    <tr>
                      <th>ServiceRequest</th>
                      <th>http://hl7.org/fhir/StructureDefinition/ServiceRequest</th>
                      <th>;;;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.337</span>
                          </span>

                      </th>
                    </tr>

                    <tr>
                      <th>ServiceRequest</th>
                      <th>http://hl7.org/fhir/StructureDefinition/ServiceRequest</th>
                      <th>;;;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1312</span>
                          </span>

                      </th>
                    </tr>

                    <tr>
                      <th>ServiceRequest</th>
                      <th>http://hl7.org/fhir/StructureDefinition/ServiceRequest</th>
                      <th>;;;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1311</span>
                          </span>

                      </th>
                    </tr>

                    <tr>
                      <th>ServiceRequest</th>
                      <th>http://hl7.org/fhir/StructureDefinition/ServiceRequest</th>
                      <th>;;</th>
                      <th>

                      </th>
                    </tr>

                    <tr>
                      <th>Procedure</th>
                      <th>http://hl7.org/fhir/StructureDefinition/Procedure</th>
                      <th>;;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>code</span>
                          </span>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>value set: </b><span>http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.10.20.22.5.300</span>
                          </span>

                      </th>
                    </tr>

                    <tr>
                      <th>Procedure</th>
                      <th>http://hl7.org/fhir/StructureDefinition/Procedure</th>
                      <th/>
                      <th>

                      </th>
                    </tr>

                    <tr>
                      <th>Medication</th>
                      <th>http://hl7.org/fhir/StructureDefinition/Medication</th>
                      <th>;</th>
                      <th>

                          <b>code filter: </b>

                          <br/>

                          <span style="padding-left: 4px;">
                              <b>path: </b><span>id</span>
                          </span>

                      </th>
                    </tr>

                    <tr>
                      <th>MedicationAdministration</th>
                      <th>http://hl7.org/fhir/StructureDefinition/MedicationAdministration</th>
                      <th>;;;</th>
                      <th>

                      </th>
                    </tr>

                    <tr>
                      <th>MedicationRequest</th>
                      <th>http://hl7.org/fhir/StructureDefinition/MedicationRequest</th>
                      <th>;;</th>
                      <th>

                      </th>
                    </tr>

                </table>
              </td>
            </tr>

            <tr>
              <td colspan="2">
                <table>
                  <tr><th><a id="cql-content"><b>Content: </b></a> text/cql</th></tr>
                  <tr><td><pre><code class="language-cql">library NHSNAcuteCareHospitalDailyInitialPopulation version '1.0.0-dev'

    using FHIR version '4.0.1'

    include FHIRHelpers version '4.0.2' called FHIRHelpers
    include NHSNHelpers version '0.0.002' called NHSNHelpers
    include SharedResourceCreation version '0.1.010' called SharedResource

    codesystem &quot;ActCode&quot;: 'http://terminology.hl7.org/CodeSystem/v3-ActCode'
    codesystem &quot;LOINC&quot;: 'http://loinc.org'
    codesystem &quot;Observation Category&quot;: 'http://terminology.hl7.org/CodeSystem/observation-category'
    codesystem &quot;RXNORM&quot;: 'http://www.nlm.nih.gov/research/umls/rxnorm'

    valueset &quot;Encounter Inpatient&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307'
    valueset &quot;Inpatient, Emergency, and Observation Locations&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.265'
    valueset &quot;Observation Services&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143'
    valueset &quot;Discharge Disposition&quot;: 'http://terminology.hl7.org/ValueSet/encounter-discharge-disposition'

    //COVID-19 lab tests
    valueset &quot;COVID_19 (Tests for SARS_CoV_2 Nucleic Acid)&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1142'
    valueset &quot;COVID_19 (Tests for SARS_CoV_2 Antigen)&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1158'

    //COVID-19 test results (unused)
    valueset &quot;COVID_19 (Organism or Substance in Lab Results)&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1143'

    //Influenza lab tests
    valueset &quot;Influenza (Tests for influenza A or B virus Nucleic Acid)&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.336'
    valueset &quot;Influenza (Tests for influenza A or B virus Antigen)&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.337'

    //Influenza test Results (unused)
    valueset &quot;Influenza (influenza A or B virus in Lab Results)&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.340'

    //RSV lab tests
    valueset &quot;RSV (Tests for RSV Antigen)&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1311'
    valueset &quot;RSV (Tests for RSV Nucleic Acid)&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1312'

    //RSV test results (unused)
    valueset &quot;RSV (Organism or Substance in Lab Results)&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1308'

    //Test results shared among COVID-19, Influenza and RSV (unused)
    valueset &quot;LIVD SARS CoV2 Test Result Codes&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1114.10'

    //COVID-19 medications
    valueset &quot;Baricitinib&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2046'
    valueset &quot;Anakinra&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2054'
    valueset &quot;Sarilumab&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2084'
    valueset &quot;COVID19 RxNorm Value Set for Tocilizumab&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2087'
    valueset &quot;Casirivimab&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2097'
    valueset &quot;Imdevimab&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2098'
    valueset &quot;Bamlanivimab&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2099'
    valueset &quot;Etesevimab&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2100'
    valueset &quot;Sotrovimab&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2101'
    valueset &quot;Tofacitinib&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2102'
    valueset &quot;Casirivimab / Imdevimab&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2103'
    valueset &quot;Molnupiravir&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2119'
    valueset &quot;Remdesivir&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2081'
    valueset &quot;Nirmatrelvir / Ritonavir&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2104'
    valueset &quot;Bebtelovimab&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2105'

    //Influenza medications
    valueset &quot;Baloxavir&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.85'
    valueset &quot;Peramivir&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.86'
    valueset &quot;Zanamivir&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.87'
    valueset &quot;Oseltamivir&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2078'

    //Isolation Precautions
    valueset &quot;Transmission Based Precaution Types&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.10.20.22.5.300'

    //Encounter Class Codes
    valueset &quot;NHSN Inpatient Encounter Class Codes&quot;: 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.274'

    //Observation Category Codes
    code &quot;laboratory&quot;: 'laboratory' from &quot;Observation Category&quot; display 'Laboratory'

    //Observation Encounter Class Code
    code &quot;observation encounter&quot;: 'OBSENC' from &quot;ActCode&quot; display 'observation encounter'

    parameter &quot;Measurement Period&quot;
      default Interval[@2022-01-01T00:00:00.0, @2022-01-02T00:00:00.0)

    context Patient

    //----------------------------------
    // Initial Population
    //----------------------------------
    define &quot;Initial Population&quot;:
      EncounterInpatient
      union EncounterObservation
      union &quot;Encounters with Patient Hospital Locations&quot;

    define &quot;EncounterInpatient&quot;:
      ([Encounter: &quot;Encounter Inpatient&quot;]
        union [Encounter: class in &quot;NHSN Inpatient Encounter Class Codes&quot;]) Encounters
      where Encounters.status in {'in-progress', 'finished', 'triaged', 'onleave', 'entered-in-error'}
        and Encounters.period overlaps &quot;Measurement Period&quot;

    define &quot;EncounterObservation&quot;:
      ([Encounter: &quot;Observation Services&quot;]
        union [Encounter: class in {&quot;observation encounter&quot;}]) Encounters
      where Encounters.status in {'in-progress', 'finished', 'triaged', 'onleave', 'entered-in-error'}
        and Encounters.period overlaps &quot;Measurement Period&quot;

    define &quot;Encounters with Patient Hospital Locations&quot;:
      [Encounter] Encounters
      where exists(
        Encounters.location EncounterLocation
        let types: NHSNHelpers.GetLocation(EncounterLocation.location).type
        where exists(
          types type
          where type in &quot;Inpatient, Emergency, and Observation Locations&quot;
        )
        and EncounterLocation.period overlaps Encounters.period
        and Encounters.status in {'in-progress', 'finished', 'triaged', 'onleave', 'entered-in-error' }
        and Encounters.period overlaps &quot;Measurement Period&quot;
      )

    //-----------------------------------------------
    // Logic related to Laboratory
    //-----------------------------------------------
    //Lab Observations
    define &quot;COVID And Influenza Observation&quot;:
      ([Observation: &quot;Influenza (Tests for influenza A or B virus Nucleic Acid)&quot;]
      union [Observation: &quot;Influenza (Tests for influenza A or B virus Antigen)&quot;]
      union [Observation: &quot;COVID_19 (Tests for SARS_CoV_2 Nucleic Acid)&quot;]
      union [Observation: &quot;COVID_19 (Tests for SARS_CoV_2 Antigen)&quot;]
      ) Observations
        where exists(Observations.category Category where Category ~ &quot;laboratory&quot;)
          and Observations.status in {'final','registered','preliminary','partial'}
          and exists(&quot;Initial Population&quot;)

    define &quot;RSV Observation&quot;:
      ([Observation: &quot;RSV (Tests for RSV Nucleic Acid)&quot;]
      union [Observation: &quot;RSV (Tests for RSV Antigen)&quot;]
      ) Observations
        where exists(Observations.category Category where Category ~ &quot;laboratory&quot;)
          and Observations.status in {'final','registered','preliminary','partial'}
          and exists(&quot;Initial Population&quot;)

    define &quot;ACH Daily Observation&quot;:
      &quot;RSV Observation&quot;
      union &quot;COVID And Influenza Observation&quot;

    //further constrain COVID-19 and Influenza Observations for 14 day lookback
    define &quot;COVID And Influenza PRE Admission Observation&quot;:
      &quot;COVID And Influenza Observation&quot; O
       where exists( EncounterInpatient E
        where (
          NHSNHelpers.&quot;Normalize Interval&quot;(O.effective) 14 days or less on or before start of E.period
          or NHSNHelpers.&quot;Normalize Interval&quot;(GetSpecimen(O.specimen).collection.collected) 14 days or less on or before start of E.period
          )
          and start of E.period during &quot;Measurement Period&quot;
        )

    //further constrain RSV observation for 8 day lookback
    define &quot;RSV PRE Admission Observation&quot;:
      &quot;RSV Observation&quot; O
      where exists(EncounterInpatient E
        where (
          NHSNHelpers.&quot;Normalize Interval&quot;(O.effective) 8 days or less on or before start of E.period
          or NHSNHelpers.&quot;Normalize Interval&quot;(GetSpecimen(O.specimen).collection.collected) 8 days or less on or before start of E.period
          )
          and start of E.period during &quot;Measurement Period&quot;
        )

    //Lab DiagnosticReport
    define &quot;COVID And Influenza DiagnosticReport&quot;:
      ([DiagnosticReport: &quot;COVID_19 (Tests for SARS_CoV_2 Nucleic Acid)&quot;]
        union [DiagnosticReport: &quot;COVID_19 (Tests for SARS_CoV_2 Antigen)&quot;]
        union [DiagnosticReport: &quot;Influenza (Tests for influenza A or B virus Nucleic Acid)&quot;]
        union [DiagnosticReport: &quot;Influenza (Tests for influenza A or B virus Antigen)&quot;]
      ) Reports
        where exists(&quot;Initial Population&quot;)
          and Reports.status in {'final','registered','preliminary','partial'}

    define &quot;RSV DiagnosticReport&quot;:
      ([DiagnosticReport: &quot;RSV (Tests for RSV Nucleic Acid)&quot;]
        union [DiagnosticReport: &quot;RSV (Tests for RSV Antigen)&quot;]
      ) Reports
        where exists(&quot;Initial Population&quot;)
          and Reports.status in {'final','registered','preliminary','partial'}

    define &quot;ACH Daily DiagnosticReport&quot;:
      &quot;COVID And Influenza DiagnosticReport&quot;
        union &quot;RSV DiagnosticReport&quot;

    //further constrain COVID-19 and Influenza with 14 day lookback
    define &quot;COVID And Influenza DiagnosticReport PRE Admission&quot;:
      &quot;COVID And Influenza DiagnosticReport&quot; R
      where exists(EncounterInpatient E
        where (
          NHSNHelpers.&quot;Normalize Interval&quot;(R.effective) 14 days or less on or before start of E.period)
          and start of E.period during &quot;Measurement Period&quot;
        )

    //further constrain RSV for 8 day lookback
    define &quot;RSV DiagnosticReport PRE Admission&quot;:
      &quot;RSV DiagnosticReport&quot; R
      where exists(EncounterInpatient E
        where (
          NHSNHelpers.&quot;Normalize Interval&quot;(R.effective) 8 days or less on or before start of E.period)
          and start of E.period during &quot;Measurement Period&quot;
        )

    define &quot;COVID and Influenza DiagnosticReport Result from Lab&quot;:
      &quot;DiagnosticReports&quot; Reports
        where exists(
          &quot;COVID and Influenza DiagnosticReport Observations&quot; Observations
          where Reports.result.references(Observations)
        )
        and Reports.status in {'final','registered','preliminary','partial'}
        and exists(&quot;Initial Population&quot;)

    define &quot;COVID and Influenza DiagnosticReport Observations&quot;:
      &quot;Observations&quot; Observations
      where Observations.code in &quot;COVID_19 (Tests for SARS_CoV_2 Nucleic Acid)&quot;
        or Observations.code in &quot;COVID_19 (Tests for SARS_CoV_2 Antigen)&quot;
        or Observations.code in &quot;Influenza (Tests for influenza A or B virus Nucleic Acid)&quot;
        or Observations.code in &quot;Influenza (Tests for influenza A or B virus Antigen)&quot;

    define &quot;RSV DiagnosticReport Result from Lab&quot;:
      [DiagnosticReport] Reports
        where exists(&quot;RSV DiagnosticReport Observations&quot;)
          and Reports.status in {'final','registered','preliminary','partial'}
          and exists(&quot;Initial Population&quot;)

    define &quot;RSV Observations&quot;:
      &quot;Observations&quot; Observations
      where Observations.code in &quot;RSV (Tests for RSV Nucleic Acid)&quot;
        or Observations.code in &quot;RSV (Tests for RSV Antigen)&quot;

    define &quot;RSV DiagnosticReport Observations&quot;:
      &quot;DiagnosticReports&quot; Reports
      where exists(
        &quot;RSV Observations&quot; Observations
        where Reports.result.references(Observations)
      )

    define &quot;ACH Daily DiagnosticReport Result from Lab&quot;:
      &quot;COVID and Influenza DiagnosticReport Result from Lab&quot;
        union &quot;RSV DiagnosticReport Result from Lab&quot;

    //further constrain COVID-19 and Influenza with 14 day lookback
    define &quot;COVID and Influenza DiagnosticReport Result from Lab PRE Admission&quot;:
      &quot;COVID and Influenza DiagnosticReport Result from Lab&quot; R
      where exists(EncounterInpatient E
        where (
          NHSNHelpers.&quot;Normalize Interval&quot;(R.effective) 14 days or less on or before start of E.period)
          and start of E.period during &quot;Measurement Period&quot;
        )

    //further constrain RSV with 8 day lookback
    define &quot;RSV DiagnosticReport Result from Lab PRE Admission&quot;:
      &quot;RSV DiagnosticReport Result from Lab&quot; R
      where exists(EncounterInpatient E
        where (
          NHSNHelpers.&quot;Normalize Interval&quot;(R.effective) 8 days or less on or before start of E.period)
          and start of E.period during &quot;Measurement Period&quot;
        )

    //----------------------------------
    // SDE
    //----------------------------------
    define &quot;SDE IP Encounters&quot;:
      &quot;Initial Population&quot; IP
      return SharedResource.EncounterResource(IP,
      {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-encounter'}})

    define &quot;SDE Encounter&quot;:
      &quot;Encounters&quot; Encounters
      where not CheckIP(Encounters)
      and exists(
        &quot;Initial Population&quot; IP
        where Encounters.period overlaps IP.period)
      return SharedResource.EncounterResource(Encounters,
      {FHIR.canonical{value: 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter'}})

    define &quot;SDE Minimal Patient&quot;:
      Patient p
      where exists(&quot;Initial Population&quot;)
      return SharedResource.PatientResource(p,
      {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/cross-measure-patient'}})

    define &quot;SDE Location&quot;:
      [Location] Locations
      where exists(&quot;Initial Population&quot;)
      return SharedResource.LocationResource(Locations,
      {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-location'}})

    define &quot;SDE Encounter Discharge Dispositions&quot;:
    	&quot;Initial Population&quot; DischargeDispositions
      where DischargeDispositions.hospitalization.dischargeDisposition in &quot;Discharge Disposition&quot;
      return SharedResource.EncounterResource(DischargeDispositions,
      {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-encounter'}})

    //return the Observation during the Measurement Period
    define &quot;SDE ACH Daily Observation&quot;:
      &quot;ACH Daily Observation&quot; Observations
        return SharedResource.ObservationLabResource(Observations,
        {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-observation-lab'}})

    //return the RSV Observation Pre Admission
    define &quot;SDE RSV PRE Admission Observation&quot;:
      &quot;RSV PRE Admission Observation&quot; Observations
        return SharedResource.ObservationLabResource(Observations,
        {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-observation-lab'}})

    //return the COVID-19 and Influenza Observation Pre Admission
    define &quot;SDE COVID And Influenza PRE Admission Observation&quot;:
      &quot;COVID And Influenza PRE Admission Observation&quot; Observations
        return SharedResource.ObservationLabResource(Observations,
        {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-observation-lab'}})

    //return the Specimen related to the Observation during the Measurement Period
    define &quot;SDE ACH Daily Specimen&quot;:
      &quot;ACH Daily Observation&quot; ObservationWithSpecimen
        let Specimen: GetSpecimen(ObservationWithSpecimen.specimen)
        return SharedResource.SpecimenResource(Specimen,
        {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-specimen'}})

    //return the Specimen related to the RSV Observation Pre Admission
    define &quot;SDE RSV Specimen&quot;:
      &quot;RSV PRE Admission Observation&quot; ObservationWithSpecimen
        let Specimen: GetSpecimen(ObservationWithSpecimen.specimen)
        return SharedResource.SpecimenResource(Specimen,
        {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-specimen'}})

    //return the Specimen related to the COVID-19 And Influenza Observation Pre Admission
    define &quot;SDE COVID And Influenza Specimen&quot;:
      &quot;COVID And Influenza PRE Admission Observation&quot; ObservationWithSpecimen
        let Specimen: GetSpecimen(ObservationWithSpecimen.specimen)
        return SharedResource.SpecimenResource(Specimen,
        {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-specimen'}})

    //return the DiagnosticReport during the Measurement Period
    define &quot;SDE ACH Daily DiagnosticReport&quot;:
      &quot;ACH Daily DiagnosticReport&quot; Reports
        return SharedResource.DiagnosticReportLabResource(Reports,
        {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-diagnosticreport-lab'}})

    //return the COVID-19 And Influenza DiagnosticReport pre admission
    define &quot;SDE COVID And Influenza DiagnosticReport&quot;:
      &quot;COVID And Influenza DiagnosticReport&quot; Reports
        return SharedResource.DiagnosticReportLabResource(Reports,
        {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-diagnosticreport-lab'}})

    //return the RSV DiagnosticReport pre admission
    define &quot;SDE RSV DiagnosticReport&quot;:
      &quot;RSV DiagnosticReport&quot; Reports
        return SharedResource.DiagnosticReportLabResource(Reports,
        {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-diagnosticreport-lab'}})

    //return the DiagnosticReport based on the result during the Measurement Period
    define &quot;SDE ACH Daily DiagnosticReport Result from Lab&quot;:
      &quot;ACH Daily DiagnosticReport Result from Lab&quot; Reports
        return SharedResource.DiagnosticReportLabResource(Reports,
        {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-diagnosticreport-lab'}})

    //return the COVID-19 and Influenza DiagnosticReport based on the result pre admission
    define &quot;SDE COVID and Influenza DiagnosticReport Result from Lab&quot;:
      &quot;COVID and Influenza DiagnosticReport Result from Lab&quot; Reports
        return SharedResource.DiagnosticReportLabResource(Reports,
        {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-diagnosticreport-lab'}})

    //return the RSV DiagnosticReport based on the result pre admission
    define &quot;SDE RSV DiagnosticReport Result from Lab&quot;:
      &quot;RSV DiagnosticReport Result from Lab&quot; Reports
        return SharedResource.DiagnosticReportLabResource(Reports,
        {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-diagnosticreport-lab'}})

    define &quot;SDE ACH Daily ServiceRequest&quot;:
      ([ServiceRequest: &quot;COVID_19 (Tests for SARS_CoV_2 Nucleic Acid)&quot;]
      union  [ServiceRequest: &quot;COVID_19 (Tests for SARS_CoV_2 Antigen)&quot;]
      union  [ServiceRequest: &quot;Influenza (Tests for influenza A or B virus Nucleic Acid)&quot;]
      union  [ServiceRequest: &quot;Influenza (Tests for influenza A or B virus Antigen)&quot;]
      union  [ServiceRequest: &quot;RSV (Tests for RSV Nucleic Acid)&quot;]
      union  [ServiceRequest: &quot;RSV (Tests for RSV Antigen)&quot;]
      ) ServiceRequests
        where ServiceRequests.intent ~ 'order'
          and ServiceRequests.status ~ 'completed'
          and exists(&quot;Initial Population&quot;)
      return SharedResource.ServiceRequestResource(ServiceRequests,
      {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-servicerequest'}})

    define &quot;SDE Isolation Precautions Implemented&quot;:
      [Procedure: &quot;Transmission Based Precaution Types&quot;] IsolationPrecautions
        where NHSNHelpers.&quot;Normalize Interval&quot;(IsolationPrecautions.performed) during &quot;Measurement Period&quot;
        and exists(&quot;Initial Population&quot;)
      return SharedResource.ProcedureResource(IsolationPrecautions,
      {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-procedure'}})

    define &quot;SDE Covid or Influenza Medication Administered&quot;:
      [MedicationAdministration] RPSMedAdmin
        let Meds: GetMedicationCode(RPSMedAdmin.medication)
       where (Meds in &quot;Anakinra&quot;
                or Meds in &quot;Bamlanivimab&quot;
                or Meds in &quot;Baloxavir&quot;
                or Meds in &quot;Baricitinib&quot;
                or Meds in &quot;Bebtelovimab&quot;
                or Meds in &quot;Casirivimab&quot;
                or Meds in &quot;Casirivimab / Imdevimab&quot;
                or Meds in &quot;COVID19 RxNorm Value Set for Tocilizumab&quot;
                or Meds in &quot;Etesevimab&quot;
                or Meds in &quot;Imdevimab&quot;
                or Meds in &quot;Molnupiravir&quot;
                or Meds in &quot;Nirmatrelvir / Ritonavir&quot;
                or Meds in &quot;Oseltamivir&quot;
                or Meds in &quot;Peramivir&quot;
                or Meds in &quot;Remdesivir&quot;
                or Meds in &quot;Sarilumab&quot;
                or Meds in &quot;Sotrovimab&quot;
                or Meds in &quot;Tofacitinib&quot;
                or Meds in &quot;Zanamivir&quot;)
          and RPSMedAdmin.status ~ 'completed'
          and exists(&quot;Initial Population&quot;)
          and NHSNHelpers.&quot;Normalize Interval&quot;(RPSMedAdmin.effective) during &quot;Measurement Period&quot;
        return SharedResource.MedicationAdministrationResource(RPSMedAdmin,
        {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-medicationadministration'}})

    define &quot;SDE Covid or Influenza Medication Ordered&quot;:
      [MedicationRequest] RPSMedRequest
        let Meds: GetMedicationCode(RPSMedRequest.medication)
        where (Meds in &quot;Anakinra&quot;
                or Meds in &quot;Baloxavir&quot;
                or Meds in &quot;Bamlanivimab&quot;
                or Meds in &quot;Baricitinib&quot;
                or Meds in &quot;Bebtelovimab&quot;
                or Meds in &quot;Casirivimab&quot;
                or Meds in &quot;Casirivimab / Imdevimab&quot;
                or Meds in &quot;COVID19 RxNorm Value Set for Tocilizumab&quot;
                or Meds in &quot;Etesevimab&quot;
                or Meds in &quot;Imdevimab&quot;
                or Meds in &quot;Molnupiravir&quot;
                or Meds in &quot;Nirmatrelvir / Ritonavir&quot;
                or Meds in &quot;Oseltamivir&quot;
                or Meds in &quot;Peramivir&quot;
                or Meds in &quot;Remdesivir&quot;
                or Meds in &quot;Sarilumab&quot;
                or Meds in &quot;Sotrovimab&quot;
                or Meds in &quot;Tofacitinib&quot;
                or Meds in &quot;Zanamivir&quot;)
          and exists(&quot;Initial Population&quot;)
          and NHSNHelpers.&quot;Normalize Interval&quot;(RPSMedRequest.authoredOn) during &quot;Measurement Period&quot;
        return SharedResource.MedicationRequestResource(RPSMedRequest,
        {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-medicationrequest'}})

    define &quot;SDE Medication&quot;:
      (&quot;SDE Covid or Influenza Medication Ordered&quot;
      union &quot;SDE Covid or Influenza Medication Administered&quot;) MedReqOrAdmin
      where MedReqOrAdmin.medication is FHIR.Reference
      return SharedResource.MedicationResource(GetMedicationFrom(MedReqOrAdmin.medication),
      {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-medication'}})

    //To catch all isolation precautions
    define &quot;SDE All Observations&quot;:
      &quot;Observations&quot; O
      where exists(&quot;Initial Population&quot;)
      return SharedResource.ObservationLabResource(O,
      {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-observation'}})

    //To catch all isolation precautions
    define &quot;SDE All ServiceRequests&quot;:
      [ServiceRequest] SR
      where exists(&quot;Initial Population&quot;)
      return SharedResource.ServiceRequestResource(SR,
      {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-servicerequest'}})

    //To catch all isolation precautions
    define &quot;SDE All Procedures&quot;:
      [Procedure] P
      where exists(&quot;Initial Population&quot;)
      return SharedResource.ProcedureResource(P,
      {FHIR.canonical{value: 'http://www.cdc.gov/nhsn/fhirportal/dqm/ig/StructureDefinition/ach-daily-procedure'}})

    //-----------------------------------------------------
    //functions
    //-----------------------------------------------------
    define function &quot;CheckIP&quot;(encounter Encounter):
      exists(&quot;Initial Population&quot; IP
      where encounter.id = IP.id)

    define function &quot;GetMedication&quot;(reference Reference ):
      singleton from (
        [Medication: id in {NHSNHelpers.GetId(reference.reference)}]
      )

    define function &quot;GetMedicationCode&quot;(choice Choice&lt;FHIR.CodeableConcept, FHIR.Reference&gt;):
      case
        when choice is FHIR.CodeableConcept then
          choice as FHIR.CodeableConcept
        when choice is FHIR.Reference then
          GetMedication(choice as FHIR.Reference).code
        else
          null as FHIR.CodeableConcept
      end

    define function &quot;GetMedicationFrom&quot;(choice Choice&lt;FHIR.CodeableConcept, FHIR.Reference&gt;):
      case
        when choice is FHIR.Reference then
          GetMedication(choice as FHIR.Reference)
        else
          null
      end

    define function &quot;GetSpecimen&quot;(reference FHIR.Reference):
      singleton from (
        [Specimen] Specimens
        where Specimens.id = NHSNHelpers.GetId(reference.reference)
      )

    define function &quot;GetEncounter&quot;(reference FHIR.Reference):
      singleton from (
        &quot;Encounters&quot; Encounters
        where Encounters.id = NHSNHelpers.GetId(reference.reference)
      )

    define fluent function references(reference FHIR.Reference, resource FHIR.Resource):
      resource.id = Last(Split(reference.reference, '/'))

    define fluent function references(references List&lt;FHIR.Reference&gt;, resource FHIR.Resource):
      exists(references R where R.references(resource))

    //Common Retrievals
    define &quot;Encounters&quot;:
      [Encounter]

    define &quot;Observations&quot;:
      [Observation]

    define &quot;DiagnosticReports&quot;:
      [DiagnosticReport]
    </code></pre></td></tr>
                </table>
              </td>
            </tr>

        </table>
    </div>
    </div>
      </text>
      <contained>
        <Parameters>
          <id value="options"/>
          <parameter>
            <name value="translatorVersion"/>
            <valueString value="3.25.0"/>
          </parameter>
          <parameter>
            <name value="option"/>
            <valueString value="EnableDateRangeOptimization"/>
          </parameter>
          <parameter>
            <name value="option"/>
            <valueString value="EnableAnnotations"/>
          </parameter>
          <parameter>
            <name value="option"/>
            <valueString value="EnableLocators"/>
          </parameter>
          <parameter>
            <name value="option"/>
            <valueString value="DisableListDemotion"/>
          </parameter>
          <parameter>
            <name value="option"/>
            <valueString value="DisableListPromotion"/>
          </parameter>
          <parameter>
            <name value="analyzeDataRequirements"/>
            <valueBoolean value="false"/>
          </parameter>
          <parameter>
            <name value="collapseDataRequirements"/>
            <valueBoolean value="true"/>
          </parameter>
          <parameter>
            <name value="compatibilityLevel"/>
            <valueString value="1.5"/>
          </parameter>
          <parameter>
            <name value="enableCqlOnly"/>
            <valueBoolean value="false"/>
          </parameter>
          <parameter>
            <name value="errorLevel"/>
            <valueString value="Info"/>
          </parameter>
          <parameter>
            <name value="signatureLevel"/>
            <valueString value="Overloads"/>
          </parameter>
          <parameter>
            <name value="validateUnits"/>
            <valueBoolean value="true"/>
          </parameter>
          <parameter>
            <name value="verifyOnly"/>
            <valueBoolean value="false"/>
          </parameter>
        </Parameters>
      </contained>
      <extension url="http://hl7.org/fhir/StructureDefinition/cqf-cqlOptions">
        <valueReference>
          <reference value="#options"/>
        </valueReference>
      </extension>
      <url
           value="http://www.cdc.gov/nhsn/fhirportal/dqm/ig/Library/NHSNAcuteCareHospitalDailyInitialPopulation"/>
      <version value="1.0.0"/>
      <name value="NHSNAcuteCareHospitalDailyInitialPopulation"/>
      <status value="draft"/>
      <type>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/library-type"/>
          <code value="logic-library"/>
        </coding>
      </type>
      <date value="2025-09-15T12:53:39-04:00"/>
      <publisher value="CDC National Healthcare Safety Network (NHSN)"/>
      <contact>
        <name value="CDC National Healthcare Safety Network (NHSN)"/>
        <telecom>
          <system value="url"/>
          <value value="http://www.cdc.gov/nhsn"/>
        </telecom>
        <telecom>
          <system value="email"/>
          <value value="nhsn@cdc.gov"/>
        </telecom>
      </contact>
      <jurisdiction>
        <coding>
          <system value="urn:iso:std:iso:3166"/>
          <code value="US"/>
        </coding>
      </jurisdiction>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="FHIR model information"/>
        <resource
                  value="http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Library FHIRHelpers"/>
        <resource
                  value="http://www.cdc.gov/nhsn/fhirportal/dqm/ig/Library/FHIRHelpers|4.0.2"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Library NHSNHelpers"/>
        <resource
                  value="http://www.cdc.gov/nhsn/fhirportal/dqm/ig/Library/NHSNHelpers|0.0.002"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Library SharedResource"/>
        <resource
                  value="http://www.cdc.gov/nhsn/fhirportal/dqm/ig/Library/SharedResourceCreation|0.1.010"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Code system ActCode"/>
        <resource value="http://terminology.hl7.org/CodeSystem/v3-ActCode|9.0.0"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Code system LOINC"/>
        <resource value="http://loinc.org"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Code system Observation Category"/>
        <resource
                  value="http://terminology.hl7.org/CodeSystem/observation-category|1.0.1"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Code system RXNORM"/>
        <resource value="http://www.nlm.nih.gov/research/umls/rxnorm"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Encounter Inpatient"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display
                 value="Value set Inpatient, Emergency, and Observation Locations"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.265"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Observation Services"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Discharge Disposition"/>
        <resource
                  value="http://terminology.hl7.org/ValueSet/encounter-discharge-disposition|1.0.1"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set COVID_19 (Tests for SARS_CoV_2 Nucleic Acid)"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1142"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set COVID_19 (Tests for SARS_CoV_2 Antigen)"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1158"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display
                 value="Value set COVID_19 (Organism or Substance in Lab Results)"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1143"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display
                 value="Value set Influenza (Tests for influenza A or B virus Nucleic Acid)"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.336"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display
                 value="Value set Influenza (Tests for influenza A or B virus Antigen)"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.337"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display
                 value="Value set Influenza (influenza A or B virus in Lab Results)"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.340"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set RSV (Tests for RSV Antigen)"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1311"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set RSV (Tests for RSV Nucleic Acid)"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1312"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set RSV (Organism or Substance in Lab Results)"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1308"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set LIVD SARS CoV2 Test Result Codes"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1114.10"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Baricitinib"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2046"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Anakinra"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2054"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Sarilumab"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2084"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set COVID19 RxNorm Value Set for Tocilizumab"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2087"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Casirivimab"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2097"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Imdevimab"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2098"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Bamlanivimab"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2099"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Etesevimab"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2100"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Sotrovimab"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2101"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Tofacitinib"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2102"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Casirivimab / Imdevimab"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2103"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Molnupiravir"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2119"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Remdesivir"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2081"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Nirmatrelvir / Ritonavir"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2104"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Bebtelovimab"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2105"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Baloxavir"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.85"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Peramivir"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.86"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Zanamivir"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.87"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Oseltamivir"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.3616.200.110.102.2078"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set Transmission Based Precaution Types"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.10.20.22.5.300"/>
      </relatedArtifact>
      <relatedArtifact>
        <type value="depends-on"/>
        <display value="Value set NHSN Inpatient Encounter Class Codes"/>
        <resource
                  value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.274"/>
      </relatedArtifact>
      <parameter>
        <name value="Measurement Period"/>
        <use value="in"/>
        <min value="0"/>
        <max value="1"/>
        <type value="Period"/>
      </parameter>
      <parameter>
        <name value="Patient"/>
        <use value="out"/>
        <min value="0"/>
        <max value="1"/>
        <type value="Patient"/>
      </parameter>
      <parameter>
        <name value="EncounterInpatient"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Encounter"/>
      </parameter>
      <parameter>
        <name value="EncounterObservation"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Encounter"/>
      </parameter>
      <parameter>
        <name value="Encounters with Patient Hospital Locations"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Encounter"/>
      </parameter>
      <parameter>
        <name value="Initial Population"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Encounter"/>
      </parameter>
      <parameter>
        <name value="COVID And Influenza Observation"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Observation"/>
      </parameter>
      <parameter>
        <name value="RSV Observation"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Observation"/>
      </parameter>
      <parameter>
        <name value="ACH Daily Observation"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Observation"/>
      </parameter>
      <parameter>
        <name value="COVID And Influenza PRE Admission Observation"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Observation"/>
      </parameter>
      <parameter>
        <name value="RSV PRE Admission Observation"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Observation"/>
      </parameter>
      <parameter>
        <name value="COVID And Influenza DiagnosticReport"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="DiagnosticReport"/>
      </parameter>
      <parameter>
        <name value="RSV DiagnosticReport"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="DiagnosticReport"/>
      </parameter>
      <parameter>
        <name value="ACH Daily DiagnosticReport"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="DiagnosticReport"/>
      </parameter>
      <parameter>
        <name value="COVID And Influenza DiagnosticReport PRE Admission"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="DiagnosticReport"/>
      </parameter>
      <parameter>
        <name value="RSV DiagnosticReport PRE Admission"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="DiagnosticReport"/>
      </parameter>
      <parameter>
        <name value="DiagnosticReports"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="DiagnosticReport"/>
      </parameter>
      <parameter>
        <name value="Observations"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Observation"/>
      </parameter>
      <parameter>
        <name value="COVID and Influenza DiagnosticReport Observations"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Observation"/>
      </parameter>
      <parameter>
        <name value="COVID and Influenza DiagnosticReport Result from Lab"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="DiagnosticReport"/>
      </parameter>
      <parameter>
        <name value="RSV Observations"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Observation"/>
      </parameter>
      <parameter>
        <name value="RSV DiagnosticReport Observations"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="DiagnosticReport"/>
      </parameter>
      <parameter>
        <name value="RSV DiagnosticReport Result from Lab"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="DiagnosticReport"/>
      </parameter>
      <parameter>
        <name value="ACH Daily DiagnosticReport Result from Lab"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="DiagnosticReport"/>
      </parameter>
      <parameter>
        <name
              value="COVID and Influenza DiagnosticReport Result from Lab PRE Admission"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="DiagnosticReport"/>
      </parameter>
      <parameter>
        <name value="RSV DiagnosticReport Result from Lab PRE Admission"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="DiagnosticReport"/>
      </parameter>
      <parameter>
        <name value="SDE IP Encounters"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Encounter"/>
      </parameter>
      <parameter>
        <name value="Encounters"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Encounter"/>
      </parameter>
      <parameter>
        <name value="SDE Encounter"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Encounter"/>
      </parameter>
      <parameter>
        <name value="SDE Minimal Patient"/>
        <use value="out"/>
        <min value="0"/>
        <max value="1"/>
        <type value="Patient"/>
      </parameter>
      <parameter>
        <name value="SDE Location"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Location"/>
      </parameter>
      <parameter>
        <name value="SDE Encounter Discharge Dispositions"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Encounter"/>
      </parameter>
      <parameter>
        <name value="SDE ACH Daily Observation"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Observation"/>
      </parameter>
      <parameter>
        <name value="SDE RSV PRE Admission Observation"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Observation"/>
      </parameter>
      <parameter>
        <name value="SDE COVID And Influenza PRE Admission Observation"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Observation"/>
      </parameter>
      <parameter>
        <name value="SDE ACH Daily Specimen"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Specimen"/>
      </parameter>
      <parameter>
        <name value="SDE RSV Specimen"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Specimen"/>
      </parameter>
      <parameter>
        <name value="SDE COVID And Influenza Specimen"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Specimen"/>
      </parameter>
      <parameter>
        <name value="SDE ACH Daily DiagnosticReport"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="DiagnosticReport"/>
      </parameter>
      <parameter>
        <name value="SDE COVID And Influenza DiagnosticReport"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="DiagnosticReport"/>
      </parameter>
      <parameter>
        <name value="SDE RSV DiagnosticReport"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="DiagnosticReport"/>
      </parameter>
      <parameter>
        <name value="SDE ACH Daily DiagnosticReport Result from Lab"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="DiagnosticReport"/>
      </parameter>
      <parameter>
        <name value="SDE COVID and Influenza DiagnosticReport Result from Lab"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="DiagnosticReport"/>
      </parameter>
      <parameter>
        <name value="SDE RSV DiagnosticReport Result from Lab"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="DiagnosticReport"/>
      </parameter>
      <parameter>
        <name value="SDE ACH Daily ServiceRequest"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="ServiceRequest"/>
      </parameter>
      <parameter>
        <name value="SDE Isolation Precautions Implemented"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Procedure"/>
      </parameter>
      <parameter>
        <name value="SDE Covid or Influenza Medication Administered"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="MedicationAdministration"/>
      </parameter>
      <parameter>
        <name value="SDE Covid or Influenza Medication Ordered"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="MedicationRequest"/>
      </parameter>
      <parameter>
        <name value="SDE Medication"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Medication"/>
      </parameter>
      <parameter>
        <name value="SDE All Observations"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Observation"/>
      </parameter>
      <parameter>
        <name value="SDE All ServiceRequests"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="ServiceRequest"/>
      </parameter>
      <parameter>
        <name value="SDE All Procedures"/>
        <use value="out"/>
        <min value="0"/>
        <max value="*"/>
        <type value="Procedure"/>
      </parameter>
      <dataRequirement>
        <type value="Patient"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Patient"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Encounter"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
        <mustSupport value="type"/>
        <mustSupport value="status"/>
        <mustSupport value="period"/>
        <mustSupport value="id"/>
        <mustSupport value="hospitalization"/>
        <mustSupport value="hospitalization.dischargeDisposition"/>
        <codeFilter>
          <path value="type"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Encounter"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
        <mustSupport value="class"/>
        <mustSupport value="status"/>
        <mustSupport value="period"/>
        <mustSupport value="id"/>
        <mustSupport value="hospitalization"/>
        <mustSupport value="hospitalization.dischargeDisposition"/>
        <codeFilter>
          <path value="class"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.274"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Encounter"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
        <mustSupport value="type"/>
        <mustSupport value="status"/>
        <mustSupport value="period"/>
        <mustSupport value="id"/>
        <mustSupport value="hospitalization"/>
        <mustSupport value="hospitalization.dischargeDisposition"/>
        <codeFilter>
          <path value="type"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Encounter"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
        <mustSupport value="class"/>
        <mustSupport value="status"/>
        <mustSupport value="period"/>
        <mustSupport value="id"/>
        <mustSupport value="hospitalization"/>
        <mustSupport value="hospitalization.dischargeDisposition"/>
        <codeFilter>
          <path value="class"/>
          <code>
            <system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
            <code value="OBSENC"/>
            <display value="observation encounter"/>
          </code>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Encounter"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
        <mustSupport value="location"/>
        <mustSupport value="period"/>
        <mustSupport value="status"/>
        <mustSupport value="id"/>
        <mustSupport value="hospitalization"/>
        <mustSupport value="hospitalization.dischargeDisposition"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Observation"/>
        <mustSupport value="code"/>
        <mustSupport value="category"/>
        <mustSupport value="status"/>
        <mustSupport value="effective"/>
        <mustSupport value="specimen"/>
        <mustSupport value="specimen.collection"/>
        <mustSupport value="specimen.collection.collected"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.336"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Observation"/>
        <mustSupport value="code"/>
        <mustSupport value="category"/>
        <mustSupport value="status"/>
        <mustSupport value="effective"/>
        <mustSupport value="specimen"/>
        <mustSupport value="specimen.collection"/>
        <mustSupport value="specimen.collection.collected"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.337"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Observation"/>
        <mustSupport value="code"/>
        <mustSupport value="category"/>
        <mustSupport value="status"/>
        <mustSupport value="effective"/>
        <mustSupport value="specimen"/>
        <mustSupport value="specimen.collection"/>
        <mustSupport value="specimen.collection.collected"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1142"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Observation"/>
        <mustSupport value="code"/>
        <mustSupport value="category"/>
        <mustSupport value="status"/>
        <mustSupport value="effective"/>
        <mustSupport value="specimen"/>
        <mustSupport value="specimen.collection"/>
        <mustSupport value="specimen.collection.collected"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1158"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Observation"/>
        <mustSupport value="code"/>
        <mustSupport value="category"/>
        <mustSupport value="status"/>
        <mustSupport value="effective"/>
        <mustSupport value="specimen"/>
        <mustSupport value="specimen.collection"/>
        <mustSupport value="specimen.collection.collected"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1312"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Observation"/>
        <mustSupport value="code"/>
        <mustSupport value="category"/>
        <mustSupport value="status"/>
        <mustSupport value="effective"/>
        <mustSupport value="specimen"/>
        <mustSupport value="specimen.collection"/>
        <mustSupport value="specimen.collection.collected"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1311"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Observation"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Observation"/>
        <mustSupport value="category"/>
        <mustSupport value="status"/>
        <mustSupport value="effective"/>
        <mustSupport value="specimen"/>
        <mustSupport value="specimen.collection"/>
        <mustSupport value="specimen.collection.collected"/>
        <mustSupport value="code"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Specimen"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Specimen"/>
        <mustSupport value="id"/>
      </dataRequirement>
      <dataRequirement>
        <type value="DiagnosticReport"/>
        <profile
                 value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport"/>
        <mustSupport value="code"/>
        <mustSupport value="status"/>
        <mustSupport value="effective"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1142"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="DiagnosticReport"/>
        <profile
                 value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport"/>
        <mustSupport value="code"/>
        <mustSupport value="status"/>
        <mustSupport value="effective"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1158"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="DiagnosticReport"/>
        <profile
                 value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport"/>
        <mustSupport value="code"/>
        <mustSupport value="status"/>
        <mustSupport value="effective"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.336"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="DiagnosticReport"/>
        <profile
                 value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport"/>
        <mustSupport value="code"/>
        <mustSupport value="status"/>
        <mustSupport value="effective"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.337"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="DiagnosticReport"/>
        <profile
                 value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport"/>
        <mustSupport value="code"/>
        <mustSupport value="status"/>
        <mustSupport value="effective"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1312"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="DiagnosticReport"/>
        <profile
                 value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport"/>
        <mustSupport value="code"/>
        <mustSupport value="status"/>
        <mustSupport value="effective"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1311"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="DiagnosticReport"/>
        <profile
                 value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport"/>
        <mustSupport value="status"/>
        <mustSupport value="effective"/>
        <mustSupport value="result"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Location"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Location"/>
      </dataRequirement>
      <dataRequirement>
        <type value="ServiceRequest"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
        <mustSupport value="code"/>
        <mustSupport value="intent"/>
        <mustSupport value="status"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1142"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="ServiceRequest"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
        <mustSupport value="code"/>
        <mustSupport value="intent"/>
        <mustSupport value="status"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1158"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="ServiceRequest"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
        <mustSupport value="code"/>
        <mustSupport value="intent"/>
        <mustSupport value="status"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.336"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="ServiceRequest"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
        <mustSupport value="code"/>
        <mustSupport value="intent"/>
        <mustSupport value="status"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.337"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="ServiceRequest"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
        <mustSupport value="code"/>
        <mustSupport value="intent"/>
        <mustSupport value="status"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1312"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="ServiceRequest"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
        <mustSupport value="code"/>
        <mustSupport value="intent"/>
        <mustSupport value="status"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.1311"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="ServiceRequest"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
        <mustSupport value="intent"/>
        <mustSupport value="status"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Procedure"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
        <mustSupport value="code"/>
        <mustSupport value="performed"/>
        <codeFilter>
          <path value="code"/>
          <valueSet
                    value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.10.20.22.5.300"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="Procedure"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
      </dataRequirement>
      <dataRequirement>
        <type value="Medication"/>
        <profile value="http://hl7.org/fhir/StructureDefinition/Medication"/>
        <mustSupport value="id"/>
        <codeFilter>
          <path value="id"/>
        </codeFilter>
      </dataRequirement>
      <dataRequirement>
        <type value="MedicationAdministration"/>
        <profile
                 value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
        <mustSupport value="medication"/>
        <mustSupport value="status"/>
        <mustSupport value="effective"/>
      </dataRequirement>
      <dataRequirement>
        <type value="MedicationRequest"/>
        <profile
                 value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
        <mustSupport value="medication"/>
        <mustSupport value="authoredOn"/>
      </dataRequirement>
      <content>
        <contentType value="text/cql"/>
        <data
              value=" "/>
      </content>
    </Library>