PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.davinci-pct@2.0.0
    http://hl7.org/fhir/us/davinci-pct/StructureDefinition/davinci-pct-gfe-composition
description: PCT GFE Composition that assembles the contents of a GFE (represented by one or more individual GFE Bundles) 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: PCTGFEComposition
type: Composition
elements:
  category:
    index: 8
    slicing:
      rules: open
      description: Slice defining composition as an estimate
      discriminator:
      - {path: coding, type: value}
      min: 1
      slices:
        estimate:
          match: {coding: null}
          schema:
            mustSupport: true
            _required: true
            index: 9
            elements:
              coding:
                index: 10
                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: 11
                      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-gfe-composition', severity: error, expression: $this is dateTime implies $this.toString().length() >= 19}
    index: 13
  section:
    short: Sections Individual GFE Bundles
    array: true
    min: 2
    index: 26
    slicing:
      rules: open
      description: Slice different resources included in the bundle
      discriminator:
      - {path: code, type: value}
      min: 2
      slices:
        coverage:
          match:
            code:
              coding:
              - {code: coverage-section, system: 'http://hl7.org/fhir/us/davinci-pct/CodeSystem/PCTDocumentSection'}
          schema:
            short: SHALL have a reference to a PCTCoverage resource, contained within the document bundle
            mustSupport: true
            _required: true
            index: 27
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: coverage-section, system: 'http://hl7.org/fhir/us/davinci-pct/CodeSystem/PCTDocumentSection'}
                index: 28
              entry:
                type: Reference
                mustSupport: true
                refers: ['http://hl7.org/fhir/us/davinci-pct/StructureDefinition/davinci-pct-coverage']
                index: 29
            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 SHALL be contained in the document bundle, 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: 30
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: gfe-section, system: 'http://hl7.org/fhir/us/davinci-pct/CodeSystem/PCTDocumentSection'}
                index: 31
              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: 32
              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: 33
            required: [entry, author, code]
  type:
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: 111480-0, system: 'http://loinc.org'}
    index: 7
  title: {mustSupport: true, index: 15}
  author:
    type: Reference
    short: All involved authoring parties, including 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']
    index: 14
  extension:
    array: true
    min: 2
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 2
      slices:
        requestInitiationTime:
          match: {url: null}
          schema: {short: Estimate Request instant (instance service was scheduled or estimate requested), type: Extension, mustSupport: true, url: 'http://hl7.org/fhir/us/davinci-pct/StructureDefinition/requestInitiationTime', index: 1}
          min: 1
          max: 1
        gfeServiceLinkingInfo:
          match: {url: null}
          schema: {type: Extension, short: GFE Service Linking Information including planned period of service and a GFE linking identifier. Scheduled services SHALL have a plannedPeriodOfService valueDate or ValuePeriod, mustSupport: true, url: 'http://hl7.org/fhir/us/davinci-pct/StructureDefinition/gfeServiceLinkingInfo', index: 2}
          min: 0
          max: 1
        requestOriginationType:
          match: {url: null}
          schema: {type: Extension, short: Indicator as to whether the request for estimate originated from a scheduled or unscheduled service., mustSupport: true, url: 'http://hl7.org/fhir/us/davinci-pct/StructureDefinition/requestOriginationType', index: 3}
          min: 1
          max: 1
  identifier:
    index: 4
    elements:
      system: {index: 5}
      value: {index: 6}
    required: [value, system]
  relatesTo:
    short: Relationship to other GFE packets. Required if this estimate is replacing another.
    index: 16
    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: 17
            elements:
              code:
                pattern: {type: Code, value: replaces}
                index: 18
              target:
                choices: []
                index: 20
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: $this, type: type}
                  min: null
                  slices:
                    targetIdentifier:
                      match: {}
                      schema:
                        mustSupport: true
                        choices: [targetIdentifier]
                        _required: true
                        index: 22
                      min: 1
                      max: 1
              targetIdentifier:
                type: Identifier
                mustSupport: true
                choiceOf: target
                index: 23
                slicing:
                  slices:
                    targetIdentifier:
                      match: {}
                      schema: {type: Identifier, mustSupport: true, choiceOf: target, _required: true, index: 23}
                      min: 1
                      max: 1
              target[x]:
                elements:
                  system: {index: 24}
                  value: {index: 25}
                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: 12
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 service was scheduled or estimate requested), type: Extension, mustSupport: true, index: 1}
  gfeServiceLinkingInfo: {url: 'http://hl7.org/fhir/us/davinci-pct/StructureDefinition/gfeServiceLinkingInfo', min: 0, max: 1, type: Extension, short: GFE Service Linking Information including planned period of service and a GFE linking identifier. Scheduled services SHALL have a plannedPeriodOfService valueDate or ValuePeriod, mustSupport: true, index: 2}
  requestOriginationType: {url: 'http://hl7.org/fhir/us/davinci-pct/StructureDefinition/requestOriginationType', min: 1, max: 1, type: Extension, short: Indicator as to whether the request for estimate originated from a scheduled or unscheduled service., mustSupport: true, index: 3}
class: profile
kind: resource
url: http://hl7.org/fhir/us/davinci-pct/StructureDefinition/davinci-pct-gfe-composition
base: http://hl7.org/fhir/StructureDefinition/Composition
version: 2.0.0
required: [identifier, subject, category]