Knowledge Artifact Metadata Name (machine-readable) BedCapacityMeasure Title (human-readable) Bed Capacity Status Draft Experimental true Description Bed Capacity Measure includes counts of specific bed types within the context of a given healthcare context or setting. Measure Steward HL7 International / Public Health Steward Contact Details HL7 International / Public Health: http://www.hl7.org/Special/committees/pher Measure Metadata Version Number 1.0.0 Measure Scoring Cohort Population Basis boolean Measure Population Criteria Initial Population ID: d2e4301-bed-cap Description: No description provided Logic Definition: Bed Capacity Initial Population Measure Population Criteria Initial Population ID: d2e4301-all-beds Description: No description provided Logic Definition: All Beds Initial Population Measure Population Criteria Initial Population ID: d2e4455 Description: No description provided Logic Definition: Adult Beds Initial Population Measure Population Criteria Initial Population ID: d2e4610 Description: No description provided Logic Definition: Adult ICU Beds Initial Population Measure Population Criteria Initial Population ID: d2e4764 Description: No description provided Logic Definition: Adult ICULOC Beds Initial Population Measure Population Criteria Initial Population ID: d2e4918 Description: No description provided Logic Definition: Adult NonICU Beds Initial Population Measure Population Criteria Initial Population ID: d2e5073 Description: No description provided Logic Definition: Adult PCU Beds Initial Population Measure Population Criteria Initial Population ID: d2e5227 Description: No description provided Logic Definition: Adult MTMS Beds Initial Population Measure Population Criteria Initial Population ID: d2e5381 Description: No description provided Logic Definition: Adult Obs Beds Initial Population Measure Population Criteria Initial Population ID: d2e5536 Description: No description provided Logic Definition: Peds Total Beds Initial Population Measure Population Criteria Initial Population ID: d2e5690 Description: No description provided Logic Definition: Peds ICU Beds Initial Population Measure Population Criteria Initial Population ID: d2e5844 Description: No description provided Logic Definition: Peds ICULOC Beds Initial Population Measure Population Criteria Initial Population ID: d2e5999 Description: No description provided Logic Definition: Peds NonICU Beds Initial Population Measure Population Criteria Initial Population ID: d2e6153 Description: No description provided Logic Definition: Peds PCU Beds Initial Population Measure Population Criteria Initial Population ID: d2e6307 Description: No description provided Logic Definition: Peds MTMS Beds Initial Population Measure Population Criteria Initial Population ID: d2e6462 Description: No description provided Logic Definition: Peds Obs Beds Initial Population Measure Population Criteria Initial Population ID: d2e6616 Description: No description provided Logic Definition: Specialty Beds Initial Population Measure Population Criteria Initial Population ID: d2e6770 Description: No description provided Logic Definition: Specialty NonCrib Beds Initial Population Measure Population Criteria Initial Population ID: d2e6925 Description: No description provided Logic Definition: OB Beds Initial Population Measure Population Criteria Initial Population ID: d2e7079 Description: No description provided Logic Definition: NICU Beds Initial Population Measure Population Criteria Initial Population ID: d2e7233 Description: No description provided Logic Definition: NICU4 Beds Initial Population Measure Population Criteria Initial Population ID: d2e7388 Description: No description provided Logic Definition: NICU3Plus Beds Initial Population Measure Population Criteria Initial Population ID: d2e7542 Description: No description provided Logic Definition: NICU3 Beds Initial Population Measure Population Criteria Initial Population ID: d2e7696 Description: No description provided Logic Definition: NICU2 Beds Initial Population Measure Population Criteria Initial Population ID: d2e7851 Description: No description provided Logic Definition: NICU1 Beds Initial Population Measure Population Criteria Initial Population ID: d2e8005 Description: No description provided Logic Definition: Nursery Beds Initial Population Measure Population Criteria Initial Population ID: d2e8159 Description: No description provided Logic Definition: Adult Psych Beds Initial Population Measure Population Criteria Initial Population ID: d2e8314 Description: No description provided Logic Definition: Peds Psych Beds Initial Population Measure Population Criteria Initial Population ID: d2e8468 Description: No description provided Logic Definition: Rehab Beds Initial Population Measure Population Criteria Initial Population ID: d2e8622 Description: No description provided Logic Definition: Surge Active Total Beds Initial Population Measure Population Criteria Initial Population ID: d2e8777 Description: No description provided Logic Definition: Surge Inactive Total Beds Initial Population Measure Population Criteria Initial Population ID: d2e8931-surge-active Description: No description provided Logic Definition: Surge Active ICU Beds Initial Population Measure Population Criteria Initial Population ID: d2e8931-surge-inactive Description: No description provided Logic Definition: Surge Inactive ICU Beds Initial Population Measure Population Criteria Initial Population ID: d2e9240 Description: No description provided Logic Definition: Surge Active NonICU Beds Initial Population Measure Population Criteria Initial Population ID: d2e9394 Description: No description provided Logic Definition: Surge Inactive NonICU Beds Initial Population Measure Population Criteria Initial Population ID: d2e9548 Description: No description provided Logic Definition: Burn Beds Initial Population Measure Population Criteria Initial Population ID: d2e9703 Description: No description provided Logic Definition: Negative Pressure Beds Initial Population Measure Population Criteria Initial Population ID: d2e9857 Description: No description provided Logic Definition: Adult ED Initial Population Measure Population Criteria Initial Population ID: d2e10011 Description: No description provided Logic Definition: Peds ED Initial Population Measure Population Criteria Initial Population ID: d2e10166 Description: No description provided Logic Definition: Total ED Initial Population Measure Logic Primary Library BedCapacityMeasure Dependency Description: FHIR model information Resource: http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1 Canonical URL: http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1 Dependency Description: Library FHIRHelpers Resource: http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1 Canonical URL: http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1 Dependency Description: Code system LocationPhysicalType Resource: Location type Canonical URL: http://terminology.hl7.org/CodeSystem/location-physical-type Dependency Description: Code system HealthcareCapacity Resource: Healthcare Bed Capacity Reporting Code System Canonical URL: http://hl7.org/fhir/us/safr/CodeSystem/us-safr-bed-capacity-example-codes Dependency Description: Value set Emergency Department Visit Resource: Emergency Department Visit Canonical URL: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292 Direct Reference Code Display: Bed Code: bd System: http://terminology.hl7.org/CodeSystem/location-physical-type Direct Reference Code Display: Hospital Code: HOSP System: http://hl7.org/fhir/us/safr/CodeSystem/us-safr-bed-capacity-example-codes Direct Reference Code Display: Other facility-within-facility or subunit Code: OTH System: http://hl7.org/fhir/us/safr/CodeSystem/us-safr-bed-capacity-example-codes Direct Reference Code Display: Inpatient Rehabilitation Code: IRF System: http://hl7.org/fhir/us/safr/CodeSystem/us-safr-bed-capacity-example-codes Direct Reference Code Display: Inpatient Psychiatric Code: IPF System: http://hl7.org/fhir/us/safr/CodeSystem/us-safr-bed-capacity-example-codes Direct Reference Code Display: Children's or Pediatric Code: CHLD System: http://hl7.org/fhir/us/safr/CodeSystem/us-safr-bed-capacity-example-codes Direct Reference Code Display: Pediatric Code: PEDS System: http://hl7.org/fhir/us/safr/CodeSystem/us-safr-bed-capacity-example-codes Parameter Name: Measurement Period Use: In Min Cardinality: 0 Max Cardinality: 1 Type: Period Parameter Name: Burn Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: NICU Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Surge Active ICU Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Peds Psych Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Specialty Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Surge Active Total Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Peds ED Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Adult ICU Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Adult MTMS Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: NICU4 Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Rehab Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Adult NonICU Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Surge Inactive ICU Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Adult Obs Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Surge Inactive NonICU Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Peds Total Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Peds MTMS Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Adult ED Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Surge Inactive Total Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Negative Pressure Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Peds Obs Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Bed Capacity Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: NICU1 Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Peds ICULOC Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Total ED Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: All Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Adult Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: NICU2 Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Nursery Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Adult PCU Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Peds PCU Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Peds ICU Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Adult Psych Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Specialty NonCrib Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Adult ICULOC Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: NICU3Plus Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Peds NonICU Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: Surge Active NonICU Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: OB Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Parameter Name: NICU3 Beds Initial Population Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: boolean Measure Logic Data Requirements Data Requirement Type: Encounter Profile(s): Encounter Data Requirement Type: Encounter Profile(s): Encounter Must Support Elements: period Data Requirement Type: Location Profile(s): Location Data Requirement Type: Encounter Profile(s): Encounter Must Support Elements: type, period Code Filter(s): Path: type ValueSet: Emergency Department Visit Measure Logic Definitions Logic Definition Library Name: BedCapacityMeasure define "IsBedLocation": Location.physicalType ~ "Bed" Logic Definition Library Name: BedCapacityMeasure define "Encounters": [Encounter] Logic Definition Library Name: BedCapacityMeasure define "EncounterCheck": exists("Encounters" Encounters where Encounters.period overlaps "Measurement Period") Logic Definition Library Name: BedCapacityMeasure define "LocationIsHOSP": exists( Location.type types where types ~ "HOSP" ) Logic Definition Library Name: BedCapacityMeasure define "LocationIsOTH": exists( Location.type types where types ~ "OTH" ) Logic Definition Library Name: BedCapacityMeasure define "Burn Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "LocationIsIRF": exists( Location.type types where types ~ "IRF" ) Logic Definition Library Name: BedCapacityMeasure define "NICU Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIRF and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "Surge Active ICU Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "LocationIsIPF": exists( Location.type types where types ~ "IPF" ) Logic Definition Library Name: BedCapacityMeasure define "LocationIsCHLD": exists( Location.type types where types ~ "CHLD" ) Logic Definition Library Name: BedCapacityMeasure define "LocationIsPEDS": exists( Location.type types where types ~ "PEDS" ) Logic Definition Library Name: BedCapacityMeasure define "Peds Psych Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIPF and (LocationIsCHLD or LocationIsPEDS) and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "Specialty Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "Surge Active Total Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and (LocationIsCHLD or LocationIsPEDS) and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "Peds ED Initial Population": IsBedLocation and exists( [Encounter: "Emergency Department Visit"] EDVisit where EDVisit.period overlaps "Measurement Period" ) and (LocationIsCHLD or LocationIsPEDS) Logic Definition Library Name: BedCapacityMeasure define "Adult ICU Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP Logic Definition Library Name: BedCapacityMeasure define "Adult MTMS Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIRF and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "NICU4 Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIRF and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "Rehab Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsIRF Logic Definition Library Name: BedCapacityMeasure define "Adult NonICU Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "Surge Inactive ICU Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "Adult Obs Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "Surge Inactive NonICU Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and (LocationIsCHLD or LocationIsPEDS) Logic Definition Library Name: BedCapacityMeasure define "Peds Total Beds Initial Population": IsBedLocation and EncounterCheck and (LocationIsCHLD or LocationIsPEDS) Logic Definition Library Name: BedCapacityMeasure define "Peds MTMS Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIRF and (LocationIsCHLD or LocationIsPEDS) and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "Adult ED Initial Population": IsBedLocation and exists( [Encounter: "Emergency Department Visit"] EDVisit where EDVisit.period overlaps "Measurement Period" ) and LocationIsHOSP and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "Surge Inactive Total Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and (LocationIsCHLD or LocationIsPEDS) and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "Negative Pressure Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP Logic Definition Library Name: BedCapacityMeasure define "Peds Obs Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIRF and (LocationIsCHLD or LocationIsPEDS) and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "Bed Capacity Initial Population": IsBedLocation Logic Definition Library Name: BedCapacityMeasure define "NICU1 Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIRF and (LocationIsCHLD or LocationIsPEDS) and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "Peds ICULOC Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and (LocationIsCHLD or LocationIsPEDS) and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "Total ED Initial Population": IsBedLocation and exists( [Encounter: "Emergency Department Visit"] EDVisit where EDVisit.period overlaps "Measurement Period" ) and LocationIsHOSP and (LocationIsCHLD or LocationIsPEDS) and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "All Beds Initial Population": IsBedLocation and EncounterCheck Logic Definition Library Name: BedCapacityMeasure define "Adult Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIRF and LocationIsIPF Logic Definition Library Name: BedCapacityMeasure define "NICU2 Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIRF and (LocationIsCHLD or LocationIsPEDS) Logic Definition Library Name: BedCapacityMeasure define "Nursery Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsIRF and (LocationIsCHLD or LocationIsPEDS) Logic Definition Library Name: BedCapacityMeasure define "Adult PCU Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsIPF and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "Peds PCU Beds Initial Population": IsBedLocation and EncounterCheck and (LocationIsCHLD or LocationIsPEDS) and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "Peds ICU Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and (LocationIsCHLD or LocationIsPEDS) Logic Definition Library Name: BedCapacityMeasure define "Adult Psych Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIPF and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "Specialty NonCrib Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIRF and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "Adult ICULOC Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIPF Logic Definition Library Name: BedCapacityMeasure define "NICU3Plus Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIRF and (LocationIsCHLD or LocationIsPEDS) Logic Definition Library Name: BedCapacityMeasure define "Peds NonICU Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsIPF and (LocationIsCHLD or LocationIsPEDS) and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "Surge Active NonICU Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and (LocationIsCHLD or LocationIsPEDS) Logic Definition Library Name: BedCapacityMeasure define "OB Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsIRF and (LocationIsCHLD or LocationIsPEDS) and LocationIsOTH Logic Definition Library Name: BedCapacityMeasure define "NICU3 Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIRF and (LocationIsCHLD or LocationIsPEDS) Logic Definition Library Name: FHIRHelpers 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 } Logic Definition Library Name: FHIRHelpers define function ToCode(coding FHIR.Coding): if coding is null then null else System.Code { code: coding.code.value, system: coding.system.value, version: coding.version.value, display: coding.display.value } Logic Definition Library Name: FHIRHelpers 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] Generated using version 0.4.6 of the sample-content-ig Liquid templates
Other facility-within-facility or subunit
define "IsBedLocation": Location.physicalType ~ "Bed"
define "EncounterCheck": exists("Encounters" Encounters where Encounters.period overlaps "Measurement Period")
define "LocationIsHOSP": exists( Location.type types where types ~ "HOSP" )
define "LocationIsOTH": exists( Location.type types where types ~ "OTH" )
define "Burn Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsOTH
define "LocationIsIRF": exists( Location.type types where types ~ "IRF" )
define "NICU Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIRF and LocationIsOTH
Surge Active ICU Beds Initial Population
define "Surge Active ICU Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsOTH
define "LocationIsIPF": exists( Location.type types where types ~ "IPF" )
define "LocationIsCHLD": exists( Location.type types where types ~ "CHLD" )
define "LocationIsPEDS": exists( Location.type types where types ~ "PEDS" )
define "Peds Psych Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIPF and (LocationIsCHLD or LocationIsPEDS) and LocationIsOTH
define "Specialty Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsOTH
Surge Active Total Beds Initial Population
define "Surge Active Total Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and (LocationIsCHLD or LocationIsPEDS) and LocationIsOTH
define "Peds ED Initial Population": IsBedLocation and exists( [Encounter: "Emergency Department Visit"] EDVisit where EDVisit.period overlaps "Measurement Period" ) and (LocationIsCHLD or LocationIsPEDS)
define "Adult ICU Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP
define "Adult MTMS Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIRF and LocationIsOTH
define "NICU4 Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIRF and LocationIsOTH
define "Rehab Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsIRF
define "Adult NonICU Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsOTH
Surge Inactive ICU Beds Initial Population
define "Surge Inactive ICU Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsOTH
define "Adult Obs Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsOTH
Surge Inactive NonICU Beds Initial Population
define "Surge Inactive NonICU Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and (LocationIsCHLD or LocationIsPEDS)
define "Peds Total Beds Initial Population": IsBedLocation and EncounterCheck and (LocationIsCHLD or LocationIsPEDS)
define "Peds MTMS Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIRF and (LocationIsCHLD or LocationIsPEDS) and LocationIsOTH
define "Adult ED Initial Population": IsBedLocation and exists( [Encounter: "Emergency Department Visit"] EDVisit where EDVisit.period overlaps "Measurement Period" ) and LocationIsHOSP and LocationIsOTH
Surge Inactive Total Beds Initial Population
define "Surge Inactive Total Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and (LocationIsCHLD or LocationIsPEDS) and LocationIsOTH
Negative Pressure Beds Initial Population
define "Negative Pressure Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP
define "Peds Obs Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIRF and (LocationIsCHLD or LocationIsPEDS) and LocationIsOTH
define "Bed Capacity Initial Population": IsBedLocation
define "NICU1 Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIRF and (LocationIsCHLD or LocationIsPEDS) and LocationIsOTH
define "Peds ICULOC Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and (LocationIsCHLD or LocationIsPEDS) and LocationIsOTH
define "Total ED Initial Population": IsBedLocation and exists( [Encounter: "Emergency Department Visit"] EDVisit where EDVisit.period overlaps "Measurement Period" ) and LocationIsHOSP and (LocationIsCHLD or LocationIsPEDS) and LocationIsOTH
define "All Beds Initial Population": IsBedLocation and EncounterCheck
define "Adult Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIRF and LocationIsIPF
define "NICU2 Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIRF and (LocationIsCHLD or LocationIsPEDS)
define "Nursery Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsIRF and (LocationIsCHLD or LocationIsPEDS)
define "Adult PCU Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsIPF and LocationIsOTH
define "Peds PCU Beds Initial Population": IsBedLocation and EncounterCheck and (LocationIsCHLD or LocationIsPEDS) and LocationIsOTH
define "Peds ICU Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and (LocationIsCHLD or LocationIsPEDS)
define "Adult Psych Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIPF and LocationIsOTH
Specialty NonCrib Beds Initial Population
define "Specialty NonCrib Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIRF and LocationIsOTH
define "Adult ICULOC Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIPF
define "NICU3Plus Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIRF and (LocationIsCHLD or LocationIsPEDS)
define "Peds NonICU Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsIPF and (LocationIsCHLD or LocationIsPEDS) and LocationIsOTH
Surge Active NonICU Beds Initial Population
define "Surge Active NonICU Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and (LocationIsCHLD or LocationIsPEDS)
define "OB Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsIRF and (LocationIsCHLD or LocationIsPEDS) and LocationIsOTH
define "NICU3 Beds Initial Population": IsBedLocation and EncounterCheck and LocationIsHOSP and LocationIsIRF and (LocationIsCHLD or LocationIsPEDS)
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 }
define function ToCode(coding FHIR.Coding): if coding is null then null else System.Code { code: coding.code.value, system: coding.system.value, version: coding.version.value, display: coding.display.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]
Bed Capacity Measure includes counts of specific bed types within the context of a given healthcare context or setting.