Skip to content

Commit

Permalink
Rework measure 0059 diabetes hbalc poor to use generated properties
Browse files Browse the repository at this point in the history
  • Loading branch information
hadleynet committed Feb 24, 2011
1 parent 9e5d770 commit 4ce3882
Show file tree
Hide file tree
Showing 14 changed files with 251 additions and 51 deletions.
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
}
}
}
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
}
}
}
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
}
}
}
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 fixtures/measures/0059_diabetes_hba1c_poor/patients/exclusion.json
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
}
}
}
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
}
]
}
}
}
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
}
}
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
}
}
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
}
}
7 changes: 7 additions & 0 deletions fixtures/measures/0059_diabetes_hba1c_poor/result.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"id": "0059",
"initialPopulation": 9,
"numerator": 1,
"denominator": 5,
"exclusions": 1
}
10 changes: 10 additions & 0 deletions measure_props/NQF_Retooled_Measure_0059.xlsx.json.patch
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"
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function () {
// the denominator, and the exclusions are shared in the 'diabetes_utils.js' file
// that is located in the /js directory of the project
var numerator = function() {
latestValue = latestValueInDateRange(measure.hba1c_test,
latestValue = latestValueInDateRange(measure.hba1c_test_laboratory_test_result,
period_start,
effective_date,
0.0);
Expand Down
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"
}
]
}
]
}
]
}
}
50 changes: 0 additions & 50 deletions stage/diabetes/diabetes.col
Original file line number Diff line number Diff line change
Expand Up @@ -2,56 +2,6 @@
"root": "root.json",
"combinations":
[
{
"metadata": {
"id": "0059",
"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%.",
"numerator": {
"category": "Laboratory Test Result",
"title": "Most recent HbA1c > 9.0%"
}
},
"measure": {
"hba1c_test": {
"descirption": "Results of HbA1c tests",
"standard_category": "laboratory_test",
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"description": "HbA1c test result",
"type": "number"
},
"date": {
"description": "HbA1c test date",
"type": "number",
"format": "utc-sec"
}
}
},
"codes": [
{
"set": "SNOMED-CT",
"version": "07/2009",
"values": ["117346004", "165680008", "259689004", "259690008", "313835008", "33601001", "40402000", "408254005", "43396009"]
},
{
"set": "LOINC",
"version": "06/2009",
"values": ["17856-6", "4548-4", "4549-2"]
},
{
"set": "CPT",
"version": "06/2009",
"values": ["83036", "83037"]
}
]
}
},
"map_fn": "0059_NQF_Diabetes_HbA1c_Poor_Control.js"
},
{
"metadata": {
"id": "0061",
Expand Down

0 comments on commit 4ce3882

Please sign in to comment.