Child Health & Immunizations

The digital child immunization card (Uganda EPI) auto-forecasts every due dose and drives 1-week/1-day guardian reminders. Child health adds WHO growth monitoring (z-scores + MAM/SAM flags), developmental milestones, IMCI danger-sign checking, Vitamin A/deworming, and a newborn sickle-cell screening prompt wired to the hereditary risk engine.

Immunizations: /api/v1/immunizations/. Child health: /observation/api/v1/childhealth/. For a minor, reads/writes are by the active guardian, a treating provider, or a service.

Immunization card

GET/api/v1/immunizations/forecast/?patient_uhid=Digital card: DUE/OVERDUE/UPCOMING/COMPLETE
GET/api/v1/immunizations/patient-history/?patient_uhid=All recorded doses
POST/api/v1/immunizations/Record a dose
POST/api/v1/immunizations/historical/Digitise a past dose (provenance)
POST/api/v1/immunizations/schedule-reminders/Schedule 1wk/1day reminders
RESPONSE200
{
  "patient_uhid": "UG615021060U",
  "date_of_birth": "2024-01-15",
  "items": [
    {
      "vaccine_code": "BCG",
      "dose_number": 1,
      "due_date": "2024-01-15",
      "status": "complete"
    },
    {
      "vaccine_code": "PCV",
      "dose_number": 3,
      "due_date": "2024-04-22",
      "status": "overdue"
    },
    {
      "vaccine_code": "MR",
      "dose_number": 1,
      "due_date": "2024-10-15",
      "status": "upcoming"
    }
  ]
}

Growth monitoring

POST/observation/api/v1/childhealth/growth/measure/Record a measurement (WHO z-scores)
GET/observation/api/v1/childhealth/growth/status/Latest status + flags (MAM/SAM/stunting)
GET/observation/api/v1/childhealth/growth/chart/Growth curve data
POST/observation/api/v1/childhealth/growth/historical/Digitise a past measurement
Record a measurement
bash
curl -X POST https://api.mediloop.co/observation/api/v1/childhealth/growth/measure/ \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "patient_uhid": "UG615021060U",
    "weight_kg": 8.0, "height_cm": 72.0, "muac_mm": 135
  }'

Milestones, danger signs, preventive & newborn screening

GET/observation/api/v1/childhealth/milestones/config/Milestone catalog
POST/observation/api/v1/childhealth/milestones/record/Record a milestone
GET/observation/api/v1/childhealth/milestones/status/Milestone status (with red flags)
GET/observation/api/v1/childhealth/danger-signs/checklist/IMCI danger-sign checklist
POST/observation/api/v1/childhealth/danger-signs/screen/Screen -> urgent/SOS if positive
GET/observation/api/v1/childhealth/preventive/forecast/Vitamin A / deworming forecast
POST/observation/api/v1/childhealth/preventive/record/Record Vitamin A / deworming
GET/observation/api/v1/childhealth/newborn-screening/Newborn sickle-cell screening prompt

A positive IMCI danger-sign screen (can't feed, vomiting everything, convulsions, lethargy) returns is_urgent: true, writes a FHIR Flag, and routes to the urgent/safeguarding path. The newborn sickle-cell prompt reflects real family carrier risk from the hereditary risk engine.