qpp-measures-data
Advanced tools
Comparing version 1.0.0-alpha.20 to 1.0.0-alpha.21
{ | ||
"name": "qpp-measures-data", | ||
"version": "1.0.0-alpha.20", | ||
"version": "1.0.0-alpha.21", | ||
"description": "Quality Payment Program Measures Data Repository", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -110,3 +110,3 @@ const parse = require('csv-parse/lib/sync'); | ||
let strataName; | ||
const measureId = _.trim(record[2]); | ||
const measureId = record[2].replace(/\s/g, ''); // "MOA 1" becomes "MOA1" | ||
const measureDescription = _.trim(record[4]); | ||
@@ -122,3 +122,8 @@ | ||
_.each(strata, function(stratum, index) { | ||
if (_.isUndefined(qcdrStrataNames[measureId])) { | ||
throw TypeError('Missing strata for ' + measureId + '. Should' + | ||
'be in ' + qcdrStrataNamesDataPath + ', but isn\'t.'); | ||
} | ||
strataName = qcdrStrataNames[measureId][index]; | ||
// i + 1 because Rates in the csv are numbered starting from 1 | ||
@@ -128,3 +133,3 @@ if (_.lowerCase(strataName) === 'overall' && | ||
throw TypeError('"Overall" strata for ' + measureId + ' in QCDR ' + | ||
'CSV doesn\'t match the name in the strata details file'); | ||
'CSV doesn\'t match the name in ' + qcdrStrataNamesDataPath); | ||
} | ||
@@ -131,0 +136,0 @@ newMeasure['strata'].push({ |
@@ -28,3 +28,7 @@ { | ||
"ICLOPS15": ["withoutexcess", "withexcess"], | ||
"ICLOPS17": ["withfollowup", "withoutfollowup"] | ||
"ICLOPS17": ["withfollowup", "withoutfollowup"], | ||
"MICS1": ["postsurvey", "overall"], | ||
"MICS2": ["postsurvey", "overall"], | ||
"MICS3": ["postsurvey", "overall"], | ||
"RCOIR1": ["CKD3", "CKD4", "CKD5"] | ||
} |
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
Sorry, the diff of this file is too big to display
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
116068
7319949
89
4