PackagesCanonicalsLogsProblems
    Packages
    il.fhir.r4.ashmc@0.4.1
    http://fhir.ashmc.co.il/StructureDefinition/ashmc-document-reference
description: Asuta Ashdod Document Reference
package_name: il.fhir.r4.ashmc
derivation: constraint
name: AsutaAshdodDocumentReferenceProfile
type: DocumentReference
elements:
  extension:
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        source:
          match: {url: null}
          schema: {type: Extension, url: 'http://fhir.ashmc.co.il/StructureDefinition/ext-document-source', index: 1}
          min: 0
  masterIdentifier:
    index: 2
    elements:
      system:
        pattern: {type: Uri, value: 'http://fhir.ashmc.co.il/identifier/document-router-versioned-message-id'}
        index: 3
      value: {index: 4}
    required: [value, system]
  identifier:
    index: 5
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: null
      slices:
        router-message-id:
          match: {system: 'http://fhir.ashmc.co.il/identifier/document-router-message-id'}
          schema:
            _required: true
            index: 6
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.ashmc.co.il/identifier/document-router-message-id'}
                index: 7
              value: {index: 8}
            required: [value, system]
  docStatus:
    pattern: {type: Code, value: final}
    index: 9
  type:
    elements:
      coding:
        array: true
        min: 2
        index: 10
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: 2
          slices:
            msg-sub-type:
              match: {system: 'http://fhir.ashmc.co.il/identifier/document-message-sub-type'}
              schema:
                _required: true
                index: 11
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.ashmc.co.il/identifier/document-message-sub-type'}
                    index: 12
                  code: {index: 13}
                required: [system, code]
            loinc:
              match: {system: 'http://loinc.org'}
              schema:
                _required: true
                index: 14
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    index: 15
                  code: {index: 16}
                required: [system, code]
package_version: 0.4.1
extensions:
  source: {url: 'http://fhir.ashmc.co.il/StructureDefinition/ext-document-source', min: 0, type: Extension, index: 1}
class: profile
kind: resource
url: http://fhir.ashmc.co.il/StructureDefinition/ashmc-document-reference
base: http://hdp.fhir.health.gov.il/StructureDefinition/il-hdp-document-reference
version: 0.5.0
required: [docStatus, masterIdentifier]