medic / cht-release-testing

Used to track release testing on medic projects
2 stars 0 forks source link

Test Ability to generate short codes (similar to patient_id) in reports #75

Open ngaruko opened 4 years ago

ngaruko commented 4 years ago

Refer to https://github.com/medic/cht-core/issues/6291

  1. Configure app_settings to process case reports.

  2. 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 },

  3. add it to transitions : "registrations": [ { "form": "CASEID", "events": [ { "name": "on_create", "trigger": "add_case" } ] },

  4. 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" } ] } ]

  5. upload the settings

  6. send an sms 1!CASEID

  7. Process the SMS form from a chw. Using the one configured in the app_Settings 1!CASEID!.

  8. 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
    image

  9. Ensure submitting a signoff report as configured in app_settings will associate to that case_id

ngaruko commented 3 years ago

LGTM .Updated the description above! image