PackagesCanonicalsLogsProblems
    Packages
    fhir.deep6.ai@1.1.0
    http://deep6.ai/fhir/StructureDefinition/deep-6-ai-variant-1.0.0
description: This profile adds constraints to the US Core Observation, which borrows all non-component related constraints from the HL7 Variant profile, while adding our own custom component constraints.
package_name: fhir.deep6.ai
derivation: constraint
name: Deep6AIVariant
type: Observation
elements:
  code:
    constraint:
      ele-1: {human: All FHIR elements must have a @value or children, source: 'http://hl7.org/fhir/StructureDefinition/Element', severity: error, expression: hasValue() or (children().count() > id.count())}
    isModifier: false
    short: 69548-6
    index: 0
    type: CodeableConcept
    binding: {strength: example, valueSet: 'http://hl7.org/fhir/ValueSet/observation-codes', bindingName: ObservationCode}
    base: {max: '1', min: 1, path: Observation.code}
    isSummary: true
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: 69548-6, system: 'http://loinc.org'}
  value:
    constraint:
      ele-1: {human: All FHIR elements must have a @value or children, source: 'http://hl7.org/fhir/StructureDefinition/Element', severity: error, expression: hasValue() or (children().count() > id.count())}
    isModifier: false
    short: Indeterminate | No call | Present | Absent.
    choices: [valueCodeableConcept]
    base: {max: '1', min: 0, path: 'Observation.value[x]'}
    isSummary: true
    index: 5
    slicing:
      slices:
        valueCodeableConcept:
          match: {}
          schema:
            constraint:
              ele-1: {human: All FHIR elements must have a @value or children, source: 'http://hl7.org/fhir/StructureDefinition/Element', severity: error, expression: hasValue() or (children().count() > id.count())}
            isModifier: false
            short: Indeterminate | No call | Present | Absent.
            choices: [valueCodeableConcept]
            base: {max: '1', min: 0, path: 'Observation.value[x]'}
            isSummary: true
            index: 5
          min: 0
          max: 1
  valueCodeableConcept:
    constraint:
      ele-1: {human: All FHIR elements must have a @value or children, source: 'http://hl7.org/fhir/StructureDefinition/Element', severity: error, expression: hasValue() or (children().count() > id.count())}
    isModifier: false
    short: Indeterminate | No call | Present | Absent.
    index: 6
    slicing:
      slices:
        valueCodeableConcept:
          match: {}
          schema:
            constraint:
              ele-1: {human: All FHIR elements must have a @value or children, source: 'http://hl7.org/fhir/StructureDefinition/Element', severity: error, expression: hasValue() or (children().count() > id.count())}
            isModifier: false
            short: Indeterminate | No call | Present | Absent.
            type: CodeableConcept
            base: {max: '1', min: 0, path: 'Observation.value[x]'}
            choiceOf: value
            isSummary: true
            index: 6
          min: 0
          max: 1
    type: CodeableConcept
    base: {max: '1', min: 0, path: 'Observation.value[x]'}
    choiceOf: value
    isSummary: true
  method:
    constraint:
      ele-1: {human: All FHIR elements must have a @value or children, source: 'http://hl7.org/fhir/StructureDefinition/Element', severity: error, expression: hasValue() or (children().count() > id.count())}
    isModifier: false
    short: Sequencing | SNP array | PCR | Computational analysis | ...
    type: CodeableConcept
    binding: {strength: extensible, valueSet: 'http://loinc.org/vs/LL4048-6'}
    base: {max: '1', min: 0, path: Observation.method}
    isSummary: false
    index: 7
  component:
    index: 8
    elements:
      code:
        constraint:
          observation-component-code-constraint: {human: Code codings must include either a code or a display value, severity: error, expression: coding.all(code or display)}
        index: 9
        elements:
          coding:
            pattern:
              type: Coding
              value: {system: 'http://www.genenames.org'}
            type: Coding
            index: 10
            slicing:
              rules: open
              discriminator:
              - {path: $this, type: pattern}
              min: 1
              max: 1
              slices:
                gene-name:
                  match: {system: 'http://www.genenames.org'}
                  schema:
                    pattern:
                      type: Coding
                      value: {system: 'http://www.genenames.org'}
                    _required: true
                    type: Coding
                    index: 10
                sequence-ontology:
                  match: {system: 'http://sequenceontology.org'}
                  schema:
                    pattern:
                      type: Coding
                      value: {system: 'http://sequenceontology.org'}
                    _required: true
                    type: Coding
                    index: 11
        required: [coding]
package_version: 1.1.0
class: profile
kind: resource
url: http://deep6.ai/fhir/StructureDefinition/deep-6-ai-variant-1.0.0
base: http://hl7.org/fhir/us/core/StructureDefinition/us-core-simple-observation
version: 1.1.0
required: [code, component]