Closed riteshghiya90 closed 4 months ago
@riteshghiya90 person attribute types' foreign keys are only supported when the person attribute type's format is org.openmrs.Concept
(see here). So this indeed doesn't work 😞
However, assuming that you could set the foreign key for a location-based person attribute type, it is unclear what the effect would be... 🤔 As far as we know, this isn't actually handled and wouldn't have any effect. See this conversation on Slack → https://openmrs.slack.com/archives/C021QUDSD5K/p1719847297508189?thread_ts=1719845922.806849&cid=C021QUDSD5K
sample entry in personattributetypes/registration_pat.csv:
Here the uuid refers to one of the location uuid. When we start openmrs with this configuration then person attribute is being added with foreign key as 0.