UNPKG

ehrcraft-form-api

Version:

API/SDK for EHR Craft Forms (this version adds support lab)

94 lines 3.82 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DIPS = void 0; var DIPS; (function (DIPS) { let Terminology; (function (Terminology) { /** * * @see https://dev.azure.com/dips/DIPS/_git/OpenEhr.Forms?path=/src/OpenEhr.Forms/Terminology/CodedItem.cs * NOTE: the attributes are readonly since it's defined with only getter in the c# class */ class CodedItem { /** * Need to use the full constructor since c# support multiple constructor definitions and typescript not. * @param code_v code definining the code item * @param name_v name (label) of the code item * @param description_v optional description * @param terminology_v optional terminology * @param properties_v optional properties */ constructor(code_v, name_v, description_v, terminology_v, properties_v) { this.code = code_v; this.name = name_v; this.terminology = terminology_v; this.description = description_v; if (properties_v) { this.properties = properties_v; } else { // instantiates properties for unit testing this.properties = []; } // instantiates terminology mappings for unit testing this.terminologyMappings = []; } /** * * @param name name of the property to get the value for * @returns the value or an empty string */ getPropertyValue(name) { return "BNA-BOBA-OJV"; } } Terminology.CodedItem = CodedItem; /** * @see https://dev.azure.com/dips/DIPS/_git/OpenEhr.Forms?path=/src/OpenEhr.Forms/Terminology/CodedItemProperty.cs */ class CodedItemProperty { constructor(name, value) { this.name = name; this.value = value; } } Terminology.CodedItemProperty = CodedItemProperty; /** * Wrapper around the the context to be used when searching for terminologies */ class TerminologyContextOrganisation { constructor() { /** * Field is required in the underlying terminology service (DIPS Felles Koder) * */ this.hospitalId = -1; } } Terminology.TerminologyContextOrganisation = TerminologyContextOrganisation; })(Terminology = DIPS.Terminology || (DIPS.Terminology = {})); let Context; (function (Context) { /** * DTO class for the organisational context. Used i.e. to query system configurations. * https://dev.azure.com/dips/DIPS/_git/OpenEhr.Forms?path=/src/OpenEhr.Forms/Scripting/SystemConfig/SystemConfigurationOrganization.cs&version=GBmaster */ class SystemConfigurationOrganization { /** * Empty constructor as defined in the proxy .net class. */ constructor() { } } Context.SystemConfigurationOrganization = SystemConfigurationOrganization; /** * https://dev.azure.com/dips/DIPS/_git/OpenEhr.Forms?path=/src/OpenEhr.Forms/Context/OrganizationContext.cs&_a=contents&version=GBmaster */ class OrganizationContext { constructor() { } } Context.OrganizationContext = OrganizationContext; })(Context = DIPS.Context || (DIPS.Context = {})); })(DIPS || (exports.DIPS = DIPS = {})); //# sourceMappingURL=dips-models.js.map