Skip to content

Commit

Permalink
This PR updates the quality measures script to no longer rely on the …
Browse files Browse the repository at this point in the history
…column index and instead rely on the column header names of the source CSVs (quality-measures.csv and quality-strata.csv)

It also contains a few other small changes:

- Adds validation to make sure the CSV header fields match the known measure data fields, none missing and none extra.
- Removes measureSets from required fields for 2018 quality measures schema, since there are now measures with no measureSets (presumably intentional... @sarahnw is it worth checking to confirm that not all measures need measureSets, per the most recent CSV?).
- Remove straggler ? characters from quality-strata.csv
- Moves the "official" header row to the top row instead of the 2nd or 3rd row in both source CSVs, because that makes it easier for the CSV parsing library we use to interpret it

Jira: https://jira.cms.gov/browse/QPPA-2055

Tests: Tests have been updated and pass

Reviewer(s): @samskeller
  • Loading branch information
Kalvin committed Jul 18, 2018
1 parent 10d146f commit 607e908
Show file tree
Hide file tree
Showing 13 changed files with 281 additions and 270 deletions.
8 changes: 4 additions & 4 deletions measures/2018/measures-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -6724,11 +6724,11 @@
"strata": [
{
"name": "meningococcal",
"description": "Patients who had one dose of meningococcal vaccine on or between the patients 11th and 13th birthdays"
"description": "Patients who had one dose of meningococcal vaccine on or between the patient's 11th and 13th birthdays"
},
{
"name": "Tdap",
"description": "Patients who had one tetanus, diphtheria toxoids and acellular pertussis vaccine (Tdap) on or between the patients 10th and 13th birthdays"
"description": "Patients who had one tetanus, diphtheria toxoids and acellular pertussis vaccine (Tdap) on or between the patient's 10th and 13th birthdays"
},
{
"name": "HPV",
Expand Down Expand Up @@ -8847,7 +8847,7 @@
"strata": [
{
"name": "overall",
"description": "Percentage of patients 18 years of age or older as of October 1 of the denominator identification\nperiod who had a lumbar spine fusion procedure performed during the denominator identification period and whose back pain was measured by the Visual Analog Scale (VAS) within three months preoperatively AND at one year (+/- 3 months) postoperatively."
"description": "Percentage of patients 18 years of age or older as of October 1 of the denominator identification\r\nperiod who had a lumbar spine fusion procedure performed during the denominator identification period and whose back pain was measured by the Visual Analog Scale (VAS) within three months preoperatively AND at one year (+/- 3 months) postoperatively."
},
{
"name": "averageChange",
Expand Down Expand Up @@ -8889,7 +8889,7 @@
"strata": [
{
"name": "overall",
"description": "Percentage of patients 18 years of age or older as of January 1 of the denominator identification\nperiod who had a lumbar discectomy/laminotomy procedure performed during the denominator identification period and whose leg pain was measured by the Visual Analog Scale (VAS) within three months preoperatively AND at three months (6 to 20 weeks) postoperatively."
"description": "Percentage of patients 18 years of age or older as of January 1 of the denominator identification\r\nperiod who had a lumbar discectomy/laminotomy procedure performed during the denominator identification period and whose leg pain was measured by the Visual Analog Scale (VAS) within three months preoperatively AND at three months (6 to 20 weeks) postoperatively."
},
{
"name": "averageChange",
Expand Down
8 changes: 4 additions & 4 deletions measures/2018/measures-data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5903,11 +5903,11 @@
</measureSpecification>
<strata>
<name>meningococcal</name>
<description>Patients who had one dose of meningococcal vaccine on or between the patients 11th and 13th birthdays</description>
<description>Patients who had one dose of meningococcal vaccine on or between the patient's 11th and 13th birthdays</description>
</strata>
<strata>
<name>Tdap</name>
<description>Patients who had one tetanus, diphtheria toxoids and acellular pertussis vaccine (Tdap) on or between the patients 10th and 13th birthdays</description>
<description>Patients who had one tetanus, diphtheria toxoids and acellular pertussis vaccine (Tdap) on or between the patient's 10th and 13th birthdays</description>
</strata>
<strata>
<name>HPV</name>
Expand Down Expand Up @@ -7762,7 +7762,7 @@
</measureSpecification>
<strata>
<name>overall</name>
<description>Percentage of patients 18 years of age or older as of October 1 of the denominator identification
<description>Percentage of patients 18 years of age or older as of October 1 of the denominator identification&#xD;
period who had a lumbar spine fusion procedure performed during the denominator identification period and whose back pain was measured by the Visual Analog Scale (VAS) within three months preoperatively AND at one year (+/- 3 months) postoperatively.</description>
</strata>
<strata>
Expand Down Expand Up @@ -7799,7 +7799,7 @@ period who had a lumbar spine fusion procedure performed during the denominator
</measureSpecification>
<strata>
<name>overall</name>
<description>Percentage of patients 18 years of age or older as of January 1 of the denominator identification
<description>Percentage of patients 18 years of age or older as of January 1 of the denominator identification&#xD;
period who had a lumbar discectomy/laminotomy procedure performed during the denominator identification period and whose leg pain was measured by the Visual Analog Scale (VAS) within three months preoperatively AND at three months (6 to 20 weeks) postoperatively.</description>
</strata>
<strata>
Expand Down
4 changes: 2 additions & 2 deletions measures/2018/measures-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ definitions:
metricType: { enum: [singlePerformanceRate, nonProportion, cahps, registrySinglePerformanceRate, costScore] }
}
}]
required: [nationalQualityStrategyDomain, measureType, eMeasureId, nqfEMeasureId, nqfId, isHighPriority, isInverse, primarySteward, measureSets, submissionMethods, isRegistryMeasure, isIcdImpacted, isToppedOutByProgram]
required: [nationalQualityStrategyDomain, measureType, eMeasureId, nqfEMeasureId, nqfId, isHighPriority, isInverse, primarySteward, submissionMethods, isRegistryMeasure, isIcdImpacted, isToppedOutByProgram]

performanceStrata:
type: object
Expand Down Expand Up @@ -260,7 +260,7 @@ definitions:

measureSets:
enum:
- transition
- transition # PI only
- allergyImmunology
- anesthesiology
- cardiology
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.6.0",
"version": "1.6.1",
"description": "Quality Payment Program Measures Data Repository",
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit 607e908

Please sign in to comment.