PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.pl.base.r5@0.1.2
    http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/pl-base-composition
description: Dane nagłówkowe dokumentu medycznego w standardzie HL7 FHIR
package_name: hl7.fhir.pl.base.r5
derivation: constraint
name: PLBaseComposition
type: Composition
elements:
  date: {mustSupport: true, index: 19}
  encounter:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/pl-base-actualEncounter']
    index: 18
  attester:
    mustSupport: true
    index: 22
    slicing:
      rules: open
      ordered: false
      description: Wystawca dokumentu
      discriminator:
      - {path: mode, type: value}
      min: 1
      slices:
        legalAuthenticator:
          match:
            mode:
              coding:
              - {code: legal}
          schema:
            mustSupport: true
            _required: true
            index: 23
            elements:
              mode:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: legal}
                index: 24
              time: {mustSupport: true, index: 25}
              party:
                type: Reference
                mustSupport: true
                refers: ['http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/pl-base-practitioner']
                index: 26
            required: [time, party]
        authenticator:
          match:
            mode:
              coding:
              - {code: professional}
          schema:
            mustSupport: true
            array: true
            index: 27
            elements:
              mode:
                mustSupport: true
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: professional}
                index: 28
  type:
    mustSupport: true
    index: 9
    elements:
      coding:
        mustSupport: true
        array: true
        min: 2
        index: 10
        slicing:
          rules: open
          ordered: false
          description: Typ dokumentu medycznego
          discriminator:
          - {path: system, type: value}
          min: 2
          slices:
            loincDocumentType:
              match: {system: 'http://loinc.com'}
              schema:
                mustSupport: true
                _required: true
                index: 11
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.com'}
                    mustSupport: true
                    index: 12
                  code:
                    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/doc-typecodes'}
                    mustSupport: true
                    index: 13
                required: [system, code]
            p1DocumentType:
              match: {system: 'http://hl7.org.pl/fhir/CodeSystem/pl-p1DocumentType-CS'}
              schema:
                mustSupport: true
                _required: true
                index: 14
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://hl7.org.pl/fhir/CodeSystem/pl-p1DocumentType-CS'}
                    mustSupport: true
                    index: 15
                  code:
                    binding: {strength: required, valueSet: 'http://hl7.org.pl/fhir/ig/pl-base/ValueSet/pl-p1DocumentType-VS'}
                    mustSupport: true
                    index: 16
                required: [system, code]
  title: {mustSupport: true, index: 21}
  author:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/pl-base-practitionerRole-documentAuthor']
    index: 20
  extension:
    index: 1
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 1
      slices:
        version:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-version', index: 2}
          min: 1
          max: 1
        informationRecipient:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-informationRecipient', index: 3}
          min: 0
        basedOnOrder:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-basedOnOrder', index: 4}
          min: 0
        payorIdentifier:
          match: {url: null}
          schema: {type: Extension, mustSupport: true, url: 'http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-payorIdentifier', index: 5}
          min: 0
          max: 1
  event:
    mustSupport: true
    index: 35
    elements:
      period: {index: 36}
      detail:
        mustSupport: true
        index: 37
        elements:
          concept:
            mustSupport: true
            index: 38
            elements:
              coding:
                mustSupport: true
                index: 39
                slicing:
                  rules: open
                  ordered: false
                  description: Typ usługi medycznej
                  discriminator:
                  - {path: system, type: value}
                  min: 1
                  slices:
                    icd9PLCode:
                      match: {system: null}
                      schema:
                        binding: {strength: required, valueSet: 'http://hl7.org.pl/fhir/ig/pl-base/ValueSet/pl-icd9plServiceCode-VS'}
                        mustSupport: true
                        _required: true
                        index: 40
                      min: 1
                      max: 1
            required: [coding]
          reference: {index: 41}
        required: [concept]
    required: [detail]
  custodian: {mustSupport: true, index: 29}
  language:
    binding: {strength: required, valueSet: 'http://hl7.org.pl/fhir/ig/pl-base/ValueSet/pl-documentLanguage-VS'}
    index: 0
  identifier:
    mustSupport: true
    index: 6
    elements:
      system: {mustSupport: true, index: 7}
      value: {mustSupport: true, index: 8}
    required: [value, system]
  relatesTo:
    mustSupport: true
    index: 30
    slicing:
      rules: open
      ordered: false
      description: Rodzaj dokumentu powiązanego
      discriminator:
      - {path: type, type: value}
      min: null
      slices:
        documentPreviousVersion:
          match: {type: predecessor}
          schema:
            mustSupport: true
            index: 31
            elements:
              type:
                mustSupport: true
                pattern: {type: Code, value: predecessor}
                index: 32
              resource: {index: 33}
              resourceReference:
                mustSupport: true
                pattern:
                  type: Reference
                  value: {reference: StructureDefinition/pl-base-documentIdentity}
                index: 34
            required: [resourceReference]
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/pl-base-patient']
    index: 17
package_version: 0.1.2
extensions:
  version: {url: 'http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-version', min: 1, max: 1, type: Extension, mustSupport: true, index: 2}
  informationRecipient: {url: 'http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-informationRecipient', min: 0, type: Extension, mustSupport: true, index: 3}
  basedOnOrder: {url: 'http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-basedOnOrder', min: 0, type: Extension, mustSupport: true, index: 4}
  payorIdentifier: {url: 'http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/composition-payorIdentifier', min: 0, max: 1, type: Extension, mustSupport: true, index: 5}
class: profile
kind: resource
url: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/pl-base-composition
base: http://hl7.org/fhir/StructureDefinition/Composition
version: 0.1.2
required: [encounter, attester, extension, identifier, subject, custodian]