v1

latestOpenAPI 3.0.32026-07-26229361630.0 KB
Cases

Update Case

This endpoint allows updating details of an existing medical case using the case ID.

patch/mr/api/v1/cases/{id}

Path parameters

idstring required

Unique case ID

Headers

X-Pt-Idstring required

Patient ID

Request body

display_namestring

Human-readable name for the case

hi_type'OPConsultation' | 'Prescription' | 'DischargeSummary' | 'DiagnosticReport' | 'ImmunizationRecord' | 'HealthDocumentRecord' | 'WellnessRecord'

Type of case

typestring

Type of the case

occurred_atinteger

Timestamp when the event occurred (Unix timestamp)

partner_metaobject

metadata attached to the case.

Example request

{
  "display_name": "Leg Injury",
  "hi_type": "OPConsultation",
  "type": "OP",
  "occurred_at": 1678886400,
  "partner_meta": {
    "facility_id": "GH",
    "uhid": "UHID_1234"
  }
}

Response

Case updated successfully (no content)