applyPlanDefinitionOnPatient

suspend fun applyPlanDefinitionOnPatient(planDefinition: PlanDefinition, patient: Patient, data: Bundle = Bundle(), output: CarePlan)

Executes $apply on a PlanDefinition for a Patient and creates the request resources as per the proposed CarePlan

Parameters

planDefinition

PlanDefinition for which $apply is run

patient

Patient resource for which the PlanDefinition $apply is run

data

Bundle resource containing the input resource/data

output

CarePlan resource object with the generated care plan