Set Association

0
Hello, I have a domain model in which ONE Patient is connected to ONE Survey. Moreover, zero or more Patients are connected to ONE Care Group. Now, Patients fill in the survey and get a score, which determines the value of the enumeration Care Group (Acute, Intensive or Rehabilitation) in this survey. The Care Group entity has one attribute, which is also the enumeration Care Group. Is it possible to associate the Patient Object on basis of his attribute value of the enumeration Care Group in his associated Survey Object, with an Care Group Object with the same enumeration value as in his survey? Any help is really appreciated.
asked
1 answers
0

Collin,

When the survey determines the enum just trigger a microflow that retrieves the Care group from the database with a query like [enumsurvey = enumcaregroup] and then associate the suvey to the care group object.

answered