fhirbuilder
Version:
Another FHIR Tool to build FHIR Resources
125 lines (124 loc) • 3.43 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Organization = 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 Organization Resource
* @property {string} resourceType
* @property {IIdentifier[]} identifier
* @property {boolean} active
* @property {IElement} _active
* @property {ICodeableConcept[]} type
* @property {string} name
* @property {IElement} _name
* @property {string[]} alias
* @property {IElement[]} _alias
* @property {IContactPoint[]} telecom
* @property {IAddress[]} address
* @property {IReference} partOf
* @property {IOrganizationContact[]} contact
* @property {IReference[]} endpoint
* @author Roberto Araneda Espinoza
*/
class Organization extends base_1.DomainResource {
/**
* @description The type of resource
*/
resourceType = 'Organization';
/**
* @description Identifier for the organization that is used to identify the organization across multiple disparate systems.
*/
identifier;
/**
* @description Whether the organization's record is still in active use.
*/
active;
/**
* @description Extensions for active
*/
_active;
/**
* @description The kind(s) of organization that this is.
*/
type;
/**
* @description A name associated with the organization.
*/
name;
/**
* @description Extensions for name
*/
_name;
/**
* @description A list of alternate names that the organization is known as, or was known as in the past.
*/
alias;
/**
* @description Extensions for alias
*/
_alias;
/**
* @description A contact detail for the organization.
*/
telecom;
/**
* @description An address for the organization.
*/
address;
/**
* @description The organization of which this organization forms a part.
*/
partOf;
/**
* @description Contact for the organization for a certain purpose.
*/
contact;
/**
* @description Technical endpoints providing access to services operated for the organization.
*/
endpoint;
/**
* @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 `Organization${JSON.stringify(this.toJson())}`;
}
/**
* @description Returns a pretty string representation of the model
* @returns {string}
*/
toPrettyString() {
return `Organization${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)('Organization', this);
}
constructor(args) {
super();
if (args)
Object.assign(this, args);
}
}
exports.Organization = Organization;