Skip to main content
PUT
/
exames
/
{exame_id}
curl -X PUT https://api.vidaplus.com/exames/1 \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "paciente_id": 1,
    "prontuario_id": 1,
    "data": "2025-04-28",
    "tipo": "Eletrocardiograma",
    "status": "Concluído",
    "resultado": "ECG normal, sem alterações significativas",
    "observacao": "Exame realizado com sucesso"
  }'
{
  "id": 1,
  "paciente_id": 1,
  "data": "2025-04-28",
  "tipo": "Eletrocardiograma",
  "status": "Concluído",
  "resultado": "ECG normal, sem alterações significativas",
  "observacao": "Exame realizado com sucesso"
}
Updates an existing exam record. Only healthcare professionals (superusers) can update exams.

Authentication

This endpoint requires authentication with a valid JWT token. The user must be a healthcare professional (superuser).

Path Parameters

exame_id
integer
required
The unique identifier of the exam to update.

Request Body

paciente_id
integer
required
The ID of the patient for whom the exam is being updated.
prontuario_id
integer
required
The ID of the medical record associated with this exam.
data
date
required
The date of the exam in ISO format (YYYY-MM-DD).Example: 2025-04-28
tipo
string
required
The type of exam. Must be one of:
  • Hemograma
  • Raio-X
  • Ultrassom
  • Tomografia
  • Ressonância
  • Eletrocardiograma
  • Glicemia
  • Colesterol
status
string
required
The current status of the exam. Must be one of:
  • Aguardando - Waiting to be performed
  • Realizado - Performed
  • Concluído - Completed
  • Cancelado - Cancelled
resultado
string
The result of the exam. Can be null if the exam hasn’t been completed yet.
observacao
string
Additional observations or notes about the exam.

Response

id
integer
The unique identifier of the updated exam.
paciente_id
integer
The ID of the patient.
data
date
The date of the exam in ISO format.
tipo
string
The type of exam.
status
string
The current status of the exam.
resultado
string
The result of the exam (may be null).
observacao
string
Additional observations about the exam (may be null).
curl -X PUT https://api.vidaplus.com/exames/1 \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "paciente_id": 1,
    "prontuario_id": 1,
    "data": "2025-04-28",
    "tipo": "Eletrocardiograma",
    "status": "Concluído",
    "resultado": "ECG normal, sem alterações significativas",
    "observacao": "Exame realizado com sucesso"
  }'
{
  "id": 1,
  "paciente_id": 1,
  "data": "2025-04-28",
  "tipo": "Eletrocardiograma",
  "status": "Concluído",
  "resultado": "ECG normal, sem alterações significativas",
  "observacao": "Exame realizado com sucesso"
}

Error Responses

Notes

  • All fields in the request body are required, even if they are not being changed
  • Only healthcare professionals (superusers) can update exams
  • Both the patient and medical record must exist in the system

Build docs developers (and LLMs) love