generated: '2026-07-24' method: derived source: openapi/*.json (schema id-reference fields) note: Entity relationships derived from id-reference property names across the 17 OpenAPI specs. belongs_to = the entity carries a foreign-key field pointing at the target. core_entities: - patient - physician - practice - service_location - appointment - visit_note - document - insurance_company - insurance_plan - user - message_thread - lab_vendor relationships: - from: Actor to: user via: user_id kind: belongs_to - from: Appointment to: patient via: patient kind: belongs_to - from: Appointment to: physician via: physician kind: belongs_to - from: Appointment to: practice via: practice kind: belongs_to - from: Appointment to: service_location via: service_location kind: belongs_to - from: AppointmentBillingDetails to: physician via: referring_provider kind: belongs_to - from: AppointmentType to: practice via: practice kind: belongs_to - from: Bill to: patient via: patient kind: belongs_to - from: Bill to: physician via: physician kind: belongs_to - from: Bill to: practice via: practice kind: belongs_to - from: Bill to: physician via: referring_provider kind: belongs_to - from: Bill to: service_location via: service_location kind: belongs_to - from: Bill to: visit_note via: visit_note_id kind: belongs_to - from: BillSingleInstance to: patient via: patient kind: belongs_to - from: BillSingleInstance to: physician via: physician kind: belongs_to - from: BillSingleInstance to: practice via: practice kind: belongs_to - from: BillSingleInstance to: physician via: referring_provider kind: belongs_to - from: BillSingleInstance to: service_location via: service_location kind: belongs_to - from: BillSingleInstance to: visit_note via: visit_note kind: belongs_to - from: BillUpdate to: practice via: practice kind: belongs_to - from: BillUpdate to: physician via: referring_provider kind: belongs_to - from: BillUpdate to: service_location via: service_location kind: belongs_to - from: BillUpdate to: visit_note via: visit_note kind: belongs_to - from: CPTCode to: practice via: practice kind: belongs_to - from: CardiacCenter to: practice via: practice kind: belongs_to - from: CardiacOrder to: patient via: patient kind: belongs_to - from: CardiacOrder to: practice via: practice kind: belongs_to - from: CardiacOrderTest to: practice via: practice kind: belongs_to - from: Comment to: practice via: practice kind: belongs_to - from: Contact to: practice via: practice kind: belongs_to - from: Contact to: user via: user kind: belongs_to - from: CreatePaymentLink to: patient via: patient kind: belongs_to - from: CreatePaymentLink to: practice via: practice kind: belongs_to - from: DataImportRequest to: physician via: physician_id kind: belongs_to - from: DataImportRequest to: practice via: practice_id kind: belongs_to - from: DataImportRequestDetail to: physician via: physician_id kind: belongs_to - from: DataImportRequestDetail to: practice via: practice_id kind: belongs_to - from: DelegatePermission to: physician via: physician kind: belongs_to - from: DelegatePermission to: practice via: practice kind: belongs_to - from: DiscontinueMedOrder to: patient via: patient kind: belongs_to - from: DiscontinueMedOrder to: practice via: practice kind: belongs_to - from: DiscontinueMedOrder to: message_thread via: thread kind: belongs_to - from: Document to: patient via: patient kind: belongs_to - from: DocumentResolutionState to: document via: document kind: belongs_to - from: EligibilityPlanDetails to: physician via: provider kind: belongs_to - from: FacilityIdentifier to: practice via: practice kind: belongs_to - from: File to: practice via: practice kind: belongs_to - from: Fulfillment to: service_location via: service_location kind: belongs_to - from: Image to: practice via: practice kind: belongs_to - from: ImagingCenter to: practice via: practice kind: belongs_to - from: ImagingOrder to: patient via: patient kind: belongs_to - from: ImagingOrder to: practice via: practice kind: belongs_to - from: ImagingOrderTest to: practice via: practice kind: belongs_to - from: IncomingFileGroup to: practice via: practice kind: belongs_to - from: Injection to: patient via: patient kind: belongs_to - from: Injection to: practice via: practice kind: belongs_to - from: Injection to: service_location via: service_location_id kind: belongs_to - from: Insurance to: insurance_company via: insurance_company kind: belongs_to - from: Insurance to: insurance_plan via: insurance_plan kind: belongs_to - from: InsuranceCompany to: practice via: practice kind: belongs_to - from: InsuranceCompanySingleInstance to: practice via: practice kind: belongs_to - from: InsuranceEligibility to: patient via: patient_id kind: belongs_to - from: InsuranceEligibility to: practice via: practice_id kind: belongs_to - from: InsuranceEligibilityFullReport to: patient via: patient_id kind: belongs_to - from: InsuranceEligibilityFullReport to: practice via: practice_id kind: belongs_to - from: InsurancePlan to: insurance_company via: insurance_company kind: belongs_to - from: InsurancePlan to: practice via: practice kind: belongs_to - from: InsurancePlanSingleInstance to: insurance_company via: insurance_company kind: belongs_to - from: InsurancePlanSingleInstance to: practice via: practice kind: belongs_to - from: InternalPracticeNoteSerializerProxy to: document via: document kind: belongs_to - from: LabOrder to: physician via: ordering_physician kind: belongs_to - from: LabOrder to: patient via: patient kind: belongs_to - from: LabOrder to: practice via: practice kind: belongs_to - from: LabOrderSet to: lab_vendor via: lab_vendor kind: belongs_to - from: LabOrderSet to: practice via: practice kind: belongs_to - from: LabOrderTest to: lab_vendor via: lab_vendor kind: belongs_to - from: LabOrderTestCompendium to: lab_vendor via: lab_vendor kind: belongs_to - from: LabOrderTestWithDiagnoses to: lab_vendor via: lab_vendor kind: belongs_to - from: LabVendorIntegration to: lab_vendor via: lab_vendor kind: belongs_to - from: LabVendorIntegration to: practice via: practice kind: belongs_to - from: Letter to: patient via: patient kind: belongs_to - from: Letter to: practice via: practice kind: belongs_to - from: MedOrder to: patient via: patient kind: belongs_to - from: MedOrder to: practice via: practice kind: belongs_to - from: MedOrder to: message_thread via: thread kind: belongs_to - from: MedOrderTemplate to: practice via: practice kind: belongs_to - from: Medication to: practice via: practice kind: belongs_to - from: MedicationHistoryDownloadFill to: patient via: patient kind: belongs_to - from: MedicationHistoryDownloadFill to: practice via: practice kind: belongs_to - from: MessageThread to: patient via: patient kind: belongs_to - from: MessageThread to: practice via: practice kind: belongs_to - from: NonVisitNote to: patient via: patient kind: belongs_to - from: NonVisitNoteDocument to: document via: document kind: belongs_to - from: PatchedAppointment to: patient via: patient kind: belongs_to - from: PatchedAppointment to: physician via: physician kind: belongs_to - from: PatchedAppointment to: practice via: practice kind: belongs_to - from: PatchedAppointment to: service_location via: service_location kind: belongs_to - from: PatchedAppointmentType to: practice via: practice kind: belongs_to - from: PatchedBillUpdate to: practice via: practice kind: belongs_to - from: PatchedBillUpdate to: physician via: referring_provider kind: belongs_to - from: PatchedBillUpdate to: service_location via: service_location kind: belongs_to - from: PatchedBillUpdate to: visit_note via: visit_note kind: belongs_to - from: PatchedCPTCode to: practice via: practice kind: belongs_to - from: PatchedCardiacOrder to: patient via: patient kind: belongs_to - from: PatchedCardiacOrder to: practice via: practice kind: belongs_to - from: PatchedContact to: practice via: practice kind: belongs_to - from: PatchedContact to: user via: user kind: belongs_to - from: PatchedDataImportRequestDetail to: physician via: physician_id kind: belongs_to - from: PatchedDataImportRequestDetail to: practice via: practice_id kind: belongs_to - from: PatchedFacilityIdentifier to: practice via: practice kind: belongs_to - from: PatchedImagingOrder to: patient via: patient kind: belongs_to - from: PatchedImagingOrder to: practice via: practice kind: belongs_to - from: PatchedInsuranceCompanySingleInstance to: practice via: practice kind: belongs_to - from: PatchedInsurancePlanSingleInstance to: insurance_company via: insurance_company kind: belongs_to - from: PatchedInsurancePlanSingleInstance to: practice via: practice kind: belongs_to - from: PatchedInternalPracticeNoteSerializerProxy to: document via: document kind: belongs_to - from: PatchedLabOrder to: physician via: ordering_physician kind: belongs_to - from: PatchedLabOrder to: patient via: patient kind: belongs_to - from: PatchedLabOrder to: practice via: practice kind: belongs_to - from: PatchedLabOrderSet to: lab_vendor via: lab_vendor kind: belongs_to