PackagesCanonicalsLogsProblems
    Packages
    rs/healthhub.fhir@1.0.0
    https://healthhub.dk/fhir/StructureDefinition/healthhub-condition
description: null
package_name: rs/healthhub.fhir
derivation: constraint
name: HealthHubCondition
type: Condition
elements:
  onset:
    choices: [onsetDateTime]
    index: 77
  category:
    index: 29
    elements:
      coding:
        index: 30
        elements:
          version: {index: 31}
          code: {index: 32}
          userSelected: {index: 33}
        required: [code]
      text: {index: 34}
    required: [coding]
  clinicalStatus: {short: active | recurrence | relapse | inactive | remission | resolved | unknown, index: 27}
  meta:
    index: 0
    elements:
      profile: {index: 1}
    required: [profile]
  stage: {index: 106}
  encounter: {index: 75}
  evidence: {index: 107}
  abatement:
    choices: []
    index: 80
  asserter:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Practitioner']
    index: 94
    elements:
      id: {index: 95}
      extension: {index: 96}
      type: {index: 97}
      identifier:
        elements:
          id: {index: 98}
          extension: {index: 99}
          use: {index: 100}
          type: {index: 101}
          system:
            binding: {strength: required, valueSet: 'https://healthhub.dk/fhir/ValueSet/employee-identifier-system'}
            index: 102
          value: {index: 103}
          period: {index: 104}
          assigner: {index: 105}
        extensions: {}
        required: [system, value]
    extensions: {}
  note:
    index: 108
    elements:
      author:
        choices: [authorReference, authorString]
        index: 110
      authorReference:
        type: Reference
        choiceOf: author
        refers: ['http://hl7.org/fhir/StructureDefinition/Practitioner']
        index: 111
      authorString: {type: string, choiceOf: author, index: 112}
  extension:
    index: 2
    slicing:
      slices:
        diagnosisCategory:
          match: {}
          schema:
            isModifier: false
            short: Diagnosis category
            type: Extension
            url: https://healthhub.dk/fhir/StructureDefinition/diagnosis-category
            index: 3
            elements:
              value:
                choices: []
                index: 5
            required: [value]
        notFollowedAnymore:
          match: {}
          schema: {type: Extension, short: End date of the diagnosis., isModifier: false, url: 'http://hl7.dk/fhir/core/StructureDefinition/NotFollowedAnymore', index: 6}
          max: 1
  recordedDate: {index: 81}
  recorder:
    type: Reference
    constraint:
      ref-1: {human: SHALL have a contained resource if a local reference is provided, severity: error, expression: reference.exists().not() or (reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids')))}
    refers: ['http://hl7.org/fhir/StructureDefinition/Practitioner']
    index: 82
    elements:
      id: {index: 83}
      extension: {index: 84}
      type: {short: Type the reference refers to (e.g. "Practitioner"), index: 85}
      identifier:
        elements:
          id: {index: 86}
          extension: {index: 87}
          use: {index: 88}
          type: {index: 89}
          system:
            binding: {strength: required, valueSet: 'https://healthhub.dk/fhir/ValueSet/employee-identifier-system'}
            index: 90
          value: {index: 91}
          period: {index: 92}
          assigner: {index: 93}
        extensions: {}
        required: [system, value]
    extensions: {}
  severity: {index: 35}
  code:
    short: Identification of the diagnosis
    index: 36
    elements:
      coding:
        short: Code defined by a terminology system ICPC, SKS and ICD
        index: 37
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: 1
          slices:
            ICPC2:
              match: {system: 'urn:oid:1.2.208.176.2.31'}
              schema:
                index: 38
                elements:
                  system:
                    pattern: {type: uri, value: 'urn:oid:1.2.208.176.2.31'}
                    type: uri
                    index: 39
                  version: {short: Version of the ICPC system, index: 40}
                  code: {short: ICPC2 Code, index: 41}
                  display: {short: ICPC2 Name, index: 42}
                  userSelected: {index: 43}
                required: [code, display, system]
            SKS-D:
              match: {system: 'urn:oid:1.2.208.176.2.4.12'}
              schema:
                index: 44
                elements:
                  system:
                    pattern: {type: uri, value: 'urn:oid:1.2.208.176.2.4.12'}
                    type: uri
                    index: 45
                  version: {short: SKS Version, index: 46}
                  code: {short: SKS Code, index: 47}
                  display: {short: SKS Name, index: 48}
                  userSelected: {index: 49}
                required: [code, display, system]
            ICD10:
              match: {system: 'urn:oid:2.16.840.1.113883.6.3'}
              schema:
                index: 50
                elements:
                  system:
                    pattern: {type: uri, value: 'urn:oid:2.16.840.1.113883.6.3'}
                    type: uri
                    index: 51
                  code: {index: 52}
                  display: {index: 53}
                  userSelected: {index: 54}
                required: [code, display, system]
      text: {index: 55}
    required: [coding]
  identifier:
    index: 7
    elements:
      type:
        index: 8
        elements:
          coding: {index: 9}
          text: {index: 10}
    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: 11
            elements:
              id: {index: 12}
              use: {index: 13}
              type: {index: 14}
              system:
                pattern: {type: uri, value: 'urn:oid:1.2.208.176.1.4'}
                type: uri
                index: 15
              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: 16
              period: {index: 17}
              assigner: {index: 18}
            required: [system, value]
        SOR-ID:
          match: {system: 'urn:oid:1.2.208.176.1.1'}
          schema:
            index: 19
            elements:
              id: {index: 20}
              use: {index: 21}
              type: {index: 22}
              system:
                pattern: {type: uri, value: 'urn:oid:1.2.208.176.1.1'}
                type: uri
                index: 23
              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: 24
              period: {index: 25}
              assigner: {index: 26}
            required: [system, value]
  onsetDateTime: {type: dateTime, choiceOf: onset, index: 78}
  bodySite:
    index: 56
    elements:
      coding:
        index: 57
        elements:
          display: {short: Højre eller venstre, index: 58}
          userSelected: {index: 59}
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            Laterality:
              match: {system: 'http://snomed.info/sct'}
              schema:
                array: true
                max: 2
                index: 60
                elements:
                  system:
                    pattern: {type: uri, value: 'http://snomed.info/sct'}
                    type: uri
                    index: 61
                  version: {index: 62}
                  code:
                    binding: {strength: required, valueSet: 'https://healthhub.dk/fhir/ValueSet/laterality'}
                    index: 63
                  userSelected: {index: 64}
            Hokus:
              match: {system: 'http://HealthHubHokus.dk'}
              schema:
                index: 65
                elements:
                  system:
                    pattern: {type: uri, value: 'http://HealthHubHokus.dk'}
                    type: uri
                    index: 66
                  version: {index: 67}
                  code: {short: Hokus, index: 68}
                  userSelected: {index: 69}
      text: {index: 70}
  verificationStatus: {index: 28}
  subject:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient']
    index: 71
    elements:
      reference: {index: 72}
      identifier: {index: 73}
      display: {index: 74}
    required: [reference]
package_version: 1.0.0
extensions:
  diagnosisCategory:
    url: https://healthhub.dk/fhir/StructureDefinition/diagnosis-category
    isModifier: false
    short: Diagnosis category
    type: Extension
    index: 3
    elements:
      value:
        choices: []
        index: 5
    required: [value]
  notFollowedAnymore: {url: 'http://hl7.dk/fhir/core/StructureDefinition/NotFollowedAnymore', max: 1, type: Extension, short: End date of the diagnosis., isModifier: false, index: 6}
class: profile
kind: resource
url: https://healthhub.dk/fhir/StructureDefinition/healthhub-condition
base: http://hl7.org/fhir/StructureDefinition/Condition
version: null
required: [code, extension, meta, recordedDate]