@medplum/agent 3.0.10 → 3.0.11
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/cjs/index.cjs +47 -34
- package/package.json +5 -5
package/dist/cjs/index.cjs
CHANGED
|
@@ -37064,10 +37064,10 @@ var _e = class {
|
|
|
37064
37064
|
}, precedence: t });
|
|
37065
37065
|
}
|
|
37066
37066
|
construct(e) {
|
|
37067
|
-
return new
|
|
37067
|
+
return new Ot(e, this.prefixParselets, this.infixParselets);
|
|
37068
37068
|
}
|
|
37069
37069
|
};
|
|
37070
|
-
var
|
|
37070
|
+
var Ot = class {
|
|
37071
37071
|
constructor(e, t, n) {
|
|
37072
37072
|
this.tokens = e, this.prefixParselets = t, this.infixParselets = n;
|
|
37073
37073
|
}
|
|
@@ -37329,7 +37329,7 @@ function f(r4) {
|
|
|
37329
37329
|
return [{ type: l.boolean, value: r4 }];
|
|
37330
37330
|
}
|
|
37331
37331
|
function y(r4) {
|
|
37332
|
-
return r4 == null ? { type: "undefined", value: void 0 } : Number.isSafeInteger(r4) ? { type: l.integer, value: r4 } : typeof r4 == "number" ? { type: l.decimal, value: r4 } : typeof r4 == "boolean" ? { type: l.boolean, value: r4 } : typeof r4 == "string" ? { type: l.string, value: r4 } :
|
|
37332
|
+
return r4 == null ? { type: "undefined", value: void 0 } : Number.isSafeInteger(r4) ? { type: l.integer, value: r4 } : typeof r4 == "number" ? { type: l.decimal, value: r4 } : typeof r4 == "boolean" ? { type: l.boolean, value: r4 } : typeof r4 == "string" ? { type: l.string, value: r4 } : I(r4) ? { type: l.Quantity, value: r4 } : _(r4) ? { type: r4.resourceType, value: r4 } : { type: l.BackboneElement, value: r4 };
|
|
37333
37333
|
}
|
|
37334
37334
|
function F(r4) {
|
|
37335
37335
|
return r4.length === 0 ? false : !!r4[0].value;
|
|
@@ -37415,14 +37415,14 @@ function Zt(r4, e) {
|
|
|
37415
37415
|
}
|
|
37416
37416
|
function rn(r4, e) {
|
|
37417
37417
|
let t = r4.value?.valueOf(), n = e.value?.valueOf();
|
|
37418
|
-
return typeof t == "number" && typeof n == "number" ? f(Math.abs(t - n) < 1e-8) :
|
|
37418
|
+
return typeof t == "number" && typeof n == "number" ? f(Math.abs(t - n) < 1e-8) : I(t) && I(n) ? f(sn(t, n)) : f(typeof t == "object" && typeof n == "object" ? er(r4, e) : t === n);
|
|
37419
37419
|
}
|
|
37420
37420
|
function Xt(r4, e) {
|
|
37421
37421
|
return r4.length === 0 && e.length === 0 ? f(true) : r4.length !== e.length ? f(false) : (r4.sort(Zr), e.sort(Zr), f(r4.every((t, n) => F(Ai(t, e[n])))));
|
|
37422
37422
|
}
|
|
37423
37423
|
function Ai(r4, e) {
|
|
37424
37424
|
let { type: t, value: n } = r4, { type: i2, value: o } = e, s = n?.valueOf(), a = o?.valueOf();
|
|
37425
|
-
return typeof s == "number" && typeof a == "number" ? f(Math.abs(s - a) < 0.01) :
|
|
37425
|
+
return typeof s == "number" && typeof a == "number" ? f(Math.abs(s - a) < 0.01) : I(s) && I(a) ? f(sn(s, a)) : f(t === "Coding" && i2 === "Coding" ? typeof s != "object" || typeof a != "object" ? false : s.code === a.code && s.system === a.system : typeof s == "object" && typeof a == "object" ? er({ ...s, id: void 0 }, { ...a, id: void 0 }) : typeof s == "string" && typeof a == "string" ? s.toLowerCase() === a.toLowerCase() : s === a);
|
|
37426
37426
|
}
|
|
37427
37427
|
function Zr(r4, e) {
|
|
37428
37428
|
let t = r4.value?.valueOf(), n = e.value?.valueOf();
|
|
@@ -37447,7 +37447,7 @@ function Ke(r4, e) {
|
|
|
37447
37447
|
case "Period":
|
|
37448
37448
|
return on(t);
|
|
37449
37449
|
case "Quantity":
|
|
37450
|
-
return
|
|
37450
|
+
return I(t);
|
|
37451
37451
|
default:
|
|
37452
37452
|
return typeof t == "object" && t?.resourceType === e;
|
|
37453
37453
|
}
|
|
@@ -37461,7 +37461,7 @@ function He(r4) {
|
|
|
37461
37461
|
function on(r4) {
|
|
37462
37462
|
return !!(r4 && typeof r4 == "object" && ("start" in r4 && He(r4.start) || "end" in r4 && He(r4.end)));
|
|
37463
37463
|
}
|
|
37464
|
-
function
|
|
37464
|
+
function I(r4) {
|
|
37465
37465
|
return !!(r4 && typeof r4 == "object" && "value" in r4 && typeof r4.value == "number");
|
|
37466
37466
|
}
|
|
37467
37467
|
function sn(r4, e) {
|
|
@@ -37488,11 +37488,11 @@ function tn(r4, e) {
|
|
|
37488
37488
|
if (e) {
|
|
37489
37489
|
if (typeof e != "object")
|
|
37490
37490
|
throw new Error("Primitive extension must be an object");
|
|
37491
|
-
return
|
|
37491
|
+
return Ii(r4 ?? {}, e);
|
|
37492
37492
|
}
|
|
37493
37493
|
return r4;
|
|
37494
37494
|
}
|
|
37495
|
-
function
|
|
37495
|
+
function Ii(r4, e) {
|
|
37496
37496
|
return delete e.__proto__, delete e.constructor, Object.assign(r4, e);
|
|
37497
37497
|
}
|
|
37498
37498
|
function Z(r4) {
|
|
@@ -37506,11 +37506,11 @@ function Ye(r4) {
|
|
|
37506
37506
|
if (r4)
|
|
37507
37507
|
return Y(r4) ? r4.reference.split("/")[1] : r4.id;
|
|
37508
37508
|
}
|
|
37509
|
-
function
|
|
37509
|
+
function Oi(r4) {
|
|
37510
37510
|
return r4.resourceType === "Patient" || r4.resourceType === "Practitioner" || r4.resourceType === "RelatedPerson";
|
|
37511
37511
|
}
|
|
37512
37512
|
function ki(r4) {
|
|
37513
|
-
if (
|
|
37513
|
+
if (Oi(r4)) {
|
|
37514
37514
|
let e = Vi(r4);
|
|
37515
37515
|
if (e)
|
|
37516
37516
|
return e;
|
|
@@ -37726,7 +37726,7 @@ var A = { empty: (r4, e) => f(e.length === 0 || e.every((t) => T(t.value))), has
|
|
|
37726
37726
|
for (let n of e)
|
|
37727
37727
|
t.some((i2) => i2.value === n.value) || t.push(n);
|
|
37728
37728
|
return t;
|
|
37729
|
-
}, isDistinct: (r4, e) => f(e.length === A.distinct(r4, e).length), where: (r4, e, t) => e.filter((n) => F(t.eval(r4, [n]))), select: (r4, e, t) => e.map((n) => t.eval(r4, [n])).flat(), repeat: Ce, ofType: (r4, e, t) => e.filter((n) => n.type === t.name), single: (r4, e) => {
|
|
37729
|
+
}, isDistinct: (r4, e) => f(e.length === A.distinct(r4, e).length), where: (r4, e, t) => e.filter((n) => F(t.eval({ parent: r4, variables: { $this: n } }, [n]))), select: (r4, e, t) => e.map((n) => t.eval(r4, [n])).flat(), repeat: Ce, ofType: (r4, e, t) => e.filter((n) => n.type === t.name), single: (r4, e) => {
|
|
37730
37730
|
if (e.length > 1)
|
|
37731
37731
|
throw new Error("Expected input length one for single()");
|
|
37732
37732
|
return e.length === 0 ? [] : e.slice(0, 1);
|
|
@@ -37809,12 +37809,12 @@ var A = { empty: (r4, e) => f(e.length === 0 || e.every((t) => T(t.value))), has
|
|
|
37809
37809
|
if (e.length === 0)
|
|
37810
37810
|
return [];
|
|
37811
37811
|
let [{ value: t }] = q(e, 1);
|
|
37812
|
-
return
|
|
37812
|
+
return I(t) ? [{ type: l.Quantity, value: t }] : typeof t == "number" ? [{ type: l.Quantity, value: { value: t, unit: "1" } }] : typeof t == "string" && /^-?\d{1,9}(\.\d{1,9})?/.exec(t) ? [{ type: l.Quantity, value: { value: parseFloat(t), unit: "1" } }] : typeof t == "boolean" ? [{ type: l.Quantity, value: { value: t ? 1 : 0, unit: "1" } }] : [];
|
|
37813
37813
|
}, convertsToQuantity: (r4, e) => e.length === 0 ? [] : f(A.toQuantity(r4, e).length === 1), toString: (r4, e) => {
|
|
37814
37814
|
if (e.length === 0)
|
|
37815
37815
|
return [];
|
|
37816
37816
|
let [{ value: t }] = q(e, 1);
|
|
37817
|
-
return t == null ? [] :
|
|
37817
|
+
return t == null ? [] : I(t) ? [{ type: l.string, value: `${t.value} '${t.unit}'` }] : [{ type: l.string, value: t.toString() }];
|
|
37818
37818
|
}, convertsToString: (r4, e) => e.length === 0 ? [] : f(A.toString(r4, e).length === 1), toTime: (r4, e) => {
|
|
37819
37819
|
if (e.length === 0)
|
|
37820
37820
|
return [];
|
|
@@ -37881,7 +37881,7 @@ function D(r4, e, t, ...n) {
|
|
|
37881
37881
|
function B(r4, e, t, ...n) {
|
|
37882
37882
|
if (t.length === 0)
|
|
37883
37883
|
return [];
|
|
37884
|
-
let [{ value: i2 }] = q(t, 1), o =
|
|
37884
|
+
let [{ value: i2 }] = q(t, 1), o = I(i2), s = o ? i2.value : i2;
|
|
37885
37885
|
if (typeof s != "number")
|
|
37886
37886
|
throw new Error("Math function cannot be called with non-number");
|
|
37887
37887
|
let a = r4(s, ...n.map((p2) => p2.eval(e, t)[0]?.value)), c2 = o ? l.Quantity : t[0].type, u2 = o ? { ...i2, value: a } : a;
|
|
@@ -37912,15 +37912,20 @@ var j = class {
|
|
|
37912
37912
|
this.name = e;
|
|
37913
37913
|
}
|
|
37914
37914
|
eval(e, t) {
|
|
37915
|
-
|
|
37916
|
-
return t;
|
|
37917
|
-
let n = e.variables[this.name];
|
|
37915
|
+
let n = this.getVariable(e);
|
|
37918
37916
|
if (n)
|
|
37919
37917
|
return [n];
|
|
37920
37918
|
if (this.name.startsWith("%"))
|
|
37921
37919
|
throw new Error(`Undefined variable ${this.name}`);
|
|
37922
37920
|
return t.flatMap((i2) => this.evalValue(i2)).filter((i2) => i2?.value !== void 0);
|
|
37923
37921
|
}
|
|
37922
|
+
getVariable(e) {
|
|
37923
|
+
let t = e.variables[this.name];
|
|
37924
|
+
if (t !== void 0)
|
|
37925
|
+
return t;
|
|
37926
|
+
if (e.parent)
|
|
37927
|
+
return this.getVariable(e.parent);
|
|
37928
|
+
}
|
|
37924
37929
|
evalValue(e) {
|
|
37925
37930
|
let t = e.value;
|
|
37926
37931
|
if (!(!t || typeof t != "object"))
|
|
@@ -37960,7 +37965,7 @@ var re = class extends H {
|
|
|
37960
37965
|
};
|
|
37961
37966
|
var R = class extends H {
|
|
37962
37967
|
};
|
|
37963
|
-
var
|
|
37968
|
+
var O = class extends R {
|
|
37964
37969
|
constructor(t, n, i2, o) {
|
|
37965
37970
|
super(t, n, i2);
|
|
37966
37971
|
this.impl = o;
|
|
@@ -37972,8 +37977,8 @@ var I = class extends R {
|
|
|
37972
37977
|
let o = this.right.eval(t, n);
|
|
37973
37978
|
if (o.length !== 1)
|
|
37974
37979
|
return [];
|
|
37975
|
-
let s = i2[0].value, a = o[0].value, c2 =
|
|
37976
|
-
return typeof p2 == "boolean" ? f(p2) :
|
|
37980
|
+
let s = i2[0].value, a = o[0].value, c2 = I(s) ? s.value : s, u2 = I(a) ? a.value : a, p2 = this.impl(c2, u2);
|
|
37981
|
+
return typeof p2 == "boolean" ? f(p2) : I(s) ? [{ type: l.Quantity, value: { ...s, value: p2 } }] : [y(p2)];
|
|
37977
37982
|
}
|
|
37978
37983
|
};
|
|
37979
37984
|
var nt = class extends H {
|
|
@@ -38168,7 +38173,7 @@ function ho(r4) {
|
|
|
38168
38173
|
return n?.startsWith("'") && n.endsWith("'") ? n = n.substring(1, n.length - 1) : n = "{" + n + "}", { value: t, unit: n };
|
|
38169
38174
|
}
|
|
38170
38175
|
function Ae() {
|
|
38171
|
-
return new _e().registerPrefix("String", { parse: (r4, e) => new M({ type: l.string, value: e.value }) }).registerPrefix("DateTime", { parse: (r4, e) => new M({ type: l.dateTime, value: he(e.value) }) }).registerPrefix("Quantity", { parse: (r4, e) => new M({ type: l.Quantity, value: ho(e.value) }) }).registerPrefix("Number", { parse: (r4, e) => new M({ type: e.value.includes(".") ? l.decimal : l.integer, value: parseFloat(e.value) }) }).registerPrefix("true", { parse: () => new M({ type: l.boolean, value: true }) }).registerPrefix("false", { parse: () => new M({ type: l.boolean, value: false }) }).registerPrefix("Symbol", { parse: (r4, e) => new j(e.value) }).registerPrefix("{}", { parse: () => new tt() }).registerPrefix("(", po).registerInfix("[", fo).registerInfix("(", mo).prefix("+", h.UnaryAdd, (r4, e) => new rt("+", e, (t) => t)).prefix("-", h.UnarySubtract, (r4, e) => new
|
|
38176
|
+
return new _e().registerPrefix("String", { parse: (r4, e) => new M({ type: l.string, value: e.value }) }).registerPrefix("DateTime", { parse: (r4, e) => new M({ type: l.dateTime, value: he(e.value) }) }).registerPrefix("Quantity", { parse: (r4, e) => new M({ type: l.Quantity, value: ho(e.value) }) }).registerPrefix("Number", { parse: (r4, e) => new M({ type: e.value.includes(".") ? l.decimal : l.integer, value: parseFloat(e.value) }) }).registerPrefix("true", { parse: () => new M({ type: l.boolean, value: true }) }).registerPrefix("false", { parse: () => new M({ type: l.boolean, value: false }) }).registerPrefix("Symbol", { parse: (r4, e) => new j(e.value) }).registerPrefix("{}", { parse: () => new tt() }).registerPrefix("(", po).registerInfix("[", fo).registerInfix("(", mo).prefix("+", h.UnaryAdd, (r4, e) => new rt("+", e, (t) => t)).prefix("-", h.UnarySubtract, (r4, e) => new O("-", e, e, (t, n) => -n)).infixLeft(".", h.Dot, (r4, e, t) => new W(r4, t)).infixLeft("/", h.Divide, (r4, e, t) => new O("/", r4, t, (n, i2) => n / i2)).infixLeft("*", h.Multiply, (r4, e, t) => new O("*", r4, t, (n, i2) => n * i2)).infixLeft("+", h.Add, (r4, e, t) => new O("+", r4, t, (n, i2) => n + i2)).infixLeft("-", h.Subtract, (r4, e, t) => new O("-", r4, t, (n, i2) => n - i2)).infixLeft("|", h.Union, (r4, e, t) => new ye(r4, t)).infixLeft("=", h.Equals, (r4, e, t) => new st(r4, t)).infixLeft("!=", h.NotEquals, (r4, e, t) => new at(r4, t)).infixLeft("~", h.Equivalent, (r4, e, t) => new ct(r4, t)).infixLeft("!~", h.NotEquivalent, (r4, e, t) => new ut(r4, t)).infixLeft("<", h.LessThan, (r4, e, t) => new O("<", r4, t, (n, i2) => n < i2)).infixLeft("<=", h.LessThanOrEquals, (r4, e, t) => new O("<=", r4, t, (n, i2) => n <= i2)).infixLeft(">", h.GreaterThan, (r4, e, t) => new O(">", r4, t, (n, i2) => n > i2)).infixLeft(">=", h.GreaterThanOrEquals, (r4, e, t) => new O(">=", r4, t, (n, i2) => n >= i2)).infixLeft("&", h.Ampersand, (r4, e, t) => new nt(r4, t)).infixLeft("and", h.And, (r4, e, t) => new lt(r4, t)).infixLeft("as", h.As, (r4, e, t) => new re(r4, t)).infixLeft("contains", h.Contains, (r4, e, t) => new it(r4, t)).infixLeft("div", h.Divide, (r4, e, t) => new O("div", r4, t, (n, i2) => n / i2 | 0)).infixLeft("in", h.In, (r4, e, t) => new ot(r4, t)).infixLeft("is", h.Is, (r4, e, t) => new ne(r4, t)).infixLeft("mod", h.Modulo, (r4, e, t) => new O("mod", r4, t, (n, i2) => n % i2)).infixLeft("or", h.Or, (r4, e, t) => new pt(r4, t)).infixLeft("xor", h.Xor, (r4, e, t) => new dt(r4, t)).infixLeft("implies", h.Implies, (r4, e, t) => new ft(r4, t));
|
|
38172
38177
|
}
|
|
38173
38178
|
var yo = Ae();
|
|
38174
38179
|
var En = ((p2) => (p2.BOOLEAN = "BOOLEAN", p2.NUMBER = "NUMBER", p2.QUANTITY = "QUANTITY", p2.TEXT = "TEXT", p2.REFERENCE = "REFERENCE", p2.CANONICAL = "CANONICAL", p2.DATE = "DATE", p2.DATETIME = "DATETIME", p2.PERIOD = "PERIOD", p2.UUID = "UUID", p2))(En || {});
|
|
@@ -38226,7 +38231,7 @@ var ht = class {
|
|
|
38226
38231
|
}
|
|
38227
38232
|
};
|
|
38228
38233
|
var N = { CSS: "text/css", DICOM: "application/dicom", FAVICON: "image/vnd.microsoft.icon", FHIR_JSON: "application/fhir+json", FORM_URL_ENCODED: "application/x-www-form-urlencoded", HL7_V2: "x-application/hl7-v2+er7", HTML: "text/html", JAVASCRIPT: "text/javascript", JSON: "application/json", JSON_PATCH: "application/json-patch+json", PNG: "image/png", SCIM_JSON: "application/scim+json", SVG: "image/svg+xml", TEXT: "text/plain", TYPESCRIPT: "text/typescript", PING: "x-application/ping" };
|
|
38229
|
-
var
|
|
38234
|
+
var Oe = class {
|
|
38230
38235
|
constructor() {
|
|
38231
38236
|
this.listeners = {};
|
|
38232
38237
|
}
|
|
@@ -38250,10 +38255,13 @@ var Ie = class {
|
|
|
38250
38255
|
n.call(this, e);
|
|
38251
38256
|
return !e.defaultPrevented;
|
|
38252
38257
|
}
|
|
38258
|
+
removeAllListeners() {
|
|
38259
|
+
this.listeners = {};
|
|
38260
|
+
}
|
|
38253
38261
|
};
|
|
38254
38262
|
var se = class {
|
|
38255
38263
|
constructor() {
|
|
38256
|
-
this.emitter = new
|
|
38264
|
+
this.emitter = new Oe();
|
|
38257
38265
|
}
|
|
38258
38266
|
dispatchEvent(e) {
|
|
38259
38267
|
this.emitter.dispatchEvent(e);
|
|
@@ -38264,6 +38272,9 @@ var se = class {
|
|
|
38264
38272
|
removeEventListener(e, t) {
|
|
38265
38273
|
this.emitter.removeEventListener(e, t);
|
|
38266
38274
|
}
|
|
38275
|
+
removeAllListeners() {
|
|
38276
|
+
this.emitter.removeAllListeners();
|
|
38277
|
+
}
|
|
38267
38278
|
};
|
|
38268
38279
|
var fr = { "Patient-open": "Patient-open", "Patient-close": "Patient-close", "ImagingStudy-open": "ImagingStudy-open", "ImagingStudy-close": "ImagingStudy-close", "Encounter-open": "Encounter-open", "Encounter-close": "Encounter-close", "DiagnosticReport-open": "DiagnosticReport-open", "DiagnosticReport-close": "DiagnosticReport-close", "DiagnosticReport-select": "DiagnosticReport-select", "DiagnosticReport-update": "DiagnosticReport-update", syncerror: "syncerror" };
|
|
38269
38280
|
var es = ["Patient", "Encounter", "ImagingStudy", "DiagnosticReport", "OperationOutcome", "Bundle"];
|
|
@@ -38558,17 +38569,17 @@ var vr = class {
|
|
|
38558
38569
|
}
|
|
38559
38570
|
};
|
|
38560
38571
|
var Tt = class {
|
|
38561
|
-
constructor(e, t) {
|
|
38572
|
+
constructor(e, t, n) {
|
|
38562
38573
|
if (!(e instanceof St))
|
|
38563
38574
|
throw new d(m("First arg of constructor should be a `MedplumClient`"));
|
|
38564
|
-
let
|
|
38575
|
+
let i2;
|
|
38565
38576
|
try {
|
|
38566
|
-
|
|
38577
|
+
i2 = new URL(t).toString();
|
|
38567
38578
|
} catch {
|
|
38568
38579
|
throw new d(m("Not a valid URL"));
|
|
38569
38580
|
}
|
|
38570
|
-
let
|
|
38571
|
-
this.medplum = e, this.ws =
|
|
38581
|
+
let o = n?.RobustWebSocket ? new n.RobustWebSocket(i2) : new xr(i2);
|
|
38582
|
+
this.medplum = e, this.ws = o, this.masterSubEmitter = new Ve(), this.criteriaEntries = /* @__PURE__ */ new Map(), this.criteriaEntriesBySubscriptionId = /* @__PURE__ */ new Map(), this.wsClosed = false, this.setupWebSocketListeners();
|
|
38572
38583
|
}
|
|
38573
38584
|
setupWebSocketListeners() {
|
|
38574
38585
|
let e = this.ws;
|
|
@@ -38669,7 +38680,7 @@ var ds = ((o) => (o.ClientCredentials = "client_credentials", o.AuthorizationCod
|
|
|
38669
38680
|
var fs = ((o) => (o.AccessToken = "urn:ietf:params:oauth:token-type:access_token", o.RefreshToken = "urn:ietf:params:oauth:token-type:refresh_token", o.IdToken = "urn:ietf:params:oauth:token-type:id_token", o.Saml1Token = "urn:ietf:params:oauth:token-type:saml1", o.Saml2Token = "urn:ietf:params:oauth:token-type:saml2", o))(fs || {});
|
|
38670
38681
|
var ms = ((o) => (o.ClientSecretBasic = "client_secret_basic", o.ClientSecretPost = "client_secret_post", o.ClientSecretJwt = "client_secret_jwt", o.PrivateKeyJwt = "private_key_jwt", o.None = "none", o))(ms || {});
|
|
38671
38682
|
var hs = ((e) => (e.JwtBearer = "urn:ietf:params:oauth:client-assertion-type:jwt-bearer", e))(hs || {});
|
|
38672
|
-
var St = class extends
|
|
38683
|
+
var St = class extends Oe {
|
|
38673
38684
|
constructor(t) {
|
|
38674
38685
|
super();
|
|
38675
38686
|
this.initComplete = true;
|
|
@@ -38678,10 +38689,12 @@ var St = class extends Ie {
|
|
|
38678
38689
|
if (this.options = t ?? {}, this.fetch = t?.fetch ?? ys(), this.storage = t?.storage ?? new ke(), this.createPdfImpl = t?.createPdf, this.baseUrl = Wn(t?.baseUrl ?? cs), this.fhirBaseUrl = Wn(Et(this.baseUrl, t?.fhirUrlPath ?? "fhir/R4/")), this.authorizeUrl = Et(this.baseUrl, t?.authorizeUrl ?? "oauth2/authorize"), this.tokenUrl = Et(this.baseUrl, t?.tokenUrl ?? "oauth2/token"), this.logoutUrl = Et(this.baseUrl, t?.logoutUrl ?? "oauth2/logout"), this.clientId = t?.clientId ?? "", this.clientSecret = t?.clientSecret ?? "", this.onUnauthenticated = t?.onUnauthenticated, this.cacheTime = t?.cacheTime ?? (typeof window > "u" ? ps : ls), this.cacheTime > 0 ? this.requestCache = new ht(t?.resourceCacheSize ?? us) : this.requestCache = void 0, t?.autoBatchTime ? (this.autoBatchTime = t.autoBatchTime, this.autoBatchQueue = []) : (this.autoBatchTime = 0, this.autoBatchQueue = void 0), t?.accessToken)
|
|
38679
38690
|
this.setAccessToken(t.accessToken), this.initPromise = Promise.resolve();
|
|
38680
38691
|
else if (this.storage.getInitPromise !== void 0) {
|
|
38681
|
-
let n = this.storage.getInitPromise(), i2 = new Promise((o) => {
|
|
38692
|
+
let n = this.storage.getInitPromise(), i2 = new Promise((o, s) => {
|
|
38682
38693
|
n.then(() => {
|
|
38683
|
-
this.attemptResumeActiveLogin().then(o).catch(
|
|
38684
|
-
|
|
38694
|
+
this.attemptResumeActiveLogin().then(o).catch((a) => {
|
|
38695
|
+
console.error(a), o();
|
|
38696
|
+
}), this.initComplete = true;
|
|
38697
|
+
}).catch(s);
|
|
38685
38698
|
});
|
|
38686
38699
|
this.initPromise = i2, this.initComplete = false;
|
|
38687
38700
|
} else
|
|
@@ -39410,7 +39423,7 @@ function Tr(r4) {
|
|
|
39410
39423
|
return Object.assign(e, { bundle: r4 });
|
|
39411
39424
|
}
|
|
39412
39425
|
var Ps = [...we, "->", "<<", ">>", "=="];
|
|
39413
|
-
var
|
|
39426
|
+
var Is = Ae().registerInfix("->", { precedence: h.Arrow }).registerInfix(";", { precedence: h.Semicolon });
|
|
39414
39427
|
var Qs = [...we, "eq", "ne", "co"];
|
|
39415
39428
|
var Ks = Ae();
|
|
39416
39429
|
var J = class {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medplum/agent",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.11",
|
|
4
4
|
"description": "Medplum Agent",
|
|
5
5
|
"homepage": "https://www.medplum.com/",
|
|
6
6
|
"bugs": {
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
"test": "jest"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@medplum/core": "3.0.
|
|
27
|
-
"@medplum/hl7": "3.0.
|
|
26
|
+
"@medplum/core": "3.0.11",
|
|
27
|
+
"@medplum/hl7": "3.0.11",
|
|
28
28
|
"dcmjs-dimse": "0.1.27",
|
|
29
29
|
"node-windows": "1.0.0-beta.8",
|
|
30
30
|
"ws": "8.16.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@medplum/fhirtypes": "3.0.
|
|
34
|
-
"@medplum/mock": "3.0.
|
|
33
|
+
"@medplum/fhirtypes": "3.0.11",
|
|
34
|
+
"@medplum/mock": "3.0.11",
|
|
35
35
|
"@types/async-eventemitter": "0.2.4",
|
|
36
36
|
"@types/node-windows": "0.1.6",
|
|
37
37
|
"@types/ws": "8.5.10",
|