PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.davinci-pct@2.0.0
    http://hl7.org/fhir/us/davinci-pct/StructureDefinition/davinci-pct-aeob-composition
description: PCT AEOB Composition that assembles the contents of an AEOB (represented by one or more individual AEOB resources) into a single logical package. A Composition for the document type Bundle that enables versioning, signing and being referenced by a DocumentReference for searching and subscription notifications.
package_name: hl7.fhir.us.davinci-pct
derivation: constraint
name: PCTAdvancedEOBComposition
type: Composition
elements:
  category:
    index: 6
    slicing:
      rules: open
      description: Slice defining composition as an estimate - category
      discriminator:
      - {path: coding, type: value}
      min: 1
      slices:
        estimate:
          match: {coding: null}
          schema:
            mustSupport: true
            _required: true
            index: 7
            elements:
              coding:
                index: 8
                slicing:
                  rules: open
                  description: Slice defining composition as an estimate - category coding
                  discriminator:
                  - {path: $this, type: value}
                  min: 1
                  slices:
                    estimate-coding:
                      match: {code: estimate, system: 'http://hl7.org/fhir/us/davinci-pct/CodeSystem/PCTDocumentTypeTemporaryTrialUse'}
                      schema:
                        mustSupport: true
                        pattern:
                          type: Coding
                          value: {code: estimate, system: 'http://hl7.org/fhir/us/davinci-pct/CodeSystem/PCTDocumentTypeTemporaryTrialUse'}
                        _required: true
                        index: 9
                      min: 1
                      max: 1
            required: [coding]
  date:
    constraint:
      pct-datetime-to-seconds: {human: Datetime must be at least to seconds., source: 'http://hl7.org/fhir/us/davinci-pct/StructureDefinition/davinci-pct-aeob-composition', severity: error, expression: $this is dateTime implies $this.toString().length() >= 19}
    index: 11
  section:
    short: Sections for Advanced Explanation of Benefit (AEOB) Summary, Individual AEOBs, and associates Good Faith Estimates (GFEs)
    array: true
    min: 3
    index: 24
    slicing:
      rules: open
      description: Slice different resources included in the bundle
      discriminator:
      - {path: code, type: value}
      min: 3
      slices:
        aeob-summary:
          match:
            code:
              coding:
              - {code: aeob-summary-section, system: 'http://hl7.org/fhir/us/davinci-pct/CodeSystem/PCTDocumentSection'}
          schema:
            short: SHALL have a reference to one PCTAdvancedEOBSummary, contained within the document bundle
            mustSupport: true
            _required: true
            index: 25
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: aeob-summary-section, system: 'http://hl7.org/fhir/us/davinci-pct/CodeSystem/PCTDocumentSection'}
                index: 26
              entry:
                type: Reference
                mustSupport: true
                refers: ['http://hl7.org/fhir/us/davinci-pct/StructureDefinition/davinci-pct-aeob-summary']
                index: 27
            required: [entry, code]
        aeob:
          match:
            code:
              coding:
              - {code: aeob-section, system: 'http://hl7.org/fhir/us/davinci-pct/CodeSystem/PCTDocumentSection'}
          schema:
            short: SHALL have a reference to one or more PCTAdvancedEOB resource(s), all contained within the document bundle
            mustSupport: true
            _required: true
            index: 28
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: aeob-section, system: 'http://hl7.org/fhir/us/davinci-pct/CodeSystem/PCTDocumentSection'}
                index: 29
              entry:
                type: Reference
                mustSupport: true
                refers: ['http://hl7.org/fhir/us/davinci-pct/StructureDefinition/davinci-pct-aeob']
                index: 30
            required: [entry, code]
        gfeBundle:
          match:
            code:
              coding:
              - {code: gfe-section, system: 'http://hl7.org/fhir/us/davinci-pct/CodeSystem/PCTDocumentSection'}
          schema:
            short: SHALL reference one PCTGFEBundle or PCTGFEMissingBundle resource, which may be contained in the document bundle or may reference an external resource, and the associated author (GFE Contributor) or proposed author (in the case of a missing GFE Bundle) contained in the document bundle.
            mustSupport: true
            array: true
            min: 1
            _required: true
            index: 31
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: gfe-section, system: 'http://hl7.org/fhir/us/davinci-pct/CodeSystem/PCTDocumentSection'}
                index: 32
              author:
                type: Reference
                short: Associated GFE author (GFE Contributor) or proposed author (in the case of a missing GFE Bundle) contained in the document bundle
                mustSupport: true
                refers: ['http://hl7.org/fhir/us/davinci-pct/StructureDefinition/davinci-pct-organization', 'http://hl7.org/fhir/us/davinci-pct/StructureDefinition/davinci-pct-practitioner']
                index: 33
              entry:
                type: Reference
                mustSupport: true
                refers: ['http://hl7.org/fhir/us/davinci-pct/StructureDefinition/davinci-pct-gfe-bundle', 'http://hl7.org/fhir/us/davinci-pct/StructureDefinition/davinci-pct-gfe-missing-bundle']
                index: 34
            required: [entry, author, code]
  type:
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: 111479-2, system: 'http://loinc.org'}
    index: 5
  title: {mustSupport: true, index: 13}
  author:
    type: Reference
    short: All involved authoring parties, including payer all Good Faith Estimate (GFE) providers
    refers: ['http://hl7.org/fhir/us/davinci-pct/StructureDefinition/davinci-pct-organization', 'http://hl7.org/fhir/us/davinci-pct/StructureDefinition/davinci-pct-practitioner']
    array: true
    min: 2
    index: 12
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 1
      slices:
        requestInitiationTime:
          match: {url: null}
          schema: {short: Estimate Request instant (instance GFE Packet submitted to payer), type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/us/davinci-pct/StructureDefinition/requestInitiationTime', index: 1}
          min: 1
          max: 1
  identifier:
    index: 2
    elements:
      system: {index: 3}
      value: {index: 4}
    required: [value, system]
  relatesTo:
    short: Relationship to other AEOB packets. Required if this estimate is replacing another.
    index: 14
    slicing:
      rules: open
      description: Slice different relationships
      discriminator:
      - {path: code, type: value}
      min: null
      slices:
        replaces:
          match: {code: replaces}
          schema:
            short: The identifier of the document (Composition.identifier) this estimate replaces
            mustSupport: true
            index: 15
            elements:
              code:
                pattern: {type: Code, value: replaces}
                index: 16
              target:
                choices: []
                index: 18
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: type}
                  min: null
                  slices:
                    targetIdentifier:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: [targetIdentifier]
                        _required: true
                        index: 20
                      min: 1
                      max: 1
              targetIdentifier:
                type: Identifier
                mustSupport: true
                choiceOf: target
                index: 21
                slicing:
                  slices:
                    targetIdentifier:
                      match: {}
                      schema: {type: Identifier, mustSupport: true, choiceOf: target, _required: true, index: 21}
                      min: 1
                      max: 1
              target[x]:
                elements:
                  system: {index: 22}
                  value: {index: 23}
                required: [value, system]
            required: [targetIdentifier]
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient|7.0.0']
    index: 10
package_version: 2.0.0
extensions:
  requestInitiationTime: {url: 'http://hl7.org/fhir/us/davinci-pct/StructureDefinition/requestInitiationTime', min: 1, max: 1, short: Estimate Request instant (instance GFE Packet submitted to payer), type: Extension, mustSupport: true, index: 1}
class: profile
kind: resource
url: http://hl7.org/fhir/us/davinci-pct/StructureDefinition/davinci-pct-aeob-composition
base: http://hl7.org/fhir/StructureDefinition/Composition
version: 2.0.0
required: [extension, identifier, subject, category]