Get the details of an individual visit

GET /patients/{patientId}/visits/{visitId}

Path parameters

  • patientId string(uuid) Required

    The ID of the affected patient

  • visitId string(uuid) Required

    The ID of the visit to retrieve

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

GET /patients/{patientId}/visits/{visitId}
curl \
 -X GET https://example.com/api/patients/{patientId}/visits/{visitId} \
 -H "Authorization: Bearer $ACCESS_TOKEN"
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"
}