PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.davinci-cdex@2.0.0-ballot
    http://hl7.org/fhir/us/davinci-cdex/StructureDefinition/cdex-task-attachment-request
description: This [Task](http://hl7.org/StructureDefinition/Task) based profile is used by Payers to request additional documentation for claims or prior authorizations. It constrains the Task resource to minimal necessary data elements needed to request attachments and is compliant with HIPAA Attachment rules for CMS and an alternative to the X12n 277 and 278 response transactions.\n\nIt constrains the following elements to be *mandatory* (min=1):\n- A [contained](http://hl7.org/fhir/R4/references.html) Patient Resource defined by the [CDex Patient Demographics Profile](http://hl7.org/fhir/us/davinci-cdex/StructureDefinition/cdex-patient-demographics) and communicating additional patient demographic data elements. \n- A Task.identifier element representing the payers tracking identifier (referred to as the “re-association tracking control numbers”)\n- A Task.status with a required binding to HRex [Task Status ValueSet](http://hl7.org/fhir/us/davinci-hrex/STU1/ValueSet-hrex-task-status.html) (this element is a mandatory Task element)\n- A Task.intent fixed to \"order\" (this element is a mandatory Task element)\n- A Task.code fixed to \"attachment-request\" to communicate that the Payer is requesting attachments for a claim or prior-authorization and is expecting they will be submitted using the $submit-attachment operation to the endpoint provided in the \"payer-url\" input parameter.\n- A Task.requester.identifier element representing the Payer ID\n- A Task.owner.identifier element representing the Provider ID\n- A Task.for.reference element fixed to \"\\#string\" - a reference the contained Patient Resource\n- A Task.reasonCode to communicate whether the attachments are for a Claim or Prior Authorization\n- A Task.reasonReference.reference referencing the Claim or Prior Authorization ID (business Identifier)\n- A Task.input element to communicate to the provider what attachments are needed using LOINC attachment codes\n  - An extension representing line item numbers in the Claim or Prior Authorization\n- A Task.input element representing the Payer endpoint URL to communicate to the provider to submit the attachments using the `$submit-attachment` operation\n- A Task.input element representing the date of service or starting date of the service for the claim or prior authorization\n\nand the following elements to be *must support* [min=0]:\n- A Task.Restriction.period element representing the due date for submitting the attachments\n- A Task.statusReason.text to communicate the reason for the status (e.g., if it is rejected  or failed)\n- A Task.input element representing a flag to indicate whether the requested data requires a signature\n\nand the following elements to be *optional*:\n- A Task.input element representing a flag to indicate whether the requested data can be sent in multiple submissions
package_name: hl7.fhir.us.davinci-cdex
derivation: constraint
name: CDexTaskAttachmentRequest
type: Task
elements:
  restriction:
    mustSupport: true
    index: 24
    elements:
      period: {short: Attachments due date, mustSupport: true, index: 25}
  reasonCode:
    mustSupport: true
    index: 16
    elements:
      coding:
        mustSupport: true
        index: 17
        slicing:
          rules: open
          discriminator:
          - {path: $this, type: value}
          min: 1
          slices:
            use:
              match: {}
              schema:
                binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/davinci-cdex/ValueSet/cdex-claim-use'}
                mustSupport: true
                array: true
                min: 1
                _required: true
                index: 18
                elements:
                  system: {mustSupport: true, index: 19}
                  code: {short: claim | preauthorization, mustSupport: true, index: 20}
                required: [code]
      text:
        short: claim | preauthorization
        binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/davinci-cdex/ValueSet/cdex-claim-use'}
        mustSupport: true
        index: 21
    required: [coding]
  statusReason:
    mustSupport: true
    index: 6
    elements:
      text: {mustSupport: true, index: 7}
    required: [text]
  contained:
    mustSupport: true
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: type}
      min: 1
      slices:
        patient:
          match: {}
          schema: {short: Contained Patient resource, type: Patient, mustSupport: true, _required: true, index: 1}
          min: 1
          max: 1
  for:
    type: Reference
    short: Contained Patient.
    mustSupport: true
    refers: ['http://hl7.org/fhir/us/davinci-cdex/StructureDefinition/cdex-patient-demographics']
    index: 10
    elements:
      reference:
        short: Contained resource reference
        pattern: {type: String, value: '#patient'}
        mustSupport: true
        index: 11
    required: [reference]
  requester:
    type: Reference
    short: Payer asking for attachments
    mustSupport: true
    refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization']
    index: 12
    elements:
      identifier: {short: Payer ID, mustSupport: true, index: 13}
    required: [identifier]
  status:
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/davinci-hrex/ValueSet/hrex-task-status'}
    mustSupport: true
    index: 5
  code:
    mustSupport: true
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: attachment-request, system: 'http://hl7.org/fhir/us/davinci-cdex/CodeSystem/cdex-temp'}
    index: 9
  identifier:
    mustSupport: true
    index: 2
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: pattern}
      min: 1
      slices:
        tracking-id:
          match:
            type:
              coding:
              - {code: tracking-id, system: 'http://hl7.org/fhir/us/davinci-cdex/CodeSystem/cdex-temp'}
          schema:
            short: Re-association tracking control number
            mustSupport: true
            _required: true
            pattern:
              type: Identifier
              value:
                type:
                  coding:
                  - {code: tracking-id, system: 'http://hl7.org/fhir/us/davinci-cdex/CodeSystem/cdex-temp'}
            index: 3
            elements:
              value: {mustSupport: true, index: 4}
            required: [value]
  intent:
    pattern: {type: Code, value: order}
    mustSupport: true
    index: 8
  input:
    mustSupport: true
    array: true
    min: 3
    index: 26
    slicing:
      rules: open
      discriminator:
      - {path: type, type: pattern}
      min: 3
      slices:
        code:
          match:
            type:
              coding:
              - {code: data-code, system: 'http://hl7.org/fhir/us/davinci-hrex/CodeSystem/hrex-temp'}
          schema:
            short: Attachment Codes
            mustSupport: true
            _required: true
            binding: {strength: extensible, valueSet: 'http://loinc.org/vs/valid-hl7-attachment-requests'}
            index: 27
            elements:
              type:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: data-code, system: 'http://hl7.org/fhir/us/davinci-hrex/CodeSystem/hrex-temp'}
                index: 28
              value:
                short: LOINC attachment code value
                mustSupport: true
                choices: [valueCodeableConcept]
                index: 30
              valueCodeableConcept: {type: CodeableConcept, short: LOINC attachment code value, mustSupport: true, choiceOf: value, index: 31}
        payer-url:
          match:
            type:
              coding:
              - {code: payer-url, system: 'http://hl7.org/fhir/us/davinci-cdex/CodeSystem/cdex-temp'}
          schema:
            short: Payer Url
            mustSupport: true
            _required: true
            index: 32
            elements:
              type:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: payer-url, system: 'http://hl7.org/fhir/us/davinci-cdex/CodeSystem/cdex-temp'}
                index: 33
              value:
                short: Payer url value
                mustSupport: true
                choices: [valueUrl]
                index: 35
              valueUrl: {type: url, short: Payer url value, mustSupport: true, choiceOf: value, index: 36}
        service-date:
          match:
            type:
              coding:
              - {code: service-date, system: 'http://hl7.org/fhir/us/davinci-cdex/CodeSystem/cdex-temp'}
          schema:
            short: Service Date
            mustSupport: true
            _required: true
            index: 37
            elements:
              type:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: service-date, system: 'http://hl7.org/fhir/us/davinci-cdex/CodeSystem/cdex-temp'}
                index: 38
              value:
                short: Service Date value
                mustSupport: true
                choices: [valueDate]
                index: 40
              valueDate: {type: date, short: Service Date value, mustSupport: true, choiceOf: value, index: 41}
        signature:
          match:
            type:
              coding:
              - {code: signature-flag, system: 'http://hl7.org/fhir/us/davinci-cdex/CodeSystem/cdex-temp'}
          schema:
            short: Signature flag
            mustSupport: true
            index: 42
            elements:
              type:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: signature-flag, system: 'http://hl7.org/fhir/us/davinci-cdex/CodeSystem/cdex-temp'}
                index: 43
              value:
                short: Signature flag value
                mustSupport: true
                choices: [valueBoolean]
                index: 45
              valueBoolean: {type: boolean, short: Signature flag value, mustSupport: true, choiceOf: value, index: 46}
        multiple-submits:
          match:
            type:
              coding:
              - {code: multiple-submits-flag, system: 'http://hl7.org/fhir/us/davinci-cdex/CodeSystem/cdex-temp'}
          schema:
            short: Multiple submits flag
            index: 47
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: multiple-submits-flag, system: 'http://hl7.org/fhir/us/davinci-cdex/CodeSystem/cdex-temp'}
                index: 48
              value:
                short: Multiple submits flag value
                choices: [valueBoolean]
                index: 50
              valueBoolean: {type: boolean, short: Multiple submits flag value, choiceOf: value, index: 51}
  owner:
    type: Reference
    short: Provider who submitted claim or preauthorization
    mustSupport: true
    refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-organization', 'http://hl7.org/fhir/us/core/StructureDefinition/us-core-practitioner']
    index: 14
    elements:
      identifier: {short: Provider ID, mustSupport: true, index: 15}
    required: [identifier]
  reasonReference:
    mustSupport: true
    index: 22
    elements:
      identifier: {short: Claim or Prior Authorization ID, mustSupport: true, index: 23}
    required: [identifier]
package_version: 2.0.0-ballot
class: profile
kind: resource
url: http://hl7.org/fhir/us/davinci-cdex/StructureDefinition/cdex-task-attachment-request
base: http://hl7.org/fhir/StructureDefinition/Task
version: 2.0.0-ballot
required: [owner, requester, for, identifier, reasonCode, code, contained, reasonReference]