Data model

The 63 lists, grouped, with state machines.

The repository's docs/schema-map.md documents every field. Summary:

AreaLists
PracticeHospitalProfile, Facility, FacilityImage, Department, DepartmentImage, Ward, Room, Bed
Care teamProvider, Clinician, ClinicianImage, AppointmentType, ProviderScheduleBlock, LabTest
PatientsPatient, PatientIdentifier, PatientRegistration, PatientConsent, PatientPortalAccess
VisitsAppointment, IntakeForm, CareQueueTicket, Encounter, EpisodeClosurePolicy
ClinicalVitalSign, MedicalOrder, Specimen, LabResult, Prescription, Procedure, CarePlan, ClinicalDocument
InpatientAdmission, BedReservation, BedOccupancyEvent
RevenuePatientCoverage, InsuranceClaim, ClaimVersion, PatientPayment, PatientRefund
CommunicationsPatientMessage, CommunicationTemplate, CommunicationPreference
SuppliesInventoryItem, InventoryMovement, ImportBatch
PlatformIntegrationInstallation, MachineCredential, IntegrationDeliveryAttempt, IntegrationWebhookReceipt, ClinicalOutboxEvent, ExternalIdentityLink, RetentionPolicy, RecordHold, RetentionDisposition, ExportJob
EvidenceWorkflowTransition, ClinicalAuditLog, PhiReadAudit, PasswordResetRequest, RequestRateLimitBucket
StaffUser, Role

Key relationships

FromTo
Facilitydepartments, providers, staff, patients, appointments, encounters
AppointmentPatient, Provider, AppointmentType, Facility, intake forms, queue tickets
Encounterpatient, provider, department, appointment; orders, results, claims
Admissionpatient, encounter, bed, attending provider
InsuranceClaimpatient, encounter, coverage, ClaimVersion

Controlled records

Controlled lists omit GraphQL create, update, and delete. Each row carries a transitionVersion, an operationKeyHash, and a requestHash, so repeated calls are idempotent and stale ones are rejected.

Statuses

ListValues
Appointmentrequested, confirmed, checked_in, in_visit, completed, cancelled, no_show
Encounteropen, in_progress, closed, cancelled
CareQueueTicketwaiting, called, in_care, completed, cancelled
Admissionadmitted, transferred, discharged
InsuranceClaimdraft, prepared, submitted, external_acknowledged, external_rejected, corrected, cancelled
IntakeFormnot_sent, sent, in_progress, submitted, needs_review, reviewed

On this page