description: Laniado Proposed AllergyIntolerance Profile package_name: laniado.test.fhir.r4 derivation: constraint name: LaniadoAllergyIntolerance type: AllergyIntolerance elements: meta: elements: source: pattern: {type: Uri, value: 'http://atd.laniado.org.il'} index: 0 required: [source] identifier: index: 1 elements: system: {index: 2} value: {short: The value that is unique within the system., index: 3} 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: 4 elements: system: pattern: {type: Uri, value: 'http://fhir.laniado.org.il/Identifier/allergy'} index: 5 assigner: elements: reference: pattern: {type: String, value: Organization/01604} index: 6 identifier: index: 7 elements: system: pattern: {type: Uri, value: 'http://institutions.health.gov.il/Institutions'} index: 8 value: pattern: {type: String, value: '01604'} index: 9 display: pattern: {type: String, value: בית חולים לניאדו} index: 10 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: 11 elements: coding: index: 12 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: 13 elements: system: pattern: {type: Uri, value: 'http://snomed.info/sct'} index: 14 code: pattern: {type: Code, value: '448177004'} index: 15 display: pattern: {type: String, value: Adverse drug interaction} index: 16 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: 17 elements: system: pattern: {type: Uri, value: 'http://fhir.laniado.org.il/CodeSystem/generic-drug'} index: 18 general: match: {system: 'http://snomed.info/sct', code: '281647001'} schema: index: 19 elements: system: pattern: {type: Uri, value: 'http://snomed.info/sct'} index: 20 code: pattern: {type: Code, value: '281647001'} index: 21 display: pattern: {type: String, value: Adverse reaction} index: 22 required: [coding] patient: type: Reference refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-patient'] index: 23 encounter: type: Reference refers: ['http://fhir.laniado.org.il/StructureDefinition/encounter-department'] index: 24 recorder: type: Reference refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-practitioner'] index: 25 asserter: type: Reference refers: ['http://fhir.laniado.org.il/StructureDefinition/laniado-practitioner'] index: 26 reaction: elements: manifestation: index: 27 slicing: rules: open discriminator: - {path: coding.system, type: value} min: null slices: reaction: match: coding: {system: null} schema: index: 28 elements: coding: index: 29 slicing: rules: open discriminator: - {path: system, type: value} min: null slices: default: match: {system: 'http://snomed.info/sct'} schema: index: 30 elements: system: pattern: {type: Uri, value: 'http://snomed.info/sct'} index: 31 code: pattern: {type: Code, value: '419076005'} index: 32 display: pattern: {type: String, value: Allergic reaction} index: 33 required: [system] laniado: 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://fhir.laniado.org.il/CodeSystem/k-emr-teguva'} schema: binding: {strength: required, valueSet: 'http://fhir.laniado.org.il/ValueSet/k-emr-teguva'} index: 36 elements: system: pattern: {type: Uri, value: 'http://fhir.laniado.org.il/CodeSystem/k-emr-teguva'} index: 37 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: 38 extensions: shock: {url: 'http://fhir.laniado.org.il/StructureDefinition/ext-allergy-reaction-severity-shock', min: 0, max: 1, type: Extension, index: 39} elements: extension: type: Extension url: http://fhir.laniado.org.il/StructureDefinition/ext-allergy-reaction-severity-shock index: 39 slicing: slices: shock: match: {} schema: {type: Extension, url: 'http://fhir.laniado.org.il/StructureDefinition/ext-allergy-reaction-severity-shock', index: 39} min: 0 max: 1 package_version: 0.1.19 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