PackagesCanonicalsLogsProblems
    Packages
    il.tasmc.fhir.r4@0.1.0
    http://fhir.tasmc.org.il/StructureDefinition/tasmc-specimen-core-lab
description: tasmc Specimen Core Lab profile, based on ILCoreSpecimen
package_name: il.tasmc.fhir.r4
derivation: constraint
name: TasmcSpecimenCoreLab
type: Specimen
elements:
  id: {index: 0}
  identifier:
    elements:
      system:
        pattern: {type: Uri, value: 'http://fhir.tasmc.org.il/identifier/collecting-lab-specimen-id'}
        index: 1
  accessionIdentifier:
    elements:
      system:
        pattern: {type: Uri, value: 'http://fhir.tasmc.org.il/identifier/performing-lab-specimen-id'}
        index: 2
  type:
    elements:
      coding:
        index: 3
        slicing:
          rules: open
          description: Type MUST contain at least one code
          discriminator:
          - {path: system, type: value}
          min: 1
          slices:
            tasmc:
              match: {system: 'http://fhir.tasmc.org.il/CodeSystem/tasmc-specimen-type'}
              schema:
                binding: {strength: required, valueSet: 'http://fhir.tasmc.org.il/ValueSet/tasmc-specimen-type'}
                index: 4
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.tasmc.org.il/CodeSystem/tasmc-specimen-type'}
                    index: 5
                  code: {index: 6}
                  display: {index: 7}
                required: [display, system, code]
            ilcore:
              match: {system: 'http://snomed.info/sct'}
              schema:
                binding: {strength: extensible, valueSet: 'http://fhir.health.org.il/ValueSet/il-core-specimen-type'}
                _required: true
                index: 8
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 9
                  code: {index: 10}
                  display: {index: 11}
                required: [display, system, code]
    required: [coding]
  request:
    elements:
      identifier:
        elements:
          system:
            pattern: {type: Uri, value: 'http://fhir.tasmc.org.il/identifier/lab-code-request'}
            index: 12
package_version: 0.1.0
class: profile
kind: resource
url: http://fhir.tasmc.org.il/StructureDefinition/tasmc-specimen-core-lab
base: http://fhir.health.gov.il/StructureDefinition/il-core-specimen
version: null
required: [id]