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