Skip to content

Instantly share code, notes, and snippets.

@kitsao
Last active June 22, 2020 12:10
Show Gist options
  • Save kitsao/14227fcb92c441bd8f6a91c5170ae991 to your computer and use it in GitHub Desktop.
Save kitsao/14227fcb92c441bd8f6a91c5170ae991 to your computer and use it in GitHub Desktop.
// CHT to EMR
// patient registration
{
"_id": "contact-abc-123",
"type": "contact",
"name": "Another Patient",
"sex": "female",
"date_of_birth": "1974-09-22",
"knows_dob": "",
"art_start_date": "2010-06-27",
"tb_treatment_start_date": "2019-06-25",
"primary_phone_number": "0110000000",
"secondary_phone_number": "",
"conditions": "art",
"conditions_other":"",
"malnutrition_program":"",
"ncds":"",
"ncds_other":"",
"mental_health_type":"",
"mental_health_type_other":"",
"eid_emr_id_source":"",
"eid_emr_id_source_other":"",
"art_emr_id_source":"",
"art_emr_id_source_other":"",
"ncd_emr_id_source":"",
"ncd_emr_id_source_other":"",
"eid_id":"",
"art_id":"",
"ncd_id":"",
"notes": "",
"reported_date": 1561479580888,
"patient_id": "000123",
"contact_type": "person",
"chw": "Another Doc",
"traditional_authority": "Zomba",
"village": "Some Village",
"health_surveillance_assistant": "Some Assistant",
"site": "Zomba"
}
// trace follow up report
{
"_id": "report-abc-123",
"form": "trace_follow_up",
"type": "data_record",
"reported_date": 1591634956571,
"from": "0110000000",
"fields": {
"source": "task",
"source_id": "source-abc-123",
"patient_id": "contact-abc-123",
"patient_name": "Another patient",
"trace_reasons": "IC3 clinic missed visit",
"appt_date": "2020-06-03T00:00:00.000Z",
"is_referral_case": "yes",
"c_trace_reasons": "IC3 clinic missed visit",
"trace_details": {
"trace_outcomes": "other",
"trace_outcomes_other": "Anachoka komano panopawabwera :)",
"can_visit_facility": "yes",
"reasons_cannot_visit_facility": "stopped_treatment"
}
}
}
// OMRS to CHT
// trace report
{
"_id": "trace-abc-123",
"form": "trace",
"type": "data_record",
"content_type": "xml",
"reported_date": 1590062886373,
"needs_signoff": true,
"from": "0110000000",
"fields": {
"inputs": {
"source": "user",
"source_id": "",
"contact": {
"_id": "contact-abc-123"
}
},
"source": "user",
"source_id": "",
"patient_uuid": "contact-abc-123",
"trace_details": {
"trace_reasons": "ic3",
"missed_appointment_date": "2020-04-29",
"visit": "ic3_clinic_date",
"next_visit": "2020-05-27",
"c_trace_ic3": "IC3 clinic missed visit",
"c_trace_ncd": "",
"c_trace_mental_health": "",
"c_trace_art": "",
"c_trace_tb": "",
"c_trace_malnutrition": "",
"c_trace_lab_results": "",
"c_trace_due_for_lab": "",
"c_trace_linkage_to_care": "",
"c_trace_other": "",
"c_trace_reasons": "IC3 clinic missed visit"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment