erDiagram
appointment_assignmentlistpatientschedule {
bigint assignmentlistpatientscheduleid PK
bigint patientscheduleid FK
}
appointment_patientschedule {
bigint patientscheduleid PK
bigint locationid FK
bigint locationtypeid FK
bigint organisationid FK
bigint patientid FK
bigint scheduleid FK
bigint slottypeid FK
}
appointment_schedule {
bigint scheduleid PK
}
appointment_slottype {
bigint slottypeid PK
}
dbo_location {
bigint locationid PK
}
dbo_locationtype {
bigint locationtypeid PK
}
dbo_organisation {
bigint organisationid PK
}
dbo_patient {
bigint patientid PK
}
patientadmin_episode {
bigint episodeid PK
bigint patientscheduleid FK
}
appointment_patientschedule }o..o{ appointment_assignmentlistpatientschedule : "patientscheduleid"
dbo_location }o..o{ appointment_patientschedule : "locationid"
dbo_locationtype }o..o{ appointment_patientschedule : "locationtypeid"
dbo_organisation }o..o{ appointment_patientschedule : "organisationid"
dbo_patient }o..o{ appointment_patientschedule : "patientid"
appointment_schedule }o..o{ appointment_patientschedule : "scheduleid"
appointment_slottype }o..o{ appointment_patientschedule : "slottypeid"
appointment_patientschedule }o..o{ patientadmin_episode : "patientscheduleid"