PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch-elm@1.0.0
    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:
    short: The mechanism to declare the collection material is described under 'Guidance - Laboratory Result'
    index: 0
    elements:
      coding: {type: Coding, index: 1}
      text:
        pattern: {type: String, value: Material declared by Observation.code or non-mandatory}
        index: 2
  subject:
    type: Reference
    refers: ['http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-patient']
    index: 3
  collection:
    mustSupport: true
    index: 4
    elements:
      collected:
        choices: []
        index: 6
        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: 8
              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: 9
        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: 9
              min: 0
              max: 1
package_version: 1.0.0
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-report-specimen
version: 1.0.0
required: [subject, type]