PackagesCanonicalsLogsProblems
    Packages
    rs/healthhub.fhir@1.0.0
    https://healthhub.dk/fhir/StructureDefinition/healthhub-clinical-chemistry-and-immunology
description: null
package_name: rs/healthhub.fhir
derivation: constraint
name: HealthHubClinicalChemistryAndImmunology
type: Observation
elements:
  category: {index: 30}
  referenceRange:
    elements:
      low:
        elements:
          value: {index: 98}
          system: {index: 99}
          code: {index: 100}
        required: [value]
      high:
        elements:
          value: {index: 101}
          system: {index: 102}
          code: {index: 103}
        required: [value]
      type:
        elements:
          coding:
            index: 104
            elements:
              code: {index: 105}
              userSelected: {index: 106}
            required: [code]
          text: {index: 107}
      appliesTo:
        index: 108
        elements:
          coding:
            elements:
              code: {index: 109}
              userSelected: {index: 110}
            required: [code]
      age:
        elements:
          low:
            index: 111
            elements:
              system: {index: 112}
              code: {index: 113}
          high:
            index: 114
            elements:
              system: {index: 115}
              code: {index: 116}
        required: [high, low]
  hasMember: {index: 117}
  value[x]:
    elements:
      comparator: {index: 76}
      system: {index: 77}
      code: {index: 78}
  meta:
    index: 1
    elements:
      profile: {index: 2}
    required: [profile]
  derivedFrom: {index: 118}
  interpretation:
    index: 84
    elements:
      coding:
        elements:
          version: {index: 85}
          userSelected: {index: 86}
  encounter: {index: 51}
  method:
    elements:
      coding:
        elements:
          version: {index: 94}
          userSelected: {index: 95}
  specimen: {index: 96}
  valueQuantity:
    type: Quantity
    choiceOf: value
    index: 75
    slicing:
      slices:
        valueQuantity:
          match: {}
          schema: {type: Quantity, choiceOf: value, index: 75}
  value:
    choices: [valueDateTime]
    index: 80
    slicing:
      slices:
        valueDateTime:
          match: {}
          schema:
            choices: [valueDateTime]
            index: 80
  valueString:
    type: string
    choiceOf: value
    index: 72
    slicing:
      slices:
        valueString:
          match: {}
          schema: {type: string, choiceOf: value, index: 72}
  valueDateTime:
    type: dateTime
    choiceOf: value
    index: 81
    slicing:
      slices:
        valueDateTime:
          match: {}
          schema: {type: dateTime, choiceOf: value, index: 81}
  component:
    index: 119
    elements:
      code:
        elements:
          coding:
            index: 120
            slicing:
              rules: open
              discriminator:
              - {path: system, type: value}
              min: null
              slices:
                NPU:
                  match: {system: 'urn:oid:1.2.208.176.2.1'}
                  schema:
                    index: 121
                    elements:
                      system:
                        pattern: {type: uri, value: 'urn:oid:1.2.208.176.2.1'}
                        type: uri
                        index: 122
                      version: {index: 123}
                      code: {index: 124}
                      display: {index: 125}
                      userSelected: {index: 126}
                    required: [code, display]
                MedCom:
                  match: {system: 'https://terminology.medcom.dk/fhir/observation-code'}
                  schema:
                    index: 127
                    elements:
                      system:
                        pattern: {type: uri, value: 'https://terminology.medcom.dk/fhir/observation-code'}
                        type: uri
                        index: 128
                      version: {index: 129}
                      code: {index: 130}
                      display: {index: 131}
                      userSelected: {index: 132}
                    required: [code, display]
      value:
        choices: [valueQuantity]
        index: 137
        slicing:
          slices:
            valueQuantity:
              match: {}
              schema:
                choices: [valueQuantity]
                index: 137
      valueQuantity:
        type: Quantity
        choiceOf: value
        index: 138
        slicing:
          slices:
            valueQuantity:
              match: {}
              schema: {type: Quantity, choiceOf: value, index: 138}
      value[x]:
        elements:
          comparator: {index: 139}
          system: {index: 140}
          code: {index: 141}
      referenceRange:
        elements:
          low:
            elements:
              system: {index: 142}
              code: {index: 143}
          high:
            elements:
              system: {index: 144}
              code: {index: 145}
          appliesTo: {index: 146}
  note:
    index: 87
    elements:
      author:
        choices: [authorReference, authorString]
        index: 89
      authorReference:
        type: Reference
        choiceOf: author
        refers: ['http://hl7.org/fhir/StructureDefinition/Practitioner']
        index: 90
      authorString: {type: string, choiceOf: author, index: 91}
  extension:
    short: Additional content defined by implementations.
    index: 3
    slicing:
      slices:
        headerObservation:
          match: {}
          schema: {type: Extension, isModifier: false, url: 'https://healthhub.dk/fhir/StructureDefinition/header-observation', index: 4}
        senderObservation:
          match: {}
          schema: {type: Extension, isModifier: false, url: 'https://healthhub.dk/fhir/StructureDefinition/sender-observation', index: 5}
        producerObservation:
          match: {}
          schema: {type: Extension, isModifier: false, url: 'https://healthhub.dk/fhir/StructureDefinition/producer-observation', index: 6}
        binaryObservation:
          match: {}
          schema: {type: Extension, isModifier: false, url: 'https://healthhub.dk/fhir/StructureDefinition/binary-observation', index: 7}
        requisitionObservation:
          match: {}
          schema: {type: Extension, isModifier: false, url: 'https://healthhub.dk/fhir/StructureDefinition/requisition-observation', index: 8}
        receiverCopyObservation:
          match: {}
          schema: {type: Extension, isModifier: false, url: 'https://healthhub.dk/fhir/StructureDefinition/receiver-copy-observation', index: 9}
        receiverObservation:
          match: {}
          schema: {type: Extension, isModifier: false, url: 'https://healthhub.dk/fhir/StructureDefinition/receiver-observation', index: 10}
  effectiveDateTime: {type: dateTime, short: Clinically relevant time or time-period for observation, choiceOf: effective, index: 54}
  effective:
    short: Clinically relevant time or time-period for observation
    choices: [effectiveDateTime]
    index: 53
  id: {short: Logical id of this artifact., index: 0}
  code:
    short: Type of observation (code / type).
    index: 31
    elements:
      coding:
        index: 32
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: 1
          slices:
            NPU:
              match: {system: 'urn:oid:1.2.208.176.2.1'}
              schema:
                index: 33
                elements:
                  system:
                    pattern: {type: uri, value: 'urn:oid:1.2.208.176.2.1'}
                    type: uri
                    index: 34
                  version: {index: 35}
                  code: {index: 36}
                  display: {index: 37}
                  userSelected: {index: 38}
                required: [code, display]
            MedCom:
              match: {system: 'https://terminology.medcom.dk/fhir/observation-code'}
              schema:
                index: 39
                elements:
                  system:
                    pattern: {type: uri, value: 'https://terminology.medcom.dk/fhir/observation-code'}
                    type: uri
                    index: 40
                  version: {index: 41}
                  code: {index: 42}
                  display: {index: 43}
                  userSelected: {index: 44}
                required: [code, display]
      text: {short: 'It is the full name (AnalysenavnFulde) of the analysis in plain text as used by the laboratory, including the official text for NPU codes.', index: 45}
    required: [coding]
  identifier:
    index: 11
    extensions: {}
    elements:
      extension: {index: 12}
      type: {index: 13}
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: null
      max: 1
      slices:
        ProviderNumber:
          match: {system: 'urn:oid:1.2.208.176.1.4'}
          schema:
            index: 14
            elements:
              use: {index: 15}
              type: {index: 16}
              system:
                pattern: {type: uri, value: 'urn:oid:1.2.208.176.1.4'}
                type: uri
                index: 17
              value:
                constraint:
                  digits-providernumber: {human: ProviderNumber Identifiers are at minimum and maximum 6 digits long, severity: error, expression: 'matches(''^([0-9]){6}$'')', requirements: ProviderNumber Identifiers are at minimum and maximum 6 digits long}
                index: 18
              period: {index: 19}
              assigner: {index: 20}
            required: [system, value]
        SOR-ID:
          match: {system: 'urn:oid:1.2.208.176.1.1'}
          schema:
            index: 21
            elements:
              use: {index: 22}
              type: {index: 23}
              system:
                pattern: {type: uri, value: 'urn:oid:1.2.208.176.1.1'}
                type: uri
                index: 24
              value:
                constraint:
                  min-digits-sor: {human: 'SOR Identifiers are at minimum 11 digits long. See https://sundhedsdatastyrelsen.dk/-/media/sds/filer/rammer-og-retningslinjer/organisationsregistrering/adgang-til-sor/info-om-opbygningen-af-sor-ider.pdf', severity: error, expression: 'matches(''^([0-9]){11,}$'')', requirements: SOR Identifiers are at minimum 11 digits long}
                index: 25
              period: {index: 26}
              assigner: {index: 27}
            required: [system, value]
  bodySite:
    elements:
      coding:
        elements:
          version: {index: 92}
          userSelected: {index: 93}
  focus: {index: 50}
  issued: {index: 55}
  device: {index: 97}
  basedOn: {index: 28}
  partOf: {index: 29}
  subject:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient']
    index: 46
    elements:
      reference: {index: 47}
      identifier: {index: 48}
      display: {index: 49}
    required: [reference]
  performer:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Practitioner']
    index: 56
    elements:
      id: {index: 57}
      extension: {index: 58}
      type: {index: 59}
      identifier:
        elements:
          id: {index: 60}
          extension: {index: 61}
          use: {index: 62}
          type: {index: 63}
          system:
            binding: {strength: required, valueSet: 'https://healthhub.dk/fhir/ValueSet/employee-identifier-system'}
            index: 64
          value: {index: 65}
          period: {index: 66}
          assigner: {index: 67}
        extensions: {}
        required: [system, value]
    extensions: {}
  dataAbsentReason:
    elements:
      coding:
        elements:
          version: {index: 82}
          userSelected: {index: 83}
