@medplum/agent 5.0.6 → 5.0.8

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.
Files changed (2) hide show
  1. package/dist/cjs/index.cjs +170 -167
  2. package/package.json +5 -5
@@ -5066,7 +5066,7 @@ var require_range = __commonJS({
5066
5066
  var require_comparator = __commonJS({
5067
5067
  "node_modules/semver/classes/comparator.js"(exports2, module2) {
5068
5068
  "use strict";
5069
- var ANY = Symbol("SemVer ANY");
5069
+ var ANY = /* @__PURE__ */ Symbol("SemVer ANY");
5070
5070
  var Comparator = class _Comparator {
5071
5071
  static get ANY() {
5072
5072
  return ANY;
@@ -5757,10 +5757,10 @@ var require_constants2 = __commonJS({
5757
5757
  EMPTY_BUFFER: Buffer.alloc(0),
5758
5758
  GUID: "258EAFA5-E914-47DA-95CA-C5AB0DC85B11",
5759
5759
  hasBlob,
5760
- kForOnEventAttribute: Symbol("kIsForOnEventAttribute"),
5761
- kListener: Symbol("kListener"),
5762
- kStatusCode: Symbol("status-code"),
5763
- kWebSocket: Symbol("websocket"),
5760
+ kForOnEventAttribute: /* @__PURE__ */ Symbol("kIsForOnEventAttribute"),
5761
+ kListener: /* @__PURE__ */ Symbol("kListener"),
5762
+ kStatusCode: /* @__PURE__ */ Symbol("status-code"),
5763
+ kWebSocket: /* @__PURE__ */ Symbol("websocket"),
5764
5764
  NOOP: () => {
5765
5765
  }
5766
5766
  };
@@ -5846,8 +5846,8 @@ var require_buffer_util = __commonJS({
5846
5846
  var require_limiter = __commonJS({
5847
5847
  "../../node_modules/ws/lib/limiter.js"(exports2, module2) {
5848
5848
  "use strict";
5849
- var kDone = Symbol("kDone");
5850
- var kRun = Symbol("kRun");
5849
+ var kDone = /* @__PURE__ */ Symbol("kDone");
5850
+ var kRun = /* @__PURE__ */ Symbol("kRun");
5851
5851
  var Limiter = class {
5852
5852
  /**
5853
5853
  * Creates a new `Limiter`.
@@ -5902,11 +5902,11 @@ var require_permessage_deflate = __commonJS({
5902
5902
  var { kStatusCode } = require_constants2();
5903
5903
  var FastBuffer = Buffer[Symbol.species];
5904
5904
  var TRAILER = Buffer.from([0, 0, 255, 255]);
5905
- var kPerMessageDeflate = Symbol("permessage-deflate");
5906
- var kTotalLength = Symbol("total-length");
5907
- var kCallback = Symbol("callback");
5908
- var kBuffers = Symbol("buffers");
5909
- var kError = Symbol("error");
5905
+ var kPerMessageDeflate = /* @__PURE__ */ Symbol("permessage-deflate");
5906
+ var kTotalLength = /* @__PURE__ */ Symbol("total-length");
5907
+ var kCallback = /* @__PURE__ */ Symbol("callback");
5908
+ var kBuffers = /* @__PURE__ */ Symbol("buffers");
5909
+ var kError = /* @__PURE__ */ Symbol("error");
5910
5910
  var zlibLimiter;
5911
5911
  var PerMessageDeflate = class {
5912
5912
  /**
@@ -7078,7 +7078,7 @@ var require_sender = __commonJS({
7078
7078
  var { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants2();
7079
7079
  var { isBlob, isValidStatusCode } = require_validation();
7080
7080
  var { mask: applyMask, toBuffer } = require_buffer_util();
7081
- var kByteLength = Symbol("kByteLength");
7081
+ var kByteLength = /* @__PURE__ */ Symbol("kByteLength");
7082
7082
  var maskBuffer = Buffer.alloc(4);
7083
7083
  var RANDOM_POOL_SIZE = 8 * 1024;
7084
7084
  var randomPool;
@@ -7561,14 +7561,14 @@ var require_event_target = __commonJS({
7561
7561
  "../../node_modules/ws/lib/event-target.js"(exports2, module2) {
7562
7562
  "use strict";
7563
7563
  var { kForOnEventAttribute, kListener } = require_constants2();
7564
- var kCode = Symbol("kCode");
7565
- var kData = Symbol("kData");
7566
- var kError = Symbol("kError");
7567
- var kMessage = Symbol("kMessage");
7568
- var kReason = Symbol("kReason");
7569
- var kTarget = Symbol("kTarget");
7570
- var kType = Symbol("kType");
7571
- var kWasClean = Symbol("kWasClean");
7564
+ var kCode = /* @__PURE__ */ Symbol("kCode");
7565
+ var kData = /* @__PURE__ */ Symbol("kData");
7566
+ var kError = /* @__PURE__ */ Symbol("kError");
7567
+ var kMessage = /* @__PURE__ */ Symbol("kMessage");
7568
+ var kReason = /* @__PURE__ */ Symbol("kReason");
7569
+ var kTarget = /* @__PURE__ */ Symbol("kTarget");
7570
+ var kType = /* @__PURE__ */ Symbol("kType");
7571
+ var kWasClean = /* @__PURE__ */ Symbol("kWasClean");
7572
7572
  var Event2 = class {
7573
7573
  /**
7574
7574
  * Create a new `Event`.
@@ -7970,7 +7970,7 @@ var require_websocket = __commonJS({
7970
7970
  var { format, parse } = require_extension();
7971
7971
  var { toBuffer } = require_buffer_util();
7972
7972
  var closeTimeout = 30 * 1e3;
7973
- var kAborted = Symbol("kAborted");
7973
+ var kAborted = /* @__PURE__ */ Symbol("kAborted");
7974
7974
  var protocolVersions = [8, 13];
7975
7975
  var readyStates = ["CONNECTING", "OPEN", "CLOSING", "CLOSED"];
7976
7976
  var subprotocolRegex = /^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;
@@ -10265,7 +10265,7 @@ var require_dcmjs = __commonJS({
10265
10265
  };
10266
10266
  const compress_block = (s, ltree, dtree) => {
10267
10267
  let dist2;
10268
- let lc;
10268
+ let lc2;
10269
10269
  let sx = 0;
10270
10270
  let code;
10271
10271
  let extra;
@@ -10273,16 +10273,16 @@ var require_dcmjs = __commonJS({
10273
10273
  do {
10274
10274
  dist2 = s.pending_buf[s.sym_buf + sx++] & 255;
10275
10275
  dist2 += (s.pending_buf[s.sym_buf + sx++] & 255) << 8;
10276
- lc = s.pending_buf[s.sym_buf + sx++];
10276
+ lc2 = s.pending_buf[s.sym_buf + sx++];
10277
10277
  if (dist2 === 0) {
10278
- send_code(s, lc, ltree);
10278
+ send_code(s, lc2, ltree);
10279
10279
  } else {
10280
- code = _length_code[lc];
10280
+ code = _length_code[lc2];
10281
10281
  send_code(s, code + LITERALS$1 + 1, ltree);
10282
10282
  extra = extra_lbits[code];
10283
10283
  if (extra !== 0) {
10284
- lc -= base_length[code];
10285
- send_bits(s, lc, extra);
10284
+ lc2 -= base_length[code];
10285
+ send_bits(s, lc2, extra);
10286
10286
  }
10287
10287
  dist2--;
10288
10288
  code = d_code(dist2);
@@ -10567,16 +10567,16 @@ var require_dcmjs = __commonJS({
10567
10567
  bi_windup(s);
10568
10568
  }
10569
10569
  };
10570
- const _tr_tally$1 = (s, dist2, lc) => {
10570
+ const _tr_tally$1 = (s, dist2, lc2) => {
10571
10571
  s.pending_buf[s.sym_buf + s.sym_next++] = dist2;
10572
10572
  s.pending_buf[s.sym_buf + s.sym_next++] = dist2 >> 8;
10573
- s.pending_buf[s.sym_buf + s.sym_next++] = lc;
10573
+ s.pending_buf[s.sym_buf + s.sym_next++] = lc2;
10574
10574
  if (dist2 === 0) {
10575
- s.dyn_ltree[lc * 2]++;
10575
+ s.dyn_ltree[lc2 * 2]++;
10576
10576
  } else {
10577
10577
  s.matches++;
10578
10578
  dist2--;
10579
- s.dyn_ltree[(_length_code[lc] + LITERALS$1 + 1) * 2]++;
10579
+ s.dyn_ltree[(_length_code[lc2] + LITERALS$1 + 1) * 2]++;
10580
10580
  s.dyn_dtree[d_code(dist2) * 2]++;
10581
10581
  }
10582
10582
  return s.sym_next === s.sym_end;
@@ -18622,16 +18622,16 @@ var require_dcmjs = __commonJS({
18622
18622
  };
18623
18623
  ds2.PerFrameFunctionalGroupsSequence.forEach(function(functionalGroup) {
18624
18624
  if (functionalGroup.FrameVOILUT) {
18625
- var wc2 = functionalGroup.FrameVOILUTSequence.WindowCenter;
18625
+ var wc = functionalGroup.FrameVOILUTSequence.WindowCenter;
18626
18626
  var ww = functionalGroup.FrameVOILUTSequence.WindowWidth;
18627
- if (functionalGroup.FrameVOILUTSequence && wc2 && ww) {
18628
- if (Array.isArray(wc2)) {
18629
- wc2 = wc2[0];
18627
+ if (functionalGroup.FrameVOILUTSequence && wc && ww) {
18628
+ if (Array.isArray(wc)) {
18629
+ wc = wc[0];
18630
18630
  }
18631
18631
  if (Array.isArray(ww)) {
18632
18632
  ww = ww[0];
18633
18633
  }
18634
- wcww.center += Number(wc2);
18634
+ wcww.center += Number(wc);
18635
18635
  wcww.width += Number(ww);
18636
18636
  wcww.count++;
18637
18637
  }
@@ -25066,10 +25066,10 @@ var require_dcmjs = __commonJS({
25066
25066
  compression,
25067
25067
  dicomJson
25068
25068
  };
25069
- var _value = Symbol("value");
25070
- var _meaning = Symbol("meaning");
25071
- var _schemeDesignator = Symbol("schemeDesignator");
25072
- var _schemeVersion = Symbol("schemeVersion");
25069
+ var _value = /* @__PURE__ */ Symbol("value");
25070
+ var _meaning = /* @__PURE__ */ Symbol("meaning");
25071
+ var _schemeDesignator = /* @__PURE__ */ Symbol("schemeDesignator");
25072
+ var _schemeVersion = /* @__PURE__ */ Symbol("schemeVersion");
25073
25073
  var Code = /* @__PURE__ */ (function() {
25074
25074
  function Code2(options) {
25075
25075
  _classCallCheck(this, Code2);
@@ -29033,8 +29033,8 @@ var require_util = __commonJS({
29033
29033
  };
29034
29034
  exports2.nearestCommonProto = nearestCommonProto;
29035
29035
  var hardMixProtos = (ingredients, constructor, exclude = []) => {
29036
- var _a2;
29037
- const base = (_a2 = (0, exports2.nearestCommonProto)(...ingredients)) !== null && _a2 !== void 0 ? _a2 : Object.prototype;
29036
+ var _a;
29037
+ const base = (_a = (0, exports2.nearestCommonProto)(...ingredients)) !== null && _a !== void 0 ? _a : Object.prototype;
29038
29038
  const mixedProto = Object.create(base);
29039
29039
  const visitedProtos = (0, exports2.protoChain)(base);
29040
29040
  for (let prototype of ingredients) {
@@ -29164,8 +29164,8 @@ var require_mixin_tracking = __commonJS({
29164
29164
  frontier.forEach((item) => visited.add(item));
29165
29165
  const newFrontier = /* @__PURE__ */ new Set();
29166
29166
  frontier.forEach((item) => {
29167
- var _a2;
29168
- const itemConstituents = (_a2 = mixins.get(item)) !== null && _a2 !== void 0 ? _a2 : (0, util_1.protoChain)(item.prototype).map((proto) => proto.constructor).filter((item2) => item2 !== null);
29167
+ var _a;
29168
+ const itemConstituents = (_a = mixins.get(item)) !== null && _a !== void 0 ? _a : (0, util_1.protoChain)(item.prototype).map((proto) => proto.constructor).filter((item2) => item2 !== null);
29169
29169
  if (itemConstituents)
29170
29170
  itemConstituents.forEach((constituent) => {
29171
29171
  if (!visited.has(constituent) && !frontier.has(constituent))
@@ -29189,37 +29189,37 @@ var require_decorator = __commonJS({
29189
29189
  var util_1 = require_util();
29190
29190
  var mixin_tracking_1 = require_mixin_tracking();
29191
29191
  var mergeObjectsOfDecorators = (o1, o2) => {
29192
- var _a2, _b;
29192
+ var _a, _b;
29193
29193
  const allKeys = (0, util_1.unique)([...Object.getOwnPropertyNames(o1), ...Object.getOwnPropertyNames(o2)]);
29194
29194
  const mergedObject = {};
29195
29195
  for (let key of allKeys)
29196
- mergedObject[key] = (0, util_1.unique)([...(_a2 = o1 === null || o1 === void 0 ? void 0 : o1[key]) !== null && _a2 !== void 0 ? _a2 : [], ...(_b = o2 === null || o2 === void 0 ? void 0 : o2[key]) !== null && _b !== void 0 ? _b : []]);
29196
+ mergedObject[key] = (0, util_1.unique)([...(_a = o1 === null || o1 === void 0 ? void 0 : o1[key]) !== null && _a !== void 0 ? _a : [], ...(_b = o2 === null || o2 === void 0 ? void 0 : o2[key]) !== null && _b !== void 0 ? _b : []]);
29197
29197
  return mergedObject;
29198
29198
  };
29199
29199
  var mergePropertyAndMethodDecorators = (d1, d2) => {
29200
- var _a2, _b, _c2, _d;
29200
+ var _a, _b, _c, _d;
29201
29201
  return {
29202
- property: mergeObjectsOfDecorators((_a2 = d1 === null || d1 === void 0 ? void 0 : d1.property) !== null && _a2 !== void 0 ? _a2 : {}, (_b = d2 === null || d2 === void 0 ? void 0 : d2.property) !== null && _b !== void 0 ? _b : {}),
29203
- method: mergeObjectsOfDecorators((_c2 = d1 === null || d1 === void 0 ? void 0 : d1.method) !== null && _c2 !== void 0 ? _c2 : {}, (_d = d2 === null || d2 === void 0 ? void 0 : d2.method) !== null && _d !== void 0 ? _d : {})
29202
+ property: mergeObjectsOfDecorators((_a = d1 === null || d1 === void 0 ? void 0 : d1.property) !== null && _a !== void 0 ? _a : {}, (_b = d2 === null || d2 === void 0 ? void 0 : d2.property) !== null && _b !== void 0 ? _b : {}),
29203
+ method: mergeObjectsOfDecorators((_c = d1 === null || d1 === void 0 ? void 0 : d1.method) !== null && _c !== void 0 ? _c : {}, (_d = d2 === null || d2 === void 0 ? void 0 : d2.method) !== null && _d !== void 0 ? _d : {})
29204
29204
  };
29205
29205
  };
29206
29206
  var mergeDecorators = (d1, d2) => {
29207
- var _a2, _b, _c2, _d, _e2, _f;
29207
+ var _a, _b, _c, _d, _e2, _f;
29208
29208
  return {
29209
- class: (0, util_1.unique)([...(_a2 = d1 === null || d1 === void 0 ? void 0 : d1.class) !== null && _a2 !== void 0 ? _a2 : [], ...(_b = d2 === null || d2 === void 0 ? void 0 : d2.class) !== null && _b !== void 0 ? _b : []]),
29210
- static: mergePropertyAndMethodDecorators((_c2 = d1 === null || d1 === void 0 ? void 0 : d1.static) !== null && _c2 !== void 0 ? _c2 : {}, (_d = d2 === null || d2 === void 0 ? void 0 : d2.static) !== null && _d !== void 0 ? _d : {}),
29209
+ class: (0, util_1.unique)([...(_a = d1 === null || d1 === void 0 ? void 0 : d1.class) !== null && _a !== void 0 ? _a : [], ...(_b = d2 === null || d2 === void 0 ? void 0 : d2.class) !== null && _b !== void 0 ? _b : []]),
29210
+ static: mergePropertyAndMethodDecorators((_c = d1 === null || d1 === void 0 ? void 0 : d1.static) !== null && _c !== void 0 ? _c : {}, (_d = d2 === null || d2 === void 0 ? void 0 : d2.static) !== null && _d !== void 0 ? _d : {}),
29211
29211
  instance: mergePropertyAndMethodDecorators((_e2 = d1 === null || d1 === void 0 ? void 0 : d1.instance) !== null && _e2 !== void 0 ? _e2 : {}, (_f = d2 === null || d2 === void 0 ? void 0 : d2.instance) !== null && _f !== void 0 ? _f : {})
29212
29212
  };
29213
29213
  };
29214
29214
  var decorators = /* @__PURE__ */ new Map();
29215
29215
  var findAllConstituentClasses = (...classes) => {
29216
- var _a2;
29216
+ var _a;
29217
29217
  const allClasses = /* @__PURE__ */ new Set();
29218
29218
  const frontier = /* @__PURE__ */ new Set([...classes]);
29219
29219
  while (frontier.size > 0) {
29220
29220
  for (let clazz of frontier) {
29221
29221
  const protoChainClasses = (0, util_1.protoChain)(clazz.prototype).map((proto) => proto.constructor);
29222
- const mixinClasses = (_a2 = (0, mixin_tracking_1.getMixinsForClass)(clazz)) !== null && _a2 !== void 0 ? _a2 : [];
29222
+ const mixinClasses = (_a = (0, mixin_tracking_1.getMixinsForClass)(clazz)) !== null && _a !== void 0 ? _a : [];
29223
29223
  const potentiallyNewClasses = [...protoChainClasses, ...mixinClasses];
29224
29224
  const newClasses = potentiallyNewClasses.filter((c2) => !allClasses.has(c2));
29225
29225
  for (let newClass of newClasses)
@@ -29268,16 +29268,16 @@ var require_decorator = __commonJS({
29268
29268
  return decorator(clazz);
29269
29269
  });
29270
29270
  var decorateMember = (decorator) => ((object, key, ...otherArgs) => {
29271
- var _a2, _b, _c2;
29271
+ var _a, _b, _c;
29272
29272
  const decoratorTargetType = typeof object === "function" ? "static" : "instance";
29273
29273
  const decoratorType = typeof object[key] === "function" ? "method" : "property";
29274
29274
  const clazz = decoratorTargetType === "static" ? object : object.constructor;
29275
29275
  const decoratorsForClass = (0, exports2.getDecoratorsForClass)(clazz);
29276
- const decoratorsForTargetType = (_a2 = decoratorsForClass === null || decoratorsForClass === void 0 ? void 0 : decoratorsForClass[decoratorTargetType]) !== null && _a2 !== void 0 ? _a2 : {};
29276
+ const decoratorsForTargetType = (_a = decoratorsForClass === null || decoratorsForClass === void 0 ? void 0 : decoratorsForClass[decoratorTargetType]) !== null && _a !== void 0 ? _a : {};
29277
29277
  decoratorsForClass[decoratorTargetType] = decoratorsForTargetType;
29278
29278
  let decoratorsForType = (_b = decoratorsForTargetType === null || decoratorsForTargetType === void 0 ? void 0 : decoratorsForTargetType[decoratorType]) !== null && _b !== void 0 ? _b : {};
29279
29279
  decoratorsForTargetType[decoratorType] = decoratorsForType;
29280
- let decoratorsForKey = (_c2 = decoratorsForType === null || decoratorsForType === void 0 ? void 0 : decoratorsForType[key]) !== null && _c2 !== void 0 ? _c2 : [];
29280
+ let decoratorsForKey = (_c = decoratorsForType === null || decoratorsForType === void 0 ? void 0 : decoratorsForType[key]) !== null && _c !== void 0 ? _c : [];
29281
29281
  decoratorsForType[key] = decoratorsForKey;
29282
29282
  decoratorsForKey.push(decorator);
29283
29283
  return decorator(object, key, ...otherArgs);
@@ -29303,7 +29303,7 @@ var require_mixins = __commonJS({
29303
29303
  var decorator_1 = require_decorator();
29304
29304
  var mixin_tracking_1 = require_mixin_tracking();
29305
29305
  function Mixin(...constructors) {
29306
- var _a2, _b, _c2;
29306
+ var _a, _b, _c;
29307
29307
  const prototypes = constructors.map((constructor) => constructor.prototype);
29308
29308
  const initFunctionName = settings_1.settings.initFunction;
29309
29309
  if (initFunctionName !== null) {
@@ -29326,14 +29326,14 @@ var require_mixins = __commonJS({
29326
29326
  let DecoratedMixedClass = MixedClass;
29327
29327
  if (settings_1.settings.decoratorInheritance !== "none") {
29328
29328
  const classDecorators = settings_1.settings.decoratorInheritance === "deep" ? (0, decorator_1.deepDecoratorSearch)(...constructors) : (0, decorator_1.directDecoratorSearch)(...constructors);
29329
- for (let decorator of (_a2 = classDecorators === null || classDecorators === void 0 ? void 0 : classDecorators.class) !== null && _a2 !== void 0 ? _a2 : []) {
29329
+ for (let decorator of (_a = classDecorators === null || classDecorators === void 0 ? void 0 : classDecorators.class) !== null && _a !== void 0 ? _a : []) {
29330
29330
  const result = decorator(DecoratedMixedClass);
29331
29331
  if (result) {
29332
29332
  DecoratedMixedClass = result;
29333
29333
  }
29334
29334
  }
29335
29335
  applyPropAndMethodDecorators((_b = classDecorators === null || classDecorators === void 0 ? void 0 : classDecorators.static) !== null && _b !== void 0 ? _b : {}, DecoratedMixedClass);
29336
- applyPropAndMethodDecorators((_c2 = classDecorators === null || classDecorators === void 0 ? void 0 : classDecorators.instance) !== null && _c2 !== void 0 ? _c2 : {}, DecoratedMixedClass.prototype);
29336
+ applyPropAndMethodDecorators((_c = classDecorators === null || classDecorators === void 0 ? void 0 : classDecorators.instance) !== null && _c !== void 0 ? _c : {}, DecoratedMixedClass.prototype);
29337
29337
  }
29338
29338
  (0, mixin_tracking_1.registerMixins)(DecoratedMixedClass, constructors);
29339
29339
  return DecoratedMixedClass;
@@ -30303,7 +30303,7 @@ var require_dcmjs2 = __commonJS({
30303
30303
  };
30304
30304
  const compress_block = (s, ltree, dtree) => {
30305
30305
  let dist2;
30306
- let lc;
30306
+ let lc2;
30307
30307
  let sx = 0;
30308
30308
  let code;
30309
30309
  let extra;
@@ -30311,16 +30311,16 @@ var require_dcmjs2 = __commonJS({
30311
30311
  do {
30312
30312
  dist2 = s.pending_buf[s.sym_buf + sx++] & 255;
30313
30313
  dist2 += (s.pending_buf[s.sym_buf + sx++] & 255) << 8;
30314
- lc = s.pending_buf[s.sym_buf + sx++];
30314
+ lc2 = s.pending_buf[s.sym_buf + sx++];
30315
30315
  if (dist2 === 0) {
30316
- send_code(s, lc, ltree);
30316
+ send_code(s, lc2, ltree);
30317
30317
  } else {
30318
- code = _length_code[lc];
30318
+ code = _length_code[lc2];
30319
30319
  send_code(s, code + LITERALS$1 + 1, ltree);
30320
30320
  extra = extra_lbits[code];
30321
30321
  if (extra !== 0) {
30322
- lc -= base_length[code];
30323
- send_bits(s, lc, extra);
30322
+ lc2 -= base_length[code];
30323
+ send_bits(s, lc2, extra);
30324
30324
  }
30325
30325
  dist2--;
30326
30326
  code = d_code(dist2);
@@ -30605,16 +30605,16 @@ var require_dcmjs2 = __commonJS({
30605
30605
  bi_windup(s);
30606
30606
  }
30607
30607
  };
30608
- const _tr_tally$1 = (s, dist2, lc) => {
30608
+ const _tr_tally$1 = (s, dist2, lc2) => {
30609
30609
  s.pending_buf[s.sym_buf + s.sym_next++] = dist2;
30610
30610
  s.pending_buf[s.sym_buf + s.sym_next++] = dist2 >> 8;
30611
- s.pending_buf[s.sym_buf + s.sym_next++] = lc;
30611
+ s.pending_buf[s.sym_buf + s.sym_next++] = lc2;
30612
30612
  if (dist2 === 0) {
30613
- s.dyn_ltree[lc * 2]++;
30613
+ s.dyn_ltree[lc2 * 2]++;
30614
30614
  } else {
30615
30615
  s.matches++;
30616
30616
  dist2--;
30617
- s.dyn_ltree[(_length_code[lc] + LITERALS$1 + 1) * 2]++;
30617
+ s.dyn_ltree[(_length_code[lc2] + LITERALS$1 + 1) * 2]++;
30618
30618
  s.dyn_dtree[d_code(dist2) * 2]++;
30619
30619
  }
30620
30620
  return s.sym_next === s.sym_end;
@@ -37786,16 +37786,16 @@ var require_dcmjs2 = __commonJS({
37786
37786
  };
37787
37787
  ds2.PerFrameFunctionalGroupsSequence.forEach(function(functionalGroup) {
37788
37788
  if (functionalGroup.FrameVOILUT) {
37789
- var wc2 = functionalGroup.FrameVOILUTSequence.WindowCenter;
37789
+ var wc = functionalGroup.FrameVOILUTSequence.WindowCenter;
37790
37790
  var ww = functionalGroup.FrameVOILUTSequence.WindowWidth;
37791
- if (functionalGroup.FrameVOILUTSequence && wc2 && ww) {
37792
- if (Array.isArray(wc2)) {
37793
- wc2 = wc2[0];
37791
+ if (functionalGroup.FrameVOILUTSequence && wc && ww) {
37792
+ if (Array.isArray(wc)) {
37793
+ wc = wc[0];
37794
37794
  }
37795
37795
  if (Array.isArray(ww)) {
37796
37796
  ww = ww[0];
37797
37797
  }
37798
- wcww.center += Number(wc2);
37798
+ wcww.center += Number(wc);
37799
37799
  wcww.width += Number(ww);
37800
37800
  wcww.count++;
37801
37801
  }
@@ -44230,10 +44230,10 @@ var require_dcmjs2 = __commonJS({
44230
44230
  compression,
44231
44231
  dicomJson
44232
44232
  };
44233
- var _value = Symbol("value");
44234
- var _meaning = Symbol("meaning");
44235
- var _schemeDesignator = Symbol("schemeDesignator");
44236
- var _schemeVersion = Symbol("schemeVersion");
44233
+ var _value = /* @__PURE__ */ Symbol("value");
44234
+ var _meaning = /* @__PURE__ */ Symbol("meaning");
44235
+ var _schemeDesignator = /* @__PURE__ */ Symbol("schemeDesignator");
44236
+ var _schemeVersion = /* @__PURE__ */ Symbol("schemeVersion");
44237
44237
  var Code = /* @__PURE__ */ (function() {
44238
44238
  function Code2(options) {
44239
44239
  _classCallCheck(this, Code2);
@@ -52498,13 +52498,13 @@ var require_triple_beam = __commonJS({
52498
52498
  "../../node_modules/triple-beam/index.js"(exports2) {
52499
52499
  "use strict";
52500
52500
  Object.defineProperty(exports2, "LEVEL", {
52501
- value: Symbol.for("level")
52501
+ value: /* @__PURE__ */ Symbol.for("level")
52502
52502
  });
52503
52503
  Object.defineProperty(exports2, "MESSAGE", {
52504
- value: Symbol.for("message")
52504
+ value: /* @__PURE__ */ Symbol.for("message")
52505
52505
  });
52506
52506
  Object.defineProperty(exports2, "SPLAT", {
52507
- value: Symbol.for("splat")
52507
+ value: /* @__PURE__ */ Symbol.for("splat")
52508
52508
  });
52509
52509
  Object.defineProperty(exports2, "configs", {
52510
52510
  value: require_config()
@@ -53807,8 +53807,8 @@ var require_fecha_umd = __commonJS({
53807
53807
  for (var _i2 = 1; _i2 < arguments.length; _i2++) {
53808
53808
  args[_i2 - 1] = arguments[_i2];
53809
53809
  }
53810
- for (var _a2 = 0, args_1 = args; _a2 < args_1.length; _a2++) {
53811
- var obj = args_1[_a2];
53810
+ for (var _a = 0, args_1 = args; _a < args_1.length; _a++) {
53811
+ var obj = args_1[_a];
53812
53812
  for (var key in obj) {
53813
53813
  origObj[key] = obj[key];
53814
53814
  }
@@ -54129,7 +54129,7 @@ var require_fecha_umd = __commonJS({
54129
54129
  }
54130
54130
  var combinedI18nSettings = assign(assign({}, globalI18n), i18n);
54131
54131
  for (var i = 1; i < matches.length; i++) {
54132
- var _a2 = parseInfo[i - 1], field = _a2[0], parser = _a2[2];
54132
+ var _a = parseInfo[i - 1], field = _a[0], parser = _a[2];
54133
54133
  var value = parser ? parser(matches[i], combinedI18nSettings) : +matches[i];
54134
54134
  if (value == null) {
54135
54135
  return null;
@@ -55345,13 +55345,13 @@ var require_async_iterator = __commonJS({
55345
55345
  return (hint === "string" ? String : Number)(input);
55346
55346
  }
55347
55347
  var finished = require_end_of_stream();
55348
- var kLastResolve = Symbol("lastResolve");
55349
- var kLastReject = Symbol("lastReject");
55350
- var kError = Symbol("error");
55351
- var kEnded = Symbol("ended");
55352
- var kLastPromise = Symbol("lastPromise");
55353
- var kHandlePromise = Symbol("handlePromise");
55354
- var kStream = Symbol("stream");
55348
+ var kLastResolve = /* @__PURE__ */ Symbol("lastResolve");
55349
+ var kLastReject = /* @__PURE__ */ Symbol("lastReject");
55350
+ var kError = /* @__PURE__ */ Symbol("error");
55351
+ var kEnded = /* @__PURE__ */ Symbol("ended");
55352
+ var kLastPromise = /* @__PURE__ */ Symbol("lastPromise");
55353
+ var kHandlePromise = /* @__PURE__ */ Symbol("handlePromise");
55354
+ var kStream = /* @__PURE__ */ Symbol("stream");
55355
55355
  function createIterResult(value, done) {
55356
55356
  return {
55357
55357
  value,
@@ -66254,7 +66254,7 @@ var require_moment = __commonJS({
66254
66254
  proto.toISOString = toISOString;
66255
66255
  proto.inspect = inspect;
66256
66256
  if (typeof Symbol !== "undefined" && Symbol.for != null) {
66257
- proto[Symbol.for("nodejs.util.inspect.custom")] = function() {
66257
+ proto[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = function() {
66258
66258
  return "Moment<" + this.format() + ">";
66259
66259
  };
66260
66260
  }
@@ -68256,7 +68256,7 @@ function fi(r6) {
68256
68256
  return typeof r6 == "object" && !Array.isArray(r6) && !(r6 instanceof URLSearchParams) && (r6 = Object.fromEntries(Object.entries(r6).filter((e) => e[1] !== void 0))), new URLSearchParams(r6).toString();
68257
68257
  }
68258
68258
  var ds = /^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-_]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-_]*[A-Za-z0-9])$/;
68259
- function ql(r6) {
68259
+ function jl(r6) {
68260
68260
  return ds.test(r6);
68261
68261
  }
68262
68262
  function Xe(r6, e) {
@@ -68907,7 +68907,7 @@ var Z = class {
68907
68907
  }
68908
68908
  };
68909
68909
  var en = { "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" };
68910
- var Ea = ["Patient", "Encounter", "ImagingStudy", "DiagnosticReport", "OperationOutcome", "Bundle"];
68910
+ var Ra = ["Patient", "Encounter", "ImagingStudy", "DiagnosticReport", "OperationOutcome", "Bundle"];
68911
68911
  var tn = ["DiagnosticReport-update"];
68912
68912
  function Mi(r6) {
68913
68913
  return tn.includes(r6);
@@ -68915,9 +68915,9 @@ function Mi(r6) {
68915
68915
  function _i(r6) {
68916
68916
  if (tn.includes(r6)) throw new f(g(`'context.version' is required for '${r6}'.`));
68917
68917
  }
68918
- var Ra = { "Patient-open": { patient: { resourceType: "Patient" }, encounter: { resourceType: "Encounter", optional: true } }, "Patient-close": { patient: { resourceType: "Patient" }, encounter: { resourceType: "Encounter", optional: true } }, "ImagingStudy-open": { study: { resourceType: "ImagingStudy" }, encounter: { resourceType: "Encounter", optional: true }, patient: { resourceType: "Patient", optional: true } }, "ImagingStudy-close": { study: { resourceType: "ImagingStudy" }, encounter: { resourceType: "Encounter", optional: true }, patient: { resourceType: "Patient", optional: true } }, "Encounter-open": { encounter: { resourceType: "Encounter" }, patient: { resourceType: "Patient" } }, "Encounter-close": { encounter: { resourceType: "Encounter" }, patient: { resourceType: "Patient" } }, "DiagnosticReport-open": { report: { resourceType: "DiagnosticReport" }, encounter: { resourceType: "Encounter", optional: true }, study: { resourceType: "ImagingStudy", optional: true, manyAllowed: true }, patient: { resourceType: "Patient" } }, "DiagnosticReport-close": { report: { resourceType: "DiagnosticReport" }, encounter: { resourceType: "Encounter", optional: true }, study: { resourceType: "ImagingStudy", optional: true, manyAllowed: true }, patient: { resourceType: "Patient" } }, "DiagnosticReport-select": { report: { resourceType: "DiagnosticReport", reference: true }, patient: { resourceType: "Patient", optional: true, reference: true }, select: { resourceType: "*", reference: true, manyAllowed: true } }, "DiagnosticReport-update": { report: { resourceType: "DiagnosticReport", reference: true }, patient: { resourceType: "Patient", optional: true, reference: true }, updates: { resourceType: "Bundle" } }, syncerror: { operationoutcome: { resourceType: "OperationOutcome" } } };
68919
- function Ca(r6) {
68920
- return Ea.includes(r6);
68918
+ var Ca = { "Patient-open": { patient: { resourceType: "Patient" }, encounter: { resourceType: "Encounter", optional: true } }, "Patient-close": { patient: { resourceType: "Patient" }, encounter: { resourceType: "Encounter", optional: true } }, "ImagingStudy-open": { study: { resourceType: "ImagingStudy" }, encounter: { resourceType: "Encounter", optional: true }, patient: { resourceType: "Patient", optional: true } }, "ImagingStudy-close": { study: { resourceType: "ImagingStudy" }, encounter: { resourceType: "Encounter", optional: true }, patient: { resourceType: "Patient", optional: true } }, "Encounter-open": { encounter: { resourceType: "Encounter" }, patient: { resourceType: "Patient" } }, "Encounter-close": { encounter: { resourceType: "Encounter" }, patient: { resourceType: "Patient" } }, "DiagnosticReport-open": { report: { resourceType: "DiagnosticReport" }, encounter: { resourceType: "Encounter", optional: true }, study: { resourceType: "ImagingStudy", optional: true, manyAllowed: true }, patient: { resourceType: "Patient" } }, "DiagnosticReport-close": { report: { resourceType: "DiagnosticReport" }, encounter: { resourceType: "Encounter", optional: true }, study: { resourceType: "ImagingStudy", optional: true, manyAllowed: true }, patient: { resourceType: "Patient" } }, "DiagnosticReport-select": { report: { resourceType: "DiagnosticReport", reference: true }, patient: { resourceType: "Patient", optional: true, reference: true }, select: { resourceType: "*", reference: true, manyAllowed: true } }, "DiagnosticReport-update": { report: { resourceType: "DiagnosticReport", reference: true }, patient: { resourceType: "Patient", optional: true, reference: true }, updates: { resourceType: "Bundle" } }, syncerror: { operationoutcome: { resourceType: "OperationOutcome" } } };
68919
+ function Pa(r6) {
68920
+ return Ra.includes(r6);
68921
68921
  }
68922
68922
  function Li(r6) {
68923
68923
  return !!r6.endpoint;
@@ -68934,27 +68934,27 @@ function jt(r6) {
68934
68934
  for (let o2 of i) if (!en[o2]) return false;
68935
68935
  return !(Li(r6) && !(typeof r6.endpoint == "string" && r6.endpoint.startsWith("ws")));
68936
68936
  }
68937
- function Pa(r6, e, t, n) {
68937
+ function wa(r6, e, t, n) {
68938
68938
  if (typeof e != "object") throw new f(g(`context[${t}] is invalid. Context must contain a single valid FHIR resource! Resource is not an object.`));
68939
68939
  if (!(e.id && typeof e.id == "string")) throw new f(g(`context[${t}] is invalid. Resource must contain a valid string ID.`));
68940
68940
  if (!e.resourceType) throw new f(g(`context[${t}] is invalid. Resource must contain a resource type. No resource type found.`));
68941
68941
  let i = n.resourceType;
68942
68942
  if (i !== "*") {
68943
- if (!Ca(e.resourceType)) throw new f(g(`context[${t}] is invalid. Resource must contain a valid FHIRcast resource type. Resource type is not a known resource type.`));
68943
+ if (!Pa(e.resourceType)) throw new f(g(`context[${t}] is invalid. Resource must contain a valid FHIRcast resource type. Resource type is not a known resource type.`));
68944
68944
  if (i && e.resourceType !== i) throw new f(g(`context[${t}] is invalid. context[${t}] for the '${r6}' event should contain resource of type ${i}.`));
68945
68945
  }
68946
68946
  }
68947
- function wa(r6, e, t, n, i) {
68947
+ function Aa(r6, e, t, n, i) {
68948
68948
  if (i.set(e.key, (i.get(e.key) ?? 0) + 1), n.reference) {
68949
68949
  if (!$(e.reference)) throw new f(g(`context[${t}] is invalid. Expected key '${e.key}' to be a reference.`));
68950
- } else Pa(r6, e.resource, t, n);
68950
+ } else wa(r6, e.resource, t, n);
68951
68951
  }
68952
- function Aa(r6, e) {
68953
- let t = /* @__PURE__ */ new Map(), n = Ra[r6];
68952
+ function Oa(r6, e) {
68953
+ let t = /* @__PURE__ */ new Map(), n = Ca[r6];
68954
68954
  for (let i = 0; i < e.length; i++) {
68955
68955
  let o2 = e[i].key;
68956
68956
  if (!n[o2]) throw new f(g(`Key '${o2}' not found for event '${r6}'. Make sure to add only valid keys.`));
68957
- wa(r6, e[i], i, n[o2], t);
68957
+ Aa(r6, e[i], i, n[o2], t);
68958
68958
  }
68959
68959
  for (let [i, o2] of Object.entries(n)) {
68960
68960
  if (!(o2.optional || t.has(i))) throw new f(g(`Missing required key '${i}' on context for '${r6}' event.`));
@@ -68967,7 +68967,7 @@ function nn(r6, e, t, n) {
68967
68967
  if (typeof t != "object") throw new f(g("context must be a context object or array of context objects."));
68968
68968
  if (tn.includes(e) && !n) throw new f(g(`The '${e}' event must contain a 'context.versionId'.`));
68969
68969
  let i = Array.isArray(t) ? t : [t];
68970
- return Aa(e, i), { timestamp: (/* @__PURE__ */ new Date()).toISOString(), id: oe(), event: { "hub.topic": r6, "hub.event": e, context: i, ...n ? { "context.versionId": n } : {} } };
68970
+ return Oa(e, i), { timestamp: (/* @__PURE__ */ new Date()).toISOString(), id: oe(), event: { "hub.topic": r6, "hub.event": e, context: i, ...n ? { "context.versionId": n } : {} } };
68971
68971
  }
68972
68972
  var qt = class extends Z {
68973
68973
  constructor(t) {
@@ -68992,7 +68992,7 @@ var qt = class extends Z {
68992
68992
  this.websocket.close();
68993
68993
  }
68994
68994
  };
68995
- function Oa(r6) {
68995
+ function Ia(r6) {
68996
68996
  return JSON.parse(ki(r6));
68997
68997
  }
68998
68998
  function Fi(r6) {
@@ -69000,7 +69000,7 @@ function Fi(r6) {
69000
69000
  }
69001
69001
  function $t(r6) {
69002
69002
  let [e, t, n] = r6.split(".");
69003
- return Oa(t);
69003
+ return Ia(t);
69004
69004
  }
69005
69005
  function Ni(r6) {
69006
69006
  try {
@@ -69125,7 +69125,7 @@ var on = class {
69125
69125
  };
69126
69126
  var qe = { Event: typeof globalThis.Event < "u" ? globalThis.Event : void 0, ErrorEvent: void 0, CloseEvent: void 0 };
69127
69127
  var qi = false;
69128
- function Ia() {
69128
+ function ka() {
69129
69129
  if (typeof globalThis.Event > "u") throw new Error("Unable to lazy init events for ReconnectingWebSocket. globalThis.Event is not defined yet");
69130
69130
  qe.Event = globalThis.Event, qe.ErrorEvent = class extends Event {
69131
69131
  constructor(t, n) {
@@ -69144,7 +69144,7 @@ function Ia() {
69144
69144
  }
69145
69145
  };
69146
69146
  }
69147
- function ka(r6, e) {
69147
+ function Va(r6, e) {
69148
69148
  if (!r6) throw new Error(e);
69149
69149
  }
69150
69150
  function Gt(r6) {
@@ -69154,7 +69154,7 @@ var Ie = { maxReconnectionDelay: 1e4, minReconnectionDelay: 1e3 + Math.random()
69154
69154
  var ji = false;
69155
69155
  var Qt = class r extends Z {
69156
69156
  constructor(t, n, i = {}) {
69157
- qi || (Ia(), qi = true);
69157
+ qi || (ka(), qi = true);
69158
69158
  super();
69159
69159
  c(this, "_ws");
69160
69160
  c(this, "_retryCount", -1);
@@ -69176,7 +69176,7 @@ var Qt = class r extends Z {
69176
69176
  c(this, "_handleOpen", (t2) => {
69177
69177
  this._debug("open event");
69178
69178
  let { minUptime: n2 = Ie.minUptime } = this._options;
69179
- clearTimeout(this._connectTimeout), this._uptimeTimeout = setTimeout(() => this._acceptOpen(), n2), ka(this._ws, "WebSocket is not defined"), this._ws.binaryType = this._binaryType, this._messageQueue.forEach((i2) => this._ws?.send(i2)), this._messageQueue = [], this.onopen && this.onopen(t2), this.dispatchEvent(Gt(t2));
69179
+ clearTimeout(this._connectTimeout), this._uptimeTimeout = setTimeout(() => this._acceptOpen(), n2), Va(this._ws, "WebSocket is not defined"), this._ws.binaryType = this._binaryType, this._messageQueue.forEach((i2) => this._ws?.send(i2)), this._messageQueue = [], this.onopen && this.onopen(t2), this.dispatchEvent(Gt(t2));
69180
69180
  });
69181
69181
  c(this, "_handleMessage", (t2) => {
69182
69182
  this._debug("message event"), this.onmessage && this.onmessage(t2), this.dispatchEvent(Gt(t2));
@@ -69318,7 +69318,7 @@ var Qt = class r extends Z {
69318
69318
  clearTimeout(this._connectTimeout), clearTimeout(this._uptimeTimeout);
69319
69319
  }
69320
69320
  };
69321
- var Va = 5e3;
69321
+ var Da = 5e3;
69322
69322
  var it = class extends Z {
69323
69323
  constructor(...t) {
69324
69324
  super();
@@ -69370,7 +69370,7 @@ var zt = class {
69370
69370
  throw new f(g("Not a valid URL"));
69371
69371
  }
69372
69372
  let o2 = n?.ReconnectingWebSocket ? new n.ReconnectingWebSocket(i, void 0, { debug: n?.debug, debugLogger: n?.debugLogger }) : new Qt(i, void 0, { debug: n?.debug, debugLogger: n?.debugLogger });
69373
- this.medplum = e, this.ws = o2, this.masterSubEmitter = new it(), this.criteriaEntries = /* @__PURE__ */ new Map(), this.criteriaEntriesBySubscriptionId = /* @__PURE__ */ new Map(), this.wsClosed = false, this.pingIntervalMs = n?.pingIntervalMs ?? Va, this.currentProfile = e.getProfile(), this.setupListeners();
69373
+ this.medplum = e, this.ws = o2, this.masterSubEmitter = new it(), this.criteriaEntries = /* @__PURE__ */ new Map(), this.criteriaEntriesBySubscriptionId = /* @__PURE__ */ new Map(), this.wsClosed = false, this.pingIntervalMs = n?.pingIntervalMs ?? Da, this.currentProfile = e.getProfile(), this.setupListeners();
69374
69374
  }
69375
69375
  setupListeners() {
69376
69376
  let e = this.ws;
@@ -69528,18 +69528,18 @@ var zt = class {
69528
69528
  return this.masterSubEmitter || (this.masterSubEmitter = new it(...Array.from(this.criteriaEntries.keys()))), this.masterSubEmitter;
69529
69529
  }
69530
69530
  };
69531
- var an = "5.0.6-f3fe14c";
69532
- var _a = w.FHIR_JSON + ", */*; q=0.1";
69533
- var La = "https://api.medplum.com/";
69534
- var Fa = 1e3;
69535
- var Na = 6e4;
69536
- var Ua = 0;
69537
- var Ba = 3e5;
69538
- var Wa = "Binary/";
69531
+ var an = "5.0.8-2b1f5fb";
69532
+ var La = w.FHIR_JSON + ", */*; q=0.1";
69533
+ var Fa = "https://api.medplum.com/";
69534
+ var Na = 1e3;
69535
+ var Ua = 6e4;
69536
+ var Ba = 0;
69537
+ var Wa = 3e5;
69538
+ var qa = "Binary/";
69539
69539
  var $i = { resourceType: "Device", id: "system", deviceName: [{ type: "model-name", name: "System" }] };
69540
69540
  var je = { ClientCredentials: "client_credentials", AuthorizationCode: "authorization_code", RefreshToken: "refresh_token", JwtBearer: "urn:ietf:params:oauth:grant-type:jwt-bearer", TokenExchange: "urn:ietf:params:oauth:grant-type:token-exchange" };
69541
- var qa = { AccessToken: "urn:ietf:params:oauth:token-type:access_token", RefreshToken: "urn:ietf:params:oauth:token-type:refresh_token", IdToken: "urn:ietf:params:oauth:token-type:id_token", Saml1Token: "urn:ietf:params:oauth:token-type:saml1", Saml2Token: "urn:ietf:params:oauth:token-type:saml2" };
69542
- var ja = { JwtBearer: "urn:ietf:params:oauth:client-assertion-type:jwt-bearer" };
69541
+ var ja = { AccessToken: "urn:ietf:params:oauth:token-type:access_token", RefreshToken: "urn:ietf:params:oauth:token-type:refresh_token", IdToken: "urn:ietf:params:oauth:token-type:id_token", Saml1Token: "urn:ietf:params:oauth:token-type:saml1", Saml2Token: "urn:ietf:params:oauth:token-type:saml2" };
69542
+ var $a = { JwtBearer: "urn:ietf:params:oauth:client-assertion-type:jwt-bearer" };
69543
69543
  var Jt = class extends Z {
69544
69544
  constructor(t) {
69545
69545
  super();
@@ -69578,7 +69578,7 @@ var Jt = class extends Z {
69578
69578
  c(this, "initComplete", true);
69579
69579
  c(this, "keyValueClient");
69580
69580
  if (t?.baseUrl && !t.baseUrl.startsWith("http")) throw new Error("Base URL must start with http or https");
69581
- this.options = t ?? {}, this.fetch = t?.fetch ?? $a(), this.storage = t?.storage ?? new nt(void 0, t?.storagePrefix), this.createPdfImpl = t?.createPdf, this.baseUrl = Hr(t?.baseUrl ?? La), this.fhirBaseUrl = H(this.baseUrl, t?.fhirUrlPath ?? "fhir/R4"), this.authorizeUrl = H(this.baseUrl, t?.authorizeUrl ?? "oauth2/authorize"), this.tokenUrl = H(this.baseUrl, t?.tokenUrl ?? "oauth2/token"), this.logoutUrl = H(this.baseUrl, t?.logoutUrl ?? "oauth2/logout"), this.fhircastHubUrl = H(this.baseUrl, t?.fhircastHubUrl ?? "fhircast/STU3"), this.clientId = t?.clientId ?? "", this.clientSecret = t?.clientSecret ?? "", this.credentialsInHeader = t?.authCredentialsMethod === "header", this.defaultHeaders = t?.defaultHeaders ?? {}, this.onUnauthenticated = t?.onUnauthenticated, this.refreshGracePeriod = t?.refreshGracePeriod ?? Ba, this.cacheTime = t?.cacheTime ?? (q() ? Na : Ua), this.cacheTime > 0 ? this.requestCache = new Ve(t?.resourceCacheSize ?? Fa) : this.requestCache = void 0, t?.autoBatchTime ? (this.autoBatchTime = t.autoBatchTime, this.autoBatchQueue = []) : (this.autoBatchTime = 0, this.autoBatchQueue = void 0), t?.accessToken && this.setAccessToken(t.accessToken), this.storage.getInitPromise === void 0 ? (t?.accessToken || this.attemptResumeActiveLogin().catch(console.error), this.initPromise = Promise.resolve(), this.dispatchEvent({ type: "storageInitialized" })) : (this.initComplete = false, this.initPromise = this.storage.getInitPromise(), this.initPromise.then(() => {
69581
+ this.options = t ?? {}, this.fetch = t?.fetch ?? Ha(), this.storage = t?.storage ?? new nt(void 0, t?.storagePrefix), this.createPdfImpl = t?.createPdf, this.baseUrl = Hr(t?.baseUrl ?? Fa), this.fhirBaseUrl = H(this.baseUrl, t?.fhirUrlPath ?? "fhir/R4"), this.authorizeUrl = H(this.baseUrl, t?.authorizeUrl ?? "oauth2/authorize"), this.tokenUrl = H(this.baseUrl, t?.tokenUrl ?? "oauth2/token"), this.logoutUrl = H(this.baseUrl, t?.logoutUrl ?? "oauth2/logout"), this.fhircastHubUrl = H(this.baseUrl, t?.fhircastHubUrl ?? "fhircast/STU3"), this.clientId = t?.clientId ?? "", this.clientSecret = t?.clientSecret ?? "", this.credentialsInHeader = t?.authCredentialsMethod === "header", this.defaultHeaders = t?.defaultHeaders ?? {}, this.onUnauthenticated = t?.onUnauthenticated, this.refreshGracePeriod = t?.refreshGracePeriod ?? Wa, this.cacheTime = t?.cacheTime ?? (q() ? Ua : Ba), this.cacheTime > 0 ? this.requestCache = new Ve(t?.resourceCacheSize ?? Na) : this.requestCache = void 0, t?.autoBatchTime ? (this.autoBatchTime = t.autoBatchTime, this.autoBatchQueue = []) : (this.autoBatchTime = 0, this.autoBatchQueue = void 0), t?.accessToken && this.setAccessToken(t.accessToken), this.storage.getInitPromise === void 0 ? (t?.accessToken || this.attemptResumeActiveLogin().catch(console.error), this.initPromise = Promise.resolve(), this.dispatchEvent({ type: "storageInitialized" })) : (this.initComplete = false, this.initPromise = this.storage.getInitPromise(), this.initPromise.then(() => {
69582
69582
  t?.accessToken || this.attemptResumeActiveLogin().catch(console.error), this.initComplete = true, this.dispatchEvent({ type: "storageInitialized" });
69583
69583
  }).catch((n) => {
69584
69584
  console.error(n), this.initComplete = true, this.dispatchEvent({ type: "storageInitFailed", payload: { error: n } });
@@ -69690,7 +69690,7 @@ var Jt = class extends Z {
69690
69690
  }
69691
69691
  async exchangeExternalAccessToken(t, n) {
69692
69692
  if (n = n ?? this.clientId, !n) throw new Error("MedplumClient is missing clientId");
69693
- return this.fetchTokens({ grant_type: je.TokenExchange, subject_token_type: qa.AccessToken, client_id: n, subject_token: t });
69693
+ return this.fetchTokens({ grant_type: je.TokenExchange, subject_token_type: ja.AccessToken, client_id: n, subject_token: t });
69694
69694
  }
69695
69695
  getExternalAuthRedirectUri(t, n, i, o2, s = true) {
69696
69696
  let a = new URL(t);
@@ -69765,6 +69765,9 @@ var Jt = class extends Z {
69765
69765
  let [o2, s] = i.split("/");
69766
69766
  return !o2 || !s ? new L(Promise.reject(new Error("Invalid reference"))) : this.readResource(o2, s, n);
69767
69767
  }
69768
+ readCanonical(t, n, i) {
69769
+ return Array.isArray(t) ? this.searchOne("", { _type: t.join(","), url: n }, i) : this.searchOne(t, "url=" + n, i);
69770
+ }
69768
69771
  requestSchema(t) {
69769
69772
  if (qn(t)) return Promise.resolve();
69770
69773
  let n = t + "-requestSchema", i = this.getCacheEntry(n, void 0);
@@ -69904,7 +69907,7 @@ var Jt = class extends Z {
69904
69907
  }
69905
69908
  async createPdf(t, n, i, o2) {
69906
69909
  if (!this.createPdfImpl) throw new Error("PDF creation not enabled");
69907
- let s = Qa(t, n, i, o2), a = typeof n == "object" ? n : {}, { docDefinition: u2, tableLayouts: l2, fonts: p, ...y2 } = s, v2 = await this.createPdfImpl(u2, l2, p), j = { ...y2, data: v2, contentType: "application/pdf" };
69910
+ let s = za(t, n, i, o2), a = typeof n == "object" ? n : {}, { docDefinition: u2, tableLayouts: l2, fonts: p, ...y2 } = s, v2 = await this.createPdfImpl(u2, l2, p), j = { ...y2, data: v2, contentType: "application/pdf" };
69908
69911
  return this.createBinary(j, a);
69909
69912
  }
69910
69913
  createComment(t, n, i) {
@@ -70021,7 +70024,7 @@ var Jt = class extends Z {
70021
70024
  async download(t, n = {}) {
70022
70025
  this.refreshPromise && await this.refreshPromise;
70023
70026
  let i = t.toString();
70024
- i.startsWith(Wa) && (t = this.fhirUrl(i));
70027
+ i.startsWith(qa) && (t = this.fhirUrl(i));
70025
70028
  let o2 = n.headers;
70026
70029
  return o2 || (o2 = {}, n.headers = o2), o2.Accept || (o2.Accept = "*/*"), this.addFetchOptionsDefaults(n), (await this.fetchWithRetry(t.toString(), n)).blob();
70027
70030
  }
@@ -70110,7 +70113,7 @@ var Jt = class extends Z {
70110
70113
  for (let o2 = 0; o2 <= i; o2++) try {
70111
70114
  this.options.verbose && this.logRequest(t, n);
70112
70115
  let s = await this.fetch(t, n);
70113
- if (this.options.verbose && this.logResponse(s), this.setCurrentRateLimit(s), o2 >= i || !za(s)) return s;
70116
+ if (this.options.verbose && this.logResponse(s), this.setCurrentRateLimit(s), o2 >= i || !Ja(s)) return s;
70114
70117
  let a = this.getRetryDelay(o2), u2 = n.maxRetryTime ?? 2e3;
70115
70118
  if (a > u2) return s;
70116
70119
  await $r(a);
@@ -70179,7 +70182,7 @@ var Jt = class extends Z {
70179
70182
  addFetchOptionsDefaults(t) {
70180
70183
  Object.entries(this.defaultHeaders).forEach(([n, i]) => {
70181
70184
  this.setRequestHeader(t, n, i);
70182
- }), this.setRequestHeader(t, "Accept", _a, true), this.options.extendedMode !== false && this.setRequestHeader(t, "X-Medplum", "extended"), t.body && this.setRequestHeader(t, "Content-Type", w.FHIR_JSON, true), this.accessToken ? this.setRequestHeader(t, "Authorization", "Bearer " + this.accessToken) : this.basicAuth && this.setRequestHeader(t, "Authorization", "Basic " + this.basicAuth), t.cache || (t.cache = "no-cache"), t.credentials || (t.credentials = "include");
70185
+ }), this.setRequestHeader(t, "Accept", La, true), this.options.extendedMode !== false && this.setRequestHeader(t, "X-Medplum", "extended"), t.body && this.setRequestHeader(t, "Content-Type", w.FHIR_JSON, true), this.accessToken ? this.setRequestHeader(t, "Authorization", "Bearer " + this.accessToken) : this.basicAuth && this.setRequestHeader(t, "Authorization", "Basic " + this.basicAuth), t.cache || (t.cache = "no-cache"), t.credentials || (t.credentials = "include");
70183
70186
  }
70184
70187
  setRequestContentType(t, n) {
70185
70188
  this.setRequestHeader(t, "Content-Type", n);
@@ -70234,7 +70237,7 @@ var Jt = class extends Z {
70234
70237
  return this.clientId = t, this.fetchTokens({ grant_type: je.JwtBearer, client_id: t, assertion: n, scope: i });
70235
70238
  }
70236
70239
  async startJwtAssertionLogin(t) {
70237
- return this.fetchTokens({ grant_type: je.ClientCredentials, client_assertion_type: ja.JwtBearer, client_assertion: t });
70240
+ return this.fetchTokens({ grant_type: je.ClientCredentials, client_assertion_type: $a.JwtBearer, client_assertion: t });
70238
70241
  }
70239
70242
  setBasicAuth(t, n) {
70240
70243
  this.clientId = t, this.clientSecret = n, this.basicAuth = Wt(t + ":" + n);
@@ -70326,7 +70329,7 @@ var Jt = class extends Z {
70326
70329
  return this.getSubscriptionManager().getMasterEmitter();
70327
70330
  }
70328
70331
  };
70329
- function $a() {
70332
+ function Ha() {
70330
70333
  if (!globalThis.fetch) throw new Error("Fetch not available in this environment");
70331
70334
  return globalThis.fetch.bind(globalThis);
70332
70335
  }
@@ -70341,28 +70344,28 @@ function Gi(r6) {
70341
70344
  let e = r6.entry?.map((t) => t.resource) ?? [];
70342
70345
  return Object.assign(e, { bundle: r6 });
70343
70346
  }
70344
- function Ha(r6) {
70347
+ function Ga(r6) {
70345
70348
  return R(r6) && "data" in r6 && "contentType" in r6;
70346
70349
  }
70347
70350
  function Qi(r6, e, t, n) {
70348
- return Ha(r6) ? r6 : { data: r6, filename: e, contentType: t, onProgress: n };
70351
+ return Ga(r6) ? r6 : { data: r6, filename: e, contentType: t, onProgress: n };
70349
70352
  }
70350
- function Ga(r6) {
70353
+ function Qa(r6) {
70351
70354
  return R(r6) && "docDefinition" in r6;
70352
70355
  }
70353
- function Qa(r6, e, t, n) {
70354
- return Ga(r6) ? r6 : { docDefinition: r6, filename: e, tableLayouts: t, fonts: n };
70356
+ function za(r6, e, t, n) {
70357
+ return Qa(r6) ? r6 : { docDefinition: r6, filename: e, tableLayouts: t, fonts: n };
70355
70358
  }
70356
- function za(r6) {
70359
+ function Ja(r6) {
70357
70360
  return r6.status === 429 || r6.status >= 500;
70358
70361
  }
70359
- var sc = [...Ze, "->", "<<", ">>", "=="];
70360
- var uc = et().registerInfix("->", { precedence: x.Arrow }).registerInfix(";", { precedence: x.Semicolon });
70361
- var wc = " ".repeat(2);
70362
- var Oc = [...Ze, "eq", "ne", "co"];
70363
- var Ic = { eq: h.EXACT, ne: h.NOT_EQUALS, co: h.CONTAINS, sw: h.STARTS_WITH, ew: void 0, gt: h.GREATER_THAN, lt: h.LESS_THAN, ge: h.GREATER_THAN_OR_EQUALS, le: h.LESS_THAN_OR_EQUALS, ap: h.APPROXIMATELY, sa: h.STARTS_AFTER, eb: h.ENDS_BEFORE, pr: h.PRESENT, po: void 0, ss: void 0, sb: void 0, in: h.IN, ni: h.NOT_IN, re: h.EQUALS, identifier: h.IDENTIFIER };
70364
- var Vc = et();
70365
- var Dc = { AA: "OK", AE: "Application Error", AR: "Application Reject", CA: "Commit Accept", CE: "Commit Error", CR: "Commit Reject" };
70362
+ var ac = [...Ze, "->", "<<", ">>", "=="];
70363
+ var lc = et().registerInfix("->", { precedence: x.Arrow }).registerInfix(";", { precedence: x.Semicolon });
70364
+ var Ac = " ".repeat(2);
70365
+ var Ic = [...Ze, "eq", "ne", "co"];
70366
+ var kc = { eq: h.EXACT, ne: h.NOT_EQUALS, co: h.CONTAINS, sw: h.STARTS_WITH, ew: void 0, gt: h.GREATER_THAN, lt: h.LESS_THAN, ge: h.GREATER_THAN_OR_EQUALS, le: h.LESS_THAN_OR_EQUALS, ap: h.APPROXIMATELY, sa: h.STARTS_AFTER, eb: h.ENDS_BEFORE, pr: h.PRESENT, po: void 0, ss: void 0, sb: void 0, in: h.IN, ni: h.NOT_IN, re: h.EQUALS, identifier: h.IDENTIFIER };
70367
+ var Dc = et();
70368
+ var Mc = { AA: "OK", AE: "Application Error", AR: "Application Reject", CA: "Commit Accept", CE: "Commit Error", CR: "Commit Reject" };
70366
70369
  var ge = class {
70367
70370
  constructor(e = "\r", t = "|", n = "^", i = "~", o2 = "\\", s = "&") {
70368
70371
  c(this, "segmentSeparator");
@@ -70406,7 +70409,7 @@ var ho = class r2 {
70406
70409
  }
70407
70410
  buildAck(e) {
70408
70411
  let t = /* @__PURE__ */ new Date(), n = this.getSegment("MSH"), i = n?.getField(3)?.toString() ?? "", o2 = n?.getField(4)?.toString() ?? "", s = n?.getField(5)?.toString() ?? "", a = n?.getField(6)?.toString() ?? "", u2 = n?.getField(10)?.toString() ?? "", l2 = n?.getField(12)?.toString() ?? "2.5.1", p = e?.ackCode ?? "AA";
70409
- return new r2([new at(["MSH", this.context.getMsh2(), s, a, i, o2, _c(t), "", this.buildAckMessageType(n), t.getTime().toString(), "P", l2], this.context), new at(["MSA", p, u2, Dc[p]], this.context), ...e?.errSegment ? [e.errSegment] : []]);
70412
+ return new r2([new at(["MSH", this.context.getMsh2(), s, a, i, o2, Lc(t), "", this.buildAckMessageType(n), t.getTime().toString(), "P", l2], this.context), new at(["MSA", p, u2, Mc[p]], this.context), ...e?.errSegment ? [e.errSegment] : []]);
70410
70413
  }
70411
70414
  buildAckMessageType(e) {
70412
70415
  let t = e?.getField(9), n = t?.getComponent(2), i = t?.getComponent(3), o2 = "ACK";
@@ -70506,12 +70509,12 @@ var ee = class r4 {
70506
70509
  return true;
70507
70510
  }
70508
70511
  };
70509
- function _c(r6) {
70512
+ function Lc(r6) {
70510
70513
  let e = r6 instanceof Date ? r6 : new Date(r6), n = e.toISOString().replaceAll(/[-:T]/g, "").replace(/(\.\d+)?Z$/, ""), i = e.getUTCMilliseconds();
70511
70514
  return i > 0 && (n += "." + i.toString()), n;
70512
70515
  }
70513
70516
  var $e = { NONE: 0, ERROR: 1, WARN: 2, INFO: 3, DEBUG: 4 };
70514
- var Lc = ["NONE", "ERROR", "WARN", "INFO", "DEBUG"];
70517
+ var Fc = ["NONE", "ERROR", "WARN", "INFO", "DEBUG"];
70515
70518
  var mo = class r5 {
70516
70519
  constructor(e, t = {}, n = $e.INFO, i = {}) {
70517
70520
  c(this, "write");
@@ -70549,10 +70552,10 @@ var mo = class r5 {
70549
70552
  i = { ...n };
70550
70553
  for (let [o2, s] of Object.entries(i)) s instanceof Error && (i[o2] = or(s));
70551
70554
  }
70552
- this.write(JSON.stringify({ level: Lc[e], timestamp: (/* @__PURE__ */ new Date()).toISOString(), msg: this.prefix ? `${this.prefix}${t}` : t, ...i, ...this.metadata }));
70555
+ this.write(JSON.stringify({ level: Fc[e], timestamp: (/* @__PURE__ */ new Date()).toISOString(), msg: this.prefix ? `${this.prefix}${t}` : t, ...i, ...this.metadata }));
70553
70556
  }
70554
70557
  };
70555
- function Yh(r6) {
70558
+ function Zh(r6) {
70556
70559
  let e = $e[r6.toUpperCase()];
70557
70560
  if (e === void 0) throw new Error(`Invalid log level: ${r6}`);
70558
70561
  return e;
@@ -70570,9 +70573,9 @@ function or(r6, e = 0, t = 10) {
70570
70573
  }
70571
70574
  return n;
70572
70575
  }
70573
- var zc = "https://meta.medplum.com/releases";
70576
+ var Jc = "https://meta.medplum.com/releases";
70574
70577
  var cr = /* @__PURE__ */ new Map();
70575
- function Jc(r6) {
70578
+ function Kc(r6) {
70576
70579
  let e = r6;
70577
70580
  if (!e.tag_name) throw new Error("Manifest missing tag_name");
70578
70581
  let t = e.assets;
@@ -70585,7 +70588,7 @@ function Jc(r6) {
70585
70588
  async function xn(r6, e, t) {
70586
70589
  let n = cr.get(e ?? "latest");
70587
70590
  if (!n) {
70588
- let i = e ? `v${e}` : "latest", o2 = new URL(`${zc}/${i}.json`);
70591
+ let i = e ? `v${e}` : "latest", o2 = new URL(`${Jc}/${i}.json`);
70589
70592
  if (o2.searchParams.set("a", r6), o2.searchParams.set("c", an), t) for (let [u2, l2] of Object.entries(t)) o2.searchParams.set(u2, l2);
70590
70593
  let s = await fetch(o2.toString());
70591
70594
  if (s.status !== 200) {
@@ -70598,15 +70601,15 @@ async function xn(r6, e, t) {
70598
70601
  throw new Error(`Received status code ${s.status} while fetching manifest for version '${e ?? "latest"}'. Message: ${u2}`);
70599
70602
  }
70600
70603
  let a = await s.json();
70601
- Jc(a), n = a, cr.set(e ?? "latest", n), e || cr.set(n.tag_name.slice(1), n);
70604
+ Kc(a), n = a, cr.set(e ?? "latest", n), e || cr.set(n.tag_name.slice(1), n);
70602
70605
  }
70603
70606
  return n;
70604
70607
  }
70605
- function Kc(r6) {
70608
+ function Xc(r6) {
70606
70609
  return /^\d+\.\d+\.\d+(-[0-9a-z]{7})?$/.test(r6);
70607
70610
  }
70608
- async function Cm(r6, e) {
70609
- if (!Kc(e)) return false;
70611
+ async function Pm(r6, e) {
70612
+ if (!Xc(e)) return false;
70610
70613
  try {
70611
70614
  await xn(r6, e);
70612
70615
  } catch {
@@ -70614,7 +70617,7 @@ async function Cm(r6, e) {
70614
70617
  }
70615
70618
  return true;
70616
70619
  }
70617
- async function Pm(r6) {
70620
+ async function wm(r6) {
70618
70621
  let e = await xn(r6);
70619
70622
  if (!e.tag_name.startsWith("v")) throw new Error(`Invalid release name found. Release tag '${e.tag_name}' did not start with 'v'`);
70620
70623
  return e.tag_name.slice(1);
@@ -72112,7 +72115,7 @@ function cleanupLoggerConfig(config, configPathRoot = "config") {
72112
72115
  warnings.push(`${configPathRoot}.filesToKeep must be a valid integer`);
72113
72116
  config.filesToKeep = void 0;
72114
72117
  }
72115
- if (typeof config.logLevel !== "undefined" && !(typeof config.logLevel === "number" && Lc[config.logLevel] !== void 0)) {
72118
+ if (typeof config.logLevel !== "undefined" && !(typeof config.logLevel === "number" && Fc[config.logLevel] !== void 0)) {
72116
72119
  warnings.push(`${configPathRoot}.logLevel must be a valid log level between LogLevel.NONE and LogLevel.DEBUG`);
72117
72120
  config.logLevel = void 0;
72118
72121
  }
@@ -72157,7 +72160,7 @@ function parseLoggerConfigFromArgs(args) {
72157
72160
  let configValue;
72158
72161
  if (settingName === "logLevel") {
72159
72162
  try {
72160
- configValue = Yh(propVal);
72163
+ configValue = Zh(propVal);
72161
72164
  } catch (err) {
72162
72165
  warnings.push(`Error while parsing ${propName}: ${Me(err)}`);
72163
72166
  }
@@ -73086,7 +73089,7 @@ IPv6 is currently unsupported.`;
73086
73089
  this.log.error(errMsg);
73087
73090
  throw new Error(errMsg);
73088
73091
  }
73089
- if (!((0, import_node_net4.isIPv4)(message.remote) || ql(message.remote))) {
73092
+ if (!((0, import_node_net4.isIPv4)(message.remote) || jl(message.remote))) {
73090
73093
  const errMsg = `Attempted to ping an invalid host.
73091
73094
 
73092
73095
  "${message.remote}" is not a valid IPv4 address or a resolvable hostname.`;
@@ -73161,7 +73164,7 @@ ${result}`);
73161
73164
  return;
73162
73165
  }
73163
73166
  let child;
73164
- if (message.version && !await Cm("agent-upgrader", message.version)) {
73167
+ if (message.version && !await Pm("agent-upgrader", message.version)) {
73165
73168
  const versionTag = message.version ? `v${message.version}` : "latest";
73166
73169
  const errMsg = `Error during upgrading to version '${versionTag}'. '${message.version}' is not a valid version`;
73167
73170
  this.log.error(errMsg);
@@ -73172,7 +73175,7 @@ ${result}`);
73172
73175
  });
73173
73176
  return;
73174
73177
  }
73175
- const targetVersion = message.version ?? await Pm("agent-upgrader");
73178
+ const targetVersion = message.version ?? await wm("agent-upgrader");
73176
73179
  if (an.startsWith(targetVersion)) {
73177
73180
  if (!message?.force) {
73178
73181
  this.log.info(`Attempted to upgrade to version ${targetVersion}, but agent is already on that version`);
@@ -73460,7 +73463,7 @@ async function agentMain(argv) {
73460
73463
  for (const warning of warnings) {
73461
73464
  mainLogger.warn(warning);
73462
73465
  }
73463
- const app = new App(medplum, agentId, args.logLevel ? Yh(args.logLevel) : void 0, {
73466
+ const app = new App(medplum, agentId, args.logLevel ? Zh(args.logLevel) : void 0, {
73464
73467
  mainLogger,
73465
73468
  channelLogger
73466
73469
  });
@@ -73502,10 +73505,10 @@ async function upgraderMain(argv) {
73502
73505
  rejectOnTimeout = () => reject(new Error("Timed out while waiting for IPC to disconnect"));
73503
73506
  import_node_process3.default.once("disconnect", resolve2);
73504
73507
  });
73505
- if (argv[3] && !Kc(argv[3])) {
73508
+ if (argv[3] && !Xc(argv[3])) {
73506
73509
  throw new Error("Invalid version specified");
73507
73510
  }
73508
- const version = argv[3] ?? await Pm("agent-upgrader");
73511
+ const version = argv[3] ?? await wm("agent-upgrader");
73509
73512
  const binPath = getReleaseBinPath(version);
73510
73513
  if (!(0, import_node_fs6.existsSync)(binPath)) {
73511
73514
  globalLogger.info(`Could not find binary at "${binPath}". Downloading release from GitHub...`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medplum/agent",
3
- "version": "5.0.6",
3
+ "version": "5.0.8",
4
4
  "description": "Medplum Agent",
5
5
  "homepage": "https://www.medplum.com/",
6
6
  "bugs": {
@@ -26,8 +26,8 @@
26
26
  "test": "jest --runInBand"
27
27
  },
28
28
  "dependencies": {
29
- "@medplum/core": "5.0.6",
30
- "@medplum/hl7": "5.0.6",
29
+ "@medplum/core": "5.0.8",
30
+ "@medplum/hl7": "5.0.8",
31
31
  "dcmjs-dimse": "0.3.1",
32
32
  "iconv-lite": "0.7.0",
33
33
  "semver": "7.7.3",
@@ -36,8 +36,8 @@
36
36
  "ws": "8.18.3"
37
37
  },
38
38
  "devDependencies": {
39
- "@medplum/fhirtypes": "5.0.6",
40
- "@medplum/mock": "5.0.6",
39
+ "@medplum/fhirtypes": "5.0.8",
40
+ "@medplum/mock": "5.0.8",
41
41
  "@types/async-eventemitter": "0.2.4",
42
42
  "@types/ws": "8.18.1",
43
43
  "mock-socket": "9.3.1",