description: Defines constraints and extensions on the Observation resource for the minimal set of data to query and retrieve laboratory test results package_name: hl7.fhir.us.core derivation: constraint name: USCoreLaboratoryResultObservationProfile type: Observation elements: category: min: 1 isModifier: false type: CodeableConcept mustSupport: true array: true index: 1 slicing: rules: open discriminator: - {path: $this, type: pattern} min: 1 slices: laboratory: match: coding: - {code: laboratory, system: 'http://terminology.hl7.org/CodeSystem/observation-category'} schema: isModifier: false type: CodeableConcept mustSupport: true _required: true pattern: type: CodeableConcept value: coding: - {code: laboratory, system: 'http://terminology.hl7.org/CodeSystem/observation-category'} index: 2 min: 1 max: 1 value: constraint: us-core-4: human: SHOULD use Snomed CT for coded Results severity: warning extension: - {url: 'http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice', valueBoolean: true} expression: valueCodeableConcept.coding.system.empty() or valueCodeableConcept.coding.system = 'http://snomed.info/sct' us-core-3: {human: SHALL use UCUM for coded quantity units., severity: error, expression: 'valueQuantity.system.empty() or valueQuantity.system = ''http://unitsofmeasure.org'''} isModifier: false short: Result Value mustSupport: true choices: [] index: 10 effectiveDateTime: constraint: us-core-1: {human: Datetime must be at least to day., severity: error, expression: ($this as dateTime).toString().length() >= 8} isModifier: false type: dateTime mustSupport: true choiceOf: effective index: 7 status: isModifier: false type: code mustSupport: true binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/observation-status'} index: 0 effective: constraint: us-core-1: {human: Datetime must be at least to day., severity: error, expression: ($this as dateTime).toString().length() >= 8} isModifier: false mustSupport: true choices: [effectiveDateTime, effectivePeriod] index: 6 code: isModifier: false short: Laboratory Test Name type: CodeableConcept mustSupport: true binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/ValueSet/observation-codes'} index: 3 subject: isModifier: false refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient'] type: Reference mustSupport: true index: 4 dataAbsentReason: isModifier: false type: CodeableConcept mustSupport: true binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/ValueSet/data-absent-reason'} index: 11 effectivePeriod: constraint: us-core-1: {human: Datetime must be at least to day., severity: error, expression: ($this as dateTime).toString().length() >= 8} isModifier: false type: Period mustSupport: true choiceOf: effective index: 8 package_version: 3.0.0 class: profile kind: resource url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-lab base: http://hl7.org/fhir/StructureDefinition/Observation version: 3.0.0 required: [status, subject, category, code]