Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Trauma database - help with entity relationships

Featured Replies

Hi everyone

I am trying to write my first relational database and after reading a couple of books I am aware some of the principles but not sure I really understand them.

I am a plastic surgeon who deals with trauma patients. I am trying to create a database of patients we have treated. Each patient may have several wounds and each wound may undergo several procedures both in one sitting and also over time. A collection of procedures make up an operation. Thus a wound may have several operations (many to many) and I have resolved this by creating a join table called "plastic surgical procedure"- I think this logic is correct - but I would like to know it is!!

Similarly patients may be infected by organisms; have surgical complications and non-surgical complications - I have again postulated that these relationships are many to many and can be resolved by an intervening join table.

Finally, a wound may have injury types within it, eg. bone, vessel, etc., each with their own attributes and with a many to one relationship to the wound.

Have spent most of our recent sunny weekend trying to get my head around all of this I would be really grateful if someone could confirm my logic. Or tell me what to do if I have got it completely wrong!!

I have attached a .pdf of the ER diagram I have drawn

Thanks for any advice

Garth Titley

Plastic surgeon UK

ER_diagram2.pdf

I think it looks great.

How different are the injury types? Do they share many of the same attributes? Could they be in one table, and have a join table between Wound and InjuryTypes?

  • Author

Hi Thanks for getting back to me - you would not believe how many hours I spent getting there!

I have attached a copy of the relationship graph showing the joins I have made. I don't think I can consolidate the injury types into one - but would be interested in knowing what you think

cheers

Garth

BAPRAS_v.2.pdf

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.