FhirCarePlanGenerator
@Singleton
Constructors
Link copied to clipboard
@Inject
Properties
Functions
Link copied to clipboard
suspend fun conditionallyUpdateResourceStatus(questionnaireConfig: QuestionnaireConfig, subject: Resource, bundle: Bundle)
Updates the due date of a dependent task based on the current status of the task. @param id The ID of the dependent task to update. @return The updated task object. This function is used to update the status of all CarePlans connected to a QuestionnaireConfig's PlanDefinitions based on the QuestionnaireConfig's CarePlanConfigs and their configs filtering information.
Link copied to clipboard
fun evaluateToBoolean(subject: Resource, bundle: Bundle, triggerConditions: List<String>?, matchAll: Boolean = false): Boolean
Link copied to clipboard
Link copied to clipboard
suspend fun generateOrUpdateCarePlan(planDefinitionId: String, subject: Resource, data: Bundle = Bundle(), generateCarePlanWithWorkflowApi: Boolean = false): CarePlan?
suspend fun generateOrUpdateCarePlan(planDefinition: PlanDefinition, subject: Resource, data: Bundle = Bundle(), generateCarePlanWithWorkflowApi: Boolean = false): CarePlan?
Link copied to clipboard
Link copied to clipboard
suspend fun updateTaskDetailsByResourceId(id: String, status: Task.TaskStatus, reason: String? = null)