sde-example-artifact-bundle
type: Bundle
node role: treeRoot
id:
  v: sde-example-artifact-bundle
language:
  v: en
type:
  v: transaction
entry:
  request:
    method:
      v: PUT
    url:
      v: Library/FHIRHelpers
      l: FHIRHelpers
entry:
  request:
    method:
      v: PUT
    url:
      v: Library/FHIRCommon
      l: FHIRCommon
entry:
  request:
    method:
      v: PUT
    url:
      v: Library/MATGlobalCommonFunctionsFHIR4
      l: MATGlobalCommonFunctionsFHIR4
entry:
  request:
    method:
      v: PUT
    url:
      v: Library/SupplementalDataElementsFHIR4
      l: SupplementalDataElementsFHIR4
entry:
  request:
    method:
      v: PUT
    url:
      v: Library/NHSNGlycemicControlHypoglycemicInitialPopulation
      l: NHSNGlycemicControlHypoglycemicInitialPopulation
entry:
  request:
    method:
      v: PUT
    url:
      v: Measure/NHSNGlycemicControlHypoglycemicInitialPopulation
      l: NHSNGlycemicControlHypoglycemicInitialPopulation

urn:…
type: Library
id:
  v: FHIRHelpers
language:
  v: en
text:
  status:
    v: extensions
  div:
    v: Metadata Title FHIR Helpers Version 4.0.1 Experimental true Type Logic Library Library Content CQL Content /*#xD; @author: Bryn Rhodes#xD; @description: This library defines functions to convert between FHIR#xD; data types and CQL system-defined types, as well as functions to support#xD; FHIRPath implementation. For more information, see the FHIRHelpers wiki page:#xD; https://github.com/cqframework/clinical_quality_language/wiki/FHIRHelpers#xD; @allowFluent: true#xD; */#xD; library FHIRHelpers version '4.0.1'#xD; #xD; using FHIR version '4.0.1'#xD; #xD; define function ToInterval(period FHIR.Period):#xD; if period is null then#xD; null#xD; else#xD; if period."start" is null then#xD; Interval(period."start".value, period."end".value]#xD; else#xD; Interval[period."start".value, period."end".value]#xD; #xD; define function ToCalendarUnit(unit System.String):#xD; case unit#xD; when 'ms' then 'millisecond'#xD; when 's' then 'second'#xD; when 'min' then 'minute'#xD; when 'h' then 'hour'#xD; when 'd' then 'day'#xD; when 'wk' then 'week'#xD; when 'mo' then 'month'#xD; when 'a' then 'year'#xD; else unit#xD; end#xD; #xD; define function ToQuantity(quantity FHIR.Quantity):#xD; case#xD; when quantity is null then null#xD; when quantity.value is null then null#xD; when quantity.comparator is not null then#xD; Message(null, true, 'FHIRHelpers.ToQuantity.ComparatorQuantityNotSupported', 'Error', 'FHIR Quantity value has a comparator and cannot be converted to a System.Quantity value.')#xD; when quantity.system is null or quantity.system.value = 'http://unitsofmeasure.org'#xD; or quantity.system.value = 'http://hl7.org/fhirpath/CodeSystem/calendar-units' then#xD; System.Quantity { value: quantity.value.value, unit: ToCalendarUnit(Coalesce(quantity.code.value, quantity.unit.value, '1')) }#xD; else#xD; Message(null, true, 'FHIRHelpers.ToQuantity.InvalidFHIRQuantity', 'Error', 'Invalid FHIR Quantity code: ' & quantity.unit.value & ' (' & quantity.system.value & '|' & quantity.code.val…
url:
  v: http://hl7.org/fhir/Library/FHIRHelpers
  l: FHIRHelpers
version:
  v: 4.0.1
name:
  v: FHIRHelpers
title:
  v: FHIR Helpers
status:
  v: active
experimental:
  v: true
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
      l: library-type
    code:
      v: logic-library
    display:
      v: Logic Library
related artifact:
  type:
    v: depends-on
  display:
    v: FHIR model information
  resource:
    v: http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1
    l: http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo
content:
  content type:
    v: text/cql
content:
  content type:
    v: application/elm+xml
content:
  content type:
    v: application/elm+json

urn:…
type: Library
id:
  v: FHIRCommon
language:
  v: en
text:
  status:
    v: extensions
  div:
    v: Metadata Title FHIRCommon Version 4.0.1 Experimental true Type Logic Library Parameter Name: Patient Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: Patient Data Requirement Type: Patient Profile(s): Patient Library Content CQL Content /*#xD; @author: Bryn Rhodes#xD; @description: Common terminologies and functions used in FHIR-based CQL artifacts#xD; */#xD; library FHIRCommon version '4.0.1'#xD; #xD; using FHIR version '4.0.1'#xD; #xD; include FHIRHelpers version '4.0.1'#xD; #xD; codesystem "LOINC": 'http://loinc.org'#xD; codesystem "SNOMEDCT": 'http://snomed.info/sct'#xD; codesystem "RoleCode": 'http://terminology.hl7.org/CodeSystem/v3-RoleCode'#xD; codesystem "Diagnosis Role": 'http://terminology.hl7.org/CodeSystem/diagnosis-role'#xD; codesystem "RequestIntent": 'http://terminology.hl7.org/CodeSystem/request-intent'#xD; codesystem "MedicationRequestCategory": 'http://terminology.hl7.org/CodeSystem/medicationrequest-category'#xD; codesystem "ConditionClinicalStatusCodes": 'http://terminology.hl7.org/CodeSystem/condition-clinical'#xD; codesystem "ConditionVerificationStatusCodes": 'http://terminology.hl7.org/CodeSystem/condition-ver-status'#xD; codesystem "AllergyIntoleranceClinicalStatusCodes": 'http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical'#xD; codesystem "AllergyIntoleranceVerificationStatusCodes": 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification'#xD; #xD; valueset "Active Condition": 'http://fhir.org/guides/cqf/common/ValueSet/active-condition'#xD; valueset "Inactive Condition": 'http://fhir.org/guides/cqf/common/ValueSet/inactive-condition'#xD; #xD; code "Birthdate": '21112-8' from "LOINC" display 'Birth date'#xD; code "Dead": '419099009' from "SNOMEDCT" display 'Dead'#xD; code "ER": 'ER' from "RoleCode" display 'Emergency room'#xD; code "ICU": 'ICU' from "RoleCode" display 'Intensive care unit'#xD; code "Billing": 'billing' from "Diagnosis Role" display 'Billing'#xD; #xD; // Condition Clinical Status Codes - Cons…
url:
  v: http://fhir.org/guides/cqf/Library/FHIRCommon
  l: FHIRCommon
version:
  v: 4.0.1
name:
  v: FHIRCommon
title:
  v: FHIRCommon
status:
  v: active
experimental:
  v: true
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
      l: library-type
    code:
      v: logic-library
    display:
      v: Logic Library
