Add case id form to forms in app-settings "forms": { "CASEID": { "meta": { "code": "CASEID", "icon": "icon-healthcare", "translation_key": "Case Id Form" }, "fields": {}, "use_sentinel": true },
add it to transitions : "registrations": [ { "form": "CASEID", "events": [ { "name": "on_create", "trigger": "add_case" } ] },
add "accept_case_reports" with another form that uses the case id created above: "accept_case_reports": [ { "form": "SIGNOFF", "validations": {}, "messages": [ { "event_type": "report_accepted", "bool_expr": "some expression", "message": "some message", "recipient": "reporting_unit" } ] } ]
upload the settings
send an sms 1!CASEID
Process the SMS form from a chw. Using the one configured in the app_Settings 1!CASEID!.
Verify that the resulting report has a case_id field. This should work if there is not patient_id or patient_uuid associated to the report
Ensure submitting a signoff report as configured in app_settings will associate to that case_id
Refer to https://github.com/medic/cht-core/issues/6291
Configure app_settings to process case reports.
Add case id form to forms in app-settings
"forms": { "CASEID": { "meta": { "code": "CASEID", "icon": "icon-healthcare", "translation_key": "Case Id Form" }, "fields": {}, "use_sentinel": true },
add it to transitions :
"registrations": [ { "form": "CASEID", "events": [ { "name": "on_create", "trigger": "add_case" } ] },
add
"accept_case_reports"
with another form that uses the case id created above:"accept_case_reports": [ { "form": "SIGNOFF", "validations": {}, "messages": [ { "event_type": "report_accepted", "bool_expr": "some expression", "message": "some message", "recipient": "reporting_unit" } ] } ]
upload the settings
send an sms
1!CASEID
Process the SMS form from a chw. Using the one configured in the app_Settings
1!CASEID!
.Verify that the resulting report has a
![image](https://user-images.githubusercontent.com/6979995/125543880-86090616-555b-4f43-8b03-247c2bd0ca12.png)
case_id
field. This should work if there is notpatient_id
orpatient_uuid
associated to the reportEnsure submitting a
signoff
report as configured in app_settings will associate to thatcase_id