description: This CH ELM base profile constrains the Observation resource for the purpose of laboratory test reports. package_name: ch.fhir.ig.ch-elm derivation: constraint name: ChElmObservationResultsLaboratory type: Observation elements: interpretation: type: CodeableConcept binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-elm/ValueSet/ch-elm-observation-interpretation-codes'} index: 14 specimen: type: Reference refers: ['http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-specimen'] index: 15 value: choices: [] index: 10 slicing: rules: open ordered: false discriminator: - {path: $this, type: type} min: 1 slices: valueCodeableConcept: match: {} schema: choices: [valueCodeableConcept] _required: true index: 12 min: 1 max: 1 effectiveDateTime: type: dateTime constraint: ch-elm-dateTime: {human: At least the format YYYY-MM-DD is required., source: 'http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-observation-results-laboratory', severity: error, expression: $this.toString().length() >= 10} choiceOf: effective index: 7 slicing: slices: effectiveDateTime: match: {} schema: type: dateTime constraint: ch-elm-dateTime: {human: At least the format YYYY-MM-DD is required., source: 'http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-observation-results-laboratory', severity: error, expression: $this.toString().length() >= 10} choiceOf: effective _required: true index: 7 min: 1 max: 1 status: pattern: {type: Code, value: final} index: 0 effective: choices: [] index: 4 slicing: rules: open ordered: false discriminator: - {path: $this, type: type} min: 1 slices: effectiveDateTime: 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-observation-results-laboratory', severity: error, expression: $this.toString().length() >= 10} choices: [effectiveDateTime] _required: true index: 6 min: 1 max: 1 code: type: CodeableConcept binding: {strength: required, valueSet: 'http://fhir.ch/ig/ch-elm/ValueSet/ch-elm-results-laboratory-observation'} index: 1 valueCodeableConcept: type: CodeableConcept choiceOf: value index: 13 slicing: slices: valueCodeableConcept: match: {} schema: {type: CodeableConcept, choiceOf: value, _required: true, index: 13} min: 1 max: 1 subject: type: Reference refers: ['http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-patient'] index: 2 performer: type: Reference refers: ['http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-organization-lab'] index: 8 package_version: 1.0.0-trialuse class: profile kind: resource url: http://fhir.ch/ig/ch-elm/StructureDefinition/ch-elm-observation-results-laboratory base: http://fhir.ch/ig/ch-lab-report/StructureDefinition/ch-lab-observation-results-laboratory version: 1.0.0-trialuse required: [effectiveDateTime, interpretation, value, subject, specimen, valueCodeableConcept, effective, performer]