Create a visit for a patient
Path parameters
-
The ID of the affected patient
POST /patients/{patientId}/visits
curl \
-X POST https://example.com/api/patients/{patientId}/visits \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"type":"OPD"}'
Request example
{
"type": "OPD"
}
Request examples
{
"type": "OPD"
}
Response examples (200)
{
"_id": "ce1d3f10-eef8-4f3e-a598-928e6d6fcdb9",
"type": "OPD",
"opdNumber": "21-1001",
"timeStart": "string",
"timeEnd": "2023-05-13T10:55:06.618498"
}
Response examples (200)
{
"_id": "ce1d3f10-eef8-4f3e-a598-928e6d6fcdb9",
"type": "OPD",
"opdNumber": "21-1001",
"timeStart": "string",
"timeEnd": "2023-05-13T10:55:06.618498"
}