STU 2 Ballot

This page is part of the Data Access Framework (v1.6.0: STU 2 Ballot 1) based on FHIR (HL7® FHIR® Standard) v1.6.0. The current version which supersedes this version is 2.0.0. For a full list of available versions, see the Directory of published versions

D.4.1 StructureDefinition: DAF-task

The official URL for this profile is:

http://hl7.org/fhir/us/daf/StructureDefinition/daf-task

This profile was published on Fri Aug 12 00:00:00 AEST 2016 as a draft by Health Level Seven International (FHIR Infrastructure WG - Data Access Framework).

D.4.1.1 Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.

This structure is derived from Task

Summary

Mandatory: 5 elements (+4 nested mandatory elements)
Must-Support: 24 elements

This structure is derived from Task

NameFlagsCard.TypeDescription & Constraintsdoco
.. Task 0..*
... identifier S1..1Identifier
... requisition S0..1Identifier
... parent S0..*Reference(Task)
... status S1..1code
... code S0..1CodeableConcept
... priority S0..1code
... description S0..1string
... created S1..1dateTime
... lastModified S1..1dateTime
... requester S1..1Reference(Device | Organization | Patient | Practitioner | RelatedPerson)
... owner S0..1Reference(Device | Organization | Patient | Practitioner | RelatedPerson)
... reason S0..1CodeableConcept
... note S0..*Annotation
... fulfillment S0..1BackboneElement
.... repetitions S0..1positiveInt
.... period S0..1Period
.... recipients S0..*Reference(Patient | Practitioner | RelatedPerson | Group | Organization)
... definition S0..1uri
... input S0..*BackboneElement
.... type S1..1CodeableConcept
.... value[x] S1..1base64Binary, boolean, code, date, dateTime, decimal, id, instant, integer, markdown, oid, positiveInt, string, time, unsignedInt, uri, Address, Age, Annotation, Attachment, CodeableConcept, Coding, ContactPoint, Count, Distance, Duration, HumanName, Identifier, Money, Period, Quantity, Range, Ratio, Reference(), SampledData, Signature, Timing, Meta
... output S0..*BackboneElement
.... type S1..1CodeableConcept
.... value[x] S1..1base64Binary, boolean, code, date, dateTime, decimal, id, instant, integer, markdown, oid, positiveInt, string, time, unsignedInt, uri, Address, Age, Annotation, Attachment, CodeableConcept, Coding, ContactPoint, Count, Distance, Duration, HumanName, Identifier, Money, Period, Quantity, Range, Ratio, Reference(), SampledData, Signature, Timing, Meta

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Task I0..*A task to be performed
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
inv-1: Last modified date must be greater than or equal to created date.
... id ∑0..1idLogical id of this artifact
... meta ∑0..1MetaMetadata about the resource
... implicitRules ?!∑0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: Common Languages (extensible)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional Content defined by implementations
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier S1..1IdentifierTask Instance Identifier
... basedOn ∑0..*Reference(Resource)Request fulfilled by this task
... requisition S0..1IdentifierRequisition or grouper id
... parent S0..*Reference(Task)Composite task
... status S1..1codedraft | requested | received | accepted | +
Binding: TaskStatus (required)
... statusReason ∑0..1CodeableConceptReason for current status
... businessStatus ∑0..1CodeableConceptE.g. "Specimen collected", "IV prepped"
Binding: (unbound) (example)
... stage ∑1..1CodeableConceptproposed | planned | actionable +
Binding: Task Stage Codes (extensible)
... code S0..1CodeableConceptTask Type
... priority S0..1codelow | normal | high
Binding: TaskPriority (required)
... description S0..1stringHuman-readable explanation of task
... focus ∑0..1Reference(Resource)What task is acting on
... for ∑0..1Reference(Resource)Beneficiary of the Task
... context ∑0..1Reference(Encounter | EpisodeOfCare)Healthcare event during which this task originated
... created SI1..1dateTimeTask Creation Date
... lastModified SI1..1dateTimeTask Last Modified Date
... requester S1..1Reference(Device | Organization | Patient | Practitioner | RelatedPerson)Task Creator
... owner S0..1Reference(Device | Organization | Patient | Practitioner | RelatedPerson)Task Owner
... performerType 0..*CodeableConceptrequester | dispatcher | scheduler | performer | monitor | manager | acquirer | reviewer
Binding: TaskPerformerType (preferred)
... reason S0..1CodeableConceptWhy task is needed
Binding: (unbound) (example)
... note S0..*AnnotationComments made about the task
... fulfillment S0..1BackboneElementConstraints on fulfillment tasks
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
.... repetitions S0..1positiveIntHow many times to repeat
.... period S0..1PeriodOver what time-period is fulfillment sought
.... recipients S0..*Reference(Patient | Practitioner | RelatedPerson | Group | Organization)For whom is fulfillment sought?
... definition S0..1uriTask Definition
... input S0..*BackboneElementSupporting information
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
.... type S1..1CodeableConceptLabel for the input
Binding: (unbound) (example)
.... value[x] S1..1base64Binary, boolean, code, date, dateTime, decimal, id, instant, integer, markdown, oid, positiveInt, string, time, unsignedInt, uri, Address, Age, Annotation, Attachment, CodeableConcept, Coding, ContactPoint, Count, Distance, Duration, HumanName, Identifier, Money, Period, Quantity, Range, Ratio, Reference(), SampledData, Signature, Timing, MetaInput Value
... output S0..*BackboneElementTask Output
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
.... type S1..1CodeableConceptOutput Name
Binding: (unbound) (example)
.... value[x] S1..1base64Binary, boolean, code, date, dateTime, decimal, id, instant, integer, markdown, oid, positiveInt, string, time, unsignedInt, uri, Address, Age, Annotation, Attachment, CodeableConcept, Coding, ContactPoint, Count, Distance, Duration, HumanName, Identifier, Money, Period, Quantity, Range, Ratio, Reference(), SampledData, Signature, Timing, MetaOutput Value

