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