Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Self populating value list in many to many relationship


This topic is 5104 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

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
Posted

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.

Posted

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

This topic is 5104 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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