description: This profile constrains the Composition resource for the purpose of laboratory test reports in Switzerland. package_name: ch.fhir.ig.ch-lab-report derivation: constraint name: ChLabReportComposition type: Composition elements: extension: index: 0 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: null slices: information-recipient: match: {url: null} schema: type: Extension url: http://hl7.eu/fhir/StructureDefinition/information-recipient index: 1 elements: value: choices: [valueReference] index: 3 valueReference: type: Reference choiceOf: value refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization', 'http://fhir.ch/ig/ch-lab-report/StructureDefinition/ch-lab-patient', 'http://fhir.ch/ig/ch-lab-report/StructureDefinition/ch-lab-practitioner', 'http://fhir.ch/ig/ch-lab-report/StructureDefinition/ch-lab-practitionerrole', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'] index: 4 basedOn-order-or-requisition: match: {url: null} schema: type: Extension url: http://hl7.eu/fhir/StructureDefinition/composition-basedOn-order-or-requisition index: 5 elements: value: choices: [] index: 7 slicing: rules: open ordered: false discriminator: - {path: $this, type: type} min: null slices: valueReference: match: {} schema: choices: [valueReference] index: 9 min: 0 max: 1 valueReference: type: Reference choiceOf: value refers: ['http://fhir.ch/ig/ch-lab-report/StructureDefinition/ch-lab-report-servicerequest'] index: 10 slicing: slices: valueReference: match: {} schema: type: Reference choiceOf: value refers: ['http://fhir.ch/ig/ch-lab-report/StructureDefinition/ch-lab-report-servicerequest'] index: 10 min: 0 max: 1 diagnosticReport-reference: match: {url: null} schema: type: Extension url: http://hl7.eu/fhir/laboratory/StructureDefinition/composition-diagnosticReportReference index: 11 elements: value: choices: [valueReference] index: 13 valueReference: type: Reference choiceOf: value refers: ['http://fhir.ch/ig/ch-lab-report/StructureDefinition/ch-lab-diagnosticreport'] index: 14 value[x]: elements: reference: {index: 15} required: [reference] required: [valueReference, value] identifier: {short: Report identifier, index: 16} category: short: Report Category index: 17 slicing: rules: open discriminator: - {path: $this, type: value} min: null slices: studyType: match: {} schema: type: CodeableConcept short: The clinical domain of the laboratory performing the observation (e.g. microbiology, toxicology, chemistry) binding: {strength: required, valueSet: 'http://hl7.eu/fhir/laboratory/ValueSet/lab-studyType-eu-lab'} array: true index: 18 min: 0 specialty: match: {} schema: type: CodeableConcept short: The way of grouping of the test results into clinically meaningful groups (e.g. liver test; minerals; glucose profiles) binding: {strength: required, valueSet: 'http://hl7.eu/fhir/laboratory/ValueSet/lab-specialty-eu-lab'} array: true index: 19 min: 0 subject: type: Reference refers: ['http://fhir.ch/ig/ch-lab-report/StructureDefinition/ch-lab-patient'] index: 20 author: type: Reference refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization', 'http://fhir.ch/ig/ch-lab-report/StructureDefinition/ch-lab-practitioner', 'http://fhir.ch/ig/ch-lab-report/StructureDefinition/ch-lab-practitionerrole'] index: 21 custodian: {index: 22} section: index: 23 elements: title: {index: 24} code: {index: 25} required: [title, code] slicing: rules: open ordered: false discriminator: - {path: $this.section, type: exists} - {path: $this.entry, type: exists} min: 1 slices: lab-no-subsections: match: {} schema: short: 'Variant 1: EU Laboratory Report section with entries and no sub-sections' array: true index: 26 elements: code: binding: {strength: preferred, valueSet: 'http://hl7.eu/fhir/laboratory/ValueSet/lab-studyType-eu-lab'} index: 27 text: {short: 'Text summary of the section, for human interpretation.', index: 28} entry: type: Reference refers: ['http://fhir.ch/ig/ch-lab-report/StructureDefinition/ch-lab-observation-results-laboratory'] index: 29 section: {index: 30} required: [entry] lab-subsections: match: {} schema: short: 'Variant 2: EU Laboratory Report section with one to many subsections Laboratory Report Item' array: true index: 31 elements: code: binding: {strength: preferred, valueSet: 'http://hl7.eu/fhir/laboratory/ValueSet/lab-studyType-eu-lab'} index: 32 text: {index: 33} entry: {index: 34} section: type: BackboneElement index: 35 elements: title: {index: 36} code: binding: {strength: preferred, valueSet: 'http://hl7.eu/fhir/laboratory/ValueSet/lab-studyType-eu-lab'} index: 37 text: {short: 'Text summary of the section, for human interpretation.', index: 38} entry: type: Reference refers: ['http://fhir.ch/ig/ch-lab-report/StructureDefinition/ch-lab-observation-results-laboratory'] index: 39 section: {index: 40} required: [entry, title, code] required: [section] annotations: match: {} schema: short: Annotation comment array: true index: 41 elements: code: pattern: type: CodeableConcept value: coding: - {code: 48767-8, system: 'http://loinc.org'} index: 42 text: {index: 43} entry: {index: 44} section: {index: 45} required: [text] package_version: 1.0.0 extensions: information-recipient: url: http://hl7.eu/fhir/StructureDefinition/information-recipient type: Extension index: 1 elements: value: choices: [valueReference] index: 3 valueReference: type: Reference choiceOf: value refers: ['http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-organization', 'http://fhir.ch/ig/ch-lab-report/StructureDefinition/ch-lab-patient', 'http://fhir.ch/ig/ch-lab-report/StructureDefinition/ch-lab-practitioner', 'http://fhir.ch/ig/ch-lab-report/StructureDefinition/ch-lab-practitionerrole', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'] index: 4 basedOn-order-or-requisition: url: http://hl7.eu/fhir/StructureDefinition/composition-basedOn-order-or-requisition type: Extension index: 5 elements: value: choices: [] index: 7 slicing: rules: open ordered: false discriminator: - {path: $this, type: type} min: null slices: valueReference: match: {} schema: choices: [valueReference] index: 9 min: 0 max: 1 valueReference: type: Reference choiceOf: value refers: ['http://fhir.ch/ig/ch-lab-report/StructureDefinition/ch-lab-report-servicerequest'] index: 10 slicing: slices: valueReference: match: {} schema: type: Reference choiceOf: value refers: ['http://fhir.ch/ig/ch-lab-report/StructureDefinition/ch-lab-report-servicerequest'] index: 10 min: 0 max: 1 diagnosticReport-reference: url: http://hl7.eu/fhir/laboratory/StructureDefinition/composition-diagnosticReportReference type: Extension index: 11 elements: value: choices: [valueReference] index: 13 valueReference: type: Reference choiceOf: value refers: ['http://fhir.ch/ig/ch-lab-report/StructureDefinition/ch-lab-diagnosticreport'] index: 14 value[x]: elements: reference: {index: 15} required: [reference] required: [valueReference, value] class: profile kind: resource url: http://fhir.ch/ig/ch-lab-report/StructureDefinition/ch-lab-report-composition base: http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-composition version: 1.0.0 required: [section]