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: Title: FHIR Helpers Id: FHIRHelpers Version: 4.0.1 Url: http://fhir.org/guides/cqf/common/Library/FHIRHelpers Status: draft Experimental: true Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library display: Logic Library Related Artifacts: Dependencies http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1 Content: text/cql /*#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…
url:
  v: http://fhir.org/guides/cqf/common/Library/FHIRHelpers
  l: FHIRHelpers
version:
  v: 4.0.1
name:
  v: FHIRHelpers
title:
  v: FHIR Helpers
status:
  v: draft
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://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1
    l: http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo
content:
  content type:
    v: text/cql

urn:…
type: Library
id:
  v: FHIRCommon
language:
  v: en
text:
  status:
    v: extensions
  div:
    v: Title: FHIRCommon Id: FHIRCommon Version: 4.0.1 Url: FHIRCommon Status: draft Experimental: true Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library display: Logic Library Related Artifacts: Dependencies http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1 FHIR Helpersversion: null4.0.1) Logical Observation Identifiers, Names and Codes (LOINC) SNOMED CT (all versions) RoleCode Diagnosis Role RequestIntent MedicationRequest Category Codes Condition Clinical Status Codes ConditionVerificationStatus AllergyIntolerance Clinical Status Codes AllergyIntolerance Verification Status CQF Active Condition CQF Inactive Condition Parameters: Name Type Min Max In/Out Patient Patient 0 1 Out Data Requirements: Type Profile MS Code Filter Patient http://hl7.org/fhir/StructureDefinition/Patient Content: text/cql /*#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/al…
url:
  v: http://fhir.org/guides/cqf/Library/FHIRCommon
  l: FHIRCommon
version:
  v: 4.0.1
name:
  v: FHIRCommon
title:
  v: FHIRCommon
status:
  v: draft
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://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1
    l: http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo
related artifact:
  type:
    v: depends-on
  display:
    v: Library FHIRHelpers
  resource:
    v: http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1
    l: http://fhir.org/guides/cqf/common/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
    l: 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
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Active Condition
  resource:
    v: http://fhir.org/guides/cqf/common/ValueSet/active-condition
    l: active-condition
related artifact:
  type:
    v: depends-on
  display:
    v: Value set Inactive Condition
  resource:
    v: http://fhir.org/guides/cqf/common/ValueSet/inactive-condition
    l: inactive-condition
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

urn:…
type: Library
id:
  v: MATGlobalCommonFunctionsFHIR4
language:
  v: en
text:
  status:
    v: extensions
  div:
    v: Title: MAT Global Common Functions FHIRR4 Id: MATGlobalCommonFunctionsFHIR4 Version: 6.1.000 Url: MAT Global Common Functions FHIRR4 Status: draft Experimental: true Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library display: Logic Library Related Artifacts: Dependencies http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1 FHIR Helpersversion: null4.0.1) Condition Clinical Status Codes AllergyIntolerance Clinical Status Codes AllergyIntolerance Verification Status Diagnosis Role Logical Observation Identifiers, Names and Codes (LOINC) MedicationRequest Category Codes ConditionVerificationStatus SNOMED CT (all versions) RoleCode Emergency Department Visit Encounter Inpatient Observation Services Parameters: Name Type Min Max In/Out Measurement Period Period 0 1 In Patient Patient 0 1 Out Inpatient Encounter Encounter 0 * Out Data Requirements: Type Profile MS Code Filter Patient http://hl7.org/fhir/StructureDefinition/Patient Encounter http://hl7.org/fhir/StructureDefinition/Encounter ;;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307 Encounter http://hl7.org/fhir/StructureDefinition/Encounter ;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143 Encounter http://hl7.org/fhir/StructureDefinition/Encounter ;;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292 Condition http://hl7.org/fhir/StructureDefinition/Condition ; Location http://hl7.org/fhir/StructureDefinition/Location ; Provenance http://hl7.org/fhir/StructureDefinition/Provenance ; code filter: path: target Content: text/cql 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 N…
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: draft
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://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1
    l: http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo
related artifact:
  type:
    v: depends-on
  display:
    v: Library FHIRHelpers
  resource:
    v: http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1
    l: http://fhir.org/guides/cqf/common/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
    l: 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: Title: SupplementalDataElementsFHIR4 Id: SupplementalDataElementsFHIR4 Version: 2.0.000 Url: SupplementalDataElementsFHIR4 Status: draft Experimental: true Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library display: Logic Library Related Artifacts: Dependencies http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1 FHIR Helpersversion: null4.0.1) Ethnicity ONC Administrative Sex Payer Type Race Parameters: Name Type Min Max In/Out Patient Patient 0 1 Out SDE Ethnicity Coding 0 * Out SDE Payer Any 0 * Out SDE Race Coding 0 * Out SDE Sex Coding 0 1 Out Data Requirements: Type Profile MS Code Filter Patient http://hl7.org/fhir/StructureDefinition/Patient ;;; Coverage http://hl7.org/fhir/StructureDefinition/Coverage ;; code filter: path: type value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591 Content: text/cql 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; …
