qpp-measures-data
Advanced tools
Comparing version 1.0.0-alpha.5 to 1.0.0-alpha.7
@@ -626,116 +626,2 @@ [ | ||
{ | ||
"measureId": "145", | ||
"submissionMethod": "claims", | ||
"firstPerformanceYear": 2017, | ||
"lastPerformanceYear": null, | ||
"clinicalClusters": [ | ||
{ | ||
"name": "diagnosticImaging", | ||
"measureIds": [ | ||
"145", | ||
"146", | ||
"147", | ||
"195", | ||
"225", | ||
"436" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"measureId": "146", | ||
"submissionMethod": "claims", | ||
"firstPerformanceYear": 2017, | ||
"lastPerformanceYear": null, | ||
"clinicalClusters": [ | ||
{ | ||
"name": "diagnosticImaging", | ||
"measureIds": [ | ||
"145", | ||
"146", | ||
"147", | ||
"195", | ||
"225", | ||
"436" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"measureId": "147", | ||
"submissionMethod": "claims", | ||
"firstPerformanceYear": 2017, | ||
"lastPerformanceYear": null, | ||
"clinicalClusters": [ | ||
{ | ||
"name": "diagnosticImaging", | ||
"measureIds": [ | ||
"145", | ||
"146", | ||
"147", | ||
"195", | ||
"225", | ||
"436" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"measureId": "195", | ||
"submissionMethod": "claims", | ||
"firstPerformanceYear": 2017, | ||
"lastPerformanceYear": null, | ||
"clinicalClusters": [ | ||
{ | ||
"name": "diagnosticImaging", | ||
"measureIds": [ | ||
"145", | ||
"146", | ||
"147", | ||
"195", | ||
"225", | ||
"436" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"measureId": "225", | ||
"submissionMethod": "claims", | ||
"firstPerformanceYear": 2017, | ||
"lastPerformanceYear": null, | ||
"clinicalClusters": [ | ||
{ | ||
"name": "diagnosticImaging", | ||
"measureIds": [ | ||
"145", | ||
"146", | ||
"147", | ||
"195", | ||
"225", | ||
"436" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"measureId": "436", | ||
"submissionMethod": "claims", | ||
"firstPerformanceYear": 2017, | ||
"lastPerformanceYear": null, | ||
"clinicalClusters": [ | ||
{ | ||
"name": "diagnosticImaging", | ||
"measureIds": [ | ||
"145", | ||
"146", | ||
"147", | ||
"195", | ||
"225", | ||
"436" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"measureId": "405", | ||
@@ -771,97 +657,2 @@ "submissionMethod": "claims", | ||
{ | ||
"measureId": "012", | ||
"submissionMethod": "claims", | ||
"firstPerformanceYear": 2017, | ||
"lastPerformanceYear": null, | ||
"clinicalClusters": [ | ||
{ | ||
"name": "eyeCare", | ||
"measureIds": [ | ||
"012", | ||
"014", | ||
"019", | ||
"140", | ||
"141", | ||
"117" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"measureId": "014", | ||
"submissionMethod": "claims", | ||
"firstPerformanceYear": 2017, | ||
"lastPerformanceYear": null, | ||
"clinicalClusters": [ | ||
{ | ||
"name": "eyeCare", | ||
"measureIds": [ | ||
"012", | ||
"014", | ||
"019", | ||
"140", | ||
"141", | ||
"117" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"measureId": "019", | ||
"submissionMethod": "claims", | ||
"firstPerformanceYear": 2017, | ||
"lastPerformanceYear": null, | ||
"clinicalClusters": [ | ||
{ | ||
"name": "eyeCare", | ||
"measureIds": [ | ||
"012", | ||
"014", | ||
"019", | ||
"140", | ||
"141", | ||
"117" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"measureId": "140", | ||
"submissionMethod": "claims", | ||
"firstPerformanceYear": 2017, | ||
"lastPerformanceYear": null, | ||
"clinicalClusters": [ | ||
{ | ||
"name": "eyeCare", | ||
"measureIds": [ | ||
"012", | ||
"014", | ||
"019", | ||
"140", | ||
"141", | ||
"117" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"measureId": "141", | ||
"submissionMethod": "claims", | ||
"firstPerformanceYear": 2017, | ||
"lastPerformanceYear": null, | ||
"clinicalClusters": [ | ||
{ | ||
"name": "eyeCare", | ||
"measureIds": [ | ||
"012", | ||
"014", | ||
"019", | ||
"140", | ||
"141", | ||
"117" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"measureId": "021", | ||
@@ -1066,3 +857,4 @@ "submissionMethod": "claims", | ||
"130", | ||
"317" | ||
"317", | ||
"112" | ||
] | ||
@@ -1082,3 +874,4 @@ } | ||
"130", | ||
"317" | ||
"317", | ||
"113" | ||
] | ||
@@ -1386,3 +1179,4 @@ } | ||
"measureIds": [ | ||
"130" | ||
"130", | ||
"051" | ||
] | ||
@@ -1401,3 +1195,4 @@ } | ||
"measureIds": [ | ||
"130" | ||
"130", | ||
"052" | ||
] | ||
@@ -1418,3 +1213,4 @@ } | ||
"130", | ||
"226" | ||
"226", | ||
"398" | ||
] | ||
@@ -1435,3 +1231,4 @@ } | ||
"130", | ||
"226" | ||
"226", | ||
"444" | ||
] | ||
@@ -1567,3 +1364,4 @@ } | ||
"130", | ||
"226" | ||
"226", | ||
"024" | ||
] | ||
@@ -1583,3 +1381,4 @@ } | ||
"130", | ||
"226" | ||
"226", | ||
"418" | ||
] | ||
@@ -1808,116 +1607,2 @@ } | ||
{ | ||
"measureId": "191", | ||
"submissionMethod": "registry", | ||
"firstPerformanceYear": 2017, | ||
"lastPerformanceYear": null, | ||
"clinicalClusters": [ | ||
{ | ||
"name": "cataractCare", | ||
"measureIds": [ | ||
"191", | ||
"192", | ||
"303", | ||
"304", | ||
"388", | ||
"389" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"measureId": "192", | ||
"submissionMethod": "registry", | ||
"firstPerformanceYear": 2017, | ||
"lastPerformanceYear": null, | ||
"clinicalClusters": [ | ||
{ | ||
"name": "cataractCare", | ||
"measureIds": [ | ||
"191", | ||
"192", | ||
"303", | ||
"304", | ||
"388", | ||
"389" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"measureId": "303", | ||
"submissionMethod": "registry", | ||
"firstPerformanceYear": 2017, | ||
"lastPerformanceYear": null, | ||
"clinicalClusters": [ | ||
{ | ||
"name": "cataractCare", | ||
"measureIds": [ | ||
"191", | ||
"192", | ||
"303", | ||
"304", | ||
"388", | ||
"389" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"measureId": "304", | ||
"submissionMethod": "registry", | ||
"firstPerformanceYear": 2017, | ||
"lastPerformanceYear": null, | ||
"clinicalClusters": [ | ||
{ | ||
"name": "cataractCare", | ||
"measureIds": [ | ||
"191", | ||
"192", | ||
"303", | ||
"304", | ||
"388", | ||
"389" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"measureId": "388", | ||
"submissionMethod": "registry", | ||
"firstPerformanceYear": 2017, | ||
"lastPerformanceYear": null, | ||
"clinicalClusters": [ | ||
{ | ||
"name": "cataractCare", | ||
"measureIds": [ | ||
"191", | ||
"192", | ||
"303", | ||
"304", | ||
"388", | ||
"389" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"measureId": "389", | ||
"submissionMethod": "registry", | ||
"firstPerformanceYear": 2017, | ||
"lastPerformanceYear": null, | ||
"clinicalClusters": [ | ||
{ | ||
"name": "cataractCare", | ||
"measureIds": [ | ||
"191", | ||
"192", | ||
"303", | ||
"304", | ||
"388", | ||
"389" | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"measureId": "122", | ||
@@ -2207,3 +1892,4 @@ "submissionMethod": "registry", | ||
"130", | ||
"226" | ||
"226", | ||
"006" | ||
] | ||
@@ -2223,3 +1909,4 @@ } | ||
"130", | ||
"226" | ||
"226", | ||
"007" | ||
] | ||
@@ -2239,3 +1926,4 @@ } | ||
"130", | ||
"226" | ||
"226", | ||
"118" | ||
] | ||
@@ -2556,3 +2244,4 @@ } | ||
"424", | ||
"430" | ||
"430", | ||
"426" | ||
] | ||
@@ -2572,3 +2261,4 @@ } | ||
"424", | ||
"430" | ||
"430", | ||
"427" | ||
] | ||
@@ -2652,3 +2342,4 @@ } | ||
"130", | ||
"317" | ||
"317", | ||
"112" | ||
] | ||
@@ -2668,3 +2359,4 @@ } | ||
"130", | ||
"317" | ||
"317", | ||
"113" | ||
] | ||
@@ -2671,0 +2363,0 @@ } |
{ | ||
"name": "qpp-measures-data", | ||
"version": "1.0.0-alpha.5", | ||
"version": "1.0.0-alpha.7", | ||
"description": "Quality Payment Program Measures Data Repository", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -172,2 +172,15 @@ /** | ||
// add the current measure to the cluster | ||
emaClusters.forEach(ema => { | ||
if (ema.clinicalClusters) { | ||
let clinicalClusters = []; | ||
ema.clinicalClusters.forEach(cc => { | ||
let cluster = Object.assign({}, cc, {measureIds: cc.measureIds.concat([ema.measureId])}); | ||
clinicalClusters.push(cluster); | ||
cluster.measureIds = _.uniq(cluster.measureIds); | ||
}); | ||
ema.clinicalClusters = clinicalClusters; | ||
} | ||
}); | ||
// print the JSON back to the stream | ||
@@ -174,0 +187,0 @@ process.stdout.write(JSON.stringify(emaClusters, null, 2)); |
@@ -34,3 +34,3 @@ var chai = require('chai'); | ||
var cluster051 = clusters[0]; | ||
assert.deepEqual(['130'], cluster051.clinicalClusters[0].measureIds); | ||
assert.deepEqual(['130', '051'], cluster051.clinicalClusters[0].measureIds); | ||
@@ -40,3 +40,3 @@ clusters = data.filter(c => c.measureId === '052' && c.submissionMethod === 'registry'); | ||
var cluster052 = clusters[0]; | ||
assert.deepEqual(['130'], cluster052.clinicalClusters[0].measureIds); | ||
assert.deepEqual(['130', '052'], cluster052.clinicalClusters[0].measureIds); | ||
}); | ||
@@ -43,0 +43,0 @@ |
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
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
2615031
65
25196