description: Laniado Proposed AllergyIntolerance Profile package_name: il.laniado.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: 1 slices: strong-id: match: {system: 'http://fhir.laniado.org.il/Identifier/id-allergy-intolerance'} schema: short: Strong allergy intolerance identification. mustSupport: true _required: true index: 3 elements: type: index: 4 elements: coding: index: 5 elements: system: pattern: {type: Uri, value: 'http://fhir.health.gov.il/cs/il-core-identifier-type'} index: 6 code: pattern: {type: Code, value: strong-id} index: 7 required: [system, code] required: [coding] system: pattern: {type: Uri, value: 'http://fhir.laniado.org.il/Identifier/id-allergy-intolerance'} index: 8 value: {short: Strong allergy intolerance identification., index: 9} required: [type] laniado: match: {system: 'http://fhir.laniado.org.il/Identifier/allergy'} schema: short: Allergy index: 10 elements: system: pattern: {type: Uri, value: 'http://fhir.laniado.org.il/Identifier/allergy'} index: 11 assigner: elements: reference: pattern: {type: String, value: Organization/01604} index: 12 identifier: index: 13 elements: system: pattern: {type: Uri, value: 'http://institutions.health.gov.il/Institutions'} index: 14 value: pattern: {type: String, value: '01604'} index: 15 display: pattern: {type: String, value: בית חולים לניאדו} index: 16 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: 17 elements: coding: index: 18 slicing: rules: open discriminator: - {path: system, type: value} - {path: code, type: value} min: null slices: drug: match: {system: 'http://snomed.info/sct', code: '448177004'} schema: index: 19 elements: system: pattern: {type: Uri, value: 'http://snomed.info/sct'} index: 20 code: pattern: {type: Code, value: '448177004'} index: 21 display: pattern: {type: String, value: Adverse drug interaction} index: 22 laniadoDrug: match: {system: 'http://fhir.laniado.org.il/CodeSystem/generic-drug', code: null} schema: index: 23 elements: system: pattern: {type: Uri, value: 'http://fhir.laniado.org.il/CodeSystem/generic-drug'} index: 24 general: match: {system: 'http://snomed.info/sct', code: '281647001'} schema: index: 25 elements: system: pattern: {type: Uri, value: 'http://snomed.info/sct'} index: 26 code: pattern: {type: Code, value: '281647001'} index: 27 display: pattern: {type: String, value: Adverse reaction} index: 28 patient: type: Reference refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-patient'] index: 29 encounter: type: Reference refers: ['http://fhir.laniado.org.il/StructureDefinition/encounter-department'] index: 30 recorder: type: Reference refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-practitioner'] index: 31 asserter: type: Reference refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-practitioner'] index: 32 reaction: elements: manifestation: index: 33 slicing: rules: open discriminator: - {path: coding.system, type: value} min: null slices: reaction: match: coding: {system: null} schema: index: 34 elements: coding: index: 35 slicing: rules: open discriminator: - {path: system, type: value} min: null slices: default: match: {system: 'http://snomed.info/sct'} schema: index: 36 elements: system: pattern: {type: Uri, value: 'http://snomed.info/sct'} index: 37 code: pattern: {type: Code, value: '419076005'} index: 38 display: pattern: {type: String, value: Allergic reaction} index: 39 required: [system] laniado: match: coding: {system: null} schema: index: 40 elements: coding: index: 41 slicing: rules: open discriminator: - {path: system, type: value} min: null slices: default: match: {system: 'http://fhir.laniado.org.il/CodeSystem/k-emr-teguva'} schema: index: 42 elements: system: pattern: {type: Uri, value: 'http://fhir.laniado.org.il/CodeSystem/k-emr-teguva'} index: 43 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: 44 extensions: shock: {url: 'http://fhir.laniado.org.il/StructureDefinition/ext-allergy-reaction-severity-shock', min: 0, max: 1, type: Extension, index: 46} elements: extension: index: 45 slicing: rules: open ordered: false discriminator: - {path: url, type: value} min: null slices: shock: match: {url: null} schema: {type: Extension, url: 'http://fhir.laniado.org.il/StructureDefinition/ext-allergy-reaction-severity-shock', index: 46} min: 0 max: 1 package_version: 0.3.5 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: 0.3.5 required: [identifier]