@persei/perseed-api 4.34.22 → 4.34.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts
CHANGED
|
@@ -123,8 +123,10 @@ declare interface CacheOptions {
|
|
|
123
123
|
|
|
124
124
|
export declare interface CalculatedColumn {
|
|
125
125
|
key: string;
|
|
126
|
-
label
|
|
126
|
+
label?: string;
|
|
127
127
|
template: string;
|
|
128
|
+
notVisible?: boolean;
|
|
129
|
+
type: ColumnType;
|
|
128
130
|
}
|
|
129
131
|
|
|
130
132
|
declare class Clinic extends BaseModel {
|
|
@@ -229,6 +231,15 @@ export declare interface ColSize {
|
|
|
229
231
|
|
|
230
232
|
export declare type ColSpanType = number | string;
|
|
231
233
|
|
|
234
|
+
export declare enum ColumnType {
|
|
235
|
+
TEXT = "text",
|
|
236
|
+
NUMBER = "number",
|
|
237
|
+
BOOLEAN = "boolean",
|
|
238
|
+
DATE = "date",
|
|
239
|
+
TIME = "time",
|
|
240
|
+
DATETIME = "datetime"
|
|
241
|
+
}
|
|
242
|
+
|
|
232
243
|
export declare interface ConditionExpression {
|
|
233
244
|
[field: string]: ConditionValue;
|
|
234
245
|
}
|
|
@@ -861,6 +872,32 @@ declare interface I18nTextLocales {
|
|
|
861
872
|
|
|
862
873
|
declare type I18nTextTranslation = I18nTextLocales | string;
|
|
863
874
|
|
|
875
|
+
export declare enum IconPosition {
|
|
876
|
+
UP = "up",
|
|
877
|
+
DOWN = "down",
|
|
878
|
+
LEFT = "left",
|
|
879
|
+
RIGHT = "right"
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
export declare interface IconPresentationWidgetFields {
|
|
883
|
+
icon: string;
|
|
884
|
+
iconColor?: string;
|
|
885
|
+
bgColor?: string;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
export declare type IconPresentationWidgetProps = PresentationWidgetWithConditionalProps<IconPresentationWidgetFields>;
|
|
889
|
+
|
|
890
|
+
export declare interface IconTextPresentationWidgetFields {
|
|
891
|
+
template: string;
|
|
892
|
+
textColor?: string;
|
|
893
|
+
icon: string;
|
|
894
|
+
iconColor?: string;
|
|
895
|
+
iconPosition: IconPosition;
|
|
896
|
+
bgColor?: string;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
export declare type IconTextPresentationWidgetProps = PresentationWidgetWithConditionalProps<IconTextPresentationWidgetFields>;
|
|
900
|
+
|
|
864
901
|
declare interface IdRefForm {
|
|
865
902
|
syncId?: number;
|
|
866
903
|
id: number;
|
|
@@ -1063,8 +1100,18 @@ export declare const OBJECT_TYPE: string[];
|
|
|
1063
1100
|
|
|
1064
1101
|
declare type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
|
|
1065
1102
|
|
|
1103
|
+
export declare interface Order {
|
|
1104
|
+
order: OrderType;
|
|
1105
|
+
orderBy: string;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1066
1108
|
export declare type OrderDir = 'asc' | 'desc';
|
|
1067
1109
|
|
|
1110
|
+
export declare enum OrderType {
|
|
1111
|
+
ASC = "asc",
|
|
1112
|
+
DESC = "desc"
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1068
1115
|
export declare type Outcome = OutcomeDateGroup & {
|
|
1069
1116
|
name: string;
|
|
1070
1117
|
identifier: string;
|
|
@@ -1103,11 +1150,25 @@ export declare interface OutcomesParams {
|
|
|
1103
1150
|
|
|
1104
1151
|
export declare const PATIENT_CREATION_ABOUT = "Patient Creation";
|
|
1105
1152
|
|
|
1153
|
+
export declare interface PatientListAppearance {
|
|
1154
|
+
backgroundColor?: PatientListBackgroundColor[];
|
|
1155
|
+
order?: Order[];
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
export declare interface PatientListBackgroundColor {
|
|
1159
|
+
conditions: ConditionsRules;
|
|
1160
|
+
backgroundColor: string;
|
|
1161
|
+
continueEvaluate?: boolean;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1106
1164
|
export declare interface PatientListColumn {
|
|
1107
1165
|
hidden?: boolean;
|
|
1108
1166
|
position?: number;
|
|
1109
1167
|
label?: string;
|
|
1110
1168
|
key: string;
|
|
1169
|
+
notVisible?: boolean;
|
|
1170
|
+
presentationWidget?: PresentationWidget;
|
|
1171
|
+
presentationWidgetSettings?: PresentationWidgetSettings;
|
|
1111
1172
|
}
|
|
1112
1173
|
|
|
1113
1174
|
export declare interface PatientListProps {
|
|
@@ -1122,8 +1183,26 @@ export declare interface PatientListProps {
|
|
|
1122
1183
|
relatedData?: RelatedDataParams;
|
|
1123
1184
|
calculatedColumns?: CalculatedColumn[];
|
|
1124
1185
|
columns?: PatientListColumn[];
|
|
1186
|
+
appearance?: PatientListAppearance;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
export declare enum PresentationWidget {
|
|
1190
|
+
TEXT = "text",
|
|
1191
|
+
ICON = "icon",
|
|
1192
|
+
ICON_TEXT = "icon_text"
|
|
1125
1193
|
}
|
|
1126
1194
|
|
|
1195
|
+
export declare interface PresentationWidgetConditionalPropsConfig<T extends Record<string, any>> {
|
|
1196
|
+
conditionalProps?: (T & {
|
|
1197
|
+
conditions: any;
|
|
1198
|
+
continueEvaluate?: boolean;
|
|
1199
|
+
})[];
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
export declare type PresentationWidgetSettings = TextPresentationWidgetProps | IconPresentationWidgetProps | IconTextPresentationWidgetProps;
|
|
1203
|
+
|
|
1204
|
+
export declare type PresentationWidgetWithConditionalProps<T extends Record<string, any>> = T & PresentationWidgetConditionalPropsConfig<T>;
|
|
1205
|
+
|
|
1127
1206
|
declare class Profiling extends BaseModel {
|
|
1128
1207
|
name: string;
|
|
1129
1208
|
description: string;
|
|
@@ -1838,11 +1917,10 @@ export declare const SEED_PRIVILEGE: {
|
|
|
1838
1917
|
readonly READ_DOCUMENTS: "read";
|
|
1839
1918
|
readonly DISPLAY_PATIENT_LIST: "advanced_patient_list";
|
|
1840
1919
|
readonly EXPORT_CONFIGURATION_EXPLICIT_ACCESS: "export_configurations_explicit_access_only";
|
|
1841
|
-
readonly FOLLOWUP_DASHBOARD: "followup_dashboard";
|
|
1842
1920
|
readonly TRIGGERS_MANAGEMENT: "triggers_management";
|
|
1843
|
-
readonly
|
|
1844
|
-
readonly
|
|
1845
|
-
readonly
|
|
1921
|
+
readonly DASHBOARD_SETTINGS_MANAGEMENT: "dashboard_settings_manage_all";
|
|
1922
|
+
readonly DASHBOARD_SETTINGS_OWN_MANAGEMENT: "dashboard_settings_manage_own";
|
|
1923
|
+
readonly DASHBOARD_SETTINGS_READ_ONLY: "dashboard_settings_read_only";
|
|
1846
1924
|
readonly DASHBOARD_FOLLOWUP_ALL: "dashboard_followup_access_all";
|
|
1847
1925
|
readonly DASHBOARD_FOLLOWUP_OWN: "dashboard_followup_access_own";
|
|
1848
1926
|
readonly DASHBOARD_FOLLOWUP_ASSIGNED: "dashboard_followup_access_assigned";
|
|
@@ -2012,6 +2090,14 @@ declare class SubformReference extends BaseModel {
|
|
|
2012
2090
|
$beforeInsert(queryContext: any): Promise<void>;
|
|
2013
2091
|
}
|
|
2014
2092
|
|
|
2093
|
+
export declare interface TextPresentationWidgetFields {
|
|
2094
|
+
template: string;
|
|
2095
|
+
textColor?: string;
|
|
2096
|
+
bgColor?: string;
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2099
|
+
export declare type TextPresentationWidgetProps = PresentationWidgetWithConditionalProps<TextPresentationWidgetFields>;
|
|
2100
|
+
|
|
2015
2101
|
export declare const TIME_FORMAT = "HH:mm:ss";
|
|
2016
2102
|
|
|
2017
2103
|
export declare const TIME_SCHEMA = "^[0-1][0-9]:[0-5][0-9]$|^[0-2][0-3]:[0-5][0-9]$";
|
|
@@ -2344,6 +2430,10 @@ declare class User extends BaseModel {
|
|
|
2344
2430
|
checkDisplayPatientListPermissions(projectId: number): boolean;
|
|
2345
2431
|
checkOnlyUpdatePatientsPermissions(projectName: string): boolean;
|
|
2346
2432
|
checkPermission(ctx: RequestContext, privilege: SEED_PRIVILEGES): boolean;
|
|
2433
|
+
/**
|
|
2434
|
+
* Retrieves a list of profiling IDs that have the specified privilege within the given context.
|
|
2435
|
+
*/
|
|
2436
|
+
getProfilingsIdsWithPrivilege(ctx: RequestContext, privilege: SEED_PRIVILEGES): number[] | undefined;
|
|
2347
2437
|
checkUserProject(projectId: number): boolean;
|
|
2348
2438
|
isPerseedAdmin(): boolean;
|
|
2349
2439
|
isEcosystemAdmin(): boolean;
|
package/dist/perseed-api.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const A = "YYYY-MM-DD",
|
|
1
|
+
const A = "YYYY-MM-DD", g = "HH:mm:ss", h = "HH:mm", f = "YYYY-MM-DD HH:mm", b = A, U = "YYYY-MM-DD HH:mm:ss", P = {
|
|
2
2
|
PENDING: "IN_PROGRESS",
|
|
3
3
|
ERROR: "ERROR",
|
|
4
4
|
SUCCESS: "COMPLETED",
|
|
@@ -59,7 +59,7 @@ const A = "YYYY-MM-DD", M = "HH:mm:ss", C = "HH:mm", p = "YYYY-MM-DD HH:mm", D =
|
|
|
59
59
|
FILE_NAME: "file"
|
|
60
60
|
};
|
|
61
61
|
var l = /* @__PURE__ */ ((a) => (a[a.STATIC = 0] = "STATIC", a[a.STANDARD = 1] = "STANDARD", a[a.FOLLOW_UP = 2] = "FOLLOW_UP", a[a.ADVERSE_EVENT = 3] = "ADVERSE_EVENT", a[a.QUESTIONNAIRE = 5] = "QUESTIONNAIRE", a[a.STUDY = 6] = "STUDY", a))(l || {});
|
|
62
|
-
const
|
|
62
|
+
const v = () => {
|
|
63
63
|
let a = {};
|
|
64
64
|
return Object.keys(r).forEach((e) => {
|
|
65
65
|
a = {
|
|
@@ -67,7 +67,7 @@ const f = () => {
|
|
|
67
67
|
[r[e]]: i[`${e}_NAME`]
|
|
68
68
|
};
|
|
69
69
|
}), a;
|
|
70
|
-
},
|
|
70
|
+
}, k = ["number", i.DECIMAL_NAME, i.INTEGER_NAME], y = ["date"], F = ["object", i.SCAN_CODE_NAME], T = {
|
|
71
71
|
CREATION_TIME: "creation_time",
|
|
72
72
|
CREATION_USER: "creation_user",
|
|
73
73
|
CRF_NAME: "crf_name",
|
|
@@ -94,23 +94,23 @@ const f = () => {
|
|
|
94
94
|
VERSION: "version",
|
|
95
95
|
REFERENCE: "reference",
|
|
96
96
|
SUBFORM_ID: "subform_id"
|
|
97
|
-
},
|
|
97
|
+
}, B = Object.values(T), G = {
|
|
98
98
|
added: "A",
|
|
99
99
|
edited: "E",
|
|
100
100
|
deleted: "D"
|
|
101
|
-
},
|
|
101
|
+
}, H = {
|
|
102
102
|
PATIENT: "patient",
|
|
103
103
|
SEPARATOR: "_"
|
|
104
|
-
},
|
|
104
|
+
}, Y = {
|
|
105
105
|
AUDIT: "audit"
|
|
106
|
-
},
|
|
106
|
+
}, w = "~", z = "_status", x = "_status", V = {
|
|
107
107
|
filled: "filled",
|
|
108
108
|
unk: "UNK",
|
|
109
109
|
na: "NA",
|
|
110
110
|
nd: "ND"
|
|
111
|
-
}, u = /^[0-9a-f]{33}_status$/,
|
|
111
|
+
}, u = /^[0-9a-f]{33}_status$/, K = function(a) {
|
|
112
112
|
return !u.test(a);
|
|
113
|
-
},
|
|
113
|
+
}, q = ["UNK", "NA", "ND"], W = "^[0-1][0-9]:[0-5][0-9]$|^[0-2][0-3]:[0-5][0-9]$", j = {
|
|
114
114
|
DEPENDENT_SOURCE: "dependent_source",
|
|
115
115
|
ENCRYPTED: "encrypted",
|
|
116
116
|
ENCRYPTED_LEVEL: "encrypted_level",
|
|
@@ -174,34 +174,34 @@ const f = () => {
|
|
|
174
174
|
WINDOW_BEFORE: "window_before",
|
|
175
175
|
WINDOW_AFTER: "window_after",
|
|
176
176
|
WINDOW_PERIOD: "window_period"
|
|
177
|
-
},
|
|
177
|
+
}, X = {
|
|
178
178
|
STRICT: "strict",
|
|
179
179
|
FLEXIBLE: "flexible"
|
|
180
|
-
},
|
|
180
|
+
}, Z = {
|
|
181
181
|
ACTIVE: "1"
|
|
182
|
-
},
|
|
182
|
+
}, Q = {
|
|
183
183
|
SLIDER: "slider",
|
|
184
184
|
DROPDOWN: "dropdown",
|
|
185
185
|
RADIO_BUTTON: "radio_button",
|
|
186
186
|
CHECK_BOX: "check_box"
|
|
187
|
-
},
|
|
187
|
+
}, n = {
|
|
188
188
|
STARS: "0",
|
|
189
189
|
SCALE_RATING: "1",
|
|
190
190
|
IMAGES: "2"
|
|
191
|
-
},
|
|
192
|
-
[
|
|
193
|
-
[
|
|
194
|
-
[
|
|
191
|
+
}, J = {
|
|
192
|
+
[n.STARS]: "stars",
|
|
193
|
+
[n.SCALE_RATING]: "scale",
|
|
194
|
+
[n.IMAGES]: "images"
|
|
195
195
|
}, s = {
|
|
196
196
|
HORIZONTAL: "0",
|
|
197
197
|
VERTICAL: "1"
|
|
198
|
-
},
|
|
198
|
+
}, $ = {
|
|
199
199
|
[s.HORIZONTAL]: "horizontal",
|
|
200
200
|
[s.VERTICAL]: "vertical"
|
|
201
|
-
},
|
|
201
|
+
}, aa = {
|
|
202
202
|
NEW_WINDOW: "newwindow",
|
|
203
203
|
EMBEDDED_HTML: "embeddedhtml"
|
|
204
|
-
},
|
|
204
|
+
}, ea = {
|
|
205
205
|
1: ["image/jpg", "image/jpeg", "image/bmp", "image/gif", "image/png"],
|
|
206
206
|
// Images
|
|
207
207
|
2: [
|
|
@@ -249,7 +249,7 @@ const f = () => {
|
|
|
249
249
|
"video/x-flv"
|
|
250
250
|
]
|
|
251
251
|
// Video
|
|
252
|
-
},
|
|
252
|
+
}, _a = [
|
|
253
253
|
{
|
|
254
254
|
id: "1",
|
|
255
255
|
name: "patient_number",
|
|
@@ -277,14 +277,14 @@ const f = () => {
|
|
|
277
277
|
crf_name: "",
|
|
278
278
|
status: "1"
|
|
279
279
|
}
|
|
280
|
-
],
|
|
280
|
+
], ia = {
|
|
281
281
|
EMAIL: 1,
|
|
282
282
|
MOBILE: 2,
|
|
283
283
|
PLATFORM: 3,
|
|
284
284
|
SMS: 4,
|
|
285
285
|
HL7: 5,
|
|
286
286
|
ALL: ["1", "2", "3", "4", "5"]
|
|
287
|
-
},
|
|
287
|
+
}, N = [
|
|
288
288
|
["Afghanistan (افغانستان)", "af", "93"],
|
|
289
289
|
["Albania (Shqipëri)", "al", "355"],
|
|
290
290
|
["Algeria (الجزائر)", "dz", "213"],
|
|
@@ -578,34 +578,34 @@ const f = () => {
|
|
|
578
578
|
["Zambia", "zm", "260"],
|
|
579
579
|
["Zimbabwe", "zw", "263"],
|
|
580
580
|
["Åland Islands", "ax", "358", 1, ["18"]]
|
|
581
|
-
],
|
|
582
|
-
const
|
|
583
|
-
return a[
|
|
581
|
+
], ta = N.reduce((a, e) => {
|
|
582
|
+
const t = e[1];
|
|
583
|
+
return a[t] = e[2], a;
|
|
584
584
|
}, {});
|
|
585
|
-
var
|
|
586
|
-
const
|
|
585
|
+
var c = /* @__PURE__ */ ((a) => (a.CLOSED = "Closed", a.OPEN = "Open", a.COMING_SOON = "Coming soon", a))(c || {});
|
|
586
|
+
const E = {
|
|
587
587
|
PERMANENT: "Permanent",
|
|
588
588
|
TEMPORARY: "Temporary"
|
|
589
|
-
},
|
|
589
|
+
}, o = {
|
|
590
590
|
QOL: "QoL",
|
|
591
591
|
TASK: "Task"
|
|
592
|
-
},
|
|
593
|
-
0:
|
|
594
|
-
1:
|
|
595
|
-
},
|
|
596
|
-
0:
|
|
597
|
-
1:
|
|
598
|
-
},
|
|
592
|
+
}, na = {
|
|
593
|
+
0: o.QOL,
|
|
594
|
+
1: o.TASK
|
|
595
|
+
}, ra = {
|
|
596
|
+
0: E.PERMANENT,
|
|
597
|
+
1: E.TEMPORARY
|
|
598
|
+
}, sa = {
|
|
599
599
|
DATE: "date_of_questionnaire",
|
|
600
600
|
TIME: "time_of_questionnaire"
|
|
601
|
-
},
|
|
601
|
+
}, Ea = {
|
|
602
602
|
TYPE: "type_of_questionnaire"
|
|
603
|
-
},
|
|
603
|
+
}, oa = {
|
|
604
604
|
PERSEED_ADMIN: "PerseedAdmin",
|
|
605
605
|
ECOSYSTEM_ADMIN: "EcosystemAdmin",
|
|
606
606
|
USER: "Users",
|
|
607
607
|
SALE: "Sales"
|
|
608
|
-
},
|
|
608
|
+
}, Aa = {
|
|
609
609
|
ADD_PATIENT: "add_patient",
|
|
610
610
|
ADD_REPEATABLE_CRF: "add_repeat_crf",
|
|
611
611
|
ADVANCED_FILTER: "advanced_filter",
|
|
@@ -640,15 +640,14 @@ const o = {
|
|
|
640
640
|
READ_DOCUMENTS: "read",
|
|
641
641
|
DISPLAY_PATIENT_LIST: "advanced_patient_list",
|
|
642
642
|
EXPORT_CONFIGURATION_EXPLICIT_ACCESS: "export_configurations_explicit_access_only",
|
|
643
|
-
FOLLOWUP_DASHBOARD: "followup_dashboard",
|
|
644
643
|
TRIGGERS_MANAGEMENT: "triggers_management",
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
644
|
+
DASHBOARD_SETTINGS_MANAGEMENT: "dashboard_settings_manage_all",
|
|
645
|
+
DASHBOARD_SETTINGS_OWN_MANAGEMENT: "dashboard_settings_manage_own",
|
|
646
|
+
DASHBOARD_SETTINGS_READ_ONLY: "dashboard_settings_read_only",
|
|
648
647
|
DASHBOARD_FOLLOWUP_ALL: "dashboard_followup_access_all",
|
|
649
648
|
DASHBOARD_FOLLOWUP_OWN: "dashboard_followup_access_own",
|
|
650
649
|
DASHBOARD_FOLLOWUP_ASSIGNED: "dashboard_followup_access_assigned"
|
|
651
|
-
},
|
|
650
|
+
}, la = [
|
|
652
651
|
"Etc/GMT+12",
|
|
653
652
|
"Pacific/Midway",
|
|
654
653
|
"Pacific/Honolulu",
|
|
@@ -725,7 +724,7 @@ const o = {
|
|
|
725
724
|
"Pacific/Fiji",
|
|
726
725
|
"Pacific/Auckland",
|
|
727
726
|
"Pacific/Tongatapu"
|
|
728
|
-
],
|
|
727
|
+
], Ta = [
|
|
729
728
|
"ab",
|
|
730
729
|
"aa",
|
|
731
730
|
"af",
|
|
@@ -915,7 +914,7 @@ const o = {
|
|
|
915
914
|
"yo",
|
|
916
915
|
"za",
|
|
917
916
|
"zu"
|
|
918
|
-
],
|
|
917
|
+
], ua = [
|
|
919
918
|
"af_ZA",
|
|
920
919
|
"am_ET",
|
|
921
920
|
"ar_AE",
|
|
@@ -1127,9 +1126,9 @@ const o = {
|
|
|
1127
1126
|
"zh_TW",
|
|
1128
1127
|
"zu_ZA",
|
|
1129
1128
|
"fi_FI"
|
|
1130
|
-
],
|
|
1131
|
-
var
|
|
1132
|
-
class
|
|
1129
|
+
], Na = "forms", ca = "history";
|
|
1130
|
+
var d = /* @__PURE__ */ ((a) => (a.VALUECARD = "ValueCard", a.SECTIONCARD = "SectionCard", a.PATIENTLIST = "PatientList", a.DASHBOARD = "Dashboard", a))(d || {}), I = /* @__PURE__ */ ((a) => (a.OUTCOMES = "outcomes", a))(I || {}), S = /* @__PURE__ */ ((a) => (a.TEXT = "text", a.NUMBER = "number", a.BOOLEAN = "boolean", a.DATE = "date", a.TIME = "time", a.DATETIME = "datetime", a))(S || {}), m = /* @__PURE__ */ ((a) => (a.ASC = "asc", a.DESC = "desc", a))(m || {}), R = /* @__PURE__ */ ((a) => (a.TEXT = "text", a.ICON = "icon", a.ICON_TEXT = "icon_text", a))(R || {}), O = /* @__PURE__ */ ((a) => (a.UP = "up", a.DOWN = "down", a.LEFT = "left", a.RIGHT = "right", a))(O || {}), L = /* @__PURE__ */ ((a) => (a.QUESTIONNAIRE_CREATE = "questionnaire.create", a.CRF_CREATE = "crf.create", a.CRF_UPDATE = "crf.update", a.CRF_DELETE = "crf.delete", a.EXTERNAL_API_CALL = "external_api_call", a))(L || {}), M = /* @__PURE__ */ ((a) => (a.JSON_LOGIC = "jsonLogic", a.CUSTOM = "custom", a))(M || {}), _ = /* @__PURE__ */ ((a) => (a.CREATION = "creation", a.UPDATE = "update", a))(_ || {}), C = /* @__PURE__ */ ((a) => (a.TEXT = "text", a.DATE = "date", a.TIME = "time", a.BOOLEAN = "boolean", a.NUMBER = "number", a.SELECT = "select", a.MULTISELECT = "multiselect", a.HIDDEN = "hidden", a))(C || {});
|
|
1131
|
+
class da {
|
|
1133
1132
|
constructor(e) {
|
|
1134
1133
|
this.notified_about = e;
|
|
1135
1134
|
}
|
|
@@ -1140,7 +1139,7 @@ class Ta {
|
|
|
1140
1139
|
return this.notified_about.toLowerCase().endsWith(_.UPDATE) ? _.UPDATE : this.notified_about.toLowerCase().endsWith(_.CREATION) ? _.CREATION : null;
|
|
1141
1140
|
}
|
|
1142
1141
|
isCrfTrigger() {
|
|
1143
|
-
return this.notified_about ===
|
|
1142
|
+
return this.notified_about === D || this.notified_about.startsWith("crf_");
|
|
1144
1143
|
}
|
|
1145
1144
|
isModelTrigger() {
|
|
1146
1145
|
return this.notified_about.startsWith("model_");
|
|
@@ -1155,8 +1154,8 @@ class Ta {
|
|
|
1155
1154
|
if (this.isModelTrigger() && !this.isDisplayerTrigger())
|
|
1156
1155
|
return this.notified_about.split("_")[1];
|
|
1157
1156
|
if (this.isDisplayerTrigger()) {
|
|
1158
|
-
const e = this.notified_about.split("_"),
|
|
1159
|
-
return Object.values(_).includes(
|
|
1157
|
+
const e = this.notified_about.split("_"), t = e[e.length - 1];
|
|
1158
|
+
return Object.values(_).includes(t) && e.pop(), e.slice(2).join("_");
|
|
1160
1159
|
}
|
|
1161
1160
|
}
|
|
1162
1161
|
getModelTriggerAction() {
|
|
@@ -1164,71 +1163,75 @@ class Ta {
|
|
|
1164
1163
|
return e && this.isDisplayerTrigger() ? this.notified_about.replace(`model_displayer_${e}_`, "").replace(`model_displayer_${e}`, "") : e && this.isModelTrigger() ? this.notified_about.replace(`model_${e}_`, "").replace(`model_${e}`, "") : null;
|
|
1165
1164
|
}
|
|
1166
1165
|
}
|
|
1167
|
-
const
|
|
1168
|
-
var
|
|
1166
|
+
const D = "Patient Creation";
|
|
1167
|
+
var p = /* @__PURE__ */ ((a) => (a[a.START_OVER = 0] = "START_OVER", a[a.RESUME = 1] = "RESUME", a))(p || {});
|
|
1169
1168
|
export {
|
|
1170
|
-
|
|
1171
|
-
|
|
1169
|
+
G as AUDIT_FLAGS,
|
|
1170
|
+
L as ApiAction,
|
|
1172
1171
|
T as CORE,
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1172
|
+
S as ColumnType,
|
|
1173
|
+
M as ConditionsFormat,
|
|
1174
|
+
ta as CountryPhoneCodes,
|
|
1175
|
+
f as DATETIME_SHORT_FORMAT,
|
|
1176
1176
|
A as DATE_FORMAT,
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1177
|
+
y as DATE_TYPE,
|
|
1178
|
+
_a as DEFAULT_CONFIGURATION_PATIENT_LIST,
|
|
1179
|
+
ea as DYNAMIC_FILE_VALID_FORMATS,
|
|
1180
|
+
d as DashboardWidgetType,
|
|
1181
1181
|
I as DataLoaderType,
|
|
1182
|
-
|
|
1183
|
-
|
|
1182
|
+
B as EXCLUDE_FIELDS,
|
|
1183
|
+
P as Exporter,
|
|
1184
1184
|
r as FIELDS,
|
|
1185
1185
|
i as FIELD_NAMES,
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1186
|
+
v as FIELD_NAMES_MAP,
|
|
1187
|
+
V as FIELD_STATUS,
|
|
1188
|
+
z as FIELD_SUFFIX,
|
|
1189
|
+
Na as FORMS_VIEW,
|
|
1190
|
+
H as FORM_NAMES,
|
|
1191
|
+
Y as FORM_SUFFIX,
|
|
1192
1192
|
l as FORM_TYPES,
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1193
|
+
E as HISTORY,
|
|
1194
|
+
ra as HISTORY_TYPE_OPTIONS,
|
|
1195
|
+
ca as HISTORY_VIEW,
|
|
1196
|
+
aa as HREF_TYPE,
|
|
1197
|
+
O as IconPosition,
|
|
1198
|
+
C as IntrospectionSchemaFieldType,
|
|
1199
|
+
Ta as LANG_CODES,
|
|
1200
|
+
ua as LOCALE_LANG_CODES,
|
|
1201
|
+
j as META_NAMES,
|
|
1202
|
+
X as META_RESTRICTION,
|
|
1203
|
+
Z as META_STATUS,
|
|
1204
|
+
la as MINIMIAL_TIMEZONE_LIST,
|
|
1205
|
+
w as MULTIPLE_SELECTION_SEPARATOR,
|
|
1206
|
+
U as MYSQL_DATETIME_FORMAT,
|
|
1207
|
+
b as MYSQL_DATE_FORMAT,
|
|
1208
|
+
ia as NOTIFIED_TYPES,
|
|
1209
|
+
q as NO_FILL_STATUS,
|
|
1210
|
+
k as NUMBER_TYPE,
|
|
1211
|
+
da as NotifiedAboutInfo,
|
|
1212
|
+
F as OBJECT_TYPE,
|
|
1213
|
+
m as OrderType,
|
|
1214
|
+
D as PATIENT_CREATION_ABOUT,
|
|
1215
|
+
R as PresentationWidget,
|
|
1216
|
+
sa as QUESTIONNAIRE_DATE,
|
|
1217
|
+
Ea as QUESTIONNAIRE_TYPE,
|
|
1218
|
+
na as QUESTIONNAIRE_TYPE_OPTIONS,
|
|
1219
|
+
p as QuestionnaireInfoUpdateMode,
|
|
1220
|
+
oa as ROLES,
|
|
1221
|
+
Aa as SEED_PRIVILEGE,
|
|
1222
|
+
Q as SELECTOR_TYPE,
|
|
1223
|
+
h as SHORT_TIME_FORMAT,
|
|
1224
|
+
$ as SLIDER_SCALE_ORIENTATION_TYPE,
|
|
1222
1225
|
s as SLIDER_SCALE_TYPE,
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
+
J as SLIDER_SELECTOR_TYPE,
|
|
1227
|
+
n as SLIDER_TYPE,
|
|
1228
|
+
c as STATUS,
|
|
1226
1229
|
u as STATUS_FIELD_REGEXP,
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1230
|
+
x as STATUS_SUFFIX,
|
|
1231
|
+
g as TIME_FORMAT,
|
|
1232
|
+
W as TIME_SCHEMA,
|
|
1233
|
+
o as TYPE,
|
|
1231
1234
|
_ as TriggerAction,
|
|
1232
|
-
|
|
1233
|
-
|
|
1235
|
+
N as allCountries,
|
|
1236
|
+
K as isNotStatusField
|
|
1234
1237
|
};
|