Skip to main content
POST
/
prescricoes
curl -X POST https://api.vidaplus.com/prescricoes/ \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "data": "2025-04-28",
    "paciente_id": 1,
    "profissional_id": 2,
    "prontuario_id": 1,
    "tipo_prescricao": "ANTIBIOTICO",
    "medicamentos": "Amoxicilina 500mg, 3x ao dia por 7 dias",
    "observacao": "Tomar após as refeições"
  }'
{
  "id": 1,
  "data": "2025-04-28",
  "paciente_id": 1,
  "profissional_id": 2,
  "tipo_prescricao": "ANTIBIOTICO",
  "medicamentos": "Amoxicilina 500mg, 3x ao dia por 7 dias",
  "observacao": "Tomar após as refeições"
}
Creates a new prescription record. Only healthcare professionals can create prescriptions, and they can only create prescriptions assigned to themselves (unless they are a superuser).

Authentication

This endpoint requires authentication via JWT Bearer token.
Authorization
string
required
Bearer token for authentication

Request Body

data
date
required
Prescription date in ISO format (YYYY-MM-DD)
paciente_id
integer
required
ID of the patient receiving the prescription
profissional_id
integer
required
ID of the healthcare professional issuing the prescription
prontuario_id
integer
ID of the medical record associated with this prescription
tipo_prescricao
string
required
Type of prescription. Must be one of:
  • MEDICACAO_CONTINUA - Continuous Medication
  • MEDICACAO_TEMPORARIA - Temporary Medication
  • ANTIBIOTICO - Antibiotic
  • ANALGESICO - Analgesic
  • RECEITA_ESPECIAL - Special Prescription
medicamentos
string
required
List of medications prescribed (comma-separated or free text)
observacao
string
Additional observations or instructions for the prescription

Response

id
integer
Unique identifier for the created prescription
data
date
Prescription date
paciente_id
integer
ID of the patient
profissional_id
integer
ID of the healthcare professional
tipo_prescricao
string
Type of prescription
medicamentos
string
Prescribed medications
observacao
string
Additional observations
curl -X POST https://api.vidaplus.com/prescricoes/ \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "data": "2025-04-28",
    "paciente_id": 1,
    "profissional_id": 2,
    "prontuario_id": 1,
    "tipo_prescricao": "ANTIBIOTICO",
    "medicamentos": "Amoxicilina 500mg, 3x ao dia por 7 dias",
    "observacao": "Tomar após as refeições"
  }'
{
  "id": 1,
  "data": "2025-04-28",
  "paciente_id": 1,
  "profissional_id": 2,
  "tipo_prescricao": "ANTIBIOTICO",
  "medicamentos": "Amoxicilina 500mg, 3x ao dia por 7 dias",
  "observacao": "Tomar após as refeições"
}

Error Codes

Status CodeDescription
201Prescription created successfully
403User does not have permission to create this prescription
404Patient, professional, or medical record not found
401Unauthorized - Invalid or missing token

Build docs developers (and LLMs) love