UNPKG

fhirbuilder

Version:
76 lines (75 loc) 2.19 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BundleSearch = 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 BundleSearch BackboneElement * @property {string} mode * @property {IElement} _mode * @property {number} score * @property {IElement} _score * @author Roberto Araneda Espinoza */ class BundleSearch extends base_1.BackboneElement { /** * @description Why this entry is in the result set - whether it's included as a match or because of an _include requirement, or to convey information or warning information about the search process. match | include | outcome. */ mode; /** * @description Extensions for mode */ _mode; /** * @description When searching, the server's search ranking score for the entry. */ score; /** * @description Extensions for score */ _score; /** * @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 `BundleSearch${JSON.stringify(this.toJson())}`; } /** * @description Returns a pretty string representation of the model * @returns {string} */ toPrettyString() { return `BundleSearch${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)('BundleSearch', this); } constructor(args) { super(); if (args) Object.assign(this, args); } } exports.BundleSearch = BundleSearch;