PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch-elm@1.0.0-trialuse
    http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-specimen
description: This CH ELM base profile constrains the Specimen resource for the purpose of laboratory test reports.
package_name: ch.fhir.ig.ch-elm
derivation: constraint
name: ChElmSpecimen
type: Specimen
elements:
  type:
    binding: {strength: extensible, valueSet: 'http://fhir.ch/ig/ch-elm/ValueSet/ch-elm-lab-specimen-types'}
    index: 0
    elements:
      coding: {type: Coding, short: If the collection material is not declared by LOINC system axis (Observation.code), index: 1}
      text:
        short: If the collection material is declared by LOINC system axis (Observation.code)
        pattern: {type: String, value: Material declared by LOINC system axis}
        index: 2
  subject:
    type: Reference
    refers: ['http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-patient']
    index: 3
  collection:
    elements:
      collected:
        choices: []
        index: 5
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: $this, type: type}
          min: null
          slices:
            collectedDateTime:
              match: {}
              schema:
                constraint:
                  ch-elm-dateTime: {human: At least the format YYYY-MM-DD is required., source: 'http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-specimen', severity: error, expression: $this.toString().length() >= 10}
                mustSupport: true
                choices: [collectedDateTime]
                index: 7
              min: 0
              max: 1
      collectedDateTime:
        constraint:
          ch-elm-dateTime: {human: At least the format YYYY-MM-DD is required., source: 'http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-specimen', severity: error, expression: $this.toString().length() >= 10}
        type: dateTime
        mustSupport: true
        choiceOf: collected
        index: 8
        slicing:
          slices:
            collectedDateTime:
              match: {}
              schema:
                constraint:
                  ch-elm-dateTime: {human: At least the format YYYY-MM-DD is required., source: 'http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-specimen', severity: error, expression: $this.toString().length() >= 10}
                type: dateTime
                mustSupport: true
                choiceOf: collected
                index: 8
              min: 0
              max: 1
package_version: 1.0.0-trialuse
class: profile
kind: resource
url: http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-specimen
base: http://fhir.ch/ig/ch-lab-report/StructureDefinition/ch-lab-specimen
version: 1.0.0-trialuse
required: [subject, type]