Skip to content
Partner Developer Portal

ERD

erDiagram
  appointment_patientschedule {
    bigint patientscheduleid PK
    bigint locationid FK
  }
  appointment_session {
    bigint sessionid PK
    bigint locationid FK
  }
  appointment_sessionlocation {
    varchar(50) _primary_key PK
    bigint locationid FK
  }
  carerecord_consultation {
    bigint consultationid PK
    bigint locationid FK
  }
  childhealth_treatmentcentre {
    bigint treatmentcentreid PK
    bigint locationid FK
  }
  dbo_address {
    bigint addressid PK
  }
  dbo_location {
    bigint locationid PK
    bigint addressid FK
    bigint locationtypeid FK
  }
  dbo_locationtype {
    bigint locationtypeid PK
  }
  dbo_organisationlocation {
    varchar(50) _primary_key PK
    bigint locationid FK
  }
  episodemanagement_groupsession {
    bigint groupsessionid PK
    bigint locationid FK
  }
  unscheduledcare_attendanceaction {
    bigint attendanceactionid PK
    bigint locationid FK
  }
  dbo_location }o..o{ appointment_patientschedule : "locationid"
  dbo_location }o..o{ appointment_session : "locationid"
  dbo_location }o..o{ appointment_sessionlocation : "locationid"
  dbo_location }o..o{ carerecord_consultation : "locationid"
  dbo_location }o..o{ childhealth_treatmentcentre : "locationid"
  dbo_address }o..o{ dbo_location : "addressid"
  dbo_locationtype }o..o{ dbo_location : "locationtypeid"
  dbo_location }o..o{ dbo_organisationlocation : "locationid"
  dbo_location }o..o{ episodemanagement_groupsession : "locationid"
  dbo_location }o..o{ unscheduledcare_attendanceaction : "locationid"