PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.pl.base.r5@0.1.2
    http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/pl-base-cdaDocumentMetadata
description: Metadane dokumentu medycznego zgodnego z PIK HL7 CDA
package_name: hl7.fhir.pl.base.r5
derivation: constraint
name: PLBaseCdaDocumentMetadata
type: DocumentReference
elements:
  identifier:
    mustSupport: true
    index: 0
    elements:
      system: {mustSupport: true, index: 1}
      value: {mustSupport: true, index: 2}
    required: [value, system]
  version: {mustSupport: true, index: 3}
  type:
    mustSupport: true
    index: 4
    elements:
      coding:
        mustSupport: true
        array: true
        min: 2
        index: 5
        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: 6
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.com'}
                    mustSupport: true
                    index: 7
                  code:
                    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/doc-typecodes'}
                    mustSupport: true
                    index: 8
                required: [system, code]
            p1DocumentType:
              match: {system: 'http://hl7.org.pl/fhir/CodeSystem/pl-p1DocumentType-CS'}
              schema:
                mustSupport: true
                _required: true
                index: 9
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://hl7.org.pl/fhir/CodeSystem/pl-p1DocumentType-CS'}
                    mustSupport: true
                    index: 10
                  code:
                    binding: {strength: required, valueSet: 'http://hl7.org.pl/fhir/ig/pl-base/ValueSet/pl-p1DocumentType-VS'}
                    mustSupport: true
                    index: 11
                required: [system, code]
package_version: 0.1.2
class: profile
kind: resource
url: http://hl7.org.pl/fhir/ig/pl-base/StructureDefinition/pl-base-cdaDocumentMetadata
base: http://hl7.org/fhir/StructureDefinition/DocumentReference
version: 0.1.2
required: [identifier, type, version]