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