PackagesCanonicalsLogsProblems
    Packages
    io.health-samurai.core.r3@0.2605.0
    http://health-samurai.io/fhir/core/StructureDefinition/client-hl7B2b
description: UDAP B2B authorization context for a Client. Used to populate the hl7-b2b extension in JWT access tokens per the UDAP Security IG.
package_name: io.health-samurai.core.r3
derivation: constraint
name: hl7B2b
type: Extension
elements:
  extension:
    index: 0
    slicing:
      rules: closed
      discriminator:
      - {path: url, type: value}
      min: 1
      slices:
        organization:
          match: {url: organization}
          schema:
            short: Organization this client represents in B2B flows.
            _required: true
            index: 1
            elements:
              url:
                pattern: {type: Uri, value: organization}
                index: 2
              value:
                choices: [valueReference]
                index: 4
              valueReference:
                type: Reference
                choiceOf: value
                refers: ['http://hl7.org/fhir/StructureDefinition/Organization']
                index: 5
        organizationIdentifierSystem:
          match: {url: organizationIdentifierSystem}
          schema:
            short: Identifier system to use for resolving organization_id in the B2B token.
            _required: true
            index: 6
            elements:
              url:
                pattern: {type: Uri, value: organizationIdentifierSystem}
                index: 7
              value:
                choices: [valueUri]
                index: 9
              valueUri: {type: uri, choiceOf: value, index: 10}
        purposeOfUse:
          match: {url: purposeOfUse}
          schema:
            short: Purpose of use for B2B token (e.g. TREAT, HPAYMT).
            array: true
            index: 11
            elements:
              url:
                pattern: {type: Uri, value: purposeOfUse}
                index: 12
              value:
                choices: [valueCoding]
                index: 14
              valueCoding: {type: Coding, choiceOf: value, index: 15}
  url:
    pattern: {type: Uri, value: 'http://health-samurai.io/fhir/core/StructureDefinition/client-hl7B2b'}
    index: 16
  value:
    choices: []
    index: 18
package_version: 0.2605.0
extensions:
  organization:
    url: organization
    short: Organization this client represents in B2B flows.
    _required: true
    index: 1
    elements:
      url:
        pattern: {type: Uri, value: organization}
        index: 2
      value:
        choices: [valueReference]
        index: 4
      valueReference:
        type: Reference
        choiceOf: value
        refers: ['http://hl7.org/fhir/StructureDefinition/Organization']
        index: 5
  organizationIdentifierSystem:
    url: organizationIdentifierSystem
    short: Identifier system to use for resolving organization_id in the B2B token.
    _required: true
    index: 6
    elements:
      url:
        pattern: {type: Uri, value: organizationIdentifierSystem}
        index: 7
      value:
        choices: [valueUri]
        index: 9
      valueUri: {type: uri, choiceOf: value, index: 10}
  purposeOfUse:
    url: purposeOfUse
    short: Purpose of use for B2B token (e.g. TREAT, HPAYMT).
    array: true
    index: 11
    elements:
      url:
        pattern: {type: Uri, value: purposeOfUse}
        index: 12
      value:
        choices: [valueCoding]
        index: 14
      valueCoding: {type: Coding, choiceOf: value, index: 15}
class: extension
kind: complex-type
url: http://health-samurai.io/fhir/core/StructureDefinition/client-hl7B2b
base: http://hl7.org/fhir/StructureDefinition/Extension
version: 0.2605.0
required: [extension]