PackagesCanonicalsLogsProblems
    Packages
    ma.ambulanter.fall@1.0.0
    http://ma-ambulant.de/StructureDefinition/MaEncounterBesuch
description: WIP
package_name: ma.ambulanter.fall
derivation: constraint
name: MaEncounterBesuch
type: Encounter
elements:
  diagnosis:
    mustSupport: true
    index: 18
    elements:
      condition: {mustSupport: true, index: 19}
      use:
        mustSupport: true
        index: 20
        elements:
          coding:
            mustSupport: true
            index: 21
            slicing:
              rules: open
              discriminator:
              - {path: $this, type: pattern}
              min: 1
              slices:
                Diagnosetyp:
                  match: {}
                  schema:
                    binding: {strength: required, valueSet: 'http://fhir.de/ValueSet/DiagnoseTyp'}
                    mustSupport: true
                    _required: true
                    index: 22
                  min: 1
                  max: 1
        required: [coding]
  serviceProvider:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Organization', 'http://ma-ambulant.de/StructureDefinition/MaOrganizationAmbulanz']
    index: 27
    elements:
      identifier: {mustSupport: true, index: 28}
      display: {mustSupport: true, index: 29}
    required: [identifier, display]
  type:
    mustSupport: true
    index: 11
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: pattern}
      min: 1
      slices:
        Kontaktebene:
          match: {}
          schema:
            binding: {strength: required, valueSet: 'http://fhir.de/ValueSet/kontaktebene-de'}
            mustSupport: true
            _required: true
            index: 12
          min: 1
          max: 1
  participant: {mustSupport: true, index: 15}
  account:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/StructureDefinition/Account', 'http://ma-ambulant.de/StructureDefinition/MaAccountSchein']
    index: 23
    elements:
      identifier:
        mustSupport: true
        index: 24
        elements:
          system: {mustSupport: true, index: 25}
          value: {mustSupport: true, index: 26}
        required: [value, system]
    required: [identifier]
  status: {mustSupport: true, index: 9}
  class: {mustSupport: true, index: 10}
  identifier:
    mustSupport: true
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: pattern}
      min: 1
      slices:
        Aufnahmenummer:
          match:
            type:
              coding:
              - {code: VN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
          schema:
            mustSupport: true
            pattern:
              type: Identifier
              value:
                type:
                  coding:
                  - {code: VN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
            index: 1
            elements:
              type:
                mustSupport: true
                index: 2
                elements:
                  coding:
                    mustSupport: true
                    index: 3
                    slicing:
                      rules: open
                      discriminator:
                      - {path: $this, type: pattern}
                      min: 1
                      slices:
                        vn-type:
                          match: {code: VN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                          schema:
                            mustSupport: true
                            pattern:
                              type: Coding
                              value: {code: VN, system: 'http://terminology.hl7.org/CodeSystem/v2-0203'}
                            _required: true
                            index: 4
                            elements:
                              system: {mustSupport: true, index: 5}
                              code: {mustSupport: true, index: 6}
                            required: [system, code]
                required: [coding]
              system: {mustSupport: true, index: 7}
              value: {mustSupport: true, index: 8}
            required: [type]
  period:
    mustSupport: true
    index: 16
    elements:
      start: {mustSupport: true, index: 17}
    required: [start]
  basedOn: {mustSupport: true, index: 14}
  subject: {mustSupport: true, index: 13}
package_version: 1.0.0
class: profile
kind: resource
url: http://ma-ambulant.de/StructureDefinition/MaEncounterBesuch
base: https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_Encounter
version: null
required: [serviceProvider, identifier, subject, account, type]