Skip to main content
PATCH
Actualizar un paciente

Autorizaciones

Authorization
string
header
requerido

Clave API enviada como token Bearer

Parámetros de ruta

patient_id
string
requerido

Cuerpo

application/json

Request body for updating a patient. All fields optional; at least one required.

The national identity (idCountry/idType/idValue) is not editable here — it stays the deduplication key. internalCode follows PATCH semantics: omit to leave it unchanged, send null to clear it.

name
string | null

New display name.

Required string length: 1 - 500
Ejemplo:

"Jane Doe"

internalCode
string | null

Caller-provided internal code, unique within your institution. Omit to leave unchanged; send null to clear.

Required string length: 1 - 128
Ejemplo:

"EMR-99999"

Respuesta

Respuesta exitosa

A single patient. id is the stable public id (sp_...).

id
string
requerido

Stable public identifier.

Ejemplo:

"sp_a1b2c3d4e5f6g7h8"

name
string
requerido
Ejemplo:

"John Doe"

createdAt
string
requerido

ISO-8601 timestamp when the patient was created.

idCountry
string | null
Ejemplo:

"COLOMBIA"

idType
string | null
Ejemplo:

"CC"

idValue
string | null
Ejemplo:

"1024567890"

internalCode
string | null

Caller-provided internal code for your institution (null if none).

Ejemplo:

"EMR-12345"