qpp-measures-data
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -35,11 +35,8 @@ # Contribution Guidelines | ||
`util/measures/additional-measures.json` includes data objects which are necessary for scoring but are not MIPS measures. Any additional measures should be added to this file, followed by a re-generation of measures data using the command described in the "Generating Data" section. | ||
`util/measures/qcdr-measures.csv` contains all the QCDR measure to be transformed into `measures/measures-data.json` and `measures/measures-data.xml` by running `npm run build:measures`. | ||
At this time `util/measures/additional-measures.json` includes: | ||
The csv is formatted for the script to run correctly. If the new version does not conform to how the csv is expected, it will cause the npm build step to fail. When your work is complete, make sure to send the updated `qcdr-measures-v<#>.csv` with a bumped version number back to PIMMS with instructions to use it as the base to make the next set of changes. The next person to update measures-data will thank you! | ||
1. **Attestations:** Attestations are pre-requisites of submitting additional measurements for a given category. | ||
2. **Exclusions:** Exclusions are optional attestations of conditions which exempt the provider from a corresponding (required) measure. For example, submitting `true` to `ACI_LVPP_1` exempts a user from submitting data for the required measure `ACI_EP_1`. | ||
`cp` the new version of the CSV to `util/measures/qcdr-measures.csv`, run `npm run build:measures`, and `git diff` to see changes are as expected to `measures/measures-data.json`. | ||
Similarly, `util/benchmarks/additional-benchmarks-2017.json` contains benchmark data that is necessary for scoring but not included in the historical CSV file. Any additional benchmarks should be added to this file, followed by a re-generation of benchmarks data. | ||
#### Importing measures from CSV file | ||
@@ -46,0 +43,0 @@ |
{ | ||
"name": "qpp-measures-data", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Quality Payment Program Measures Data Repository", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -21,2 +21,3 @@ const fs = require('fs'); | ||
enrichStratifications(measures); | ||
enrichClaimsRelatedMeasures(measures); | ||
return JSON.stringify(measures, null, 2); | ||
@@ -115,1 +116,29 @@ }; | ||
} | ||
/** | ||
* Adds performance and eligibility options for claims-related measures. | ||
* | ||
* The source for this is a JSON file generated by /claims-related/scripts/single_source_to_json.py | ||
* See /claims-related/README.md for more information. | ||
*/ | ||
function enrichClaimsRelatedMeasures(measures) { | ||
// these are the attributes we are interested in | ||
const attributes = [ | ||
'eligibilityOptions', | ||
'performanceOptions' | ||
]; | ||
// to avoid nested iteration, let's sort claims related measures by their measure ID | ||
const claimsRelatedMeasures = JSON.parse(fs.readFileSync(path.join(__dirname, '../../claims-related/data/qpp-single-source.json'))); | ||
// now for each measure, add the attributes from the claims-related measures set | ||
measures.forEach(measure => { | ||
// if the measure is in claimsRelatedMeasures, we need to merge its attributes | ||
const claimsRelatedMeasure = claimsRelatedMeasures[measure.measureId]; | ||
if (claimsRelatedMeasure) { | ||
for (const attribute of attributes) { | ||
measure[attribute] = claimsRelatedMeasure[attribute]; | ||
} | ||
} | ||
}); | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
10465802
161188
15
0
72