UNPKG

fhirbuilder

Version:
96 lines (95 loc) 2.65 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LocationHoursOfOperation = 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 LocationHoursOfOperation BackboneElement undefined * @property {string[]} daysOfWeek * @property {IElement[]} _daysOfWeek * @property {boolean} allDay * @property {IElement} _allDay * @property {string} openingTime * @property {IElement} _openingTime * @property {string} closingTime * @property {IElement} _closingTime * @author Roberto Araneda Espinoza */ class LocationHoursOfOperation extends base_1.BackboneElement { /** * @description Indicates which days of the week are available between the start and end Times. */ daysOfWeek; /** * @description Extensions for daysOfWeek */ _daysOfWeek; /** * @description The Location is open all day. */ allDay; /** * @description Extensions for allDay */ _allDay; /** * @description Time that the Location opens. */ openingTime; /** * @description Extensions for openingTime */ _openingTime; /** * @description Time that the Location closes. */ closingTime; /** * @description Extensions for closingTime */ _closingTime; /** * @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 `LocationHoursOfOperation${JSON.stringify(this.toJson())}`; } /** * @description Returns a pretty string representation of the model * @returns {string} */ toPrettyString() { return `LocationHoursOfOperation${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)('LocationHoursOfOperation', this); } constructor(args) { super(); if (args) Object.assign(this, args); } } exports.LocationHoursOfOperation = LocationHoursOfOperation;