related artifact:
  type:
    v: depends-on
  display:
    v: FHIR model information
  resource:
    v: http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1
    l: http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo
related artifact:
  type:
    v: depends-on
  display:
    v: Library FHIRHelpers
  resource:
    v: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1
    l: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers
related artifact:
  type:
    v: depends-on
  display:
    v: Code system LOINC
  resource:
    v: http://loinc.org
    l: loinc.org
related artifact:
  type:
    v: depends-on
  display:
    v: Code system SNOMEDCT
  resource:
    v: http://snomed.info/sct|http://snomed.info/sct/731000124108/version/20240901
    l: http://snomed.info/sct
related artifact:
  type:
    v: depends-on
  display:
    v: Code system RoleCode
  resource:
    v: http://terminology.hl7.org/CodeSystem/v3-RoleCode
    l: v3-RoleCode
related artifact:
  type:
    v: depends-on
  display:
    v: Code system Diagnosis Role
  resource:
    v: http://terminology.hl7.org/CodeSystem/diagnosis-role
    l: diagnosis-role
related artifact:
  type:
    v: depends-on
  display:
    v: Code system RequestIntent
  resource:
    v: http://hl7.org/fhir/request-intent
    l: request-intent
related artifact:
  type:
    v: depends-on
  display:
    v: Code system MedicationRequestCategory
  resource:
    v: http://terminology.hl7.org/CodeSystem/medicationrequest-category
    l: medicationrequest-category
related artifact:
  type:
    v: depends-on
  display:
    v: Code system ConditionClinicalStatusCodes
  resource:
    v: http://terminology.hl7.org/CodeSystem/condition-clinical
    l: condition-clinical
related artifact:
  type:
    v: depends-on
  display:
    v: Code system ConditionVerificationStatusCodes
  resource:
    v: http://terminology.hl7.org/CodeSystem/condition-ver-status
    l: condition-ver-status
related artifact:
  type:
    v: depends-on
  display:
    v: Code system AllergyIntoleranceClinicalStatusCodes
  resource:
    v: http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical
    l: allergyintolerance-clinical
related artifact:
  type:
    v: depends-on
  display:
    v: Code system AllergyIntoleranceVerificationStatusCodes
  resource:
    v: http://terminology.hl7.org/CodeSystem/allergyintolerance-verification
    l: allergyintolerance-verification
parameter:
  name:
    v: Patient
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Patient
data requirement:
  type:
    v: Patient
  profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    l: Patient
content:
  content type:
    v: text/cql
content:
  content type:
    v: application/elm+xml
content:
  content type:
    v: application/elm+json

urn:…
type: Library
id:
  v: MATGlobalCommonFunctionsFHIR4
language:
  v: en
text:
  status:
    v: extensions
  div:
    v: Metadata Title MAT Global Common Functions FHIRR4 Version 6.1.000 Experimental true Type Logic Library Parameter Name: Measurement Period Use: In Min Cardinality: 0 Max Cardinality: 1 Type: Period Parameter Name: Patient Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: Patient Parameter Name: Inpatient Encounter Use: Out Min Cardinality: 0 Max Cardinality: * Type: Encounter Data Requirement Type: Patient Profile(s): Patient Data Requirement Type: Encounter Profile(s): Encounter Must Support Elements: type, status, period Code Filter(s): Path: type ValueSet: Encounter Inpatient Data Requirement Type: Encounter Profile(s): Encounter Must Support Elements: type, period Code Filter(s): Path: type ValueSet: Observation Services Data Requirement Type: Encounter Profile(s): Encounter Must Support Elements: type, status, period Code Filter(s): Path: type ValueSet: Emergency Department Visit Data Requirement Type: Condition Profile(s): Condition Must Support Elements: id Data Requirement Type: Location Profile(s): Location Must Support Elements: id Data Requirement Type: Provenance Profile(s): Provenance Must Support Elements: target Code Filter(s): Path: target Library Content CQL Content library MATGlobalCommonFunctionsFHIR4 version '6.1.000'#xD; #xD; /*@update: BTR 2020-03-31 ->#xD; Incremented version to 5.0.000#xD; Updated FHIR version to 4.0.1#xD; Changed timezone keyword to timezoneoffset for use with CQL 1.4#xD; Removed Normalize Onset in favor of more general Normalize Interval#xD; Updated CodeSystems for ConditionVerificationStatusCodes and RoleCodes#xD; #xD; @update: BTR 2021-05-13 ->#xD; Added ActiveCondition Codes and Inactive Condition Codes value sets#xD; Added function documentation throughout#xD; Fixed EDVisit not using Last#xD; Updated prevalence period to use an inclusive boundary if the condition is active#xD; Added HasStart, HasEnd, Earliest, and Latest functions#xD; Removed ToDate and Age calculation functions#xD; #xD; @update: BTR 2021-06-25 ->#xD;…
url:
  v: http://fhir.org/guides/cqf/Library/MATGlobalCommonFunctionsFHIR4
  l: MATGlobalCommonFunctionsFHIR4
version:
  v: 6.1.000
name:
  v: MATGlobalCommonFunctionsFHIR4
title:
  v: MAT Global Common Functions FHIRR4
status:
  v: active
experimental:
  v: true
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
      l: library-type
    code:
      v: logic-library
    display:
      v: Logic Library
related artifact:
  type:
    v: depends-on
  display:
    v: FHIR model information
  resource:
    v: http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1
    l: http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo
related artifact:
  type:
    v: depends-on
  display:
    v: Library FHIRHelpers
  resource:
    v: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1
    l: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers
related artifact:
  type:
    v: depends-on
  display:
    v: Code system ConditionClinicalStatusCodes
  resource:
    v: http://terminology.hl7.org/CodeSystem/condition-clinical
    l: condition-clinical
related artifact:
  type:
    v: depends-on
  display:
    v: Code system AllergyIntoleranceClinicalStatusCodes
  resource:
    v: http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical
    l: allergyintolerance-clinical
related artifact:
  type:
    v: depends-on
  display:
    v: Code system AllergyIntoleranceVerificationStatusCodes
  resource:
    v: http://terminology.hl7.org/CodeSystem/allergyintolerance-verification
    l: allergyintolerance-verification
related artifact:
  type:
    v: depends-on
  display:
    v: Code system Diagnosis Role
  resource:
    v: http://terminology.hl7.org/CodeSystem/diagnosis-role
    l: diagnosis-role
related artifact:
  type:
    v: depends-on
  display:
    v: Code system LOINC
  resource:
    v: http://loinc.org
    l: loinc.org
related artifact:
  type:
    v: depends-on
  display:
    v: Code system MedicationRequestCategory
  resource:
    v: http://terminology.hl7.org/CodeSystem/medicationrequest-category
    l: medicationrequest-category
related artifact:
  type:
    v: depends-on
  display:
    v: Code system ConditionVerificationStatusCodes
  resource:
    v: http://terminology.hl7.org/CodeSystem/condition-ver-status
    l: condition-ver-status
