in my app, users have medical issues, and each medical issue has a list of rehabilitation exercises. I want to create a workflow that attaches the list of rehabilitation exercises to a user based on his medical issues.
My data structure looks as follows:
- The table User contains a list of Medical Issues and a User’s Exercise List (which I would like to populate):
- The table Medical Issues contains a Rehab Exercise List for each Medical Issue:
In order to attach the list of rehabilitation exercises to a user based on his medical issues, I need a workflow that does the following:
- Search the table Medical Issues using the list of medical issues of the user, and return all the relevant rehabilitation exercises
- Add the relevant rehabilitation exercises in the field “Rehab Exercise List” on the User table
It would be awesome if you could help me! Please let me know if I need to clarify.