This page is part of the Documentation Templates and Rules (v0.2.0: STU 1 Ballot 2) based on FHIR R4. The current version which supercedes this version is 1.0.0. For a full list of available versions, see the Directory of published versions
The official URL for this profile is:
http://hl7.org/fhir/us/davinci-dtr/STU3/StructureDefinition/dtr-task-stu3
Description of Profiles, Differentials, Snapshots and how the different presentations work.
This structure is derived from Task
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Task | I | 0..* | A task to be performed | |
id | Σ | 0..1 | id | Logical id of this artifact |
meta | Σ | 0..1 | Meta | Metadata about the resource |
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created |
language | 0..1 | code | Language of the resource content Binding: Common Languages (extensible) Max Binding: All Languages | |
text | I | 0..1 | Narrative | Text summary of the resource, for human interpretation |
contained | 0..* | Resource | Contained, inline Resources | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored |
identifier | 0..* | Identifier | Task Instance Identifier | |
definition[x] | Σ | 0..1 | Formal definition of task | |
definitionUri | uri | |||
definitionReference | Reference(http://hl7.org/fhir/STU3/activitydefinition.html) | |||
basedOn | Σ | 1..1 | Reference(DTRQuestionnaireSTU3) | Request fulfilled by this task |
groupIdentifier | Σ | 0..1 | Identifier | Requisition or grouper id |
partOf | Σ | 0..* | Reference(Task) | Composite task |
status | Σ | 1..1 | code | draft | requested | received | accepted | + Binding: TaskStatus (required) Fixed Value: requested |
statusReason | Σ | 0..1 | CodeableConcept | Reason for current status Binding: (unbound) (example) |
businessStatus | Σ | 0..1 | CodeableConcept | E.g. "Specimen collected", "IV prepped" Binding: (unbound) (example) |
intent | Σ | 1..1 | code | proposal | plan | order + Binding: RequestIntent (required) |
priority | 0..1 | code | normal | urgent | asap | stat Binding: RequestPriority (required) | |
code | Σ | 0..1 | CodeableConcept | Task Type Binding: (unbound) (example) |
description | Σ | 0..1 | string | Human-readable explanation of task |
focus | Σ | 0..1 | Reference(Resource) | What task is acting on |
for | Σ | 1..1 | Reference(Patient) | Beneficiary of the Task |
context | Σ | 0..1 | Reference(Encounter | EpisodeOfCare) | Healthcare event during which this task originated |
executionPeriod | Σ | 0..1 | Period | Start and end time of execution |
authoredOn | I | 0..1 | dateTime | Task Creation Date |
lastModified | ΣI | 0..1 | dateTime | Task Last Modified Date |
requester | ΣI | 0..1 | BackboneElement | Who is asking for task to be done |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
agent | Σ | 1..1 | Reference(Device | Organization | Patient | Practitioner | RelatedPerson) | Individual asking for task |
onBehalfOf | 0..1 | Reference(Organization) | Organization individual is acting for | |
performerType | 0..* | CodeableConcept | requester | dispatcher | scheduler | performer | monitor | manager | acquirer | reviewer Binding: TaskPerformerType (preferred) | |
owner | Σ | 0..1 | Reference(Device | Organization | Patient | Practitioner | RelatedPerson) | Responsible individual |
reason | 0..1 | CodeableConcept | Why task is needed Binding: (unbound) (example) | |
note | 0..* | Annotation | Comments made about the task | |
relevantHistory | 0..* | Reference(Provenance) | Key events in history of the Task | |
restriction | I | 0..1 | BackboneElement | Constraints on fulfillment tasks |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
repetitions | 0..1 | positiveInt | How many times to repeat | |
period | 0..1 | Period | When fulfillment sought | |
recipient | 0..* | Reference(Patient | Practitioner | RelatedPerson | Group | Organization) | For whom is fulfillment sought? | |
input | I | 0..* | BackboneElement | Information used to perform task |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
type | 1..1 | CodeableConcept | Label for the input Binding: (unbound) (example) | |
value[x] | 1..1 | Content to use in performing the task | ||
valueBase64Binary | base64Binary | |||
valueBoolean | boolean | |||
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 | |||
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 | |||
valueReference | Reference() | |||
valueSampledData | SampledData | |||
valueSignature | Signature | |||
valueTiming | Timing | |||
valueMeta | Meta | |||
output | I | 0..* | BackboneElement | Information produced as part of task |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
type | 1..1 | CodeableConcept | Label for output Binding: (unbound) (example) | |
value[x] | 1..1 | Result of output | ||
valueBase64Binary | base64Binary | |||
valueBoolean | boolean | |||
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 | |||
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 | |||
valueReference | Reference() | |||
valueSampledData | SampledData | |||
valueSignature | Signature | |||
valueTiming | Timing | |||
valueMeta | Meta | |||
Documentation for this format |
This structure is derived from Task
Differential View
This structure is derived from Task
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Task | 0..* | |||
basedOn | 1..1 | Reference(DTRQuestionnaireSTU3) | ||
status | 1..1 | code | Fixed Value: requested | |
for | 1..1 | Reference(Patient) | ||
Documentation for this format |
Snapshot View
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
Task | I | 0..* | A task to be performed | |
id | Σ | 0..1 | id | Logical id of this artifact |
meta | Σ | 0..1 | Meta | Metadata about the resource |
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created |
language | 0..1 | code | Language of the resource content Binding: Common Languages (extensible) Max Binding: All Languages | |
text | I | 0..1 | Narrative | Text summary of the resource, for human interpretation |
contained | 0..* | Resource | Contained, inline Resources | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored |
identifier | 0..* | Identifier | Task Instance Identifier | |
definition[x] | Σ | 0..1 | Formal definition of task | |
definitionUri | uri | |||
definitionReference | Reference(http://hl7.org/fhir/STU3/activitydefinition.html) | |||
basedOn | Σ | 1..1 | Reference(DTRQuestionnaireSTU3) | Request fulfilled by this task |
groupIdentifier | Σ | 0..1 | Identifier | Requisition or grouper id |
partOf | Σ | 0..* | Reference(Task) | Composite task |
status | Σ | 1..1 | code | draft | requested | received | accepted | + Binding: TaskStatus (required) Fixed Value: requested |
statusReason | Σ | 0..1 | CodeableConcept | Reason for current status Binding: (unbound) (example) |
businessStatus | Σ | 0..1 | CodeableConcept | E.g. "Specimen collected", "IV prepped" Binding: (unbound) (example) |
intent | Σ | 1..1 | code | proposal | plan | order + Binding: RequestIntent (required) |
priority | 0..1 | code | normal | urgent | asap | stat Binding: RequestPriority (required) | |
code | Σ | 0..1 | CodeableConcept | Task Type Binding: (unbound) (example) |
description | Σ | 0..1 | string | Human-readable explanation of task |
focus | Σ | 0..1 | Reference(Resource) | What task is acting on |
for | Σ | 1..1 | Reference(Patient) | Beneficiary of the Task |
context | Σ | 0..1 | Reference(Encounter | EpisodeOfCare) | Healthcare event during which this task originated |
executionPeriod | Σ | 0..1 | Period | Start and end time of execution |
authoredOn | I | 0..1 | dateTime | Task Creation Date |
lastModified | ΣI | 0..1 | dateTime | Task Last Modified Date |
requester | ΣI | 0..1 | BackboneElement | Who is asking for task to be done |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
agent | Σ | 1..1 | Reference(Device | Organization | Patient | Practitioner | RelatedPerson) | Individual asking for task |
onBehalfOf | 0..1 | Reference(Organization) | Organization individual is acting for | |
performerType | 0..* | CodeableConcept | requester | dispatcher | scheduler | performer | monitor | manager | acquirer | reviewer Binding: TaskPerformerType (preferred) | |
owner | Σ | 0..1 | Reference(Device | Organization | Patient | Practitioner | RelatedPerson) | Responsible individual |
reason | 0..1 | CodeableConcept | Why task is needed Binding: (unbound) (example) | |
note | 0..* | Annotation | Comments made about the task | |
relevantHistory | 0..* | Reference(Provenance) | Key events in history of the Task | |
restriction | I | 0..1 | BackboneElement | Constraints on fulfillment tasks |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
repetitions | 0..1 | positiveInt | How many times to repeat | |
period | 0..1 | Period | When fulfillment sought | |
recipient | 0..* | Reference(Patient | Practitioner | RelatedPerson | Group | Organization) | For whom is fulfillment sought? | |
input | I | 0..* | BackboneElement | Information used to perform task |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
type | 1..1 | CodeableConcept | Label for the input Binding: (unbound) (example) | |
value[x] | 1..1 | Content to use in performing the task | ||
valueBase64Binary | base64Binary | |||
valueBoolean | boolean | |||
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 | |||
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 | |||
valueReference | Reference() | |||
valueSampledData | SampledData | |||
valueSignature | Signature | |||
valueTiming | Timing | |||
valueMeta | Meta | |||
output | I | 0..* | BackboneElement | Information produced as part of task |
id | 0..1 | string | xml:id (or equivalent in JSON) | |
extension | 0..* | Extension | Additional Content defined by implementations | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored |
type | 1..1 | CodeableConcept | Label for output Binding: (unbound) (example) | |
value[x] | 1..1 | Result of output | ||
valueBase64Binary | base64Binary | |||
valueBoolean | boolean | |||
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 | |||
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 | |||
valueReference | Reference() | |||
valueSampledData | SampledData | |||
valueSignature | Signature | |||
valueTiming | Timing | |||
valueMeta | Meta | |||
Documentation for this format |
Other representations of profile: Schematron
Path | Conformance | ValueSet / Code |
Task.language | extensible | Common Languages Max Binding: All Languages |
Task.status | required | Fixed Value: requested |
Task.statusReason | example | |
Task.businessStatus | example | |
Task.intent | required | RequestIntent |
Task.priority | required | RequestPriority |
Task.code | example | |
Task.performerType | preferred | TaskPerformerType |
Task.reason | example | |
Task.input.type | example | |
Task.output.type | example |
Id | Path | Details | Requirements |
dom-2 | Task | If the resource is contained in another resource, it SHALL NOT contain nested Resources : contained.contained.empty() | |
dom-1 | Task | If the resource is contained in another resource, it SHALL NOT contain any narrative : contained.text.empty() | |
dom-4 | Task | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated : contained.meta.versionId.empty() and contained.meta.lastUpdated.empty() | |
dom-3 | Task | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource : contained.where(('#'+id in %resource.descendants().reference).not()).empty() | |
inv-1 | Task | Last modified date must be greater than or equal to authored-on date. : lastModified.exists().not() or authoredOn.exists().not() or lastModified >= authoredOn | |
ele-1 | Task.requester | All FHIR elements must have a @value or children : hasValue() | (children().count() > id.count()) | |
ele-1 | Task.restriction | All FHIR elements must have a @value or children : hasValue() | (children().count() > id.count()) | |
ele-1 | Task.input | All FHIR elements must have a @value or children : hasValue() | (children().count() > id.count()) | |
ele-1 | Task.output | All FHIR elements must have a @value or children : hasValue() | (children().count() > id.count()) |