related artifact:
  type:
    v: depends-on
  display:
    v: Code system SNOMEDCT
  resource:
    v: http://snomed.info/sct|http://snomed.info/sct/731000124108/version/20240901
    l: http://snomed.info/sct
related artifact:
  type:
    v: depends-on
  display:
    v: Code system RoleCode
  resource:
    v: http://terminology.hl7.org/CodeSystem/v3-RoleCode
    l: v3-RoleCode
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Emergency Department Visit
  resource:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Encounter Inpatient
  resource:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Observation Services
  resource:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143
parameter:
  name:
    v: Measurement Period
  use:
    v: in
  min:
    v: 0
  max:
    v: 1
  type:
    v: Period
parameter:
  name:
    v: Patient
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Patient
parameter:
  name:
    v: Inpatient Encounter
  use:
    v: out
  min:
    v: 0
  max:
    v: *
  type:
    v: Encounter
data requirement:
  type:
    v: Patient
  profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    l: Patient
data requirement:
  type:
    v: Encounter
  profile:
    v: http://hl7.org/fhir/StructureDefinition/Encounter
    l: Encounter
  must support:
    v: type
  must support:
    v: status
  must support:
    v: period
  code filter:
    path:
      v: type
    value set:
      v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307
      l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307

urn:…
type: Library
id:
  v: SupplementalDataElementsFHIR4
language:
  v: en
text:
  status:
    v: extensions
  div:
    v: Metadata Title SupplementalDataElementsFHIR4 Version 2.0.000 Experimental true Type Logic Library Parameter Name: Patient Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: Patient Parameter Name: SDE Ethnicity Use: Out Min Cardinality: 0 Max Cardinality: * Type: Coding Parameter Name: SDE Payer Use: Out Min Cardinality: 0 Max Cardinality: * Type: Any Parameter Name: SDE Race Use: Out Min Cardinality: 0 Max Cardinality: * Type: Coding Parameter Name: SDE Sex Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: Coding Data Requirement Type: Patient Profile(s): Patient Must Support Elements: url, extension, value Data Requirement Type: Coverage Profile(s): Coverage Must Support Elements: type, period Code Filter(s): Path: type ValueSet: Payer Type Library Content CQL Content library SupplementalDataElementsFHIR4 version '2.0.000'#xD; #xD; /*@update: @@BTR 2020-03-31 ->#xD; Incremented version to 2.0.0#xD; Updated FHIR version to 4.0.1#xD; @@@*/#xD; #xD; using FHIR version '4.0.1'#xD; #xD; include FHIRHelpers version '4.0.1' called FHIRHelpers#xD; #xD; valueset "Ethnicity": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.837' #xD; valueset "ONC Administrative Sex": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1' #xD; valueset "Payer": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591' #xD; valueset "Race": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.836' #xD; #xD; context Patient#xD; #xD; define "SDE Ethnicity":#xD; (flatten (#xD; Patient.extension Extension#xD; where Extension.url = 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity'#xD; return Extension.extension#xD; )) E#xD; where E.url = 'ombCategory'#xD; or E.url = 'detailed'#xD; return E.value as Coding#xD; #xD; define "SDE Payer":#xD; [Coverage: type in "Payer"] Payer#xD; return {#xD; code: Payer.type,#xD; period: Payer.period#xD; }#xD; #xD; define "SDE Race":#xD; (flatten (#xD; Patient.extension Extension#xD; where Extension.url = 'h…
url:
  v: http://fhir.org/guides/cqf/Library/SupplementalDataElementsFHIR4
  l: SupplementalDataElementsFHIR4
version:
  v: 2.0.000
name:
  v: SupplementalDataElementsFHIR4
title:
  v: SupplementalDataElementsFHIR4
status:
  v: active
experimental:
  v: true
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
      l: library-type
    code:
      v: logic-library
    display:
      v: Logic Library
related artifact:
  type:
    v: depends-on
  display:
    v: FHIR model information
  resource:
    v: http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1
    l: http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo
related artifact:
  type:
    v: depends-on
  display:
    v: Library FHIRHelpers
  resource:
    v: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1
    l: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Ethnicity
  resource:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.837
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.837
related artifact:
  type:
    v: depends-on
  display:
    v: Value set ONC Administrative Sex
  resource:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Payer
  resource:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Race
  resource:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.836
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.836
parameter:
  name:
    v: Patient
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Patient
parameter:
  name:
    v: SDE Ethnicity
  use:
    v: out
  min:
    v: 0
  max:
    v: *
  type:
    v: Coding
parameter:
  name:
    v: SDE Payer
  use:
    v: out
  min:
    v: 0
  max:
    v: *
  type:
    v: Any
parameter:
  name:
    v: SDE Race
  use:
    v: out
  min:
    v: 0
  max:
    v: *
  type:
    v: Coding
parameter:
  name:
    v: SDE Sex
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Coding
data requirement:
  type:
    v: Patient
  profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    l: Patient
  must support:
    v: url
  must support:
    v: extension
  must support:
    v: value
data requirement:
  type:
    v: Coverage
  profile:
    v: http://hl7.org/fhir/StructureDefinition/Coverage
    l: Coverage
  must support:
    v: type
  must support:
    v: period
  code filter:
    path:
      v: type
    value set:
      v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
      l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
content:
  content type:
    v: text/cql
content:
  content type:
    v: application/elm+xml
content:
  content type:
    v: application/elm+json

urn:…
type: Library
id:
  v: NHSNGlycemicControlHypoglycemicInitialPopulation
language:
  v: en
text:
  status:
    v: extensions
  div:
    v: Metadata Title NHSN Glycemic Control Hypoglycemic Initial Population Version 0.0.002 Experimental true Type Logic Library Parameter Name: Measurement Period Use: In Min Cardinality: 0 Max Cardinality: 1 Type: Period Parameter Name: Patient Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: Patient Parameter Name: Inpatient Encounter Use: Out Min Cardinality: 0 Max Cardinality: * Type: Encounter Parameter Name: Patient Hospital Locations Use: Out Min Cardinality: 0 Max Cardinality: * Type: Encounter Parameter Name: Antidiabetic Drugs Administered or Ordered Use: Out Min Cardinality: 0 Max Cardinality: * Type: Any Parameter Name: Initial Population Use: Out Min Cardinality: 0 Max Cardinality: * Type: Encounter Parameter Name: SDE Chief Complaint Use: Out Min Cardinality: 0 Max Cardinality: * Type: Encounter Parameter Name: SDE Condition Use: Out Min Cardinality: 0 Max Cardinality: * Type: Condition Parameter Name: SDE Condition during Encounter Use: Out Min Cardinality: 0 Max Cardinality: * Type: Condition Parameter Name: SDE Encounter Discharge Dispositions Use: Out Min Cardinality: 0 Max Cardinality: * Type: Encounter Parameter Name: SDE Encounter Locations Use: Out Min Cardinality: 0 Max Cardinality: * Type: Encounter Parameter Name: SDE Medication Administration Use: Out Min Cardinality: 0 Max Cardinality: * Type: MedicationAdministration Parameter Name: SDE Medication Request Use: Out Min Cardinality: 0 Max Cardinality: * Type: MedicationRequest Parameter Name: SDE Blood Glucose Observation Use: Out Min Cardinality: 0 Max Cardinality: * Type: Observation Parameter Name: SDE Payer Use: Out Min Cardinality: 0 Max Cardinality: * Type: Any Parameter Name: SDE Specimen Use: Out Min Cardinality: 0 Max Cardinality: * Type: Specimen Parameter Name: SDE Minimal Patient Use: Out Min Cardinality: 0 Max Cardinality: 1 Type: Patient Parameter Name: SDE Minimal Medication Requests Use: Out Min Cardinality: 0 Max Cardinality: * Type: MedicationRequest Data Requirement Type: P…
