We are building a web-app for careplan creation and management.
We decided to build our app in this fashion:
- Main plan (CarePlan)
- section 1 (CarePlan)
- section 2 (CarePlan)
- ...
- section n (CarePlan)
Reasoning behind this approach is any of our sections - for example "Diet"-section - can have multiple goals and multiple activities to reach those goals. It's also possible to edit each section separately.
In our app we know the id of the Main plan and need to retrieve all sub-plans pointing to this Main plan in their partOf-reference.
How I can achieve this?
We are testing our app with http://hapi.fhir.org/ -server.
Here're some examples of our FHIR-resources
- Main CarePlan: http://hapi.fhir.org/baseR4/CarePlan/1958874
- Section CarePlan: http://hapi.fhir.org/baseR4/CarePlan/1955871
And related searches:
- http://hapi.fhir.org/baseR4/CarePlan?_id=1958874 Works.
- http://hapi.fhir.org/baseR4/CarePlan?_id=1958874&_include=CarePlan:subject Works.
- http://hapi.fhir.org/baseR4/CarePlan?_id=1958874&_revinclude=* Works but not really useful.
- http://hapi.fhir.org/baseR4/CarePlan?_id=1958874&_revinclude=CarePlan:partOf Doesn't work. Why?