PackagesCanonicalsLogsProblems
    Packages
    ch.fhir.ig.ch-elm@1.0.0
    http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-document
description: This CH ELM base profile constrains the Bundle resource for the purpose of laboratory test reports.
package_name: ch.fhir.ig.ch-elm
derivation: constraint
name: ChElmDocument
type: Bundle
elements:
  identifier:
    short: Persistent, unique identifier for the diagnostic report (UUID)
    index: 0
    elements:
      system:
        pattern: {type: Uri, value: 'urn:ietf:rfc:3986'}
        index: 1
      value:
        constraint:
          ch-elm-doc-identifier: {human: The identifier must be an UUID., source: 'http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-document', severity: error, expression: 'startsWith(''urn:uuid:'')'}
        index: 2
  entry:
    array: true
    min: 9
    index: 3
    slicing:
      slices:
        ServiceRequest:
          match: {}
          schema:
            _required: true
            index: 19
            elements:
              resource: {type: ServiceRequest, index: 20}
            required: [resource]
        Observation:
          match: {}
          schema:
            _required: true
            index: 15
            elements:
              resource: {type: Observation, index: 16}
            required: [resource]
        Composition:
          match: {}
          schema:
            index: 4
            elements:
              resource: {type: Composition, index: 5}
        PractitionerRole:
          match: {}
          schema:
            _required: true
            index: 10
            elements:
              resource: {type: PractitionerRole, index: 11}
        Patient:
          match: {}
          schema:
            _required: true
            index: 6
            elements:
              resource: {type: Patient, index: 7}
        Specimen:
          match: {}
          schema:
            _required: true
            index: 17
            elements:
              resource: {type: Specimen, index: 18}
            required: [resource]
        DiagnosticReport:
          match: {}
          schema:
            index: 13
            elements:
              resource: {type: DiagnosticReport, index: 14}
            required: [resource]
        Practitioner:
          match: {}
          schema:
            _required: true
            index: 8
            elements:
              resource: {type: Practitioner, index: 9}
        Organization:
          match: {}
          schema: {array: true, min: 1, max: 3, _required: true, index: 12}
          min: 1
          max: 3
package_version: 1.0.0
class: profile
kind: resource
url: http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-document
base: http://fhir.ch/ig/ch-lab-report/StructureDefinition/ch-lab-report-document
version: 1.0.0