preBallot - The specification is currently in ballot review and subject to change. . . . For a full list of available versions, see the Directory of published versions
Task (CA:eReC)
Links
Profile
Derived from
http://hl7.org/fhir/StructureDefinition/Task
Description
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.
References to this resource
Resource Content
Task | Task | ||
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 | |
StatusReason | 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) |
Task | I | Task | |
id | Σ | 0..1 | string |
meta | Σ | 0..1 | Meta |
implicitRules | Σ ?! | 0..1 | uri |
language | 0..1 | codeBinding | |
text | 0..1 | Narrative | |
contained | 0..* | Resource | |
extension | I | 0..* | Extension |
PatientNeedsToBeSeen | S I | 0..1 | Extension(boolean) |
modifierExtension | ?! I | 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 | I | 0..* | Extension |
reference | S Σ I | 0..1 | string |
type | Σ | 0..1 | uriBinding |
identifier | S Σ | 0..1 | Identifier |
id | 0..1 | string | |
extension | I | 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 | I | 0..* | Extension |
StatusReason | S I | 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 I | 0..1 | dateTime |
lastModified | Σ I | 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 | I | 0..* | Extension |
reference | S Σ I | 0..1 | string |
type | Σ | 0..1 | uriBinding |
identifier | S Σ | 0..1 | Identifier |
id | 0..1 | string | |
extension | I | 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 | I | 0..* | Extension |
modifierExtension | Σ ?! I | 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 | I | 0..* | Extension |
modifierExtension | Σ ?! I | 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 | I | 0..* | Extension |
modifierExtension | Σ ?! I | 0..* | Extension |
type | 1..1 | CodeableConcept | |
value[x] | S | 1..1 | |
valueString | string | ||
valueCode | code | ||
valueReference | Reference(Communication) |
<StructureDefinition xmlns="http://hl7.org/fhir"> <id value="CA-eReC-Task" /> <url value="http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Task" /> <name value="Task" /> <title value="Task" /> <status value="draft" /> <description value="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." /> <fhirVersion value="4.0.1" /> <kind value="resource" /> <abstract value="false" /> <type value="Task" /> <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Task" /> <derivation value="constraint" /> <differential> <element id="Task.extension"> <path value="Task.extension" /> <slicing> <discriminator> <type value="value" /> <path value="url" /> </discriminator> <ordered value="false" /> <rules value="open" /> </slicing> </element> <element id="Task.extension:PatientNeedsToBeSeen"> <path value="Task.extension" /> <sliceName value="PatientNeedsToBeSeen" /> <comment value="Used to support the eConsult use case where a patient is referred to a care provider. Used for when the care provider responds with an eConsult rather than accept the referral, but the patient wants a referral anyway." /> <min value="0" /> <max value="1" /> <type> <code value="Extension" /> <profile value="http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-patient-needs-to-be-seen-EXT" /> </type> </element> <element id="Task.basedOn"> <path value="Task.basedOn" /> <min value="1" /> <max value="1" /> <type> <code value="Reference" /> <targetProfile value="http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-ServiceRequest" /> </type> <mustSupport value="true" /> </element> <element id="Task.basedOn.reference"> <path value="Task.basedOn.reference" /> <mustSupport value="true" /> </element> <element id="Task.basedOn.identifier"> <path value="Task.basedOn.identifier" /> <mustSupport value="true" /> </element> <element id="Task.basedOn.identifier.use"> <path value="Task.basedOn.identifier.use" /> <min value="1" /> <mustSupport value="true" /> </element> <element id="Task.basedOn.identifier.system"> <path value="Task.basedOn.identifier.system" /> <min value="1" /> <mustSupport value="true" /> </element> <element id="Task.basedOn.identifier.value"> <path value="Task.basedOn.identifier.value" /> <min value="1" /> <mustSupport value="true" /> </element> <element id="Task.status"> <path value="Task.status" /> <mustSupport value="true" /> </element> <element id="Task.businessStatus"> <path value="Task.businessStatus" /> <mustSupport value="true" /> <binding> <strength value="extensible" /> <valueSet value="http://fhir.infoway-inforoute.ca/io/CA-eReC/ValueSet/task-business-status" /> </binding> </element> <element id="Task.businessStatus.extension:StatusReason"> <path value="Task.businessStatus.extension" /> <sliceName value="StatusReason" /> <min value="0" /> <max value="1" /> <type> <code value="Extension" /> <profile value="http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-task-business-status-reason-EXT" /> </type> <mustSupport value="true" /> </element> <element id="Task.intent"> <path value="Task.intent" /> <patternCode value="proposal" /> <mustSupport value="true" /> </element> <element id="Task.code"> <path value="Task.code" /> <comment value="-" /> <mustSupport value="true" /> <binding> <strength value="extensible" /> <valueSet value="http://fhir.infoway-inforoute.ca/io/CA-eReC/ValueSet/task-code" /> </binding> </element> <element id="Task.authoredOn"> <path value="Task.authoredOn" /> <mustSupport value="true" /> </element> <element id="Task.owner"> <path value="Task.owner" /> <comment value="When the owner of the task is the CAT, then HealthcareService can be used to identify the owner." /> <type> <code value="Reference" /> <targetProfile value="http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-PractitionerRole" /> <targetProfile value="http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-HealthcareService" /> </type> <mustSupport value="true" /> </element> <element id="Task.owner.reference"> <path value="Task.owner.reference" /> <mustSupport value="true" /> </element> <element id="Task.owner.identifier"> <path value="Task.owner.identifier" /> <mustSupport value="true" /> </element> <element id="Task.owner.identifier.system"> <path value="Task.owner.identifier.system" /> <min value="1" /> <mustSupport value="true" /> </element> <element id="Task.owner.identifier.value"> <path value="Task.owner.identifier.value" /> <min value="1" /> <mustSupport value="true" /> </element> <element id="Task.output"> <path value="Task.output" /> <mustSupport value="true" /> </element> <element id="Task.output.value[x]"> <path value="Task.output.value[x]" /> <type> <code value="Reference" /> <targetProfile value="http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Communication" /> </type> <type> <code value="string" /> </type> <type> <code value="code" /> </type> <mustSupport value="true" /> </element> </differential> </StructureDefinition>
{ "resourceType": "StructureDefinition", "id": "CA-eReC-Task", "url": "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Task", "name": "Task", "title": "Task", "status": "draft", "description": "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.", "fhirVersion": "4.0.1", "kind": "resource", "abstract": false, "type": "Task", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task", "derivation": "constraint", "differential": { "element": [ { "id": "Task.extension", "path": "Task.extension", "slicing": { "discriminator": [ { "type": "value", "path": "url" } ], "ordered": false, "rules": "open" } }, { "id": "Task.extension:PatientNeedsToBeSeen", "path": "Task.extension", "sliceName": "PatientNeedsToBeSeen", "comment": "Used to support the eConsult use case where a patient is referred to a care provider. Used for when the care provider responds with an eConsult rather than accept the referral, but the patient wants a referral anyway.", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": [ "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-patient-needs-to-be-seen-EXT" ] } ] }, { "id": "Task.basedOn", "path": "Task.basedOn", "min": 1, "max": "1", "type": [ { "code": "Reference", "targetProfile": [ "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-ServiceRequest" ] } ], "mustSupport": true }, { "id": "Task.basedOn.reference", "path": "Task.basedOn.reference", "mustSupport": true }, { "id": "Task.basedOn.identifier", "path": "Task.basedOn.identifier", "mustSupport": true }, { "id": "Task.basedOn.identifier.use", "path": "Task.basedOn.identifier.use", "min": 1, "mustSupport": true }, { "id": "Task.basedOn.identifier.system", "path": "Task.basedOn.identifier.system", "min": 1, "mustSupport": true }, { "id": "Task.basedOn.identifier.value", "path": "Task.basedOn.identifier.value", "min": 1, "mustSupport": true }, { "id": "Task.status", "path": "Task.status", "mustSupport": true }, { "id": "Task.businessStatus", "path": "Task.businessStatus", "mustSupport": true, "binding": { "strength": "extensible", "valueSet": "http://fhir.infoway-inforoute.ca/io/CA-eReC/ValueSet/task-business-status" } }, { "id": "Task.businessStatus.extension:StatusReason", "path": "Task.businessStatus.extension", "sliceName": "StatusReason", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": [ "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-task-business-status-reason-EXT" ] } ], "mustSupport": true }, { "id": "Task.intent", "path": "Task.intent", "patternCode": "proposal", "mustSupport": true }, { "id": "Task.code", "path": "Task.code", "comment": "-", "mustSupport": true, "binding": { "strength": "extensible", "valueSet": "http://fhir.infoway-inforoute.ca/io/CA-eReC/ValueSet/task-code" } }, { "id": "Task.authoredOn", "path": "Task.authoredOn", "mustSupport": true }, { "id": "Task.owner", "path": "Task.owner", "comment": "When the owner of the task is the CAT, then HealthcareService can be used to identify the owner.", "type": [ { "code": "Reference", "targetProfile": [ "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-PractitionerRole", "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-HealthcareService" ] } ], "mustSupport": true }, { "id": "Task.owner.reference", "path": "Task.owner.reference", "mustSupport": true }, { "id": "Task.owner.identifier", "path": "Task.owner.identifier", "mustSupport": true }, { "id": "Task.owner.identifier.system", "path": "Task.owner.identifier.system", "min": 1, "mustSupport": true }, { "id": "Task.owner.identifier.value", "path": "Task.owner.identifier.value", "min": 1, "mustSupport": true }, { "id": "Task.output", "path": "Task.output", "mustSupport": true }, { "id": "Task.output.value[x]", "path": "Task.output.value[x]", "type": [ { "code": "Reference", "targetProfile": [ "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Communication" ] }, { "code": "string" }, { "code": "code" } ], "mustSupport": true } ] } }
Terminology bindings
Path | Conformance | ValueSet |
---|---|---|
Task.businessStatus | extensible | http://fhir.infoway-inforoute.ca/io/CA-eReC/ValueSet/task-business-status |
Task.code | extensible | http://fhir.infoway-inforoute.ca/io/CA-eReC/ValueSet/task-code |
Constraints
Path | Id | Grade | Details | Expression |
---|---|---|---|---|
Task; Task; Task; Task; Task; Task; Task.meta; Task.implicitRules; Task.language; Task.text; Task.extension; Task.extension; Task.extension:PatientNeedsToBeSeen; Task.extension:PatientNeedsToBeSeen; Task.modifierExtension; Task.modifierExtension; Task.identifier; Task.instantiatesCanonical; Task.instantiatesUri; Task.basedOn; Task.basedOn.extension; Task.basedOn.extension; Task.basedOn.reference; Task.basedOn.type; Task.basedOn.identifier; Task.basedOn.identifier.extension; Task.basedOn.identifier.extension; Task.basedOn.identifier.use; Task.basedOn.identifier.type; Task.basedOn.identifier.system; Task.basedOn.identifier.value; Task.basedOn.identifier.period; Task.basedOn.identifier.assigner; Task.basedOn.display; Task.groupIdentifier; Task.partOf; Task.status; Task.statusReason; Task.businessStatus; Task.businessStatus.extension; Task.businessStatus.extension; Task.businessStatus.extension:StatusReason; Task.businessStatus.extension:StatusReason; Task.businessStatus.coding; Task.businessStatus.text; Task.intent; Task.priority; Task.code; Task.description; Task.focus; Task.for; Task.encounter; Task.executionPeriod; Task.authoredOn; Task.lastModified; Task.requester; Task.performerType; Task.owner; Task.owner.extension; Task.owner.extension; Task.owner.reference; Task.owner.type; Task.owner.identifier; Task.owner.identifier.extension; Task.owner.identifier.extension; Task.owner.identifier.use; Task.owner.identifier.type; Task.owner.identifier.system; Task.owner.identifier.value; Task.owner.identifier.period; Task.owner.identifier.assigner; Task.owner.display; Task.location; Task.reasonCode; Task.reasonReference; Task.insurance; Task.note; Task.relevantHistory; Task.restriction; Task.restriction.extension; Task.restriction.extension; Task.restriction.modifierExtension; Task.restriction.modifierExtension; Task.restriction.repetitions; Task.restriction.period; Task.restriction.recipient; Task.input; Task.input.extension; Task.input.extension; Task.input.modifierExtension; Task.input.modifierExtension; Task.input.type; Task.input.value[x]; Task.output; Task.output.extension; Task.output.extension; Task.output.modifierExtension; Task.output.modifierExtension; Task.output.type; Task.output.value[x] | dom-2; dom-3; dom-4; dom-5; dom-6; inv-1; ele-1; ele-1; ele-1; ele-1; ele-1; ext-1; ele-1; ext-1; ele-1; ext-1; ele-1; ele-1; ele-1; ele-1; ele-1; ext-1; ele-1; ele-1; ele-1; ele-1; ext-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ext-1; ele-1; ext-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ext-1; ele-1; ele-1; ele-1; ele-1; ext-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ele-1; ext-1; ele-1; ext-1; ele-1; ele-1; ele-1; ele-1; ele-1; ext-1; ele-1; ext-1; ele-1; ele-1; ele-1; ele-1; ext-1; ele-1; ext-1; ele-1; ele-1 | error; error; error; error; warning; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error; error | If the resource is contained in another resource, it SHALL NOT contain nested Resources; If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource; If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated; If a resource is contained in another resource, it SHALL NOT have a security label; A resource should have narrative for robust management; Last modified date must be greater than or equal to authored-on date.; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; Must have either extensions or value[x], not both; All FHIR elements must have a @value or children; Must have either extensions or value[x], not both; All FHIR elements must have a @value or children; Must have either extensions or value[x], not both; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; Must have either extensions or value[x], not both; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; Must have either extensions or value[x], not both; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; Must have either extensions or value[x], not both; All FHIR elements must have a @value or children; Must have either extensions or value[x], not both; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; Must have either extensions or value[x], not both; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; Must have either extensions or value[x], not both; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; Must have either extensions or value[x], not both; All FHIR elements must have a @value or children; Must have either extensions or value[x], not both; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; Must have either extensions or value[x], not both; All FHIR elements must have a @value or children; Must have either extensions or value[x], not both; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children; Must have either extensions or value[x], not both; All FHIR elements must have a @value or children; Must have either extensions or value[x], not both; All FHIR elements must have a @value or children; All FHIR elements must have a @value or children | contained.contained.empty(); contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty(); contained.meta.versionId.empty() and contained.meta.lastUpdated.empty(); contained.meta.security.empty(); text.`div`.exists(); lastModified.exists().not() or authoredOn.exists().not() or lastModified >= authoredOn; hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); extension.exists() != value.exists(); hasValue() or (children().count() > id.count()); extension.exists() != value.exists(); hasValue() or (children().count() > id.count()); extension.exists() != value.exists(); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); extension.exists() != value.exists(); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); extension.exists() != value.exists(); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); extension.exists() != value.exists(); hasValue() or (children().count() > id.count()); extension.exists() != value.exists(); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); extension.exists() != value.exists(); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); extension.exists() != value.exists(); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); extension.exists() != value.exists(); hasValue() or (children().count() > id.count()); extension.exists() != value.exists(); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); extension.exists() != value.exists(); hasValue() or (children().count() > id.count()); extension.exists() != value.exists(); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()); extension.exists() != value.exists(); hasValue() or (children().count() > id.count()); extension.exists() != value.exists(); hasValue() or (children().count() > id.count()); hasValue() or (children().count() > id.count()) |
Usage
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 Systema "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
.
Notes
.id
- used to uniquely identify the resource
- if a persistent identity for the resource is not available to use when constructing a message Bundle for transmission via Direct Messaging, a UUID SHOULD be used in this element (with a corresponding value in
Bundle.entry.fullUrl
)
extension:PatientNeedsToBeSeen
- Used in the Ontario iGuide to support the eConsult use case where a patient is referred to a care provider, the care provider responds with an eConsult rather than accept the referral, but the patient wants a referral anyway.
.basedOn
- used to associate the Task with the ServiceRequest being performed
- SHALL be populated with a reference to the ServiceRequest being performed
- if the Task is being transmitted via messaging, this element SHALL be populated with either:
- a
.reference
to a resource included in the message as aBundle.entry
, or - an
.identifier
populated with theuse
,system
andvalue
elements populated with the officialServiceRequest.identifier
received from the Source System
- a
.status
- for a "Process Request" Task, used to track the status of the ServiceRequest being performed as work progresses through to completion
- for a "Request for Information" Task, used to track the status of the request for information
.businessStatus
- used to convey the business status of the Task, which can be different from the
.status
. It can be more finegrained and is implementation-specific.
.businessStatus.extension:StatusReason
- provides a coded reason for the
.businessStatus
.intent
- only "proposal" SHALL be supported
- "plan" and "order" MAY be populated, and systems that do not understand "plan" or "order" codes will treat the value as "proposal"
.code
- identifies the type of task
- SHALL always be populated
- with "process-request" for a "Process Request" Task
- with "process-request-consult" for a "Process Request" eConsult Task
.authoredOn
- indicates the dateTime that the eReferral was received
- usually the same as ServiceRequest.authoredOn, except in cases when ServiceRequest.authoredOn is used to record that a request was signed by the requester before the transmission took place
.lastModified
- indicates the dateTime when an update of note/significance was made to the referral (i.e., related resources such as ServiceRequest, patient, Task, Appointment, etc...)
.owner
- a reference to the PractitionerRole or HealthcareService responsible for handling the referral
- if the Task is being transmitted via messaging, this element SHALL contain a
.reference
a resource included in the message as aBundle.entry
.output
- MAY to used to provide the outcome of a Referral
- SHALL contain a reference to Communication when an eConsult is provided by a specialist