Used by the VHT to create a new patient.
Does not include readings, referrals or fillouts.
POST /patient
{
"personal-info": {
"key": string
}
}
HTTP Status Code | Meaning |
---|---|
201 Created |
Created the new patient successfully |
400 Bad Request |
A field in the JSON body was missing or invalid |
500 Internal Server Error |
An unhandled error occurred |
{
"id": string
}
Requires the patient ID from creation.
Used:
- By the VHT to create/edit a reading,
- By the VHT to create/edit a referral, or
- By the HCW to create/edit a fillout.
PUT /patient/{id}
{
"referral": {
"key": string
},
"reading": {
"key": string
},
"fillout": {
"key": string
}
}
HTTP Status Code | Meaning |
---|---|
200 OK |
Updated the patient information correctly |
400 Bad Request |
A field in the JSON body was missing or invalid |
404 Not Found |
The given patient ID was invalid |
500 Internal Server Error |
An unhandled error occurred |
Used by the VHT or the HCW.
GET /patient
HTTP Status Code | Meaning |
---|---|
200 OK |
Retrieved the patient data successfully |
500 Internal Server Error |
An unhandled error occurred |
[
{
"id": string,
"referral": {
"key": string
},
"reading": {
"key": string
},
"fillout": {
"key": string
}
},
...
}
GET /patient/{id}
HTTP Status Code | Meaning |
---|---|
200 OK |
Retrieved the patient data successfully |
404 Not Found |
The given patient ID was invalid |
500 Internal Server Error |
An unhandled error occurred |
{
"referral": {
"key": string
},
"reading": {
"key": string
},
"fillout": {
"key": string
}
}