forked from rdingwell/measures
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework measure 0059 diabetes hbalc poor to use generated properties
- Loading branch information
Showing
14 changed files
with
251 additions
and
51 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
fixtures/measures/0059_diabetes_hba1c_poor/patients/denominator1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"first": "Bert", // personal data | ||
"last": "Bloggs", | ||
"gender": "M", | ||
"birthdate": -290390400, // Time.gm(1960, 10, 19).to_i | ||
"measures": { // bag of measures, one entry per measure | ||
"0059": { | ||
"medications_indicative_of_diabetes_medication_dispensed": 1277856000 // Time.gm(2010, 6, 30).to_i | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
fixtures/measures/0059_diabetes_hba1c_poor/patients/denominator2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"first": "Sarah", // personal data | ||
"last": "Bloggs", | ||
"gender": "F", | ||
"birthdate": -290390400, // Time.gm(1960, 10, 19).to_i | ||
"measures": { // bag of measures, one entry per measure | ||
"0059": { | ||
"diabetes_diagnosis_active": 1277856000, // Time.gm(2010, 6, 30).to_i | ||
"encounter_acute_inpatient_or_ed_encounter": 1277856000 // Time.gm(2010, 6, 30).to_i | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
fixtures/measures/0059_diabetes_hba1c_poor/patients/denominator3.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"first": "Paul", // personal data | ||
"last": "Hewson", | ||
"gender": "M", | ||
"birthdate": 340761600, // Time.gm(1980, 10, 19).to_i | ||
"measures": { // bag of measures, one entry per measure | ||
"0059": { | ||
"diabetes_diagnosis_active": 1277856000, // Time.gm(2010, 6, 30).to_i | ||
"encounter_non_acute_inpatient_outpatient_or_ophthalmology_encounter": [1275177600, 1277856000] // Time.gm(2010, 5, 30).to_i and Time.gm(2010, 6, 30).to_i | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
fixtures/measures/0059_diabetes_hba1c_poor/patients/denominator4.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ // not in the numerator since bp result is normal | ||
"first": "Curt", // personal data | ||
"last": "Smith", | ||
"gender": "M", | ||
"birthdate": -290390400, // Time.gm(1960, 10, 19).to_i | ||
"measures": { // bag of measures, one entry per measure | ||
"0059": { | ||
"medications_indicative_of_diabetes_medication_dispensed": 1277856000, // Time.gm(2010, 6, 30).to_i | ||
"hba1c_test_laboratory_test_result": [ | ||
{ | ||
"date": 1277856000, // Time.gm(2010, 6, 30).to_i | ||
"value": 8.9 | ||
} | ||
] | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
fixtures/measures/0059_diabetes_hba1c_poor/patients/exclusion.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"first": "Sarah", // personal data | ||
"last": "Evans", | ||
"gender": "F", | ||
"birthdate": -467337600, // Time.gm(1955, 3, 12).to_i | ||
"measures": { // bag of measures, one entry per measure | ||
"0059": { | ||
"medications_indicative_of_diabetes_medication_dispensed": 1277856000, // Time.gm(2010, 6, 30).to_i | ||
"polycystic_ovaries_diagnosis_active": 1272585600 // Time.gm(2010, 4, 30).to_i | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
fixtures/measures/0059_diabetes_hba1c_poor/patients/numerator1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"first": "Suzanne", | ||
"last": "Smith", | ||
"gender": "F", | ||
"birthdate": -290390400, // Time.gm(1960, 10, 19).to_i | ||
"measures": { | ||
"0059": { | ||
"medications_indicative_of_diabetes_medication_dispensed": 1277856000, // Time.gm(2010, 6, 30).to_i | ||
"hba1c_test_laboratory_test_result": [ | ||
{ | ||
"date": 1277856000, // Time.gm(2010, 6, 30).to_i | ||
"value": 9.2 | ||
} | ||
] | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
fixtures/measures/0059_diabetes_hba1c_poor/patients/numerator_eye2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"first": "Lilian", // personal data | ||
"last": "Smith", | ||
"gender": "F", | ||
"birthdate": -290390400, // Time.gm(1960, 10, 19).to_i | ||
"measures": { // bag of measures, one entry per measure | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
fixtures/measures/0059_diabetes_hba1c_poor/patients/population_all1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"first": "Jennifer", // personal data | ||
"last": "Thompson", | ||
"gender": "F", | ||
"birthdate": -290390400, // Time.gm(1960, 10, 19).to_i | ||
"measures": { // bag of measures, one entry per measure | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
fixtures/measures/0059_diabetes_hba1c_poor/patients/population_all2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"first": "Emily", // personal data | ||
"last": "Jones", | ||
"gender": "F", | ||
"birthdate": -290390400, // Time.gm(1960, 10, 19).to_i | ||
"measures": { // bag of measures, one entry per measure | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"id": "0059", | ||
"initialPopulation": 9, | ||
"numerator": 1, | ||
"denominator": 5, | ||
"exclusions": 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"N_1946": { | ||
"value": { | ||
"type": "number", | ||
"description": "hba1c", | ||
"date_description": "Date of hba1c status test" | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
128 changes: 128 additions & 0 deletions
128
measures/0059_diabetes_hba1c_poor/0059_NQF_Diabetes_HbA1c_Poor_Control.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
{ | ||
"id": "0059", | ||
"properties": "NQF_Retooled_Measure_0059.xlsx.json", | ||
"name": "Diabetes HbA1c Poor Control", | ||
"description": "The percentage of patients 18–75 years of age with diabetes (type 1 or type 2) who had HbA1c >9.0%.", | ||
"category": "Diabetes", | ||
"steward": "NCQA", | ||
"parameters": { | ||
"effective_date": { | ||
"description": "Effective end date for measure", | ||
"type": "number", | ||
"format": "utc-sec" | ||
} | ||
}, | ||
"patient": { | ||
"birthdate": { | ||
"description": "Date of birth", | ||
"critical": true, | ||
"type": "number", | ||
"format": "utc-sec", | ||
"codes": [ | ||
{ | ||
"set": "HL7", | ||
"version": "3.0", | ||
"values": [ | ||
"00110" | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
"population": { | ||
"category": "Patient Characteristic", | ||
"title": "Age between 17 and 74" | ||
}, | ||
"denominator": { | ||
"or": [ | ||
{ | ||
"category": "Medication", | ||
"title": "Medication Indicative of Diabetes Within 2 years" | ||
}, | ||
{ | ||
"and": [ | ||
{ | ||
"category": "Diagnosis", | ||
"title": "Diabetes Active Within 2 years" | ||
}, | ||
{ | ||
"or": [ | ||
{ | ||
"category": "Encounter", | ||
"title": "Acute Inpatient or ED" | ||
}, | ||
{ | ||
"category": "Encounter", | ||
"title": "Non‐Acute Inpatient, Outpatient, or Ophthalmology" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"numerator": { | ||
"category": "Laboratory Test Result", | ||
"title": "Most recent HbA1c > 9.0%" | ||
}, | ||
"exclusions": { | ||
"or": [ | ||
{ | ||
"and": [ | ||
{ | ||
"category": "Diagnosis", | ||
"title": "Polycystic Ovaries" | ||
}, | ||
{ | ||
"and": [ | ||
{ | ||
"category": "Diagnosis", | ||
"title": "Diabetes Not Active Within 2 years" | ||
}, | ||
{ | ||
"or": [ | ||
{ | ||
"category": "Encounter", | ||
"title": "No Acute Inpatient or ED" | ||
}, | ||
{ | ||
"category": "Encounter", | ||
"title": "No Non‐Acute Inpatient, Outpatient, or Ophthalmology" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"and": [ | ||
{ | ||
"category": "Diagnosis", | ||
"title": "Gestational Diabetes or Steroid Induced Diabetes Within 2 years" | ||
}, | ||
{ | ||
"category": "Medication", | ||
"title": "Medications Indicative of Diabetes Within 2 years" | ||
}, | ||
{ | ||
"category": "Diagnosis", | ||
"title": "Diabetes Active within 2 years" | ||
}, | ||
{ | ||
"or": [ | ||
{ | ||
"category": "Encounter", | ||
"title": "Acute Inpatient or ED Within 2 years" | ||
}, | ||
{ | ||
"category": "Encounter", | ||
"title": "Non‐Acute Inpatient, Outpatient, or Opthalmology" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters