qpp-measures-data
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "qpp-measures-data", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Quality Payment Program Measures Data Repository", | ||
@@ -5,0 +5,0 @@ "repository": { |
const fs = require('fs'); | ||
const path = require('path'); | ||
const outputPath = process.argv[4]; | ||
const outputPath = process.argv[process.argv.length - 1]; | ||
@@ -6,0 +6,0 @@ function mergeMeasures() { |
@@ -60,2 +60,22 @@ const chai = require('chai'); | ||
describe('IA measures', () => { | ||
it('only have valid subcategoryIds', () => { | ||
const validSubcategoryIds = [null, 'achievingHealthEquity', 'behavioralAndMentalHealth', 'beneficiaryEngagement', 'careCoordination', 'emergencyResponseAndPreparedness', 'expandedPracticeAccess', 'patientSafetyAndPracticeAssessment', 'populationManagement']; | ||
measuresData | ||
.filter(measure => measure.category === 'ia') | ||
.forEach((measure) => { | ||
assert.include(validSubcategoryIds, measure.subcategoryId); | ||
}); | ||
}); | ||
it('only have valid weights', () => { | ||
const validWeights = [null, 'medium', 'high']; | ||
measuresData | ||
.filter(measure => measure.category === 'ia') | ||
.forEach((measure) => { | ||
assert.include(validWeights, measure.weight); | ||
}); | ||
}); | ||
}); | ||
describe('quality measures', function() { | ||
@@ -62,0 +82,0 @@ it('includes all quality measures with multi-performance strata', function() { |
@@ -161,3 +161,27 @@ [ | ||
"substitutes": [] | ||
}, | ||
{ | ||
"title": "Engagement of New Medicaid Patients and Follow-up", | ||
"category": "ia", | ||
"description": "Seeing new and follow-up Medicaid patients in a timely manner, including individuals dually eligible for Medicaid and Medicare. A timely manner is defined as within 10 business days for this activity.", | ||
"measureId": "IA_AHE_1", | ||
"metricType": "boolean", | ||
"firstPerformanceYear": 2017, | ||
"lastPerformanceYear": null, | ||
"weight": "high", | ||
"subcategoryId": "achievingHealthEquity", | ||
"cehrtEligible": false | ||
}, | ||
{ | ||
"title": "Leveraging a QCDR to standardize processes for screening", | ||
"category": "ia", | ||
"description": "Participation in a QCDR, demonstrating performance of activities for use of standardized processes for screening for social determinants of health such as food security, employment and housing. Use of supporting tools that can be incorporated into the certified EHR technology is also suggested.", | ||
"measureId": "IA_AHE_2", | ||
"metricType": "boolean", | ||
"firstPerformanceYear": 2017, | ||
"lastPerformanceYear": null, | ||
"weight": "medium", | ||
"subcategoryId": "achievingHealthEquity", | ||
"cehrtEligible": true | ||
} | ||
] |
@@ -31,3 +31,3 @@ // Libraries | ||
describe(year + ' import measures', function() { | ||
describe(year + ' import quality measures', function() { | ||
it('should create new quality measures', () => { | ||
@@ -34,0 +34,0 @@ const measures = runTest(testQualityMeasuresCsv, testQualityStrataCsv); |
@@ -13,2 +13,3 @@ // Libraries | ||
const testPiJson = '../../../test/scripts/measures/' + year + '/fixtures/test-pi-measures.json'; | ||
const testIaJson = '../../../test/scripts/measures/' + year + '/fixtures/expected-ia-measures.json'; | ||
const outputArg = '../../../test/scripts/measures/' + year + '/fixtures/test-merged-measures-data-output.json'; | ||
@@ -20,5 +21,4 @@ const outputPath = path.join(__dirname, year.toString(), '../../' + outputArg); | ||
const runTest = function(measuresCsv, qualityStrataCsv) { | ||
const cmd = 'node ./scripts/measures/' + year + '/merge-measures-data.js ' + | ||
testQualityJson + ' ' + testPiJson + ' ' + outputArg; | ||
const runTest = (measuresCsv, qualityStrataCsv) => { | ||
const cmd = `node ./scripts/measures/${year}/merge-measures-data.js ${testQualityJson} ${testPiJson} ${testIaJson} ${outputArg}`; | ||
console.log(execSync(cmd, {stdio: 'pipe'}).toString()); | ||
@@ -34,3 +34,4 @@ | ||
const measures = runTest(testQualityJson, testPiJson); | ||
expectedMeasures.forEach(function(expectedMeasure, measureIdx) { | ||
assert.equal(measures.length, expectedMeasures.length); | ||
expectedMeasures.forEach((expectedMeasure, measureIdx) => { | ||
_.each(expectedMeasure, (measureValue, measureKey) => { | ||
@@ -37,0 +38,0 @@ assert.deepEqual(measures[measureIdx][measureKey], measureValue); |
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
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
13628074
138
185742
31
6