doco Documentation for this format

yet to be done: Xml template

yet to be done: Json template

This structure is derived from Task.

Summary

Mandatory: 5 elements (+4 nested mandatory elements)
Must-Support: 24 elements

Differential View

This structure is derived from Task.

NameFlagsCard.TypeDescription & Constraintsdoco
.. Task 0..*
... identifier S1..1Identifier
... requisition S0..1Identifier
... parent S0..*Reference(Task)
... status S1..1code
... code S0..1CodeableConcept
... priority S0..1code
... description S0..1string
... created S1..1dateTime
... lastModified S1..1dateTime
... requester S1..1Reference(Device | Organization | Patient | Practitioner | RelatedPerson)
... owner S0..1Reference(Device | Organization | Patient | Practitioner | RelatedPerson)
... reason S0..1CodeableConcept
... note S0..*Annotation
... fulfillment S0..1BackboneElement
.... repetitions S0..1positiveInt
.... period S0..1Period
.... recipients S0..*Reference(Patient | Practitioner | RelatedPerson | Group | Organization)
... definition S0..1uri
... input S0..*BackboneElement
.... type S1..1CodeableConcept
.... value[x] S1..1base64Binary, boolean, code, date, dateTime, decimal, id, instant, integer, markdown, oid, positiveInt, string, time, unsignedInt, uri, Address, Age, Annotation, Attachment, CodeableConcept, Coding, ContactPoint, Count, Distance, Duration, HumanName, Identifier, Money, Period, Quantity, Range, Ratio, Reference(), SampledData, Signature, Timing, Meta
... output S0..*BackboneElement
.... type S1..1CodeableConcept
.... value[x] S1..1base64Binary, boolean, code, date, dateTime, decimal, id, instant, integer, markdown, oid, positiveInt, string, time, unsignedInt, uri, Address, Age, Annotation, Attachment, CodeableConcept, Coding, ContactPoint, Count, Distance, Duration, HumanName, Identifier, Money, Period, Quantity, Range, Ratio, Reference(), SampledData, Signature, Timing, Meta

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Task I0..*A task to be performed
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
inv-1: Last modified date must be greater than or equal to created date.
... id ∑0..1idLogical id of this artifact
... meta ∑0..1MetaMetadata about the resource
... implicitRules ?!∑0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: Common Languages (extensible)
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional Content defined by implementations
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier S1..1IdentifierTask Instance Identifier
... basedOn ∑0..*Reference(Resource)Request fulfilled by this task
... requisition S0..1IdentifierRequisition or grouper id
... parent S0..*Reference(Task)Composite task
... status S1..1codedraft | requested | received | accepted | +
Binding: TaskStatus (required)
... statusReason ∑0..1CodeableConceptReason for current status
... businessStatus ∑0..1CodeableConceptE.g. "Specimen collected", "IV prepped"
Binding: (unbound) (example)
... stage ∑1..1CodeableConceptproposed | planned | actionable +
Binding: Task Stage Codes (extensible)
... code S0..1CodeableConceptTask Type
... priority S0..1codelow | normal | high
Binding: TaskPriority (required)
... description S0..1stringHuman-readable explanation of task
... focus ∑0..1Reference(Resource)What task is acting on
... for ∑0..1Reference(Resource)Beneficiary of the Task
... context ∑0..1Reference(Encounter | EpisodeOfCare)Healthcare event during which this task originated
... created SI1..1dateTimeTask Creation Date
... lastModified SI1..1dateTimeTask Last Modified Date
... requester S1..1Reference(Device | Organization | Patient | Practitioner | RelatedPerson)Task Creator
... owner S0..1Reference(Device | Organization | Patient | Practitioner | RelatedPerson)Task Owner
... performerType 0..*CodeableConceptrequester | dispatcher | scheduler | performer | monitor | manager | acquirer | reviewer
Binding: TaskPerformerType (preferred)
... reason S0..1CodeableConceptWhy task is needed
Binding: (unbound) (example)
... note S0..*AnnotationComments made about the task
... fulfillment S0..1BackboneElementConstraints on fulfillment tasks
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
.... repetitions S0..1positiveIntHow many times to repeat
.... period S0..1PeriodOver what time-period is fulfillment sought
.... recipients S0..*Reference(Patient | Practitioner | RelatedPerson | Group | Organization)For whom is fulfillment sought?
... definition S0..1uriTask Definition
... input S0..*BackboneElementSupporting information
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
.... type S1..1CodeableConceptLabel for the input
Binding: (unbound) (example)
.... value[x] S1..1base64Binary, boolean, code, date, dateTime, decimal, id, instant, integer, markdown, oid, positiveInt, string, time, unsignedInt, uri, Address, Age, Annotation, Attachment, CodeableConcept, Coding, ContactPoint, Count, Distance, Duration, HumanName, Identifier, Money, Period, Quantity, Range, Ratio, Reference(), SampledData, Signature, Timing, MetaInput Value
... output S0..*BackboneElementTask Output
.... id 0..1stringxml:id (or equivalent in JSON)
.... extension 0..*ExtensionAdditional Content defined by implementations
.... modifierExtension ?!∑0..*ExtensionExtensions that cannot be ignored
.... type S1..1CodeableConceptOutput Name
Binding: (unbound) (example)
.... value[x] S1..1base64Binary, boolean, code, date, dateTime, decimal, id, instant, integer, markdown, oid, positiveInt, string, time, unsignedInt, uri, Address, Age, Annotation, Attachment, CodeableConcept, Coding, ContactPoint, Count, Distance, Duration, HumanName, Identifier, Money, Period, Quantity, Range, Ratio, Reference(), SampledData, Signature, Timing, MetaOutput Value

doco Documentation for this format

XML Template

yet to be done: Xml template

JSON Template

yet to be done: Json template

 

D.4.1.2 Terminology Bindings

Terminology Bindings

PathNameConformanceValueSet
Task.languageCommon LanguagesextensibleCommon Languages
Task.statusTaskStatusrequiredTaskStatus
Task.businessStatus?extexample
Task.stageTask Stage CodesextensibleTask Stage Codes
Task.priorityTaskPriorityrequiredTaskPriority
Task.performerTypeTaskPerformerTypepreferredTaskPerformerType
Task.reason?extexample
Task.input.type?extexample
Task.output.type?extexample

D.4.1.3 Constraints

Constraints

IdPathDetailsRequirements
dom-2TaskIf the resource is contained in another resource, it SHALL NOT contain nested Resources
XPath: not(parent::f:contained and f:contained)
dom-1TaskIf the resource is contained in another resource, it SHALL NOT contain any narrative
XPath: not(parent::f:contained and f:text)
dom-4TaskIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
XPath: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
dom-3TaskIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
XPath: not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))
inv-1TaskLast modified date must be greater than or equal to created date.
XPath: f:lastModified >= f:created
.