This document describes the process of updating a pure FHIR-based measure to a QICore-based measure
Place the MAT export in the bundles\mat directory and extract the contents into a sub-folder. For example:
bundles\mat\CMS143FHIR-v0-0-003-FHIR-4-0-1\CMS143FHIR-v0-0-003-FHIR-4-0-1.json
Use the CQFTooling ExtractMatBundle operation to extract the contents of the bundle:
java -jar input-cache\tooling-1.4.1-SNAPSHOT-jar-with-dependencies.jar -ExtractMatBundle bundles\mat\CMS143FHIR-v0-0-003-FHIR-4-0-1\CMS143FHIR-v0-0-003-FHIR-4-0-1.json
Revert the changes to the following CQL libraries, because they are the FHIR-based versions and we do not want those, there are QICore versions already in the repository:
- FHIRHelpers
- QICoreCommon
Copy the primary measure library and rename it using the QICore4 postfix:
input\cql\POAGOpticNerveEvaluationQICore4.cql
- Open the QICore named file
- Update the postfix on the library name from FHIR to QICore4
- Update the using statement to
using QICore version '4.1.1'
- Update the version of the FHIRHelpers reference to 4.0.013 (the current version for QICore support in this repository)
- Change the SupplementalDataElementsFHIR4 reference to SupplementalDataElementsQICore4
- Change the MATGlobalCommonFunctionsFHIR4 reference to MATGlobalCommonFunctionsQICore4
- Remove the reference to FHIRCommon
- Update references to MATGlobalCommonFunctionsFHIR4 functions that were moved to QICoreCommon:
- Normalize Interval -> ToInterval
- Abatement Period -> ToAbatementInterval
- Prevalence Period -> ToPrevalenceInterval
- Has Start -> HasStart
- Has End -> HasEnd
- Latest -> Latest
- Earliest -> Earliest
- Interval To Day Numbers -> Interval To Day Numbers
- Days in Period -> Days in Period
- Update references to QICore profiles (https://hl7.org/fhir/us/qicore/profiles.html)
- Note that when the intent is looking for negation, use the negation profile: https://hl7.org/fhir/us/qicore/#negation-rationale
- Note that for QICore profiles, the profiles will enforce any "fixed" constraints, so you don't need to check those values (for example status = 'not-done' in a negation profile isn't necessary because the profile enforces that specifically)
- Update references to extensions that are using the extension functions to the element names (the "slice name" of the extension element defined in the profile)