erDiagram
appointment_session {
bigint sessionid PK
}
appointment_slot {
bigint slotid PK
}
appointment_slothistory {
bigint slothistoryid PK
bigint carecontactid FK
bigint patientid FK
bigint sessionid FK
bigint slotid FK
bigint slottypeid FK
}
appointment_slottype {
bigint slottypeid PK
}
dbo_patient {
bigint patientid PK
}
episodemanagement_carecontact {
bigint carecontactid PK
}
episodemanagement_carecontact }o..o{ appointment_slothistory : "carecontactid"
dbo_patient }o..o{ appointment_slothistory : "patientid"
appointment_session }o..o{ appointment_slothistory : "sessionid"
appointment_slot }o..o{ appointment_slothistory : "slotid"
appointment_slottype }o..o{ appointment_slothistory : "slottypeid"