UNPKG

fhirbuilder

Version:
106 lines (105 loc) 3.96 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AllergyIntoleranceReaction = void 0; const base_1 = require("../base"); const base_2 = require("../../../core/r4/validators/base"); /** * @version R4 (v4.0.1) * @summary FHIR® Specification by HL7® * @description Class for AllergyIntoleranceReaction BackboneElement * @property {ICodeableConcept} substance * @property {ICodeableConcept[]} manifestation * @property {string} description * @property {IElement} _description * @property {string} onset * @property {IElement} _onset * @property {AllergyIntoleranceSeverityType} severity * @property {IElement} _severity * @property {ICodeableConcept} exposureRoute * @property {IAnnotation[]} note * @author Roberto Araneda Espinoza */ class AllergyIntoleranceReaction extends base_1.BackboneElement { /** * @description Identification of the specific substance (or pharmaceutical product) considered to be responsible for the Adverse Reaction event. Note: the substance for a specific reaction may be different from the substance identified as the cause of the risk, but it must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite product that includes the identified substance. It must be clinically safe to only process the 'code' and ignore the 'reaction.substance'. If a receiving system is unable to confirm that AllergyIntolerance.reaction.substance falls within the semantic scope of AllergyIntolerance.code, then the receiving system should ignore AllergyIntolerance.reaction.substance. */ substance; /** * @description Clinical symptoms and/or signs that are observed or associated with the adverse reaction event. */ manifestation; /** * @description Text description about the reaction as a whole, including details of the manifestation if required. */ description; /** * @description Extensions for description */ _description; /** * @description Record of the date and/or time of the onset of the Reaction. */ onset; /** * @description Extensions for onset */ _onset; /** * @description Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations. mild | moderate | severe. */ severity; /** * @description Extensions for severity */ _severity; /** * @description Identification of the route by which the subject was exposed to the substance. */ exposureRoute; /** * @description Additional text about the adverse reaction event not captured in other fields. */ note; /** * @description Returns a JSON representation of the model * @returns {Record<string, any>} */ toJson() { return JSON.parse(JSON.stringify(this)); } /** * @description Returns a string representation of the model * @returns {string} */ toString() { return `AllergyIntoleranceReaction${JSON.stringify(this.toJson())}`; } /** * @description Returns a pretty string representation of the model * @returns {string} */ toPrettyString() { return `AllergyIntoleranceReaction${JSON.stringify(this.toJson(), null, 2)}`; } /** * @description Returns a serialized string representation of the model * @returns {string} */ serialize() { return JSON.stringify(this.toJson()); } /** * @description Validates the model * @returns {isValid: boolean, operationOutcome: IOperationOutcome} */ validate() { return (0, base_2.ConformanceValidator)('AllergyIntoleranceReaction', this); } constructor(args) { super(); if (args) Object.assign(this, args); } } exports.AllergyIntoleranceReaction = AllergyIntoleranceReaction;