fhirbuilder
Version:
Another FHIR Tool to build FHIR Resources
101 lines (100 loc) • 3.16 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EncounterHospitalization = 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 EncounterHospitalization BackboneElement
undefined
* @property {IIdentifier} preAdmissionIdentifier
* @property {IReference} origin
* @property {ICodeableConcept} admitSource
* @property {ICodeableConcept} reAdmission
* @property {ICodeableConcept[]} dietPreference
* @property {ICodeableConcept[]} specialCourtesy
* @property {ICodeableConcept[]} specialArrangement
* @property {IReference} destination
* @property {ICodeableConcept} dischargeDisposition
* @author Roberto Araneda Espinoza
*/
class EncounterHospitalization extends base_1.BackboneElement {
/**
* @description Pre-admission identifier.
*/
preAdmissionIdentifier;
/**
* @description The location/organization from which the patient came before admission.
*/
origin;
/**
* @description From where patient was admitted (physician referral, transfer).
*/
admitSource;
/**
* @description Whether this hospitalization is a readmission and why if known.
*/
reAdmission;
/**
* @description Diet preferences reported by the patient.
*/
dietPreference;
/**
* @description Special courtesies (VIP, board member).
*/
specialCourtesy;
/**
* @description Any special requests that have been made for this hospitalization encounter, such as the provision of specific equipment or other things.
*/
specialArrangement;
/**
* @description Location/organization to which the patient is discharged.
*/
destination;
/**
* @description Category or kind of location after discharge.
*/
dischargeDisposition;
/**
* @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 `EncounterHospitalization${JSON.stringify(this.toJson())}`;
}
/**
* @description Returns a pretty string representation of the model
* @returns {string}
*/
toPrettyString() {
return `EncounterHospitalization${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)('EncounterHospitalization', this);
}
constructor(args) {
super();
if (args)
Object.assign(this, args);
}
}
exports.EncounterHospitalization = EncounterHospitalization;