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.

Self populating value list in many to many relationship

Featured Replies

I am having a bit of a conceptual block on this and I can't sort it out. Some guidance would be appreciated.

I've got a patient database. Each patient has a past medical history consisting of several diagnoses. The past medical history diagnoses, ideally in a portal linked to a standardized diagnoses table, should be selected using a dropdown menu using a value list from the standardized diagnoses table. One should also be able to add a free text diagnosis to the past medical history that will be added to the value list for future use. The standardized diagnoses table should contain only unique values so that standardized diagnoses are not repeated. Of course many patients can have the same diagnosis from the standardized table.

I have tried a portal, separate fields for each past medical history diagnosis and a repeating field, but I just can't get it quite right. I think I am not conceptualizing the relationship correctly.

This is one of those things that I should just set aside, and it will probably come to me while I'm shaving or in the middle of the night, but if anyone has an idea please let me know. I'm sure there are multiple ways of doing it.

Let me know if more info or clarification is needed.

Thanks

Edited by Guest

So, it sounds like there would be 3 tables involved:

Patient

PatientDiagnoses

Diagnoses

PatientDiagnoses would need PatientID and DiagnosesID fields. If you want the portal on a Patient Layout, then it would display records from PatientDiagnoses TO, and contain a field from Diagnoses table.

If you set your relationships up to allow creation of records, I think you should be able to enter a new diagnosis into the Diagnoses table directly from the Patient layout.

Oh yeah, make your value list contain all items from the Diagnoses table.

I suspect your actual setup will be slightly more involved than this, but I think this basic concept will set you on the right track.

  • Author

I think you're right. I was trying to get it to work without the 3rd table. It seems obvious in hindsight.

Will give it a go.

Thanks

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.