Hi Granit,
Your domain model looks pretty correct for as far as i understand you use case correctly.
I think you may want to look for a the solution in the organisation of pages and microflows.
What do you think of following scenario?
Now the microflow behind the "select” action button must contain the logic to create a new treatment plan object and activity obhects for the patient, given the selected standard care program.
Is this what you are looking for?
Hi Granit,
You would need to use nested views with combination of List MasterDetails dataviews.
Steps:
Check the screenshots below to have a better idea
Addition based on Granit’s comment
For adding a column in a datagrid to show data from associated entity:-
I have looked in to it more, but I still can't seem to solve it. So to show the list of standard programs I need to pass the current treatment plan or activity object (not sure) to add the activities to the treatment plan, but that is not possible. I keep getting an error, because the page which contains the standard care programs has no data view that accepts an object of type ‘TreatmentPlan’.
Is it possible to explain a little bit more what I have to do with the microflows? Here are some pictures which show how it lookes like