PackagesCanonicalsLogsProblems
    Packages
    il.laniado.fhir.r4@0.2.2
    http://fhir.laniado.org.il/StructureDefinition/laniado-condition
description: Laniado Proposed Condition Profile
package_name: il.laniado.fhir.r4
derivation: constraint
name: LaniadoCondition
type: Condition
elements:
  onset:
    choices: [onsetDateTime]
    index: 49
  meta:
    elements:
      security:
        index: 0
        elements:
          system: {index: 1}
          code: {index: 2}
        required: [system, code]
        slicing:
          rules: closed
          description: ILHDP codes only
          discriminator:
          - {path: system, type: value}
          min: 1
          slices:
            HDP:
              match: {system: 'http://fhir.health.gov.il/cs/il-hdp-information-buckets'}
              schema:
                _required: true
                index: 3
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.health.gov.il/cs/il-hdp-information-buckets'}
                    index: 4
                  code:
                    pattern: {type: Code, value: diagnoses}
                    index: 5
                  display:
                    pattern: {type: String, value: אבחנות}
                    index: 6
    required: [security]
  encounter:
    type: Reference
    refers: ['http://fhir.laniado.org.il/StructureDefinition/encounter-department']
    index: 47
  evidence:
    elements:
      code:
        index: 56
        slicing:
          rules: open
          discriminator:
          - {path: coding.system, type: value}
          min: null
          slices:
            kIcdTeur:
              match:
                coding: {system: 'http://fhir.laniado.org.il/CodeSystem/k-icd-teur'}
              schema:
                array: true
                max: 2
                index: 57
                elements:
                  coding:
                    extensions:
                      icdTeurInd: {url: 'http://fhir.laniado.org.il/StructureDefinition/ext-condition-evidence-identifier', min: 1, max: 1, type: Extension, index: 59}
                    elements:
                      extension:
                        index: 58
                        slicing:
                          slices:
                            icdTeurInd:
                              match: {}
                              schema: {type: Extension, url: 'http://fhir.laniado.org.il/StructureDefinition/ext-condition-evidence-identifier', index: 59}
                              min: 1
                              max: 1
                      system:
                        pattern: {type: Uri, value: 'http://fhir.laniado.org.il/CodeSystem/k-icd-teur'}
                        index: 60
                      code: {index: 61}
                      userSelected:
                        pattern: {type: Boolean, value: true}
                        index: 62
                    required: [extension, system, code]
  abatement:
    choices: [abatementDateTime]
    index: 52
  asserter:
    type: Reference
    refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-practitioner']
    index: 55
  extension:
    index: 7
    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: 8}
          min: 1
          max: 1
  recorder:
    type: Reference
    refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-practitioner']
    index: 54
  severity:
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/condition-severity'}
    index: 19
  code:
    elements:
      coding:
        index: 20
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            laniado:
              match: {system: 'http://fhir.laniado.org.il/CodeSystem/k-icd-lan'}
              schema:
                index: 21
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.laniado.org.il/CodeSystem/k-icd-lan'}
                    index: 22
                required: [system]
            icd9local:
              match: {system: 'http://fhir.laniado.org.il/CodeSystem/local-icd'}
              schema:
                index: 23
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.laniado.org.il/CodeSystem/local-icd'}
                    index: 24
                required: [system]
            snomed:
              match: {system: 'http://snomed.info/sct'}
              schema:
                index: 25
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 26
                required: [system]
  identifier:
    index: 9
    elements:
      system: {index: 10}
      value: {short: The value that is unique within the system., index: 11}
    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: 12
            elements:
              system:
                pattern: {type: Uri, value: 'http://fhir.laniado.org.il/Identifier/condition'}
                index: 13
              assigner:
                elements:
                  reference:
                    pattern: {type: String, value: Organization/01604}
                    index: 14
                  identifier:
                    index: 15
                    elements:
                      system:
                        pattern: {type: Uri, value: 'http://institutions.health.gov.il/Institutions'}
                        index: 16
                      value:
                        pattern: {type: String, value: '01604'}
                        index: 17
                  display:
                    pattern: {type: String, value: בית חולים לניאדו}
                    index: 18
                required: [identifier]
  onsetDateTime: {type: dateTime, choiceOf: onset, index: 50}
  bodySite:
    index: 27
    slicing:
      rules: closed
      discriminator:
      - {path: coding.system, type: value}
      - {path: coding.code, type: value}
      min: null
      slices:
        right:
          match:
            coding: {system: null, code: null}
          schema:
            index: 28
            elements:
              coding:
                index: 29
                slicing:
                  rules: open
                  discriminator:
                  - {path: code, type: value}
                  min: 1
                  slices:
                    default:
                      match: {code: '24028007'}
                      schema:
                        _required: true
                        index: 30
                        elements:
                          system:
                            pattern: {type: Uri, value: 'http://snomed.info/sct'}
                            index: 31
                          code:
                            pattern: {type: Code, value: '24028007'}
                            index: 32
                          display:
                            pattern: {type: String, value: Right}
                            index: 33
                        required: [system, code]
            required: [coding]
        left:
          match:
            coding: {system: null, code: null}
          schema:
            index: 34
            elements:
              coding:
                index: 35
                slicing:
                  rules: open
                  discriminator:
                  - {path: code, type: value}
                  min: 1
                  slices:
                    default:
                      match: {code: '7771000'}
                      schema:
                        _required: true
                        index: 36
                        elements:
                          system:
                            pattern: {type: Uri, value: 'http://snomed.info/sct'}
                            index: 37
                          code:
                            pattern: {type: Code, value: '7771000'}
                            index: 38
                          display:
                            pattern: {type: String, value: Left}
                            index: 39
                        required: [system, code]
            required: [coding]
        bilateral:
          match:
            coding: {system: null, code: null}
          schema:
            index: 40
            elements:
              coding:
                index: 41
                slicing:
                  rules: open
                  discriminator:
                  - {path: code, type: value}
                  min: 1
                  slices:
                    default:
                      match: {code: '51440002'}
                      schema:
                        _required: true
                        index: 42
                        elements:
                          system:
                            pattern: {type: Uri, value: 'http://snomed.info/sct'}
                            index: 43
                          code:
                            pattern: {type: Code, value: '51440002'}
                            index: 44
                          display:
                            pattern: {type: String, value: Bilateral}
                            index: 45
                        required: [system, code]
            required: [coding]
  abatementDateTime: {type: dateTime, choiceOf: abatement, index: 53}
  subject:
    type: Reference
    refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-patient']
    index: 46
package_version: 0.2.2
extensions:
  k-sug-rec: {url: 'http://fhir.laniado.org.il/StructureDefinition/ext-k-sug-rec', min: 1, max: 1, type: Extension, index: 8}
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]