Hello,
For my assignment I have entities the "Coordinator" and "Patient" with both the attribute "CareGroup". An enumeration was used to value this attribute. The enumerations values are "Acute", "Rehab" and "Intensive". Patient will be assigned to one of the caregroups and the coordinator will manage one of the caregroups (he will also be assigned).
For the coordinator I want to create a page where he can see his own patients. So for example, when a coordinator manages the caregroup "Acute", he will only see the the patients with the same caregroup "Acute" (which he manages). Also based on CurrentUser. Is it possible to have a constraint that states something like :
EnumerationValue from attribute "Caregroup" of entity "Coordinator" IS EQUAL TO EnumerationValue from attribute "Caregroup" of entity "Patient".
So the page should only show patient with the same value for "caregroup" as the coordinator, but for different entities.
Or is there another solution?
Thanks in advance