From bddda3e60fea3f0c02a9c7dcfe241d4b72e0dba9 Mon Sep 17 00:00:00 2001 From: mdnazmulkarim Date: Tue, 21 Apr 2020 00:31:27 -0600 Subject: [PATCH 1/4] fix EXM130 toString exception --- fhir4/input/pagecontent/cql/Hospice_FHIR4-1.0.000.cql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhir4/input/pagecontent/cql/Hospice_FHIR4-1.0.000.cql b/fhir4/input/pagecontent/cql/Hospice_FHIR4-1.0.000.cql index 26f6f602..bca169fc 100644 --- a/fhir4/input/pagecontent/cql/Hospice_FHIR4-1.0.000.cql +++ b/fhir4/input/pagecontent/cql/Hospice_FHIR4-1.0.000.cql @@ -34,7 +34,7 @@ define function "Has Hospice"(MeasurementPeriod Interval): ) or exists ( [ServiceRequest: "Hospice care ambulatory"] HospiceOrder - where HospiceOrder.intent = 'order' + where HospiceOrder.intent.value = 'order' and FHIRHelpers.ToDateTime(HospiceOrder.authoredOn) in day of MeasurementPeriod ) or exists ( From 65dd5b6856479d034161b3faf4198c6073108587 Mon Sep 17 00:00:00 2001 From: mdnazmulkarim Date: Tue, 21 Apr 2020 00:38:14 -0600 Subject: [PATCH 2/4] fix numerator count for demon-EXM-130-FHIR4 test --- ...surereport-denom-EXM130-FHIR4-7.2.000-expectedresults.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhir4/input/tests/EXM130_FHIR4-7.2.000/denom-EXM130-FHIR4/measurereport-denom-EXM130-FHIR4-7.2.000-expectedresults.json b/fhir4/input/tests/EXM130_FHIR4-7.2.000/denom-EXM130-FHIR4/measurereport-denom-EXM130-FHIR4-7.2.000-expectedresults.json index 07c5dcea..96355252 100644 --- a/fhir4/input/tests/EXM130_FHIR4-7.2.000/denom-EXM130-FHIR4/measurereport-denom-EXM130-FHIR4-7.2.000-expectedresults.json +++ b/fhir4/input/tests/EXM130_FHIR4-7.2.000/denom-EXM130-FHIR4/measurereport-denom-EXM130-FHIR4-7.2.000-expectedresults.json @@ -192,8 +192,8 @@ "reference": "Patient/denom-EXM130-FHIR4" }, "period": { - "start": "2018-12-31T17:00:00-07:00", - "end": "2019-12-30T17:00:00-07:00" + "start": "2019-01-01T00:00:00-07:00", + "end": "2019-12-31T23:59:59-07:00" }, "group": [ { From 62a0dd8bc8d96f509a9bbd6dc2ca987492381a50 Mon Sep 17 00:00:00 2001 From: mdnazmulkarim Date: Tue, 21 Apr 2020 21:51:04 -0600 Subject: [PATCH 3/4] workaround to an issue with FHIRHelpers EXM 130 for ToString RequestIntent --- .../pagecontent/cql/EXM130_FHIR4-7.2.001.cql | 104 +++++ .../pagecontent/cql/Hospice_FHIR4-1.0.000.cql | 2 +- .../pagecontent/cql/Hospice_FHIR4-1.0.001.cql | 44 ++ .../Encounter/denom-EXM130-FHIR4-1.json | 33 ++ .../Patient/denom-EXM130-FHIR4.json | 63 +++ .../Procedure/denom-EXM130-FHIR4-2.json | 26 ++ ...-EXM130-FHIR4-7.2.000-expectedresults.json | 261 +++++++++++ .../Encounter/numer-EXM130-FHIR4-4.json | 33 ++ .../Patient/numer-EXM130-FHIR4.json | 63 +++ .../Procedure/numer-EXM130-FHIR4-1.json | 26 ++ ...-EXM130-FHIR4-7.2.000-expectedresults.json | 261 +++++++++++ .../tests-denom-EXM130-FHIR4-bundle.json | 218 +++++++++ .../tests-denom-EXM130_FHIR4-bundle.json | 415 ++++++++++++++++++ .../tests-numer-EXM130-FHIR4-bundle.json | 218 +++++++++ .../tests-numer-EXM130_FHIR4-bundle.json | 415 ++++++++++++++++++ 15 files changed, 2181 insertions(+), 1 deletion(-) create mode 100644 fhir4/input/pagecontent/cql/EXM130_FHIR4-7.2.001.cql create mode 100644 fhir4/input/pagecontent/cql/Hospice_FHIR4-1.0.001.cql create mode 100644 fhir4/input/tests/EXM130_FHIR4-7.2.001/denom-EXM130-FHIR4/Encounter/denom-EXM130-FHIR4-1.json create mode 100644 fhir4/input/tests/EXM130_FHIR4-7.2.001/denom-EXM130-FHIR4/Patient/denom-EXM130-FHIR4.json create mode 100644 fhir4/input/tests/EXM130_FHIR4-7.2.001/denom-EXM130-FHIR4/Procedure/denom-EXM130-FHIR4-2.json create mode 100644 fhir4/input/tests/EXM130_FHIR4-7.2.001/denom-EXM130-FHIR4/measurereport-denom-EXM130-FHIR4-7.2.000-expectedresults.json create mode 100644 fhir4/input/tests/EXM130_FHIR4-7.2.001/numer-EXM130-FHIR4/Encounter/numer-EXM130-FHIR4-4.json create mode 100644 fhir4/input/tests/EXM130_FHIR4-7.2.001/numer-EXM130-FHIR4/Patient/numer-EXM130-FHIR4.json create mode 100644 fhir4/input/tests/EXM130_FHIR4-7.2.001/numer-EXM130-FHIR4/Procedure/numer-EXM130-FHIR4-1.json create mode 100644 fhir4/input/tests/EXM130_FHIR4-7.2.001/numer-EXM130-FHIR4/measurereport-numer-EXM130-FHIR4-7.2.000-expectedresults.json create mode 100644 fhir4/input/tests/EXM130_FHIR4-7.2.001/tests-denom-EXM130-FHIR4-bundle.json create mode 100644 fhir4/input/tests/EXM130_FHIR4-7.2.001/tests-denom-EXM130_FHIR4-bundle.json create mode 100644 fhir4/input/tests/EXM130_FHIR4-7.2.001/tests-numer-EXM130-FHIR4-bundle.json create mode 100644 fhir4/input/tests/EXM130_FHIR4-7.2.001/tests-numer-EXM130_FHIR4-bundle.json diff --git a/fhir4/input/pagecontent/cql/EXM130_FHIR4-7.2.001.cql b/fhir4/input/pagecontent/cql/EXM130_FHIR4-7.2.001.cql new file mode 100644 index 00000000..4b5b9794 --- /dev/null +++ b/fhir4/input/pagecontent/cql/EXM130_FHIR4-7.2.001.cql @@ -0,0 +1,104 @@ +library EXM130_FHIR4 version '7.2.000' + +/* +Based on CMS130v7 - Colorectal Cancer Screening +*/ + +/* +This example is a work in progress and should not be considered a final specification +or recommendation for guidance. This example will help guide and direct the process +of finding conventions and usage patterns that meet the needs of the various stakeholders +in the measure development community. +*/ + +using FHIR version '4.0.0' + +include FHIRHelpers version '4.0.0' called FHIRHelpers +include Hospice_FHIR4 version '1.0.001' called Hospice +include AdultOutpatientEncounters_FHIR4 version '1.1.000' called AdultOutpatientEncounters +include MATGlobalCommonFunctions_FHIR4 version '4.0.000' called Global +include SupplementalDataElements_FHIR4 version '1.0.0' called SDE + +valueset "ONC Administrative Sex": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1' +valueset "Race": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.836' +valueset "Ethnicity": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.837' +valueset "Payer": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.114222.4.11.3591' +valueset "Colonoscopy": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1020' +valueset "Fecal Occult Blood Test (FOBT)": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1011' +valueset "Flexible Sigmoidoscopy": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1010' +valueset "Malignant Neoplasm of Colon": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1001' +valueset "Total Colectomy": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.198.12.1019' +valueset "FIT DNA": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1039' +valueset "CT Colonography": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.464.1003.108.12.1038' + +parameter "Measurement Period" Interval + default Interval[@2019-01-01T00:00:00.0, @2020-01-01T00:00:00.0) + +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": + true + +define "Flexible Sigmoidoscopy Performed": + [Procedure: "Flexible Sigmoidoscopy"] FlexibleSigmoidoscopy + where FlexibleSigmoidoscopy.status = 'completed' + and Global."Normalize Interval"(FlexibleSigmoidoscopy.performed) ends 5 years or less on or before end of "Measurement Period" + +define "CT Colonography Performed": + [Procedure: "CT Colonography"] Colonography + where Colonography.status = 'completed' + and Global."Normalize Interval"(Colonography.performed) ends 5 years or less on or before end of "Measurement Period" + +define "Total Colectomy Performed": + [Procedure: "Total Colectomy"] Colectomy + where Colectomy.status = 'completed' + and Global."Normalize Interval"(Colectomy.performed) starts on or before end of "Measurement Period" + +define "Malignant Neoplasm Ever": + [Condition: "Malignant Neoplasm of Colon"] ColorectalCancer + where Global."Normalize Onset"(ColorectalCancer.onset) starts on or before end of "Measurement Period" + +define "Fecal Occult Blood Test Performed": + [Observation: "Fecal Occult Blood Test (FOBT)"] FecalOccultResult + where FecalOccultResult.status in {'final', 'amended', 'corrected', 'preliminary'} + and FecalOccultResult.value is not null + and Global."Normalize Interval"(FecalOccultResult.effective) during day of "Measurement Period" + +define "Fecal Immunochemical Test DNA": + [Observation: "FIT DNA"] FitDNA + where FitDNA.status in {'final', 'amended', 'corrected', 'preliminary'} + and FitDNA.value is not null + and Global."Normalize Interval"(FitDNA.effective) occurs 3 years or less on or before day of end of "Measurement Period" + +define "Colonoscopy Performed": + [Procedure: "Colonoscopy"] Colonoscopy + where Colonoscopy.status = 'completed' + and Global."Normalize Onset"(Colonoscopy.performed) ends 10 years or less on or before end of "Measurement Period" + +define "Numerator": + exists "Colonoscopy Performed" + or exists "Fecal Occult Blood Test Performed" + or exists "Flexible Sigmoidoscopy Performed" + or exists "Fecal Immunochemical Test DNA" + or exists "CT Colonography Performed" + +define "Denominator Exclusion": + Hospice."Has Hospice"("Measurement Period") + or exists "Malignant Neoplasm Ever" + or exists "Total Colectomy Performed" + +define "Initial Population": + Global."CalendarAgeInYearsAt"(FHIRHelpers.ToDate(Patient.birthDate), start of "Measurement Period") in Interval[50, 75] + and exists AdultOutpatientEncounters."Qualifying Encounters"("Measurement Period") diff --git a/fhir4/input/pagecontent/cql/Hospice_FHIR4-1.0.000.cql b/fhir4/input/pagecontent/cql/Hospice_FHIR4-1.0.000.cql index bca169fc..26f6f602 100644 --- a/fhir4/input/pagecontent/cql/Hospice_FHIR4-1.0.000.cql +++ b/fhir4/input/pagecontent/cql/Hospice_FHIR4-1.0.000.cql @@ -34,7 +34,7 @@ define function "Has Hospice"(MeasurementPeriod Interval): ) or exists ( [ServiceRequest: "Hospice care ambulatory"] HospiceOrder - where HospiceOrder.intent.value = 'order' + where HospiceOrder.intent = 'order' and FHIRHelpers.ToDateTime(HospiceOrder.authoredOn) in day of MeasurementPeriod ) or exists ( diff --git a/fhir4/input/pagecontent/cql/Hospice_FHIR4-1.0.001.cql b/fhir4/input/pagecontent/cql/Hospice_FHIR4-1.0.001.cql new file mode 100644 index 00000000..8d993a21 --- /dev/null +++ b/fhir4/input/pagecontent/cql/Hospice_FHIR4-1.0.001.cql @@ -0,0 +1,44 @@ +library Hospice_FHIR4 version '1.0.001' + +/* +This example is a work in progress and should not be considered a final specification +or recommendation for guidance. This example will help guide and direct the process +of finding conventions and usage patterns that meet the needs of the various stakeholders +in the measure development community. +*/ + +using FHIR version '4.0.0' + +include MATGlobalCommonFunctions_FHIR4 version '4.0.000' called Global +include FHIRHelpers version '4.0.0' called FHIRHelpers + +codesystem "SNOMEDCT:2017-09": 'http://snomed.info/sct/731000124108' version 'http://snomed.info/sct/731000124108/version/201709' + +valueset "Encounter Inpatient": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113883.3.666.5.307' +valueset "Hospice care ambulatory": 'http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1108.15' + +code "Discharge to healthcare facility for hospice care (procedure)": '428371000124100' from "SNOMEDCT:2017-09" display 'Discharge to healthcare facility for hospice care (procedure)' +code "Discharge to home for hospice care (procedure)": '428361000124107' from "SNOMEDCT:2017-09" display 'Discharge to home for hospice care (procedure)' + +context Patient + +define function "Has Hospice"(MeasurementPeriod Interval): + exists ( + [Encounter: "Encounter Inpatient"] DischargeHospice + where DischargeHospice.status = 'finished' + and ( + FHIRHelpers.ToConcept(DischargeHospice.hospitalization.dischargeDisposition).codes[0] ~ "Discharge to home for hospice care (procedure)" + or FHIRHelpers.ToConcept(DischargeHospice.hospitalization.dischargeDisposition).codes[0] ~ "Discharge to healthcare facility for hospice care (procedure)" + ) + and DischargeHospice.period ends during day of MeasurementPeriod + ) + or exists ( + [ServiceRequest: "Hospice care ambulatory"] HospiceOrder + where HospiceOrder.intent.value = 'order' + and FHIRHelpers.ToDateTime(HospiceOrder.authoredOn) in day of MeasurementPeriod + ) + or exists ( + [Procedure: "Hospice care ambulatory"] HospicePerformed + where HospicePerformed.status = 'completed' + and Global."Normalize Interval"(HospicePerformed.performed) overlaps MeasurementPeriod + ) diff --git a/fhir4/input/tests/EXM130_FHIR4-7.2.001/denom-EXM130-FHIR4/Encounter/denom-EXM130-FHIR4-1.json b/fhir4/input/tests/EXM130_FHIR4-7.2.001/denom-EXM130-FHIR4/Encounter/denom-EXM130-FHIR4-1.json new file mode 100644 index 00000000..85bc1655 --- /dev/null +++ b/fhir4/input/tests/EXM130_FHIR4-7.2.001/denom-EXM130-FHIR4/Encounter/denom-EXM130-FHIR4-1.json @@ -0,0 +1,33 @@ +{ + "resourceType": "Encounter", + "id": "denom-EXM130-FHIR4-1", + "subject": { + "reference": "Patient/denom-EXM130-FHIR4" + }, + "meta": { + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" + ] + }, + "status": "finished", + "class": { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "AMB", + "display": "ambulatory" + }, + "type": [ + { + "coding": [ + { + "system": "http://www.ama-assn.org/go/cpt", + "code": "99201", + "display": "Office or other outpatient visit for the evaluation and management of a new patient, which requires these 3 key components: A problem focused history; A problem focused examination; Straightforward medical decision making. Counseling and/or coordination of care with other physicians, other qualified health care professionals, or agencies are provided consistent with the nature of the problem(s) and the patient's and/or family's needs. Usually, the presenting problem(s) are self limited or minor. Typically, 10 minutes are spent face-to-face with the patient and/or family." + } + ] + } + ], + "period": { + "start": "2019-05-30T00:00:00-00:00", + "end": "2019-05-31T00:00:00-00:00" + } +} \ No newline at end of file diff --git a/fhir4/input/tests/EXM130_FHIR4-7.2.001/denom-EXM130-FHIR4/Patient/denom-EXM130-FHIR4.json b/fhir4/input/tests/EXM130_FHIR4-7.2.001/denom-EXM130-FHIR4/Patient/denom-EXM130-FHIR4.json new file mode 100644 index 00000000..11d05bde --- /dev/null +++ b/fhir4/input/tests/EXM130_FHIR4-7.2.001/denom-EXM130-FHIR4/Patient/denom-EXM130-FHIR4.json @@ -0,0 +1,63 @@ +{ + "resourceType": "Patient", + "id": "denom-EXM130-FHIR4", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient" + ] + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2028-9", + "display": "Asian" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2135-2", + "display": "Hispanic or Latino" + } + } + ] + } + ], + "identifier": [ + { + "use": "usual", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "MR", + "display": "Medical Record Number" + } + ] + }, + "system": "http://hospital.smarthealthit.org", + "value": "999999992" + } + ], + "name": [ + { + "family": "Dere", + "given": [ + "Ben" + ] + } + ], + "birthDate": "1965-01-01", + "gender": "male" + } \ No newline at end of file diff --git a/fhir4/input/tests/EXM130_FHIR4-7.2.001/denom-EXM130-FHIR4/Procedure/denom-EXM130-FHIR4-2.json b/fhir4/input/tests/EXM130_FHIR4-7.2.001/denom-EXM130-FHIR4/Procedure/denom-EXM130-FHIR4-2.json new file mode 100644 index 00000000..26a95332 --- /dev/null +++ b/fhir4/input/tests/EXM130_FHIR4-7.2.001/denom-EXM130-FHIR4/Procedure/denom-EXM130-FHIR4-2.json @@ -0,0 +1,26 @@ +{ + "resourceType": "Procedure", + "id": "denom-EXM130-FHIR4-2", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure" + ] + }, + "status": "completed", + "code": { + "coding": [ + { + "system": "http://www.ama-assn.org/go/cpt", + "code": "44393", + "display": "Colonoscopy through stoma; with ablation of tumor(s), polyp(s), or other lesion(s) not amenable to removal by hot biopsy forceps, bipolar cautery or snare technique" + } + ] + }, + "subject": { + "reference": "Patient/denom-EXM130-FHIR4" + }, + "performedPeriod": { + "start": "2009-12-30T12:00:00", + "end": "2009-12-30T13:00:00" + } +} \ No newline at end of file diff --git a/fhir4/input/tests/EXM130_FHIR4-7.2.001/denom-EXM130-FHIR4/measurereport-denom-EXM130-FHIR4-7.2.000-expectedresults.json b/fhir4/input/tests/EXM130_FHIR4-7.2.001/denom-EXM130-FHIR4/measurereport-denom-EXM130-FHIR4-7.2.000-expectedresults.json new file mode 100644 index 00000000..96355252 --- /dev/null +++ b/fhir4/input/tests/EXM130_FHIR4-7.2.001/denom-EXM130-FHIR4/measurereport-denom-EXM130-FHIR4-7.2.000-expectedresults.json @@ -0,0 +1,261 @@ +{ + "resourceType": "MeasureReport", + "contained": [ + { + "resourceType": "Bundle", + "id": "a1ff4631-43c9-4def-acc4-84afceb28d83", + "type": "collection", + "entry": [ + { + "fullUrl": "823c4ee0-d1a8-447c-807d-96b89509b07a", + "resource": { + "resourceType": "List", + "id": "823c4ee0-d1a8-447c-807d-96b89509b07a", + "title": "initial-population", + "entry": [ + { + "item": { + "reference": "denom-EXM130-FHIR4-1" + } + }, + { + "item": { + "reference": "denom-EXM130-FHIR4" + } + } + ] + } + }, + { + "fullUrl": "Procedure/denom-EXM130-FHIR4-2", + "resource": { + "resourceType": "Procedure", + "id": "denom-EXM130-FHIR4-2", + "meta": { + "versionId": "1", + "lastUpdated": "2020-01-29T16:25:20.081-07:00", + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure" + ] + }, + "status": "completed", + "code": { + "coding": [ + { + "system": "http://www.ama-assn.org/go/cpt", + "code": "44393", + "display": "Colonoscopy through stoma; with ablation of tumor(s), polyp(s), or other lesion(s) not amenable to removal by hot biopsy forceps, bipolar cautery or snare technique" + } + ] + }, + "subject": { + "reference": "Patient/denom-EXM130-FHIR4" + }, + "performedPeriod": { + "start": "2009-12-30T12:00:00", + "end": "2009-12-30T13:00:00" + } + } + }, + { + "fullUrl": "Encounter/denom-EXM130-FHIR4-1", + "resource": { + "resourceType": "Encounter", + "id": "denom-EXM130-FHIR4-1", + "meta": { + "versionId": "1", + "lastUpdated": "2020-01-29T16:25:20.081-07:00", + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" + ] + }, + "status": "finished", + "class": { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "AMB", + "display": "ambulatory" + }, + "type": [ + { + "coding": [ + { + "system": "http://www.ama-assn.org/go/cpt", + "code": "99201", + "display": "Office or other outpatient visit for the evaluation and management of a new patient, which requires these 3 key components: A problem focused history; A problem focused examination; Straightforward medical decision making. Counseling and/or coordination of care with other physicians, other qualified health care professionals, or agencies are provided consistent with the nature of the problem(s) and the patient's and/or family's needs. Usually, the presenting problem(s) are self limited or minor. Typically, 10 minutes are spent face-to-face with the patient and/or family." + } + ] + } + ], + "subject": { + "reference": "Patient/denom-EXM130-FHIR4" + }, + "period": { + "start": "2019-05-30T00:00:00-00:00", + "end": "2019-05-31T00:00:00-00:00" + } + } + }, + { + "fullUrl": "9292a1f6-80bf-401b-a856-9fc4f66b1647", + "resource": { + "resourceType": "List", + "id": "9292a1f6-80bf-401b-a856-9fc4f66b1647", + "title": "numerator", + "entry": [ + { + "item": { + "reference": "denom-EXM130-FHIR4-2" + } + } + ] + } + }, + { + "fullUrl": "Patient/denom-EXM130-FHIR4", + "resource": { + "resourceType": "Patient", + "id": "denom-EXM130-FHIR4", + "meta": { + "versionId": "1", + "lastUpdated": "2020-01-29T16:25:20.081-07:00", + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient" + ] + }, + "text": { + "status": "generated", + "div": "
Ben DERE
Identifier999999992
Date of birth01 January 1965
" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2028-9", + "display": "Asian" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2135-2", + "display": "Hispanic or Latino" + } + } + ] + } + ], + "identifier": [ + { + "use": "usual", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "MR", + "display": "Medical Record Number" + } + ] + }, + "system": "http://hospital.smarthealthit.org", + "value": "999999992" + } + ], + "name": [ + { + "family": "Dere", + "given": [ + "Ben" + ] + } + ], + "gender": "male", + "birthDate": "1965-01-01" + } + } + ] + } + ], + "status": "complete", + "type": "individual", + "measure": "Measure/measure-EXM130-FHIR4-7.2.000", + "subject": { + "reference": "Patient/denom-EXM130-FHIR4" + }, + "period": { + "start": "2019-01-01T00:00:00-07:00", + "end": "2019-12-31T23:59:59-07:00" + }, + "group": [ + { + "id": "group-1", + "population": [ + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "initial-population", + "display": "Initial Population" + } + ] + }, + "count": 1 + }, + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "numerator", + "display": "Numerator" + } + ] + }, + "count": 0 + }, + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "denominator", + "display": "Denominator" + } + ] + }, + "count": 1 + }, + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "denominator-exclusion", + "display": "Denominator Exclusion" + } + ] + }, + "count": 0 + } + ], + "measureScore": { + "value": 0.0 + } + } + ], + "evaluatedResource": [ + { + "reference": "#a1ff4631-43c9-4def-acc4-84afceb28d83" + } + ] +} \ No newline at end of file diff --git a/fhir4/input/tests/EXM130_FHIR4-7.2.001/numer-EXM130-FHIR4/Encounter/numer-EXM130-FHIR4-4.json b/fhir4/input/tests/EXM130_FHIR4-7.2.001/numer-EXM130-FHIR4/Encounter/numer-EXM130-FHIR4-4.json new file mode 100644 index 00000000..0580d843 --- /dev/null +++ b/fhir4/input/tests/EXM130_FHIR4-7.2.001/numer-EXM130-FHIR4/Encounter/numer-EXM130-FHIR4-4.json @@ -0,0 +1,33 @@ +{ + "resourceType": "Encounter", + "id": "numer-EXM130-FHIR4-4", + "subject": { + "reference": "Patient/numer-EXM130-FHIR4" + }, + "meta": { + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" + ] + }, + "status": "finished", + "class": { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "AMB", + "display": "ambulatory" + }, + "type": [ + { + "coding": [ + { + "system": "http://www.ama-assn.org/go/cpt", + "code": "99201", + "display": "Office or other outpatient visit for the evaluation and management of a new patient, which requires these 3 key components: A problem focused history; A problem focused examination; Straightforward medical decision making. Counseling and/or coordination of care with other physicians, other qualified health care professionals, or agencies are provided consistent with the nature of the problem(s) and the patient's and/or family's needs. Usually, the presenting problem(s) are self limited or minor. Typically, 10 minutes are spent face-to-face with the patient and/or family." + } + ] + } + ], + "period": { + "start": "2019-05-30T00:00:00.0", + "end": "2019-05-31T00:00:00.0" + } +} \ No newline at end of file diff --git a/fhir4/input/tests/EXM130_FHIR4-7.2.001/numer-EXM130-FHIR4/Patient/numer-EXM130-FHIR4.json b/fhir4/input/tests/EXM130_FHIR4-7.2.001/numer-EXM130-FHIR4/Patient/numer-EXM130-FHIR4.json new file mode 100644 index 00000000..b9c08bda --- /dev/null +++ b/fhir4/input/tests/EXM130_FHIR4-7.2.001/numer-EXM130-FHIR4/Patient/numer-EXM130-FHIR4.json @@ -0,0 +1,63 @@ +{ + "resourceType": "Patient", + "id": "numer-EXM130-FHIR4", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient" + ] + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2028-9", + "display": "Asian" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2135-2", + "display": "Hispanic or Latino" + } + } + ] + } + ], + "identifier": [ + { + "use": "usual", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "MR", + "display": "Medical Record Number" + } + ] + }, + "system": "http://hospital.smarthealthit.org", + "value": "999999992" + } + ], + "name": [ + { + "family": "Blitz", + "given": [ + "Don" + ] + } + ], + "birthDate": "1965-01-01", + "gender": "male" +} \ No newline at end of file diff --git a/fhir4/input/tests/EXM130_FHIR4-7.2.001/numer-EXM130-FHIR4/Procedure/numer-EXM130-FHIR4-1.json b/fhir4/input/tests/EXM130_FHIR4-7.2.001/numer-EXM130-FHIR4/Procedure/numer-EXM130-FHIR4-1.json new file mode 100644 index 00000000..5d414e5d --- /dev/null +++ b/fhir4/input/tests/EXM130_FHIR4-7.2.001/numer-EXM130-FHIR4/Procedure/numer-EXM130-FHIR4-1.json @@ -0,0 +1,26 @@ +{ + "resourceType": "Procedure", + "id": "numer-EXM130-FHIR4-1", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure" + ] + }, + "status": "completed", + "code": { + "coding": [ + { + "system": "http://www.ama-assn.org/go/cpt", + "code": "44393", + "display": "Colonoscopy through stoma; with ablation of tumor(s), polyp(s), or other lesion(s) not amenable to removal by hot biopsy forceps, bipolar cautery or snare technique" + } + ] + }, + "subject": { + "reference": "Patient/numer-EXM130-FHIR4" + }, + "performedPeriod": { + "start": "2010-01-01T00:00:00-06:00", + "end": "2010-01-01T01:00:00-07:00" + } +} diff --git a/fhir4/input/tests/EXM130_FHIR4-7.2.001/numer-EXM130-FHIR4/measurereport-numer-EXM130-FHIR4-7.2.000-expectedresults.json b/fhir4/input/tests/EXM130_FHIR4-7.2.001/numer-EXM130-FHIR4/measurereport-numer-EXM130-FHIR4-7.2.000-expectedresults.json new file mode 100644 index 00000000..79b77a5b --- /dev/null +++ b/fhir4/input/tests/EXM130_FHIR4-7.2.001/numer-EXM130-FHIR4/measurereport-numer-EXM130-FHIR4-7.2.000-expectedresults.json @@ -0,0 +1,261 @@ +{ + "resourceType": "MeasureReport", + "contained": [ + { + "resourceType": "Bundle", + "id": "5c81f095-5b76-43ca-aef9-64fc8d966fc9", + "type": "collection", + "entry": [ + { + "fullUrl": "e94b1008-48ed-4453-92b9-e45783e8d8fd", + "resource": { + "resourceType": "List", + "id": "e94b1008-48ed-4453-92b9-e45783e8d8fd", + "title": "initial-population", + "entry": [ + { + "item": { + "reference": "numer-EXM130-FHIR4" + } + }, + { + "item": { + "reference": "numer-EXM130-FHIR4-4" + } + } + ] + } + }, + { + "fullUrl": "e207b45d-038c-44af-a551-0243745ca7e7", + "resource": { + "resourceType": "List", + "id": "e207b45d-038c-44af-a551-0243745ca7e7", + "title": "numerator", + "entry": [ + { + "item": { + "reference": "numer-EXM130-FHIR4-1" + } + } + ] + } + }, + { + "fullUrl": "Patient/numer-EXM130-FHIR4", + "resource": { + "resourceType": "Patient", + "id": "numer-EXM130-FHIR4", + "meta": { + "versionId": "1", + "lastUpdated": "2020-01-29T16:25:20.081-07:00", + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient" + ] + }, + "text": { + "status": "generated", + "div": "
Don BLITZ
Identifier999999992
Date of birth01 January 1965
" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2028-9", + "display": "Asian" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2135-2", + "display": "Hispanic or Latino" + } + } + ] + } + ], + "identifier": [ + { + "use": "usual", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "MR", + "display": "Medical Record Number" + } + ] + }, + "system": "http://hospital.smarthealthit.org", + "value": "999999992" + } + ], + "name": [ + { + "family": "Blitz", + "given": [ + "Don" + ] + } + ], + "gender": "male", + "birthDate": "1965-01-01" + } + }, + { + "fullUrl": "Encounter/numer-EXM130-FHIR4-4", + "resource": { + "resourceType": "Encounter", + "id": "numer-EXM130-FHIR4-4", + "meta": { + "versionId": "1", + "lastUpdated": "2020-01-29T16:25:20.081-07:00", + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" + ] + }, + "status": "finished", + "class": { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "AMB", + "display": "ambulatory" + }, + "type": [ + { + "coding": [ + { + "system": "http://www.ama-assn.org/go/cpt", + "code": "99201", + "display": "Office or other outpatient visit for the evaluation and management of a new patient, which requires these 3 key components: A problem focused history; A problem focused examination; Straightforward medical decision making. Counseling and/or coordination of care with other physicians, other qualified health care professionals, or agencies are provided consistent with the nature of the problem(s) and the patient's and/or family's needs. Usually, the presenting problem(s) are self limited or minor. Typically, 10 minutes are spent face-to-face with the patient and/or family." + } + ] + } + ], + "subject": { + "reference": "Patient/numer-EXM130-FHIR4" + }, + "period": { + "start": "2019-05-30T00:00:00.0", + "end": "2019-05-31T00:00:00.0" + } + } + }, + { + "fullUrl": "Procedure/numer-EXM130-FHIR4-1", + "resource": { + "resourceType": "Procedure", + "id": "numer-EXM130-FHIR4-1", + "meta": { + "versionId": "1", + "lastUpdated": "2020-01-29T16:25:20.081-07:00", + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure" + ] + }, + "status": "completed", + "code": { + "coding": [ + { + "system": "http://www.ama-assn.org/go/cpt", + "code": "44393", + "display": "Colonoscopy through stoma; with ablation of tumor(s), polyp(s), or other lesion(s) not amenable to removal by hot biopsy forceps, bipolar cautery or snare technique" + } + ] + }, + "subject": { + "reference": "Patient/numer-EXM130-FHIR4" + }, + "performedPeriod": { + "start": "2010-01-01T00:00:00-06:00", + "end": "2010-01-01T01:00:00-07:00" + } + } + } + ] + } + ], + "status": "complete", + "type": "individual", + "measure": "Measure/measure-EXM130-FHIR4-7.2.000", + "subject": { + "reference": "Patient/numer-EXM130-FHIR4" + }, + "period": { + "start": "2018-12-31T17:00:00-07:00", + "end": "2019-12-30T17:00:00-07:00" + }, + "group": [ + { + "id": "group-1", + "population": [ + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "initial-population", + "display": "Initial Population" + } + ] + }, + "count": 1 + }, + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "numerator", + "display": "Numerator" + } + ] + }, + "count": 1 + }, + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "denominator", + "display": "Denominator" + } + ] + }, + "count": 1 + }, + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "denominator-exclusion", + "display": "Denominator Exclusion" + } + ] + }, + "count": 0 + } + ], + "measureScore": { + "value": 1.0 + } + } + ], + "evaluatedResource": [ + { + "reference": "#5c81f095-5b76-43ca-aef9-64fc8d966fc9" + } + ] +} \ No newline at end of file diff --git a/fhir4/input/tests/EXM130_FHIR4-7.2.001/tests-denom-EXM130-FHIR4-bundle.json b/fhir4/input/tests/EXM130_FHIR4-7.2.001/tests-denom-EXM130-FHIR4-bundle.json new file mode 100644 index 00000000..b838cdda --- /dev/null +++ b/fhir4/input/tests/EXM130_FHIR4-7.2.001/tests-denom-EXM130-FHIR4-bundle.json @@ -0,0 +1,218 @@ +{ + "resourceType": "Bundle", + "id": "tests-denom-EXM130-FHIR4-bundle", + "type": "transaction", + "entry": [ + { + "resource": { + "resourceType": "Encounter", + "id": "denom-EXM130-FHIR4-1", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" + ] + }, + "status": "finished", + "class": { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "AMB", + "display": "ambulatory" + }, + "type": [ + { + "coding": [ + { + "system": "http://www.ama-assn.org/go/cpt", + "code": "99201", + "display": "Office or other outpatient visit for the evaluation and management of a new patient, which requires these 3 key components: A problem focused history; A problem focused examination; Straightforward medical decision making. Counseling and/or coordination of care with other physicians, other qualified health care professionals, or agencies are provided consistent with the nature of the problem(s) and the patient's and/or family's needs. Usually, the presenting problem(s) are self limited or minor. Typically, 10 minutes are spent face-to-face with the patient and/or family." + } + ] + } + ], + "subject": { + "reference": "Patient/denom-EXM130-FHIR4" + }, + "period": { + "start": "2019-05-30T00:00:00-00:00", + "end": "2019-05-31T00:00:00-00:00" + } + }, + "request": { + "method": "PUT", + "url": "Encounter/denom-EXM130-FHIR4-1" + } + }, + { + "resource": { + "resourceType": "MeasureReport", + "id": "measurereport-denom-EXM130-FHIR4", + "status": "complete", + "type": "individual", + "period": { + "start": "2018-12-31T17:00:00-07:00", + "end": "2019-12-30T17:00:00-07:00" + }, + "group": [ + { + "id": "group-1", + "population": [ + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "initial-population", + "display": "Initial Population" + } + ] + }, + "count": 1 + }, + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "numerator", + "display": "Numerator" + } + ] + }, + "count": 0 + }, + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "denominator", + "display": "Denominator" + } + ] + }, + "count": 1 + }, + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "denominator-exclusion", + "display": "Denominator Exclusion" + } + ] + }, + "count": 0 + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "MeasureReport/measurereport-denom-EXM130-FHIR4" + } + }, + { + "resource": { + "resourceType": "Patient", + "id": "denom-EXM130-FHIR4", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient" + ] + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2028-9", + "display": "Asian" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2135-2", + "display": "Hispanic or Latino" + } + } + ] + } + ], + "identifier": [ + { + "use": "usual", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "MR", + "display": "Medical Record Number" + } + ] + }, + "system": "http://hospital.smarthealthit.org", + "value": "999999992" + } + ], + "name": [ + { + "family": "Dere", + "given": [ + "Ben" + ] + } + ], + "gender": "male", + "birthDate": "1965-01-01" + }, + "request": { + "method": "PUT", + "url": "Patient/denom-EXM130-FHIR4" + } + }, + { + "resource": { + "resourceType": "Procedure", + "id": "denom-EXM130-FHIR4-2", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure" + ] + }, + "status": "completed", + "code": { + "coding": [ + { + "system": "http://www.ama-assn.org/go/cpt", + "code": "44393", + "display": "Colonoscopy through stoma; with ablation of tumor(s), polyp(s), or other lesion(s) not amenable to removal by hot biopsy forceps, bipolar cautery or snare technique" + } + ] + }, + "subject": { + "reference": "Patient/denom-EXM130-FHIR4" + }, + "performedPeriod": { + "start": "2009-12-30T12:00:00", + "end": "2009-12-30T13:00:00" + } + }, + "request": { + "method": "PUT", + "url": "Procedure/denom-EXM130-FHIR4-2" + } + } + ] +} \ No newline at end of file diff --git a/fhir4/input/tests/EXM130_FHIR4-7.2.001/tests-denom-EXM130_FHIR4-bundle.json b/fhir4/input/tests/EXM130_FHIR4-7.2.001/tests-denom-EXM130_FHIR4-bundle.json new file mode 100644 index 00000000..cc444b4c --- /dev/null +++ b/fhir4/input/tests/EXM130_FHIR4-7.2.001/tests-denom-EXM130_FHIR4-bundle.json @@ -0,0 +1,415 @@ +{ + "resourceType": "Bundle", + "id": "tests-denom-EXM130-FHIR4-bundle", + "type": "transaction", + "entry": [ + { + "resource": { + "resourceType": "Encounter", + "id": "denom-EXM130-FHIR4-1", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" + ] + }, + "status": "finished", + "class": { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "AMB", + "display": "ambulatory" + }, + "type": [ + { + "coding": [ + { + "system": "http://www.ama-assn.org/go/cpt", + "code": "99201", + "display": "Office or other outpatient visit for the evaluation and management of a new patient, which requires these 3 key components: A problem focused history; A problem focused examination; Straightforward medical decision making. Counseling and/or coordination of care with other physicians, other qualified health care professionals, or agencies are provided consistent with the nature of the problem(s) and the patient's and/or family's needs. Usually, the presenting problem(s) are self limited or minor. Typically, 10 minutes are spent face-to-face with the patient and/or family." + } + ] + } + ], + "subject": { + "reference": "Patient/denom-EXM130-FHIR4" + }, + "period": { + "start": "2019-05-30T00:00:00-00:00", + "end": "2019-05-31T00:00:00-00:00" + } + }, + "request": { + "method": "PUT", + "url": "Encounter/denom-EXM130-FHIR4-1" + } + }, + { + "resource": { + "resourceType": "MeasureReport", + "id": "measurereport-denom-EXM130-FHIR4", + "contained": [ + { + "resourceType": "Bundle", + "id": "a1ff4631-43c9-4def-acc4-84afceb28d83", + "type": "collection", + "entry": [ + { + "fullUrl": "823c4ee0-d1a8-447c-807d-96b89509b07a", + "resource": { + "resourceType": "List", + "id": "823c4ee0-d1a8-447c-807d-96b89509b07a", + "title": "initial-population", + "entry": [ + { + "item": { + "reference": "denom-EXM130-FHIR4-1" + } + }, + { + "item": { + "reference": "denom-EXM130-FHIR4" + } + } + ] + } + }, + { + "fullUrl": "Procedure/denom-EXM130-FHIR4-2", + "resource": { + "resourceType": "Procedure", + "id": "denom-EXM130-FHIR4-2", + "meta": { + "versionId": "1", + "lastUpdated": "2020-01-29T16:25:20.081-07:00", + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure" + ] + }, + "status": "completed", + "code": { + "coding": [ + { + "system": "http://www.ama-assn.org/go/cpt", + "code": "44393", + "display": "Colonoscopy through stoma; with ablation of tumor(s), polyp(s), or other lesion(s) not amenable to removal by hot biopsy forceps, bipolar cautery or snare technique" + } + ] + }, + "subject": { + "reference": "Patient/denom-EXM130-FHIR4" + }, + "performedPeriod": { + "start": "2009-12-30T12:00:00", + "end": "2009-12-30T13:00:00" + } + } + }, + { + "fullUrl": "Encounter/denom-EXM130-FHIR4-1", + "resource": { + "resourceType": "Encounter", + "id": "denom-EXM130-FHIR4-1", + "meta": { + "versionId": "1", + "lastUpdated": "2020-01-29T16:25:20.081-07:00", + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" + ] + }, + "status": "finished", + "class": { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "AMB", + "display": "ambulatory" + }, + "type": [ + { + "coding": [ + { + "system": "http://www.ama-assn.org/go/cpt", + "code": "99201", + "display": "Office or other outpatient visit for the evaluation and management of a new patient, which requires these 3 key components: A problem focused history; A problem focused examination; Straightforward medical decision making. Counseling and/or coordination of care with other physicians, other qualified health care professionals, or agencies are provided consistent with the nature of the problem(s) and the patient's and/or family's needs. Usually, the presenting problem(s) are self limited or minor. Typically, 10 minutes are spent face-to-face with the patient and/or family." + } + ] + } + ], + "subject": { + "reference": "Patient/denom-EXM130-FHIR4" + }, + "period": { + "start": "2019-05-30T00:00:00-00:00", + "end": "2019-05-31T00:00:00-00:00" + } + } + }, + { + "fullUrl": "9292a1f6-80bf-401b-a856-9fc4f66b1647", + "resource": { + "resourceType": "List", + "id": "9292a1f6-80bf-401b-a856-9fc4f66b1647", + "title": "numerator", + "entry": [ + { + "item": { + "reference": "denom-EXM130-FHIR4-2" + } + } + ] + } + }, + { + "fullUrl": "Patient/denom-EXM130-FHIR4", + "resource": { + "resourceType": "Patient", + "id": "denom-EXM130-FHIR4", + "meta": { + "versionId": "1", + "lastUpdated": "2020-01-29T16:25:20.081-07:00", + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient" + ] + }, + "text": { + "status": "generated", + "div": "
Ben DERE
Identifier999999992
Date of birth01 January 1965
" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2028-9", + "display": "Asian" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2135-2", + "display": "Hispanic or Latino" + } + } + ] + } + ], + "identifier": [ + { + "use": "usual", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "MR", + "display": "Medical Record Number" + } + ] + }, + "system": "http://hospital.smarthealthit.org", + "value": "999999992" + } + ], + "name": [ + { + "family": "Dere", + "given": [ + "Ben" + ] + } + ], + "gender": "male", + "birthDate": "1965-01-01" + } + } + ] + } + ], + "status": "complete", + "type": "individual", + "measure": "Measure/measure-EXM130-FHIR4-7.2.000", + "subject": { + "reference": "Patient/denom-EXM130-FHIR4" + }, + "period": { + "start": "2018-12-31T17:00:00-07:00", + "end": "2019-12-30T17:00:00-07:00" + }, + "group": [ + { + "id": "group-1", + "population": [ + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "initial-population", + "display": "Initial Population" + } + ] + }, + "count": 1 + }, + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "numerator", + "display": "Numerator" + } + ] + }, + "count": 0 + }, + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "denominator", + "display": "Denominator" + } + ] + }, + "count": 1 + }, + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "denominator-exclusion", + "display": "Denominator Exclusion" + } + ] + }, + "count": 0 + } + ], + "measureScore": { + "value": 0.0 + } + } + ], + "evaluatedResource": [ + { + "reference": "#a1ff4631-43c9-4def-acc4-84afceb28d83" + } + ] + }, + "request": { + "method": "PUT", + "url": "MeasureReport/measurereport-denom-EXM130-FHIR4" + } + }, + { + "resource": { + "resourceType": "Patient", + "id": "denom-EXM130-FHIR4", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient" + ] + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2028-9", + "display": "Asian" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2135-2", + "display": "Hispanic or Latino" + } + } + ] + } + ], + "identifier": [ + { + "use": "usual", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "MR", + "display": "Medical Record Number" + } + ] + }, + "system": "http://hospital.smarthealthit.org", + "value": "999999992" + } + ], + "name": [ + { + "family": "Dere", + "given": [ + "Ben" + ] + } + ], + "gender": "male", + "birthDate": "1965-01-01" + }, + "request": { + "method": "PUT", + "url": "Patient/denom-EXM130-FHIR4" + } + }, + { + "resource": { + "resourceType": "Procedure", + "id": "denom-EXM130-FHIR4-2", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure" + ] + }, + "status": "completed", + "code": { + "coding": [ + { + "system": "http://www.ama-assn.org/go/cpt", + "code": "44393", + "display": "Colonoscopy through stoma; with ablation of tumor(s), polyp(s), or other lesion(s) not amenable to removal by hot biopsy forceps, bipolar cautery or snare technique" + } + ] + }, + "subject": { + "reference": "Patient/denom-EXM130-FHIR4" + }, + "performedPeriod": { + "start": "2009-12-30T12:00:00", + "end": "2009-12-30T13:00:00" + } + }, + "request": { + "method": "PUT", + "url": "Procedure/denom-EXM130-FHIR4-2" + } + } + ] +} \ No newline at end of file diff --git a/fhir4/input/tests/EXM130_FHIR4-7.2.001/tests-numer-EXM130-FHIR4-bundle.json b/fhir4/input/tests/EXM130_FHIR4-7.2.001/tests-numer-EXM130-FHIR4-bundle.json new file mode 100644 index 00000000..328d4f5f --- /dev/null +++ b/fhir4/input/tests/EXM130_FHIR4-7.2.001/tests-numer-EXM130-FHIR4-bundle.json @@ -0,0 +1,218 @@ +{ + "resourceType": "Bundle", + "id": "tests-numer-EXM130-FHIR4-bundle", + "type": "transaction", + "entry": [ + { + "resource": { + "resourceType": "Encounter", + "id": "numer-EXM130-FHIR4-4", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" + ] + }, + "status": "finished", + "class": { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "AMB", + "display": "ambulatory" + }, + "type": [ + { + "coding": [ + { + "system": "http://www.ama-assn.org/go/cpt", + "code": "99201", + "display": "Office or other outpatient visit for the evaluation and management of a new patient, which requires these 3 key components: A problem focused history; A problem focused examination; Straightforward medical decision making. Counseling and/or coordination of care with other physicians, other qualified health care professionals, or agencies are provided consistent with the nature of the problem(s) and the patient's and/or family's needs. Usually, the presenting problem(s) are self limited or minor. Typically, 10 minutes are spent face-to-face with the patient and/or family." + } + ] + } + ], + "subject": { + "reference": "Patient/numer-EXM130-FHIR4" + }, + "period": { + "start": "2019-05-30T00:00:00.0", + "end": "2019-05-31T00:00:00.0" + } + }, + "request": { + "method": "PUT", + "url": "Encounter/numer-EXM130-FHIR4-4" + } + }, + { + "resource": { + "resourceType": "MeasureReport", + "id": "measurereport-numer-EXM130-FHIR4", + "status": "complete", + "type": "individual", + "period": { + "start": "2018-12-31T17:00:00-07:00", + "end": "2019-12-30T17:00:00-07:00" + }, + "group": [ + { + "id": "group-1", + "population": [ + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "initial-population", + "display": "Initial Population" + } + ] + }, + "count": 1 + }, + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "numerator", + "display": "Numerator" + } + ] + }, + "count": 1 + }, + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "denominator", + "display": "Denominator" + } + ] + }, + "count": 1 + }, + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "denominator-exclusion", + "display": "Denominator Exclusion" + } + ] + }, + "count": 0 + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "MeasureReport/measurereport-numer-EXM130-FHIR4" + } + }, + { + "resource": { + "resourceType": "Patient", + "id": "numer-EXM130-FHIR4", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient" + ] + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2028-9", + "display": "Asian" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2135-2", + "display": "Hispanic or Latino" + } + } + ] + } + ], + "identifier": [ + { + "use": "usual", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "MR", + "display": "Medical Record Number" + } + ] + }, + "system": "http://hospital.smarthealthit.org", + "value": "999999992" + } + ], + "name": [ + { + "family": "Blitz", + "given": [ + "Don" + ] + } + ], + "gender": "male", + "birthDate": "1965-01-01" + }, + "request": { + "method": "PUT", + "url": "Patient/numer-EXM130-FHIR4" + } + }, + { + "resource": { + "resourceType": "Procedure", + "id": "numer-EXM130-FHIR4-1", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure" + ] + }, + "status": "completed", + "code": { + "coding": [ + { + "system": "http://www.ama-assn.org/go/cpt", + "code": "44393", + "display": "Colonoscopy through stoma; with ablation of tumor(s), polyp(s), or other lesion(s) not amenable to removal by hot biopsy forceps, bipolar cautery or snare technique" + } + ] + }, + "subject": { + "reference": "Patient/numer-EXM130-FHIR4" + }, + "performedPeriod": { + "start": "2010-01-01T00:00:00-06:00", + "end": "2010-01-01T01:00:00-07:00" + } + }, + "request": { + "method": "PUT", + "url": "Procedure/numer-EXM130-FHIR4-1" + } + } + ] +} \ No newline at end of file diff --git a/fhir4/input/tests/EXM130_FHIR4-7.2.001/tests-numer-EXM130_FHIR4-bundle.json b/fhir4/input/tests/EXM130_FHIR4-7.2.001/tests-numer-EXM130_FHIR4-bundle.json new file mode 100644 index 00000000..eb43534c --- /dev/null +++ b/fhir4/input/tests/EXM130_FHIR4-7.2.001/tests-numer-EXM130_FHIR4-bundle.json @@ -0,0 +1,415 @@ +{ + "resourceType": "Bundle", + "id": "tests-numer-EXM130-FHIR4-bundle", + "type": "transaction", + "entry": [ + { + "resource": { + "resourceType": "Encounter", + "id": "numer-EXM130-FHIR4-4", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" + ] + }, + "status": "finished", + "class": { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "AMB", + "display": "ambulatory" + }, + "type": [ + { + "coding": [ + { + "system": "http://www.ama-assn.org/go/cpt", + "code": "99201", + "display": "Office or other outpatient visit for the evaluation and management of a new patient, which requires these 3 key components: A problem focused history; A problem focused examination; Straightforward medical decision making. Counseling and/or coordination of care with other physicians, other qualified health care professionals, or agencies are provided consistent with the nature of the problem(s) and the patient's and/or family's needs. Usually, the presenting problem(s) are self limited or minor. Typically, 10 minutes are spent face-to-face with the patient and/or family." + } + ] + } + ], + "subject": { + "reference": "Patient/numer-EXM130-FHIR4" + }, + "period": { + "start": "2019-05-30T00:00:00.0", + "end": "2019-05-31T00:00:00.0" + } + }, + "request": { + "method": "PUT", + "url": "Encounter/numer-EXM130-FHIR4-4" + } + }, + { + "resource": { + "resourceType": "MeasureReport", + "id": "measurereport-numer-EXM130-FHIR4", + "contained": [ + { + "resourceType": "Bundle", + "id": "5c81f095-5b76-43ca-aef9-64fc8d966fc9", + "type": "collection", + "entry": [ + { + "fullUrl": "e94b1008-48ed-4453-92b9-e45783e8d8fd", + "resource": { + "resourceType": "List", + "id": "e94b1008-48ed-4453-92b9-e45783e8d8fd", + "title": "initial-population", + "entry": [ + { + "item": { + "reference": "numer-EXM130-FHIR4" + } + }, + { + "item": { + "reference": "numer-EXM130-FHIR4-4" + } + } + ] + } + }, + { + "fullUrl": "e207b45d-038c-44af-a551-0243745ca7e7", + "resource": { + "resourceType": "List", + "id": "e207b45d-038c-44af-a551-0243745ca7e7", + "title": "numerator", + "entry": [ + { + "item": { + "reference": "numer-EXM130-FHIR4-1" + } + } + ] + } + }, + { + "fullUrl": "Patient/numer-EXM130-FHIR4", + "resource": { + "resourceType": "Patient", + "id": "numer-EXM130-FHIR4", + "meta": { + "versionId": "1", + "lastUpdated": "2020-01-29T16:25:20.081-07:00", + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient" + ] + }, + "text": { + "status": "generated", + "div": "
Don BLITZ
Identifier999999992
Date of birth01 January 1965
" + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2028-9", + "display": "Asian" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2135-2", + "display": "Hispanic or Latino" + } + } + ] + } + ], + "identifier": [ + { + "use": "usual", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "MR", + "display": "Medical Record Number" + } + ] + }, + "system": "http://hospital.smarthealthit.org", + "value": "999999992" + } + ], + "name": [ + { + "family": "Blitz", + "given": [ + "Don" + ] + } + ], + "gender": "male", + "birthDate": "1965-01-01" + } + }, + { + "fullUrl": "Encounter/numer-EXM130-FHIR4-4", + "resource": { + "resourceType": "Encounter", + "id": "numer-EXM130-FHIR4-4", + "meta": { + "versionId": "1", + "lastUpdated": "2020-01-29T16:25:20.081-07:00", + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter" + ] + }, + "status": "finished", + "class": { + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", + "code": "AMB", + "display": "ambulatory" + }, + "type": [ + { + "coding": [ + { + "system": "http://www.ama-assn.org/go/cpt", + "code": "99201", + "display": "Office or other outpatient visit for the evaluation and management of a new patient, which requires these 3 key components: A problem focused history; A problem focused examination; Straightforward medical decision making. Counseling and/or coordination of care with other physicians, other qualified health care professionals, or agencies are provided consistent with the nature of the problem(s) and the patient's and/or family's needs. Usually, the presenting problem(s) are self limited or minor. Typically, 10 minutes are spent face-to-face with the patient and/or family." + } + ] + } + ], + "subject": { + "reference": "Patient/numer-EXM130-FHIR4" + }, + "period": { + "start": "2019-05-30T00:00:00.0", + "end": "2019-05-31T00:00:00.0" + } + } + }, + { + "fullUrl": "Procedure/numer-EXM130-FHIR4-1", + "resource": { + "resourceType": "Procedure", + "id": "numer-EXM130-FHIR4-1", + "meta": { + "versionId": "1", + "lastUpdated": "2020-01-29T16:25:20.081-07:00", + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure" + ] + }, + "status": "completed", + "code": { + "coding": [ + { + "system": "http://www.ama-assn.org/go/cpt", + "code": "44393", + "display": "Colonoscopy through stoma; with ablation of tumor(s), polyp(s), or other lesion(s) not amenable to removal by hot biopsy forceps, bipolar cautery or snare technique" + } + ] + }, + "subject": { + "reference": "Patient/numer-EXM130-FHIR4" + }, + "performedPeriod": { + "start": "2010-01-01T00:00:00-06:00", + "end": "2010-01-01T01:00:00-07:00" + } + } + } + ] + } + ], + "status": "complete", + "type": "individual", + "measure": "Measure/measure-EXM130-FHIR4-7.2.000", + "subject": { + "reference": "Patient/numer-EXM130-FHIR4" + }, + "period": { + "start": "2018-12-31T17:00:00-07:00", + "end": "2019-12-30T17:00:00-07:00" + }, + "group": [ + { + "id": "group-1", + "population": [ + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "initial-population", + "display": "Initial Population" + } + ] + }, + "count": 1 + }, + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "numerator", + "display": "Numerator" + } + ] + }, + "count": 1 + }, + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "denominator", + "display": "Denominator" + } + ] + }, + "count": 1 + }, + { + "code": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/measure-population", + "code": "denominator-exclusion", + "display": "Denominator Exclusion" + } + ] + }, + "count": 0 + } + ], + "measureScore": { + "value": 1.0 + } + } + ], + "evaluatedResource": [ + { + "reference": "#5c81f095-5b76-43ca-aef9-64fc8d966fc9" + } + ] + }, + "request": { + "method": "PUT", + "url": "MeasureReport/measurereport-numer-EXM130-FHIR4" + } + }, + { + "resource": { + "resourceType": "Patient", + "id": "numer-EXM130-FHIR4", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient" + ] + }, + "extension": [ + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-race", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2028-9", + "display": "Asian" + } + } + ] + }, + { + "url": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity", + "extension": [ + { + "url": "ombCategory", + "valueCoding": { + "system": "urn:oid:2.16.840.1.113883.6.238", + "code": "2135-2", + "display": "Hispanic or Latino" + } + } + ] + } + ], + "identifier": [ + { + "use": "usual", + "type": { + "coding": [ + { + "system": "http://terminology.hl7.org/CodeSystem/v2-0203", + "code": "MR", + "display": "Medical Record Number" + } + ] + }, + "system": "http://hospital.smarthealthit.org", + "value": "999999992" + } + ], + "name": [ + { + "family": "Blitz", + "given": [ + "Don" + ] + } + ], + "gender": "male", + "birthDate": "1965-01-01" + }, + "request": { + "method": "PUT", + "url": "Patient/numer-EXM130-FHIR4" + } + }, + { + "resource": { + "resourceType": "Procedure", + "id": "numer-EXM130-FHIR4-1", + "meta": { + "profile": [ + "http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure" + ] + }, + "status": "completed", + "code": { + "coding": [ + { + "system": "http://www.ama-assn.org/go/cpt", + "code": "44393", + "display": "Colonoscopy through stoma; with ablation of tumor(s), polyp(s), or other lesion(s) not amenable to removal by hot biopsy forceps, bipolar cautery or snare technique" + } + ] + }, + "subject": { + "reference": "Patient/numer-EXM130-FHIR4" + }, + "performedPeriod": { + "start": "2010-01-01T00:00:00-06:00", + "end": "2010-01-01T01:00:00-07:00" + } + }, + "request": { + "method": "PUT", + "url": "Procedure/numer-EXM130-FHIR4-1" + } + } + ] +} \ No newline at end of file From 9bddbe2757b3895f1975c479008715a64953458f Mon Sep 17 00:00:00 2001 From: mdnazmulkarim Date: Tue, 21 Apr 2020 21:58:01 -0600 Subject: [PATCH 4/4] update version EXM130 in cql --- fhir4/input/pagecontent/cql/EXM130_FHIR4-7.2.001.cql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhir4/input/pagecontent/cql/EXM130_FHIR4-7.2.001.cql b/fhir4/input/pagecontent/cql/EXM130_FHIR4-7.2.001.cql index 4b5b9794..c077be81 100644 --- a/fhir4/input/pagecontent/cql/EXM130_FHIR4-7.2.001.cql +++ b/fhir4/input/pagecontent/cql/EXM130_FHIR4-7.2.001.cql @@ -1,4 +1,4 @@ -library EXM130_FHIR4 version '7.2.000' +library EXM130_FHIR4 version '7.2.001' /* Based on CMS130v7 - Colorectal Cancer Screening