url:
  v: http://fhir.org/guides/cqf/Library/NHSNGlycemicControlHypoglycemicInitialPopulation
  l: NHSNGlycemicControlHypoglycemicInitialPopulation
version:
  v: 0.0.002
name:
  v: NHSNGlycemicControlHypoglycemicInitialPopulation
title:
  v: NHSN Glycemic Control Hypoglycemic Initial Population
status:
  v: active
experimental:
  v: true
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
      l: library-type
    code:
      v: logic-library
    display:
      v: Logic Library
related artifact:
  type:
    v: depends-on
  display:
    v: FHIR model information
  resource:
    v: http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo|4.0.1
    l: http://hl7.org/fhir/uv/cql/Library/FHIR-ModelInfo
related artifact:
  type:
    v: depends-on
  display:
    v: Library FHIRHelpers
  resource:
    v: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1
    l: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers
related artifact:
  type:
    v: depends-on
  display:
    v: Library SDE
  resource:
    v: http://fhir.org/guides/cqf/Library/SupplementalDataElementsFHIR4|2.0.000
    l: http://fhir.org/guides/cqf/Library/SupplementalDataElementsFHIR4
related artifact:
  type:
    v: depends-on
  display:
    v: Library Global
  resource:
    v: http://fhir.org/guides/cqf/Library/MATGlobalCommonFunctionsFHIR4|6.1.000
    l: http://fhir.org/guides/cqf/Library/MATGlobalCommonFunctionsFHIR4
related artifact:
  type:
    v: depends-on
  display:
    v: Code system ActCode
  resource:
    v: http://terminology.hl7.org/CodeSystem/v3-ActCode
    l: v3-ActCode
related artifact:
  type:
    v: depends-on
  display:
    v: Code system Diagnosis Role
  resource:
    v: http://terminology.hl7.org/CodeSystem/diagnosis-role
    l: diagnosis-role
related artifact:
  type:
    v: depends-on
  display:
    v: Code system Specimen Type
  resource:
    v: http://terminology.hl7.org/CodeSystem/v2-0487
    l: v2-0487
related artifact:
  type:
    v: depends-on
  display:
    v: Code system Observation Category
  resource:
    v: http://terminology.hl7.org/CodeSystem/observation-category
    l: observation-category
related artifact:
  type:
    v: depends-on
  display:
    v: Code system Condition Category
  resource:
    v: http://terminology.hl7.org/CodeSystem/condition-category
    l: condition-category
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Blood Glucose Laboratory and Point of Care Tests
  resource:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.38
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.38
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Inpatient, Emergency, and Observation Locations
  resource:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.265
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.265
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Discharge Disposition
  resource:
    v: http://terminology.hl7.org/ValueSet/encounter-discharge-disposition
    l: encounter-discharge-disposition
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Antidiabetic Medications
  resource:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.58
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.58
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Emergency Department Visit
  resource:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Encounter Inpatient
  resource:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Observation Services
  resource:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Payer
  resource:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
parameter:
  name:
    v: Measurement Period
  use:
    v: in
  min:
    v: 0
  max:
    v: 1
  type:
    v: Period
parameter:
  name:
    v: Patient
  use:
    v: out
  min:
    v: 0
  max:
    v: 1
  type:
    v: Patient
parameter:
  name:
    v: Inpatient Encounter
  use:
    v: out
  min:
    v: 0
  max:
    v: *
  type:
    v: Encounter

urn:…
type: Measure
id:
  v: NHSNGlycemicControlHypoglycemicInitialPopulation
language:
  v: en
text:
  status:
    v: extensions
  div:
    v: Metadata Title NHSN Glycemic Control, Hypoglycemia Initial Population Version 0.000.01 Identifier nhsnglycemiccontrolhypoglycemicinitialpopulation Experimental true Steward (Publisher) NHSN Description All inpatient encounters (including ED/Observation visits that end within 1 hour of the start of the inpatient encounter) for patients of all ages where at least one ADD was ordered or administered during the encounter that is during the measurement period. Purpose This measure has been developed to support improvement in clinical care. Copyright This measure and specifications are subject to further revisions. This performance measure is not a clinical guideline, does not establish a standard of medical care and has not been tested for all potential applications. THE MEASURES AND SPECIFICATIONS ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND. Measure Scoring Cohort Measure Type Outcome Rationale The NHSN Glycemic Control, Hypoglycemia module provides a mechanism for facilities to report inpatient medication-related hypoglycemia events, and to provide analytic reports based on these data to inform glycemic control quality improvement efforts and patient safety events. The primary objective of the NHSN Glycemic Control, Hypoglycemia module is to facilitate measurement and benchmarking of medication-related hypoglycemia events within a facility. As additional data are collected by NHSN, an additional objective will be to facilitate inter-facility benchmarking and evaluate national-level trends of medication-related hypoglycemia over time. The IP dQM provides the initial population and FHIR line-level data necessary for calculating the module metrics. Measure Group (Rate) Initial Population ID: initial-population-01 Description: All inpatient encounters, as well as ED and OBS encounters that end within 1 hour of the start of the inpatient encounter, for patients of all ages where at least one antidiabetic drug (ADD) was ordered or administered during the encounter that…
