erDiagram
bedmanagement_wardpatientassignmenthistory {
bigint wardpatientassignmenthistoryid PK
nvarchar dischargeorrejectionreasonid FK
}
dbo_organisation {
bigint organisationid PK
}
patientadmin_dischargeorrejectionreason {
bigint dischargeorrejectionreasonid PK
bigint organisationid FK
}
patientadmin_episode {
bigint episodeid PK
bigint dischargeorrejectionreasonid FK
}
patientadmin_dischargeorrejectionreason }o..o{ bedmanagement_wardpatientassignmenthistory : "dischargeorrejectionreasonid"
dbo_organisation }o..o{ patientadmin_dischargeorrejectionreason : "organisationid"
patientadmin_dischargeorrejectionreason }o..o{ patientadmin_episode : "dischargeorrejectionreasonid"