Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Commit 7e6feb3

Browse files
authored
Merge pull request synthetichealth#149 from synthetichealth/diabetes_fixes
Diabetes Validation
2 parents d16c36f + 4530256 commit 7e6feb3

File tree

5 files changed

+405
-155
lines changed

5 files changed

+405
-155
lines changed

config/synthea.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ synthea:
142142
bs_degree: [0.5, 1.0]
143143
generic:
144144
log: false
145+
log_state_statistics: false
145146
version_identifier: <%= `git rev-parse HEAD` %> # get the current git commit hash
146147
graphviz:
147148
output: './output/graphviz/'

lib/generic/modules/metabolic_syndrome_care.json

Lines changed: 35 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@
301301
"condition_type" : "Attribute",
302302
"attribute" : "diabetes_severity",
303303
"operator" : ">=",
304-
"value" : 1
304+
"value" : 2
305305
},
306306
{
307307
"condition_type" : "Not",
@@ -346,7 +346,7 @@
346346
"condition_type" : "Attribute",
347347
"attribute" : "diabetes_severity",
348348
"operator" : ">=",
349-
"value" : 2
349+
"value" : 3
350350
},
351351
{
352352
"condition_type" : "Not",
@@ -371,7 +371,7 @@
371371
"condition_type" : "Attribute",
372372
"attribute" : "diabetes_severity",
373373
"operator" : "<",
374-
"value" : 2
374+
"value" : 3
375375
},
376376
{
377377
"condition_type" : "Active Medication",
@@ -424,7 +424,7 @@
424424
"condition_type" : "Attribute",
425425
"attribute" : "diabetes_severity",
426426
"operator" : ">=",
427-
"value" : 3
427+
"value" : 4
428428
},
429429
{
430430
"condition_type" : "Not",
@@ -449,7 +449,7 @@
449449
"condition_type" : "Attribute",
450450
"attribute" : "diabetes_severity",
451451
"operator" : "<",
452-
"value" : 3
452+
"value" : 4
453453
},
454454
{
455455
"condition_type" : "Active Medication",
@@ -493,13 +493,20 @@
493493

494494
"Insulin" : {
495495
"type" : "Simple",
496+
"remarks" : ["around a third of patients with type 2 diabetes are on insulin ",
497+
"30.8% (17.8% only insulin and 13.0% insulin and other med)",
498+
"https://www.cdc.gov/diabetes/statistics/meduse/fig2.htm",
499+
"coincidentally around a third of patients have nephropathy",
500+
"for simplicity we'll make this a 1-1 relationship so that nephropathy --> insulin"],
496501
"conditional_transition" : [
497502
{
498503
"condition" : {
499-
"condition_type" : "Attribute",
500-
"attribute" : "diabetes_severity",
501-
"operator" : ">=",
502-
"value" : 4
504+
"condition_type" : "Active Condition",
505+
"codes" : [{
506+
"system" : "SNOMED-CT",
507+
"code" : "127013003",
508+
"display" : "Diabetic renal disease (disorder)"
509+
}]
503510
},
504511
"transition" : "Prescribe_Insulin"
505512
},
@@ -1422,18 +1429,29 @@
14221429
"complex_transition" : [
14231430
{
14241431
"condition" : {
1425-
"condition_type" : "Active Condition",
1426-
"codes" : [{
1427-
"system" : "SNOMED-CT",
1428-
"code" : "368581000119106",
1429-
"display" : "Neuropathy due to type 2 diabetes mellitus (disorder)"
1430-
}]
1432+
"condition_type" : "PriorState",
1433+
"name" : "Amputation_Necessary",
1434+
"within" : { "quantity" : 1, "unit" : "years" }
1435+
},
1436+
"remarks" : ["dialysis means this check is made every few days which can skew results.",
1437+
"we only want to consider amputation once a year"],
1438+
"transition" : "No_Amputation_Necessary"
1439+
},
1440+
{
1441+
"condition" : {
1442+
"condition_type" : "Active Condition",
1443+
"codes" : [{
1444+
"system" : "SNOMED-CT",
1445+
"code" : "368581000119106",
1446+
"display" : "Neuropathy due to type 2 diabetes mellitus (disorder)"
1447+
}]
14311448
},
14321449
"distributions" : [
14331450
{ "distribution" : 0.0025, "transition" : "Amputation_Necessary" },
14341451
{ "distribution" : 0.9975, "transition" : "No_Amputation_Necessary" }
14351452
],
1436-
"remarks" : ["Amputations resulting from type-2 diabetes in the US occur in 0.25% of the population",
1453+
"remarks" : ["In 2010, about 73,000 non-traumatic lower-limb amputations were performed in adults aged 20 years or older with diagnosed diabetes.",
1454+
"28.9 million adults had diagnosed diabetes. 73,000/ 28,900,000 = 0.0025 or 0.25% per year",
14371455
"https://www.cdc.gov/diabetes/data/statistics/2014statisticsreport.html"]
14381456
},
14391457
{
@@ -1477,7 +1495,7 @@
14771495

14781496
"Delay_Before_Amputation" : {
14791497
"type" : "Delay",
1480-
"exact" : { "quantity" : "6", "unit" : "weeks" },
1498+
"exact" : { "quantity" : 6, "unit" : "weeks" },
14811499
"direct_transition" : "Amputation"
14821500
},
14831501

0 commit comments

Comments
 (0)