PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.core@4.1.0
    http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-clinical-test
description: Defines constraints and extensions on the Observation resource for the minimal set of data to query and retrieve clinical test results
package_name: hl7.fhir.us.core
derivation: constraint
name: USCoreClinicalTestResultObservationProfile
type: Observation
elements:
  category:
    mustSupport: true
    index: 1
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: pattern}
      min: 1
      slices:
        procedure:
          match:
            coding:
            - {code: procedure, system: 'http://terminology.hl7.org/CodeSystem/observation-category'}
          schema:
            mustSupport: true
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: procedure, system: 'http://terminology.hl7.org/CodeSystem/observation-category'}
            index: 2
        exam:
          match:
            coding:
            - {code: exam, system: 'http://terminology.hl7.org/CodeSystem/observation-category'}
          schema:
            mustSupport: true
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: exam, system: 'http://terminology.hl7.org/CodeSystem/observation-category'}
            index: 3
        activity:
          match:
            coding:
            - {code: activity, system: 'http://terminology.hl7.org/CodeSystem/observation-category'}
          schema:
            mustSupport: true
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: activity, system: 'http://terminology.hl7.org/CodeSystem/observation-category'}
            index: 4
  valueTime:
    type: time
    short: Result Value
    constraint:
      us-core-3: {human: SHALL use UCUM for coded quantity units., severity: error, expression: 'valueQuantity.system.empty() or valueQuantity.system = ''http://unitsofmeasure.org'''}
    mustSupport: true
    choiceOf: value
    index: 23
  valueQuantity:
    type: Quantity
    short: Result Value
    constraint:
      us-core-3: {human: SHALL use UCUM for coded quantity units., severity: error, expression: 'valueQuantity.system.empty() or valueQuantity.system = ''http://unitsofmeasure.org'''}
    mustSupport: true
    choiceOf: value
    index: 15
  value:
    short: Result Value
    constraint:
      us-core-3: {human: SHALL use UCUM for coded quantity units., severity: error, expression: 'valueQuantity.system.empty() or valueQuantity.system = ''http://unitsofmeasure.org'''}
    mustSupport: true
    choices: [valueQuantity, valueCodeableConcept, valueString, valueBoolean, valueInteger, valueRange, valueRatio, valueSampledData, valueTime, valueDateTime, valuePeriod]
    index: 14
  valueString:
    type: string
    short: Result Value
    constraint:
      us-core-3: {human: SHALL use UCUM for coded quantity units., severity: error, expression: 'valueQuantity.system.empty() or valueQuantity.system = ''http://unitsofmeasure.org'''}
    mustSupport: true
    choiceOf: value
    index: 17
  valueRatio:
    type: Ratio
    short: Result Value
    constraint:
      us-core-3: {human: SHALL use UCUM for coded quantity units., severity: error, expression: 'valueQuantity.system.empty() or valueQuantity.system = ''http://unitsofmeasure.org'''}
    mustSupport: true
    choiceOf: value
    index: 21
  valueBoolean:
    type: boolean
    short: Result Value
    constraint:
      us-core-3: {human: SHALL use UCUM for coded quantity units., severity: error, expression: 'valueQuantity.system.empty() or valueQuantity.system = ''http://unitsofmeasure.org'''}
    mustSupport: true
    choiceOf: value
    index: 18
  valueDateTime:
    type: dateTime
    short: Result Value
    constraint:
      us-core-3: {human: SHALL use UCUM for coded quantity units., severity: error, expression: 'valueQuantity.system.empty() or valueQuantity.system = ''http://unitsofmeasure.org'''}
    mustSupport: true
    choiceOf: value
    index: 24
  valueSampledData:
    type: SampledData
    short: Result Value
    constraint:
      us-core-3: {human: SHALL use UCUM for coded quantity units., severity: error, expression: 'valueQuantity.system.empty() or valueQuantity.system = ''http://unitsofmeasure.org'''}
    mustSupport: true
    choiceOf: value
    index: 22
  effectiveDateTime:
    type: dateTime
    constraint:
      us-core-1: {human: Datetime must be at least to day., severity: error, expression: $this is DateTime implies $this.toString().length() >= 10}
    mustSupport: true
    choiceOf: effective
    index: 9
  status: {mustSupport: true, index: 0}
  effective:
    constraint:
      us-core-1: {human: Datetime must be at least to day., severity: error, expression: $this is DateTime implies $this.toString().length() >= 10}
    mustSupport: true
    choices: [effectiveDateTime, effectivePeriod, effectiveTiming, effectiveInstant]
    index: 8
  code:
    short: Clinical Test Name
    binding: {strength: extensible, valueSet: 'http://hl7.org/fhir/us/core/ValueSet/us-core-diagnosticreport-report-and-note-codes'}
    mustSupport: true
    index: 5
  effectiveTiming:
    type: Timing
    constraint:
      us-core-1: {human: Datetime must be at least to day., severity: error, expression: $this is DateTime implies $this.toString().length() >= 10}
    mustSupport: true
    choiceOf: effective
    index: 11
  valueCodeableConcept:
    type: CodeableConcept
    short: Result Value
    constraint:
      us-core-3: {human: SHALL use UCUM for coded quantity units., severity: error, expression: 'valueQuantity.system.empty() or valueQuantity.system = ''http://unitsofmeasure.org'''}
    mustSupport: true
    choiceOf: value
    index: 16
  valuePeriod:
    type: Period
    short: Result Value
    constraint:
      us-core-3: {human: SHALL use UCUM for coded quantity units., severity: error, expression: 'valueQuantity.system.empty() or valueQuantity.system = ''http://unitsofmeasure.org'''}
    mustSupport: true
    choiceOf: value
    index: 25
  effectiveInstant:
    type: instant
    constraint:
      us-core-1: {human: Datetime must be at least to day., severity: error, expression: $this is DateTime implies $this.toString().length() >= 10}
    mustSupport: true
    choiceOf: effective
    index: 12
  valueRange:
    type: Range
    short: Result Value
    constraint:
      us-core-3: {human: SHALL use UCUM for coded quantity units., severity: error, expression: 'valueQuantity.system.empty() or valueQuantity.system = ''http://unitsofmeasure.org'''}
    mustSupport: true
    choiceOf: value
    index: 20
  valueInteger:
    type: integer
    short: Result Value
    constraint:
      us-core-3: {human: SHALL use UCUM for coded quantity units., severity: error, expression: 'valueQuantity.system.empty() or valueQuantity.system = ''http://unitsofmeasure.org'''}
    mustSupport: true
    choiceOf: value
    index: 19
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient']
    index: 6
  dataAbsentReason: {mustSupport: true, index: 26}
  effectivePeriod:
    type: Period
    constraint:
      us-core-1: {human: Datetime must be at least to day., severity: error, expression: $this is DateTime implies $this.toString().length() >= 10}
    mustSupport: true
    choiceOf: effective
    index: 10
package_version: 4.1.0
class: profile
kind: resource
url: http://hl7.org/fhir/us/core/StructureDefinition/us-core-observation-clinical-test
base: http://hl7.org/fhir/StructureDefinition/Observation
version: 4.1.0
required: [subject, category]