package_version: 1.0.0
extensions:
  headerObservation: {url: 'https://healthhub.dk/fhir/StructureDefinition/header-observation', type: Extension, isModifier: false, index: 4}
  senderObservation: {url: 'https://healthhub.dk/fhir/StructureDefinition/sender-observation', type: Extension, isModifier: false, index: 5}
  producerObservation: {url: 'https://healthhub.dk/fhir/StructureDefinition/producer-observation', type: Extension, isModifier: false, index: 6}
  binaryObservation: {url: 'https://healthhub.dk/fhir/StructureDefinition/binary-observation', type: Extension, isModifier: false, index: 7}
  requisitionObservation: {url: 'https://healthhub.dk/fhir/StructureDefinition/requisition-observation', type: Extension, isModifier: false, index: 8}
  receiverCopyObservation: {url: 'https://healthhub.dk/fhir/StructureDefinition/receiver-copy-observation', type: Extension, isModifier: false, index: 9}
  receiverObservation: {url: 'https://healthhub.dk/fhir/StructureDefinition/receiver-observation', type: Extension, isModifier: false, index: 10}
class: profile
kind: resource
url: https://healthhub.dk/fhir/StructureDefinition/healthhub-clinical-chemistry-and-immunology
base: http://hl7.org/fhir/StructureDefinition/Observation
version: null
required: [effective, effectiveDateTime, issued, meta, subject]