contained: Library
  id:
    v: effective-data-requirements-sde-artifact
  meta:
    profile:
      v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-moduledefinitionlibrary
      l: crmi-moduledefinitionlibrary
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode
      l: cqf-directReferenceCode
    value: Coding
      system:
        v: http://terminology.hl7.org/CodeSystem/v3-ActCode
        l: v3-ActCode
      code:
        v: IMP
      display:
        v: inpatient encounter
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode
      l: cqf-directReferenceCode
    value: Coding
      system:
        v: http://terminology.hl7.org/CodeSystem/v3-ActCode
        l: v3-ActCode
      code:
        v: ACUTE
      display:
        v: inpatient acute
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode
      l: cqf-directReferenceCode
    value: Coding
      system:
        v: http://terminology.hl7.org/CodeSystem/v3-ActCode
        l: v3-ActCode
      code:
        v: NONAC
      display:
        v: inpatient non-acute
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode
      l: cqf-directReferenceCode
    value: Coding
      system:
        v: http://terminology.hl7.org/CodeSystem/v3-ActCode
        l: v3-ActCode
      code:
        v: SS
      display:
        v: short stay
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode
      l: cqf-directReferenceCode
    value: Coding
      system:
        v: http://terminology.hl7.org/CodeSystem/v3-ActCode
        l: v3-ActCode
      code:
        v: OBSENC
      display:
        v: observation encounter
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode
      l: cqf-directReferenceCode
    value: Coding
      system:
        v: http://terminology.hl7.org/CodeSystem/v3-ActCode
        l: v3-ActCode
      code:
        v: EMER
      display:
        v: emergency
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode
      l: cqf-directReferenceCode
    value: Coding
      system:
        v: http://terminology.hl7.org/CodeSystem/condition-category
        l: condition-category
      code:
        v: encounter-diagnosis
      display:
        v: Encounter Diagnosis
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode
      l: cqf-directReferenceCode
    value: Coding
      system:
        v: http://terminology.hl7.org/CodeSystem/observation-category
        l: observation-category
      code:
        v: laboratory
      display:
        v: Laboratory
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-directReferenceCode
      l: cqf-directReferenceCode
    value: Coding
      system:
        v: http://terminology.hl7.org/CodeSystem/diagnosis-role
        l: diagnosis-role
      code:
        v: CC
      display:
        v: Chief complaint
  extension:
    extension:
      url:
        v: libraryName
        l: libraryName
      value: String
        v: NHSNGlycemicControlHypoglycemicInitialPopulation
    extension:
      url:
        v: name
        l: name
      value: String
        v: Inpatient Encounter
    extension:
      url:
        v: statement
        l: statement
      value: String
        v: define "Inpatient Encounter": [Encounter: class in {"inpatient encounter", "inpatient acute", "inpatient non-acute", "short stay"}] Encounters where Encounters.status in {'in-progress', 'finished'} and Encounters.period overlaps "Measurement Period"
    extension:
      url:
        v: displaySequence
        l: displaySequence
      value: Integer
        v: 0
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
      l: cqf-logicDefinition
  extension:
    extension:
      url:
        v: libraryName
        l: libraryName
      value: String
        v: NHSNGlycemicControlHypoglycemicInitialPopulation
    extension:
      url:
        v: name
        l: name
      value: String
        v: Antidiabetic Drugs Administered or Ordered
    extension:
      url:
        v: statement
        l: statement
      value: String
        v: define "Antidiabetic Drugs Administered or Ordered": ([MedicationAdministration] ADDMedAdmin where GetMedicationCode(ADDMedAdmin.medication) in "Antidiabetic Medications" and ADDMedAdmin.status ~ 'completed') union ( [MedicationRequest] MedicationRequests where GetMedicationCode(MedicationRequests.medication) in "Antidiabetic Medications" )
    extension:
      url:
        v: displaySequence
        l: displaySequence
      value: Integer
        v: 1
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
      l: cqf-logicDefinition
  extension:
    extension:
      url:
        v: libraryName
        l: libraryName
      value: String
        v: NHSNGlycemicControlHypoglycemicInitialPopulation
    extension:
      url:
        v: name
        l: name
      value: String
        v: Initial Population
    extension:
      url:
        v: statement
        l: statement
      value: String
        v: define "Initial Population": "Inpatient Encounter" InpatientEncounters with "Antidiabetic Drugs Administered or Ordered" ADD such that Coalesce(start of Global."Normalize Interval"(ADD.effective), ADD.authoredOn) during "HospitalizationWithObservationOrEmergency"(InpatientEncounters) and Coalesce(start of Global."Normalize Interval"(ADD.effective), ADD.authoredOn) during "Measurement Period"
    extension:
      url:
        v: displaySequence
        l: displaySequence
      value: Integer

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/StructureDefinition/Encounter
  l: Encounter
must support:
  v: type
must support:
  v: period
code filter:
  path:
    v: type
  value set:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/StructureDefinition/Encounter
  l: Encounter
must support:
  v: type
must support:
  v: status
must support:
  v: period
code filter:
  path:
    v: type
  value set:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292

type:
  v: Condition
profile:
  v: http://hl7.org/fhir/StructureDefinition/Condition
  l: Condition
must support:
  v: id

type:
  v: Location
profile:
  v: http://hl7.org/fhir/StructureDefinition/Location
  l: Location
must support:
  v: id

type:
  v: Provenance
profile:
  v: http://hl7.org/fhir/StructureDefinition/Provenance
  l: Provenance
must support:
  v: target
code filter:
  path:
    v: target

content type:
  v: text/cql

content type:
  v: application/elm+xml

content type:
  v: application/elm+json

name:
  v: Patient Hospital Locations
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Encounter

name:
  v: Antidiabetic Drugs Administered or Ordered
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Any

name:
  v: Initial Population
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Encounter

name:
  v: SDE Chief Complaint
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Encounter

name:
  v: SDE Condition
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Condition

name:
  v: SDE Condition during Encounter
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Condition

name:
  v: SDE Encounter Discharge Dispositions
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Encounter

name:
  v: SDE Encounter Locations
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Encounter

name:
  v: SDE Medication Administration
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationAdministration

name:
  v: SDE Medication Request
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationRequest

name:
  v: SDE Blood Glucose Observation
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Observation

name:
  v: SDE Payer
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Any

name:
  v: SDE Specimen
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Specimen

name:
  v: SDE Minimal Patient
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: Patient

name:
  v: SDE Minimal Medication Requests
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationRequest

type:
  v: Patient
profile:
  v: http://hl7.org/fhir/StructureDefinition/Patient
  l: Patient

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/StructureDefinition/Encounter
  l: Encounter
must support:
  v: class
code filter:
  path:
    v: class
  code:
    system:
      v: http://terminology.hl7.org/CodeSystem/v3-ActCode
      l: v3-ActCode
    code:
      v: IMP
    display:
      v: inpatient encounter
  code:
    system:
      v: http://terminology.hl7.org/CodeSystem/v3-ActCode
      l: v3-ActCode
    code:
      v: ACUTE
    display:
      v: inpatient acute
  code:
    system:
      v: http://terminology.hl7.org/CodeSystem/v3-ActCode
      l: v3-ActCode
    code:
      v: NONAC
    display:
      v: inpatient non-acute
  code:
    system:
      v: http://terminology.hl7.org/CodeSystem/v3-ActCode
      l: v3-ActCode
    code:
      v: SS
    display:
      v: short stay

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/StructureDefinition/Encounter
  l: Encounter
must support:
  v: type
must support:
  v: status
must support:
  v: period
code filter:
  path:
    v: type
  value set:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/StructureDefinition/Encounter
  l: Encounter
