info@nphl.go.ke

COVID-19 Case Submission API

ParameterDescription
USERNAMEMandatory
PASSWORDMandatory
 
TESTING_LAB Code of the testing lab(See lab codes below). Mandatory
CASE_ID
CASE_TYPE Either Initial or Repeat. Mandatory
SAMPLE_TYPE One of: NP Swab, OP Swab, Serum, Sputum or Tracheal Aspirate. Mandatory
SAMPLE_NUMBER Unique identifier for the sample at the testing lab. Mandatory
SAMPLE_COLLECTION_DATE Date format is Y-m-d e.g. 2020-05-31. Mandatory
RECEIVED_ON Date format is Y-m-d e.g. 2020-05-31. Mandatory
RESULT Negative or Positive. Mandatory
LAB_CONFIRMATION_DATE Date format is Y-m-d e.g. 2020-05-31. Mandatory
FIRST_FOLLOW_UP_DATE Date format is Y-m-d e.g. 2020-05-31
FIRST_FOLLOW_UP_RESULT 
SECOND_FOLLOW_UP_DATE Date format is Y-m-d e.g. 2020-05-31
SECOND_FOLLOW_UP_RESULT 
THIRD_FOLLOW_UP_DATE Date format is Y-m-d e.g. 2020-05-31
THIRD_FOLLOW_UP_RESULT 
 
PATIENT_NAMESMandatory
PATIENT_PHONE 
AGEMandatory
AGE_UNITYears, months or days. Mandatory
GENDER F for Female and M for Male. Mandatory
OCCUPATION 
NATIONALITYMandatory
NATIONAL_IDNational ID / Passport Number / Alien ID
COUNTY County of residence. Mandatory
SUB_COUNTYMandatory
WARD 
VILLAGEMandatory
 
HAS_TRAVEL_HISTORY Either Yes or No
TRAVEL_FROM 
CONTACT_WITH_CASE Did the patient have contact with a confirmed case? Either Yes or No
CONFIRMED_CASE_NAME 
 
SYMPTOMATIC Does the patient display symptoms? Either Yes or No
SYMPTOMS Semi-colon delimited list of symptoms
SYMPTOMS_ONSET_DATE Date format is Y-m-d e.g. 2020-05-31
COUNTY_OF_DIAGNOSIS County where the case was isolated. Mandatory
 
QUARANTINED_FACILITY The quarantine facility name (if quarantined)
HOSPITALIZED Either Yes, No or Unknown
ADMISSION_DATE Date format is Y-m-d e.g. 2020-05-31

Submission Instructions

Data should be submitted as a POST request to the provided end point.

A successful submission yields a JSON output as shown below:

{ "status": "SUCCESS", "message": 10 }

An unsuccessful submission yields a JSON output similar to the one shown below:

{ "status": "ERROR", "message": "SAMPLE_NUMBER (AGN/06/023) repeated!" }

Testing Lab ID

The testing lab value in the above API is the MFL Code of the testing facility. If your facility does not have an MFL Code, we will assign you with a provisional code.

FacilityTesting Lab ID
AMPATHplus - Moi Teaching & Referral Hospital00018
Aga Khan Hospital12867
Amref Medical Centre - Wilson Airport23815
Busia District Hospital15834
CDC Kisumu Laboratory00036
CDC Nairobi Laboratory00034
Coast Province General Hospital11289
ILRI Lab00033
IOM Kenya00037
KEMRI Alupe - Busia00025
KEMRI CMR - Nairobi00038
KEMRI HIV Lab - Kisumu00026
KEMRI P3 - Nairobi00024
KEMRI VHF Lab - Nairobi00035
KEMRI WRP - Kericho00027
KEMRI WRP - Kisumu00031
KEMRI Welcome Trust - Kilifi00030
KNH CCC - Nairobi00028
Kenyatta University Teaching & Referral Hospital24979
Kitale District Hospital14947
Machakos Level 5 Hospital12438
Mahi Mahiu Mobile Laboratory00020
Malindi District Hospital11555
Meditest Diagnostics Services00040
Moi Teaching Referral Hospital15204
Mombasa Hospital11643
Nairobi Hospital13110
Namanga Mobile Laboratory00019
National HIV Reference Lab00007
National Influenza Centre00009
Pathcare Kenya Ltd00039
Pathologists Lancet Kenya00029
The Nairobi West Hospital13115
Wajir County Referral Hospital13452