description: Laniado Proposed AllergyIntolerance Profile package_name: laniado.test.fhir.r4 derivation: constraint name: LaniadoAllergyIntolerance type: AllergyIntolerance elements: identifier: index: 0 elements: system: {index: 1} value: {short: The value that is unique within the system., 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/allergy'} schema: short: Allergy index: 3 elements: system: pattern: {type: Uri, value: 'http://fhir.laniado.org.il/Identifier/allergy'} 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] code: constraint: allergy-drug: {human: 'Element.coding SHOULD contain a DrugGenericTrade code.coding:drug exists', source: 'http://fhir.laniado.org.il/StructureDefinition/laniado-allergy-intolerance', severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and code=448177004).exists() implies coding.where(system=''http://fhir.laniado.org.il/CodeSystem/generic-drug'' and code.exists()).exists()'} allergy-general: {human: 'text SHALL be present if coding:general exists', source: 'http://fhir.laniado.org.il/StructureDefinition/laniado-allergy-intolerance', severity: error, expression: 'coding.where(system=''http://snomed.info/sct'' and code=281647001).exists() implies text.exists()'} index: 10 elements: coding: index: 11 slicing: rules: open ordered: true discriminator: - {path: system, type: value} - {path: code, type: value} min: 1 slices: drug: match: {system: 'http://snomed.info/sct', code: '448177004'} schema: index: 12 elements: system: pattern: {type: Uri, value: 'http://snomed.info/sct'} index: 13 code: pattern: {type: Code, value: '448177004'} index: 14 display: pattern: {type: String, value: Adverse drug interaction} index: 15 laniadoDrug: match: {system: 'http://fhir.laniado.org.il/CodeSystem/generic-drug', code: null} schema: binding: {strength: required, valueSet: 'http://fhir.laniado.org.il/ValueSet/generic-drug'} index: 16 elements: system: pattern: {type: Uri, value: 'http://fhir.laniado.org.il/CodeSystem/generic-drug'} index: 17 general: match: {system: 'http://snomed.info/sct', code: '281647001'} schema: index: 18 elements: system: pattern: {type: Uri, value: 'http://snomed.info/sct'} index: 19 code: pattern: {type: Code, value: '281647001'} index: 20 display: pattern: {type: String, value: Adverse reaction} index: 21 required: [coding] patient: type: Reference refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-patient'] index: 22 encounter: type: Reference refers: ['http://fhir.laniado.org.il/StructureDefinition/encounter-department'] index: 23 recorder: type: Reference refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-practitioner'] index: 24 asserter: type: Reference refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-practitioner'] index: 25 reaction: elements: manifestation: index: 26 slicing: rules: open discriminator: - {path: coding.system, type: value} min: null slices: reaction: match: coding: {system: null} schema: index: 27 elements: coding: index: 28 slicing: rules: open discriminator: - {path: system, type: value} min: null slices: default: match: {system: 'http://snomed.info/sct'} schema: index: 29 elements: system: pattern: {type: Uri, value: 'http://snomed.info/sct'} index: 30 code: pattern: {type: Code, value: '419076005'} index: 31 display: pattern: {type: String, value: Allergic reaction} index: 32 required: [system] laniado: match: coding: {system: null} schema: index: 33 elements: coding: index: 34 slicing: rules: open discriminator: - {path: system, type: value} min: null slices: default: match: {system: 'http://fhir.laniado.org.il/CodeSystem/k-emr-teguva'} schema: binding: {strength: required, valueSet: 'http://fhir.laniado.org.il/ValueSet/k-emr-teguva'} index: 35 elements: system: pattern: {type: Uri, value: 'http://fhir.laniado.org.il/CodeSystem/k-emr-teguva'} index: 36 required: [system] severity: constraint: allergy-reaction-severity: {human: 'value SHALL be ''severe'' if extension:shock exists', source: 'http://fhir.laniado.org.il/StructureDefinition/laniado-allergy-intolerance', severity: error, expression: 'extension(''http://fhir.laniado.org.il/StructureDefinition/ext-allergy-reaction-severity-shock'').exists() implies $this = ''severe'''} index: 37 extensions: shock: {url: 'http://fhir.laniado.org.il/StructureDefinition/ext-allergy-reaction-severity-shock', min: 0, max: 1, type: Extension, index: 38} elements: extension: type: Extension url: http://fhir.laniado.org.il/StructureDefinition/ext-allergy-reaction-severity-shock index: 38 slicing: slices: shock: match: {} schema: {type: Extension, url: 'http://fhir.laniado.org.il/StructureDefinition/ext-allergy-reaction-severity-shock', index: 38} min: 0 max: 1 package_version: 0.1.27 class: profile kind: resource url: http://fhir.laniado.org.il/StructureDefinition/laniado-allergy-intolerance base: http://fhir.health.gov.il/StructureDefinition/il-core-allergy-intolerance version: null