National Healthcare Safety Network (NHSN) Digital Quality Measure (dQM) Reporting Implementation Guide, published by HL7 International / Public Health. This guide is not an authorized publication; it is the continuous build for version 1.0.0-ballot built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/nhsn-dqm/ and changes regularly. See the Directory of published versions
Page standards status: Informative |
<Library xmlns="http://hl7.org/fhir">
<id value="effective-data-requirements"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: Library effective-data-requirements</b></p><a name="effective-data-requirements"> </a><a name="hceffective-data-requirements"> </a><a name="effective-data-requirements-en-US"> </a><h2>Related Artifacts</h2><table class="grid"><tr><td>Depends On</td><td>Library FHIRHelpers</td><td><a href="http://fhir.org/guides/cqf/common/4.0.1/4.0.1/Library-FHIRHelpers.html">http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1</a></td></tr><tr><td>Depends On</td><td>Library Global</td><td><a href="http://hl7.org/fhir/us/cqfmeasures/STU4/Library-MATGlobalCommonFunctions.html">http://hl7.org/fhir/us/cqfmeasures/Library/MATGlobalCommonFunctions</a></td></tr><tr><td>Depends On</td><td>Code system ActCode</td><td><a href="http://terminology.hl7.org/5.5.0/CodeSystem-v3-ActCode.html">ActCode</a></td></tr><tr><td>Depends On</td><td>Code system Observation Category</td><td><a href="http://terminology.hl7.org/5.5.0/CodeSystem-observation-category.html">Observation Category Codes</a></td></tr><tr><td>Depends On</td><td>Code system LOINC</td><td><a href="http://terminology.hl7.org/5.5.0/CodeSystem-v3-loinc.html">Logical Observation Identifiers, Names and Codes (LOINC)</a></td></tr><tr><td>Depends On</td><td>Code system V2-0074</td><td><a href="http://terminology.hl7.org/5.2.0/CodeSystem-v2-0074.html">diagnosticServiceSectionId</a></td></tr><tr><td>Depends On</td><td>Value set Encounter Inpatient</td><td><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.666.5.307/expansion">Encounter Inpatient</a></td></tr><tr><td>Depends On</td><td>Value set Emergency Department Visit</td><td><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.292/expansion">Emergency Department Visit</a></td></tr><tr><td>Depends On</td><td>Value set Observation Services</td><td><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1111.143/expansion">Observation Services</a></td></tr><tr><td>Depends On</td><td>Value set Inpatient, Emergency, and Observation Locations</td><td><a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1046.265/expansion">Inpatient, Emergency, and Observation Locations</a></td></tr></table><h2>Parameters</h2><table class="grid"><tr><td>Measurement Period</td><td>in</td><td>0</td><td>1</td><td>Period</td></tr><tr><td>SDE Encounter</td><td>out</td><td>0</td><td>*</td><td>Encounter</td></tr><tr><td>SDE Medication Request</td><td>out</td><td>0</td><td>*</td><td>MedicationRequest</td></tr><tr><td>SDE Coverage</td><td>out</td><td>0</td><td>*</td><td>Coverage</td></tr><tr><td>SDE Procedure</td><td>out</td><td>0</td><td>*</td><td>Procedure</td></tr><tr><td>SDE Device</td><td>out</td><td>0</td><td>*</td><td>Device</td></tr><tr><td>SDE Observation Lab Category</td><td>out</td><td>0</td><td>*</td><td>Observation</td></tr><tr><td>SDE Observation Vital Signs Category</td><td>out</td><td>0</td><td>*</td><td>Observation</td></tr><tr><td>SDE DiagnosticReport Others</td><td>out</td><td>0</td><td>*</td><td>DiagnosticReport</td></tr><tr><td>SDE Medication Administration</td><td>out</td><td>0</td><td>*</td><td>MedicationAdministration</td></tr><tr><td>SDE Observation Category</td><td>out</td><td>0</td><td>*</td><td>Observation</td></tr><tr><td>SDE Condition</td><td>out</td><td>0</td><td>*</td><td>Condition</td></tr><tr><td>Initial Population</td><td>out</td><td>0</td><td>*</td><td>Encounter</td></tr><tr><td>SDE DiagnosticReport Lab</td><td>out</td><td>0</td><td>*</td><td>DiagnosticReport</td></tr><tr><td>SDE Location</td><td>out</td><td>0</td><td>*</td><td>Location</td></tr><tr><td>SDE Service Request</td><td>out</td><td>0</td><td>*</td><td>ServiceRequest</td></tr><tr><td>SDE DiagnosticReport Note</td><td>out</td><td>0</td><td>*</td><td>DiagnosticReport</td></tr><tr><td>SDE Minimal Patient</td><td>out</td><td>0</td><td>1</td><td>Patient</td></tr><tr><td>SDE Medication</td><td>out</td><td>0</td><td>*</td><td>Medication</td></tr><tr><td>SDE Specimen</td><td>out</td><td>0</td><td>*</td><td>Specimen</td></tr></table><h2>Data Requirements</h2><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/encounter.html">Encounter</a> (<a href="http://hl7.org/fhir/R4/encounter.html">Encounter</a>)</td></tr><tr style="background-color: #efefef"><td>Filter</td><td>Value</td></tr><tr><td>type</td><td>In ValueSet <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.666.5.307/expansion">Encounter Inpatient</a></td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/encounter.html">Encounter</a> (<a href="http://hl7.org/fhir/R4/encounter.html">Encounter</a>)</td></tr><tr style="background-color: #efefef"><td>Filter</td><td>Value</td></tr><tr><td>type</td><td>In ValueSet <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113883.3.117.1.7.1.292/expansion">Emergency Department Visit</a></td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/encounter.html">Encounter</a> (<a href="http://hl7.org/fhir/R4/encounter.html">Encounter</a>)</td></tr><tr style="background-color: #efefef"><td>Filter</td><td>Value</td></tr><tr><td>type</td><td>In ValueSet <a href="https://vsac.nlm.nih.gov/valueset/2.16.840.1.113762.1.4.1111.143/expansion">Observation Services</a></td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/encounter.html">Encounter</a> (<a href="http://hl7.org/fhir/R4/encounter.html">Encounter</a>)</td></tr><tr style="background-color: #efefef"><td>Filter</td><td>Value</td></tr><tr><td>class</td><td>One of these codes: <a href="http://terminology.hl7.org/5.5.0/CodeSystem-v3-ActCode.html#v3-ActCode-EMER">ActCode EMER</a>: emergency, <a href="http://terminology.hl7.org/5.5.0/CodeSystem-v3-ActCode.html#v3-ActCode-ACUTE">ActCode ACUTE</a>: inpatient acute, <a href="http://terminology.hl7.org/5.5.0/CodeSystem-v3-ActCode.html#v3-ActCode-IMP">ActCode IMP</a>: inpatient encounter, <a href="http://terminology.hl7.org/5.5.0/CodeSystem-v3-ActCode.html#v3-ActCode-NONAC">ActCode NONAC</a>: inpatient non-acute, <a href="http://terminology.hl7.org/5.5.0/CodeSystem-v3-ActCode.html#v3-ActCode-SS">ActCode SS</a>: short stay</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/encounter.html">Encounter</a> (<a href="http://hl7.org/fhir/R4/encounter.html">Encounter</a>)</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/location.html">Location</a> (<a href="http://hl7.org/fhir/R4/location.html">Location</a>)</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/medicationrequest.html">MedicationRequest</a> (<a href="http://hl7.org/fhir/R4/medicationrequest.html">MedicationRequest</a>)</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/coverage.html">Coverage</a> (<a href="http://hl7.org/fhir/R4/coverage.html">Coverage</a>)</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/procedure.html">Procedure</a> (<a href="http://hl7.org/fhir/R4/procedure.html">Procedure</a>)</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/device.html">Device</a> (<a href="http://hl7.org/fhir/R4/device.html">Device</a>)</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/observation.html">Observation</a> (<a href="http://hl7.org/fhir/R4/observation.html">Observation</a>)</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/diagnosticreport.html">DiagnosticReport</a> (<a href="http://hl7.org/fhir/R4/diagnosticreport.html">DiagnosticReport</a>)</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/medicationadministration.html">MedicationAdministration</a> (<a href="http://hl7.org/fhir/R4/medicationadministration.html">MedicationAdministration</a>)</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/condition.html">Condition</a> (<a href="http://hl7.org/fhir/R4/condition.html">Condition</a>)</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/servicerequest.html">ServiceRequest</a> (<a href="http://hl7.org/fhir/R4/servicerequest.html">ServiceRequest</a>)</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/patient.html">Patient</a> (<a href="http://hl7.org/fhir/R4/patient.html">Patient</a>)</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/medication.html">Medication</a> (<a href="http://hl7.org/fhir/R4/medication.html">Medication</a>)</td></tr></table><table class="grid"><tr><td colspan="2"><b>Type</b>: <a href="http://hl7.org/fhir/R4/specimen.html">Specimen</a> (<a href="http://hl7.org/fhir/R4/specimen.html">Specimen</a>)</td></tr></table></div>
</text>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
<valueCoding>
<system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
<code value="EMER"/>
<display value="emergency"/>
</valueCoding>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
<valueCoding>
<system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
<code value="ACUTE"/>
<display value="inpatient acute"/>
</valueCoding>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
<valueCoding>
<system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
<code value="IMP"/>
<display value="inpatient encounter"/>
</valueCoding>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
<valueCoding>
<system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
<code value="NONAC"/>
<display value="inpatient non-acute"/>
</valueCoding>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
<valueCoding>
<system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
<code value="SS"/>
<display value="short stay"/>
</valueCoding>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
<valueCoding>
<system
value="http://terminology.hl7.org/CodeSystem/observation-category"/>
<code value="laboratory"/>
<display value="Laboratory"/>
</valueCoding>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
<valueCoding>
<system
value="http://terminology.hl7.org/CodeSystem/observation-category"/>
<code value="vital-signs"/>
<display value="Vital Signs"/>
</valueCoding>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
<valueCoding>
<system value="http://loinc.org"/>
<code value="LP29684-5"/>
<display value="Radiology"/>
</valueCoding>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
<valueCoding>
<system value="http://loinc.org"/>
<code value="LP7839-6"/>
<display value="Pathology"/>
</valueCoding>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
<valueCoding>
<system value="http://loinc.org"/>
<code value="LP29708-2"/>
<display value="Cardiology"/>
</valueCoding>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
<valueCoding>
<system value="http://terminology.hl7.org/CodeSystem/v2-0074"/>
<code value="LAB"/>
<display value="Laboratory"/>
</valueCoding>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
<valueCoding>
<system
value="http://terminology.hl7.org/CodeSystem/observation-category"/>
<code value="social-history"/>
<display value="Social History"/>
</valueCoding>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
<valueCoding>
<system
value="http://terminology.hl7.org/CodeSystem/observation-category"/>
<code value="survey"/>
<display value="Survey"/>
</valueCoding>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
<valueCoding>
<system
value="http://terminology.hl7.org/CodeSystem/observation-category"/>
<code value="imaging"/>
<display value="Imaging"/>
</valueCoding>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-directReferenceCode">
<valueCoding>
<system
value="http://terminology.hl7.org/CodeSystem/observation-category"/>
<code value="procedure"/>
<display value="Procedure"/>
</valueCoding>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="Encounters"/>
</extension>
<extension url="statement">
<valueString value="define "Encounters":
[Encounter]"/>
</extension>
<extension url="displaySequence">
<valueInteger value="0"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="Qualifying Encounters During Measurement Period"/>
</extension>
<extension url="statement">
<valueString
value="define "Qualifying Encounters During Measurement Period":
( [Encounter: "Encounter Inpatient"]
union [Encounter: "Emergency Department Visit"]
union [Encounter: "Observation Services"]
union [Encounter: class in {"emergency", "inpatient acute", "inpatient encounter", "inpatient non-acute", "short stay"}]) QualifyingEncounters
where QualifyingEncounters.status in {'in-progress', 'finished', 'triaged', 'onleave', 'entered-in-error'}
and QualifyingEncounters.period overlaps "Measurement Period""/>
</extension>
<extension url="displaySequence">
<valueInteger value="1"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="Encounters with Patient Hospital Locations"/>
</extension>
<extension url="statement">
<valueString
value="//potentially an issue as this may pull ALL EXISTING ENCOUNTERS (no period to look against)
define "Encounters with Patient Hospital Locations":
"Encounters" Encounters
where exists(
Encounters.location EncounterLocation
where Global.GetLocation(EncounterLocation.location).type in "Inpatient, Emergency, and Observation Locations"
and EncounterLocation.period overlaps Encounters.period
)
and Encounters.status in {'in-progress', 'finished', 'triaged', 'onleave', 'entered-in-error'}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="2"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="Initial Population"/>
</extension>
<extension url="statement">
<valueString
value="// and Encounters.period overlaps "Measurement Period" (?)
define "Initial Population":
"Qualifying Encounters During Measurement Period"
union "Encounters with Patient Hospital Locations""/>
</extension>
<extension url="displaySequence">
<valueInteger value="3"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="SDE Encounter"/>
</extension>
<extension url="statement">
<valueString
value="define "SDE Encounter":
"Encounters" Encounters
where exists(
"Initial Population" IP
where Encounters.period overlaps IP.period)
return SharedResource.EncounterResource(Encounters,
{FHIR.canonical{value: 'http://hl7.org/fhir/us/nhsn-dqm/StructureDefinition/ach-encounter'}})"/>
</extension>
<extension url="displaySequence">
<valueInteger value="4"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="SDE Medication Request"/>
</extension>
<extension url="statement">
<valueString
value="define "SDE Medication Request":
[MedicationRequest] MedicationRequests
where exists(
"Initial Population" IP
where MedicationRequests.authoredOn during IP.period)
return SharedResource.MedicationRequestResource(MedicationRequests,
{FHIR.canonical{value: 'http://hl7.org/fhir/us/nhsn-dqm/StructureDefinition/ach-medicationrequest'}})"/>
</extension>
<extension url="displaySequence">
<valueInteger value="5"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="SDE Coverage"/>
</extension>
<extension url="statement">
<valueString
value="define "SDE Coverage":
[Coverage] Coverages
where exists(
"Initial Population" IP
where Coverages.period overlaps IP.period)
return SharedResource.CoverageResource(Coverages,
{FHIR.canonical{value: 'http://hl7.org/fhir/us/nhsn-dqm/StructureDefinition/ach-coverage'}})"/>
</extension>
<extension url="displaySequence">
<valueInteger value="6"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="SDE Procedure"/>
</extension>
<extension url="statement">
<valueString
value="define "SDE Procedure":
[Procedure] Procedures
where exists(
"Initial Population" IP
where Global."Normalize Interval"(Procedures.performed) overlaps IP.period)
return SharedResource.ProcedureResource(Procedures,
{FHIR.canonical{value: 'http://hl7.org/fhir/us/nhsn-dqm/StructureDefinition/ach-procedure'}})"/>
</extension>
<extension url="displaySequence">
<valueInteger value="7"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="SDE Device"/>
</extension>
<extension url="statement">
<valueString
value="define "SDE Device":
[Device] Devices
where exists("Initial Population")
return DeviceResource(Devices,
{FHIR.canonical{value: 'http://hl7.org/fhir/us/nhsn-dqm/StructureDefinition/ach-device'}})"/>
</extension>
<extension url="displaySequence">
<valueInteger value="8"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="Observations"/>
</extension>
<extension url="statement">
<valueString value="define "Observations":
[Observation]"/>
</extension>
<extension url="displaySequence">
<valueInteger value="9"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="SDE Observation Lab Category"/>
</extension>
<extension url="statement">
<valueString
value="define "SDE Observation Lab Category":
"Observations" Observations
where (exists(Observations.category Category where Category ~ "laboratory"))
and exists(
"Initial Population" IP
where Global."Normalize Interval"(Observations.effective) overlaps IP.period)
return SharedResource.ObservationLabResource(Observations,
{FHIR.canonical{value: 'http://hl7.org/fhir/us/nhsn-dqm/StructureDefinition/ach-observation-lab'}})"/>
</extension>
<extension url="displaySequence">
<valueInteger value="10"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="SDE Observation Vital Signs Category"/>
</extension>
<extension url="statement">
<valueString
value="//Vital Signs Observation has its own profile in FHIR Base
define "SDE Observation Vital Signs Category":
"Observations" Observations
where (exists(Observations.category Category where Category ~ "vital-signs"))
and exists(
"Initial Population" IP
where Global."Normalize Interval"(Observations.effective) overlaps IP.period)
return ObservationVitalSignsResource(Observations,
{FHIR.canonical{value: 'http://hl7.org/fhir/us/nhsn-dqm/StructureDefinition/ach-observation-vitals'}})"/>
</extension>
<extension url="displaySequence">
<valueInteger value="11"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="SDE DiagnosticReport Others"/>
</extension>
<extension url="statement">
<valueString
value="define "SDE DiagnosticReport Others":
[DiagnosticReport] DiagnosticReports
where not ((exists(DiagnosticReports.category Category where Category ~ "Radiology"))
or exists((DiagnosticReports.category Category where Category ~ "Pathology"))
or exists((DiagnosticReports.category Category where Category ~ "Cardiology"))
or exists(DiagnosticReports.category Category where Category ~ "LAB"))
and exists("Initial Population" IP
where Global."Normalize Interval"(DiagnosticReports.effective) overlaps IP.period)
return DiagnosticReportResource(DiagnosticReports,
{FHIR.canonical{value: 'http://hl7.org/fhir/us/nhsn-dqm/StructureDefinition/ach-diagnosticreport'}})"/>
</extension>
<extension url="displaySequence">
<valueInteger value="12"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="SDE Medication Administration"/>
</extension>
<extension url="statement">
<valueString
value="define "SDE Medication Administration":
[MedicationAdministration] MedicationAdministrations
where exists(
"Initial Population" IP
where Global."Normalize Interval"(MedicationAdministrations.effective) overlaps IP.period)
return SharedResource.MedicationAdministrationResource(MedicationAdministrations,
{FHIR.canonical{value: 'http://hl7.org/fhir/us/nhsn-dqm/StructureDefinition/ach-medicationadministration'}})"/>
</extension>
<extension url="displaySequence">
<valueInteger value="13"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="SDE Observation Category"/>
</extension>
<extension url="statement">
<valueString
value="//Defaulting to base FHIR profile as there are no individual profiles in US Core 3.1.1 that cover these Observation categories
define "SDE Observation Category":
"Observations" Observations
where ((exists(Observations.category Category where Category ~ "social-history"))
or (exists(Observations.category Category where Category ~ "survey"))
or (exists(Observations.category Category where Category ~ "imaging"))
or (exists(Observations.category Category where Category ~ "procedure")))
and exists(
"Initial Population" IP
where Global."Normalize Interval"(Observations.effective) overlaps IP.period)
return ObservationResource(Observations,
{FHIR.canonical{value: 'http://hl7.org/fhir/us/nhsn-dqm/StructureDefinition/ach-observation'}})"/>
</extension>
<extension url="displaySequence">
<valueInteger value="14"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="SDE Condition"/>
</extension>
<extension url="statement">
<valueString
value="//============================================================================
//Supplemental Data Element
//When FHIR.canonical value is present, US Core 3.1.1 profiles are used
//When FHIR.canonical value is not present, FHIR Base profiles are used
//============================================================================
define "SDE Condition":
[Condition] Conditions
where exists("Initial Population")
return SharedResource.ConditionResource(Conditions,
{FHIR.canonical{value: 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition-encounter-diagnosis'}})"/>
</extension>
<extension url="displaySequence">
<valueInteger value="15"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="DiagnosticReports"/>
</extension>
<extension url="statement">
<valueString
value="define "DiagnosticReports":
[DiagnosticReport]"/>
</extension>
<extension url="displaySequence">
<valueInteger value="16"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="SDE DiagnosticReport Lab"/>
</extension>
<extension url="statement">
<valueString
value="define "SDE DiagnosticReport Lab":
"DiagnosticReports" DiagnosticReports
where (exists(DiagnosticReports.category Category where Category ~ "LAB")
and exists(
"Initial Population" IP
where Global."Normalize Interval"(DiagnosticReports.effective) overlaps IP.period))
return SharedResource.DiagnosticReportLabResource(DiagnosticReports,
{FHIR.canonical{value: 'http://hl7.org/fhir/us/nhsn-dqm/StructureDefinition/ach-diagnosticreport-lab'}})"/>
</extension>
<extension url="displaySequence">
<valueInteger value="17"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="IP Encounters Overlap Measurement Period"/>
</extension>
<extension url="statement">
<valueString
value="//Double checking for IP's period during MP as IP is created out of qualifying encounters, which checks for it,
//and encounter's locations, which doesn't
define "IP Encounters Overlap Measurement Period":
"Initial Population" IP
where IP.period overlaps "Measurement Period""/>
</extension>
<extension url="displaySequence">
<valueInteger value="18"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString
value="Get Locations from IP Encounters in Measurement Period"/>
</extension>
<extension url="statement">
<valueString
value="define "Get Locations from IP Encounters in Measurement Period":
flatten("IP Encounters Overlap Measurement Period" Encounters
let locationElements: Encounters.location
return
locationElements LE
let locationReference: LE.location
return Global.GetLocation(locationReference))"/>
</extension>
<extension url="displaySequence">
<valueInteger value="19"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="SDE Location"/>
</extension>
<extension url="statement">
<valueString
value="define "SDE Location":
"Get Locations from IP Encounters in Measurement Period" Locations
where exists("Initial Population")
and Locations is not null
return SharedResource.LocationResource(Locations,
{FHIR.canonical{value: 'http://hl7.org/fhir/us/nhsn-dqm/StructureDefinition/ach-location'}})"/>
</extension>
<extension url="displaySequence">
<valueInteger value="20"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="SDE Service Request"/>
</extension>
<extension url="statement">
<valueString
value="define "SDE Service Request":
[ServiceRequest] ServiceRequests
where exists("Initial Population" IP
where ServiceRequests.authoredOn during IP.period)
return SharedResource.ServiceRequestResource(ServiceRequests,
{FHIR.canonical{value: 'http://hl7.org/fhir/us/nhsn-dqm/StructureDefinition/ach-servicerequest'}})"/>
</extension>
<extension url="displaySequence">
<valueInteger value="21"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="SDE DiagnosticReport Note"/>
</extension>
<extension url="statement">
<valueString
value="define "SDE DiagnosticReport Note":
"DiagnosticReports" DiagnosticReports
where ((exists(DiagnosticReports.category Category where Category ~ "Radiology"))
or exists((DiagnosticReports.category Category where Category ~ "Pathology"))
or exists((DiagnosticReports.category Category where Category ~ "Cardiology")))
and exists(
"Initial Population" IP
where Global."Normalize Interval"(DiagnosticReports.effective) overlaps IP.period)
return DiagnosticReportResource(DiagnosticReports,
{FHIR.canonical{value: 'http://hl7.org/fhir/us/nhsn-dqm/StructureDefinition/ach-diagnosticreport-note'}})"/>
</extension>
<extension url="displaySequence">
<valueInteger value="22"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="SDE Minimal Patient"/>
</extension>
<extension url="statement">
<valueString
value="define "SDE Minimal Patient":
Patient p
return SharedResource.PatientResource(p,
{FHIR.canonical{value: 'http://hl7.org/fhir/us/nhsn-dqm/StructureDefinition/cross-measure-patient'}})"/>
</extension>
<extension url="displaySequence">
<valueInteger value="23"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="SDE Medication"/>
</extension>
<extension url="statement">
<valueString
value="define "SDE Medication":
("SDE Medication Request"
union "SDE Medication Administration") MedReqOrAdmin
where MedReqOrAdmin.medication is FHIR.Reference
and exists("Initial Population") //No longer need to check for timing here because it's checked in SDE Medication Request/Administriation
return SharedResource.MedicationResource(GetMedicationFrom(MedReqOrAdmin.medication),
{FHIR.canonical{value: 'http://hl7.org/fhir/us/nhsn-dqm/StructureDefinition/ach-medication'}})"/>
</extension>
<extension url="displaySequence">
<valueInteger value="24"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="SDE Specimen"/>
</extension>
<extension url="statement">
<valueString
value="define "SDE Specimen":
[Specimen] Specimens
where exists(
"Initial Population" IP
where Global."Normalize Interval"(Specimens.collection.collected) overlaps IP.period
)
return SharedResource.SpecimenResource(Specimens,
{FHIR.canonical{value: 'http://hl7.org/fhir/us/nhsn-dqm/StructureDefinition/ach-specimen'}})"/>
</extension>
<extension url="displaySequence">
<valueInteger value="25"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="FHIRHelpers"/>
</extension>
<extension url="name">
<valueString value="ToString"/>
</extension>
<extension url="statement">
<valueString
value="define function ToString(value EncounterStatus): value.value"/>
</extension>
<extension url="displaySequence">
<valueInteger value="26"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="FHIRHelpers"/>
</extension>
<extension url="name">
<valueString value="ToInterval"/>
</extension>
<extension url="statement">
<valueString
value="define function ToInterval(period FHIR.Period):
if period is null then
null
else
if period."start" is null then
Interval(period."start".value, period."end".value]
else
Interval[period."start".value, period."end".value]"/>
</extension>
<extension url="displaySequence">
<valueInteger value="27"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="MATGlobalCommonFunctionsFHIR4"/>
</extension>
<extension url="name">
<valueString value="GetLocation"/>
</extension>
<extension url="statement">
<valueString
value="// Returns the location for the given location reference
/*Returns the Location resource specified by the given reference*/
define function "GetLocation"(reference Reference ):
singleton from (
[Location] Locations
where Locations.id = GetId(reference.reference)
)"/>
</extension>
<extension url="displaySequence">
<valueInteger value="28"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="MATGlobalCommonFunctionsFHIR4"/>
</extension>
<extension url="name">
<valueString value="GetId"/>
</extension>
<extension url="statement">
<valueString
value="/*Returns the tail of the given uri (i.e. everything after the last slash in the URI).*/
define function "GetId"(uri String ):
Last(Split(uri, '/'))"/>
</extension>
<extension url="displaySequence">
<valueInteger value="29"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="FHIRHelpers"/>
</extension>
<extension url="name">
<valueString value="ToConcept"/>
</extension>
<extension url="statement">
<valueString
value="define function ToConcept(concept FHIR.CodeableConcept):
if concept is null then
null
else
System.Concept {
codes: concept.coding C return ToCode(C),
display: concept.text.value
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="30"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="EncounterResource"/>
</extension>
<extension url="statement">
<valueString
value="define function EncounterResource(encounter Encounter, profileURLs List<FHIR.canonical>):
encounter e
return Encounter{
id: FHIR.id{value: 'LCR-' + e.id},
meta: MetaElement(e, profileURLs),
extension: e.extension,
identifier: EncounterIdentifier(e.identifier),
status: e.status,
statusHistory: EncounterStatusHistory(e.statusHistory),
class: e.class,
classHistory: EncounterClassHistory(e.classHistory),
type: e.type,
serviceType: e.serviceType,
priority: e.priority,
subject: e.subject,
participant: EncounterParticipant(e.participant),
period: e.period,
length: e.length,
reasonCode: e.reasonCode,
reasonReference: e.reasonReference,
diagnosis: EncounterDiagnosis(e.diagnosis),
account: e.account,
hospitalization: EncounterHospitalization(e.hospitalization),
location: EncounterLocation(e.location),
partOf: e.partOf
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="31"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="MetaElement"/>
</extension>
<extension url="statement">
<valueString
value="define function "MetaElement"(resource Resource, profileURLs List<FHIR.canonical>):
resource r
return FHIR.Meta{
extension: r.meta.extension,
versionId: r.meta.versionId,
lastUpdated: r.meta.lastUpdated,
profile: profileURLs,
security: r.meta.security,
tag: r.meta.tag
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="32"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="EncounterIdentifier"/>
</extension>
<extension url="statement">
<valueString
value="define function EncounterIdentifier(identifier List<FHIR.Identifier>):
identifier i
return FHIR.Identifier{
use: i.use,
type: i.type,
system: i.system,
value: i.value,
period: i.period
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="33"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="EncounterStatusHistory"/>
</extension>
<extension url="statement">
<valueString
value="define function EncounterStatusHistory(statusHistory List<FHIR.Encounter.StatusHistory>):
statusHistory sH
return FHIR.Encounter.StatusHistory{
status: sH.status,
period: sH.period
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="34"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="EncounterClassHistory"/>
</extension>
<extension url="statement">
<valueString
value="define function EncounterClassHistory(classHistory List<FHIR.Encounter.ClassHistory>):
classHistory cH
return FHIR.Encounter.ClassHistory{
class: cH.class,
period: cH.period
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="35"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="EncounterParticipant"/>
</extension>
<extension url="statement">
<valueString
value="define function EncounterParticipant(participant List<FHIR.Encounter.Participant>):
participant p
return FHIR.Encounter.Participant{
type: p.type,
period: p.period,
individual: p.individual
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="36"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="EncounterDiagnosis"/>
</extension>
<extension url="statement">
<valueString
value="define function EncounterDiagnosis(diagnosis List<FHIR.Encounter.Diagnosis>):
diagnosis d
return FHIR.Encounter.Diagnosis{
condition: d.condition,
use: d.use,
rank: d.rank
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="37"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="EncounterHospitalization"/>
</extension>
<extension url="statement">
<valueString
value="define function EncounterHospitalization(hospitalization FHIR.Encounter.Hospitalization):
hospitalization h
return FHIR.Encounter.Hospitalization{
preAdmissionIdentifier: h.preAdmissionIdentifier,
origin: h.origin,
admitSource: h.admitSource,
reAdmission: h.reAdmission,
dietPreference: h.dietPreference,
specialCourtesy: h.specialCourtesy,
specialArrangement: h.specialArrangement,
destination: h.destination,
dischargeDisposition: h.dischargeDisposition
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="38"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="EncounterLocation"/>
</extension>
<extension url="statement">
<valueString
value="define function EncounterLocation(location List<FHIR.Encounter.Location>):
location l
return FHIR.Encounter.Location{
location: l.location,
status: l.status,
physicalType: l.physicalType,
period: l.period
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="39"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="FHIRHelpers"/>
</extension>
<extension url="name">
<valueString value="ToDateTime"/>
</extension>
<extension url="statement">
<valueString
value="define function ToDateTime(value dateTime): value.value"/>
</extension>
<extension url="displaySequence">
<valueInteger value="40"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="MedicationRequestResource"/>
</extension>
<extension url="statement">
<valueString
value="define function MedicationRequestResource(medicationRequest MedicationRequest, profileURLs List<FHIR.canonical>):
medicationRequest m
return MedicationRequest{
id: FHIR.id {value: 'LCR-' + m.id},
meta: MetaElement(medicationRequest, profileURLs),
extension: m.extension,
status: m.status,
statusReason: m.statusReason,
intent: m.intent,
category: m.category,
priority: m.priority,
doNotPerform: m.doNotPerform,
reported: m.reported,
medication: m.medication,
subject: m.subject,
encounter: m.encounter,
authoredOn: m.authoredOn,
requester: m.requester,
recorder: m.recorder,
reasonCode: m.reasonCode,
reasonReference: m.reasonReference,
instantiatesCanonical: m.instantiatesCanonical,
instantiatesUri: m.instantiatesUri,
courseOfTherapyType: m.courseOfTherapyType,
dosageInstruction: MedicationRequestDosageInstruction(m.dosageInstruction)
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="41"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="MedicationRequestDosageInstruction"/>
</extension>
<extension url="statement">
<valueString
value="define function MedicationRequestDosageInstruction(dosageInstruction List<FHIR.Dosage>):
dosageInstruction dI
return FHIR.Dosage{
text: dI.text,
patientInstruction: dI.patientInstruction,
timing: dI.timing,
asNeeded: dI.asNeeded,
site: dI.site,
route: dI.route,
method: dI.method,
doseAndRate: MedicationRequestDoseAndRate(dI.doseAndRate)
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="42"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="MedicationRequestDoseAndRate"/>
</extension>
<extension url="statement">
<valueString
value="define function MedicationRequestDoseAndRate(doseAndRate List<FHIR.Dosage.DoseAndRate>):
doseAndRate dR
return FHIR.Dosage.DoseAndRate{
type: dR.type,
dose: dR.dose,
rate: dR.rate
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="43"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="CoverageResource"/>
</extension>
<extension url="statement">
<valueString
value="define function CoverageResource(coverage Coverage, profileURLs List<FHIR.canonical>):
coverage c
return Coverage{
id: FHIR.id{value: 'LCR-' + c.id},
meta: MetaElement(c, profileURLs),
extension: c.extension,
status: c.status,
type: c.type,
policyHolder: c.policyHolder,
subscriber: c.subscriber,
subscriberId: c.subscriberId,
beneficiary: c.beneficiary,
dependent: c.dependent,
relationship: c.relationship,
period: c.period,
payor: c.payor,
class: CoverageClass(c.class),
order: c.order,
network: c.network,
subrogation: c.subrogation,
contract: c.contract
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="44"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="CoverageClass"/>
</extension>
<extension url="statement">
<valueString
value="define function CoverageClass(class List<FHIR.Coverage.Class>):
class c
return FHIR.Coverage.Class{
value: c.value,
name: c.name
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="45"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="ProcedureResource"/>
</extension>
<extension url="statement">
<valueString
value="define function ProcedureResource(procedure Procedure, profileURLs List<FHIR.canonical>):
procedure p
return Procedure{
id: FHIR.id {value: 'LCR-' + p.id},
meta: MetaElement(p, profileURLs),
extension: p.extension,
instantiatesCanonical: p.instantiatesCanonical,
instantiatesUri: p.instantiatesUri,
basedOn: p.basedOn,
partOf: p.partOf,
status: p.status,
statusReason: p.statusReason,
category: p.category,
code: p.code,
subject: p.subject,
encounter: p.encounter,
performed: p.performed,
recorder: p.recorder,
asserter: p.asserter,
performer: ProcedurePerformer(p.performer),
location: p.location,
reasonCode: p.reasonCode,
reasonReference: p.reasonReference,
bodySite: p.bodySite,
outcome: p.outcome,
report: p.report,
complication: p.complication,
complicationDetail: p.complicationDetail,
followUp: p.followUp,
note: p.note,
focalDevice: ProcedureFocalDevice(p.focalDevice),
usedReference: p.usedReference,
usedCode: p.usedCode
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="46"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="ProcedurePerformer"/>
</extension>
<extension url="statement">
<valueString
value="define function ProcedurePerformer(performer List<FHIR.Procedure.Performer>):
performer p
return FHIR.Procedure.Performer{
function: p.function,
actor: p.actor,
onBehalfOf: p.onBehalfOf
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="47"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="ProcedureFocalDevice"/>
</extension>
<extension url="statement">
<valueString
value="define function ProcedureFocalDevice(device List<FHIR.Procedure.FocalDevice>):
device d
return FHIR.Procedure.FocalDevice{
action: d.action,
manipulated: d.manipulated
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="48"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="DeviceResource"/>
</extension>
<extension url="statement">
<valueString
value="define function DeviceResource(device Device, profileURLs List<FHIR.canonical>):
device d
return Device{
id: FHIR.id{value: 'LCR-' + d.id},
meta: SharedResource.MetaElement(d, profileURLs),
extension: d.extension,
definition: d.definition,
udiCarrier: DeviceUdiCarrier(d.udiCarrier),
status: d.status,
statusReason: d.statusReason,
distinctIdentifier: d.distinctIdentifier,
manufacturer: d.manufacturer,
manufactureDate: d.manufactureDate,
expirationDate: d.expirationDate,
lotNumber: d.lotNumber,
serialNumber: d.serialNumber,
deviceName: DeviceDeviceName(d.deviceName),
modelNumber: d.modelNumber,
partNumber: d.partNumber,
type: d.type,
specialization: DeviceSpecialization(d.specialization),
version: DeviceVersion(d.version),
property: DeviceProperty(d.property),
patient: d.patient,
owner: d.owner,
contact: d.contact,
location: d.location,
url: d.url,
note: d.note,
safety: d.safety,
parent: d.parent
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="49"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="DeviceUdiCarrier"/>
</extension>
<extension url="statement">
<valueString
value="//
//Measure Specific Resource Creation Functions
//
define function DeviceUdiCarrier(udiCarrier List<FHIR.Device.UdiCarrier>):
udiCarrier u
return FHIR.Device.UdiCarrier{
deviceIdentifier: u.deviceIdentifier,
issuer: u.issuer,
jurisdiction: u.jurisdiction,
carrierAIDC: u.carrierAIDC,
carrierHRF: u.carrierHRF,
entryType: u.entryType
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="50"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="DeviceDeviceName"/>
</extension>
<extension url="statement">
<valueString
value="define function DeviceDeviceName(deviceName List<FHIR.Device.DeviceName>):
deviceName d
return FHIR.Device.DeviceName{
name: d.name,
type: d.type
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="51"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="DeviceSpecialization"/>
</extension>
<extension url="statement">
<valueString
value="define function DeviceSpecialization(specialization List<FHIR.Device.Specialization>):
specialization s
return FHIR.Device.Specialization{
systemType: s.systemType,
version: s.version
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="52"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="DeviceVersion"/>
</extension>
<extension url="statement">
<valueString
value="define function DeviceVersion(version List<FHIR.Device.Version>):
version v
return FHIR.Device.Version{
type: v.type,
component: v.component,
value: v.value
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="53"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="DeviceProperty"/>
</extension>
<extension url="statement">
<valueString
value="define function DeviceProperty(deviceProperty List<FHIR.Device.Property>):
deviceProperty d
return FHIR.Device.Property{
id: d.id,
type: d.type,
valueQuantity: d.valueQuantity,
valueCode: d.valueCode
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="54"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="ObservationLabResource"/>
</extension>
<extension url="statement">
<valueString
value="define function ObservationLabResource(observation Observation, profileURLs List<FHIR.canonical>):
observation o
return Observation{
id: FHIR.id {value: 'LCR-' + o.id},
meta: MetaElement(o, profileURLs),
extension: o.extension,
basedOn: o.basedOn,
partOf: o.partOf,
status: o.status,
category: ObservationLabCategory(o.category),
code: o.code,
subject: o.subject,
focus: o.focus,
encounter: o.encounter,
effective: o.effective,
issued: o.issued,
performer: o.performer,
value: o.value,
dataAbsentReason: o.dataAbsentReason,
interpretation: o.interpretation,
note: o.note,
bodySite: o.bodySite,
method: o.method,
specimen: o.specimen,
device: o.device,
referenceRange: ObservationReferenceRange(o.referenceRange),
hasMember: o.hasMember,
derivedFrom: o.derivedFrom,
component: ObservationComponent(o.component)
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="55"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="ObservationLabCategory"/>
</extension>
<extension url="statement">
<valueString
value="define function ObservationLabCategory(category List<CodeableConcept>):
category c
return CodeableConcept{
coding: ObservationLabCoding(c.coding),
text: c.text
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="56"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="ObservationLabCoding"/>
</extension>
<extension url="statement">
<valueString
value="define function ObservationLabCoding(coding List<Coding>):
coding c
return Coding{
id: c.id,
extension: c.extension,
system: c.system,
version: c.version,
code: c.code,
display: c.display,
userSelected: c.userSelected
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="57"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="ObservationReferenceRange"/>
</extension>
<extension url="statement">
<valueString
value="define function ObservationReferenceRange(referenceRange List<FHIR.Observation.ReferenceRange>):
referenceRange rR
return FHIR.Observation.ReferenceRange{
low: rR.low,
high: rR.high,
type: rR.type,
appliesTo: rR.appliesTo,
age: rR.age,
text: rR.text
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="58"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="ObservationComponent"/>
</extension>
<extension url="statement">
<valueString
value="define function ObservationComponent(component List<FHIR.Observation.Component>):
component c
return FHIR.Observation.Component{
code: c.code,
value: c.value,
dataAbsentReason: c.dataAbsentReason,
interpretation: c.interpretation,
referenceRange: c.referenceRange
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="59"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="ObservationVitalSignsResource"/>
</extension>
<extension url="statement">
<valueString
value="define function ObservationVitalSignsResource(observation Observation, profileURLs List<FHIR.canonical>):
observation o
return Observation{
id: FHIR.id {value: 'LCR-' + o.id},
meta: SharedResource.MetaElement(o, profileURLs),
extension: o.extension,
partOf: o.partOf,
status: o.status,
category: ObservationVitalSignsCategory(o.category),
code: o.code,
subject: o.subject,
focus: o.focus,
encounter: o.encounter,
effective: o.effective,
issued: o.issued,
performer: o.performer,
value: o.value,
dataAbsentReason: o.dataAbsentReason,
interpretation: o.interpretation,
note: o.note,
bodySite: o.bodySite,
method: o.method,
specimen: o.specimen,
device: o.device,
referenceRange: SharedResource.ObservationReferenceRange(o.referenceRange),
hasMember: o.hasMember,
derivedFrom: o.derivedFrom,
component: ObservationVitalSignsComponent(o.component)
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="60"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="ObservationVitalSignsCategory"/>
</extension>
<extension url="statement">
<valueString
value="define function ObservationVitalSignsCategory(category List<CodeableConcept>):
category c
return CodeableConcept{
coding: ObservationVitalSignsCoding(c.coding),
text: c.text
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="61"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="ObservationVitalSignsCoding"/>
</extension>
<extension url="statement">
<valueString
value="define function ObservationVitalSignsCoding(coding List<Coding>):
coding c
return Coding{
system: c.system,
version: c.version,
code: c.code,
display: c.display,
userSelected: c.userSelected
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="62"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="ObservationVitalSignsComponent"/>
</extension>
<extension url="statement">
<valueString
value="define function ObservationVitalSignsComponent(component List<FHIR.Observation.Component>):
component c
return FHIR.Observation.Component{
code: c.code,
value: c.value,
dataAbsentReason: c.dataAbsentReason,
interpretation: c.interpretation,
referenceRange: SharedResource.ObservationReferenceRange(c.referenceRange)
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="63"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="DiagnosticReportResource"/>
</extension>
<extension url="statement">
<valueString
value="define function DiagnosticReportResource(diagnosticReport DiagnosticReport, profileURLs List<FHIR.canonical>):
diagnosticReport d
return DiagnosticReport{
id: FHIR.id{value: 'LCR-' + d.id},
meta: SharedResource.MetaElement(d, profileURLs),
extension: d.extension,
basedOn: d.basedOn,
status: d.status,
category: d.category,
code: d.code,
subject: d.subject,
encounter: d.encounter,
effective: d.effective,
issued: d.issued,
performer: d.performer,
resultsInterpreter: d.resultsInterpreter,
specimen: d.specimen,
result: d.result,
conclusion: d.conclusion,
conclusionCode: d.conclusionCode
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="64"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="MedicationAdministrationResource"/>
</extension>
<extension url="statement">
<valueString
value="define function MedicationAdministrationResource(medicationAdministration MedicationAdministration, profileURLs List<FHIR.canonical>):
medicationAdministration m
return MedicationAdministration{
id: FHIR.id {value: 'LCR-' + m.id},
meta: MetaElement(m, profileURLs),
extension: m.extension,
instantiates: m.instantiates,
partOf: m.partOf,
status: m.status,
statusReason: m.statusReason,
category: m.category,
medication: m.medication,
subject: m.subject,
context: m.context,
supportingInformation: m.supportingInformation,
effective: m.effective,
performer: MedicationAdministrationPerformer(m.performer),
reasonCode: m.reasonCode,
reasonReference: m.reasonReference,
request: m.request,
device: m.device,
note: m.note,
dosage: MedicationAdministrationDosage(m.dosage),
eventHistory: m.eventHistory
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="65"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="MedicationAdministrationPerformer"/>
</extension>
<extension url="statement">
<valueString
value="define function MedicationAdministrationPerformer(performer List<FHIR.MedicationAdministration.Performer>):
performer p
return FHIR.MedicationAdministration.Performer{
function: p.function,
actor: p.actor
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="66"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="MedicationAdministrationDosage"/>
</extension>
<extension url="statement">
<valueString
value="define function MedicationAdministrationDosage(dosage FHIR.MedicationAdministration.Dosage):
dosage d
return FHIR.MedicationAdministration.Dosage{
text: d.text,
site: d.site,
route: d.route,
method: d.method,
dose: d.dose,
rate: d.rate
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="67"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="ObservationResource"/>
</extension>
<extension url="statement">
<valueString
value="define function ObservationResource(observation Observation, profileURLs List<FHIR.canonical>):
observation o
return Observation{
id: FHIR.id {value: 'LCR-' + o.id},
meta: SharedResource.MetaElement(o, profileURLs),
extension: o.extension,
partOf: o.partOf,
status: o.status,
category: o.category,
code: o.code,
subject: o.subject,
focus: o.focus,
encounter: o.encounter,
effective: o.effective,
issued: o.issued,
performer: o.performer,
value: o.value,
dataAbsentReason: o.dataAbsentReason,
interpretation: o.interpretation,
note: o.note,
bodySite: o.bodySite,
method: o.method,
specimen: o.specimen,
device: o.device,
referenceRange: SharedResource.ObservationReferenceRange(o.referenceRange),
hasMember: o.hasMember,
derivedFrom: o.derivedFrom,
component: SharedResource.ObservationComponent(o.component)
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="68"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="ConditionResource"/>
</extension>
<extension url="statement">
<valueString
value="define function ConditionResource(condition Condition, profileURLs List<FHIR.canonical>):
condition c
return Condition{
id: FHIR.id {value: 'LCR-' + c.id},
meta: MetaElement(c, profileURLs),
extension: c.extension,
clinicalStatus: c.clinicalStatus,
verificationStatus: c.verificationStatus,
category: c.category,
severity: c.severity,
code: c.code,
bodySite: c.bodySite,
subject: c.subject,
encounter: c.encounter,
onset: c.onset,
abatement: c.abatement,
recordedDate: c.recordedDate,
stage: ConditionStage(c.stage),
evidence: ConditionEvidence(c.evidence),
note: c.note
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="69"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="ConditionStage"/>
</extension>
<extension url="statement">
<valueString
value="define function ConditionStage(stage List<FHIR.Condition.Stage>):
stage s
return FHIR.Condition.Stage{
summary: s.summary,
assessment: s.assessment,
type: s.type
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="70"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="ConditionEvidence"/>
</extension>
<extension url="statement">
<valueString
value="define function ConditionEvidence(evidence List<FHIR.Condition.Evidence>):
evidence e
return FHIR.Condition.Evidence{
code: e.code,
detail: e.detail
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="71"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="DiagnosticReportLabResource"/>
</extension>
<extension url="statement">
<valueString
value="define function DiagnosticReportLabResource(diagnosticReport DiagnosticReport, profileURLs List<FHIR.canonical>):
diagnosticReport d
return DiagnosticReport{
id: FHIR.id{value: 'LCR-' + d.id},
meta: MetaElement(d, profileURLs),
extension: d.extension,
basedOn: d.basedOn,
status: d.status,
category: DiagnosticReportCategory(d.category),
code: d.code,
subject: d.subject,
encounter: d.encounter,
effective: d.effective,
issued: d.issued,
performer: d.performer,
resultsInterpreter: d.resultsInterpreter,
specimen: d.specimen,
result: d.result,
conclusion: d.conclusion,
conclusionCode: d.conclusionCode
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="72"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="DiagnosticReportCategory"/>
</extension>
<extension url="statement">
<valueString
value="define function DiagnosticReportCategory(category List<CodeableConcept>):
category c
return CodeableConcept{
coding: DiagnosticReportCoding(c.coding)
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="73"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="DiagnosticReportCoding"/>
</extension>
<extension url="statement">
<valueString
value="define function DiagnosticReportCoding(coding List<Coding>):
coding c
return Coding{
system: c.system,
version: c.version,
code: c.code,
display: c.display,
userSelected: c.userSelected
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="74"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="LocationResource"/>
</extension>
<extension url="statement">
<valueString
value="define function LocationResource(location Location, profileURLs List<FHIR.canonical>):
location l
return Location{
id: FHIR.id {value: 'LCR-' + l.id},
meta: MetaElement(l, profileURLs),
extension: l.extension,
status: l.status,
operationalStatus: l.operationalStatus,
name: l.name,
alias: l.alias,
description: l.description,
mode: l.mode,
type: l.type,
telecom: l.telecom,
address: LocationAddress(l.address),
physicalType: l.physicalType,
position: LocationPosition(l.position),
managingOrganization: l.managingOrganization,
partOf: l.partOf,
hoursOfOperation: LocationHoursOfOperation(l.hoursOfOperation),
availabilityExceptions: l.availabilityExceptions,
endpoint: l.endpoint
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="75"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="LocationAddress"/>
</extension>
<extension url="statement">
<valueString
value="define function LocationAddress(address FHIR.Address):
address a
return FHIR.Address{
use: a.use,
type: a.type,
text: a.text,
line: a.line,
city: a.city,
district: a.district,
state: a.state,
postalCode: a.postalCode,
country: a.country,
period: a.period
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="76"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="LocationPosition"/>
</extension>
<extension url="statement">
<valueString
value="define function LocationPosition(position FHIR.Location.Position):
position p
return FHIR.Location.Position{
longitude: p.longitude,
latitude: p.latitude,
altitude: p.altitude
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="77"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="LocationHoursOfOperation"/>
</extension>
<extension url="statement">
<valueString
value="define function LocationHoursOfOperation(hoursOfOperation List<FHIR.Location.HoursOfOperation>):
hoursOfOperation hOO
return FHIR.Location.HoursOfOperation{
daysOfWeek: hOO.daysOfWeek,
allDay: hOO.allDay,
openingTime: hOO.openingTime,
closingTime: hOO.closingTime
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="78"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="ServiceRequestResource"/>
</extension>
<extension url="statement">
<valueString
value="define function ServiceRequestResource(serviceRequest ServiceRequest, profileURLs List<FHIR.canonical>):
serviceRequest sR
return ServiceRequest{
id: FHIR.id {value: 'LCR-' + sR.id},
meta: MetaElement(sR, profileURLs),
extension: sR.extension,
instantiatesCanonical: sR.instantiatesCanonical,
instantiatesUri: sR.instantiatesUri,
basedOn: sR.basedOn,
replaces: sR.replaces,
requisition: sR.requisition,
status: sR.status,
intent: sR.intent,
category: sR.category,
priority: sR.priority,
doNotPerform: sR.doNotPerform,
code: sR.code,
orderDetail: sR.orderDetail,
quantity: sR.quantity,
subject: sR.subject,
encounter: sR.encounter,
occurrence: sR.occurrence,
asNeeded: sR.asNeeded,
authoredOn: sR.authoredOn,
requester: sR.requester,
performerType: sR.performerType,
performer: sR.performer,
locationCode: sR.locationCode,
locationReference: sR.locationReference,
reasonCode: sR.reasonCode,
reasonReference: sR.reasonReference,
insurance: sR.insurance,
supportingInfo: sR.supportingInfo,
specimen: sR.specimen,
bodySite: sR.bodySite,
note: sR.note,
patientInstruction: sR.patientInstruction,
relevantHistory: sR.relevantHistory
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="79"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="PatientResource"/>
</extension>
<extension url="statement">
<valueString
value="define function PatientResource(patient Patient, profileURLs List<FHIR.canonical>):
patient p
return Patient{
id: FHIR.id{value: 'LCR-' + p.id},
meta: MetaElement(p, profileURLs),
extension: GetPatientExtensions(p) union GetIdExtensions(p),
identifier: PatientIdentifier(p.identifier),
active: p.active,
name: PatientName(p.name),
telecom: PatientTelecom(p.telecom),
gender: p.gender,
birthDate: p.birthDate,
deceased: p.deceased,
address: PatientAddress(p.address),
maritalStatus: p.maritalStatus,
multipleBirth: p.multipleBirth,
photo: p.photo,
contact: PatientContact(p.contact),
communication: PatientCommunication(p.communication),
generalPractitioner: p.generalPractitioner,
managingOrganization: p.managingOrganization,
link: PatientLink(p.link)
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="80"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="GetPatientExtensions"/>
</extension>
<extension url="statement">
<valueString
value="define function "GetPatientExtensions"(domainResource DomainResource):
domainResource.extension E
where E.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-race'
or E.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'
or E.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex'
or E.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-genderIdentity'
or E.url = 'http://hl7.org/fhir/StructureDefinition/patient-genderIdentity'
return E"/>
</extension>
<extension url="displaySequence">
<valueInteger value="81"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="GetIdExtensions"/>
</extension>
<extension url="statement">
<valueString
value="define function "GetIdExtensions"(domainResource DomainResource):
domainResource.extension E
return E"/>
</extension>
<extension url="displaySequence">
<valueInteger value="82"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="PatientIdentifier"/>
</extension>
<extension url="statement">
<valueString
value="define function PatientIdentifier(identifier List<FHIR.Identifier>):
identifier i
return FHIR.Identifier{
id: i.id,
extension: i.extension,
use: i.use,
type: i.type,
system: i.system,
value: i.value,
period: i.period,
assigner: i.assigner
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="83"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="PatientName"/>
</extension>
<extension url="statement">
<valueString
value="define function PatientName(name List<FHIR.HumanName>):
name n
return FHIR.HumanName{
id: n.id,
extension: n.extension,
use: n.use,
text: n.text,
family: n.family,
given: n.given,
prefix: n.prefix,
suffix: n.suffix,
period: n.period
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="84"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="PatientTelecom"/>
</extension>
<extension url="statement">
<valueString
value="define function PatientTelecom(telecom List<FHIR.ContactPoint>):
telecom t
return FHIR.ContactPoint{
system: t.system,
value: t.value,
use: t.use,
rank: t.rank,
period: t.period
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="85"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="PatientAddress"/>
</extension>
<extension url="statement">
<valueString
value="define function PatientAddress(address List<FHIR.Address>):
address a
return FHIR.Address{
id: a.id,
extension: a.extension,
use: a.use,
type: a.type,
text: a.text,
line: a.line,
city: a.city,
district: a.district,
state: a.state,
postalCode: a.postalCode,
country: a.country,
period: a.period
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="86"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="PatientContact"/>
</extension>
<extension url="statement">
<valueString
value="define function PatientContact(contact List<FHIR.Patient.Contact>):
contact c
return FHIR.Patient.Contact{
id: c.id,
extension: c.extension,
relationship: c.relationship,
name: c.name,
telecom: c.telecom,
address: c.address,
gender: c.gender,
organization: c.organization,
period: c.period
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="87"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="PatientCommunication"/>
</extension>
<extension url="statement">
<valueString
value="define function PatientCommunication(communication List<FHIR.Patient.Communication>):
communication c
return FHIR.Patient.Communication{
id: c.id,
extension: c.extension,
language: c.language,
preferred: c.preferred
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="88"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="PatientLink"/>
</extension>
<extension url="statement">
<valueString
value="define function PatientLink(link List<FHIR.Patient.Link>):
link l
return FHIR.Patient.Link{
id: l.id,
extension: l.extension,
modifierExtension: l.modifierExtension,
other: l.other,
type: l.type
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="89"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="MedicationResource"/>
</extension>
<extension url="statement">
<valueString
value="define function MedicationResource(medication Medication, profileURLs List<FHIR.canonical>):
medication m
return Medication{
id: FHIR.id {value: 'LCR-' + m.id},
meta: MetaElement(m, profileURLs),
extension: m.extension,
code: m.code,
status: m.status,
manufacturer: m.manufacturer,
form: m.form,
amount: m.amount,
ingredient: MedicationIngredient(m.ingredient),
batch: MedicationBatch(m.batch)
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="90"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="MedicationIngredient"/>
</extension>
<extension url="statement">
<valueString
value="define function MedicationIngredient(ingredient List<FHIR.Medication.Ingredient>):
ingredient i
return FHIR.Medication.Ingredient{
item: i.item,
strength: i.strength
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="91"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="MedicationBatch"/>
</extension>
<extension url="statement">
<valueString
value="define function MedicationBatch(batch FHIR.Medication.Batch):
batch b
return FHIR.Medication.Batch{
lotNumber: b.lotNumber,
expirationDate: b.expirationDate
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="92"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="GetMedicationFrom"/>
</extension>
<extension url="statement">
<valueString
value="//
//Functions
//
define function "GetMedicationFrom"(choice Choice<FHIR.CodeableConcept, FHIR.Reference>):
case
when choice is FHIR.Reference then
GetMedication(choice as FHIR.Reference)
else
null
end"/>
</extension>
<extension url="displaySequence">
<valueInteger value="93"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="NHSNdQMAcuteCareHospitalInitialPopulation"/>
</extension>
<extension url="name">
<valueString value="GetMedication"/>
</extension>
<extension url="statement">
<valueString
value="define function "GetMedication"(reference Reference ):
singleton from (
[Medication] Medications
where Medications.id = Global.GetId(reference.reference)
)"/>
</extension>
<extension url="displaySequence">
<valueInteger value="94"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="SpecimenResource"/>
</extension>
<extension url="statement">
<valueString
value="define function SpecimenResource(specimen Specimen, profileURLs List<FHIR.canonical>):
specimen s
return Specimen{
id: FHIR.id {value: 'LCR-' + s.id},
meta: MetaElement(s, profileURLs),
extension: s.extension,
identifier: s.identifier,
accessionIdentifier: s.accessionIdentifier,
status: s.status,
type: s.type,
subject: s.subject,
receivedTime: s.receivedTime,
parent: s.parent,
request: s.request,
collection: SpecimenCollection(s.collection),
processing: SpecimenProcessing(s.processing),
container: SpecimenContainer(s.container),
condition: s.condition,
note: s.note
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="95"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="SpecimenCollection"/>
</extension>
<extension url="statement">
<valueString
value="define function SpecimenCollection(collection FHIR.Specimen.Collection):
collection c
return FHIR.Specimen.Collection{
collector: c.collector,
collected: c.collected,
//duration: c.duration, Does not parse for some reason? Need to bring up with SmileCDR
quantity: c.quantity,
method: c.method,
bodySite: c.bodySite,
fastingStatus: c.fastingStatus
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="96"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="SpecimenProcessing"/>
</extension>
<extension url="statement">
<valueString
value="define function SpecimenProcessing(processing List<FHIR.Specimen.Processing>):
processing p
return FHIR.Specimen.Processing{
description: p.description,
procedure: p.procedure,
additive: p.additive,
time: p.time
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="97"/>
</extension>
</extension>
<extension
url="http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-logicDefinition">
<extension url="libraryName">
<valueString value="SharedResourceCreation"/>
</extension>
<extension url="name">
<valueString value="SpecimenContainer"/>
</extension>
<extension url="statement">
<valueString
value="define function SpecimenContainer(container List<FHIR.Specimen.Container>):
container c
return FHIR.Specimen.Container{
description: c.description,
type: c.type,
capacity: c.capacity,
specimenQuantity: c.specimenQuantity,
additive: c.additive
}"/>
</extension>
<extension url="displaySequence">
<valueInteger value="98"/>
</extension>
</extension>
<url
value="http://hl7.org/fhir/us/nhsn-dqm/Library/effective-data-requirements"/>
<identifier>
<system value="urn:ietf:rfc:3986"/>
<value value="urn:oid:2.25.316204395913842452684237438142819890580.28.3"/>
</identifier>
<version value="1.0.0-ballot"/>
<name value="EffectiveDataRequirements"/>
<status value="active"/>
<type>
<coding>
<system value="http://terminology.hl7.org/CodeSystem/library-type"/>
<code value="module-definition"/>
</coding>
</type>
<date value="2024-12-05T19:46:44+00:00"/>
<publisher value="HL7 International / Public Health"/>
<contact>
<name value="HL7 International / Public Health"/>
<telecom>
<system value="url"/>
<value value="http://www.hl7.org/Special/committees/pher"/>
</telecom>
</contact>
<jurisdiction>
<coding>
<system value="urn:iso:std:iso:3166"/>
<code value="US"/>
<display value="United States of America"/>
</coding>
</jurisdiction>
<relatedArtifact>
<type value="depends-on"/>
<display value="Library FHIRHelpers"/>
<resource
value="http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1"/>
</relatedArtifact>
<relatedArtifact>
<type value="depends-on"/>
<display value="Library Global"/>
<resource
value="http://hl7.org/fhir/us/cqfmeasures/Library/MATGlobalCommonFunctions"/>
</relatedArtifact>
<relatedArtifact>
<type value="depends-on"/>
<display value="Code system ActCode"/>
<resource value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
</relatedArtifact>
<relatedArtifact>
<type value="depends-on"/>
<display value="Code system Observation Category"/>
<resource
value="http://terminology.hl7.org/CodeSystem/observation-category"/>
</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 V2-0074"/>
<resource value="http://terminology.hl7.org/CodeSystem/v2-0074"/>
</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 Emergency Department Visit"/>
<resource
value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"/>
</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 Inpatient, Emergency, and Observation Locations"/>
<resource
value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.265"/>
</relatedArtifact>
<parameter>
<name value="Measurement Period"/>
<use value="in"/>
<min value="0"/>
<max value="1"/>
<type value="Period"/>
</parameter>
<parameter>
<name value="SDE Encounter"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="Encounter"/>
</parameter>
<parameter>
<name value="SDE Medication Request"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="MedicationRequest"/>
</parameter>
<parameter>
<name value="SDE Coverage"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="Coverage"/>
</parameter>
<parameter>
<name value="SDE Procedure"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="Procedure"/>
</parameter>
<parameter>
<name value="SDE Device"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="Device"/>
</parameter>
<parameter>
<name value="SDE Observation Lab Category"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="Observation"/>
</parameter>
<parameter>
<name value="SDE Observation Vital Signs Category"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="Observation"/>
</parameter>
<parameter>
<name value="SDE DiagnosticReport Others"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="DiagnosticReport"/>
</parameter>
<parameter>
<name value="SDE Medication Administration"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="MedicationAdministration"/>
</parameter>
<parameter>
<name value="SDE Observation Category"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="Observation"/>
</parameter>
<parameter>
<name value="SDE Condition"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="Condition"/>
</parameter>
<parameter>
<name value="Initial Population"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="Encounter"/>
</parameter>
<parameter>
<name value="SDE DiagnosticReport Lab"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="DiagnosticReport"/>
</parameter>
<parameter>
<name value="SDE Location"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="Location"/>
</parameter>
<parameter>
<name value="SDE Service Request"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="ServiceRequest"/>
</parameter>
<parameter>
<name value="SDE DiagnosticReport Note"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="DiagnosticReport"/>
</parameter>
<parameter>
<name value="SDE Minimal Patient"/>
<use value="out"/>
<min value="0"/>
<max value="1"/>
<type value="Patient"/>
</parameter>
<parameter>
<name value="SDE Medication"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="Medication"/>
</parameter>
<parameter>
<name value="SDE Specimen"/>
<use value="out"/>
<min value="0"/>
<max value="*"/>
<type value="Specimen"/>
</parameter>
<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="extension"/>
<mustSupport value="identifier"/>
<mustSupport value="statusHistory"/>
<mustSupport value="class"/>
<mustSupport value="classHistory"/>
<mustSupport value="serviceType"/>
<mustSupport value="priority"/>
<mustSupport value="subject"/>
<mustSupport value="participant"/>
<mustSupport value="length"/>
<mustSupport value="reasonCode"/>
<mustSupport value="reasonReference"/>
<mustSupport value="diagnosis"/>
<mustSupport value="account"/>
<mustSupport value="hospitalization"/>
<mustSupport value="location"/>
<mustSupport value="partOf"/>
<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="type"/>
<mustSupport value="status"/>
<mustSupport value="period"/>
<mustSupport value="id"/>
<mustSupport value="extension"/>
<mustSupport value="identifier"/>
<mustSupport value="statusHistory"/>
<mustSupport value="class"/>
<mustSupport value="classHistory"/>
<mustSupport value="serviceType"/>
<mustSupport value="priority"/>
<mustSupport value="subject"/>
<mustSupport value="participant"/>
<mustSupport value="length"/>
<mustSupport value="reasonCode"/>
<mustSupport value="reasonReference"/>
<mustSupport value="diagnosis"/>
<mustSupport value="account"/>
<mustSupport value="hospitalization"/>
<mustSupport value="location"/>
<mustSupport value="partOf"/>
<codeFilter>
<path value="type"/>
<valueSet
value="http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292"/>
</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="extension"/>
<mustSupport value="identifier"/>
<mustSupport value="statusHistory"/>
<mustSupport value="class"/>
<mustSupport value="classHistory"/>
<mustSupport value="serviceType"/>
<mustSupport value="priority"/>
<mustSupport value="subject"/>
<mustSupport value="participant"/>
<mustSupport value="length"/>
<mustSupport value="reasonCode"/>
<mustSupport value="reasonReference"/>
<mustSupport value="diagnosis"/>
<mustSupport value="account"/>
<mustSupport value="hospitalization"/>
<mustSupport value="location"/>
<mustSupport value="partOf"/>
<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="extension"/>
<mustSupport value="identifier"/>
<mustSupport value="statusHistory"/>
<mustSupport value="classHistory"/>
<mustSupport value="type"/>
<mustSupport value="serviceType"/>
<mustSupport value="priority"/>
<mustSupport value="subject"/>
<mustSupport value="participant"/>
<mustSupport value="length"/>
<mustSupport value="reasonCode"/>
<mustSupport value="reasonReference"/>
<mustSupport value="diagnosis"/>
<mustSupport value="account"/>
<mustSupport value="hospitalization"/>
<mustSupport value="location"/>
<mustSupport value="partOf"/>
<codeFilter>
<path value="class"/>
<code>
<system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
<code value="EMER"/>
<display value="emergency"/>
</code>
<code>
<system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
<code value="ACUTE"/>
<display value="inpatient acute"/>
</code>
<code>
<system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
<code value="IMP"/>
<display value="inpatient encounter"/>
</code>
<code>
<system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
<code value="NONAC"/>
<display value="inpatient non-acute"/>
</code>
<code>
<system value="http://terminology.hl7.org/CodeSystem/v3-ActCode"/>
<code value="SS"/>
<display value="short stay"/>
</code>
</codeFilter>
</dataRequirement>
<dataRequirement>
<type value="Encounter"/>
<profile value="http://hl7.org/fhir/StructureDefinition/Encounter"/>
<mustSupport value="status"/>
<mustSupport value="period"/>
<mustSupport value="id"/>
<mustSupport value="extension"/>
<mustSupport value="identifier"/>
<mustSupport value="statusHistory"/>
<mustSupport value="class"/>
<mustSupport value="classHistory"/>
<mustSupport value="type"/>
<mustSupport value="serviceType"/>
<mustSupport value="priority"/>
<mustSupport value="subject"/>
<mustSupport value="participant"/>
<mustSupport value="length"/>
<mustSupport value="reasonCode"/>
<mustSupport value="reasonReference"/>
<mustSupport value="diagnosis"/>
<mustSupport value="account"/>
<mustSupport value="hospitalization"/>
<mustSupport value="location"/>
<mustSupport value="partOf"/>
</dataRequirement>
<dataRequirement>
<type value="Location"/>
<profile value="http://hl7.org/fhir/StructureDefinition/Location"/>
<mustSupport value="id"/>
<mustSupport value="extension"/>
<mustSupport value="status"/>
<mustSupport value="operationalStatus"/>
<mustSupport value="name"/>
<mustSupport value="alias"/>
<mustSupport value="description"/>
<mustSupport value="mode"/>
<mustSupport value="type"/>
<mustSupport value="telecom"/>
<mustSupport value="address"/>
<mustSupport value="physicalType"/>
<mustSupport value="position"/>
<mustSupport value="managingOrganization"/>
<mustSupport value="partOf"/>
<mustSupport value="hoursOfOperation"/>
<mustSupport value="availabilityExceptions"/>
<mustSupport value="endpoint"/>
</dataRequirement>
<dataRequirement>
<type value="MedicationRequest"/>
<profile
value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/>
<mustSupport value="authoredOn"/>
<mustSupport value="id"/>
<mustSupport value="extension"/>
<mustSupport value="status"/>
<mustSupport value="statusReason"/>
<mustSupport value="intent"/>
<mustSupport value="category"/>
<mustSupport value="priority"/>
<mustSupport value="doNotPerform"/>
<mustSupport value="reported"/>
<mustSupport value="medication"/>
<mustSupport value="subject"/>
<mustSupport value="encounter"/>
<mustSupport value="requester"/>
<mustSupport value="recorder"/>
<mustSupport value="reasonCode"/>
<mustSupport value="reasonReference"/>
<mustSupport value="instantiatesCanonical"/>
<mustSupport value="instantiatesUri"/>
<mustSupport value="courseOfTherapyType"/>
<mustSupport value="dosageInstruction"/>
</dataRequirement>
<dataRequirement>
<type value="Coverage"/>
<profile value="http://hl7.org/fhir/StructureDefinition/Coverage"/>
<mustSupport value="period"/>
<mustSupport value="id"/>
<mustSupport value="extension"/>
<mustSupport value="status"/>
<mustSupport value="type"/>
<mustSupport value="policyHolder"/>
<mustSupport value="subscriber"/>
<mustSupport value="subscriberId"/>
<mustSupport value="beneficiary"/>
<mustSupport value="dependent"/>
<mustSupport value="relationship"/>
<mustSupport value="payor"/>
<mustSupport value="class"/>
<mustSupport value="order"/>
<mustSupport value="network"/>
<mustSupport value="subrogation"/>
<mustSupport value="contract"/>
</dataRequirement>
<dataRequirement>
<type value="Procedure"/>
<profile value="http://hl7.org/fhir/StructureDefinition/Procedure"/>
<mustSupport value="performed"/>
<mustSupport value="id"/>
<mustSupport value="extension"/>
<mustSupport value="instantiatesCanonical"/>
<mustSupport value="instantiatesUri"/>
<mustSupport value="basedOn"/>
<mustSupport value="partOf"/>
<mustSupport value="status"/>
<mustSupport value="statusReason"/>
<mustSupport value="category"/>
<mustSupport value="code"/>
<mustSupport value="subject"/>
<mustSupport value="encounter"/>
<mustSupport value="recorder"/>
<mustSupport value="asserter"/>
<mustSupport value="performer"/>
<mustSupport value="location"/>
<mustSupport value="reasonCode"/>
<mustSupport value="reasonReference"/>
<mustSupport value="bodySite"/>
<mustSupport value="outcome"/>
<mustSupport value="report"/>
<mustSupport value="complication"/>
<mustSupport value="complicationDetail"/>
<mustSupport value="followUp"/>
<mustSupport value="note"/>
<mustSupport value="focalDevice"/>
<mustSupport value="usedReference"/>
<mustSupport value="usedCode"/>
</dataRequirement>
<dataRequirement>
<type value="Device"/>
<profile value="http://hl7.org/fhir/StructureDefinition/Device"/>
<mustSupport value="id"/>
<mustSupport value="extension"/>
<mustSupport value="definition"/>
<mustSupport value="udiCarrier"/>
<mustSupport value="status"/>
<mustSupport value="statusReason"/>
<mustSupport value="distinctIdentifier"/>
<mustSupport value="manufacturer"/>
<mustSupport value="manufactureDate"/>
<mustSupport value="expirationDate"/>
<mustSupport value="lotNumber"/>
<mustSupport value="serialNumber"/>
<mustSupport value="deviceName"/>
<mustSupport value="modelNumber"/>
<mustSupport value="partNumber"/>
<mustSupport value="type"/>
<mustSupport value="specialization"/>
<mustSupport value="version"/>
<mustSupport value="property"/>
<mustSupport value="patient"/>
<mustSupport value="owner"/>
<mustSupport value="contact"/>
<mustSupport value="location"/>
<mustSupport value="url"/>
<mustSupport value="note"/>
<mustSupport value="safety"/>
<mustSupport value="parent"/>
</dataRequirement>
<dataRequirement>
<type value="Observation"/>
<profile value="http://hl7.org/fhir/StructureDefinition/Observation"/>
<mustSupport value="id"/>
<mustSupport value="extension"/>
<mustSupport value="basedOn"/>
<mustSupport value="partOf"/>
<mustSupport value="status"/>
<mustSupport value="category"/>
<mustSupport value="code"/>
<mustSupport value="subject"/>
<mustSupport value="focus"/>
<mustSupport value="encounter"/>
<mustSupport value="effective"/>
<mustSupport value="issued"/>
<mustSupport value="performer"/>
<mustSupport value="value"/>
<mustSupport value="dataAbsentReason"/>
<mustSupport value="interpretation"/>
<mustSupport value="note"/>
<mustSupport value="bodySite"/>
<mustSupport value="method"/>
<mustSupport value="specimen"/>
<mustSupport value="device"/>
<mustSupport value="referenceRange"/>
<mustSupport value="hasMember"/>
<mustSupport value="derivedFrom"/>
<mustSupport value="component"/>
</dataRequirement>
<dataRequirement>
<type value="DiagnosticReport"/>
<profile
value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport"/>
<mustSupport value="category"/>
<mustSupport value="effective"/>
<mustSupport value="id"/>
<mustSupport value="extension"/>
<mustSupport value="basedOn"/>
<mustSupport value="status"/>
<mustSupport value="code"/>
<mustSupport value="subject"/>
<mustSupport value="encounter"/>
<mustSupport value="issued"/>
<mustSupport value="performer"/>
<mustSupport value="resultsInterpreter"/>
<mustSupport value="specimen"/>
<mustSupport value="result"/>
<mustSupport value="conclusion"/>
<mustSupport value="conclusionCode"/>
</dataRequirement>
<dataRequirement>
<type value="MedicationAdministration"/>
<profile
value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/>
<mustSupport value="effective"/>
<mustSupport value="id"/>
<mustSupport value="extension"/>
<mustSupport value="instantiates"/>
<mustSupport value="partOf"/>
<mustSupport value="status"/>
<mustSupport value="statusReason"/>
<mustSupport value="category"/>
<mustSupport value="medication"/>
<mustSupport value="subject"/>
<mustSupport value="context"/>
<mustSupport value="supportingInformation"/>
<mustSupport value="performer"/>
<mustSupport value="reasonCode"/>
<mustSupport value="reasonReference"/>
<mustSupport value="request"/>
<mustSupport value="device"/>
<mustSupport value="note"/>
<mustSupport value="dosage"/>
<mustSupport value="eventHistory"/>
</dataRequirement>
<dataRequirement>
<type value="Condition"/>
<profile value="http://hl7.org/fhir/StructureDefinition/Condition"/>
<mustSupport value="id"/>
<mustSupport value="extension"/>
<mustSupport value="clinicalStatus"/>
<mustSupport value="verificationStatus"/>
<mustSupport value="category"/>
<mustSupport value="severity"/>
<mustSupport value="code"/>
<mustSupport value="bodySite"/>
<mustSupport value="subject"/>
<mustSupport value="encounter"/>
<mustSupport value="onset"/>
<mustSupport value="abatement"/>
<mustSupport value="recordedDate"/>
<mustSupport value="stage"/>
<mustSupport value="evidence"/>
<mustSupport value="note"/>
</dataRequirement>
<dataRequirement>
<type value="ServiceRequest"/>
<profile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
<mustSupport value="authoredOn"/>
<mustSupport value="id"/>
<mustSupport value="extension"/>
<mustSupport value="instantiatesCanonical"/>
<mustSupport value="instantiatesUri"/>
<mustSupport value="basedOn"/>
<mustSupport value="replaces"/>
<mustSupport value="requisition"/>
<mustSupport value="status"/>
<mustSupport value="intent"/>
<mustSupport value="category"/>
<mustSupport value="priority"/>
<mustSupport value="doNotPerform"/>
<mustSupport value="code"/>
<mustSupport value="orderDetail"/>
<mustSupport value="quantity"/>
<mustSupport value="subject"/>
<mustSupport value="encounter"/>
<mustSupport value="occurrence"/>
<mustSupport value="asNeeded"/>
<mustSupport value="requester"/>
<mustSupport value="performerType"/>
<mustSupport value="performer"/>
<mustSupport value="locationCode"/>
<mustSupport value="locationReference"/>
<mustSupport value="reasonCode"/>
<mustSupport value="reasonReference"/>
<mustSupport value="insurance"/>
<mustSupport value="supportingInfo"/>
<mustSupport value="specimen"/>
<mustSupport value="bodySite"/>
<mustSupport value="note"/>
<mustSupport value="patientInstruction"/>
<mustSupport value="relevantHistory"/>
</dataRequirement>
<dataRequirement>
<type value="Patient"/>
<profile value="http://hl7.org/fhir/StructureDefinition/Patient"/>
<mustSupport value="id"/>
<mustSupport value="identifier"/>
<mustSupport value="active"/>
<mustSupport value="name"/>
<mustSupport value="telecom"/>
<mustSupport value="gender"/>
<mustSupport value="birthDate"/>
<mustSupport value="deceased"/>
<mustSupport value="address"/>
<mustSupport value="maritalStatus"/>
<mustSupport value="multipleBirth"/>
<mustSupport value="photo"/>
<mustSupport value="contact"/>
<mustSupport value="communication"/>
<mustSupport value="generalPractitioner"/>
<mustSupport value="managingOrganization"/>
<mustSupport value="link"/>
</dataRequirement>
<dataRequirement>
<type value="Medication"/>
<profile value="http://hl7.org/fhir/StructureDefinition/Medication"/>
<mustSupport value="id"/>
<mustSupport value="extension"/>
<mustSupport value="code"/>
<mustSupport value="status"/>
<mustSupport value="manufacturer"/>
<mustSupport value="form"/>
<mustSupport value="amount"/>
<mustSupport value="ingredient"/>
<mustSupport value="batch"/>
</dataRequirement>
<dataRequirement>
<type value="Specimen"/>
<profile value="http://hl7.org/fhir/StructureDefinition/Specimen"/>
<mustSupport value="collection"/>
<mustSupport value="collection.collected"/>
<mustSupport value="id"/>
<mustSupport value="extension"/>
<mustSupport value="identifier"/>
<mustSupport value="accessionIdentifier"/>
<mustSupport value="status"/>
<mustSupport value="type"/>
<mustSupport value="subject"/>
<mustSupport value="receivedTime"/>
<mustSupport value="parent"/>
<mustSupport value="request"/>
<mustSupport value="processing"/>
<mustSupport value="container"/>
<mustSupport value="condition"/>
<mustSupport value="note"/>
</dataRequirement>
</Library>