Title: |
CMS68FHIRDocumentationofCurrentMedications |
Id: |
CMS68FHIRDocumentationofCurrentMedications |
Version: |
0.3.000 |
Url: |
https://madie.cms.gov/Library/CMS68FHIRDocumentationofCurrentMedications |
official
|
CMS68FHIRDocumentationofCurrentMedications
|
Type: |
system: http://terminology.hl7.org/CodeSystem/library-type
code: logic-library
|
Date: |
2025-04-15T18:37:31+00:00 |
Publisher: |
Centers for Medicare & Medicaid Services (CMS) |
Description: |
CMS68FHIRDocumentationofCurrentMedications |
Related Artifacts: |
Dependencies
- https://madie.cms.gov/Library/SupplementalDataElements|5.1.000
- https://madie.cms.gov/Library/FHIRHelpers|4.4.000
- https://madie.cms.gov/Library/QICoreCommon|4.0.000
- http://snomed.info/sct
- http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1834
|
Data Requirements: |
Type | Profile | MS | Code Filter |
Patient |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient |
;; |
|
Procedure |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure |
;;;; |
code filter:
path: code
system: http://snomed.info/sct
code: 428191000124101
display: Documentation of current medications (procedure)
|
Encounter |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter |
;;;; |
code filter:
path: type
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1834
|
Coverage |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-coverage |
;; |
code filter:
path: type
value set: http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591
|
Procedure |
http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedurenotdone |
;;;;; |
code filter:
path: code
system: http://snomed.info/sct
code: 428191000124101
display: Documentation of current medications (procedure)
|
|
Content: text/cql |
library CMS68FHIRDocumentationofCurrentMedications version '0.3.000'
using QICore version '6.0.0'
include FHIRHelpers version '4.4.000' called FHIRHelpers
include QICoreCommon version '4.0.000' called QICoreCommon
include SupplementalDataElements version '5.1.000' called SDE
codesystem "SNOMEDCT": 'http://snomed.info/sct'
valueset "Encounter to Document Medications": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.600.1.1834'
code "Acute health crisis (finding)": '705016005' from "SNOMEDCT" display 'Acute health crisis (finding)'
code "Documentation of current medications (procedure)": '428191000124101' from "SNOMEDCT" display 'Documentation of current medications (procedure)'
parameter "Measurement Period" Interval<DateTime>
context Patient
define "SDE Ethnicity":
SDE."SDE Ethnicity"
define "SDE Payer":
SDE."SDE Payer"
define "SDE Race":
SDE."SDE Race"
define "SDE Sex":
SDE."SDE Sex"
define "Denominator":
"Initial Population"
define "Qualifying Encounter During Day of Measurement Period":
["Encounter": type in "Encounter to Document Medications"] ValidEncounter
where ValidEncounter.status = 'finished'
and ValidEncounter.period during day of "Measurement Period"
define "Initial Population":
"Qualifying Encounter During Day of Measurement Period" QualifyingEncounter
define "Numerator":
"Qualifying Encounter During Day of Measurement Period" QualifyingEncounter
with [Procedure: "Documentation of current medications (procedure)"] MedicationsDocumented
such that MedicationsDocumented.performed.toInterval ( ) ends during QualifyingEncounter.period
and MedicationsDocumented.status = 'completed'
define "Denominator Exceptions":
"Qualifying Encounter During Day of Measurement Period" QualifyingEncounter
with [ProcedureNotDone: code ~ "Documentation of current medications (procedure)"] MedicationsNotDocumented
such that MedicationsNotDocumented.recorded during QualifyingEncounter.period
and MedicationsNotDocumented.status = 'not-done'
and exists ( MedicationsNotDocumented.reasonCode reasonItem
where reasonItem ~ "Acute health crisis (finding)"
)
|
|