Skip to main content

Task

ResourceBase · WorkflowTrial useMaturity 2

A task to be performed.

Tested supportFull test results →
Backends
PostgreSQLElasticsearch
Interactions
CreateReadUpdatePatchDelete
Search
19 of 19 parameters tested

Structure​

ElementCard.TypeDescription
identifier
0..*IdentifierTask Instance Identifier
instantiatesCanonicalΣ
0..1canonical(ActivityDefinition)Formal definition of task
instantiatesUriΣ
0..1uriFormal definition of task
basedOnΣ
0..*Reference(Resource)Request fulfilled by this task
groupIdentifierΣ
0..1IdentifierRequisition or grouper id
partOfΣ
0..*Reference(Task)Composite task
statusRequired?!Σ
1..1codedraft | requested | received | accepted | +Binding (required): task-status
statusReasonΣ
0..1CodeableConceptReason for current status
businessStatusΣ
0..1CodeableConceptE.g. "Specimen collected", "IV prepped"
intentRequiredΣ
1..1codeunknown | proposal | plan | order | original-order | reflex-order | filler-order | instance-order | optionBinding (required): task-intent
priority
0..1coderoutine | urgent | asap | statBinding (required): request-priority
codeΣ
0..1CodeableConceptTask TypeBinding (example): task-code
descriptionΣ
0..1stringHuman-readable explanation of task
focusΣ
0..1Reference(Resource)What task is acting on
forΣ
0..1Reference(Resource)Beneficiary of the Task
encounterΣ
0..1Reference(Encounter)Healthcare event during which this task originated
executionPeriodΣ
0..1PeriodStart and end time of execution
authoredOn
0..1dateTimeTask Creation Date
lastModifiedΣ
0..1dateTimeTask Last Modified Date
requesterΣ
0..1Reference(Device | Organization | Patient | Practitioner | PractitionerRole | RelatedPerson)Who is asking for task to be done
performerType
0..*CodeableConceptRequested performerBinding (preferred): performer-role
ownerΣ
0..1Reference(Practitioner | PractitionerRole | Organization | CareTeam | HealthcareService | Patient | Device | RelatedPerson)Responsible individual
locationΣ
0..1Reference(Location)Where task occurs
reasonCode
0..1CodeableConceptWhy task is needed
reasonReference
0..1Reference(Resource)Why task is needed
insurance
0..*Reference(Coverage | ClaimResponse)Associated insurance coverage
note
0..*AnnotationComments made about the task
relevantHistory
0..*Reference(Provenance)Key events in history of the Task
restriction
0..1BackboneElementConstraints on fulfillment tasks
repetitions
0..1positiveIntHow many times to repeat
period
0..1PeriodWhen fulfillment sought
recipient
0..*Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Group | Organization)For whom is fulfillment sought?
input
0..*BackboneElementInformation used to perform task
typeRequired
1..1CodeableConceptLabel for the input
value[x]Required
1..1base64Binary | boolean | canonical | code | date | dateTime | decimal | id | instant | integer | markdown | oid | positiveInt | string | time | unsignedInt | uri | url | uuid | Address | Age | Annotation | Attachment | CodeableConcept | Coding | ContactPoint | Count | Distance | Duration | HumanName | Identifier | Money | Period | Quantity | Range | Ratio | Reference | SampledData | Signature | Timing | ContactDetail | Contributor | DataRequirement | Expression | ParameterDefinition | RelatedArtifact | TriggerDefinition | UsageContext | Dosage | MetaContent to use in performing the task
output
0..*BackboneElementInformation produced as part of task
typeRequired
1..1CodeableConceptLabel for output
value[x]Required
1..1base64Binary | boolean | canonical | code | date | dateTime | decimal | id | instant | integer | markdown | oid | positiveInt | string | time | unsignedInt | uri | url | uuid | Address | Age | Annotation | Attachment | CodeableConcept | Coding | ContactPoint | Count | Distance | Duration | HumanName | Identifier | Money | Period | Quantity | Range | Ratio | Reference | SampledData | Signature | Timing | ContactDetail | Contributor | DataRequirement | Expression | ParameterDefinition | RelatedArtifact | TriggerDefinition | UsageContext | Dosage | MetaResult of output

Σ in _summary results · ?! modifier element · 1.. required · inherited elements in grey

Search parameters​

Query with GET [base]/Task?[parameter]=[value]. Type decides which modifiers and prefixes apply, see search features.

ParameterTypeDescriptionPGES
authored-ondate

Search by creation date

Task.authoredOn
based-onreference

Search by requests this task is based on

Task.basedOn
business-statustoken

Search by business status

Task.businessStatus
codetoken

Search by task code

Task.code
encounterreference

Search by encounter

Task.encounter
focusreference

Search by task focus

Task.focus
group-identifiertoken

Search by group identifier

Task.groupIdentifier
identifiertoken

Search for a task instance by its business identifier

Task.identifier
intenttoken

Search by task intent

Task.intent
modifieddate

Search by last modification date

Task.lastModified
ownerreference

Search by task owner

Task.owner
part-ofreference

Search by task this task is part of

Task.partOf
patientreference

Search by patient

Task.for.where(resolve() is Patient)
performertoken

Search by recommended type of performer (e.g., Requester, Performer, Scheduler).

Task.performerType
perioddate

Search by period Task is/was underway

Task.executionPeriod
prioritytoken

Search by task priority

Task.priority
requesterreference

Search by task requester

Task.requester
statustoken

Search by task status

Task.status
subjectreference

Search by subject

Task.for

PG: PostgreSQL, ES: Elasticsearch. passes its TestScript checks, fails, not tested yet.

Common parameters on every resource (8)
_haste-health-authorreference

The author of the resource

_idtoken

Logical id of this artifact

_lastUpdateddate

When the resource version last changed

_profileuri

Profiles this resource claims to conform to

_securitytoken

Security Labels applied to this resource

_sourceuri

Identifies where the resource comes from

_tagtoken

Tags applied to this resource

_typetoken

Derived from the R4B Definition