PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.rwi-pharma@1.0.0-ballot
    http://hl7.org/fhir/uv/rwi-pharma/StructureDefinition/rwi-pharma-task
description: Task profile for RWI Pharma regulatory submission workflows
package_name: hl7.fhir.uv.rwi-pharma
derivation: constraint
name: RWIpharmaTask
type: Task
elements:
  restriction: {index: 33}
  description: {index: 18}
  executionPeriod:
    short: Actual execution period
    mustSupport: true
    index: 24
    elements:
      start: {short: Actual start time, mustSupport: true, index: 25}
      end: {short: Actual completion time, mustSupport: true, index: 26}
  meta:
    index: 0
    elements:
      versionId: {index: 1}
      lastUpdated: {short: Automatically updated on every change, index: 2}
    required: [versionId]
  relevantHistory: {index: 32}
  requestedPeriod:
    short: Requested period for task fulfilment
    mustSupport: true
    index: 21
    elements:
      start: {short: Clock-start / earliest allowed start, mustSupport: true, index: 22}
      end: {short: Deadline / clock-stop date, mustSupport: true, index: 23}
  encounter: {index: 20}
  statusReason: {short: Required if status is rejected or cancelled, index: 14}
  authoredOn: {short: Date/time the sender created the Task, index: 27}
  output:
    short: Output produced by the task
    mustSupport: true
    index: 36
    elements:
      type:
        short: Output type indicates the type of output, such as the code used as a DocumentReference type
        binding: {strength: example, valueSet: 'http://hl7.org/fhir/uv/rwi-pharma/ValueSet/rwipharma-task-output-type-vs'}
        mustSupport: true
        index: 37
  businessStatus:
    short: Detailed regulatory status (e.g., clock-stop)
    binding: {strength: example, valueSet: 'http://hl7.org/fhir/uv/rwi-pharma/ValueSet/rwipharma-business-status-vs'}
    index: 15
  for: {short: Identifies the medicinal product(s) that is the subject. For multiple products use Group or List FHIR Resource, mustSupport: true, index: 19}
  requester:
    type: Reference
    short: Organization that initiated the task
    mustSupport: true
    refers: ['http://hl7.org/fhir/uv/rwi-pharma/StructureDefinition/rwi-pharma-organization']
    index: 29
  lastModified: {index: 28}
  groupIdentifier: {short: Parent/Set ID – groups all Tasks in the same regulatory procedure, mustSupport: true, index: 13}
  code:
    short: Defines the regulatory message type and triggers specific business rules
    binding: {strength: example, valueSet: 'http://hl7.org/fhir/uv/rwi-pharma/ValueSet/rwipharma-submission-type-vs'}
    mustSupport: true
    index: 17
  identifier:
    short: Task instance UUID (required) + official regulator procedure number (optional), other identifiers allowed as well
    mustSupport: true
    index: 4
    slicing:
      rules: open
      description: slices illustrate the requirement to have at least one identifier that is a UUID for the Task instance, and optionally an offical regulator procedure number
      discriminator:
      - {path: type, type: value}
      min: 1
      slices:
        TaskInstance:
          match:
            type:
              coding:
              - {code: rwipharmataskinstance, system: 'http://hl7.org/fhir/uv/rwi-pharma/CodeSystem/rwi-pharma-demo', display: RWI Pharma Task Instance ID}
          schema:
            constraint:
              identifier-is-uuid: {human: 'Identifier value must be a urn:uuid', source: 'http://hl7.org/fhir/uv/rwi-pharma/StructureDefinition/rwi-pharma-task', severity: error, expression: 'value.matches(''^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$'')'}
            min: 1
            short: Technical UUID for this specific Task instance
            index: 5
            mustSupport: true
            array: true
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: rwipharmataskinstance, system: 'http://hl7.org/fhir/uv/rwi-pharma/CodeSystem/rwi-pharma-demo', display: RWI Pharma Task Instance ID}
                index: 6
              value: {index: 7}
            _required: true
            required: [value, type]
        RegulatorProcedureNumber:
          match:
            type:
              coding:
              - {code: rwipharmaregulatorprocedureno, system: 'http://hl7.org/fhir/uv/rwi-pharma/CodeSystem/rwi-pharma-demo', display: RWI Pharma Regulator Procedure Number}
          schema:
            short: Official regulator procedure/submission number (EMA, FDA, PMDA, etc.)
            mustSupport: true
            index: 8
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: rwipharmaregulatorprocedureno, system: 'http://hl7.org/fhir/uv/rwi-pharma/CodeSystem/rwi-pharma-demo', display: RWI Pharma Regulator Procedure Number}
                index: 9
              system: {index: 10}
              value: {short: The actual regulator-assigned procedure number (format varies by authority), index: 11}
            required: [value, type, system]
  intent:
    pattern: {type: Code, value: proposal}
    index: 16
  input:
    short: Input parameters for the task
    mustSupport: true
    index: 34
    elements:
      type:
        short: Input type  indicates the type of input, such as the code used as a DocumentReference type
        binding: {strength: example, valueSet: 'http://hl7.org/fhir/uv/rwi-pharma/ValueSet/rwipharma-task-input-type-vs'}
        mustSupport: true
        index: 35
  basedOn: {short: 'Reference to the parent Task (e.g. a response points to the question Task), ordered lineage of Tasks (oldest → newest).', mustSupport: true, index: 12}
  owner:
    type: Reference
    short: The Organization accountable for fulfilling the Task.
    mustSupport: true
    refers: ['http://hl7.org/fhir/uv/rwi-pharma/StructureDefinition/rwi-pharma-organization']
    index: 30
  performer: {short: Organization or individual who performed the task, mustSupport: true, index: 31}
  text: {short: Human-readable narrative, mustSupport: true, index: 3}
package_version: 1.0.0-ballot
class: profile
kind: resource
url: http://hl7.org/fhir/uv/rwi-pharma/StructureDefinition/rwi-pharma-task
base: http://hl7.org/fhir/StructureDefinition/Task
version: 1.0.0-ballot
required: [lastModified, authoredOn, requester, groupIdentifier, text, identifier, meta, code]