I am newbie to FHIR. Trying to create careplan by applying PlanDefinition/$apply. Are there any examples available so that I can take them as reference and generate careplan out of planDefintion. I am able to post an planDefinition but I don't have any clue on implementing $apply out of it.
How to apply PlanDefinition inorder to generate a carePlan
571 views Asked by code tutorial At
3
There are 3 answers
0
On
There is an implementation of PlanDefinition/$apply here: https://github.com/DBCG/cqf-ruler/blob/master/r4/src/main/java/org/opencds/cqf/r4/providers/PlanDefinitionApplyProvider.java#L84
Note that there is in-progress work on that provider to make it more modular, but the logic is essentially the same.
Have a look at this example from the FHIR Wiki
Request: Apply the low suicide risk order set to patient 124
Response: Returned on successful application of the order set
HTTP/1.1 200 OK