fhirbuilder
Version:
Another FHIR Tool to build FHIR Resources
81 lines (80 loc) • 2.5 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EncounterLocation = 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 EncounterLocation BackboneElement
undefined
* @property {IReference} location
* @property {string} status
* @property {IElement} _status
* @property {ICodeableConcept} physicalType
* @property {IPeriod} period
* @author Roberto Araneda Espinoza
*/
class EncounterLocation extends base_1.BackboneElement {
/**
* @description The location where the encounter takes place.
*/
location;
/**
* @description The status of the participants' presence at the specified location during the period specified. If the participant is no longer at the location, then the period will have an end date/time.
*/
status;
/**
* @description Extensions for status
*/
_status;
/**
* @description This will be used to specify the required levels (bed/ward/room/etc.) desired to be recorded to simplify either messaging or query.
*/
physicalType;
/**
* @description Time period during which the patient was present at the location.
*/
period;
/**
* @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 `EncounterLocation${JSON.stringify(this.toJson())}`;
}
/**
* @description Returns a pretty string representation of the model
* @returns {string}
*/
toPrettyString() {
return `EncounterLocation${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)('EncounterLocation', this);
}
constructor(args) {
super();
if (args)
Object.assign(this, args);
}
}
exports.EncounterLocation = EncounterLocation;