Saltar al contenido

app.medical_encounters

TablaSeguridad a nivel de fila activa

Medical encounters at an incident. Treatment notes are Restricted (data.restricted.read.medical) and field-encrypted: written only through app.record_medical_encounter and app.update_medical_encounter, read only through app.medical_encounters_masked.

Clave primaria: id

Columnas de app.medical_encounters
ColumnaTipoAdmite nulosDescripción
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.incidents on insert; never accepted from the caller and never changed.Hace referencia a app.organizations.id
incident_iduuidNoIncident.Hace referencia a app.incidents.id
patient_descriptiontextNoWho was treated, without identifying medical detail.
treatment_notesbyteaSíTreatment given, encrypted with pgp_sym_encrypt under the Vault key xos_medical_notes_key. Restricted (data.restricted.read.medical): never selectable or writable by signed-in callers; written through app.record_medical_encounter and app.update_medical_encounter and read decrypted through app.medical_encounters_masked.
dispositiontextSíOutcome, such as released or transported.
deleted_attimestamp with time zoneSíSoft delete time. A row with deleted_at set is ignored by every access helper.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidSíPerson who inserted the row, or null for a platform process. Set by the database.Hace referencia a app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidSíPerson who last changed the row, or null for a platform process. Set by the database.Hace referencia a app.people.id