MATGlobalCommonFunctionsFHIR4
type: Library
node role: treeRoot
id:
  v: MATGlobalCommonFunctionsFHIR4
meta:
  profile:
    v: http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-library-cqfm
    link: http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/computable-library-cqfm
language:
  v: en
text:
  status:
    v: extensions
  div: Metadata Version 0.1.0 Jurisdiction 001 from http://unstats.un.org/unsd/methods/m49/m49.htm Steward (Publisher) Clinical Quality Framework Description MATGlobalCommonFunctionsFHIR4 Type logic-library from http://terminology.hl7.org/CodeSystem/library-type 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, location, condition, condition.reference, rank Code Filter(s): Path: type ValueSet: Encounter Inpatient Data Requirement Type: Encounter Profile(s): Encounter Must Support Elements: type, period, location, condition, condition.reference, rank Code Filter(s): Path: type ValueSet: Observation Services Data Requirement Type: Encounter Profile(s): Encounter Must Support Elements: type, status, period, location, condition, condition.reference, rank 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: Medication Profile(s): Medication Must Support Elements: id Library Content CQL Content /*#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; #xD; @update: BTR 2021-05-13 ->#xD; //Added ActiveCondition Codes and Inactive Condition Codes value sets#xD; Updated ConditionVerificationStatusCodes and RoleCode URIs#xD; Added function documentation throughout#xD; Fixed EDVisit not using Last#xD; Updated prevalence period to use an…
contained: Parameters
  id:
    v: options
  parameter:
    name:
      v: translatorVersion
    value: string
      v: 3.27.0
  parameter:
    name:
      v: option
    value: string
      v: EnableAnnotations
  parameter:
    name:
      v: option
    value: string
      v: EnableLocators
  parameter:
    name:
      v: option
    value: string
      v: DisableListDemotion
  parameter:
    name:
      v: option
    value: string
      v: DisableListPromotion
  parameter:
    name:
      v: format
    value: string
      v: JSON
  parameter:
    name:
      v: format
    value: string
      v: XML
  parameter:
    name:
      v: analyzeDataRequirements
    value: boolean
      v: false
  parameter:
    name:
      v: collapseDataRequirements
    value: boolean
      v: true
  parameter:
    name:
      v: compatibilityLevel
    value: string
      v: 1.5
  parameter:
    name:
      v: enableCqlOnly
    value: boolean
      v: false
  parameter:
    name:
      v: errorLevel
    value: string
      v: Info
  parameter:
    name:
      v: signatureLevel
    value: string
      v: None
  parameter:
    name:
      v: validateUnits
    value: boolean
      v: true
  parameter:
    name:
      v: verifyOnly
    value: boolean
      v: false
extension:
  url:
    v: http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/cqfm-softwaresystem
  value: Reference
    link: http://fhir.org/guides/cqf/aphl/chronic-ds/Device/cqf-tooling
    reference:
      v: Device/cqf-tooling
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-cqlOptions
  value: Reference
    reference:
      v: #options
url:
  v: http://fhir.org/guides/cqf/aphl/chronic-ds/Library/MATGlobalCommonFunctionsFHIR4
version:
  v: 0.1.0
name:
  v: MATGlobalCommonFunctionsFHIR4
status:
  v: active
experimental:
  v: false
type:
  coding:
    system:
      v: http://terminology.hl7.org/CodeSystem/library-type
    code:
      v: logic-library
date:
  v: 2021-01-28T23:14:33+00:00
publisher:
  v: Clinical Quality Framework
contact:
  telecom:
    system:
      v: url
    value:
      v: http://cqframework.org
description:
  v: MATGlobalCommonFunctionsFHIR4
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
    code:
      v: 001
related artifact:
  type:
    v: depends-on
  display:
    v: Library FHIRHelpers
  resource:
    v: http://fhir.org/guides/cqf/aphl/chronic-ds/Library/FHIRHelpers|4.1.000
    link: 4.1
    link: .000
related artifact:
  type:
    v: depends-on
  display:
    v: Code system ConditionClinicalStatusCodes
  resource:
    v: http://terminology.hl7.org/CodeSystem/condition-clinical
    link: http://terminology.hl7.org/CodeSystem/condition-clinical
related artifact:
  type:
    v: depends-on
  display:
    v: Code system AllergyIntoleranceClinicalStatusCodes
  resource:
    v: http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical
    link: http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical
related artifact:
  type:
    v: depends-on
  display:
    v: Code system AllergyIntoleranceVerificationStatusCodes
  resource:
    v: http://terminology.hl7.org/CodeSystem/allergyintolerance-verification
    link: http://terminology.hl7.org/CodeSystem/allergyintolerance-verification
related artifact:
  type:
    v: depends-on
  display:
    v: Code system Diagnosis Role
  resource:
    v: http://terminology.hl7.org/CodeSystem/diagnosis-role
    link: http://terminology.hl7.org/CodeSystem/diagnosis-role
related artifact:
  type:
    v: depends-on
  display:
    v: Code system LOINC
  resource:
    v: http://loinc.org
    link: http://loinc.org
related artifact:
  type:
    v: depends-on
  display:
    v: Code system MedicationRequestCategory
  resource:
    v: http://terminology.hl7.org/CodeSystem/medicationrequest-category
    link: http://terminology.hl7.org/CodeSystem/medicationrequest-category
related artifact:
  type:
    v: depends-on
  display:
    v: Code system ConditionVerificationStatusCodes

type:
  v: depends-on
display:
  v: Code system SNOMEDCT
resource:
  v: http://snomed.info/sct
  link: http://snomed.info/sct

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

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
  link: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.117.1.7.1.292

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
  link: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307

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
  link: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143

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

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

name:
  v: Inpatient Encounter
use:
  v: out
min:
  v: 0
max:
  v: *
type:
  v: Encounter

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

type:
  v: Encounter
profile:
  v: http://hl7.org/fhir/StructureDefinition/Encounter
  link: http://hl7.org/fhir/StructureDefinition/Encounter
must support:
  v: type
must support:
  v: status
must support:
  v: period
must support:
  v: location
must support:
  v: condition
must support:
  v: condition.reference
must support:
  v: rank
code filter:
  path:
    v: type
  value set:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307
    link: 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
  link: http://hl7.org/fhir/StructureDefinition/Encounter
must support:
  v: type
must support:
  v: period
must support:
  v: location
must support:
  v: condition
must support:
  v: condition.reference
must support:
  v: rank
code filter:
  path:
    v: type
  value set:
    v: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1111.143
    link: 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
  link: http://hl7.org/fhir/StructureDefinition/Encounter
must support:
  v: type
must support:
  v: status
must support:
  v: period
must support:
  v: location
must support:
  v: condition
must support:
  v: condition.reference
must support:
  v: rank
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
    link: 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
  link: http://hl7.org/fhir/StructureDefinition/Condition
must support:
  v: id

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

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

content type:
  v: text/cql
url:
  v: http://fhir.org/guides/cqf/aphl/chronic-ds/MATGlobalCommonFunctionsFHIR4.cql

content type:
  v: application/elm+xml

content type:
  v: application/elm+json