From bc5063b72b567c6b4cc4c0ef410bbb57742af9b8 Mon Sep 17 00:00:00 2001 From: Jason Walonoski Date: Tue, 5 Sep 2023 16:32:52 -0400 Subject: [PATCH] Add testing module to ensure HHA visits for RIF unit tests. --- src/test/resources/module/test_hha.json | 65 +++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 src/test/resources/module/test_hha.json diff --git a/src/test/resources/module/test_hha.json b/src/test/resources/module/test_hha.json new file mode 100644 index 0000000000..bea04b9328 --- /dev/null +++ b/src/test/resources/module/test_hha.json @@ -0,0 +1,65 @@ +{ + "name": "test_hha", + "remarks": [ + "Test module." + ], + "states": { + "Initial": { + "type": "Initial", + "direct_transition": "Wait until 65" + }, + "Wait until 65": { + "type": "Guard", + "allow": { + "condition_type": "Age", + "operator": ">=", + "quantity": 65, + "unit": "years", + "value": 0 + }, + "direct_transition": "Schedule Visit" + }, + "Home Health Visit": { + "type": "Encounter", + "encounter_class": "home", + "reason": "", + "telemedicine_possibility": "none", + "codes": [ + { + "system": "SNOMED-CT", + "code": 439708006, + "display": "Home visit (procedure)" + } + ], + "direct_transition": "Nursing_Care" + }, + "Nursing_Care": { + "type": "Procedure", + "codes": [ + { + "system": "SNOMED-CT", + "code": "410401003", + "display": "Nursing care/supplementary surveillance (regime/therapy)" + } + ], + "direct_transition": "End Visit" + }, + "End Visit": { + "type": "EncounterEnd", + "direct_transition": "Schedule Visit" + }, + "Schedule Visit": { + "type": "Delay", + "distribution": { + "kind": "UNIFORM", + "parameters": { + "high": 52, + "low": 26 + } + }, + "unit": "weeks", + "direct_transition": "Home Health Visit" + } + }, + "gmf_version": 2 +} \ No newline at end of file