description: This CH ELM base profile constrains the Composition resource for the purpose of laboratory test reports. package_name: ch.fhir.ig.ch derivation: constraint name: ChElmComposition type: Composition 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-composition', severity: error, expression: 'startsWith(''urn:uuid:'')'} index: 2 required: [value, system] status: pattern: {type: Code, value: final} index: 3 subject: type: Reference refers: ['http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-patient'] index: 4 author: type: Reference refers: ['http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-organization-author'] index: 5 section: index: 6 slicing: rules: closed ordered: false discriminator: - {path: $this.section, type: exists} - {path: $this.entry, type: exists} - {path: code, type: value} min: null max: 1 slices: lab-no-subsections: match: code: coding: - {code: 18725-2, system: 'http://loinc.org'} schema: index: 7 elements: title: {index: 8} code: pattern: type: CodeableConcept value: coding: - {code: 18725-2, system: 'http://loinc.org'} index: 9 entry: type: Reference refers: ['http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-observation-results-laboratory-microbiology'] index: 10 required: [title, code] lab-subsections: match: {code: null} schema: {index: 11} max: 0 annotations: match: {code: null} schema: {index: 12} max: 1 lab-mst: match: code: coding: - {code: 18769-0, system: 'http://loinc.org'} schema: index: 13 elements: code: pattern: type: CodeableConcept value: coding: - {code: 18769-0, system: 'http://loinc.org'} index: 14 entry: type: Reference refers: ['http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-observation-results-laboratory-susceptibility'] index: 15 section: {index: 16} required: [entry] lab-gt: match: code: coding: - {code: '726528006', system: 'http://snomed.info/sct'} schema: index: 17 elements: code: pattern: type: CodeableConcept value: coding: - {code: '726528006', system: 'http://snomed.info/sct'} index: 18 entry: type: Reference refers: ['http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-observation-results-laboratory-genotyping'] index: 19 section: {index: 20} required: [entry] package_version: elm-1.9.0 class: profile kind: resource url: http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-composition base: http://fhir.ch/ig/ch-lab-report/StructureDefinition/ch-lab-report-composition version: 1.9.0 required: [identifier, subject]