Skip to main content
PUT
/
prescricoes
/
{prescricao_id}
curl -X PUT https://api.vidaplus.com/prescricoes/1 \
  -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, 4x ao dia por 10 dias",
    "observacao": "Dosagem ajustada - tomar após as refeições"
  }'
{
  "id": 1,
  "data": "2025-04-28",
  "paciente_id": 1,
  "profissional_id": 2,
  "tipo_prescricao": "ANTIBIOTICO",
  "medicamentos": "Amoxicilina 500mg, 4x ao dia por 10 dias",
  "observacao": "Dosagem ajustada - tomar após as refeições"
}
Updates an existing prescription. Only the healthcare professional who created the prescription (or a superuser) can update it.

Authentication

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

Path Parameters

prescricao_id
integer
required
The unique identifier of the prescription to update

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 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 PUT https://api.vidaplus.com/prescricoes/1 \
  -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, 4x ao dia por 10 dias",
    "observacao": "Dosagem ajustada - tomar após as refeições"
  }'
{
  "id": 1,
  "data": "2025-04-28",
  "paciente_id": 1,
  "profissional_id": 2,
  "tipo_prescricao": "ANTIBIOTICO",
  "medicamentos": "Amoxicilina 500mg, 4x ao dia por 10 dias",
  "observacao": "Dosagem ajustada - tomar após as refeições"
}

Error Codes

Status CodeDescription
200Prescription updated successfully
401Unauthorized - Invalid or missing token
403User does not have permission to update this prescription
404Prescription, patient, professional, or medical record not found

Access Control

  • Only the healthcare professional who created the prescription can update it
  • Superusers can update any prescription
  • All referenced IDs (patient, professional, medical record) must exist in the system

Build docs developers (and LLMs) love