Pan-Canadian eReferral-eConsult (CA:eReC)
DFT - The specification is currently in development and subject to change. For a full list of available versions, see the Directory of published versions
http://hl7.org/fhir/StructureDefinition/Task
A task resource describes an activity that can be performed and tracks the state of completion of that activity. It is a representation that an activity should be or has been initiated, and eventually, represents the successful or unsuccessful completion of that activity.
Task | C | Task | |
id | Σ | 0..1 | string |
meta | S Σ | 0..1 | Meta |
id | 0..1 | string | |
extension | C | 0..* | Extension |
versionId | Σ | 0..1 | id |
lastUpdated | Σ | 0..1 | instant |
source | Σ | 0..1 | uri |
profile | S Σ | 0..* | canonical(StructureDefinition) |
security | Σ | 0..* | CodingBinding |
tag | Σ | 0..* | Coding |
implicitRules | Σ ?! | 0..1 | uri |
language | 0..1 | codeBinding | |
text | 0..1 | Narrative | |
contained | 0..* | Resource | |
extension | C | 0..* | Extension |
PatientNeedsToBeSeen | S C | 0..1 | Extension(boolean) |
modifierExtension | ?! C | 0..* | Extension |
identifier | 0..* | Identifier | |
instantiatesCanonical | Σ | 0..1 | canonical(ActivityDefinition) |
instantiatesUri | Σ | 0..1 | uri |
basedOn | S Σ | 1..1 | Reference(ServiceRequest) |
id | 0..1 | string | |
extension | C | 0..* | Extension |
reference | S Σ C | 0..1 | string |
type | Σ | 0..1 | uriBinding |
identifier | S Σ | 0..1 | Identifier |
id | 0..1 | string | |
extension | C | 0..* | Extension |
use | S Σ ?! | 1..1 | codeBinding |
type | Σ | 0..1 | CodeableConceptBinding |
system | S Σ | 1..1 | uri |
value | S Σ | 1..1 | string |
period | Σ | 0..1 | Period |
assigner | Σ | 0..1 | Reference(Organization) |
display | Σ | 0..1 | string |
groupIdentifier | Σ | 0..1 | Identifier |
partOf | Σ | 0..* | Reference(Task) |
status | S Σ ?! | 1..1 | codeBinding |
statusReason | Σ | 0..1 | CodeableConcept |
businessStatus | S Σ | 0..1 | CodeableConceptBinding |
id | 0..1 | string | |
extension | C | 0..* | Extension |
BusinessStatusReason | S C | 0..1 | Extension(CodeableConcept) |
coding | Σ | 0..* | Coding |
text | Σ | 0..1 | string |
intent | S Σ | 1..1 | codeBindingPattern |
priority | 0..1 | codeBinding | |
code | S Σ | 0..1 | CodeableConceptBinding |
description | Σ | 0..1 | string |
focus | Σ | 0..1 | Reference(Resource) |
for | Σ | 0..1 | Reference(Resource) |
encounter | Σ | 0..1 | Reference(Encounter) |
executionPeriod | Σ | 0..1 | Period |
authoredOn | S C | 0..1 | dateTime |
lastModified | Σ C | 0..1 | dateTime |
requester | Σ | 0..1 | Reference(Device | Organization | Patient | Practitioner | PractitionerRole | RelatedPerson) |
performerType | 0..* | CodeableConceptBinding | |
owner | S Σ | 0..1 | Reference(PractitionerRole | HealthcareService) |
id | 0..1 | string | |
extension | C | 0..* | Extension |
reference | S Σ C | 0..1 | string |
type | Σ | 0..1 | uriBinding |
identifier | S Σ | 0..1 | Identifier |
id | 0..1 | string | |
extension | C | 0..* | Extension |
use | Σ ?! | 0..1 | codeBinding |
type | Σ | 0..1 | CodeableConceptBinding |
system | S Σ | 1..1 | uri |
value | S Σ | 1..1 | string |
period | Σ | 0..1 | Period |
assigner | Σ | 0..1 | Reference(Organization) |
display | Σ | 0..1 | string |
location | Σ | 0..1 | Reference(Location) |
reasonCode | 0..1 | CodeableConcept | |
reasonReference | 0..1 | Reference(Resource) | |
insurance | 0..* | Reference(Coverage | ClaimResponse) | |
note | 0..* | Annotation | |
relevantHistory | 0..* | Reference(Provenance) | |
restriction | 0..1 | BackboneElement | |
id | 0..1 | string | |
extension | C | 0..* | Extension |
modifierExtension | Σ ?! C | 0..* | Extension |
repetitions | 0..1 | positiveInt | |
period | 0..1 | Period | |
recipient | 0..* | Reference(Patient | Practitioner | PractitionerRole | RelatedPerson | Group | Organization) | |
input | 0..* | BackboneElement | |
id | 0..1 | string | |
extension | C | 0..* | Extension |
modifierExtension | Σ ?! C | 0..* | Extension |
type | 1..1 | CodeableConcept | |
value[x] | 1..1 | ||
valueBase64Binary | base64Binary | ||
valueBoolean | boolean | ||
valueCanonical | canonical() | ||
valueCode | code | ||
valueDate | date | ||
valueDateTime | dateTime | ||
valueDecimal | decimal | ||
valueId | id | ||
valueInstant | instant | ||
valueInteger | integer | ||
valueMarkdown | markdown | ||
valueOid | oid | ||
valuePositiveInt | positiveInt | ||
valueString | string | ||
valueTime | time | ||
valueUnsignedInt | unsignedInt | ||
valueUri | uri | ||
valueUrl | url | ||
valueUuid | uuid | ||
valueAddress | Address | ||
valueAge | Age | ||
valueAnnotation | Annotation | ||
valueAttachment | Attachment | ||
valueCodeableConcept | CodeableConcept | ||
valueCoding | Coding | ||
valueContactPoint | ContactPoint | ||
valueCount | Count | ||
valueDistance | Distance | ||
valueDuration | Duration | ||
valueHumanName | HumanName | ||
valueIdentifier | Identifier | ||
valueMoney | Money | ||
valuePeriod | Period | ||
valueQuantity | Quantity | ||
valueRange | Range | ||
valueRatio | Ratio | ||
valueSampledData | SampledData | ||
valueSignature | Signature | ||
valueTiming | Timing | ||
valueContactDetail | ContactDetail | ||
valueContributor | Contributor | ||
valueDataRequirement | DataRequirement | ||
valueExpression | Expression | ||
valueParameterDefinition | ParameterDefinition | ||
valueRelatedArtifact | RelatedArtifact | ||
valueTriggerDefinition | TriggerDefinition | ||
valueUsageContext | UsageContext | ||
valueDosage | Dosage | ||
valueMeta | Meta | ||
valueReference | Reference() | ||
output | S | 0..* | BackboneElement |
id | 0..1 | string | |
extension | C | 0..* | Extension |
modifierExtension | Σ ?! C | 0..* | Extension |
type | 1..1 | CodeableConcept | |
value[x] | S | 1..1 | |
valueString | string | ||
valueCode | code | ||
valueReference | Reference(Communication) |
Task | Task | ||
meta | S | ||
profile | S | ||
extension | |||
PatientNeedsToBeSeen | 0..1 | Extension(boolean) | |
basedOn | S | 1..1 | Reference(ServiceRequest) |
reference | S | ||
identifier | S | ||
use | S | 1.. | |
system | S | 1.. | |
value | S | 1.. | |
status | S | ||
businessStatus | S | Binding | |
BusinessStatusReason | S | 0..1 | Extension(CodeableConcept) |
intent | S | Pattern | |
code | S | Binding | |
authoredOn | S | ||
owner | S | Reference(PractitionerRole | HealthcareService) | |
reference | S | ||
identifier | S | ||
system | S | 1.. | |
value | S | 1.. | |
output | S | ||
value[x] | S | ||
valueString | string | ||
valueCode | code | ||
valueReference | Reference(Communication) |
The Task resource is used as follows in this IG:
a "Process Request" Task ("Task.code": "process-request"
) SHALL be used by a Target System to track and communicate the status of a referral request to the Source System
a "Process Request Consult" Task ("Task.code": "process-request-consult"
) SHALL be used by a Target System to track and communicate the status of a consult request to the Source System
Each Task SHALL reference the ServiceRequest it is basedOn
.
.id
Bundle.entry.fullUrl
)extension:PatientNeedsToBeSeen
.basedOn
.reference
to a resource included in the message as a Bundle.entry
, or.identifier
populated with the use
, system
and value
elements populated with the official ServiceRequest.identifier
received from the Source System.status
.statusReason
Task.statusReason
is meant to provide a reason for why a coarse-grained Task.status
changed, or if it is meant to provide a reason for the overall status.Task.statusReason
SHALL NOT be used in eReferral/eConsult messaging, Task.businessStatus.extension:businessStatusReason
SHALL be used instead to provide a coded reason for why the fine-grained, implementation-specific Task.businessStatus
changed..businessStatus
.status
. It can be more finegrained and is implementation-specific.Task.status
and Task.businessStatus
to not leave it up for interpretation..businessStatus.extension:businessStatusReason
.businessStatus
.intent
.code
.authoredOn
.lastModified
.owner
.reference
a resource included in the message as a Bundle.entry
. For more details, see guidance on MessageBundle - Task (CA:eReC).output