Skip to content

Commit

Permalink
Removed EMA Preventive Care cluster for measure 317 in 2018 (#254)
Browse files Browse the repository at this point in the history
* Removed wrong EMA cluster of 317, 130

* Removed wrong EMA cluster of 317, 130

* added spec

* pr fix

* 1.17.0
  • Loading branch information
shadford authored Mar 28, 2019
1 parent 9bce101 commit bad74ec
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 17 deletions.
15 changes: 0 additions & 15 deletions clinical-clusters/2018/clinical-clusters.json
Original file line number Diff line number Diff line change
Expand Up @@ -2456,21 +2456,6 @@
}
]
},
{
"measureId": "317",
"submissionMethod": "registry",
"firstPerformanceYear": 2017,
"lastPerformanceYear": null,
"clinicalClusters": [
{
"name": "preventiveCare",
"measureIds": [
"130",
"317"
]
}
]
},
{
"measureId": "111",
"submissionMethod": "registry",
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qpp-measures-data",
"version": "1.16.2",
"version": "1.17.0",
"description": "Quality Payment Program Measures Data Repository",
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions scripts/clinical-clusters/ema-clinical-cluster-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ const specialClusterRelations = {
{measureId: '226', optionals: []},
{measureId: '424', optionals: []},
{measureId: '430', optionals: []},
{measureId: '317', optionals: []},
{measureId: '051', optionals: ['052']},
{measureId: '052', optionals: ['051']},
{measureId: '398', optionals: ['444']},
Expand Down
10 changes: 10 additions & 0 deletions test/clinical-clusters/clinical-clusters-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ describe('clinical cluster functionality', () => {
assert.equal(1, clusters.length);
});

it('cluster for measure 317 in 2018 should exist only for claims and not registry', () => {
const data = main.getClinicalClusterData(2018);
let clusters = data.filter(c => c.measureId === '317' && c.submissionMethod === 'registry');
assert.isArray(clusters);
assert.equal(0, clusters.length);
clusters = data.filter(c => c.measureId === '317' && c.submissionMethod === 'claims');
assert.isArray(clusters);
assert.equal(1, clusters.length);
});

it('measures in specialClusterRelations has measureIds without optionals', () => {
// registry 051 and 052 should only have 130 in their clinicalCluster for registry
const data = main.getClinicalClusterData();
Expand Down

0 comments on commit bad74ec

Please sign in to comment.