must support:
  v: location
must support:
  v: period

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/StructureDefinition/Encounter
  l: Encounter
must support:
  v: type
must support:
  v: class
must support:
  v: period
code filter:
  path:
    v: type
  value set:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/StructureDefinition/Encounter
  l: Encounter
must support:
  v: type
must support:
  v: class
must support:
  v: period
code filter:
  path:
    v: type
  value set:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292

type:
  v: Location
profile:
  v: http://hl7.org/fhir/StructureDefinition/Location
  l: Location
must support:
  v: id

type:
  v: Medication
profile:
  v: http://hl7.org/fhir/StructureDefinition/Medication
  l: Medication
must support:
  v: id

type:
  v: MedicationAdministration
profile:
  v: http://hl7.org/fhir/StructureDefinition/MedicationAdministration
  l: MedicationAdministration
must support:
  v: medication
must support:
  v: status
must support:
  v: effective

type:
  v: MedicationRequest
profile:
  v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
  l: MedicationRequest
must support:
  v: medication
must support:
  v: authoredOn

type:
  v: Specimen
profile:
  v: http://hl7.org/fhir/StructureDefinition/Specimen
  l: Specimen
must support:
  v: id
must support:
  v: collection
must support:
  v: collection.collected

type:
  v: Condition
profile:
  v: http://hl7.org/fhir/StructureDefinition/Condition
  l: Condition
must support:
  v: onset
must support:
  v: category

type:
  v: Observation
profile:
  v: http://hl7.org/fhir/StructureDefinition/Observation
  l: Observation
must support:
  v: code
must support:
  v: effective
must support:
  v: specimen
must support:
  v: specimen.collection
must support:
  v: specimen.collection.collected
must support:
  v: category
code filter:
  path:
    v: code
  value set:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.38
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.38

type:
  v: Coverage
profile:
  v: http://hl7.org/fhir/StructureDefinition/Coverage
  l: Coverage
must support:
  v: type
must support:
  v: period
code filter:
  path:
    v: type
  value set:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591

content type:
  v: text/cql

Integer
v: 2

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: NHSNGlycemicControlHypoglycemicInitialPopulation
extension:
  url:
    v: name
    l: name
  value: String
    v: SDE Medication Request
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define "SDE Medication Request": [MedicationRequest] MedicationRequests with "Initial Population" InitialPopulation such that MedicationRequests.authoredOn during "HospitalizationWithObservationOrEmergency"(InitialPopulation) and MedicationRequests.authoredOn during "Measurement Period"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 3
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: NHSNGlycemicControlHypoglycemicInitialPopulation
extension:
  url:
    v: name
    l: name
  value: String
    v: SDE Encounter Locations
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define "SDE Encounter Locations": "Initial Population" InitialPopulation where exists ( InitialPopulation.location InitialPopulationLocation where (Global.GetLocation(InitialPopulationLocation.location).type in "Inpatient, Emergency, and Observation Locations" or Global.GetLocation(InitialPopulationLocation.location).physicalType in "Inpatient, Emergency, and Observation Locations") and InitialPopulationLocation.period during InitialPopulation.period )
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 4
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: NHSNGlycemicControlHypoglycemicInitialPopulation
extension:
  url:
    v: name
    l: name
  value: String
    v: SDE Minimal Medication Requests
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define "SDE Minimal Medication Requests": [MedicationRequest] MedicationRequests return MedicationRequest{ id: MedicationRequests.id, medication: GetMedicationCode(MedicationRequests.medication), dosageInstruction: MedicationRequests.dosageInstruction }
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 5
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: NHSNGlycemicControlHypoglycemicInitialPopulation
extension:
  url:
    v: name
    l: name
  value: String
    v: SDE Condition during Encounter
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define "SDE Condition during Encounter": [Condition] ConditionEncounterDiagnosis with ConditionEncounterDiagnosis.category Category such that Category ~ "encounter-diagnosis" and exists("Initial Population")
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 6
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: NHSNGlycemicControlHypoglycemicInitialPopulation
extension:
  url:
    v: name
    l: name
  value: String
    v: SDE Medication Administration
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define "SDE Medication Administration": [MedicationAdministration] MedicationAdministrations with "Initial Population" InitialPopulation such that start of Global."Normalize Interval"(MedicationAdministrations.effective) during "HospitalizationWithObservationOrEmergency"(InitialPopulation) and start of Global."Normalize Interval"(MedicationAdministrations.effective) during "Measurement Period"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 7
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: NHSNGlycemicControlHypoglycemicInitialPopulation
extension:
  url:
    v: name
    l: name
  value: String
    v: SDE Blood Glucose Observation
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define "SDE Blood Glucose Observation": [Observation: "Blood Glucose Laboratory and Point of Care Tests"] Observations with "Initial Population" InitialPopulation such that start of Global."Normalize Interval"(Observations.effective) during InitialPopulation.period or Global."Normalize Interval"(GetSpecimen(Observations.specimen).collection.collected) during InitialPopulation.period with Observations.category category such that category ~ "laboratory"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 8
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: NHSNGlycemicControlHypoglycemicInitialPopulation
extension:
  url:
    v: name
    l: name
  value: String
    v: SDE Condition
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define "SDE Condition": [Condition] Conditions with "Initial Population" InitialPopulation such that Global."Normalize Interval"(Conditions.onset) overlaps InitialPopulation.period
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 9
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: SupplementalDataElementsFHIR4
extension:
  url:
    v: name
    l: name
  value: String
    v: SDE Payer
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define "SDE Payer": [Coverage: type in "Payer"] Payer return { code: Payer.type, period: Payer.period }
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 10
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: NHSNGlycemicControlHypoglycemicInitialPopulation
extension:
  url:
    v: name
    l: name
  value: String
    v: SDE Payer
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define "SDE Payer": SDE."SDE Payer" Payer with "Initial Population" InitialPopulation such that start of Payer.period before end of InitialPopulation.period
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 11
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: NHSNGlycemicControlHypoglycemicInitialPopulation
extension:
  url:
    v: name
    l: name
  value: String
    v: SDE Encounter Discharge Dispositions
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define "SDE Encounter Discharge Dispositions": "Initial Population" DischargeDispositions where DischargeDispositions.hospitalization.dischargeDisposition in "Discharge Disposition"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 12
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: NHSNGlycemicControlHypoglycemicInitialPopulation
extension:
  url:
    v: name
    l: name
  value: String
    v: SDE Minimal Patient
extension:
  url:
    v: statement
    l: statement
  value: String
    v: //Change on CQF ruler happened on 8/12. Check to make sure CQF-Ruler version is dated at or after define "SDE Minimal Patient": Patient{ id: Patient.id, gender: Patient.gender, birthDate: Patient.birthDate }
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 13
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: NHSNGlycemicControlHypoglycemicInitialPopulation
extension:
  url:
    v: name
    l: name
  value: String
    v: SDE Specimen
