erDiagram
Patient {
id id PK
}
Organization {
id id PK
Reference extension_mainLocation FK
}
Location {
id id PK
}
Practitioner {
id id PK
}
Observation {
id id PK
Reference subject FK
}
Immunization {
id id PK
Reference patient FK
}
MedicationStatement {
id id PK
Reference subject FK
Reference context FK
}
Condition {
id id PK
Reference subject FK
}
Encounter {
id id PK
}
Organization }o--o| Location : "extension_mainLocation"
Observation }o--|| Patient : "subject"
Immunization }o--|| Patient : "patient"
MedicationStatement }o--|| Patient : "subject"
MedicationStatement }o--o| Encounter : "context"
Condition }o--|| Patient : "subject"