PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.carin-bb@2.0.0
    http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-ExplanationOfBenefit
description: 'Abstract parent profile that includes constraints that are common to the four specific ExplanationOfBenefit (EOB) profiles defined in this Implementation Guide.\nAll EOB instances should be from one of the four concrete EOB profiles defined in this Implementation Guide:  Inpatient, Outpatient, Pharmacy, and Professional/NonClinician'
package_name: hl7.fhir.us.carin-bb
derivation: constraint
name: C4BBExplanationOfBenefit
abstract: true
type: ExplanationOfBenefit
elements:
  patient:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Patient']
    index: 11
  insurance:
    constraint:
      EOB-insurance-focal: {human: 'EOB.insurance:  at most one with focal = true', source: 'http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-ExplanationOfBenefit', severity: error, expression: insurance.select (focal = true).count() < 2}
    mustSupport: true
    index: 33
    elements:
      focal: {mustSupport: true, index: 34}
      coverage:
        type: Reference
        mustSupport: true
        refers: ['http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Coverage']
        index: 35
  processNote:
    mustSupport: true
    index: 44
    elements:
      text: {index: 45}
  meta:
    mustSupport: true
    index: 0
    elements:
      lastUpdated: {mustSupport: true, index: 1}
      profile: {index: 2}
    required: [lastUpdated, profile]
  supportingInfo:
    mustSupport: true
    index: 30
    elements:
      sequence: {index: 31}
      category:
        binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/us/carin-bb/ValueSet/C4BBSupportingInfoType'}
        index: 32
  use:
    mustSupport: true
    pattern: {type: Code, value: claim}
    index: 10
  payment:
    mustSupport: true
    index: 41
    elements:
      type:
        binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/carin-bb/ValueSet/C4BBPayerClaimPaymentStatusCode'}
        mustSupport: true
        index: 42
      date: {index: 43}
  item:
    mustSupport: true
    index: 36
    elements:
      sequence: {mustSupport: true, index: 37}
      noteNumber: {mustSupport: true, index: 38}
      adjudication:
        elements:
          category: {mustSupport: true, index: 39}
  type:
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/claim-type'}
    mustSupport: true
    index: 9
  created: {index: 15}
  outcome: {mustSupport: true, index: 25}
  related:
    mustSupport: true
    index: 19
    elements:
      relationship:
        binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/carin-bb/ValueSet/C4BBRelatedClaimRelationshipCodes'}
        mustSupport: true
        index: 20
      reference: {mustSupport: true, index: 21}
    required: [relationship, reference]
  total: {mustSupport: true, index: 40}
  insurer:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Organization']
    index: 16
  priority:
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/process-priority'}
    index: 18
  status: {mustSupport: true, index: 8}
  payee:
    constraint:
      EOB-payee-other-type-requires-party: {human: 'Base EOB: if payee type is other, payee party is required', source: 'http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-ExplanationOfBenefit', severity: error, expression: 'type.coding.where(code = ''other'' and system = ''http://terminology.hl7.org/CodeSystem/payeetype'').exists() implies party.exists()'}
    mustSupport: true
    index: 22
    elements:
      type:
        binding: {strength: required, valueSet: 'http://hl7.org/fhir/us/carin-bb/ValueSet/C4BBPayeeType'}
        mustSupport: true
        index: 23
      party:
        type: Reference
        mustSupport: true
        refers: ['http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Organization', 'http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Patient', 'http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Practitioner', 'http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-RelatedPerson']
        index: 24
    required: [type]
  billablePeriod:
    mustSupport: true
    index: 12
    elements:
      start: {mustSupport: true, index: 13}
      end: {index: 14}
    required: [start]
  identifier:
    index: 3
    elements:
      type: {index: 4}
    slicing:
      rules: open
      ordered: false
      description: Slice based on value pattern
      discriminator:
      - {path: type, type: pattern}
      min: 1
      slices:
        uniqueclaimid:
          match:
            type:
              coding:
              - {code: uc, system: 'http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBIdentifierType'}
          schema:
            short: Unique Claim Identifier
            mustSupport: true
            _required: true
            index: 5
            elements:
              type:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: uc, system: 'http://hl7.org/fhir/us/carin-bb/CodeSystem/C4BBIdentifierType'}
                index: 6
              value: {short: Unique Claim Identifier, mustSupport: true, index: 7}
            required: [value, type]
  provider:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Organization', 'http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Practitioner']
    index: 17
  careTeam:
    mustSupport: true
    index: 26
    elements:
      sequence: {index: 27}
      provider:
        type: Reference
        mustSupport: true
        refers: ['http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Organization', 'http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-Practitioner']
        index: 28
      role: {mustSupport: true, index: 29}
package_version: 2.0.0
class: profile
kind: resource
url: http://hl7.org/fhir/us/carin-bb/StructureDefinition/C4BB-ExplanationOfBenefit
base: http://hl7.org/fhir/StructureDefinition/ExplanationOfBenefit
version: 2.0.0
required: [total, billablePeriod, identifier, item, meta]