extension:
  url:
    v: statement
    l: statement
  value: String
    v: define "SDE Specimen": [Specimen] Specimen with "Initial Population" InitialPopulation such that Global."Normalize Interval"(Specimen.collection.collected) during InitialPopulation.period
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 14
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

extension:
  url:
    v: libraryName
    l: libraryName
  value: String
    v: NHSNGlycemicControlHypoglycemicInitialPopulation
extension:
  url:
    v: name
    l: name
  value: String
    v: SDE Chief Complaint
extension:
  url:
    v: statement
    l: statement
  value: String
    v: //Supplement Data Elements define "SDE Chief Complaint": "Initial Population" InitialPopulation with InitialPopulation.diagnosis InitialPopulationDiagnosis such that InitialPopulationDiagnosis.use ~ "Chief Complaint"
extension:
  url:
    v: displaySequence
    l: displaySequence
  value: Integer
    v: 15
url:
  v: http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition
  l: cqf-logicDefinition

v: 1.0.0

v: ModuleDefinitionLibrarySDEArtifacts

v: Module Definition Library - SDE artifacts

v: active

v: true

coding:
  system:
    v: http://terminology.hl7.org/CodeSystem/library-type
    l: library-type
  code:
    v: module-definition

v: This library is used as an example module definition in the FHIR Quality Measure Implementation Guide

type:
  v: depends-on
display:
  v: Library FHIRHelpers
resource:
  v: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers|4.0.1
  l: http://hl7.org/fhir/uv/cql/Library/FHIRHelpers

type:
  v: depends-on
display:
  v: Library Global
resource:
  v: http://fhir.org/guides/cqf/Library/MATGlobalCommonFunctionsFHIR4|6.1.000
  l: http://fhir.org/guides/cqf/Library/MATGlobalCommonFunctionsFHIR4

type:
  v: depends-on
display:
  v: Library SDE
resource:
  v: http://fhir.org/guides/cqf/Library/SupplementalDataElementsFHIR4|2.0.000
  l: http://fhir.org/guides/cqf/Library/SupplementalDataElementsFHIR4

type:
  v: depends-on
display:
  v: Code system ActCode
resource:
  v: http://terminology.hl7.org/CodeSystem/v3-ActCode
  l: v3-ActCode

type:
  v: depends-on
display:
  v: Code system Condition Category
resource:
  v: http://terminology.hl7.org/CodeSystem/condition-category
  l: condition-category

type:
  v: depends-on
display:
  v: Code system Observation Category
resource:
  v: http://terminology.hl7.org/CodeSystem/observation-category
  l: observation-category

type:
  v: depends-on
display:
  v: Code system Diagnosis Role
resource:
  v: http://terminology.hl7.org/CodeSystem/diagnosis-role
  l: diagnosis-role

type:
  v: depends-on
display:
  v: Value set Antidiabetic Medications
resource:
  v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.58
  l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.58

type:
  v: depends-on
display:
  v: Value set Inpatient, Emergency, and Observation Locations
resource:
  v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.265
  l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1046.265

type:
  v: depends-on
display:
  v: Value set Blood Glucose Laboratory and Point of Care Tests
resource:
  v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.38
  l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.38

type:
  v: depends-on
display:
  v: Value set Payer
resource:
  v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
  l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591

type:
  v: depends-on
display:
  v: Value set Discharge Disposition
resource:
  v: http://terminology.hl7.org/ValueSet/encounter-discharge-disposition
  l: encounter-discharge-disposition

name:
  v: Measurement Period
use:
  v: in
min:
  v: 0
max:
  v: 1
type:
  v: Period

name:
  v: SDE Medication Request
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationRequest

name:
  v: SDE Encounter Locations
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Encounter

name:
  v: SDE Minimal Medication Requests
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationRequest

name:
  v: SDE Condition during Encounter
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Condition

name:
  v: SDE Medication Administration
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: MedicationAdministration

name:
  v: SDE Blood Glucose Observation
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Observation

name:
  v: SDE Condition
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Condition

name:
  v: SDE Payer
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Any

name:
  v: Initial Population
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Encounter

name:
  v: SDE Encounter Discharge Dispositions
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Encounter

name:
  v: SDE Minimal Patient
use:
  v: out
min:
  v: 0
max:
  v: 1
type:
  v: Patient

name:
  v: SDE Specimen
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Specimen

name:
  v: SDE Chief Complaint
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Encounter

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/StructureDefinition/Encounter
  l: Encounter
must support:
  v: class
must support:
  v: status
must support:
  v: period
code filter:
  path:
    v: class
  code:
    system:
      v: http://terminology.hl7.org/CodeSystem/v3-ActCode
      l: v3-ActCode
    code:
      v: IMP
    display:
      v: inpatient encounter
  code:
    system:
      v: http://terminology.hl7.org/CodeSystem/v3-ActCode
      l: v3-ActCode
    code:
      v: ACUTE
    display:
      v: inpatient acute
  code:
    system:
      v: http://terminology.hl7.org/CodeSystem/v3-ActCode
      l: v3-ActCode
    code:
      v: NONAC
    display:
      v: inpatient non-acute
  code:
    system:
      v: http://terminology.hl7.org/CodeSystem/v3-ActCode
      l: v3-ActCode
    code:
      v: SS
    display:
      v: short stay

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/StructureDefinition/Encounter
  l: Encounter
must support:
  v: class
must support:
  v: period

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/StructureDefinition/Encounter
  l: Encounter
must support:
  v: class
must support:
  v: status
must support:
  v: period
code filter:
  path:
    v: class
  code:
    system:
      v: http://terminology.hl7.org/CodeSystem/v3-ActCode
      l: v3-ActCode
    code:
      v: IMP
    display:
      v: inpatient encounter
  code:
    system:
      v: http://terminology.hl7.org/CodeSystem/v3-ActCode
      l: v3-ActCode
    code:
      v: ACUTE
    display:
      v: inpatient acute
  code:
    system:
      v: http://terminology.hl7.org/CodeSystem/v3-ActCode
      l: v3-ActCode
    code:
      v: NONAC
    display:
      v: inpatient non-acute
  code:
    system:
      v: http://terminology.hl7.org/CodeSystem/v3-ActCode
      l: v3-ActCode
    code:
      v: SS
    display:
      v: short stay

type:
  v: Medication
profile:
  v: http://hl7.org/fhir/StructureDefinition/Medication
  l: Medication
must support:
  v: id

type:
  v: MedicationAdministration
profile:
  v: http://hl7.org/fhir/StructureDefinition/MedicationAdministration
  l: MedicationAdministration
must support:
  v: medication
must support:
  v: status
must support:
  v: effective

type:
  v: MedicationRequest
profile:
  v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
  l: MedicationRequest
must support:
  v: medication
must support:
  v: authoredOn
must support:
  v: id
must support:
  v: dosageInstruction

type:
  v: Location
profile:
  v: http://hl7.org/fhir/StructureDefinition/Location
  l: Location
