oro-sdk 8.0.0 → 8.1.1
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/oro-sdk.cjs.development.js +247 -243
- package/dist/oro-sdk.cjs.development.js.map +1 -1
- package/dist/oro-sdk.cjs.production.min.js +1 -1
- package/dist/oro-sdk.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk.esm.js +247 -243
- package/dist/oro-sdk.esm.js.map +1 -1
- package/dist/services/external/clinia.d.ts +1 -1
- package/package.json +2 -2
- package/src/helpers/patient-registration.ts +12 -13
- package/src/services/external/clinia.ts +1 -1
package/dist/oro-sdk.esm.js
CHANGED
@@ -7,350 +7,350 @@ import { getMany } from 'idb-keyval';
|
|
7
7
|
|
8
8
|
function _regeneratorRuntime() {
|
9
9
|
_regeneratorRuntime = function () {
|
10
|
-
return
|
10
|
+
return e;
|
11
11
|
};
|
12
|
-
var
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
12
|
+
var t,
|
13
|
+
e = {},
|
14
|
+
r = Object.prototype,
|
15
|
+
n = r.hasOwnProperty,
|
16
|
+
o = Object.defineProperty || function (t, e, r) {
|
17
|
+
t[e] = r.value;
|
17
18
|
},
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
function define(
|
23
|
-
return Object.defineProperty(
|
24
|
-
value:
|
19
|
+
i = "function" == typeof Symbol ? Symbol : {},
|
20
|
+
a = i.iterator || "@@iterator",
|
21
|
+
c = i.asyncIterator || "@@asyncIterator",
|
22
|
+
u = i.toStringTag || "@@toStringTag";
|
23
|
+
function define(t, e, r) {
|
24
|
+
return Object.defineProperty(t, e, {
|
25
|
+
value: r,
|
25
26
|
enumerable: !0,
|
26
27
|
configurable: !0,
|
27
28
|
writable: !0
|
28
|
-
}),
|
29
|
+
}), t[e];
|
29
30
|
}
|
30
31
|
try {
|
31
32
|
define({}, "");
|
32
|
-
} catch (
|
33
|
-
define = function (
|
34
|
-
return
|
33
|
+
} catch (t) {
|
34
|
+
define = function (t, e, r) {
|
35
|
+
return t[e] = r;
|
35
36
|
};
|
36
37
|
}
|
37
|
-
function wrap(
|
38
|
-
var
|
39
|
-
|
40
|
-
|
41
|
-
return
|
42
|
-
value: makeInvokeMethod(
|
43
|
-
}),
|
38
|
+
function wrap(t, e, r, n) {
|
39
|
+
var i = e && e.prototype instanceof Generator ? e : Generator,
|
40
|
+
a = Object.create(i.prototype),
|
41
|
+
c = new Context(n || []);
|
42
|
+
return o(a, "_invoke", {
|
43
|
+
value: makeInvokeMethod(t, r, c)
|
44
|
+
}), a;
|
44
45
|
}
|
45
|
-
function tryCatch(
|
46
|
+
function tryCatch(t, e, r) {
|
46
47
|
try {
|
47
48
|
return {
|
48
49
|
type: "normal",
|
49
|
-
arg:
|
50
|
+
arg: t.call(e, r)
|
50
51
|
};
|
51
|
-
} catch (
|
52
|
+
} catch (t) {
|
52
53
|
return {
|
53
54
|
type: "throw",
|
54
|
-
arg:
|
55
|
+
arg: t
|
55
56
|
};
|
56
57
|
}
|
57
58
|
}
|
58
|
-
|
59
|
-
var
|
59
|
+
e.wrap = wrap;
|
60
|
+
var h = "suspendedStart",
|
61
|
+
l = "suspendedYield",
|
62
|
+
f = "executing",
|
63
|
+
s = "completed",
|
64
|
+
y = {};
|
60
65
|
function Generator() {}
|
61
66
|
function GeneratorFunction() {}
|
62
67
|
function GeneratorFunctionPrototype() {}
|
63
|
-
var
|
64
|
-
define(
|
68
|
+
var p = {};
|
69
|
+
define(p, a, function () {
|
65
70
|
return this;
|
66
71
|
});
|
67
|
-
var
|
68
|
-
|
69
|
-
|
70
|
-
var
|
71
|
-
function defineIteratorMethods(
|
72
|
-
["next", "throw", "return"].forEach(function (
|
73
|
-
define(
|
74
|
-
return this._invoke(
|
72
|
+
var d = Object.getPrototypeOf,
|
73
|
+
v = d && d(d(values([])));
|
74
|
+
v && v !== r && n.call(v, a) && (p = v);
|
75
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
76
|
+
function defineIteratorMethods(t) {
|
77
|
+
["next", "throw", "return"].forEach(function (e) {
|
78
|
+
define(t, e, function (t) {
|
79
|
+
return this._invoke(e, t);
|
75
80
|
});
|
76
81
|
});
|
77
82
|
}
|
78
|
-
function AsyncIterator(
|
79
|
-
function invoke(
|
80
|
-
var
|
81
|
-
if ("throw" !==
|
82
|
-
var
|
83
|
-
|
84
|
-
return
|
85
|
-
invoke("next",
|
86
|
-
}, function (
|
87
|
-
invoke("throw",
|
88
|
-
}) :
|
89
|
-
|
90
|
-
}, function (
|
91
|
-
return invoke("throw",
|
83
|
+
function AsyncIterator(t, e) {
|
84
|
+
function invoke(r, o, i, a) {
|
85
|
+
var c = tryCatch(t[r], t, o);
|
86
|
+
if ("throw" !== c.type) {
|
87
|
+
var u = c.arg,
|
88
|
+
h = u.value;
|
89
|
+
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
90
|
+
invoke("next", t, i, a);
|
91
|
+
}, function (t) {
|
92
|
+
invoke("throw", t, i, a);
|
93
|
+
}) : e.resolve(h).then(function (t) {
|
94
|
+
u.value = t, i(u);
|
95
|
+
}, function (t) {
|
96
|
+
return invoke("throw", t, i, a);
|
92
97
|
});
|
93
98
|
}
|
94
|
-
|
99
|
+
a(c.arg);
|
95
100
|
}
|
96
|
-
var
|
97
|
-
|
98
|
-
value: function (
|
101
|
+
var r;
|
102
|
+
o(this, "_invoke", {
|
103
|
+
value: function (t, n) {
|
99
104
|
function callInvokeWithMethodAndArg() {
|
100
|
-
return new
|
101
|
-
invoke(
|
105
|
+
return new e(function (e, r) {
|
106
|
+
invoke(t, n, e, r);
|
102
107
|
});
|
103
108
|
}
|
104
|
-
return
|
109
|
+
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
105
110
|
}
|
106
111
|
});
|
107
112
|
}
|
108
|
-
function makeInvokeMethod(
|
109
|
-
var
|
110
|
-
return function (
|
111
|
-
if (
|
112
|
-
if (
|
113
|
-
if ("throw" ===
|
114
|
-
return
|
113
|
+
function makeInvokeMethod(e, r, n) {
|
114
|
+
var o = h;
|
115
|
+
return function (i, a) {
|
116
|
+
if (o === f) throw new Error("Generator is already running");
|
117
|
+
if (o === s) {
|
118
|
+
if ("throw" === i) throw a;
|
119
|
+
return {
|
120
|
+
value: t,
|
121
|
+
done: !0
|
122
|
+
};
|
115
123
|
}
|
116
|
-
for (
|
117
|
-
var
|
118
|
-
if (
|
119
|
-
var
|
120
|
-
if (
|
121
|
-
if (
|
122
|
-
return
|
124
|
+
for (n.method = i, n.arg = a;;) {
|
125
|
+
var c = n.delegate;
|
126
|
+
if (c) {
|
127
|
+
var u = maybeInvokeDelegate(c, n);
|
128
|
+
if (u) {
|
129
|
+
if (u === y) continue;
|
130
|
+
return u;
|
123
131
|
}
|
124
132
|
}
|
125
|
-
if ("next" ===
|
126
|
-
if (
|
127
|
-
|
128
|
-
} else "return" ===
|
129
|
-
|
130
|
-
var
|
131
|
-
if ("normal" ===
|
132
|
-
if (
|
133
|
+
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
134
|
+
if (o === h) throw o = s, n.arg;
|
135
|
+
n.dispatchException(n.arg);
|
136
|
+
} else "return" === n.method && n.abrupt("return", n.arg);
|
137
|
+
o = f;
|
138
|
+
var p = tryCatch(e, r, n);
|
139
|
+
if ("normal" === p.type) {
|
140
|
+
if (o = n.done ? s : l, p.arg === y) continue;
|
133
141
|
return {
|
134
|
-
value:
|
135
|
-
done:
|
142
|
+
value: p.arg,
|
143
|
+
done: n.done
|
136
144
|
};
|
137
145
|
}
|
138
|
-
"throw" ===
|
146
|
+
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
139
147
|
}
|
140
148
|
};
|
141
149
|
}
|
142
|
-
function maybeInvokeDelegate(
|
143
|
-
var
|
144
|
-
|
145
|
-
if (
|
146
|
-
var
|
147
|
-
if ("throw" ===
|
148
|
-
var
|
149
|
-
return
|
150
|
+
function maybeInvokeDelegate(e, r) {
|
151
|
+
var n = r.method,
|
152
|
+
o = e.iterator[n];
|
153
|
+
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
154
|
+
var i = tryCatch(o, e.iterator, r.arg);
|
155
|
+
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
156
|
+
var a = i.arg;
|
157
|
+
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
150
158
|
}
|
151
|
-
function pushTryEntry(
|
152
|
-
var
|
153
|
-
tryLoc:
|
159
|
+
function pushTryEntry(t) {
|
160
|
+
var e = {
|
161
|
+
tryLoc: t[0]
|
154
162
|
};
|
155
|
-
1 in
|
163
|
+
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
156
164
|
}
|
157
|
-
function resetTryEntry(
|
158
|
-
var
|
159
|
-
|
165
|
+
function resetTryEntry(t) {
|
166
|
+
var e = t.completion || {};
|
167
|
+
e.type = "normal", delete e.arg, t.completion = e;
|
160
168
|
}
|
161
|
-
function Context(
|
169
|
+
function Context(t) {
|
162
170
|
this.tryEntries = [{
|
163
171
|
tryLoc: "root"
|
164
|
-
}],
|
172
|
+
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
165
173
|
}
|
166
|
-
function values(
|
167
|
-
if (
|
168
|
-
var
|
169
|
-
if (
|
170
|
-
if ("function" == typeof
|
171
|
-
if (!isNaN(
|
172
|
-
var
|
173
|
-
|
174
|
-
for (; ++
|
175
|
-
return next.value =
|
174
|
+
function values(e) {
|
175
|
+
if (e || "" === e) {
|
176
|
+
var r = e[a];
|
177
|
+
if (r) return r.call(e);
|
178
|
+
if ("function" == typeof e.next) return e;
|
179
|
+
if (!isNaN(e.length)) {
|
180
|
+
var o = -1,
|
181
|
+
i = function next() {
|
182
|
+
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
183
|
+
return next.value = t, next.done = !0, next;
|
176
184
|
};
|
177
|
-
return
|
185
|
+
return i.next = i;
|
178
186
|
}
|
179
187
|
}
|
180
|
-
|
181
|
-
next: doneResult
|
182
|
-
};
|
183
|
-
}
|
184
|
-
function doneResult() {
|
185
|
-
return {
|
186
|
-
value: undefined,
|
187
|
-
done: !0
|
188
|
-
};
|
188
|
+
throw new TypeError(typeof e + " is not iterable");
|
189
189
|
}
|
190
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
190
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
191
191
|
value: GeneratorFunctionPrototype,
|
192
192
|
configurable: !0
|
193
|
-
}),
|
193
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
194
194
|
value: GeneratorFunction,
|
195
195
|
configurable: !0
|
196
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype,
|
197
|
-
var
|
198
|
-
return !!
|
199
|
-
},
|
200
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(
|
201
|
-
},
|
196
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
197
|
+
var e = "function" == typeof t && t.constructor;
|
198
|
+
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
199
|
+
}, e.mark = function (t) {
|
200
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
201
|
+
}, e.awrap = function (t) {
|
202
202
|
return {
|
203
|
-
__await:
|
203
|
+
__await: t
|
204
204
|
};
|
205
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype,
|
205
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
206
206
|
return this;
|
207
|
-
}),
|
208
|
-
void 0 ===
|
209
|
-
var
|
210
|
-
return
|
211
|
-
return
|
207
|
+
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
208
|
+
void 0 === i && (i = Promise);
|
209
|
+
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
210
|
+
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
211
|
+
return t.done ? t.value : a.next();
|
212
212
|
});
|
213
|
-
}, defineIteratorMethods(
|
213
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
214
214
|
return this;
|
215
|
-
}), define(
|
215
|
+
}), define(g, "toString", function () {
|
216
216
|
return "[object Generator]";
|
217
|
-
}),
|
218
|
-
var
|
219
|
-
|
220
|
-
for (var
|
221
|
-
return
|
222
|
-
for (;
|
223
|
-
var
|
224
|
-
if (
|
217
|
+
}), e.keys = function (t) {
|
218
|
+
var e = Object(t),
|
219
|
+
r = [];
|
220
|
+
for (var n in e) r.push(n);
|
221
|
+
return r.reverse(), function next() {
|
222
|
+
for (; r.length;) {
|
223
|
+
var t = r.pop();
|
224
|
+
if (t in e) return next.value = t, next.done = !1, next;
|
225
225
|
}
|
226
226
|
return next.done = !0, next;
|
227
227
|
};
|
228
|
-
},
|
228
|
+
}, e.values = values, Context.prototype = {
|
229
229
|
constructor: Context,
|
230
|
-
reset: function (
|
231
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent =
|
230
|
+
reset: function (e) {
|
231
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
232
232
|
},
|
233
233
|
stop: function () {
|
234
234
|
this.done = !0;
|
235
|
-
var
|
236
|
-
if ("throw" ===
|
235
|
+
var t = this.tryEntries[0].completion;
|
236
|
+
if ("throw" === t.type) throw t.arg;
|
237
237
|
return this.rval;
|
238
238
|
},
|
239
|
-
dispatchException: function (
|
240
|
-
if (this.done) throw
|
241
|
-
var
|
242
|
-
function handle(
|
243
|
-
return
|
239
|
+
dispatchException: function (e) {
|
240
|
+
if (this.done) throw e;
|
241
|
+
var r = this;
|
242
|
+
function handle(n, o) {
|
243
|
+
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
244
244
|
}
|
245
|
-
for (var
|
246
|
-
var
|
247
|
-
|
248
|
-
if ("root" ===
|
249
|
-
if (
|
250
|
-
var
|
251
|
-
|
252
|
-
if (
|
253
|
-
if (this.prev <
|
254
|
-
if (this.prev <
|
255
|
-
} else if (
|
256
|
-
if (this.prev <
|
245
|
+
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
246
|
+
var i = this.tryEntries[o],
|
247
|
+
a = i.completion;
|
248
|
+
if ("root" === i.tryLoc) return handle("end");
|
249
|
+
if (i.tryLoc <= this.prev) {
|
250
|
+
var c = n.call(i, "catchLoc"),
|
251
|
+
u = n.call(i, "finallyLoc");
|
252
|
+
if (c && u) {
|
253
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
254
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
255
|
+
} else if (c) {
|
256
|
+
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
257
257
|
} else {
|
258
|
-
if (!
|
259
|
-
if (this.prev <
|
258
|
+
if (!u) throw new Error("try statement without catch or finally");
|
259
|
+
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
260
260
|
}
|
261
261
|
}
|
262
262
|
}
|
263
263
|
},
|
264
|
-
abrupt: function (
|
265
|
-
for (var
|
266
|
-
var
|
267
|
-
if (
|
268
|
-
var
|
264
|
+
abrupt: function (t, e) {
|
265
|
+
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
266
|
+
var o = this.tryEntries[r];
|
267
|
+
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
268
|
+
var i = o;
|
269
269
|
break;
|
270
270
|
}
|
271
271
|
}
|
272
|
-
|
273
|
-
var
|
274
|
-
return
|
272
|
+
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
273
|
+
var a = i ? i.completion : {};
|
274
|
+
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
275
275
|
},
|
276
|
-
complete: function (
|
277
|
-
if ("throw" ===
|
278
|
-
return "break" ===
|
276
|
+
complete: function (t, e) {
|
277
|
+
if ("throw" === t.type) throw t.arg;
|
278
|
+
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
279
279
|
},
|
280
|
-
finish: function (
|
281
|
-
for (var
|
282
|
-
var
|
283
|
-
if (
|
280
|
+
finish: function (t) {
|
281
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
282
|
+
var r = this.tryEntries[e];
|
283
|
+
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
284
284
|
}
|
285
285
|
},
|
286
|
-
catch: function (
|
287
|
-
for (var
|
288
|
-
var
|
289
|
-
if (
|
290
|
-
var
|
291
|
-
if ("throw" ===
|
292
|
-
var
|
293
|
-
resetTryEntry(
|
286
|
+
catch: function (t) {
|
287
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
288
|
+
var r = this.tryEntries[e];
|
289
|
+
if (r.tryLoc === t) {
|
290
|
+
var n = r.completion;
|
291
|
+
if ("throw" === n.type) {
|
292
|
+
var o = n.arg;
|
293
|
+
resetTryEntry(r);
|
294
294
|
}
|
295
|
-
return
|
295
|
+
return o;
|
296
296
|
}
|
297
297
|
}
|
298
298
|
throw new Error("illegal catch attempt");
|
299
299
|
},
|
300
|
-
delegateYield: function (
|
300
|
+
delegateYield: function (e, r, n) {
|
301
301
|
return this.delegate = {
|
302
|
-
iterator: values(
|
303
|
-
resultName:
|
304
|
-
nextLoc:
|
305
|
-
}, "next" === this.method && (this.arg =
|
302
|
+
iterator: values(e),
|
303
|
+
resultName: r,
|
304
|
+
nextLoc: n
|
305
|
+
}, "next" === this.method && (this.arg = t), y;
|
306
306
|
}
|
307
|
-
},
|
307
|
+
}, e;
|
308
308
|
}
|
309
309
|
function _wrapRegExp() {
|
310
|
-
_wrapRegExp = function (
|
311
|
-
return new BabelRegExp(
|
310
|
+
_wrapRegExp = function (e, r) {
|
311
|
+
return new BabelRegExp(e, void 0, r);
|
312
312
|
};
|
313
|
-
var
|
314
|
-
|
315
|
-
function BabelRegExp(
|
316
|
-
var
|
317
|
-
return
|
313
|
+
var e = RegExp.prototype,
|
314
|
+
r = new WeakMap();
|
315
|
+
function BabelRegExp(e, t, p) {
|
316
|
+
var o = new RegExp(e, t);
|
317
|
+
return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype);
|
318
318
|
}
|
319
|
-
function buildGroups(
|
320
|
-
var
|
321
|
-
return Object.keys(
|
322
|
-
var
|
323
|
-
if ("number" == typeof
|
324
|
-
for (var
|
325
|
-
|
319
|
+
function buildGroups(e, t) {
|
320
|
+
var p = r.get(t);
|
321
|
+
return Object.keys(p).reduce(function (r, t) {
|
322
|
+
var o = p[t];
|
323
|
+
if ("number" == typeof o) r[t] = e[o];else {
|
324
|
+
for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++;
|
325
|
+
r[t] = e[o[i]];
|
326
326
|
}
|
327
|
-
return
|
327
|
+
return r;
|
328
328
|
}, Object.create(null));
|
329
329
|
}
|
330
|
-
return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (
|
331
|
-
var
|
332
|
-
if (
|
333
|
-
|
334
|
-
var
|
335
|
-
|
330
|
+
return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) {
|
331
|
+
var t = e.exec.call(this, r);
|
332
|
+
if (t) {
|
333
|
+
t.groups = buildGroups(t, this);
|
334
|
+
var p = t.indices;
|
335
|
+
p && (p.groups = buildGroups(p, this));
|
336
336
|
}
|
337
|
-
return
|
338
|
-
}, BabelRegExp.prototype[Symbol.replace] = function (
|
339
|
-
if ("string" == typeof
|
340
|
-
var
|
341
|
-
return
|
342
|
-
var
|
343
|
-
return "$" + (Array.isArray(
|
337
|
+
return t;
|
338
|
+
}, BabelRegExp.prototype[Symbol.replace] = function (t, p) {
|
339
|
+
if ("string" == typeof p) {
|
340
|
+
var o = r.get(this);
|
341
|
+
return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) {
|
342
|
+
var t = o[r];
|
343
|
+
return "$" + (Array.isArray(t) ? t.join("$") : t);
|
344
344
|
}));
|
345
345
|
}
|
346
|
-
if ("function" == typeof
|
347
|
-
var
|
348
|
-
return
|
349
|
-
var
|
350
|
-
return "object" != typeof
|
346
|
+
if ("function" == typeof p) {
|
347
|
+
var i = this;
|
348
|
+
return e[Symbol.replace].call(this, t, function () {
|
349
|
+
var e = arguments;
|
350
|
+
return "object" != typeof e[e.length - 1] && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e);
|
351
351
|
});
|
352
352
|
}
|
353
|
-
return
|
353
|
+
return e[Symbol.replace].call(this, t, p);
|
354
354
|
}, _wrapRegExp.apply(this, arguments);
|
355
355
|
}
|
356
356
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
@@ -458,7 +458,11 @@ function _construct(Parent, args, Class) {
|
|
458
458
|
return _construct.apply(null, arguments);
|
459
459
|
}
|
460
460
|
function _isNativeFunction(fn) {
|
461
|
-
|
461
|
+
try {
|
462
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
463
|
+
} catch (e) {
|
464
|
+
return typeof fn === "function";
|
465
|
+
}
|
462
466
|
}
|
463
467
|
function _wrapNativeSuper(Class) {
|
464
468
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
@@ -1182,7 +1186,7 @@ function _registerPatient() {
|
|
1182
1186
|
identity = undefined;
|
1183
1187
|
errorsThrown = [];
|
1184
1188
|
stepsTotalNum = 9;
|
1185
|
-
// toggle all changed statuses if this workflow has previous/revision data
|
1189
|
+
// toggle all changed statuses if this workflow has previous/revision data
|
1186
1190
|
workflow = detectChangesInWorkflowAnswers(workflow);
|
1187
1191
|
_loop = /*#__PURE__*/_regeneratorRuntime().mark(function _loop() {
|
1188
1192
|
var _consultIndex, _identity, _identity2, practitioners, grantPromises, consultIndex, consultIndexPromises;
|
@@ -1393,13 +1397,13 @@ function _registerPatient() {
|
|
1393
1397
|
case 62:
|
1394
1398
|
// if we got through the complete flow, the registration succeeded
|
1395
1399
|
if (onProgress) onProgress(currentStep++ / stepsTotalNum, 'success');
|
1396
|
-
return _context3.abrupt("return",
|
1400
|
+
return _context3.abrupt("return", 0);
|
1397
1401
|
case 66:
|
1398
1402
|
_context3.prev = 66;
|
1399
1403
|
_context3.t0 = _context3["catch"](0);
|
1400
1404
|
console.error("[SDK] Error occured during registration: " + _context3.t0 + ", retrying... Retries remaining: " + retry);
|
1401
1405
|
errorsThrown = [];
|
1402
|
-
return _context3.abrupt("return",
|
1406
|
+
return _context3.abrupt("return", 1);
|
1403
1407
|
case 71:
|
1404
1408
|
case "end":
|
1405
1409
|
return _context3.stop();
|
@@ -1414,13 +1418,13 @@ function _registerPatient() {
|
|
1414
1418
|
return _context4.delegateYield(_loop(), "t0", 12);
|
1415
1419
|
case 12:
|
1416
1420
|
_ret = _context4.t0;
|
1417
|
-
if (!(_ret ===
|
1421
|
+
if (!(_ret === 0)) {
|
1418
1422
|
_context4.next = 15;
|
1419
1423
|
break;
|
1420
1424
|
}
|
1421
1425
|
return _context4.abrupt("break", 20);
|
1422
1426
|
case 15:
|
1423
|
-
if (!(_ret ===
|
1427
|
+
if (!(_ret === 1)) {
|
1424
1428
|
_context4.next = 17;
|
1425
1429
|
break;
|
1426
1430
|
}
|
@@ -1484,7 +1488,7 @@ function _getOrCreatePatientLockbox() {
|
|
1484
1488
|
return _context5.abrupt("return", grants[0].lockboxUuid);
|
1485
1489
|
case 8:
|
1486
1490
|
_context5.next = 10;
|
1487
|
-
return oroClient.
|
1491
|
+
return oroClient.lockboxCreate()["catch"](function (err) {
|
1488
1492
|
console.error('Error while creating lockbox', err);
|
1489
1493
|
throw err;
|
1490
1494
|
});
|