-
Hi Corey, I would like to ask you about the User/Patient entity relation. I haven’t discerned how they are related in your code. While the entity Task has a pointer to care plan, and carePlan a pointer to Patient, no such relationship appears to exist for User/Patient. In order to support queries between these two, it appears that I would need to add this relationship. Is that correct? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Michael, thanks for your question. Below I will discuss how the relationships can be established, but they will differ depending on your app requirements:
This is true. The following relationships are all based on CareKit only (I don't add anything custom to these because everyone will use CareKit differently):
So any links between them are based on whatever CareKit's documentation specifies. When a
All queries, saving, updating to the entities above should only be done using CareKit. If you modify any of the entities above and save to Parse directly, you will most likely cause a devices
Tables (or Classes in the Parse Dashboard) such as
In fact, something similar is done in the sample app here. CareKit itself currently only supports 1 OCKPatient per OCKStore as was discussed here. If you use the Of course, what I mentioned is one way, you may need to come up with other ways depending on your use case. |
Beta Was this translation helpful? Give feedback.
Hi Michael, thanks for your question. Below I will discuss how the relationships can be established, but they will differ depending on your app requirements:
This is true. The following relationships are all based on CareKit only (I don't add anything custom to these because everyone will use CareKit differently):
So any links between them are based on whatever CareKit'…