Skip to content

Medical Events

Medical events group related documents under a single medical story: a diagnosis, a treatment course, a surgery, a hospitalization, anything that spans more than one document.

For example, a Sleep Apnea Diagnosis & Treatment event might link together the initial consultation report, the sleep study results, the CPAP prescription, follow-up visits, and the insurance invoices.

TypeDescription
symptomOnset of symptoms
diagnosisNew diagnosis
hospitalizationHospital stay
surgerySurgical procedure
treatmentTreatment course
follow_upFollow-up visit or check
emergencyEmergency room visit
pregnancyPregnancy-related
chronic_conditionOngoing chronic condition
injuryInjury or accident
screeningPreventive screening
otherOther medical event

Required: title and patient. Optional: type, date start / end, is ongoing, severity (mild / moderate / severe / critical), free-text diagnosis, ICD-10 code, specialty, description, notes, and a color (hex) for timeline display.

Documents can be linked to events with a relevance level:

  • Primary, directly related to this event
  • Secondary, tangentially related
  • Background, provides context

Links can be created from either the event detail page (search and add) or the document detail page (select an event or create a new one, setting the document’s event_id to the primary event).

Shows event metadata, the list of linked documents with relevance levels sorted by date, a document count, and whether each link was manual or auto-linked by the LLM.

Two deletion options:

  • Delete Event removes the event and unlinks all documents (documents are kept).
  • Delete Event & Documents removes the event AND permanently deletes all linked documents.

Both require confirmation. The Medical Events list can be filtered by patient (automatic when a patient is selected) and event type.

FieldDescription
patient_idPatient this event belongs to
titleDescriptive title
event_typeOne of the event types above
descriptionDetailed description
date_startEvent start date
date_endEvent end date (null if ongoing)
is_ongoingWhether the event is still active
severitymild, moderate, severe, critical
diagnosis_textFree text diagnosis
icd10_codeICD-10 diagnosis code
specialty_textRelevant medical specialty
notesUser notes
colorHex color for timeline display
FieldDescription
document_idLinked document
event_idLinked event
relevanceprimary, secondary, or background