Skip to main content
POST
/
exames
curl -X POST https://api.vidaplus.com/exames/ \
  -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": "Aguardando",
    "resultado": null,
    "observacao": "Exame de rotina"
  }'
{
  "id": 1,
  "paciente_id": 1,
  "data": "2025-04-28",
  "tipo": "Eletrocardiograma",
  "status": "Aguardando",
  "resultado": null,
  "observacao": "Exame de rotina"
}
Creates a new exam record in the system. Only healthcare professionals (superusers) can create exams.

Authentication

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

Request Body

paciente_id
integer
required
The ID of the patient for whom the exam is being created.
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 to be performed. 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 created 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 POST https://api.vidaplus.com/exames/ \
  -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": "Aguardando",
    "resultado": null,
    "observacao": "Exame de rotina"
  }'
{
  "id": 1,
  "paciente_id": 1,
  "data": "2025-04-28",
  "tipo": "Eletrocardiograma",
  "status": "Aguardando",
  "resultado": null,
  "observacao": "Exame de rotina"
}

Error Responses

Build docs developers (and LLMs) love