PackagesCanonicalsLogsProblems
    Packages
    laniado.test.fhir.r4@0.1.19
    http://fhir.laniado.org.il/StructureDefinition/laniado-condition
description: Laniado Proposed Condition Profile
package_name: laniado.test.fhir.r4
derivation: constraint
name: LaniadoCondition
type: Condition
elements:
  onset:
    choices: [onsetDateTime]
    index: 65
  clinicalStatus:
    elements:
      coding:
        index: 13
        slicing:
          rules: open
          discriminator:
          - {path: code, type: value}
          min: 1
          slices:
            status:
              match: {code: null}
              schema:
                _required: true
                index: 14
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/condition-clinical'}
                    index: 15
                  code: {index: 16}
                required: [code]
            acute:
              match: {code: '2704003'}
              schema:
                index: 17
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 18
                  code:
                    pattern: {type: Code, value: '2704003'}
                    index: 19
                  display:
                    pattern: {type: String, value: Acute disease}
                    index: 20
                required: [code]
            chronic:
              match: {code: '27624003'}
              schema:
                index: 21
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 22
                  code:
                    pattern: {type: Code, value: '27624003'}
                    index: 23
                  display:
                    pattern: {type: String, value: Chronic disease}
                    index: 24
                required: [code]
    required: [coding]
  meta:
    elements:
      source:
        pattern: {type: Uri, value: 'http://atd.laniado.org.il'}
        index: 0
    required: [source]
  encounter:
    type: Reference
    refers: ['http://fhir.laniado.org.il/StructureDefinition/encounter-department']
    index: 63
  evidence:
    elements:
      code:
        index: 72
        slicing:
          rules: open
          description: ''
          discriminator:
          - {path: coding.system, type: value}
          min: null
          slices:
            kIcdTeur:
              match:
                coding: {system: 'http://fhir.laniado.org.il/CodeSystem/k-icd-teur'}
              schema:
                binding: {strength: required, valueSet: 'http://fhir.laniado.org.il/ValueSet/k-icd-teur'}
                constraint:
                  k-icd-teur-ver: {source: 'http://fhir.laniado.org.il/StructureDefinition/laniado-condition', severity: error, expression: coding.version.matches('^(1|2)$')}
                array: true
                max: 2
                index: 73
                elements:
                  coding:
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://fhir.laniado.org.il/CodeSystem/k-icd-teur'}
                        index: 74
                      version: {short: k_icd_teur number (1 or 2), index: 75}
                      code: {index: 76}
                      userSelected:
                        pattern: {type: Boolean, value: true}
                        index: 77
                    required: [version, system, code]
  abatement:
    choices: [abatementDateTime]
    index: 68
  asserter:
    type: Reference
    refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-practitioner']
    index: 71
  extension:
    index: 1
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 1
      slices:
        k-sug-rec:
          match: {url: null}
          schema: {type: Extension, url: 'http://fhir.laniado.org.il/StructureDefinition/ext-k-sug-rec', index: 2}
          min: 1
          max: 1
  recorder:
    type: Reference
    refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-practitioner']
    index: 70
  severity:
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/condition-severity'}
    index: 25
    elements:
      coding:
        index: 26
        slicing:
          rules: open
          discriminator:
          - {path: code, type: value}
          min: null
          slices:
            severe:
              match: {code: '24484000'}
              schema:
                index: 27
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 28
                  code:
                    pattern: {type: Code, value: '24484000'}
                    index: 29
                  display:
                    pattern: {type: String, value: Severe}
                    index: 30
                required: [code]
            moderate:
              match: {code: '6736007'}
              schema:
                index: 31
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 32
                  code:
                    pattern: {type: Code, value: '6736007'}
                    index: 33
                  display:
                    pattern: {type: String, value: Moderate}
                    index: 34
                required: [code]
            mild:
              match: {code: '255604002'}
              schema:
                index: 35
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 36
                  code:
                    pattern: {type: Code, value: '255604002'}
                    index: 37
                  display:
                    pattern: {type: String, value: Mild}
                    index: 38
                required: [code]
  code:
    elements:
      coding:
        index: 39
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: 1
          slices:
            laniado:
              match: {system: 'http://fhir.laniado.org.il/CodeSystem/k-icd-lan'}
              schema:
                binding: {strength: required, valueSet: 'http://fhir.laniado.org.il/ValueSet/k-icd-lan'}
                _required: true
                index: 40
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.laniado.org.il/CodeSystem/k-icd-lan'}
                    index: 41
                required: [system]
            icd9cm:
              match: {system: 'http://hl7.org/fhir/sid/icd-9-cm'}
              schema:
                binding: {strength: required, valueSet: 'http://fhir.health.gov.il/ValueSet/icd9-cm-diagnoses'}
                index: 42
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://hl7.org/fhir/sid/icd-9-cm'}
                    index: 43
                required: [system]
            icd9il:
              match: {system: 'http://fhir.health.gov.il/cs/icd9il'}
              schema:
                binding: {strength: required, valueSet: 'http://fhir.health.gov.il/ValueSet/icd9il-diagnoses'}
                index: 44
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.health.gov.il/cs/icd9il'}
                    index: 45
                required: [system]
    required: [coding]
  identifier:
    index: 3
    elements:
      system: {index: 4}
      value: {short: The value that is unique within the system., index: 5}
    required: [value, system]
    slicing:
      rules: open
      discriminator:
      - {path: system, type: value}
      min: null
      slices:
        laniado:
          match: {system: 'http://fhir.laniado.org.il/Identifier/condition'}
          schema:
            short: Condition (emr_icd)
            index: 6
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.laniado.org.il/Identifier/condition'}
                index: 7
              assigner:
                elements:
                  reference:
                    pattern: {type: String, value: Organization/01604}
                    index: 8
                  identifier:
                    index: 9
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://institutions.health.gov.il/Institutions'}
                        index: 10
                      value:
                        pattern: {type: String, value: '01604'}
                        index: 11
                  display:
                    pattern: {type: String, value: בית חולים לניאדו}
                    index: 12
                required: [identifier]
  onsetDateTime: {type: dateTime, choiceOf: onset, index: 66}
  bodySite:
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/body-site'}
    array: true
    max: 2
    index: 46
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: value}
      min: null
      max: 2
      slices:
        right:
          match: {}
          schema:
            index: 47
            elements:
              coding:
                index: 48
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 49
                  code:
                    pattern: {type: Code, value: '24028007'}
                    index: 50
                  display:
                    pattern: {type: String, value: Right}
                    index: 51
            required: [coding]
        left:
          match: {}
          schema:
            index: 52
            elements:
              coding:
                index: 53
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 54
                  code:
                    pattern: {type: Code, value: '7771000'}
                    index: 55
                  display:
                    pattern: {type: String, value: Left}
                    index: 56
            required: [coding]
        bilateral:
          match: {}
          schema:
            index: 57
            elements:
              coding:
                index: 58
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 59
                  code:
                    pattern: {type: Code, value: '51440002'}
                    index: 60
                  display:
                    pattern: {type: String, value: Bilateral}
                    index: 61
            required: [coding]
  abatementDateTime: {type: dateTime, choiceOf: abatement, index: 69}
  subject:
    type: Reference
    refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-patient']
    index: 62
package_version: 0.1.19
extensions:
  k-sug-rec: {url: 'http://fhir.laniado.org.il/StructureDefinition/ext-k-sug-rec', min: 1, max: 1, type: Extension, index: 2}
class: profile
kind: resource
url: http://fhir.laniado.org.il/StructureDefinition/laniado-condition
base: http://fhir.health.gov.il/StructureDefinition/il-core-condition
version: null
required: [extension]