url:
  v: http://fhir.org/guides/cqf/Library/SupplementalDataElementsFHIR4
  l: SupplementalDataElementsFHIR4
version:
  v: 2.0.000
name:
  v: SupplementalDataElementsFHIR4
title:
  v: SupplementalDataElementsFHIR4
status:
  v: draft
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://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1
    l: http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo
related artifact:
  type:
    v: depends-on
  display:
    v: Library FHIRHelpers
  resource:
    v: http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1
    l: http://fhir.org/guides/cqf/common/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

urn:…
type: Library
id:
  v: NHSNGlycemicControlHypoglycemicInitialPopulation
language:
  v: en
text:
  status:
    v: extensions
  div:
    v: Title: NHSN Glycemic Control Hypoglycemic Initial Population Id: NHSNGlycemicControlHypoglycemicInitialPopulation Version: 0.0.002 Url: NHSN Glycemic Control Hypoglycemic Initial Population Status: draft Experimental: true Type: system: http://terminology.hl7.org/CodeSystem/library-type code: logic-library display: Logic Library Related Artifacts: Dependencies http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1 FHIR Helpersversion: null4.0.1) SupplementalDataElementsFHIR4version: null2.0.000) MAT Global Common Functions FHIRR4version: null6.1.000) ActCode Diagnosis Role specimenType Observation Category Codes Condition Category Codes Blood Glucose Laboratory and Point of Care Tests Inpatient, Emergency, and Observation Locations Discharge disposition Diabetes Medications Emergency Department Visit Encounter Inpatient Observation Services Payer Type Parameters: Name Type Min Max In/Out Measurement Period Period 0 1 In Patient Patient 0 1 Out Inpatient Encounter Encounter 0 * Out Patient Hospital Locations Encounter 0 * Out Antidiabetic Drugs Administered or Ordered Any 0 * Out Initial Population Encounter 0 * Out SDE Chief Complaint Encounter 0 * Out SDE Condition Condition 0 * Out SDE Condition during Encounter Condition 0 * Out SDE Encounter Discharge Dispositions Encounter 0 * Out SDE Encounter Locations Encounter 0 * Out SDE Medication Administration MedicationAdministration 0 * Out SDE Medication Request MedicationRequest 0 * Out SDE Blood Glucose Observation Observation 0 * Out SDE Payer Any 0 * Out SDE Specimen Specimen 0 * Out SDE Minimal Patient Patient 0 1 Out SDE Minimal Medication Requests MedicationRequest 0 * Out Data Requirements: Type Profile MS Code Filter Patient http://hl7.org/fhir/StructureDefinition/Patient Encounter http://hl7.org/fhir/StructureDefinition/Encounter ; code filter: path: class system: http://terminology.hl7.org/CodeSystem/v3-ActCode code: IMP display: inpatient encounter system: http://terminology.hl7.org/CodeSystem/v3-…
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: draft
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://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo|4.0.1
    l: http://fhir.org/guides/cqf/common/Library/FHIR-ModelInfo
related artifact:
  type:
    v: depends-on
  display:
    v: Library FHIRHelpers
  resource:
    v: http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1
    l: http://fhir.org/guides/cqf/common/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: Knowledge Artifact Metadata Name (machine-readable) NHSNGlycemicControlHypoglycemicInitialPopulation Title (human-readable) NHSN Glycemic Control, Hypoglycemia Initial Population Status Draft Experimental true 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 The primary purpose of this site is to provide CDC’s NHSN with access to view measure specification content in the dQMs under development by Lantana Consulting Group. Please note, this site is draft and undergoes constant revision and is not intended to serve as an implementation guide. Measure Steward NHSN 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 Metadata Version Number 0.000.01 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. Definition Antidiabetic Dr…
contained: Library
  id:
    v: effective-data-requirements
  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
        v: 2

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

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

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

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

type:
  v: depends-on
display:
  v: Library FHIRHelpers
resource:
  v: http://fhir.org/guides/cqf/common/Library/FHIRHelpers|4.0.1
  l: http://fhir.org/guides/cqf/common/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

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

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

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: The primary purpose of this site is to provide CDC’s NHSN with access to view measure specification content in the dQMs under development by Lantana Consulting Group. Please note, this site is draft and undergoes constant revision and is not intended to serve as an implementation guide.

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