cqframework / draft-measures

Draft Measures Working Content Repository
9 stars 19 forks source link

Remove "discharge" from MedicationRequest.category #40

Open p9g opened 4 years ago

p9g commented 4 years ago

References: [1] https://jira.hl7.org/browse/FHIR-25555 [2] http://build.fhir.org/valueset-medicationrequest-admin-location.html [3] http://build.fhir.org/valueset-medicationrequest-category.html [4] http://build.fhir.org/medicationrequest-definitions.html#MedicationRequest.category [5] http://hl7.org/fhir/us/qicore/STU4/qdm-to-qicore.html#8173-medication-discharge

The code "discharge" should not be used as discussed in [1]. Remove that code from MATGlobalCommon. Update measures that check for MedicationRequest.category ~ "discharge"; only check for MedicationRequest.category ~ "community"

QDM to QI-Core mapping [5] correctly specifies Constrain category to “Community” (even though QDM "Medication, Discharge" has no setting attribute), consistent with [1].

e.g., https://github.com/cqframework/draft-measures/blob/06a7a43651e338bc38abd99709689dbfcc794eb0/bundles/release/fhir4/EXM104_FHIR4-8.1.000/EXM104_FHIR4-8.1.000-files/EXM104_FHIR4-8.1.000.cql#L84

Latest definition [4] points to [2] instead of [3]; [2] does not have discharge.