PackagesCanonicalsLogsProblems
    Packages
    eu.miabis.r4@1.3.0
    https://fhir.bbmri-eric.eu/StructureDefinition/miabis-observation
description: Observation containing an ICD-10/9 code of a diagnosis linked to a specific Sample
package_name: eu.miabis.r4
derivation: constraint
name: MiabisObservation
type: Observation
elements:
  identifier: {short: ID of the observation., mustSupport: true, index: 0}
  subject:
    type: Reference
    short: Subject (donor) that the observation is about.
    mustSupport: true
    refers: ['https://fhir.bbmri-eric.eu/StructureDefinition/miabis-sample-donor']
    index: 1
  effective:
    choices: []
    index: 3
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: type}
      min: null
      slices:
        effectiveDateTime:
          match: {}
          schema:
            short: When the observation was made, ie. when the diagnosis was made.
            mustSupport: true
            choices: [effectiveDateTime]
            index: 5
          min: 0
          max: 1
  effectiveDateTime:
    short: When the observation was made, ie. when the diagnosis was made.
    type: dateTime
    mustSupport: true
    choiceOf: effective
    index: 6
    slicing:
      slices:
        effectiveDateTime:
          match: {}
          schema: {short: 'When the observation was made, ie. when the diagnosis was made.', type: dateTime, mustSupport: true, choiceOf: effective, index: 6}
          min: 0
          max: 1
  value:
    short: Diagnosis code
    choices: [valueCodeableConcept]
    index: 8
  valueCodeableConcept: {type: CodeableConcept, short: Diagnosis code, choiceOf: value, index: 9}
  value[x]:
    elements:
      coding:
        index: 10
        slicing:
          rules: closed
          discriminator:
          - {path: system, type: value}
          - {path: version, type: value}
          min: 1
          slices:
            icd-10-who:
              match: {system: 'http://hl7.org/fhir/sid/icd-10', version: null}
              schema:
                array: true
                index: 11
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://hl7.org/fhir/sid/icd-10'}
                    index: 12
                  code: {index: 13}
                required: [system, code]
            icd-9:
              match: {system: 'http://hl7.org/fhir/sid/icd-9', version: null}
              schema:
                array: true
                index: 14
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://hl7.org/fhir/sid/icd-9'}
                    index: 15
                  code: {index: 16}
                required: [system, code]
    required: [coding]
  specimen:
    type: Reference
    mustSupport: true
    refers: ['https://fhir.bbmri-eric.eu/StructureDefinition/miabis-sample']
    index: 17
package_version: 1.3.0
class: profile
kind: resource
url: https://fhir.bbmri-eric.eu/StructureDefinition/miabis-observation
base: http://hl7.org/fhir/StructureDefinition/Observation
version: 1.3.0
required: [subject, specimen]