must support:
  v: id

type:
  v: Condition
profile:
  v: http://hl7.org/fhir/StructureDefinition/Condition
  l: Condition
must support:
  v: category
must support:
  v: onset

type:
  v: Specimen
profile:
  v: http://hl7.org/fhir/StructureDefinition/Specimen
  l: Specimen
must support:
  v: id
must support:
  v: collection
must support:
  v: collection.collected

type:
  v: Observation
profile:
  v: http://hl7.org/fhir/StructureDefinition/Observation
  l: Observation
must support:
  v: code
must support:
  v: effective
must support:
  v: specimen
must support:
  v: specimen.collection
must support:
  v: specimen.collection.collected
must support:
  v: category
code filter:
  path:
    v: code
  value set:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.38
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1190.38

type:
  v: Coverage
profile:
  v: http://hl7.org/fhir/StructureDefinition/Coverage
  l: Coverage
must support:
  v: type
must support:
  v: period
code filter:
  path:
    v: type
  value set:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
    l: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591

type:
  v: Patient
profile:
  v: http://hl7.org/fhir/StructureDefinition/Patient
  l: Patient

url:
  v: http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements
  l: crmi-effectiveDataRequirements
value: Canonical
  v: #effective-data-requirements-sde-artifact
  l: effective-data-requirements-sde-artifact

system:
  v: https://nhsnlink.org
  l: nhsnlink.org
value:
  v: nhsnglycemiccontrolhypoglycemicinitialpopulation

v: 0.000.01

v: NHSNGlycemicControlHypoglycemicInitialPopulation

v: NHSN Glycemic Control, Hypoglycemia Initial Population

v: active

v: true

v: 2022-08-29T12:53:08-08:00

v: NHSN

v: All inpatient encounters (including ED/Observation visits that end within 1 hour of the start of the inpatient encounter) for patients of all ages where at least one ADD was ordered or administered during the encounter that is during the measurement period.

v: This measure has been developed to support improvement in clinical care.

v: This measure and specifications are subject to further revisions. This performance measure is not a clinical guideline, does not establish a standard of medical care and has not been tested for all potential applications. THE MEASURES AND SPECIFICATIONS ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND.

coding:
  system:
    v: http://terminology.hl7.org/CodeSystem/measure-scoring
    l: measure-scoring
  code:
    v: cohort
  display:
    v: Cohort

coding:
  system:
    v: http://terminology.hl7.org/CodeSystem/measure-type
    l: measure-type
  code:
    v: outcome
  display:
    v: Outcome

v: The NHSN Glycemic Control, Hypoglycemia module provides a mechanism for facilities to report inpatient medication-related hypoglycemia events, and to provide analytic reports based on these data to inform glycemic control quality improvement efforts and patient safety events. The primary objective of the NHSN Glycemic Control, Hypoglycemia module is to facilitate measurement and benchmarking of medication-related hypoglycemia events within a facility. As additional data are collected by NHSN, an additional objective will be to facilitate inter-facility benchmarking and evaluate national-level trends of medication-related hypoglycemia over time. The IP dQM provides the initial population and FHIR line-level data necessary for calculating the module metrics.

v: Antidiabetic Drug Days (ADD): Aggregate number of inpatient encounter days within the facility in which at least one injectable or oral ADD was received. All patients who received ADDs during the hospitalization contribute to the initial population regardless of whether the patient experienced a hypoglycemic event.

v: Emergency Department (ED) or Observation (OBS) encounters: ED or observation encounters that ended within an hour of the inpatient admission are included when calculating the start and stop times of the hospitalization. Only Metric 1 includes ED and OBS encounters.

v: Hypoglycemia Day: An inpatient day with at least one documented hypoglycemia event.

v: Hypoglycemia Event includes the following during an inpatient hospitalization: A hypoglycemic blood glucose (BG) result during the encounter and ADD administered within 24 hours prior to the start of the hypoglycemic BG result and no subsequent test for blood glucose with a result ≥80 mg/dL within five minutes of the start of the initial low blood glucose test.

v: Inpatient Encounter: A hospitalization in any inpatient facility that meets the criteria for reporting to the NHSN Glycemic Control Hypoglycemia Module (refer to CDC Locations and Descriptions manual).

v: Measurement Period: From the first day of each calendar month through the last day of that calendar month. Mild hypoglycemia: Blood glucose 54 mg/dL to 69 mg/dL as identified on central laboratory device (CLD) or prescription point-of-care (POC) device.

v: Moderate hypoglycemia: Blood glucose 40 mg/dL to 53 mg/dL as identified on CLD or prescription POC device.

v: Severe hypoglycemia Blood glucose < 40 mg/dL as identified on CLD or prescription POC device.

population:
  id:
    v: initial-population-01
  code:
    coding:
      system:
        v: http://terminology.hl7.org/CodeSystem/measure-population
        l: measure-population
      code:
        v: initial-population
      display:
        v: Initial Population
  description:
    v: All inpatient encounters, as well as ED and OBS encounters that end within 1 hour of the start of the inpatient encounter, for patients of all ages where at least one antidiabetic drug (ADD) was ordered or administered during the encounter that is during the measurement period.
  criteria:
    language:
      v: text/cql-identifier
    expression:
      v: Initial Population

id:
  v: sde-chief-complaint
criteria:
  language:
    v: text/cql-identifier
  expression:
    v: SDE Chief Complaint

id:
  v: sde-condition
criteria:
  language:
    v: text/cql-identifier
  expression:
    v: SDE Condition

id:
  v: sde-condition-during-encounter
criteria:
  language:
    v: text/cql-identifier
  expression:
    v: SDE Condition during Encounter

id:
  v: sde-encounter-discharge-dispositions
criteria:
  language:
    v: text/cql-identifier
  expression:
    v: SDE Encounter Discharge Dispositions

id:
  v: sde-encounter-locations
criteria:
  language:
    v: text/cql-identifier
  expression:
    v: SDE Encounter Locations

id:
  v: sde-medication-administration
criteria:
  language:
    v: text/cql-identifier
  expression:
    v: SDE Medication Administration

id:
  v: sde-medication-request
criteria:
  language:
    v: text/cql-identifier
  expression:
    v: SDE Medication Request

id:
  v: sde-blood-glucose-observation
criteria:
  language:
    v: text/cql-identifier
  expression:
    v: SDE Blood Glucose Observation

id:
  v: sde-payer
criteria:
  language:
    v: text/cql-identifier
  expression:
    v: SDE Payer

id:
  v: sde-specimen
criteria:
  language:
    v: text/cql-identifier
  expression:
    v: SDE Specimen

id:
  v: sde-minimal-patient
criteria:
  language:
    v: text/cql-identifier
  expression:
    v: SDE Minimal Patient

id:
  v: sde-minimal-medication-requests
criteria:
  language:
    v: text/cql-identifier
  expression:
    v: SDE Minimal Medication Requests