Skip to content

Commit

Permalink
Updates from review.
Browse files Browse the repository at this point in the history
  • Loading branch information
jawalonoski committed Oct 25, 2024
1 parent 567cbf5 commit 665de81
Show file tree
Hide file tree
Showing 4 changed files with 669 additions and 395 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/mitre/synthea/engine/Logic.java
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,9 @@ public static class Attribute extends Logic {
@Override
public boolean test(Person person, long time) {
try {
if (value instanceof String) {
value = person.attributes.getOrDefault(value, value);
}
return Utilities.compare(person.attributes.get(attribute), value, operator);
} catch (Exception e) {
String message = "Attribute Logic error: " + attribute + " " + operator + " " + value;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"name": "anti_amyloid_beta_monoclonal_antibody_infusions",
"remarks": [
"This module depends on the Dementia and Anti-Amyloid-Beta Monoclonal Antibody Treatment modules, and uses the shared medications/anti_ab_mabs_selection submodule."
],
"states": {
"Initial": {
"type": "Initial",
"direct_transition": "Wait Until Study is Active"
},
"Wait Until Study is Active": {
"type": "Guard",
"allow": {
"condition_type": "And",
"conditions": [
{
"condition_type": "Attribute",
"attribute": "anti-ab-mab-ced-study",
"operator": "is not nil"
},
{
"condition_type": "Attribute",
"attribute": "anti-ab-mab-ced-study",
"operator": "==",
"value": true
}
]
},
"direct_transition": "Wait for Infusion Appointment"
},
"Wait for Infusion Appointment": {
"type": "Delay",
"distribution": {
"kind": "EXACT",
"parameters": {
"value": 2
}
},
"unit": "weeks",
"conditional_transition": [
{
"transition": "Infusion Encounter",
"condition": {
"condition_type": "Attribute",
"attribute": "anti-ab-mab-ced-study",
"operator": "==",
"value": true
}
},
{
"transition": "Wait for Infusion Appointment"
}
]
},
"Infusion Encounter": {
"type": "Encounter",
"encounter_class": "ambulatory",
"reason": "Type of Alzheimer's",
"telemedicine_possibility": "none",
"codes": [
{
"system": "SNOMED-CT",
"code": "387760006",
"display": "Infusion care (regime/therapy)"
}
],
"direct_transition": "Receive_mAbs"
},
"End Encounter": {
"type": "EncounterEnd",
"direct_transition": "Wait for Infusion Appointment"
},
"Receive_mAbs": {
"type": "CallSubmodule",
"submodule": "medications/anti_ab_mabs_selection",
"direct_transition": "End Encounter"
}
},
"gmf_version": 2
}
Loading

0 comments on commit 665de81

Please sign in to comment.