PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.core@1.8.0
    http://hl7.org/fhir/StructureDefinition/Task
description: Base StructureDefinition for Task Resource
package_name: hl7.fhir.core
derivation: specialization
name: Task
type: Task
elements:
  restriction:
    short: Constraints on fulfillment tasks
    type: BackboneElement
    index: 29
    elements:
      repetitions: {short: How many times to repeat, type: positiveInt, index: 30}
      period: {short: Over what time-period is fulfillment sought, type: Period, index: 31}
      recipient:
        short: For whom is fulfillment sought?
        refers: ['http://hl7.org/fhir/StructureDefinition/Group', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
        type: Reference
        array: true
        index: 32
  description: {short: Human-readable explanation of task, type: string, isSummary: true, index: 14}
  performerType: {short: requester | dispatcher | scheduler | performer | monitor | manager | acquirer | reviewer, type: CodeableConcept, array: true, index: 24}
  executionPeriod: {short: Start and end time of execution, type: Period, isSummary: true, index: 18}
  definition:
    short: Formal definition of task
    choices: [definitionUri, definitionReference]
    isSummary: true
    index: 2
  definitionUri: {short: Formal definition of task, type: uri, choiceOf: definition, isSummary: true, index: 3}
  relevantHistory:
    short: Key events in history of the Task
    refers: ['http://hl7.org/fhir/StructureDefinition/Provenance']
    comments: This element does not point to the Provenance associated with the *current* version of the resource - as it would be created after this version existed.  The Provenance for the current version can be retrieved with a _revinclude.
    type: Reference
    array: true
    index: 28
  definitionReference:
    short: Formal definition of task
    refers: ['http://hl7.org/fhir/StructureDefinition/ActivityDefinition']
    type: Reference
    choiceOf: definition
    isSummary: true
    index: 4
  statusReason: {short: Reason for current status, comments: This applies to the current status.  Look at the history of the task to see reasons for past statuses., type: CodeableConcept, isSummary: true, index: 9}
  authoredOn: {short: Task Creation Date, type: dateTime, index: 19}
  output:
    short: Information produced as part of task
    type: BackboneElement
    array: true
    index: 75
    elements:
      valueBase64Binary: {short: Result of output, type: base64Binary, choiceOf: value, index: 79}
      valueAge: {short: Result of output, type: Age, choiceOf: value, index: 96}
      valueTiming: {short: Result of output, type: Timing, choiceOf: value, index: 115}
      valueCode: {short: Result of output, type: code, choiceOf: value, index: 81}
      valueReference: {short: Result of output, type: Reference, choiceOf: value, index: 112}
      valueUri: {short: Result of output, type: uri, choiceOf: value, index: 94}
      valueTime: {short: Result of output, type: time, choiceOf: value, index: 92}
      valueDecimal: {short: Result of output, type: decimal, choiceOf: value, index: 84}
      valueMarkdown: {short: Result of output, type: markdown, choiceOf: value, index: 88}
      valueIdentifier: {short: Result of output, type: Identifier, choiceOf: value, index: 106}
      valueQuantity: {short: Result of output, type: Quantity, choiceOf: value, index: 109}
      value:
        short: Result of output
        choices: [valueBase64Binary, valueBoolean, valueCode, valueDate, valueDateTime, valueDecimal, valueId, valueInstant, valueInteger, valueMarkdown, valueOid, valuePositiveInt, valueString, valueTime, valueUnsignedInt, valueUri, valueAddress, valueAge, valueAnnotation, valueAttachment, valueCodeableConcept, valueCoding, valueContactPoint, valueCount, valueDistance, valueDuration, valueHumanName, valueIdentifier, valueMoney, valuePeriod, valueQuantity, valueRange, valueRatio, valueReference, valueSampledData, valueSignature, valueTiming, valueMeta]
        index: 78
      valueCount: {short: Result of output, type: Count, choiceOf: value, index: 102}
      valueString: {short: Result of output, type: string, choiceOf: value, index: 91}
      valueRatio: {short: Result of output, type: Ratio, choiceOf: value, index: 111}
      valueBoolean: {short: Result of output, type: boolean, choiceOf: value, index: 80}
      valueInstant: {short: Result of output, type: instant, choiceOf: value, index: 86}
      valueDateTime: {short: Result of output, type: dateTime, choiceOf: value, index: 83}
      valueDate: {short: Result of output, type: date, choiceOf: value, index: 82}
      type: {short: Label for output, type: CodeableConcept, index: 76}
      valueDuration: {short: Result of output, type: Duration, choiceOf: value, index: 104}
      valueMeta: {short: Result of output, type: Meta, choiceOf: value, index: 116}
      valueMoney: {short: Result of output, type: Money, choiceOf: value, index: 107}
      valueCoding: {short: Result of output, type: Coding, choiceOf: value, index: 100}
      valueSampledData: {short: Result of output, type: SampledData, choiceOf: value, index: 113}
      valueContactPoint: {short: Result of output, type: ContactPoint, choiceOf: value, index: 101}
      valueCodeableConcept: {short: Result of output, type: CodeableConcept, choiceOf: value, index: 99}
      valueAnnotation: {short: Result of output, type: Annotation, choiceOf: value, index: 97}
      valuePeriod: {short: Result of output, type: Period, choiceOf: value, index: 108}
      valueDistance: {short: Result of output, type: Distance, choiceOf: value, index: 103}
      valueRange: {short: Result of output, type: Range, choiceOf: value, index: 110}
      valueSignature: {short: Result of output, type: Signature, choiceOf: value, index: 114}
      valueInteger: {short: Result of output, type: integer, choiceOf: value, index: 87}
      valueHumanName: {short: Result of output, type: HumanName, choiceOf: value, index: 105}
      valueUnsignedInt: {short: Result of output, type: unsignedInt, choiceOf: value, index: 93}
      valueAttachment: {short: Result of output, type: Attachment, choiceOf: value, index: 98}
      valueOid: {short: Result of output, type: oid, choiceOf: value, index: 89}
      valueAddress: {short: Result of output, type: Address, choiceOf: value, index: 95}
      valuePositiveInt: {short: Result of output, type: positiveInt, choiceOf: value, index: 90}
      valueId: {short: Result of output, type: id, choiceOf: value, index: 85}
    required: [valueCoding, valueBase64Binary, valuePeriod, valueSampledData, valueMarkdown, valueUri, valueSignature, valueString, valueReference, valueRatio, valueMoney, valueContactPoint, valueAnnotation, valueCode, valueHumanName, valueRange, valuePositiveInt, valueAddress, valueAge, valueDecimal, valueAttachment, valueTiming, valueIdentifier, valueDateTime, valueInstant, value, valueBoolean, valueDate, valueMeta, valueUnsignedInt, type, valueCodeableConcept, valueTime, valueCount, valueId, valueDistance, valueQuantity, valueDuration, valueOid, valueInteger]
  businessStatus: {short: 'E.g. "Specimen collected", "IV prepped"', type: CodeableConcept, isSummary: true, index: 10}
  note: {type: Annotation, short: Comments made about the task, array: true, index: 27}
  reason: {short: Why task is needed, comments: This should only be included if there is no focus or if it differs from the reason indicated on the focus., type: CodeableConcept, index: 26}
  for:
    short: Beneficiary of the Task
    refers: ['http://hl7.org/fhir/StructureDefinition/Resource']
    type: Reference
    isSummary: true
    index: 16
  requester:
    short: Who is asking for task to be done
    type: BackboneElement
    isSummary: true
    index: 21
    elements:
      agent:
        short: Individual asking for task
        refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
        type: Reference
        isSummary: true
        index: 22
      onBehalfOf:
        short: Organization individual is acting for
        refers: ['http://hl7.org/fhir/StructureDefinition/Organization']
        type: Reference
        index: 23
    required: [agent]
  lastModified: {short: Task Last Modified Date, type: dateTime, isSummary: true, index: 20}
  priority: {short: normal | urgent | asap | stat, type: code, meaningWhenMissing: 'If missing, this task should be performed with normal priority', index: 12}
  status: {short: draft | requested | received | accepted | +, type: code, isSummary: true, index: 8}
  groupIdentifier: {short: Requisition or grouper id, type: Identifier, isSummary: true, index: 6}
  code: {short: Task Type, comments: 'The title (eg "My Tasks", "Outstanding Tasks for Patient X") should go into the code.', type: CodeableConcept, isSummary: true, index: 13}
  identifier: {type: Identifier, short: Task Instance Identifier, array: true, index: 0}
  context:
    short: Healthcare event during which this task originated
    refers: ['http://hl7.org/fhir/StructureDefinition/Encounter', 'http://hl7.org/fhir/StructureDefinition/EpisodeOfCare']
    type: Reference
    isSummary: true
    index: 17
  intent:
    short: proposed | planned | actionable +
    comments: |-
      This element is immutable.  Proposed tasks, planned tasks, etc. must be distinct instances.

      In most cases, Tasks will have an intent of "order".
    type: code
    isSummary: true
    index: 11
  focus:
    short: What task is acting on
    refers: ['http://hl7.org/fhir/StructureDefinition/Resource']
    comments: If multiple resources need to be manipulated, use sub-tasks.  (This ensures that status can be tracked independently for each referenced resource.).
    type: Reference
    isSummary: true
    index: 15
  input:
    short: Information used to perform task
    type: BackboneElement
    array: true
    index: 33
    elements:
      valueBase64Binary: {short: Content to use in performing the task, type: base64Binary, choiceOf: value, index: 37}
      valueAge: {short: Content to use in performing the task, type: Age, choiceOf: value, index: 54}
      valueTiming: {short: Content to use in performing the task, type: Timing, choiceOf: value, index: 73}
      valueCode: {short: Content to use in performing the task, type: code, choiceOf: value, index: 39}
      valueReference: {short: Content to use in performing the task, type: Reference, choiceOf: value, index: 70}
      valueUri: {short: Content to use in performing the task, type: uri, choiceOf: value, index: 52}
      valueTime: {short: Content to use in performing the task, type: time, choiceOf: value, index: 50}
      valueDecimal: {short: Content to use in performing the task, type: decimal, choiceOf: value, index: 42}
      valueMarkdown: {short: Content to use in performing the task, type: markdown, choiceOf: value, index: 46}
      valueIdentifier: {short: Content to use in performing the task, type: Identifier, choiceOf: value, index: 64}
      valueQuantity: {short: Content to use in performing the task, type: Quantity, choiceOf: value, index: 67}
      value:
        short: Content to use in performing the task
        choices: [valueBase64Binary, valueBoolean, valueCode, valueDate, valueDateTime, valueDecimal, valueId, valueInstant, valueInteger, valueMarkdown, valueOid, valuePositiveInt, valueString, valueTime, valueUnsignedInt, valueUri, valueAddress, valueAge, valueAnnotation, valueAttachment, valueCodeableConcept, valueCoding, valueContactPoint, valueCount, valueDistance, valueDuration, valueHumanName, valueIdentifier, valueMoney, valuePeriod, valueQuantity, valueRange, valueRatio, valueReference, valueSampledData, valueSignature, valueTiming, valueMeta]
        index: 36
      valueCount: {short: Content to use in performing the task, type: Count, choiceOf: value, index: 60}
      valueString: {short: Content to use in performing the task, type: string, choiceOf: value, index: 49}
      valueRatio: {short: Content to use in performing the task, type: Ratio, choiceOf: value, index: 69}
      valueBoolean: {short: Content to use in performing the task, type: boolean, choiceOf: value, index: 38}
      valueInstant: {short: Content to use in performing the task, type: instant, choiceOf: value, index: 44}
      valueDateTime: {short: Content to use in performing the task, type: dateTime, choiceOf: value, index: 41}
      valueDate: {short: Content to use in performing the task, type: date, choiceOf: value, index: 40}
      type: {short: Label for the input, comments: 'If referencing a BPMN workflow or Protocol, the "system" is the URL for the workflow definition and the code is the "name" of the required input.', type: CodeableConcept, index: 34}
      valueDuration: {short: Content to use in performing the task, type: Duration, choiceOf: value, index: 62}
      valueMeta: {short: Content to use in performing the task, type: Meta, choiceOf: value, index: 74}
      valueMoney: {short: Content to use in performing the task, type: Money, choiceOf: value, index: 65}
      valueCoding: {short: Content to use in performing the task, type: Coding, choiceOf: value, index: 58}
      valueSampledData: {short: Content to use in performing the task, type: SampledData, choiceOf: value, index: 71}
      valueContactPoint: {short: Content to use in performing the task, type: ContactPoint, choiceOf: value, index: 59}
      valueCodeableConcept: {short: Content to use in performing the task, type: CodeableConcept, choiceOf: value, index: 57}
      valueAnnotation: {short: Content to use in performing the task, type: Annotation, choiceOf: value, index: 55}
      valuePeriod: {short: Content to use in performing the task, type: Period, choiceOf: value, index: 66}
      valueDistance: {short: Content to use in performing the task, type: Distance, choiceOf: value, index: 61}
      valueRange: {short: Content to use in performing the task, type: Range, choiceOf: value, index: 68}
      valueSignature: {short: Content to use in performing the task, type: Signature, choiceOf: value, index: 72}
      valueInteger: {short: Content to use in performing the task, type: integer, choiceOf: value, index: 45}
      valueHumanName: {short: Content to use in performing the task, type: HumanName, choiceOf: value, index: 63}
      valueUnsignedInt: {short: Content to use in performing the task, type: unsignedInt, choiceOf: value, index: 51}
      valueAttachment: {short: Content to use in performing the task, type: Attachment, choiceOf: value, index: 56}
      valueOid: {short: Content to use in performing the task, type: oid, choiceOf: value, index: 47}
      valueAddress: {short: Content to use in performing the task, type: Address, choiceOf: value, index: 53}
      valuePositiveInt: {short: Content to use in performing the task, type: positiveInt, choiceOf: value, index: 48}
      valueId: {short: Content to use in performing the task, type: id, choiceOf: value, index: 43}
    required: [valueCoding, valueBase64Binary, valuePeriod, valueSampledData, valueMarkdown, valueUri, valueSignature, valueString, valueReference, valueRatio, valueMoney, valueContactPoint, valueAnnotation, valueCode, valueHumanName, valueRange, valuePositiveInt, valueAddress, valueAge, valueDecimal, valueAttachment, valueTiming, valueIdentifier, valueDateTime, valueInstant, value, valueBoolean, valueDate, valueMeta, valueUnsignedInt, type, valueCodeableConcept, valueTime, valueCount, valueId, valueDistance, valueQuantity, valueDuration, valueOid, valueInteger]
  basedOn:
    short: Request fulfilled by this task
    refers: ['http://hl7.org/fhir/StructureDefinition/Resource']
    type: Reference
    array: true
    isSummary: true
    index: 5
  partOf:
    short: Composite task
    refers: ['http://hl7.org/fhir/StructureDefinition/Task']
    comments: This should usually be 0..1.
    type: Reference
    array: true
    isSummary: true
    index: 7
  owner:
    short: Task Owner
    refers: ['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
    comments: Tasks may be created with an owner not yet identified.
    type: Reference
    isSummary: true
    index: 25
package_version: 1.8.0
class: resource
kind: resource
url: http://hl7.org/fhir/StructureDefinition/Task
base: http://hl7.org/fhir/StructureDefinition/DomainResource
version: null
required: [status, intent]