qpp-measures-data
Advanced tools
Comparing version 1.0.0-alpha.17 to 1.0.0-alpha.18
@@ -570,10 +570,10 @@ [ | ||
0, | ||
60.62, | ||
67.5, | ||
75.47, | ||
87.88, | ||
94.34, | ||
96.36, | ||
97.78, | ||
99.75 | ||
75.78, | ||
93.06, | ||
97.84, | ||
100, | ||
100, | ||
100, | ||
100, | ||
100 | ||
] | ||
@@ -622,9 +622,9 @@ }, | ||
0, | ||
41.33, | ||
45.77, | ||
51.47, | ||
66.44, | ||
90.1, | ||
98.61, | ||
40.26, | ||
50, | ||
71.74, | ||
93.94, | ||
100, | ||
100, | ||
100, | ||
100 | ||
@@ -640,10 +640,10 @@ ] | ||
0, | ||
28.73, | ||
31.81, | ||
34.46, | ||
37.24, | ||
40.2, | ||
43.65, | ||
48.76, | ||
68.19 | ||
26.03, | ||
30.01, | ||
33.33, | ||
36.47, | ||
40, | ||
44.38, | ||
50, | ||
68.9 | ||
] | ||
@@ -658,10 +658,10 @@ }, | ||
0, | ||
39.8, | ||
45.64, | ||
50.92, | ||
56.69, | ||
64.89, | ||
75.82, | ||
87.13, | ||
97.34 | ||
41.76, | ||
51.27, | ||
63.28, | ||
78.16, | ||
90.89, | ||
98.78, | ||
100, | ||
100 | ||
] | ||
@@ -1900,8 +1900,8 @@ }, | ||
100, | ||
26.32, | ||
21.22, | ||
15.74, | ||
9.39, | ||
3.85, | ||
0.9, | ||
29.53, | ||
24.1, | ||
18.66, | ||
12.5, | ||
5.49, | ||
0.84, | ||
0, | ||
@@ -1918,9 +1918,9 @@ 0 | ||
100, | ||
20, | ||
15.01, | ||
10.53, | ||
6.22, | ||
2.63, | ||
0.99, | ||
0.28, | ||
21.34, | ||
15.79, | ||
10.76, | ||
6.06, | ||
2.36, | ||
0.7, | ||
0, | ||
0 | ||
@@ -1936,10 +1936,10 @@ ] | ||
0, | ||
25.72, | ||
28.73, | ||
30.39, | ||
31.53, | ||
32.31, | ||
32.81, | ||
27.27, | ||
30.77, | ||
32.52, | ||
33.33, | ||
34.95 | ||
33.33, | ||
33.33, | ||
33.33, | ||
39.05 | ||
] | ||
@@ -2209,10 +2209,10 @@ }, | ||
0, | ||
0.71, | ||
0.95, | ||
1.21, | ||
2.11, | ||
2.5, | ||
5.13, | ||
6.99, | ||
12.06 | ||
0, | ||
100, | ||
100, | ||
100, | ||
100, | ||
100, | ||
100, | ||
0 | ||
] | ||
@@ -2754,10 +2754,10 @@ }, | ||
0, | ||
1.38, | ||
1.96, | ||
2.92, | ||
4.3, | ||
6.82, | ||
12.24, | ||
21.21, | ||
52.63 | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
1.08, | ||
11.54 | ||
] | ||
@@ -2772,10 +2772,10 @@ }, | ||
0, | ||
0.27, | ||
0.35, | ||
0.4, | ||
0.53, | ||
0.61, | ||
0.76, | ||
0.9, | ||
1.44 | ||
0.32, | ||
0.38, | ||
0.47, | ||
0.56, | ||
0.69, | ||
0.94, | ||
1.42, | ||
50 | ||
] | ||
@@ -2994,9 +2994,9 @@ }, | ||
0, | ||
3.81, | ||
13.64, | ||
17.49, | ||
46.64, | ||
72.34, | ||
28, | ||
55.56, | ||
100, | ||
100, | ||
100, | ||
100, | ||
100, | ||
100 | ||
@@ -3165,4 +3165,3 @@ ] | ||
0, | ||
96, | ||
98.11, | ||
0, | ||
100, | ||
@@ -3173,2 +3172,3 @@ 100, | ||
100, | ||
100, | ||
100 | ||
@@ -3184,4 +3184,3 @@ ] | ||
0, | ||
91.97, | ||
98.03, | ||
0, | ||
100, | ||
@@ -3192,2 +3191,3 @@ 100, | ||
100, | ||
100, | ||
100 | ||
@@ -3492,10 +3492,10 @@ ] | ||
0, | ||
61.21, | ||
72, | ||
76.63, | ||
80.77, | ||
84.01, | ||
88.89, | ||
92.66, | ||
98.15 | ||
62.5, | ||
77.42, | ||
90.91, | ||
100, | ||
100, | ||
100, | ||
100, | ||
100 | ||
] | ||
@@ -3510,10 +3510,10 @@ }, | ||
0, | ||
74.51, | ||
78.57, | ||
81.52, | ||
84.54, | ||
86.98, | ||
89.36, | ||
92.59, | ||
97.92 | ||
73.33, | ||
80.56, | ||
86.67, | ||
92.57, | ||
100, | ||
100, | ||
100, | ||
100 | ||
] | ||
@@ -3613,10 +3613,10 @@ }, | ||
0, | ||
0.97, | ||
1.28, | ||
1.53, | ||
1.85, | ||
2.38, | ||
4, | ||
61.48, | ||
80.63 | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
1.52, | ||
50, | ||
83.34 | ||
] | ||
@@ -3930,2 +3930,2 @@ }, | ||
} | ||
] | ||
] |
@@ -33,3 +33,3 @@ # Contribution Guidelines | ||
### Additional measures or benchmarks | ||
### Additional measures | ||
@@ -45,7 +45,18 @@ `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. | ||
### Importing measures from CSV file | ||
#### Importing measures from CSV file | ||
`scripts/measures/import-qcdr-measures.js` script handles importing QCDR measures from a CSV and converting them to the qpp-measures-data measure schema. The `convertCsvToMeasures` function can be replicated for new CSVs if appropriate. | ||
### Additional benchmarks | ||
To add or update benchmarks, you'll want to convert the csv file into JSON with the `scripts/benchmarks/parse-benchmarks-data.js`. `parse-benchmarks-data.js` relies on a set of columns to be present and additional empty columns can cause the parsing to fail. See that file for additional instructions on how to generate the JSON file. | ||
After you have the parsed JSON file, move the CSV and JSON into `staging/benchmarks/csv` and `staging/benchmarks/json`. We do this for auditing and regeneration purposes. You'll notice a number prepended to both files. We number each file to enforce ordering of merges. Currently, if two benchmarks have the same Measure ID, Benchmark Year, Performance Year, and Submission method, the one that exists in the larger numbered file will overwrite the smaller one. | ||
To update the benchmarks file after the JSON file is in place, run `npm run build:measures` and verify the changes are as expected. (You can run `git diff`.) | ||
### Deleting measures and benchmarks | ||
TODO: Support a safer way to delete benchmarks. You could add a key saying `delete: true` and have the generate step filter out benchmarks with those keys. This way you wouldn't change the generation artifacts. | ||
## Testing | ||
@@ -52,0 +63,0 @@ |
{ | ||
"name": "qpp-measures-data", | ||
"version": "1.0.0-alpha.17", | ||
"version": "1.0.0-alpha.18", | ||
"description": "Quality Payment Program Measures Data Repository", | ||
@@ -5,0 +5,0 @@ "repository": { |
// Libraries | ||
const parse = require('csv-parse'); | ||
// Constants | ||
// Note: A blank column is added due to the formatting of CSVs we receive. | ||
// We need to standardize the format of the CSVs. | ||
const BENCHMARK_CSV_COLUMNS = [ | ||
@@ -18,3 +20,4 @@ 'measureName', | ||
'decile10', | ||
'isToppedOut' | ||
'isToppedOut', | ||
'' | ||
]; | ||
@@ -21,0 +24,0 @@ // Utils |
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
60
271
15
2
52
8018436
81573
13