FhirCarePlanGenerator

@Singleton
class FhirCarePlanGenerator @Inject constructor(val fhirEngine: FhirEngine, val fhirPathEngine: FHIRPathEngine, val transformSupportServices: TransformSupportServices, val defaultRepository: DefaultRepository, val fhirResourceUtil: FhirResourceUtil, val workflowCarePlanGenerator: WorkflowCarePlanGenerator, val context: Context)

Constructors

Link copied to clipboard
@Inject
constructor(fhirEngine: FhirEngine, fhirPathEngine: FHIRPathEngine, transformSupportServices: TransformSupportServices, defaultRepository: DefaultRepository, fhirResourceUtil: FhirResourceUtil, workflowCarePlanGenerator: WorkflowCarePlanGenerator, context: Context)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val fhirEngine: FhirEngine
Link copied to clipboard
val fhirPathEngine: FHIRPathEngine
Link copied to clipboard

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
fun evaluateToDate(base: Base?, expression: String): BaseDateTimeType?
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
suspend fun getTask(id: String): Task?
Link copied to clipboard
suspend fun updateTaskDetailsByResourceId(id: String, status: Task.TaskStatus, reason: String? = null)