fhirbuilder
Version:
Another FHIR Tool to build FHIR Resources
86 lines (85 loc) • 2.58 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LocationPosition = 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 LocationPosition BackboneElement
undefined
* @property {number} longitude
* @property {IElement} _longitude
* @property {number} latitude
* @property {IElement} _latitude
* @property {number} altitude
* @property {IElement} _altitude
* @author Roberto Araneda Espinoza
*/
class LocationPosition extends base_1.BackboneElement {
/**
* @description Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below).
*/
longitude;
/**
* @description Extensions for longitude
*/
_longitude;
/**
* @description Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below).
*/
latitude;
/**
* @description Extensions for latitude
*/
_latitude;
/**
* @description Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below).
*/
altitude;
/**
* @description Extensions for altitude
*/
_altitude;
/**
* @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 `LocationPosition${JSON.stringify(this.toJson())}`;
}
/**
* @description Returns a pretty string representation of the model
* @returns {string}
*/
toPrettyString() {
return `LocationPosition${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)('LocationPosition', this);
}
constructor(args) {
super();
if (args)
Object.assign(this, args);
}
}
exports.LocationPosition = LocationPosition;