Manages the recurring task schedule generated when a PlanDefinition-style template instance is applied (see the Template FHIR API for creating and publishing the PlanDefinition templates and their instances): listing an encounter's generated schedules, and applying, pausing, resuming, cancelling, or regenerating a template instance's schedule. Every operation returns the schedule as a FHIR Task resource, distinct from the individual tasks the schedule produces (see the Task FHIR API). Mounted at /fhir/v1/task-schedule.
Endpoints
GET /organisation/:organisationId/encounter/:encounterId
- Auth:
requireWebAuth - RBAC:
withOrgPermissions, requirePermission - Params:
organisationId,encounterId - Controller:
TaskScheduleFhirController.listEncounterSchedules - Response:
200: FHIRBundle(typesearchset) of scheduleTaskresources (callers holding onlytasks:view:ownsee just their own schedules)
POST /organisation/:organisationId/template-instance/:instanceId/$apply
- Auth:
requireWebAuth - RBAC:
withOrgPermissions, requirePermission - Params:
organisationId,instanceId - Body: FHIR
Parametersresource (optional; recognised parametersforce,notify(boolean),deferUntil(date)) - Controller:
TaskScheduleFhirController.apply - Response:
200: FHIRTaskresource representing the launched schedule
POST /organisation/:organisationId/template-instance/:instanceId/$pause
- Auth:
requireWebAuth - RBAC:
withOrgPermissions, requirePermission - Params:
organisationId,instanceId - Controller:
TaskScheduleFhirController.pause - Response:
200: FHIRTaskresource
POST /organisation/:organisationId/template-instance/:instanceId/$resume
- Auth:
requireWebAuth - RBAC:
withOrgPermissions, requirePermission - Params:
organisationId,instanceId - Controller:
TaskScheduleFhirController.resume - Response:
200: FHIRTaskresource
POST /organisation/:organisationId/template-instance/:instanceId/$cancel
- Auth:
requireWebAuth - RBAC:
withOrgPermissions, requirePermission - Params:
organisationId,instanceId - Controller:
TaskScheduleFhirController.cancel - Response:
200: FHIRTaskresource
POST /organisation/:organisationId/template-instance/:instanceId/$regenerate
- Auth:
requireWebAuth - RBAC:
withOrgPermissions, requirePermission - Params:
organisationId,instanceId - Body: FHIR
Parametersresource (optional; recognised parametersnotify,deferUntil—forceis always applied) - Controller:
TaskScheduleFhirController.regenerate - Response:
200: FHIRTaskresource representing the regenerated schedule