Create a visit for a patient

POST /patients/{patientId}/visits

Path parameters

  • patientId string(uuid) Required

    The ID of the affected patient

Body

Object containing the visit details

  • type string

    Values are OPD, IPD, PHYSIOTHERAPY, or EMERGENCY.

Responses

  • OK

    Hide response attributes Show response attributes object
    • _id string(uuid) Required

      Technical identifier of the visit

    • type string Required

      Values are OPD, IPD, PHYSIOTHERAPY, or EMERGENCY.

    • opdNumber string Required

      OPD number of the visit

    • timeStart string Required

      The time of the patient registration

    • timeEnd string | null

      The time of the patient discharge

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"
}