@medplum/agent 2.2.10 → 3.0.0
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 +186 -185
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -9855,7 +9855,7 @@ var require_dcmjs = __commonJS({
|
|
|
9855
9855
|
}
|
|
9856
9856
|
}, {
|
|
9857
9857
|
key: "is",
|
|
9858
|
-
value: function
|
|
9858
|
+
value: function is(t) {
|
|
9859
9859
|
return this.value == t;
|
|
9860
9860
|
}
|
|
9861
9861
|
}, {
|
|
@@ -10682,17 +10682,17 @@ var require_dcmjs = __commonJS({
|
|
|
10682
10682
|
key: "readBytes",
|
|
10683
10683
|
value: function readBytes(stream, length2) {
|
|
10684
10684
|
var BACKSLASH = String.fromCharCode(VM_DELIMITER);
|
|
10685
|
-
var
|
|
10686
|
-
|
|
10687
|
-
if (
|
|
10688
|
-
var integerStringArray =
|
|
10689
|
-
|
|
10690
|
-
return
|
|
10685
|
+
var is = stream.readAsciiString(length2).trim();
|
|
10686
|
+
is = is.replace(/[^0-9.\\\-+e]/gi, "");
|
|
10687
|
+
if (is.indexOf(BACKSLASH) !== -1) {
|
|
10688
|
+
var integerStringArray = is.split(BACKSLASH);
|
|
10689
|
+
is = integerStringArray.map(function(is2) {
|
|
10690
|
+
return is2 === "" ? null : Number(is2);
|
|
10691
10691
|
});
|
|
10692
10692
|
} else {
|
|
10693
|
-
|
|
10693
|
+
is = [is === "" ? null : Number(is)];
|
|
10694
10694
|
}
|
|
10695
|
-
return
|
|
10695
|
+
return is;
|
|
10696
10696
|
}
|
|
10697
10697
|
}, {
|
|
10698
10698
|
key: "formatValue",
|
|
@@ -10703,8 +10703,8 @@ var require_dcmjs = __commonJS({
|
|
|
10703
10703
|
key: "writeBytes",
|
|
10704
10704
|
value: function writeBytes(stream, value, writeOptions) {
|
|
10705
10705
|
var _this12 = this;
|
|
10706
|
-
var val = Array.isArray(value) ? value.map(function(
|
|
10707
|
-
return _this12.formatValue(
|
|
10706
|
+
var val = Array.isArray(value) ? value.map(function(is) {
|
|
10707
|
+
return _this12.formatValue(is);
|
|
10708
10708
|
}) : [this.formatValue(value)];
|
|
10709
10709
|
return _get(_getPrototypeOf(IntegerString2.prototype), "writeBytes", this).call(this, stream, val, writeOptions);
|
|
10710
10710
|
}
|
|
@@ -10923,10 +10923,10 @@ var require_dcmjs = __commonJS({
|
|
|
10923
10923
|
while (1) {
|
|
10924
10924
|
var g2 = stream.readUint16();
|
|
10925
10925
|
if (g2 == 65534) {
|
|
10926
|
-
var
|
|
10926
|
+
var ge2 = stream.readUint16();
|
|
10927
10927
|
var itemLength = stream.readUint32();
|
|
10928
10928
|
stream.increment(-4);
|
|
10929
|
-
if (
|
|
10929
|
+
if (ge2 == 57357) {
|
|
10930
10930
|
if (itemLength === 0) {
|
|
10931
10931
|
stack--;
|
|
10932
10932
|
if (stack < 0) {
|
|
@@ -10939,7 +10939,7 @@ var require_dcmjs = __commonJS({
|
|
|
10939
10939
|
} else {
|
|
10940
10940
|
toRead += 2;
|
|
10941
10941
|
}
|
|
10942
|
-
} else if (
|
|
10942
|
+
} else if (ge2 == 57344) {
|
|
10943
10943
|
toRead += 4;
|
|
10944
10944
|
if (itemLength == 4294967295) {
|
|
10945
10945
|
stack++;
|
|
@@ -23859,7 +23859,7 @@ var require_has_flag = __commonJS({
|
|
|
23859
23859
|
var require_supports_colors = __commonJS({
|
|
23860
23860
|
"../../node_modules/logform/node_modules/@colors/colors/lib/system/supports-colors.js"(exports2, module2) {
|
|
23861
23861
|
"use strict";
|
|
23862
|
-
var
|
|
23862
|
+
var os2 = require("os");
|
|
23863
23863
|
var hasFlag = require_has_flag();
|
|
23864
23864
|
var env = process.env;
|
|
23865
23865
|
var forceColor = void 0;
|
|
@@ -23897,7 +23897,7 @@ var require_supports_colors = __commonJS({
|
|
|
23897
23897
|
}
|
|
23898
23898
|
var min = forceColor ? 1 : 0;
|
|
23899
23899
|
if (process.platform === "win32") {
|
|
23900
|
-
var osRelease =
|
|
23900
|
+
var osRelease = os2.release().split(".");
|
|
23901
23901
|
if (Number(process.versions.node.split(".")[0]) >= 8 && Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
23902
23902
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
23903
23903
|
}
|
|
@@ -29309,7 +29309,7 @@ var require_winston_transport = __commonJS({
|
|
|
29309
29309
|
var require_console = __commonJS({
|
|
29310
29310
|
"../../node_modules/winston/lib/winston/transports/console.js"(exports2, module2) {
|
|
29311
29311
|
"use strict";
|
|
29312
|
-
var
|
|
29312
|
+
var os2 = require("os");
|
|
29313
29313
|
var { LEVEL, MESSAGE } = require_triple_beam();
|
|
29314
29314
|
var TransportStream = require_winston_transport();
|
|
29315
29315
|
module2.exports = class Console extends TransportStream {
|
|
@@ -29323,7 +29323,7 @@ var require_console = __commonJS({
|
|
|
29323
29323
|
this.name = options.name || "console";
|
|
29324
29324
|
this.stderrLevels = this._stringArrayToSet(options.stderrLevels);
|
|
29325
29325
|
this.consoleWarnLevels = this._stringArrayToSet(options.consoleWarnLevels);
|
|
29326
|
-
this.eol = typeof options.eol === "string" ? options.eol :
|
|
29326
|
+
this.eol = typeof options.eol === "string" ? options.eol : os2.EOL;
|
|
29327
29327
|
this.setMaxListeners(30);
|
|
29328
29328
|
}
|
|
29329
29329
|
/**
|
|
@@ -32275,10 +32275,10 @@ var require_stream_transform = __commonJS({
|
|
|
32275
32275
|
if (data != null)
|
|
32276
32276
|
this.push(data);
|
|
32277
32277
|
cb(er);
|
|
32278
|
-
var
|
|
32279
|
-
|
|
32280
|
-
if (
|
|
32281
|
-
this._read(
|
|
32278
|
+
var rs = this._readableState;
|
|
32279
|
+
rs.reading = false;
|
|
32280
|
+
if (rs.needReadable || rs.length < rs.highWaterMark) {
|
|
32281
|
+
this._read(rs.highWaterMark);
|
|
32282
32282
|
}
|
|
32283
32283
|
}
|
|
32284
32284
|
function Transform(options) {
|
|
@@ -32326,9 +32326,9 @@ var require_stream_transform = __commonJS({
|
|
|
32326
32326
|
ts.writechunk = chunk;
|
|
32327
32327
|
ts.writeencoding = encoding;
|
|
32328
32328
|
if (!ts.transforming) {
|
|
32329
|
-
var
|
|
32330
|
-
if (ts.needTransform ||
|
|
32331
|
-
this._read(
|
|
32329
|
+
var rs = this._readableState;
|
|
32330
|
+
if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark)
|
|
32331
|
+
this._read(rs.highWaterMark);
|
|
32332
32332
|
}
|
|
32333
32333
|
};
|
|
32334
32334
|
Transform.prototype._read = function(n) {
|
|
@@ -34688,7 +34688,7 @@ var require_file = __commonJS({
|
|
|
34688
34688
|
var { Stream, PassThrough } = require_readable();
|
|
34689
34689
|
var TransportStream = require_winston_transport();
|
|
34690
34690
|
var debug = require_node2()("winston:file");
|
|
34691
|
-
var
|
|
34691
|
+
var os2 = require("os");
|
|
34692
34692
|
var tailFile = require_tail_file();
|
|
34693
34693
|
module2.exports = class File extends TransportStream {
|
|
34694
34694
|
/**
|
|
@@ -34726,7 +34726,7 @@ var require_file = __commonJS({
|
|
|
34726
34726
|
this.rotationFormat = options.rotationFormat || false;
|
|
34727
34727
|
this.zippedArchive = options.zippedArchive || false;
|
|
34728
34728
|
this.maxFiles = options.maxFiles || null;
|
|
34729
|
-
this.eol = typeof options.eol === "string" ? options.eol :
|
|
34729
|
+
this.eol = typeof options.eol === "string" ? options.eol : os2.EOL;
|
|
34730
34730
|
this.tailable = options.tailable || false;
|
|
34731
34731
|
this.lazy = options.lazy || false;
|
|
34732
34732
|
this._size = 0;
|
|
@@ -35476,7 +35476,7 @@ var require_stream4 = __commonJS({
|
|
|
35476
35476
|
"use strict";
|
|
35477
35477
|
var isStream = require_is_stream();
|
|
35478
35478
|
var { MESSAGE } = require_triple_beam();
|
|
35479
|
-
var
|
|
35479
|
+
var os2 = require("os");
|
|
35480
35480
|
var TransportStream = require_winston_transport();
|
|
35481
35481
|
module2.exports = class Stream extends TransportStream {
|
|
35482
35482
|
/**
|
|
@@ -35492,7 +35492,7 @@ var require_stream4 = __commonJS({
|
|
|
35492
35492
|
this._stream = options.stream;
|
|
35493
35493
|
this._stream.setMaxListeners(Infinity);
|
|
35494
35494
|
this.isObjectMode = options.stream._writableState.objectMode;
|
|
35495
|
-
this.eol = typeof options.eol === "string" ? options.eol :
|
|
35495
|
+
this.eol = typeof options.eol === "string" ? options.eol : os2.EOL;
|
|
35496
35496
|
}
|
|
35497
35497
|
/**
|
|
35498
35498
|
* Core logging method exposed to Winston.
|
|
@@ -35879,7 +35879,7 @@ var require_exception_stream = __commonJS({
|
|
|
35879
35879
|
var require_exception_handler = __commonJS({
|
|
35880
35880
|
"../../node_modules/winston/lib/winston/exception-handler.js"(exports2, module2) {
|
|
35881
35881
|
"use strict";
|
|
35882
|
-
var
|
|
35882
|
+
var os2 = require("os");
|
|
35883
35883
|
var asyncForEach = require_forEach();
|
|
35884
35884
|
var debug = require_node2()("winston:exception");
|
|
35885
35885
|
var once = require_one_time();
|
|
@@ -35974,8 +35974,8 @@ var require_exception_handler = __commonJS({
|
|
|
35974
35974
|
*/
|
|
35975
35975
|
getOsInfo() {
|
|
35976
35976
|
return {
|
|
35977
|
-
loadavg:
|
|
35978
|
-
uptime:
|
|
35977
|
+
loadavg: os2.loadavg(),
|
|
35978
|
+
uptime: os2.uptime()
|
|
35979
35979
|
};
|
|
35980
35980
|
}
|
|
35981
35981
|
/**
|
|
@@ -36077,7 +36077,7 @@ var require_exception_handler = __commonJS({
|
|
|
36077
36077
|
var require_rejection_handler = __commonJS({
|
|
36078
36078
|
"../../node_modules/winston/lib/winston/rejection-handler.js"(exports2, module2) {
|
|
36079
36079
|
"use strict";
|
|
36080
|
-
var
|
|
36080
|
+
var os2 = require("os");
|
|
36081
36081
|
var asyncForEach = require_forEach();
|
|
36082
36082
|
var debug = require_node2()("winston:rejection");
|
|
36083
36083
|
var once = require_one_time();
|
|
@@ -36174,8 +36174,8 @@ var require_rejection_handler = __commonJS({
|
|
|
36174
36174
|
*/
|
|
36175
36175
|
getOsInfo() {
|
|
36176
36176
|
return {
|
|
36177
|
-
loadavg:
|
|
36178
|
-
uptime:
|
|
36177
|
+
loadavg: os2.loadavg(),
|
|
36178
|
+
uptime: os2.uptime()
|
|
36179
36179
|
};
|
|
36180
36180
|
}
|
|
36181
36181
|
/**
|
|
@@ -39145,7 +39145,7 @@ __export(main_exports, {
|
|
|
39145
39145
|
module.exports = __toCommonJS(main_exports);
|
|
39146
39146
|
|
|
39147
39147
|
// ../core/dist/esm/index.mjs
|
|
39148
|
-
var
|
|
39148
|
+
var Pe = class {
|
|
39149
39149
|
constructor(e, t) {
|
|
39150
39150
|
this.operator = e;
|
|
39151
39151
|
this.child = t;
|
|
@@ -39164,7 +39164,7 @@ var Q = class {
|
|
|
39164
39164
|
return `${this.left.toString()} ${this.operator} ${this.right.toString()}`;
|
|
39165
39165
|
}
|
|
39166
39166
|
};
|
|
39167
|
-
var
|
|
39167
|
+
var Ce = class {
|
|
39168
39168
|
constructor() {
|
|
39169
39169
|
this.prefixParselets = {};
|
|
39170
39170
|
this.infixParselets = {};
|
|
@@ -39188,10 +39188,10 @@ var Pe = class {
|
|
|
39188
39188
|
}, precedence: t });
|
|
39189
39189
|
}
|
|
39190
39190
|
construct(e) {
|
|
39191
|
-
return new
|
|
39191
|
+
return new lt(e, this.prefixParselets, this.infixParselets);
|
|
39192
39192
|
}
|
|
39193
39193
|
};
|
|
39194
|
-
var
|
|
39194
|
+
var lt = class {
|
|
39195
39195
|
constructor(e, t, n) {
|
|
39196
39196
|
this.tokens = e, this.prefixParselets = t, this.infixParselets = n;
|
|
39197
39197
|
}
|
|
@@ -39242,12 +39242,12 @@ var ut = class {
|
|
|
39242
39242
|
return this.infixParselets[e.id === "Symbol" ? e.value : e.id];
|
|
39243
39243
|
}
|
|
39244
39244
|
};
|
|
39245
|
-
var
|
|
39246
|
-
var
|
|
39247
|
-
var
|
|
39248
|
-
var
|
|
39249
|
-
var
|
|
39250
|
-
var ir = { resourceType: "OperationOutcome", id:
|
|
39245
|
+
var dt = "ok";
|
|
39246
|
+
var Ae = "created";
|
|
39247
|
+
var ft = "not-modified";
|
|
39248
|
+
var mt = "not-found";
|
|
39249
|
+
var we = "accepted";
|
|
39250
|
+
var ir = { resourceType: "OperationOutcome", id: mt, issue: [{ severity: "error", code: "not-found", details: { text: "Not found" } }] };
|
|
39251
39251
|
function v(r4, e) {
|
|
39252
39252
|
return { resourceType: "OperationOutcome", issue: [{ severity: "error", code: "invalid", details: { text: r4 }, expression: e ? [e] : void 0 }] };
|
|
39253
39253
|
}
|
|
@@ -39257,15 +39257,15 @@ function h(r4) {
|
|
|
39257
39257
|
function ne(r4) {
|
|
39258
39258
|
return typeof r4 == "object" && r4 !== null && r4.resourceType === "OperationOutcome";
|
|
39259
39259
|
}
|
|
39260
|
-
function
|
|
39261
|
-
return r4.id ===
|
|
39260
|
+
function ht(r4) {
|
|
39261
|
+
return r4.id === dt || r4.id === Ae || r4.id === ft || r4.id === we;
|
|
39262
39262
|
}
|
|
39263
39263
|
var d = class extends Error {
|
|
39264
39264
|
constructor(e, t) {
|
|
39265
39265
|
super(or(e)), this.outcome = e, this.cause = t;
|
|
39266
39266
|
}
|
|
39267
39267
|
};
|
|
39268
|
-
function
|
|
39268
|
+
function Ie(r4) {
|
|
39269
39269
|
return r4 instanceof d ? r4.outcome : ne(r4) ? r4 : v(Nn(r4));
|
|
39270
39270
|
}
|
|
39271
39271
|
function Nn(r4) {
|
|
@@ -39280,15 +39280,15 @@ function Mn(r4) {
|
|
|
39280
39280
|
return r4.details?.text ? r4.diagnostics ? e = `${r4.details.text} (${r4.diagnostics})` : e = r4.details.text : r4.diagnostics ? e = r4.diagnostics : e = "Unknown error", r4.expression?.length && (e += ` (${r4.expression.join(", ")})`), e;
|
|
39281
39281
|
}
|
|
39282
39282
|
function J(r4) {
|
|
39283
|
-
let e =
|
|
39283
|
+
let e = fe(r4), t = _n(r4);
|
|
39284
39284
|
return t === e ? { reference: e } : { reference: e, display: t };
|
|
39285
39285
|
}
|
|
39286
|
-
function
|
|
39287
|
-
return
|
|
39286
|
+
function fe(r4) {
|
|
39287
|
+
return me(r4) ? r4.reference : `${r4.resourceType}/${r4.id}`;
|
|
39288
39288
|
}
|
|
39289
39289
|
function ur(r4) {
|
|
39290
39290
|
if (r4)
|
|
39291
|
-
return
|
|
39291
|
+
return me(r4) ? r4.reference.split("/")[1] : r4.id;
|
|
39292
39292
|
}
|
|
39293
39293
|
function Fn(r4) {
|
|
39294
39294
|
return r4.resourceType === "Patient" || r4.resourceType === "Practitioner" || r4.resourceType === "RelatedPerson";
|
|
@@ -39304,19 +39304,19 @@ function _n(r4) {
|
|
|
39304
39304
|
if (e)
|
|
39305
39305
|
return e;
|
|
39306
39306
|
}
|
|
39307
|
-
return r4.resourceType === "Observation" && "code" in r4 && r4.code?.text ? r4.code.text : r4.resourceType === "User" && r4.email ? r4.email : "name" in r4 && r4.name && typeof r4.name == "string" ? r4.name :
|
|
39307
|
+
return r4.resourceType === "Observation" && "code" in r4 && r4.code?.text ? r4.code.text : r4.resourceType === "User" && r4.email ? r4.email : "name" in r4 && r4.name && typeof r4.name == "string" ? r4.name : fe(r4);
|
|
39308
39308
|
}
|
|
39309
39309
|
function Ln(r4) {
|
|
39310
39310
|
let e = r4.name;
|
|
39311
39311
|
if (e && e.length > 0)
|
|
39312
|
-
return
|
|
39312
|
+
return Me(e[0]);
|
|
39313
39313
|
}
|
|
39314
39314
|
function Un(r4) {
|
|
39315
39315
|
let e = r4.deviceName;
|
|
39316
39316
|
if (e && e.length > 0)
|
|
39317
39317
|
return e[0].name;
|
|
39318
39318
|
}
|
|
39319
|
-
function
|
|
39319
|
+
function ke(r4, e) {
|
|
39320
39320
|
let t = new Date(r4);
|
|
39321
39321
|
t.setUTCHours(0, 0, 0, 0);
|
|
39322
39322
|
let n = e ? new Date(e) : /* @__PURE__ */ new Date();
|
|
@@ -39376,19 +39376,19 @@ function yr(r4) {
|
|
|
39376
39376
|
function I(r4) {
|
|
39377
39377
|
return r4 ? r4.charAt(0).toUpperCase() + r4.substring(1) : "";
|
|
39378
39378
|
}
|
|
39379
|
-
var
|
|
39379
|
+
var Tt = (r4) => new Promise((e) => {
|
|
39380
39380
|
setTimeout(e, r4);
|
|
39381
39381
|
});
|
|
39382
|
-
function
|
|
39382
|
+
function Me(r4, e) {
|
|
39383
39383
|
let t = [];
|
|
39384
39384
|
if (r4.prefix && e?.prefix !== false && t.push(...r4.prefix), r4.given && t.push(...r4.given), r4.family && t.push(r4.family), r4.suffix && e?.suffix !== false && t.push(...r4.suffix), r4.use && (e?.all || e?.use) && t.push("[" + r4.use + "]"), t.length === 0) {
|
|
39385
|
-
let n =
|
|
39385
|
+
let n = oe(r4.text);
|
|
39386
39386
|
if (n)
|
|
39387
39387
|
return n;
|
|
39388
39388
|
}
|
|
39389
39389
|
return t.join(" ").trim();
|
|
39390
39390
|
}
|
|
39391
|
-
function
|
|
39391
|
+
function oe(r4) {
|
|
39392
39392
|
return typeof r4 == "string" ? r4 : void 0;
|
|
39393
39393
|
}
|
|
39394
39394
|
function ui(r4, e) {
|
|
@@ -39401,7 +39401,7 @@ function Sr(r4) {
|
|
|
39401
39401
|
e[t] = { name: t, elements: Object.fromEntries(Object.entries(n.elements).map(([i2, o]) => [i2, ui(i2, o)])), constraints: [], innerTypes: [] };
|
|
39402
39402
|
return e;
|
|
39403
39403
|
}
|
|
39404
|
-
var Er = { Element: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] } } }, BackboneElement: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, modifierExtension: { max: 9007199254740991, type: [{ code: "Extension" }] } } }, Address: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, use: { type: [{ code: "code" }] }, type: { type: [{ code: "code" }] }, text: { type: [{ code: "string" }] }, line: { max: 9007199254740991, type: [{ code: "string" }] }, city: { type: [{ code: "string" }] }, district: { type: [{ code: "string" }] }, state: { type: [{ code: "string" }] }, postalCode: { type: [{ code: "string" }] }, country: { type: [{ code: "string" }] }, period: { type: [{ code: "Period" }] } } }, Age: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, value: { type: [{ code: "decimal" }] }, comparator: { type: [{ code: "code" }] }, unit: { type: [{ code: "string" }] }, system: { type: [{ code: "uri" }] }, code: { type: [{ code: "code" }] } } }, Annotation: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, "author[x]": { type: [{ code: "Reference", targetProfile: ["http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/RelatedPerson", "http://hl7.org/fhir/StructureDefinition/Organization"] }, { code: "string" }] }, time: { type: [{ code: "dateTime" }] }, text: { min: 1, type: [{ code: "markdown" }] } } }, Attachment: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, contentType: { type: [{ code: "code" }] }, language: { type: [{ code: "code" }] }, data: { type: [{ code: "base64Binary" }] }, url: { type: [{ code: "url" }] }, size: { type: [{ code: "unsignedInt" }] }, hash: { type: [{ code: "base64Binary" }] }, title: { type: [{ code: "string" }] }, creation: { type: [{ code: "dateTime" }] } } }, CodeableConcept: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, coding: { max: 9007199254740991, type: [{ code: "Coding" }] }, text: { type: [{ code: "string" }] } } }, Coding: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, system: { type: [{ code: "uri" }] }, version: { type: [{ code: "string" }] }, code: { type: [{ code: "code" }] }, display: { type: [{ code: "string" }] }, userSelected: { type: [{ code: "boolean" }] } } }, ContactDetail: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, name: { type: [{ code: "string" }] }, telecom: { max: 9007199254740991, type: [{ code: "ContactPoint" }] } } }, ContactPoint: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, system: { type: [{ code: "code" }] }, value: { type: [{ code: "string" }] }, use: { type: [{ code: "code" }] }, rank: { type: [{ code: "positiveInt" }] }, period: { type: [{ code: "Period" }] } } }, Contributor: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, type: { min: 1, type: [{ code: "code" }] }, name: { min: 1, type: [{ code: "string" }] }, contact: { max: 9007199254740991, type: [{ code: "ContactDetail" }] } } }, Count: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, value: { type: [{ code: "decimal" }] }, comparator: { type: [{ code: "code" }] }, unit: { type: [{ code: "string" }] }, system: { type: [{ code: "uri" }] }, code: { type: [{ code: "code" }] } } }, DataRequirement: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, type: { min: 1, type: [{ code: "code" }] }, profile: { max: 9007199254740991, type: [{ code: "canonical", targetProfile: ["http://hl7.org/fhir/StructureDefinition/StructureDefinition"] }] }, "subject[x]": { type: [{ code: "CodeableConcept" }, { code: "Reference", targetProfile: ["http://hl7.org/fhir/StructureDefinition/Group"] }] }, mustSupport: { max: 9007199254740991, type: [{ code: "string" }] }, codeFilter: { max: 9007199254740991, type: [{ code: "DataRequirementCodeFilter" }] }, dateFilter: { max: 9007199254740991, type: [{ code: "DataRequirementDateFilter" }] }, limit: { type: [{ code: "positiveInt" }] }, sort: { max: 9007199254740991, type: [{ code: "DataRequirementSort" }] } } }, Distance: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, value: { type: [{ code: "decimal" }] }, comparator: { type: [{ code: "code" }] }, unit: { type: [{ code: "string" }] }, system: { type: [{ code: "uri" }] }, code: { type: [{ code: "code" }] } } }, Dosage: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, modifierExtension: { max: 9007199254740991, type: [{ code: "Extension" }] }, sequence: { type: [{ code: "integer" }] }, text: { type: [{ code: "string" }] }, additionalInstruction: { max: 9007199254740991, type: [{ code: "CodeableConcept" }] }, patientInstruction: { type: [{ code: "string" }] }, timing: { type: [{ code: "Timing" }] }, "asNeeded[x]": { type: [{ code: "boolean" }, { code: "CodeableConcept" }] }, site: { type: [{ code: "CodeableConcept" }] }, route: { type: [{ code: "CodeableConcept" }] }, method: { type: [{ code: "CodeableConcept" }] }, doseAndRate: { max: 9007199254740991, type: [{ code: "DosageDoseAndRate" }] }, maxDosePerPeriod: { type: [{ code: "Ratio" }] }, maxDosePerAdministration: { type: [{ code: "Quantity" }] }, maxDosePerLifetime: { type: [{ code: "Quantity" }] } } }, Duration: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, value: { type: [{ code: "decimal" }] }, comparator: { type: [{ code: "code" }] }, unit: { type: [{ code: "string" }] }, system: { type: [{ code: "uri" }] }, code: { type: [{ code: "code" }] } } }, ElementDefinition: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, modifierExtension: { max: 9007199254740991, type: [{ code: "Extension" }] }, path: { min: 1, type: [{ code: "string" }] }, representation: { max: 9007199254740991, type: [{ code: "code" }] }, sliceName: { type: [{ code: "string" }] }, sliceIsConstraining: { type: [{ code: "boolean" }] }, label: { type: [{ code: "string" }] }, code: { max: 9007199254740991, type: [{ code: "Coding" }] }, slicing: { type: [{ code: "ElementDefinitionSlicing" }] }, short: { type: [{ code: "string" }] }, definition: { type: [{ code: "markdown" }] }, comment: { type: [{ code: "markdown" }] }, requirements: { type: [{ code: "markdown" }] }, alias: { max: 9007199254740991, type: [{ code: "string" }] }, min: { type: [{ code: "unsignedInt" }] }, max: { type: [{ code: "string" }] }, base: { type: [{ code: "ElementDefinitionBase" }] }, contentReference: { type: [{ code: "uri" }] }, type: { max: 9007199254740991, type: [{ code: "ElementDefinitionType" }] }, "defaultValue[x]": { type: [{ code: "base64Binary" }, { code: "boolean" }, { code: "canonical" }, { code: "code" }, { code: "date" }, { code: "dateTime" }, { code: "decimal" }, { code: "id" }, { code: "instant" }, { code: "integer" }, { code: "markdown" }, { code: "oid" }, { code: "positiveInt" }, { code: "string" }, { code: "time" }, { code: "unsignedInt" }, { code: "uri" }, { code: "url" }, { code: "uuid" }, { code: "Address" }, { code: "Age" }, { code: "Annotation" }, { code: "Attachment" }, { code: "CodeableConcept" }, { code: "Coding" }, { code: "ContactPoint" }, { code: "Count" }, { code: "Distance" }, { code: "Duration" }, { code: "HumanName" }, { code: "Identifier" }, { code: "Money" }, { code: "Period" }, { code: "Quantity" }, { code: "Range" }, { code: "Ratio" }, { code: "Reference" }, { code: "SampledData" }, { code: "Signature" }, { code: "Timing" }, { code: "ContactDetail" }, { code: "Contributor" }, { code: "DataRequirement" }, { code: "Expression" }, { code: "ParameterDefinition" }, { code: "RelatedArtifact" }, { code: "TriggerDefinition" }, { code: "UsageContext" }, { code: "Dosage" }, { code: "Meta" }] }, meaningWhenMissing: { type: [{ code: "markdown" }] }, orderMeaning: { type: [{ code: "string" }] }, "fixed[x]": { type: [{ code: "base64Binary" }, { code: "boolean" }, { code: "canonical" }, { code: "code" }, { code: "date" }, { code: "dateTime" }, { code: "decimal" }, { code: "id" }, { code: "instant" }, { code: "integer" }, { code: "markdown" }, { code: "oid" }, { code: "positiveInt" }, { code: "string" }, { code: "time" }, { code: "unsignedInt" }, { code: "uri" }, { code: "url" }, { code: "uuid" }, { code: "Address" }, { code: "Age" }, { code: "Annotation" }, { code: "Attachment" }, { code: "CodeableConcept" }, { code: "Coding" }, { code: "ContactPoint" }, { code: "Count" }, { code: "Distance" }, { code: "Duration" }, { code: "HumanName" }, { code: "Identifier" }, { code: "Money" }, { code: "Period" }, { code: "Quantity" }, { code: "Range" }, { code: "Ratio" }, { code: "Reference" }, { code: "SampledData" }, { code: "Signature" }, { code: "Timing" }, { code: "ContactDetail" }, { code: "Contributor" }, { code: "DataRequirement" }, { code: "Expression" }, { code: "ParameterDefinition" }, { code: "RelatedArtifact" }, { code: "TriggerDefinition" }, { code: "UsageContext" }, { code: "Dosage" }, { code: "Meta" }] }, "pattern[x]": { type: [{ code: "base64Binary" }, { code: "boolean" }, { code: "canonical" }, { code: "code" }, { code: "date" }, { code: "dateTime" }, { code: "decimal" }, { code: "id" }, { code: "instant" }, { code: "integer" }, { code: "markdown" }, { code: "oid" }, { code: "positiveInt" }, { code: "string" }, { code: "time" }, { code: "unsignedInt" }, { code: "uri" }, { code: "url" }, { code: "uuid" }, { code: "Address" }, { code: "Age" }, { code: "Annotation" }, { code: "Attachment" }, { code: "CodeableConcept" }, { code: "Coding" }, { code: "ContactPoint" }, { code: "Count" }, { code: "Distance" }, { code: "Duration" }, { code: "HumanName" }, { code: "Identifier" }, { code: "Money" }, { code: "Period" }, { code: "Quantity" }, { code: "Range" }, { code: "Ratio" }, { code: "Reference" }, { code: "SampledData" }, { code: "Signature" }, { code: "Timing" }, { code: "ContactDetail" }, { code: "Contributor" }, { code: "DataRequirement" }, { code: "Expression" }, { code: "ParameterDefinition" }, { code: "RelatedArtifact" }, { code: "TriggerDefinition" }, { code: "UsageContext" }, { code: "Dosage" }, { code: "Meta" }] }, example: { max: 9007199254740991, type: [{ code: "ElementDefinitionExample" }] }, "minValue[x]": { type: [{ code: "date" }, { code: "dateTime" }, { code: "instant" }, { code: "time" }, { code: "decimal" }, { code: "integer" }, { code: "positiveInt" }, { code: "unsignedInt" }, { code: "Quantity" }] }, "maxValue[x]": { type: [{ code: "date" }, { code: "dateTime" }, { code: "instant" }, { code: "time" }, { code: "decimal" }, { code: "integer" }, { code: "positiveInt" }, { code: "unsignedInt" }, { code: "Quantity" }] }, maxLength: { type: [{ code: "integer" }] }, condition: { max: 9007199254740991, type: [{ code: "id" }] }, constraint: { max: 9007199254740991, type: [{ code: "ElementDefinitionConstraint" }] }, mustSupport: { type: [{ code: "boolean" }] }, isModifier: { type: [{ code: "boolean" }] }, isModifierReason: { type: [{ code: "string" }] }, isSummary: { type: [{ code: "boolean" }] }, binding: { type: [{ code: "ElementDefinitionBinding" }] }, mapping: { max: 9007199254740991, type: [{ code: "ElementDefinitionMapping" }] } } }, Expression: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, description: { type: [{ code: "string" }] }, name: { type: [{ code: "id" }] }, language: { min: 1, type: [{ code: "code" }] }, expression: { type: [{ code: "string" }] }, reference: { type: [{ code: "uri" }] } } }, Extension: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, url: { min: 1, type: [{ code: "string" }] }, "value[x]": { type: [{ code: "base64Binary" }, { code: "boolean" }, { code: "canonical" }, { code: "code" }, { code: "date" }, { code: "dateTime" }, { code: "decimal" }, { code: "id" }, { code: "instant" }, { code: "integer" }, { code: "markdown" }, { code: "oid" }, { code: "positiveInt" }, { code: "string" }, { code: "time" }, { code: "unsignedInt" }, { code: "uri" }, { code: "url" }, { code: "uuid" }, { code: "Address" }, { code: "Age" }, { code: "Annotation" }, { code: "Attachment" }, { code: "CodeableConcept" }, { code: "Coding" }, { code: "ContactPoint" }, { code: "Count" }, { code: "Distance" }, { code: "Duration" }, { code: "HumanName" }, { code: "Identifier" }, { code: "Money" }, { code: "Period" }, { code: "Quantity" }, { code: "Range" }, { code: "Ratio" }, { code: "Reference" }, { code: "SampledData" }, { code: "Signature" }, { code: "Timing" }, { code: "ContactDetail" }, { code: "Contributor" }, { code: "DataRequirement" }, { code: "Expression" }, { code: "ParameterDefinition" }, { code: "RelatedArtifact" }, { code: "TriggerDefinition" }, { code: "UsageContext" }, { code: "Dosage" }, { code: "Meta" }] } } }, HumanName: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, use: { type: [{ code: "code" }] }, text: { type: [{ code: "string" }] }, family: { type: [{ code: "string" }] }, given: { max: 9007199254740991, type: [{ code: "string" }] }, prefix: { max: 9007199254740991, type: [{ code: "string" }] }, suffix: { max: 9007199254740991, type: [{ code: "string" }] }, period: { type: [{ code: "Period" }] } } }, Identifier: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, use: { type: [{ code: "code" }] }, type: { type: [{ code: "CodeableConcept" }] }, system: { type: [{ code: "uri" }] }, value: { type: [{ code: "string" }] }, period: { type: [{ code: "Period" }] }, assigner: { type: [{ code: "Reference", targetProfile: ["http://hl7.org/fhir/StructureDefinition/Organization"] }] } } }, MarketingStatus: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, modifierExtension: { max: 9007199254740991, type: [{ code: "Extension" }] }, country: { min: 1, type: [{ code: "CodeableConcept" }] }, jurisdiction: { type: [{ code: "CodeableConcept" }] }, status: { min: 1, type: [{ code: "CodeableConcept" }] }, dateRange: { min: 1, type: [{ code: "Period" }] }, restoreDate: { type: [{ code: "dateTime" }] } } }, Meta: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, versionId: { type: [{ code: "id" }] }, lastUpdated: { type: [{ code: "instant" }] }, source: { type: [{ code: "uri" }] }, profile: { max: 9007199254740991, type: [{ code: "canonical", targetProfile: ["http://hl7.org/fhir/StructureDefinition/StructureDefinition"] }] }, security: { max: 9007199254740991, type: [{ code: "Coding" }] }, tag: { max: 9007199254740991, type: [{ code: "Coding" }] }, project: { type: [{ code: "uri" }] }, author: { type: [{ code: "Reference" }] }, account: { type: [{ code: "Reference" }] }, compartment: { max: 9007199254740991, type: [{ code: "Reference" }] } } }, Money: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, value: { type: [{ code: "decimal" }] }, currency: { type: [{ code: "code" }] } } }, Narrative: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, status: { min: 1, type: [{ code: "code" }] }, div: { min: 1, type: [{ code: "xhtml" }] } } }, ParameterDefinition: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, name: { type: [{ code: "code" }] }, use: { min: 1, type: [{ code: "code" }] }, min: { type: [{ code: "integer" }] }, max: { type: [{ code: "string" }] }, documentation: { type: [{ code: "string" }] }, type: { min: 1, type: [{ code: "code" }] }, profile: { type: [{ code: "canonical", targetProfile: ["http://hl7.org/fhir/StructureDefinition/StructureDefinition"] }] } } }, Period: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, start: { type: [{ code: "dateTime" }] }, end: { type: [{ code: "dateTime" }] } } }, Population: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, modifierExtension: { max: 9007199254740991, type: [{ code: "Extension" }] }, "age[x]": { type: [{ code: "Range" }, { code: "CodeableConcept" }] }, gender: { type: [{ code: "CodeableConcept" }] }, race: { type: [{ code: "CodeableConcept" }] }, physiologicalCondition: { type: [{ code: "CodeableConcept" }] } } }, ProdCharacteristic: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, modifierExtension: { max: 9007199254740991, type: [{ code: "Extension" }] }, height: { type: [{ code: "Quantity" }] }, width: { type: [{ code: "Quantity" }] }, depth: { type: [{ code: "Quantity" }] }, weight: { type: [{ code: "Quantity" }] }, nominalVolume: { type: [{ code: "Quantity" }] }, externalDiameter: { type: [{ code: "Quantity" }] }, shape: { type: [{ code: "string" }] }, color: { max: 9007199254740991, type: [{ code: "string" }] }, imprint: { max: 9007199254740991, type: [{ code: "string" }] }, image: { max: 9007199254740991, type: [{ code: "Attachment" }] }, scoring: { type: [{ code: "CodeableConcept" }] } } }, ProductShelfLife: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, modifierExtension: { max: 9007199254740991, type: [{ code: "Extension" }] }, identifier: { type: [{ code: "Identifier" }] }, type: { min: 1, type: [{ code: "CodeableConcept" }] }, period: { min: 1, type: [{ code: "Quantity" }] }, specialPrecautionsForStorage: { max: 9007199254740991, type: [{ code: "CodeableConcept" }] } } }, Quantity: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, value: { type: [{ code: "decimal" }] }, comparator: { type: [{ code: "code" }] }, unit: { type: [{ code: "string" }] }, system: { type: [{ code: "uri" }] }, code: { type: [{ code: "code" }] } } }, Range: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, low: { type: [{ code: "Quantity" }] }, high: { type: [{ code: "Quantity" }] } } }, Ratio: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, numerator: { type: [{ code: "Quantity" }] }, denominator: { type: [{ code: "Quantity" }] } } }, Reference: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, reference: { type: [{ code: "string" }] }, type: { type: [{ code: "uri" }] }, identifier: { type: [{ code: "Identifier" }] }, display: { type: [{ code: "string" }] } } }, RelatedArtifact: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, type: { min: 1, type: [{ code: "code" }] }, label: { type: [{ code: "string" }] }, display: { type: [{ code: "string" }] }, citation: { type: [{ code: "markdown" }] }, url: { type: [{ code: "url" }] }, document: { type: [{ code: "Attachment" }] }, resource: { type: [{ code: "canonical", targetProfile: ["http://hl7.org/fhir/StructureDefinition/Resource"] }] } } }, SampledData: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, origin: { min: 1, type: [{ code: "Quantity" }] }, period: { min: 1, type: [{ code: "decimal" }] }, factor: { type: [{ code: "decimal" }] }, lowerLimit: { type: [{ code: "decimal" }] }, upperLimit: { type: [{ code: "decimal" }] }, dimensions: { min: 1, type: [{ code: "positiveInt" }] }, data: { type: [{ code: "string" }] } } }, Signature: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, type: { min: 1, max: 9007199254740991, type: [{ code: "Coding" }] }, when: { min: 1, type: [{ code: "instant" }] }, who: { min: 1, type: [{ code: "Reference", targetProfile: ["http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/PractitionerRole", "http://hl7.org/fhir/StructureDefinition/RelatedPerson", "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/Device", "http://hl7.org/fhir/StructureDefinition/Organization"] }] }, onBehalfOf: { type: [{ code: "Reference", targetProfile: ["http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/PractitionerRole", "http://hl7.org/fhir/StructureDefinition/RelatedPerson", "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/Device", "http://hl7.org/fhir/StructureDefinition/Organization"] }] }, targetFormat: { type: [{ code: "code" }] }, sigFormat: { type: [{ code: "code" }] }, data: { type: [{ code: "base64Binary" }] } } }, SubstanceAmount: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, modifierExtension: { max: 9007199254740991, type: [{ code: "Extension" }] }, "amount[x]": { type: [{ code: "Quantity" }, { code: "Range" }, { code: "string" }] }, amountType: { type: [{ code: "CodeableConcept" }] }, amountText: { type: [{ code: "string" }] }, referenceRange: { type: [{ code: "SubstanceAmountReferenceRange" }] } } }, Timing: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, modifierExtension: { max: 9007199254740991, type: [{ code: "Extension" }] }, event: { max: 9007199254740991, type: [{ code: "dateTime" }] }, repeat: { type: [{ code: "TimingRepeat" }] }, code: { type: [{ code: "CodeableConcept" }] } } }, TriggerDefinition: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, type: { min: 1, type: [{ code: "code" }] }, name: { type: [{ code: "string" }] }, "timing[x]": { type: [{ code: "Timing" }, { code: "Reference", targetProfile: ["http://hl7.org/fhir/StructureDefinition/Schedule"] }, { code: "date" }, { code: "dateTime" }] }, data: { max: 9007199254740991, type: [{ code: "DataRequirement" }] }, condition: { type: [{ code: "Expression" }] } } }, UsageContext: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, code: { min: 1, type: [{ code: "Coding" }] }, "value[x]": { min: 1, type: [{ code: "CodeableConcept" }, { code: "Quantity" }, { code: "Range" }, { code: "Reference", targetProfile: ["http://hl7.org/fhir/StructureDefinition/PlanDefinition", "http://hl7.org/fhir/StructureDefinition/ResearchStudy", "http://hl7.org/fhir/StructureDefinition/InsurancePlan", "http://hl7.org/fhir/StructureDefinition/HealthcareService", "http://hl7.org/fhir/StructureDefinition/Group", "http://hl7.org/fhir/StructureDefinition/Location", "http://hl7.org/fhir/StructureDefinition/Organization"] }] } } }, MoneyQuantity: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, value: { type: [{ code: "decimal" }] }, comparator: { type: [{ code: "code" }] }, unit: { type: [{ code: "string" }] }, system: { type: [{ code: "uri" }] }, code: { type: [{ code: "code" }] } } }, SimpleQuantity: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, value: { type: [{ code: "decimal" }] }, comparator: { max: 0, type: [{ code: "code" }] }, unit: { type: [{ code: "string" }] }, system: { type: [{ code: "uri" }] }, code: { type: [{ code: "code" }] } } }, MetadataResource: { elements: { id: { type: [{ code: "string" }] }, meta: { type: [{ code: "Meta" }] }, implicitRules: { type: [{ code: "uri" }] }, language: { type: [{ code: "code" }] }, text: { type: [{ code: "Narrative" }] }, contained: { max: 9007199254740991, type: [{ code: "Resource" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, modifierExtension: { max: 9007199254740991, type: [{ code: "Extension" }] }, url: { type: [{ code: "uri" }] }, version: { type: [{ code: "string" }] }, name: { type: [{ code: "string" }] }, title: { type: [{ code: "string" }] }, status: { min: 1, type: [{ code: "code" }] }, experimental: { type: [{ code: "boolean" }] }, date: { type: [{ code: "dateTime" }] }, publisher: { type: [{ code: "string" }] }, contact: { max: 9007199254740991, type: [{ code: "ContactDetail" }] }, description: { type: [{ code: "markdown" }] }, useContext: { max: 9007199254740991, type: [{ code: "UsageContext" }] }, jurisdiction: { max: 9007199254740991, type: [{ code: "CodeableConcept" }] } } }, IdentityProvider: { elements: { authorizeUrl: { min: 1, type: [{ code: "string" }] }, tokenUrl: { min: 1, type: [{ code: "string" }] }, tokenAuthMethod: { type: [{ code: "code" }] }, userInfoUrl: { min: 1, type: [{ code: "string" }] }, clientId: { min: 1, type: [{ code: "string" }] }, clientSecret: { min: 1, type: [{ code: "string" }] }, usePkce: { type: [{ code: "boolean" }] }, useSubject: { type: [{ code: "boolean" }] } } } };
|
|
39404
|
+
var Er = { Element: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] } } }, BackboneElement: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, modifierExtension: { max: 9007199254740991, type: [{ code: "Extension" }] } } }, Address: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, use: { type: [{ code: "code" }] }, type: { type: [{ code: "code" }] }, text: { type: [{ code: "string" }] }, line: { max: 9007199254740991, type: [{ code: "string" }] }, city: { type: [{ code: "string" }] }, district: { type: [{ code: "string" }] }, state: { type: [{ code: "string" }] }, postalCode: { type: [{ code: "string" }] }, country: { type: [{ code: "string" }] }, period: { type: [{ code: "Period" }] } } }, Age: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, value: { type: [{ code: "decimal" }] }, comparator: { type: [{ code: "code" }] }, unit: { type: [{ code: "string" }] }, system: { type: [{ code: "uri" }] }, code: { type: [{ code: "code" }] } } }, Annotation: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, "author[x]": { type: [{ code: "Reference", targetProfile: ["http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/RelatedPerson", "http://hl7.org/fhir/StructureDefinition/Organization"] }, { code: "string" }] }, time: { type: [{ code: "dateTime" }] }, text: { min: 1, type: [{ code: "markdown" }] } } }, Attachment: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, contentType: { type: [{ code: "code" }] }, language: { type: [{ code: "code" }] }, data: { type: [{ code: "base64Binary" }] }, url: { type: [{ code: "url" }] }, size: { type: [{ code: "unsignedInt" }] }, hash: { type: [{ code: "base64Binary" }] }, title: { type: [{ code: "string" }] }, creation: { type: [{ code: "dateTime" }] } } }, CodeableConcept: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, coding: { max: 9007199254740991, type: [{ code: "Coding" }] }, text: { type: [{ code: "string" }] } } }, Coding: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, system: { type: [{ code: "uri" }] }, version: { type: [{ code: "string" }] }, code: { type: [{ code: "code" }] }, display: { type: [{ code: "string" }] }, userSelected: { type: [{ code: "boolean" }] } } }, ContactDetail: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, name: { type: [{ code: "string" }] }, telecom: { max: 9007199254740991, type: [{ code: "ContactPoint" }] } } }, ContactPoint: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, system: { type: [{ code: "code" }] }, value: { type: [{ code: "string" }] }, use: { type: [{ code: "code" }] }, rank: { type: [{ code: "positiveInt" }] }, period: { type: [{ code: "Period" }] } } }, Contributor: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, type: { min: 1, type: [{ code: "code" }] }, name: { min: 1, type: [{ code: "string" }] }, contact: { max: 9007199254740991, type: [{ code: "ContactDetail" }] } } }, Count: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, value: { type: [{ code: "decimal" }] }, comparator: { type: [{ code: "code" }] }, unit: { type: [{ code: "string" }] }, system: { type: [{ code: "uri" }] }, code: { type: [{ code: "code" }] } } }, DataRequirement: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, type: { min: 1, type: [{ code: "code" }] }, profile: { max: 9007199254740991, type: [{ code: "canonical", targetProfile: ["http://hl7.org/fhir/StructureDefinition/StructureDefinition"] }] }, "subject[x]": { type: [{ code: "CodeableConcept" }, { code: "Reference", targetProfile: ["http://hl7.org/fhir/StructureDefinition/Group"] }] }, mustSupport: { max: 9007199254740991, type: [{ code: "string" }] }, codeFilter: { max: 9007199254740991, type: [{ code: "DataRequirementCodeFilter" }] }, dateFilter: { max: 9007199254740991, type: [{ code: "DataRequirementDateFilter" }] }, limit: { type: [{ code: "positiveInt" }] }, sort: { max: 9007199254740991, type: [{ code: "DataRequirementSort" }] } } }, Distance: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, value: { type: [{ code: "decimal" }] }, comparator: { type: [{ code: "code" }] }, unit: { type: [{ code: "string" }] }, system: { type: [{ code: "uri" }] }, code: { type: [{ code: "code" }] } } }, Dosage: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, modifierExtension: { max: 9007199254740991, type: [{ code: "Extension" }] }, sequence: { type: [{ code: "integer" }] }, text: { type: [{ code: "string" }] }, additionalInstruction: { max: 9007199254740991, type: [{ code: "CodeableConcept" }] }, patientInstruction: { type: [{ code: "string" }] }, timing: { type: [{ code: "Timing" }] }, "asNeeded[x]": { type: [{ code: "boolean" }, { code: "CodeableConcept" }] }, site: { type: [{ code: "CodeableConcept" }] }, route: { type: [{ code: "CodeableConcept" }] }, method: { type: [{ code: "CodeableConcept" }] }, doseAndRate: { max: 9007199254740991, type: [{ code: "DosageDoseAndRate" }] }, maxDosePerPeriod: { type: [{ code: "Ratio" }] }, maxDosePerAdministration: { type: [{ code: "Quantity", profile: ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"] }] }, maxDosePerLifetime: { type: [{ code: "Quantity", profile: ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"] }] } } }, Duration: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, value: { type: [{ code: "decimal" }] }, comparator: { type: [{ code: "code" }] }, unit: { type: [{ code: "string" }] }, system: { type: [{ code: "uri" }] }, code: { type: [{ code: "code" }] } } }, ElementDefinition: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, modifierExtension: { max: 9007199254740991, type: [{ code: "Extension" }] }, path: { min: 1, type: [{ code: "string" }] }, representation: { max: 9007199254740991, type: [{ code: "code" }] }, sliceName: { type: [{ code: "string" }] }, sliceIsConstraining: { type: [{ code: "boolean" }] }, label: { type: [{ code: "string" }] }, code: { max: 9007199254740991, type: [{ code: "Coding" }] }, slicing: { type: [{ code: "ElementDefinitionSlicing" }] }, short: { type: [{ code: "string" }] }, definition: { type: [{ code: "markdown" }] }, comment: { type: [{ code: "markdown" }] }, requirements: { type: [{ code: "markdown" }] }, alias: { max: 9007199254740991, type: [{ code: "string" }] }, min: { type: [{ code: "unsignedInt" }] }, max: { type: [{ code: "string" }] }, base: { type: [{ code: "ElementDefinitionBase" }] }, contentReference: { type: [{ code: "uri" }] }, type: { max: 9007199254740991, type: [{ code: "ElementDefinitionType" }] }, "defaultValue[x]": { type: [{ code: "base64Binary" }, { code: "boolean" }, { code: "canonical" }, { code: "code" }, { code: "date" }, { code: "dateTime" }, { code: "decimal" }, { code: "id" }, { code: "instant" }, { code: "integer" }, { code: "markdown" }, { code: "oid" }, { code: "positiveInt" }, { code: "string" }, { code: "time" }, { code: "unsignedInt" }, { code: "uri" }, { code: "url" }, { code: "uuid" }, { code: "Address" }, { code: "Age" }, { code: "Annotation" }, { code: "Attachment" }, { code: "CodeableConcept" }, { code: "Coding" }, { code: "ContactPoint" }, { code: "Count" }, { code: "Distance" }, { code: "Duration" }, { code: "HumanName" }, { code: "Identifier" }, { code: "Money" }, { code: "Period" }, { code: "Quantity" }, { code: "Range" }, { code: "Ratio" }, { code: "Reference" }, { code: "SampledData" }, { code: "Signature" }, { code: "Timing" }, { code: "ContactDetail" }, { code: "Contributor" }, { code: "DataRequirement" }, { code: "Expression" }, { code: "ParameterDefinition" }, { code: "RelatedArtifact" }, { code: "TriggerDefinition" }, { code: "UsageContext" }, { code: "Dosage" }, { code: "Meta" }] }, meaningWhenMissing: { type: [{ code: "markdown" }] }, orderMeaning: { type: [{ code: "string" }] }, "fixed[x]": { type: [{ code: "base64Binary" }, { code: "boolean" }, { code: "canonical" }, { code: "code" }, { code: "date" }, { code: "dateTime" }, { code: "decimal" }, { code: "id" }, { code: "instant" }, { code: "integer" }, { code: "markdown" }, { code: "oid" }, { code: "positiveInt" }, { code: "string" }, { code: "time" }, { code: "unsignedInt" }, { code: "uri" }, { code: "url" }, { code: "uuid" }, { code: "Address" }, { code: "Age" }, { code: "Annotation" }, { code: "Attachment" }, { code: "CodeableConcept" }, { code: "Coding" }, { code: "ContactPoint" }, { code: "Count" }, { code: "Distance" }, { code: "Duration" }, { code: "HumanName" }, { code: "Identifier" }, { code: "Money" }, { code: "Period" }, { code: "Quantity" }, { code: "Range" }, { code: "Ratio" }, { code: "Reference" }, { code: "SampledData" }, { code: "Signature" }, { code: "Timing" }, { code: "ContactDetail" }, { code: "Contributor" }, { code: "DataRequirement" }, { code: "Expression" }, { code: "ParameterDefinition" }, { code: "RelatedArtifact" }, { code: "TriggerDefinition" }, { code: "UsageContext" }, { code: "Dosage" }, { code: "Meta" }] }, "pattern[x]": { type: [{ code: "base64Binary" }, { code: "boolean" }, { code: "canonical" }, { code: "code" }, { code: "date" }, { code: "dateTime" }, { code: "decimal" }, { code: "id" }, { code: "instant" }, { code: "integer" }, { code: "markdown" }, { code: "oid" }, { code: "positiveInt" }, { code: "string" }, { code: "time" }, { code: "unsignedInt" }, { code: "uri" }, { code: "url" }, { code: "uuid" }, { code: "Address" }, { code: "Age" }, { code: "Annotation" }, { code: "Attachment" }, { code: "CodeableConcept" }, { code: "Coding" }, { code: "ContactPoint" }, { code: "Count" }, { code: "Distance" }, { code: "Duration" }, { code: "HumanName" }, { code: "Identifier" }, { code: "Money" }, { code: "Period" }, { code: "Quantity" }, { code: "Range" }, { code: "Ratio" }, { code: "Reference" }, { code: "SampledData" }, { code: "Signature" }, { code: "Timing" }, { code: "ContactDetail" }, { code: "Contributor" }, { code: "DataRequirement" }, { code: "Expression" }, { code: "ParameterDefinition" }, { code: "RelatedArtifact" }, { code: "TriggerDefinition" }, { code: "UsageContext" }, { code: "Dosage" }, { code: "Meta" }] }, example: { max: 9007199254740991, type: [{ code: "ElementDefinitionExample" }] }, "minValue[x]": { type: [{ code: "date" }, { code: "dateTime" }, { code: "instant" }, { code: "time" }, { code: "decimal" }, { code: "integer" }, { code: "positiveInt" }, { code: "unsignedInt" }, { code: "Quantity" }] }, "maxValue[x]": { type: [{ code: "date" }, { code: "dateTime" }, { code: "instant" }, { code: "time" }, { code: "decimal" }, { code: "integer" }, { code: "positiveInt" }, { code: "unsignedInt" }, { code: "Quantity" }] }, maxLength: { type: [{ code: "integer" }] }, condition: { max: 9007199254740991, type: [{ code: "id" }] }, constraint: { max: 9007199254740991, type: [{ code: "ElementDefinitionConstraint" }] }, mustSupport: { type: [{ code: "boolean" }] }, isModifier: { type: [{ code: "boolean" }] }, isModifierReason: { type: [{ code: "string" }] }, isSummary: { type: [{ code: "boolean" }] }, binding: { type: [{ code: "ElementDefinitionBinding" }] }, mapping: { max: 9007199254740991, type: [{ code: "ElementDefinitionMapping" }] } } }, Expression: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, description: { type: [{ code: "string" }] }, name: { type: [{ code: "id" }] }, language: { min: 1, type: [{ code: "code" }] }, expression: { type: [{ code: "string" }] }, reference: { type: [{ code: "uri" }] } } }, Extension: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, url: { min: 1, type: [{ code: "uri" }] }, "value[x]": { type: [{ code: "base64Binary" }, { code: "boolean" }, { code: "canonical" }, { code: "code" }, { code: "date" }, { code: "dateTime" }, { code: "decimal" }, { code: "id" }, { code: "instant" }, { code: "integer" }, { code: "markdown" }, { code: "oid" }, { code: "positiveInt" }, { code: "string" }, { code: "time" }, { code: "unsignedInt" }, { code: "uri" }, { code: "url" }, { code: "uuid" }, { code: "Address" }, { code: "Age" }, { code: "Annotation" }, { code: "Attachment" }, { code: "CodeableConcept" }, { code: "Coding" }, { code: "ContactPoint" }, { code: "Count" }, { code: "Distance" }, { code: "Duration" }, { code: "HumanName" }, { code: "Identifier" }, { code: "Money" }, { code: "Period" }, { code: "Quantity" }, { code: "Range" }, { code: "Ratio" }, { code: "Reference" }, { code: "SampledData" }, { code: "Signature" }, { code: "Timing" }, { code: "ContactDetail" }, { code: "Contributor" }, { code: "DataRequirement" }, { code: "Expression" }, { code: "ParameterDefinition" }, { code: "RelatedArtifact" }, { code: "TriggerDefinition" }, { code: "UsageContext" }, { code: "Dosage" }, { code: "Meta" }] } } }, HumanName: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, use: { type: [{ code: "code" }] }, text: { type: [{ code: "string" }] }, family: { type: [{ code: "string" }] }, given: { max: 9007199254740991, type: [{ code: "string" }] }, prefix: { max: 9007199254740991, type: [{ code: "string" }] }, suffix: { max: 9007199254740991, type: [{ code: "string" }] }, period: { type: [{ code: "Period" }] } } }, Identifier: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, use: { type: [{ code: "code" }] }, type: { type: [{ code: "CodeableConcept" }] }, system: { type: [{ code: "uri" }] }, value: { type: [{ code: "string" }] }, period: { type: [{ code: "Period" }] }, assigner: { type: [{ code: "Reference", targetProfile: ["http://hl7.org/fhir/StructureDefinition/Organization"] }] } } }, MarketingStatus: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, modifierExtension: { max: 9007199254740991, type: [{ code: "Extension" }] }, country: { min: 1, type: [{ code: "CodeableConcept" }] }, jurisdiction: { type: [{ code: "CodeableConcept" }] }, status: { min: 1, type: [{ code: "CodeableConcept" }] }, dateRange: { min: 1, type: [{ code: "Period" }] }, restoreDate: { type: [{ code: "dateTime" }] } } }, Meta: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, versionId: { type: [{ code: "id" }] }, lastUpdated: { type: [{ code: "instant" }] }, source: { type: [{ code: "uri" }] }, profile: { max: 9007199254740991, type: [{ code: "canonical", targetProfile: ["http://hl7.org/fhir/StructureDefinition/StructureDefinition"] }] }, security: { max: 9007199254740991, type: [{ code: "Coding" }] }, tag: { max: 9007199254740991, type: [{ code: "Coding" }] }, project: { type: [{ code: "uri" }] }, author: { type: [{ code: "Reference" }] }, account: { type: [{ code: "Reference" }] }, compartment: { max: 9007199254740991, type: [{ code: "Reference" }] } } }, Money: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, value: { type: [{ code: "decimal" }] }, currency: { type: [{ code: "code" }] } } }, Narrative: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, status: { min: 1, type: [{ code: "code" }] }, div: { min: 1, type: [{ code: "xhtml" }] } } }, ParameterDefinition: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, name: { type: [{ code: "code" }] }, use: { min: 1, type: [{ code: "code" }] }, min: { type: [{ code: "integer" }] }, max: { type: [{ code: "string" }] }, documentation: { type: [{ code: "string" }] }, type: { min: 1, type: [{ code: "code" }] }, profile: { type: [{ code: "canonical", targetProfile: ["http://hl7.org/fhir/StructureDefinition/StructureDefinition"] }] } } }, Period: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, start: { type: [{ code: "dateTime" }] }, end: { type: [{ code: "dateTime" }] } } }, Population: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, modifierExtension: { max: 9007199254740991, type: [{ code: "Extension" }] }, "age[x]": { type: [{ code: "Range" }, { code: "CodeableConcept" }] }, gender: { type: [{ code: "CodeableConcept" }] }, race: { type: [{ code: "CodeableConcept" }] }, physiologicalCondition: { type: [{ code: "CodeableConcept" }] } } }, ProdCharacteristic: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, modifierExtension: { max: 9007199254740991, type: [{ code: "Extension" }] }, height: { type: [{ code: "Quantity" }] }, width: { type: [{ code: "Quantity" }] }, depth: { type: [{ code: "Quantity" }] }, weight: { type: [{ code: "Quantity" }] }, nominalVolume: { type: [{ code: "Quantity" }] }, externalDiameter: { type: [{ code: "Quantity" }] }, shape: { type: [{ code: "string" }] }, color: { max: 9007199254740991, type: [{ code: "string" }] }, imprint: { max: 9007199254740991, type: [{ code: "string" }] }, image: { max: 9007199254740991, type: [{ code: "Attachment" }] }, scoring: { type: [{ code: "CodeableConcept" }] } } }, ProductShelfLife: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, modifierExtension: { max: 9007199254740991, type: [{ code: "Extension" }] }, identifier: { type: [{ code: "Identifier" }] }, type: { min: 1, type: [{ code: "CodeableConcept" }] }, period: { min: 1, type: [{ code: "Quantity" }] }, specialPrecautionsForStorage: { max: 9007199254740991, type: [{ code: "CodeableConcept" }] } } }, Quantity: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, value: { type: [{ code: "decimal" }] }, comparator: { type: [{ code: "code" }] }, unit: { type: [{ code: "string" }] }, system: { type: [{ code: "uri" }] }, code: { type: [{ code: "code" }] } } }, Range: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, low: { type: [{ code: "Quantity", profile: ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"] }] }, high: { type: [{ code: "Quantity", profile: ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"] }] } } }, Ratio: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, numerator: { type: [{ code: "Quantity" }] }, denominator: { type: [{ code: "Quantity" }] } } }, Reference: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, reference: { type: [{ code: "string" }] }, type: { type: [{ code: "uri" }] }, identifier: { type: [{ code: "Identifier" }] }, display: { type: [{ code: "string" }] } } }, RelatedArtifact: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, type: { min: 1, type: [{ code: "code" }] }, label: { type: [{ code: "string" }] }, display: { type: [{ code: "string" }] }, citation: { type: [{ code: "markdown" }] }, url: { type: [{ code: "url" }] }, document: { type: [{ code: "Attachment" }] }, resource: { type: [{ code: "canonical", targetProfile: ["http://hl7.org/fhir/StructureDefinition/Resource"] }] } } }, SampledData: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, origin: { min: 1, type: [{ code: "Quantity", profile: ["http://hl7.org/fhir/StructureDefinition/SimpleQuantity"] }] }, period: { min: 1, type: [{ code: "decimal" }] }, factor: { type: [{ code: "decimal" }] }, lowerLimit: { type: [{ code: "decimal" }] }, upperLimit: { type: [{ code: "decimal" }] }, dimensions: { min: 1, type: [{ code: "positiveInt" }] }, data: { type: [{ code: "string" }] } } }, Signature: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, type: { min: 1, max: 9007199254740991, type: [{ code: "Coding" }] }, when: { min: 1, type: [{ code: "instant" }] }, who: { min: 1, type: [{ code: "Reference", targetProfile: ["http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/PractitionerRole", "http://hl7.org/fhir/StructureDefinition/RelatedPerson", "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/Device", "http://hl7.org/fhir/StructureDefinition/Organization"] }] }, onBehalfOf: { type: [{ code: "Reference", targetProfile: ["http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/PractitionerRole", "http://hl7.org/fhir/StructureDefinition/RelatedPerson", "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/Device", "http://hl7.org/fhir/StructureDefinition/Organization"] }] }, targetFormat: { type: [{ code: "code" }] }, sigFormat: { type: [{ code: "code" }] }, data: { type: [{ code: "base64Binary" }] } } }, SubstanceAmount: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, modifierExtension: { max: 9007199254740991, type: [{ code: "Extension" }] }, "amount[x]": { type: [{ code: "Quantity" }, { code: "Range" }, { code: "string" }] }, amountType: { type: [{ code: "CodeableConcept" }] }, amountText: { type: [{ code: "string" }] }, referenceRange: { type: [{ code: "SubstanceAmountReferenceRange" }] } } }, Timing: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, modifierExtension: { max: 9007199254740991, type: [{ code: "Extension" }] }, event: { max: 9007199254740991, type: [{ code: "dateTime" }] }, repeat: { type: [{ code: "TimingRepeat" }] }, code: { type: [{ code: "CodeableConcept" }] } } }, TriggerDefinition: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, type: { min: 1, type: [{ code: "code" }] }, name: { type: [{ code: "string" }] }, "timing[x]": { type: [{ code: "Timing" }, { code: "Reference", targetProfile: ["http://hl7.org/fhir/StructureDefinition/Schedule"] }, { code: "date" }, { code: "dateTime" }] }, data: { max: 9007199254740991, type: [{ code: "DataRequirement" }] }, condition: { type: [{ code: "Expression" }] } } }, UsageContext: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, code: { min: 1, type: [{ code: "Coding" }] }, "value[x]": { min: 1, type: [{ code: "CodeableConcept" }, { code: "Quantity" }, { code: "Range" }, { code: "Reference", targetProfile: ["http://hl7.org/fhir/StructureDefinition/PlanDefinition", "http://hl7.org/fhir/StructureDefinition/ResearchStudy", "http://hl7.org/fhir/StructureDefinition/InsurancePlan", "http://hl7.org/fhir/StructureDefinition/HealthcareService", "http://hl7.org/fhir/StructureDefinition/Group", "http://hl7.org/fhir/StructureDefinition/Location", "http://hl7.org/fhir/StructureDefinition/Organization"] }] } } }, MoneyQuantity: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, value: { type: [{ code: "decimal" }] }, comparator: { type: [{ code: "code" }] }, unit: { type: [{ code: "string" }] }, system: { type: [{ code: "uri" }] }, code: { type: [{ code: "code" }] } } }, SimpleQuantity: { elements: { id: { type: [{ code: "string" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, value: { type: [{ code: "decimal" }] }, comparator: { max: 0, type: [{ code: "code" }] }, unit: { type: [{ code: "string" }] }, system: { type: [{ code: "uri" }] }, code: { type: [{ code: "code" }] } } }, MetadataResource: { elements: { id: { type: [{ code: "string" }] }, meta: { type: [{ code: "Meta" }] }, implicitRules: { type: [{ code: "uri" }] }, language: { type: [{ code: "code" }] }, text: { type: [{ code: "Narrative" }] }, contained: { max: 9007199254740991, type: [{ code: "Resource" }] }, extension: { max: 9007199254740991, type: [{ code: "Extension" }] }, modifierExtension: { max: 9007199254740991, type: [{ code: "Extension" }] }, url: { type: [{ code: "uri" }] }, version: { type: [{ code: "string" }] }, name: { type: [{ code: "string" }] }, title: { type: [{ code: "string" }] }, status: { min: 1, type: [{ code: "code" }] }, experimental: { type: [{ code: "boolean" }] }, date: { type: [{ code: "dateTime" }] }, publisher: { type: [{ code: "string" }] }, contact: { max: 9007199254740991, type: [{ code: "ContactDetail" }] }, description: { type: [{ code: "markdown" }] }, useContext: { max: 9007199254740991, type: [{ code: "UsageContext" }] }, jurisdiction: { max: 9007199254740991, type: [{ code: "CodeableConcept" }] } } }, IdentityProvider: { elements: { authorizeUrl: { min: 1, type: [{ code: "string" }] }, tokenUrl: { min: 1, type: [{ code: "string" }] }, tokenAuthMethod: { type: [{ code: "code" }] }, userInfoUrl: { min: 1, type: [{ code: "string" }] }, clientId: { min: 1, type: [{ code: "string" }] }, clientSecret: { min: 1, type: [{ code: "string" }] }, usePkce: { type: [{ code: "boolean" }] }, useSubject: { type: [{ code: "boolean" }] } } } };
|
|
39405
39405
|
function p(r4) {
|
|
39406
39406
|
return [{ type: c.boolean, value: r4 }];
|
|
39407
39407
|
}
|
|
@@ -39421,7 +39421,7 @@ function F(r4, e) {
|
|
|
39421
39421
|
function A(r4, e) {
|
|
39422
39422
|
if (!r4.value)
|
|
39423
39423
|
return;
|
|
39424
|
-
let t =
|
|
39424
|
+
let t = Le(r4.type, e);
|
|
39425
39425
|
return t ? di(r4.value, e, t) : pi(r4, e);
|
|
39426
39426
|
}
|
|
39427
39427
|
function di(r4, e, t) {
|
|
@@ -39470,7 +39470,7 @@ function pi(r4, e) {
|
|
|
39470
39470
|
if (!R(n))
|
|
39471
39471
|
return Array.isArray(n) ? n.map(y) : y(n);
|
|
39472
39472
|
}
|
|
39473
|
-
function
|
|
39473
|
+
function Fe(r4) {
|
|
39474
39474
|
let e = [];
|
|
39475
39475
|
for (let t of r4) {
|
|
39476
39476
|
let n = false;
|
|
@@ -39483,28 +39483,28 @@ function Me(r4) {
|
|
|
39483
39483
|
}
|
|
39484
39484
|
return e;
|
|
39485
39485
|
}
|
|
39486
|
-
function
|
|
39486
|
+
function Et(r4) {
|
|
39487
39487
|
return p(!D(r4));
|
|
39488
39488
|
}
|
|
39489
|
-
function
|
|
39489
|
+
function bt(r4, e) {
|
|
39490
39490
|
return r4.length === 0 || e.length === 0 ? [] : r4.length !== e.length ? p(false) : p(r4.every((t, n) => D(Ar(t, e[n]))));
|
|
39491
39491
|
}
|
|
39492
39492
|
function Ar(r4, e) {
|
|
39493
39493
|
let t = r4.value?.valueOf(), n = e.value?.valueOf();
|
|
39494
|
-
return typeof t == "number" && typeof n == "number" ? p(Math.abs(t - n) < 1e-8) : P(t) && P(n) ? p(wr(t, n)) : p(typeof t == "object" && typeof n == "object" ?
|
|
39494
|
+
return typeof t == "number" && typeof n == "number" ? p(Math.abs(t - n) < 1e-8) : P(t) && P(n) ? p(wr(t, n)) : p(typeof t == "object" && typeof n == "object" ? Pt(r4, e) : t === n);
|
|
39495
39495
|
}
|
|
39496
|
-
function
|
|
39496
|
+
function Rt(r4, e) {
|
|
39497
39497
|
return r4.length === 0 && e.length === 0 ? p(true) : r4.length !== e.length ? p(false) : (r4.sort(Rr), e.sort(Rr), p(r4.every((t, n) => D(fi(t, e[n])))));
|
|
39498
39498
|
}
|
|
39499
39499
|
function fi(r4, e) {
|
|
39500
39500
|
let { type: t, value: n } = r4, { type: i2, value: o } = e, s = n?.valueOf(), a = o?.valueOf();
|
|
39501
|
-
return typeof s == "number" && typeof a == "number" ? p(Math.abs(s - a) < 0.01) : P(s) && P(a) ? p(wr(s, a)) : p(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" ?
|
|
39501
|
+
return typeof s == "number" && typeof a == "number" ? p(Math.abs(s - a) < 0.01) : P(s) && P(a) ? p(wr(s, a)) : p(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" ? Pt({ ...s, id: void 0 }, { ...a, id: void 0 }) : typeof s == "string" && typeof a == "string" ? s.toLowerCase() === a.toLowerCase() : s === a);
|
|
39502
39502
|
}
|
|
39503
39503
|
function Rr(r4, e) {
|
|
39504
39504
|
let t = r4.value?.valueOf(), n = e.value?.valueOf();
|
|
39505
39505
|
return typeof t == "number" && typeof n == "number" ? t - n : typeof t == "string" && typeof n == "string" ? t.localeCompare(n) : 0;
|
|
39506
39506
|
}
|
|
39507
|
-
function
|
|
39507
|
+
function _e(r4, e) {
|
|
39508
39508
|
let { value: t } = r4;
|
|
39509
39509
|
if (t == null)
|
|
39510
39510
|
return false;
|
|
@@ -39537,14 +39537,14 @@ function P(r4) {
|
|
|
39537
39537
|
function wr(r4, e) {
|
|
39538
39538
|
return Math.abs(r4.value - e.value) < 0.01 && (r4.unit === e.unit || r4.code === e.code || r4.unit === e.code || r4.code === e.unit);
|
|
39539
39539
|
}
|
|
39540
|
-
function
|
|
39540
|
+
function Pt(r4, e) {
|
|
39541
39541
|
let t = Object.keys(r4), n = Object.keys(e);
|
|
39542
39542
|
if (t.length !== n.length)
|
|
39543
39543
|
return false;
|
|
39544
39544
|
for (let i2 of t) {
|
|
39545
39545
|
let o = r4[i2], s = e[i2];
|
|
39546
39546
|
if (Pr(o) && Pr(s)) {
|
|
39547
|
-
if (!
|
|
39547
|
+
if (!Pt(o, s))
|
|
39548
39548
|
return false;
|
|
39549
39549
|
} else if (o !== s)
|
|
39550
39550
|
return false;
|
|
@@ -39565,17 +39565,17 @@ function Cr(r4, e) {
|
|
|
39565
39565
|
function hi(r4, e) {
|
|
39566
39566
|
return delete e.__proto__, delete e.constructor, Object.assign(r4, e);
|
|
39567
39567
|
}
|
|
39568
|
-
function
|
|
39569
|
-
return new
|
|
39568
|
+
function It(r4) {
|
|
39569
|
+
return new At(r4).parse();
|
|
39570
39570
|
}
|
|
39571
|
-
var
|
|
39572
|
-
var
|
|
39571
|
+
var he = Sr(Er);
|
|
39572
|
+
var kt = /* @__PURE__ */ Object.create(null);
|
|
39573
39573
|
var Ir = /* @__PURE__ */ Object.create(null);
|
|
39574
|
-
function
|
|
39574
|
+
function Ot(r4) {
|
|
39575
39575
|
let e;
|
|
39576
|
-
return r4 ? (e = Ir[r4], e || (e = Ir[r4] = /* @__PURE__ */ Object.create(null))) : e =
|
|
39576
|
+
return r4 ? (e = Ir[r4], e || (e = Ir[r4] = /* @__PURE__ */ Object.create(null))) : e = he, e;
|
|
39577
39577
|
}
|
|
39578
|
-
function
|
|
39578
|
+
function Vt(r4, e) {
|
|
39579
39579
|
let t = Array.isArray(r4) ? r4 : r4.entry?.map((n) => n.resource) ?? [];
|
|
39580
39580
|
for (let n of t)
|
|
39581
39581
|
gi(n, e);
|
|
@@ -39585,21 +39585,21 @@ function gi(r4, e) {
|
|
|
39585
39585
|
throw new Error("Failed loading StructureDefinition from bundle");
|
|
39586
39586
|
if (r4.resourceType !== "StructureDefinition")
|
|
39587
39587
|
return;
|
|
39588
|
-
let t =
|
|
39589
|
-
n[r4.name] = t, e && r4.url === e && (
|
|
39588
|
+
let t = It(r4), n = Ot(e);
|
|
39589
|
+
n[r4.name] = t, e && r4.url === e && (kt[e] = t);
|
|
39590
39590
|
for (let i2 of t.innerTypes)
|
|
39591
39591
|
i2.parentType = t, n[i2.name] = i2;
|
|
39592
39592
|
}
|
|
39593
39593
|
function Nr(r4) {
|
|
39594
|
-
return !!
|
|
39594
|
+
return !!he[r4];
|
|
39595
39595
|
}
|
|
39596
|
-
function
|
|
39597
|
-
return
|
|
39596
|
+
function Ue(r4, e) {
|
|
39597
|
+
return Ot(e)[r4];
|
|
39598
39598
|
}
|
|
39599
39599
|
function Fr(r4) {
|
|
39600
|
-
return !!
|
|
39600
|
+
return !!kt[r4];
|
|
39601
39601
|
}
|
|
39602
|
-
var
|
|
39602
|
+
var At = class {
|
|
39603
39603
|
constructor(e) {
|
|
39604
39604
|
if (!e.snapshot?.element || e.snapshot.element.length === 0)
|
|
39605
39605
|
throw new Error(`No snapshot defined for StructureDefinition '${e.name}'`);
|
|
@@ -39612,7 +39612,7 @@ var Ct = class {
|
|
|
39612
39612
|
this.parseSliceStart(e);
|
|
39613
39613
|
else if (e.id?.includes(":")) {
|
|
39614
39614
|
if (this.slicingContext?.current) {
|
|
39615
|
-
let t =
|
|
39615
|
+
let t = Ct(e, this.slicingContext.path);
|
|
39616
39616
|
this.slicingContext.current.elements[t] = this.parseElementDefinition(e);
|
|
39617
39617
|
}
|
|
39618
39618
|
} else {
|
|
@@ -39621,13 +39621,13 @@ var Ct = class {
|
|
|
39621
39621
|
let n = this.backboneContext;
|
|
39622
39622
|
for (; n; ) {
|
|
39623
39623
|
if (e.path?.startsWith(n.path + ".")) {
|
|
39624
|
-
n.type.elements[
|
|
39624
|
+
n.type.elements[Ct(e, n.path)] = t;
|
|
39625
39625
|
break;
|
|
39626
39626
|
}
|
|
39627
39627
|
n = n.parent;
|
|
39628
39628
|
}
|
|
39629
39629
|
if (!n) {
|
|
39630
|
-
let i2 =
|
|
39630
|
+
let i2 = Ct(e, this.root.path);
|
|
39631
39631
|
e.isSummary && this.resourceSchema.summaryProperties?.add(i2.replace("[x]", "")), t.min > 0 && this.resourceSchema.mandatoryProperties?.add(i2.replace("[x]", "")), this.resourceSchema.elements[i2] = t;
|
|
39632
39632
|
}
|
|
39633
39633
|
this.checkFieldExit(e);
|
|
@@ -39640,9 +39640,9 @@ var Ct = class {
|
|
|
39640
39640
|
this.isInnerType(e) && this.enterInnerType(e), e.slicing && !this.slicingContext && this.enterSlice(e, t);
|
|
39641
39641
|
}
|
|
39642
39642
|
enterInnerType(e) {
|
|
39643
|
-
for (; this.backboneContext && !
|
|
39643
|
+
for (; this.backboneContext && !se(this.backboneContext?.path, e.path); )
|
|
39644
39644
|
this.innerTypes.push(this.backboneContext.type), this.backboneContext = this.backboneContext.parent;
|
|
39645
|
-
this.backboneContext = { type: { name:
|
|
39645
|
+
this.backboneContext = { type: { name: wt(e), title: e.label, description: e.definition, elements: {}, constraints: this.parseElementDefinition(e).constraints, innerTypes: [] }, path: e.path ?? "", parent: se(this.backboneContext?.path, e.path) ? this.backboneContext : this.backboneContext?.parent };
|
|
39646
39646
|
}
|
|
39647
39647
|
enterSlice(e, t) {
|
|
39648
39648
|
Ti(e) && !this.peek()?.sliceName || (t.slicing = { discriminator: (e.slicing?.discriminator ?? []).map((n) => {
|
|
@@ -39652,14 +39652,14 @@ var Ct = class {
|
|
|
39652
39652
|
}), slices: [], ordered: e.slicing?.ordered ?? false, rule: e.slicing?.rules }, this.slicingContext = { field: t.slicing, path: e.path ?? "" });
|
|
39653
39653
|
}
|
|
39654
39654
|
checkFieldExit(e = void 0) {
|
|
39655
|
-
if (this.backboneContext && !
|
|
39655
|
+
if (this.backboneContext && !se(this.backboneContext.path, e?.path))
|
|
39656
39656
|
if (this.backboneContext.parent)
|
|
39657
39657
|
do
|
|
39658
39658
|
this.innerTypes.push(this.backboneContext.type), this.backboneContext = this.backboneContext.parent;
|
|
39659
|
-
while (this.backboneContext && !
|
|
39659
|
+
while (this.backboneContext && !se(this.backboneContext.path, e?.path));
|
|
39660
39660
|
else
|
|
39661
39661
|
this.innerTypes.push(this.backboneContext.type), delete this.backboneContext;
|
|
39662
|
-
this.slicingContext && !
|
|
39662
|
+
this.slicingContext && !se(this.slicingContext.path, e?.path) && (this.slicingContext?.current && this.slicingContext.field.slices.push(this.slicingContext.current), delete this.slicingContext);
|
|
39663
39663
|
}
|
|
39664
39664
|
next() {
|
|
39665
39665
|
let e = this.peek();
|
|
@@ -39678,7 +39678,7 @@ var Ct = class {
|
|
|
39678
39678
|
}
|
|
39679
39679
|
isInnerType(e) {
|
|
39680
39680
|
let t = this.peek();
|
|
39681
|
-
return !!(
|
|
39681
|
+
return !!(se(e?.path, t?.path) && e.type?.some((n) => ["BackboneElement", "Element"].includes(n.code)));
|
|
39682
39682
|
}
|
|
39683
39683
|
parseSliceStart(e) {
|
|
39684
39684
|
if (!this.slicingContext)
|
|
@@ -39688,7 +39688,7 @@ var Ct = class {
|
|
|
39688
39688
|
parseElementDefinitionType(e) {
|
|
39689
39689
|
return (e.type ?? []).map((t) => {
|
|
39690
39690
|
let n;
|
|
39691
|
-
return (t.code === "BackboneElement" || t.code === "Element") && (n =
|
|
39691
|
+
return (t.code === "BackboneElement" || t.code === "Element") && (n = wt(e)), n || (n = pr(t, "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type")?.valueUrl), n || (n = t.code ?? ""), { code: n, targetProfile: t.targetProfile, profile: t.profile };
|
|
39692
39692
|
});
|
|
39693
39693
|
}
|
|
39694
39694
|
parseElementDefinition(e) {
|
|
@@ -39699,13 +39699,13 @@ var Ct = class {
|
|
|
39699
39699
|
function Or(r4) {
|
|
39700
39700
|
return r4 === "*" ? Number.POSITIVE_INFINITY : Number.parseInt(r4, 10);
|
|
39701
39701
|
}
|
|
39702
|
-
function
|
|
39702
|
+
function Ct(r4, e = "") {
|
|
39703
39703
|
return xi(r4.path, e);
|
|
39704
39704
|
}
|
|
39705
39705
|
function xi(r4, e) {
|
|
39706
39706
|
return r4 ? e && r4.startsWith(e) ? r4.substring(e.length + 1) : r4 : "";
|
|
39707
39707
|
}
|
|
39708
|
-
function
|
|
39708
|
+
function se(r4, e) {
|
|
39709
39709
|
return !r4 || !e ? false : e.startsWith(r4 + ".") || e === r4;
|
|
39710
39710
|
}
|
|
39711
39711
|
function Vr(r4) {
|
|
@@ -39720,21 +39720,21 @@ function vi(r4) {
|
|
|
39720
39720
|
return e?.startsWith(`Base StructureDefinition for ${r4.name} Type: `) && (e = e.substring(`Base StructureDefinition for ${r4.name} Type: `.length)), e;
|
|
39721
39721
|
}
|
|
39722
39722
|
var c = { Address: "Address", Age: "Age", Annotation: "Annotation", Attachment: "Attachment", BackboneElement: "BackboneElement", CodeableConcept: "CodeableConcept", Coding: "Coding", ContactDetail: "ContactDetail", ContactPoint: "ContactPoint", Contributor: "Contributor", Count: "Count", DataRequirement: "DataRequirement", Distance: "Distance", Dosage: "Dosage", Duration: "Duration", Expression: "Expression", Extension: "Extension", HumanName: "HumanName", Identifier: "Identifier", MarketingStatus: "MarketingStatus", Meta: "Meta", Money: "Money", Narrative: "Narrative", ParameterDefinition: "ParameterDefinition", Period: "Period", Population: "Population", ProdCharacteristic: "ProdCharacteristic", ProductShelfLife: "ProductShelfLife", Quantity: "Quantity", Range: "Range", Ratio: "Ratio", Reference: "Reference", RelatedArtifact: "RelatedArtifact", SampledData: "SampledData", Signature: "Signature", SubstanceAmount: "SubstanceAmount", SystemString: "http://hl7.org/fhirpath/System.String", Timing: "Timing", TriggerDefinition: "TriggerDefinition", UsageContext: "UsageContext", base64Binary: "base64Binary", boolean: "boolean", canonical: "canonical", code: "code", date: "date", dateTime: "dateTime", decimal: "decimal", id: "id", instant: "instant", integer: "integer", markdown: "markdown", oid: "oid", positiveInt: "positiveInt", string: "string", time: "time", unsignedInt: "unsignedInt", uri: "uri", url: "url", uuid: "uuid" };
|
|
39723
|
-
function
|
|
39723
|
+
function Nt(r4) {
|
|
39724
39724
|
for (let e of r4.base ?? []) {
|
|
39725
39725
|
let t = N.types[e];
|
|
39726
39726
|
t || (t = { searchParamsDetails: {} }, N.types[e] = t), t.searchParams || (t.searchParams = { _id: { base: [e], code: "_id", type: "token", expression: e + ".id" }, _lastUpdated: { base: [e], code: "_lastUpdated", type: "date", expression: e + ".meta.lastUpdated" }, _compartment: { base: [e], code: "_compartment", type: "reference", expression: e + ".meta.compartment" }, _profile: { base: [e], code: "_profile", type: "uri", expression: e + ".meta.profile" }, _security: { base: [e], code: "_security", type: "token", expression: e + ".meta.security" }, _source: { base: [e], code: "_source", type: "uri", expression: e + ".meta.source" }, _tag: { base: [e], code: "_tag", type: "token", expression: e + ".meta.tag" } }), t.searchParams[r4.code] = r4;
|
|
39727
39727
|
}
|
|
39728
39728
|
}
|
|
39729
|
-
function
|
|
39729
|
+
function wt(r4) {
|
|
39730
39730
|
let e = r4.type?.[0]?.code;
|
|
39731
39731
|
return e === "BackboneElement" || e === "Element" ? Si((r4.base?.path ?? r4.path)?.split(".")) : e;
|
|
39732
39732
|
}
|
|
39733
39733
|
function Si(r4) {
|
|
39734
39734
|
return r4.length === 1 ? r4[0] : r4.map(I).join("");
|
|
39735
39735
|
}
|
|
39736
|
-
function
|
|
39737
|
-
let t =
|
|
39736
|
+
function Le(r4, e) {
|
|
39737
|
+
let t = Ue(r4);
|
|
39738
39738
|
if (t)
|
|
39739
39739
|
return Pi(t.elements, e);
|
|
39740
39740
|
}
|
|
@@ -39754,11 +39754,11 @@ function Pi(r4, e) {
|
|
|
39754
39754
|
function _(r4) {
|
|
39755
39755
|
return !!(r4 && typeof r4 == "object" && "resourceType" in r4);
|
|
39756
39756
|
}
|
|
39757
|
-
function
|
|
39757
|
+
function me(r4) {
|
|
39758
39758
|
return !!(r4 && typeof r4 == "object" && "reference" in r4);
|
|
39759
39759
|
}
|
|
39760
39760
|
var N = { types: {} };
|
|
39761
|
-
function
|
|
39761
|
+
function ce(r4) {
|
|
39762
39762
|
if (r4.startsWith("T"))
|
|
39763
39763
|
return r4 + "T00:00:00.000Z".substring(r4.length);
|
|
39764
39764
|
if (r4.length <= 10)
|
|
@@ -39769,7 +39769,7 @@ function ae(r4) {
|
|
|
39769
39769
|
return r4;
|
|
39770
39770
|
}
|
|
39771
39771
|
}
|
|
39772
|
-
var
|
|
39772
|
+
var ge = () => [];
|
|
39773
39773
|
var b = { empty: (r4, e) => p(e.length === 0), exists: (r4, e, t) => t ? p(e.filter((n) => D(t.eval(r4, [n]))).length > 0) : p(e.length > 0), all: (r4, e, t) => p(e.every((n) => D(t.eval(r4, [n])))), allTrue: (r4, e) => {
|
|
39774
39774
|
for (let t of e)
|
|
39775
39775
|
if (!t.value)
|
|
@@ -39790,12 +39790,12 @@ var b = { empty: (r4, e) => p(e.length === 0), exists: (r4, e, t) => t ? p(e.fil
|
|
|
39790
39790
|
if (!t.value)
|
|
39791
39791
|
return p(true);
|
|
39792
39792
|
return p(false);
|
|
39793
|
-
}, subsetOf:
|
|
39793
|
+
}, subsetOf: ge, supersetOf: ge, count: (r4, e) => [{ type: c.integer, value: e.length }], distinct: (r4, e) => {
|
|
39794
39794
|
let t = [];
|
|
39795
39795
|
for (let n of e)
|
|
39796
39796
|
t.some((i2) => i2.value === n.value) || t.push(n);
|
|
39797
39797
|
return t;
|
|
39798
|
-
}, isDistinct: (r4, e) => p(e.length === b.distinct(r4, e).length), where: (r4, e, t) => e.filter((n) => D(t.eval(r4, [n]))), select: (r4, e, t) => e.map((n) => t.eval(r4, [n])).flat(), repeat:
|
|
39798
|
+
}, isDistinct: (r4, e) => p(e.length === b.distinct(r4, e).length), where: (r4, e, t) => e.filter((n) => D(t.eval(r4, [n]))), select: (r4, e, t) => e.map((n) => t.eval(r4, [n])).flat(), repeat: ge, ofType: (r4, e, t) => e.filter((n) => n.type === t.name), single: (r4, e) => {
|
|
39799
39799
|
if (e.length > 1)
|
|
39800
39800
|
throw new Error("Expected input length one for single()");
|
|
39801
39801
|
return e.length === 0 ? [] : e.slice(0, 1);
|
|
@@ -39827,7 +39827,7 @@ var b = { empty: (r4, e) => p(e.length === 0), exists: (r4, e, t) => t ? p(e.fil
|
|
|
39827
39827
|
if (!t)
|
|
39828
39828
|
return e;
|
|
39829
39829
|
let n = t.eval(r4, e);
|
|
39830
|
-
return
|
|
39830
|
+
return Fe([...e, ...n]);
|
|
39831
39831
|
}, combine: (r4, e, t) => {
|
|
39832
39832
|
if (!t)
|
|
39833
39833
|
return e;
|
|
@@ -39863,12 +39863,12 @@ var b = { empty: (r4, e) => p(e.length === 0), exists: (r4, e, t) => t ? p(e.fil
|
|
|
39863
39863
|
if (e.length === 0)
|
|
39864
39864
|
return [];
|
|
39865
39865
|
let [{ value: t }] = U(e, 1);
|
|
39866
|
-
return typeof t == "string" && /^\d{4}(-\d{2}(-\d{2})?)?/.exec(t) ? [{ type: c.date, value:
|
|
39866
|
+
return typeof t == "string" && /^\d{4}(-\d{2}(-\d{2})?)?/.exec(t) ? [{ type: c.date, value: ce(t) }] : [];
|
|
39867
39867
|
}, convertsToDate: (r4, e) => e.length === 0 ? [] : p(b.toDate(r4, e).length === 1), toDateTime: (r4, e) => {
|
|
39868
39868
|
if (e.length === 0)
|
|
39869
39869
|
return [];
|
|
39870
39870
|
let [{ value: t }] = U(e, 1);
|
|
39871
|
-
return typeof t == "string" && /^\d{4}(-\d{2}(-\d{2})?)?/.exec(t) ? [{ type: c.dateTime, value:
|
|
39871
|
+
return typeof t == "string" && /^\d{4}(-\d{2}(-\d{2})?)?/.exec(t) ? [{ type: c.dateTime, value: ce(t) }] : [];
|
|
39872
39872
|
}, convertsToDateTime: (r4, e) => e.length === 0 ? [] : p(b.toDateTime(r4, e).length === 1), toDecimal: (r4, e) => {
|
|
39873
39873
|
if (e.length === 0)
|
|
39874
39874
|
return [];
|
|
@@ -39891,13 +39891,13 @@ var b = { empty: (r4, e) => p(e.length === 0), exists: (r4, e, t) => t ? p(e.fil
|
|
|
39891
39891
|
if (typeof t == "string") {
|
|
39892
39892
|
let n = /^T?(\d{2}(:\d{2}(:\d{2})?)?)/.exec(t);
|
|
39893
39893
|
if (n)
|
|
39894
|
-
return [{ type: c.time, value:
|
|
39894
|
+
return [{ type: c.time, value: ce("T" + n[1]) }];
|
|
39895
39895
|
}
|
|
39896
39896
|
return [];
|
|
39897
39897
|
}, convertsToTime: (r4, e) => e.length === 0 ? [] : p(b.toTime(r4, e).length === 1), indexOf: (r4, e, t) => k((n, i2) => n.indexOf(i2), r4, e, t), substring: (r4, e, t, n) => k((i2, o, s) => {
|
|
39898
39898
|
let a = o, u2 = s ? a + s : i2.length;
|
|
39899
39899
|
return a < 0 || a >= i2.length ? void 0 : i2.substring(a, u2);
|
|
39900
|
-
}, r4, e, t, n), startsWith: (r4, e, t) => k((n, i2) => n.startsWith(i2), r4, e, t), endsWith: (r4, e, t) => k((n, i2) => n.endsWith(i2), r4, e, t), contains: (r4, e, t) => k((n, i2) => n.includes(i2), r4, e, t), upper: (r4, e) => k((t) => t.toUpperCase(), r4, e), lower: (r4, e) => k((t) => t.toLowerCase(), r4, e), replace: (r4, e, t, n) => k((i2, o, s) => i2.replaceAll(o, s), r4, e, t, n), matches: (r4, e, t) => k((n, i2) => !!new RegExp(i2).exec(n), r4, e, t), replaceMatches: (r4, e, t, n) => k((i2, o, s) => i2.replaceAll(o, s), r4, e, t, n), length: (r4, e) => k((t) => t.length, r4, e), toChars: (r4, e) => k((t) => t ? t.split("") : void 0, r4, e), abs: (r4, e) => L(Math.abs, r4, e), ceiling: (r4, e) => L(Math.ceil, r4, e), exp: (r4, e) => L(Math.exp, r4, e), floor: (r4, e) => L(Math.floor, r4, e), ln: (r4, e) => L(Math.log, r4, e), log: (r4, e, t) => L((n, i2) => Math.log(n) / Math.log(i2), r4, e, t), power: (r4, e, t) => L(Math.pow, r4, e, t), round: (r4, e) => L(Math.round, r4, e), sqrt: (r4, e) => L(Math.sqrt, r4, e), truncate: (r4, e) => L((t) => t | 0, r4, e), children:
|
|
39900
|
+
}, r4, e, t, n), startsWith: (r4, e, t) => k((n, i2) => n.startsWith(i2), r4, e, t), endsWith: (r4, e, t) => k((n, i2) => n.endsWith(i2), r4, e, t), contains: (r4, e, t) => k((n, i2) => n.includes(i2), r4, e, t), upper: (r4, e) => k((t) => t.toUpperCase(), r4, e), lower: (r4, e) => k((t) => t.toLowerCase(), r4, e), replace: (r4, e, t, n) => k((i2, o, s) => i2.replaceAll(o, s), r4, e, t, n), matches: (r4, e, t) => k((n, i2) => !!new RegExp(i2).exec(n), r4, e, t), replaceMatches: (r4, e, t, n) => k((i2, o, s) => i2.replaceAll(o, s), r4, e, t, n), length: (r4, e) => k((t) => t.length, r4, e), toChars: (r4, e) => k((t) => t ? t.split("") : void 0, r4, e), abs: (r4, e) => L(Math.abs, r4, e), ceiling: (r4, e) => L(Math.ceil, r4, e), exp: (r4, e) => L(Math.exp, r4, e), floor: (r4, e) => L(Math.floor, r4, e), ln: (r4, e) => L(Math.log, r4, e), log: (r4, e, t) => L((n, i2) => Math.log(n) / Math.log(i2), r4, e, t), power: (r4, e, t) => L(Math.pow, r4, e, t), round: (r4, e) => L(Math.round, r4, e), sqrt: (r4, e) => L(Math.sqrt, r4, e), truncate: (r4, e) => L((t) => t | 0, r4, e), children: ge, descendants: ge, trace: (r4, e, t) => (console.log("trace", e, t), e), now: () => [{ type: c.dateTime, value: (/* @__PURE__ */ new Date()).toISOString() }], timeOfDay: () => [{ type: c.time, value: (/* @__PURE__ */ new Date()).toISOString().substring(11) }], today: () => [{ type: c.date, value: (/* @__PURE__ */ new Date()).toISOString().substring(0, 10) }], between: (r4, e, t, n, i2) => {
|
|
39901
39901
|
let o = b.toDateTime(r4, t.eval(r4, e));
|
|
39902
39902
|
if (o.length === 0)
|
|
39903
39903
|
throw new Error("Invalid start date");
|
|
@@ -39907,11 +39907,11 @@ var b = { empty: (r4, e) => p(e.length === 0), exists: (r4, e, t) => t ? p(e.fil
|
|
|
39907
39907
|
let a = i2.eval(r4, e)[0]?.value;
|
|
39908
39908
|
if (a !== "years" && a !== "months" && a !== "days")
|
|
39909
39909
|
throw new Error("Invalid units");
|
|
39910
|
-
let u2 =
|
|
39910
|
+
let u2 = ke(o[0].value, s[0].value);
|
|
39911
39911
|
return [{ type: c.Quantity, value: { value: u2[a], unit: a } }];
|
|
39912
39912
|
}, is: (r4, e, t) => {
|
|
39913
39913
|
let n = "";
|
|
39914
|
-
return t instanceof B ? n = t.name : t instanceof G && (n = t.left.name + "." + t.right.name), n ? e.map((i2) => ({ type: c.boolean, value:
|
|
39914
|
+
return t instanceof B ? n = t.name : t instanceof G && (n = t.left.name + "." + t.right.name), n ? e.map((i2) => ({ type: c.boolean, value: _e(i2, n) })) : [];
|
|
39915
39915
|
}, not: (r4, e) => b.toBoolean(r4, e).map((t) => ({ type: c.boolean, value: !t.value })), resolve: (r4, e) => e.map((t) => {
|
|
39916
39916
|
let n = t.value, i2;
|
|
39917
39917
|
if (typeof n == "string")
|
|
@@ -39999,7 +39999,7 @@ var B = class {
|
|
|
39999
39999
|
return this.name;
|
|
40000
40000
|
}
|
|
40001
40001
|
};
|
|
40002
|
-
var
|
|
40002
|
+
var qe = class {
|
|
40003
40003
|
eval() {
|
|
40004
40004
|
return [];
|
|
40005
40005
|
}
|
|
@@ -40007,7 +40007,7 @@ var Be = class {
|
|
|
40007
40007
|
return "{}";
|
|
40008
40008
|
}
|
|
40009
40009
|
};
|
|
40010
|
-
var
|
|
40010
|
+
var je = class extends Pe {
|
|
40011
40011
|
constructor(t, n, i2) {
|
|
40012
40012
|
super(t, n);
|
|
40013
40013
|
this.impl = i2;
|
|
@@ -40045,7 +40045,7 @@ var C = class extends S {
|
|
|
40045
40045
|
return typeof f == "boolean" ? p(f) : P(s) ? [{ type: c.Quantity, value: { ...s, value: f } }] : [y(f)];
|
|
40046
40046
|
}
|
|
40047
40047
|
};
|
|
40048
|
-
var
|
|
40048
|
+
var $e = class extends Q {
|
|
40049
40049
|
constructor(e, t) {
|
|
40050
40050
|
super("&", e, t);
|
|
40051
40051
|
}
|
|
@@ -40054,7 +40054,7 @@ var je = class extends Q {
|
|
|
40054
40054
|
return o.length > 0 && o.every((s) => typeof s.value == "string") ? [{ type: c.string, value: o.map((s) => s.value).join("") }] : o;
|
|
40055
40055
|
}
|
|
40056
40056
|
};
|
|
40057
|
-
var
|
|
40057
|
+
var Qe = class extends S {
|
|
40058
40058
|
constructor(e, t) {
|
|
40059
40059
|
super("contains", e, t);
|
|
40060
40060
|
}
|
|
@@ -40063,7 +40063,7 @@ var $e = class extends S {
|
|
|
40063
40063
|
return p(n.some((o) => o.value === i2[0].value));
|
|
40064
40064
|
}
|
|
40065
40065
|
};
|
|
40066
|
-
var
|
|
40066
|
+
var He = class extends S {
|
|
40067
40067
|
constructor(e, t) {
|
|
40068
40068
|
super("in", e, t);
|
|
40069
40069
|
}
|
|
@@ -40083,49 +40083,49 @@ var G = class extends Q {
|
|
|
40083
40083
|
return `${this.left.toString()}.${this.right.toString()}`;
|
|
40084
40084
|
}
|
|
40085
40085
|
};
|
|
40086
|
-
var
|
|
40086
|
+
var ue = class extends Q {
|
|
40087
40087
|
constructor(e, t) {
|
|
40088
40088
|
super("|", e, t);
|
|
40089
40089
|
}
|
|
40090
40090
|
eval(e, t) {
|
|
40091
40091
|
let n = this.left.eval(e, t), i2 = this.right.eval(e, t);
|
|
40092
|
-
return
|
|
40092
|
+
return Fe([...n, ...i2]);
|
|
40093
40093
|
}
|
|
40094
40094
|
};
|
|
40095
|
-
var
|
|
40095
|
+
var Ge = class extends S {
|
|
40096
40096
|
constructor(e, t) {
|
|
40097
40097
|
super("=", e, t);
|
|
40098
40098
|
}
|
|
40099
40099
|
eval(e, t) {
|
|
40100
40100
|
let n = this.left.eval(e, t), i2 = this.right.eval(e, t);
|
|
40101
|
-
return
|
|
40101
|
+
return bt(n, i2);
|
|
40102
40102
|
}
|
|
40103
40103
|
};
|
|
40104
|
-
var
|
|
40104
|
+
var Ke = class extends S {
|
|
40105
40105
|
constructor(e, t) {
|
|
40106
40106
|
super("!=", e, t);
|
|
40107
40107
|
}
|
|
40108
40108
|
eval(e, t) {
|
|
40109
40109
|
let n = this.left.eval(e, t), i2 = this.right.eval(e, t);
|
|
40110
|
-
return
|
|
40110
|
+
return Et(bt(n, i2));
|
|
40111
40111
|
}
|
|
40112
40112
|
};
|
|
40113
|
-
var
|
|
40113
|
+
var We = class extends S {
|
|
40114
40114
|
constructor(e, t) {
|
|
40115
40115
|
super("~", e, t);
|
|
40116
40116
|
}
|
|
40117
40117
|
eval(e, t) {
|
|
40118
40118
|
let n = this.left.eval(e, t), i2 = this.right.eval(e, t);
|
|
40119
|
-
return
|
|
40119
|
+
return Rt(n, i2);
|
|
40120
40120
|
}
|
|
40121
40121
|
};
|
|
40122
|
-
var
|
|
40122
|
+
var ze = class extends S {
|
|
40123
40123
|
constructor(e, t) {
|
|
40124
40124
|
super("!~", e, t);
|
|
40125
40125
|
}
|
|
40126
40126
|
eval(e, t) {
|
|
40127
40127
|
let n = this.left.eval(e, t), i2 = this.right.eval(e, t);
|
|
40128
|
-
return
|
|
40128
|
+
return Et(Rt(n, i2));
|
|
40129
40129
|
}
|
|
40130
40130
|
};
|
|
40131
40131
|
var Z = class extends S {
|
|
@@ -40137,10 +40137,10 @@ var Z = class extends S {
|
|
|
40137
40137
|
if (n.length !== 1)
|
|
40138
40138
|
return [];
|
|
40139
40139
|
let i2 = this.right.name;
|
|
40140
|
-
return p(
|
|
40140
|
+
return p(_e(n[0], i2));
|
|
40141
40141
|
}
|
|
40142
40142
|
};
|
|
40143
|
-
var
|
|
40143
|
+
var Je = class extends S {
|
|
40144
40144
|
constructor(e, t) {
|
|
40145
40145
|
super("and", e, t);
|
|
40146
40146
|
}
|
|
@@ -40149,7 +40149,7 @@ var ze = class extends S {
|
|
|
40149
40149
|
return n?.value === true && i2?.value === true ? p(true) : n?.value === false || i2?.value === false ? p(false) : [];
|
|
40150
40150
|
}
|
|
40151
40151
|
};
|
|
40152
|
-
var
|
|
40152
|
+
var Ye = class extends S {
|
|
40153
40153
|
constructor(e, t) {
|
|
40154
40154
|
super("or", e, t);
|
|
40155
40155
|
}
|
|
@@ -40158,7 +40158,7 @@ var Je = class extends S {
|
|
|
40158
40158
|
return n?.value === false && i2?.value === false ? p(false) : n?.value || i2?.value ? p(true) : [];
|
|
40159
40159
|
}
|
|
40160
40160
|
};
|
|
40161
|
-
var
|
|
40161
|
+
var Xe = class extends S {
|
|
40162
40162
|
constructor(e, t) {
|
|
40163
40163
|
super("xor", e, t);
|
|
40164
40164
|
}
|
|
@@ -40167,7 +40167,7 @@ var Ye = class extends S {
|
|
|
40167
40167
|
return !n || !i2 ? [] : p(n.value !== i2.value);
|
|
40168
40168
|
}
|
|
40169
40169
|
};
|
|
40170
|
-
var
|
|
40170
|
+
var Ze = class extends S {
|
|
40171
40171
|
constructor(e, t) {
|
|
40172
40172
|
super("implies", e, t);
|
|
40173
40173
|
}
|
|
@@ -40210,7 +40210,7 @@ var ee = class {
|
|
|
40210
40210
|
return `${this.left.toString()}[${this.expr.toString()}]`;
|
|
40211
40211
|
}
|
|
40212
40212
|
};
|
|
40213
|
-
var
|
|
40213
|
+
var xe = ["!=", "!~", "<=", ">=", "{}", "->"];
|
|
40214
40214
|
var m = { FunctionCall: 0, Dot: 1, Indexer: 2, UnaryAdd: 3, UnarySubtract: 3, Multiply: 4, Divide: 4, IntegerDivide: 4, Modulo: 4, Add: 5, Subtract: 5, Ampersand: 5, Is: 6, As: 6, Union: 7, GreaterThan: 8, GreaterThanOrEquals: 8, LessThan: 8, LessThanOrEquals: 8, Equals: 9, Equivalent: 9, NotEquals: 9, NotEquivalent: 9, In: 10, Contains: 10, And: 11, Xor: 12, Or: 12, Implies: 13, Arrow: 100, Semicolon: 200 };
|
|
40215
40215
|
var wi = { parse(r4) {
|
|
40216
40216
|
let e = r4.consumeAndParse();
|
|
@@ -40236,10 +40236,10 @@ function Oi(r4) {
|
|
|
40236
40236
|
let e = r4.split(" "), t = parseFloat(e[0]), n = e[1];
|
|
40237
40237
|
return n?.startsWith("'") && n.endsWith("'") ? n = n.substring(1, n.length - 1) : n = "{" + n + "}", { value: t, unit: n };
|
|
40238
40238
|
}
|
|
40239
|
-
function
|
|
40240
|
-
return new
|
|
40239
|
+
function Te() {
|
|
40240
|
+
return new Ce().registerPrefix("String", { parse: (r4, e) => new O({ type: c.string, value: e.value }) }).registerPrefix("DateTime", { parse: (r4, e) => new O({ type: c.dateTime, value: ce(e.value) }) }).registerPrefix("Quantity", { parse: (r4, e) => new O({ type: c.Quantity, value: Oi(e.value) }) }).registerPrefix("Number", { parse: (r4, e) => new O({ type: e.value.includes(".") ? c.decimal : c.integer, value: parseFloat(e.value) }) }).registerPrefix("true", { parse: () => new O({ type: c.boolean, value: true }) }).registerPrefix("false", { parse: () => new O({ type: c.boolean, value: false }) }).registerPrefix("Symbol", { parse: (r4, e) => new B(e.value) }).registerPrefix("{}", { parse: () => new qe() }).registerPrefix("(", wi).registerInfix("[", Ii).registerInfix("(", ki).prefix("+", m.UnaryAdd, (r4, e) => new je("+", e, (t) => t)).prefix("-", m.UnarySubtract, (r4, e) => new C("-", e, e, (t, n) => -n)).infixLeft(".", m.Dot, (r4, e, t) => new G(r4, t)).infixLeft("/", m.Divide, (r4, e, t) => new C("/", r4, t, (n, i2) => n / i2)).infixLeft("*", m.Multiply, (r4, e, t) => new C("*", r4, t, (n, i2) => n * i2)).infixLeft("+", m.Add, (r4, e, t) => new C("+", r4, t, (n, i2) => n + i2)).infixLeft("-", m.Subtract, (r4, e, t) => new C("-", r4, t, (n, i2) => n - i2)).infixLeft("|", m.Union, (r4, e, t) => new ue(r4, t)).infixLeft("=", m.Equals, (r4, e, t) => new Ge(r4, t)).infixLeft("!=", m.NotEquals, (r4, e, t) => new Ke(r4, t)).infixLeft("~", m.Equivalent, (r4, e, t) => new We(r4, t)).infixLeft("!~", m.NotEquivalent, (r4, e, t) => new ze(r4, t)).infixLeft("<", m.LessThan, (r4, e, t) => new C("<", r4, t, (n, i2) => n < i2)).infixLeft("<=", m.LessThanOrEquals, (r4, e, t) => new C("<=", r4, t, (n, i2) => n <= i2)).infixLeft(">", m.GreaterThan, (r4, e, t) => new C(">", r4, t, (n, i2) => n > i2)).infixLeft(">=", m.GreaterThanOrEquals, (r4, e, t) => new C(">=", r4, t, (n, i2) => n >= i2)).infixLeft("&", m.Ampersand, (r4, e, t) => new $e(r4, t)).infixLeft("and", m.And, (r4, e, t) => new Je(r4, t)).infixLeft("as", m.As, (r4, e, t) => new X(r4, t)).infixLeft("contains", m.Contains, (r4, e, t) => new Qe(r4, t)).infixLeft("div", m.Divide, (r4, e, t) => new C("div", r4, t, (n, i2) => n / i2 | 0)).infixLeft("in", m.In, (r4, e, t) => new He(r4, t)).infixLeft("is", m.Is, (r4, e, t) => new Z(r4, t)).infixLeft("mod", m.Modulo, (r4, e, t) => new C("mod", r4, t, (n, i2) => n % i2)).infixLeft("or", m.Or, (r4, e, t) => new Ye(r4, t)).infixLeft("xor", m.Xor, (r4, e, t) => new Xe(r4, t)).infixLeft("implies", m.Implies, (r4, e, t) => new Ze(r4, t));
|
|
40241
40241
|
}
|
|
40242
|
-
var Vi =
|
|
40242
|
+
var Vi = Te();
|
|
40243
40243
|
var Br = ((f) => (f.BOOLEAN = "BOOLEAN", f.NUMBER = "NUMBER", f.QUANTITY = "QUANTITY", f.TEXT = "TEXT", f.REFERENCE = "REFERENCE", f.CANONICAL = "CANONICAL", f.DATE = "DATE", f.DATETIME = "DATETIME", f.PERIOD = "PERIOD", f.UUID = "UUID", f))(Br || {});
|
|
40244
40244
|
var Ui = ((x) => (x.EQUALS = "eq", x.NOT_EQUALS = "ne", x.GREATER_THAN = "gt", x.LESS_THAN = "lt", x.GREATER_THAN_OR_EQUALS = "ge", x.LESS_THAN_OR_EQUALS = "le", x.STARTS_AFTER = "sa", x.ENDS_BEFORE = "eb", x.APPROXIMATELY = "ap", x.CONTAINS = "contains", x.EXACT = "exact", x.TEXT = "text", x.NOT = "not", x.ABOVE = "above", x.BELOW = "below", x.IN = "in", x.NOT_IN = "not-in", x.OF_TYPE = "of-type", x.MISSING = "missing", x.IDENTIFIER = "identifier", x.ITERATE = "iterate", x))(Ui || {});
|
|
40245
40245
|
var so = ((T) => (T.READ = "read", T.VREAD = "vread", T.UPDATE = "update", T.PATCH = "patch", T.DELETE = "delete", T.HISTORY = "history", T.HISTORY_INSTANCE = "history-instance", T.HISTORY_TYPE = "history-type", T.HISTORY_SYSTEM = "history-system", T.CREATE = "create", T.SEARCH = "search", T.SEARCH_TYPE = "search-type", T.SEARCH_SYSTEM = "search-system", T.SEARCH_COMPARTMENT = "search-compartment", T.CAPABILITIES = "capabilities", T.TRANSACTION = "transaction", T.BATCH = "batch", T.OPERATION = "operation", T))(so || {});
|
|
@@ -40270,7 +40270,7 @@ function te() {
|
|
|
40270
40270
|
return (r4 === "x" ? e : e & 3 | 8).toString(16);
|
|
40271
40271
|
});
|
|
40272
40272
|
}
|
|
40273
|
-
var
|
|
40273
|
+
var tt = class {
|
|
40274
40274
|
constructor(e = 10) {
|
|
40275
40275
|
this.max = e, this.cache = /* @__PURE__ */ new Map();
|
|
40276
40276
|
}
|
|
@@ -40295,7 +40295,7 @@ var et = class {
|
|
|
40295
40295
|
}
|
|
40296
40296
|
};
|
|
40297
40297
|
var V = { 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", SVG: "image/svg+xml", TEXT: "text/plain", TYPESCRIPT: "text/typescript" };
|
|
40298
|
-
var
|
|
40298
|
+
var Se = class {
|
|
40299
40299
|
constructor() {
|
|
40300
40300
|
this.listeners = {};
|
|
40301
40301
|
}
|
|
@@ -40320,9 +40320,9 @@ var ve = class {
|
|
|
40320
40320
|
return !e.defaultPrevented;
|
|
40321
40321
|
}
|
|
40322
40322
|
};
|
|
40323
|
-
var
|
|
40323
|
+
var rt = class {
|
|
40324
40324
|
constructor() {
|
|
40325
|
-
this.emitter = new
|
|
40325
|
+
this.emitter = new Se();
|
|
40326
40326
|
}
|
|
40327
40327
|
dispatchEvent(e) {
|
|
40328
40328
|
this.emitter.dispatchEvent(e);
|
|
@@ -40352,12 +40352,12 @@ function sn(r4) {
|
|
|
40352
40352
|
return !!r4.endpoint;
|
|
40353
40353
|
}
|
|
40354
40354
|
function Qt(r4) {
|
|
40355
|
-
if (!
|
|
40355
|
+
if (!it(r4))
|
|
40356
40356
|
throw new d(h("subscriptionRequest must be an object conforming to SubscriptionRequest type."));
|
|
40357
40357
|
let { channelType: e, mode: t, topic: n, events: i2 } = r4, o = { "hub.channel.type": e, "hub.mode": t, "hub.topic": n, "hub.events": i2.join(",") };
|
|
40358
40358
|
return sn(r4) && (o.endpoint = r4.endpoint), new URLSearchParams(o).toString();
|
|
40359
40359
|
}
|
|
40360
|
-
function
|
|
40360
|
+
function it(r4) {
|
|
40361
40361
|
if (typeof r4 != "object")
|
|
40362
40362
|
return false;
|
|
40363
40363
|
let { channelType: e, mode: t, topic: n, events: i2 } = r4;
|
|
@@ -40421,11 +40421,11 @@ function Ht(r4, e, t, n) {
|
|
|
40421
40421
|
let i2 = Array.isArray(t) ? t : [t];
|
|
40422
40422
|
return vo(e, i2), { timestamp: (/* @__PURE__ */ new Date()).toISOString(), id: te(), event: { "hub.topic": r4, "hub.event": e, context: i2, ...n ? { "context.versionId": n } : {} } };
|
|
40423
40423
|
}
|
|
40424
|
-
var
|
|
40424
|
+
var nt = class extends rt {
|
|
40425
40425
|
constructor(e) {
|
|
40426
40426
|
if (super(), this.subRequest = e, !e.endpoint)
|
|
40427
40427
|
throw new d(h("Subscription request should contain an endpoint."));
|
|
40428
|
-
if (!
|
|
40428
|
+
if (!it(e))
|
|
40429
40429
|
throw new d(h("Subscription request failed validation."));
|
|
40430
40430
|
let t = new WebSocket(e.endpoint);
|
|
40431
40431
|
t.addEventListener("open", () => {
|
|
@@ -40454,20 +40454,20 @@ function So(r4) {
|
|
|
40454
40454
|
function an(r4) {
|
|
40455
40455
|
return r4.split(".").length === 3;
|
|
40456
40456
|
}
|
|
40457
|
-
function
|
|
40457
|
+
function ot(r4) {
|
|
40458
40458
|
let [e, t, n] = r4.split(".");
|
|
40459
40459
|
return So(t);
|
|
40460
40460
|
}
|
|
40461
40461
|
function cn(r4) {
|
|
40462
40462
|
try {
|
|
40463
|
-
return typeof
|
|
40463
|
+
return typeof ot(r4).login_id == "string";
|
|
40464
40464
|
} catch {
|
|
40465
40465
|
return false;
|
|
40466
40466
|
}
|
|
40467
40467
|
}
|
|
40468
40468
|
function un(r4) {
|
|
40469
40469
|
try {
|
|
40470
|
-
let t =
|
|
40470
|
+
let t = ot(r4).exp;
|
|
40471
40471
|
return typeof t == "number" ? t * 1e3 : void 0;
|
|
40472
40472
|
} catch {
|
|
40473
40473
|
return;
|
|
@@ -40509,7 +40509,7 @@ var w = class {
|
|
|
40509
40509
|
}
|
|
40510
40510
|
};
|
|
40511
40511
|
Eo = Symbol.toStringTag;
|
|
40512
|
-
var
|
|
40512
|
+
var Ee = class {
|
|
40513
40513
|
constructor(e) {
|
|
40514
40514
|
this.storage = e ?? (typeof localStorage < "u" ? localStorage : new Gt());
|
|
40515
40515
|
}
|
|
@@ -40557,19 +40557,20 @@ var bo = V.FHIR_JSON + ", */*; q=0.1";
|
|
|
40557
40557
|
var Ro = "https://api.medplum.com/";
|
|
40558
40558
|
var Po = 1e3;
|
|
40559
40559
|
var Co = 6e4;
|
|
40560
|
+
var Ao = 0;
|
|
40560
40561
|
var dn = "Binary/";
|
|
40561
|
-
var pn = { resourceType: "Device", id: "system", deviceName: [{ name: "System" }] };
|
|
40562
|
-
var
|
|
40563
|
-
var
|
|
40564
|
-
var
|
|
40565
|
-
var
|
|
40566
|
-
var fn = class extends
|
|
40562
|
+
var pn = { resourceType: "Device", id: "system", deviceName: [{ type: "model-name", name: "System" }] };
|
|
40563
|
+
var wo = ((o) => (o.ClientCredentials = "client_credentials", o.AuthorizationCode = "authorization_code", o.RefreshToken = "refresh_token", o.JwtBearer = "urn:ietf:params:oauth:grant-type:jwt-bearer", o.TokenExchange = "urn:ietf:params:oauth:grant-type:token-exchange", o))(wo || {});
|
|
40564
|
+
var Io = ((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))(Io || {});
|
|
40565
|
+
var ko = ((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))(ko || {});
|
|
40566
|
+
var Oo = ((e) => (e.JwtBearer = "urn:ietf:params:oauth:client-assertion-type:jwt-bearer", e))(Oo || {});
|
|
40567
|
+
var fn = class extends Se {
|
|
40567
40568
|
constructor(t) {
|
|
40568
40569
|
super();
|
|
40569
40570
|
this.initComplete = true;
|
|
40570
40571
|
if (t?.baseUrl && !t.baseUrl.startsWith("http"))
|
|
40571
40572
|
throw new Error("Base URL must start with http or https");
|
|
40572
|
-
if (this.options = t ?? {}, this.fetch = t?.fetch ??
|
|
40573
|
+
if (this.options = t ?? {}, this.fetch = t?.fetch ?? Vo(), this.storage = t?.storage ?? new Ee(), this.createPdfImpl = t?.createPdf, this.baseUrl = hn(t?.baseUrl ?? Ro), this.fhirBaseUrl = hn(st(this.baseUrl, t?.fhirUrlPath ?? "fhir/R4/")), this.authorizeUrl = st(this.baseUrl, t?.authorizeUrl ?? "oauth2/authorize"), this.tokenUrl = st(this.baseUrl, t?.tokenUrl ?? "oauth2/token"), this.logoutUrl = st(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" ? Ao : Co), this.cacheTime > 0 ? this.requestCache = new tt(t?.resourceCacheSize ?? Po) : this.requestCache = void 0, t?.autoBatchTime ? (this.autoBatchTime = t.autoBatchTime, this.autoBatchQueue = []) : (this.autoBatchTime = 0, this.autoBatchQueue = void 0), t?.accessToken)
|
|
40573
40574
|
this.setAccessToken(t.accessToken), this.initPromise = Promise.resolve();
|
|
40574
40575
|
else if (this.storage.getInitPromise !== void 0) {
|
|
40575
40576
|
let n = this.storage.getInitPromise(), i2 = new Promise((o) => {
|
|
@@ -40826,9 +40827,9 @@ var fn = class extends ve {
|
|
|
40826
40827
|
target
|
|
40827
40828
|
}
|
|
40828
40829
|
}`.replace(/\s+/g, " "), a = await this.graphql(s);
|
|
40829
|
-
|
|
40830
|
+
Vt(a.data.StructureDefinitionList);
|
|
40830
40831
|
for (let u2 of a.data.SearchParameterList)
|
|
40831
|
-
|
|
40832
|
+
Nt(u2);
|
|
40832
40833
|
})());
|
|
40833
40834
|
return this.setCacheEntry(n, o), o;
|
|
40834
40835
|
}
|
|
@@ -40840,7 +40841,7 @@ var fn = class extends ve {
|
|
|
40840
40841
|
return i2.value;
|
|
40841
40842
|
let o = new w((async () => {
|
|
40842
40843
|
let s = await this.searchOne("StructureDefinition", { url: t, _sort: "-_lastUpdated" });
|
|
40843
|
-
s ?
|
|
40844
|
+
s ? Vt([s], t) : console.warn(`No StructureDefinition found for ${t}!`);
|
|
40844
40845
|
})());
|
|
40845
40846
|
return this.setCacheEntry(n, o), o;
|
|
40846
40847
|
}
|
|
@@ -40877,7 +40878,7 @@ var fn = class extends ve {
|
|
|
40877
40878
|
s?.signal?.removeEventListener("abort", f), q instanceof Error ? u2(q) : a(q);
|
|
40878
40879
|
};
|
|
40879
40880
|
l2.responseType = "json", l2.onabort = () => E2(new Error("Request aborted")), l2.onerror = () => E2(new Error("Request error")), o && (l2.upload.onprogress = (q) => o(q), l2.upload.onload = (q) => o(q)), l2.onload = () => {
|
|
40880
|
-
l2.status >= 200 && l2.status < 300 ? E2(l2.response) : E2(new d(
|
|
40881
|
+
l2.status >= 200 && l2.status < 300 ? E2(l2.response) : E2(new d(Ie(l2.response || l2.statusText)));
|
|
40881
40882
|
}, l2.open("POST", t), l2.withCredentials = true, l2.setRequestHeader("Authorization", "Bearer " + this.accessToken), l2.setRequestHeader("Cache-Control", "no-cache, no-store, max-age=0"), l2.setRequestHeader("Content-Type", i2), l2.setRequestHeader("X-Medplum", "extended"), l2.send(n);
|
|
40882
40883
|
});
|
|
40883
40884
|
}
|
|
@@ -40889,7 +40890,7 @@ var fn = class extends ve {
|
|
|
40889
40890
|
}
|
|
40890
40891
|
createComment(t, n, i2) {
|
|
40891
40892
|
let o = this.getProfile(), s, a;
|
|
40892
|
-
return t.resourceType === "Encounter" && (s = J(t), a = t.subject), t.resourceType === "ServiceRequest" && (s = t.encounter, a = t.subject), t.resourceType === "Patient" && (a = J(t)), this.createResource({ resourceType: "Communication", basedOn: [J(t)], encounter: s, subject: a, sender: o ? J(o) : void 0, sent: (/* @__PURE__ */ new Date()).toISOString(), payload: [{ contentString: n }] }, i2);
|
|
40893
|
+
return t.resourceType === "Encounter" && (s = J(t), a = t.subject), t.resourceType === "ServiceRequest" && (s = t.encounter, a = t.subject), t.resourceType === "Patient" && (a = J(t)), this.createResource({ resourceType: "Communication", status: "completed", basedOn: [J(t)], encounter: s, subject: a, sender: o ? J(o) : void 0, sent: (/* @__PURE__ */ new Date()).toISOString(), payload: [{ contentString: n }] }, i2);
|
|
40893
40894
|
}
|
|
40894
40895
|
async updateResource(t, n) {
|
|
40895
40896
|
if (!t.resourceType)
|
|
@@ -40932,13 +40933,13 @@ var fn = class extends ve {
|
|
|
40932
40933
|
return this.get(`${this.fhirUrl(t, n)}/$graph?graph=${i2}`, o);
|
|
40933
40934
|
}
|
|
40934
40935
|
pushToAgent(t, n, i2, o, s, a) {
|
|
40935
|
-
return this.post(this.fhirUrl("Agent", ur(t), "$push"), { destination:
|
|
40936
|
+
return this.post(this.fhirUrl("Agent", ur(t), "$push"), { destination: fe(n), body: i2, contentType: o, waitForResponse: s }, V.FHIR_JSON, a);
|
|
40936
40937
|
}
|
|
40937
40938
|
getActiveLogin() {
|
|
40938
40939
|
return this.storage.getObject("activeLogin");
|
|
40939
40940
|
}
|
|
40940
40941
|
async setActiveLogin(t) {
|
|
40941
|
-
(!this.sessionDetails?.profile ||
|
|
40942
|
+
(!this.sessionDetails?.profile || fe(this.sessionDetails.profile) !== t.profile?.reference) && this.clearActiveLogin(), this.setAccessToken(t.accessToken, t.refreshToken), this.storage.setObject("activeLogin", t), this.addLogin(t), this.refreshPromise = void 0, await this.refreshProfile();
|
|
40942
40943
|
}
|
|
40943
40944
|
getAccessToken() {
|
|
40944
40945
|
return this.accessToken;
|
|
@@ -41056,7 +41057,7 @@ var fn = class extends ve {
|
|
|
41056
41057
|
else
|
|
41057
41058
|
f = await t.text();
|
|
41058
41059
|
if (t.status >= 400)
|
|
41059
|
-
throw new d(
|
|
41060
|
+
throw new d(Ie(f));
|
|
41060
41061
|
return f;
|
|
41061
41062
|
}
|
|
41062
41063
|
async fetchWithRetry(t, n) {
|
|
@@ -41069,7 +41070,7 @@ var fn = class extends ve {
|
|
|
41069
41070
|
} catch (u2) {
|
|
41070
41071
|
this.retryCatch(a, i2, u2);
|
|
41071
41072
|
}
|
|
41072
|
-
await
|
|
41073
|
+
await Tt(o);
|
|
41073
41074
|
}
|
|
41074
41075
|
return s;
|
|
41075
41076
|
}
|
|
@@ -41093,7 +41094,7 @@ var fn = class extends ve {
|
|
|
41093
41094
|
let u2 = await gn(a);
|
|
41094
41095
|
u2 && (i2 = await this.fetchWithRetry(u2, s));
|
|
41095
41096
|
}
|
|
41096
|
-
await
|
|
41097
|
+
await Tt(o);
|
|
41097
41098
|
}
|
|
41098
41099
|
return this.parseResponse(i2, "POST", t);
|
|
41099
41100
|
}
|
|
@@ -41104,14 +41105,14 @@ var fn = class extends ve {
|
|
|
41104
41105
|
try {
|
|
41105
41106
|
o.resolve(await this.request(o.method, this.fhirBaseUrl + o.url, o.options));
|
|
41106
41107
|
} catch (s) {
|
|
41107
|
-
o.reject(new d(
|
|
41108
|
+
o.reject(new d(Ie(s)));
|
|
41108
41109
|
}
|
|
41109
41110
|
return;
|
|
41110
41111
|
}
|
|
41111
41112
|
let n = { resourceType: "Bundle", type: "batch", entry: t.map((o) => ({ request: { method: o.method, url: o.url }, resource: o.options.body ? JSON.parse(o.options.body) : void 0 })) }, i2 = await this.post(this.fhirBaseUrl.slice(0, -1), n);
|
|
41112
41113
|
for (let o = 0; o < t.length; o++) {
|
|
41113
41114
|
let s = t[o], a = i2.entry?.[o];
|
|
41114
|
-
a?.response?.outcome && !
|
|
41115
|
+
a?.response?.outcome && !ht(a.response.outcome) ? s.reject(new d(a.response.outcome)) : s.resolve(a?.resource);
|
|
41115
41116
|
}
|
|
41116
41117
|
}
|
|
41117
41118
|
addFetchOptionsDefaults(t) {
|
|
@@ -41190,14 +41191,14 @@ var fn = class extends ve {
|
|
|
41190
41191
|
return i2.endpoint = s, i2;
|
|
41191
41192
|
}
|
|
41192
41193
|
async fhircastUnsubscribe(t) {
|
|
41193
|
-
if (!
|
|
41194
|
+
if (!it(t))
|
|
41194
41195
|
throw new d(h("Invalid topic or subscriptionRequest. SubscriptionRequest must be an object."));
|
|
41195
41196
|
if (!(t.endpoint && typeof t.endpoint == "string" && t.endpoint.startsWith("ws")))
|
|
41196
41197
|
throw new d(h("Provided subscription request must have an endpoint in order to unsubscribe."));
|
|
41197
41198
|
t.mode = "unsubscribe", await this.post("/fhircast/STU3", Qt(t), V.FORM_URL_ENCODED);
|
|
41198
41199
|
}
|
|
41199
41200
|
fhircastConnect(t) {
|
|
41200
|
-
return new
|
|
41201
|
+
return new nt(t);
|
|
41201
41202
|
}
|
|
41202
41203
|
async fhircastPublish(t, n, i2, o) {
|
|
41203
41204
|
return nn(n) ? this.post(`/fhircast/STU3/${t}`, Ht(t, n, i2, o), V.JSON) : (on(n), this.post(`/fhircast/STU3/${t}`, Ht(t, n, i2), V.JSON));
|
|
@@ -41232,7 +41233,7 @@ var fn = class extends ve {
|
|
|
41232
41233
|
async verifyTokens(t) {
|
|
41233
41234
|
let n = t.access_token;
|
|
41234
41235
|
if (an(n)) {
|
|
41235
|
-
let i2 =
|
|
41236
|
+
let i2 = ot(n);
|
|
41236
41237
|
if (Date.now() >= i2.exp * 1e3)
|
|
41237
41238
|
throw this.clearActiveLogin(), new Error("Token expired");
|
|
41238
41239
|
if (i2.cid) {
|
|
@@ -41256,7 +41257,7 @@ var fn = class extends ve {
|
|
|
41256
41257
|
throw i2;
|
|
41257
41258
|
}
|
|
41258
41259
|
};
|
|
41259
|
-
function
|
|
41260
|
+
function Vo() {
|
|
41260
41261
|
if (!globalThis.fetch)
|
|
41261
41262
|
throw new Error("Fetch not available in this environment");
|
|
41262
41263
|
return globalThis.fetch.bind(globalThis);
|
|
@@ -41267,7 +41268,7 @@ function mn() {
|
|
|
41267
41268
|
function hn(r4) {
|
|
41268
41269
|
return r4.endsWith("/") ? r4 : r4 + "/";
|
|
41269
41270
|
}
|
|
41270
|
-
function
|
|
41271
|
+
function st(r4, e) {
|
|
41271
41272
|
return new URL(e, r4).toString();
|
|
41272
41273
|
}
|
|
41273
41274
|
async function gn(r4) {
|
|
@@ -41285,10 +41286,10 @@ function yn(r4) {
|
|
|
41285
41286
|
let e = r4.entry?.map((t) => t.resource) ?? [];
|
|
41286
41287
|
return Object.assign(e, { bundle: r4 });
|
|
41287
41288
|
}
|
|
41288
|
-
var
|
|
41289
|
-
var
|
|
41290
|
-
var
|
|
41291
|
-
var
|
|
41289
|
+
var _o = [...xe, "->", "<<", ">>", "=="];
|
|
41290
|
+
var Bo = Te().registerInfix("->", { precedence: m.Arrow }).registerInfix(";", { precedence: m.Semicolon });
|
|
41291
|
+
var es = [...xe, "eq", "ne", "co"];
|
|
41292
|
+
var ns = Te();
|
|
41292
41293
|
var z = class {
|
|
41293
41294
|
constructor(e = "\r", t = "|", n = "^", i2 = "~", o = "\\", s = "&") {
|
|
41294
41295
|
this.segmentSeparator = e;
|
|
@@ -41329,7 +41330,7 @@ var kn = class r {
|
|
|
41329
41330
|
}
|
|
41330
41331
|
buildAck() {
|
|
41331
41332
|
let e = /* @__PURE__ */ new Date(), t = this.getSegment("MSH"), n = t?.getField(3)?.toString() ?? "", i2 = t?.getField(4)?.toString() ?? "", o = t?.getField(5)?.toString() ?? "", s = t?.getField(6)?.toString() ?? "", a = t?.getField(10)?.toString() ?? "", u2 = t?.getField(12)?.toString() ?? "2.5.1";
|
|
41332
|
-
return new r([new
|
|
41333
|
+
return new r([new Re(["MSH", this.context.getMsh2(), o, s, n, i2, os(e), "", this.buildAckMessageType(t), e.getTime().toString(), "P", u2], this.context), new Re(["MSA", "AA", a, "OK"], this.context)]);
|
|
41333
41334
|
}
|
|
41334
41335
|
buildAckMessageType(e) {
|
|
41335
41336
|
let t = e?.getField(9), n = t?.getComponent(2), i2 = t?.getComponent(3), o = "ACK";
|
|
@@ -41341,12 +41342,12 @@ var kn = class r {
|
|
|
41341
41342
|
throw n.type = "entity.parse.failed", n;
|
|
41342
41343
|
}
|
|
41343
41344
|
let t = new z("\r", e.charAt(3), e.charAt(4), e.charAt(5), e.charAt(6), e.charAt(7));
|
|
41344
|
-
return new r(e.split(/[\r\n]+/).map((n) =>
|
|
41345
|
+
return new r(e.split(/[\r\n]+/).map((n) => Re.parse(n, t)), t);
|
|
41345
41346
|
}
|
|
41346
41347
|
};
|
|
41347
|
-
var
|
|
41348
|
+
var Re = class r2 {
|
|
41348
41349
|
constructor(e, t = new z()) {
|
|
41349
|
-
this.context = t, mr(e) ? this.fields = e.map((n) =>
|
|
41350
|
+
this.context = t, mr(e) ? this.fields = e.map((n) => pe.parse(n, t)) : this.fields = e, this.name = this.fields[0].components[0][0];
|
|
41350
41351
|
}
|
|
41351
41352
|
get(e) {
|
|
41352
41353
|
return this.fields[e];
|
|
@@ -41354,9 +41355,9 @@ var be = class r2 {
|
|
|
41354
41355
|
getField(e) {
|
|
41355
41356
|
if (this.name === "MSH") {
|
|
41356
41357
|
if (e === 1)
|
|
41357
|
-
return new
|
|
41358
|
+
return new pe([[this.context.getMsh1()]], this.context);
|
|
41358
41359
|
if (e === 2)
|
|
41359
|
-
return new
|
|
41360
|
+
return new pe([[this.context.getMsh2()]], this.context);
|
|
41360
41361
|
if (e > 2)
|
|
41361
41362
|
return this.fields[e - 1];
|
|
41362
41363
|
}
|
|
@@ -41369,10 +41370,10 @@ var be = class r2 {
|
|
|
41369
41370
|
return this.fields.map((e) => e.toString()).join(this.context.fieldSeparator);
|
|
41370
41371
|
}
|
|
41371
41372
|
static parse(e, t = new z()) {
|
|
41372
|
-
return new r2(e.split(t.fieldSeparator).map((n) =>
|
|
41373
|
+
return new r2(e.split(t.fieldSeparator).map((n) => pe.parse(n, t)), t);
|
|
41373
41374
|
}
|
|
41374
41375
|
};
|
|
41375
|
-
var
|
|
41376
|
+
var pe = class r3 {
|
|
41376
41377
|
constructor(e, t = new z()) {
|
|
41377
41378
|
this.context = t, this.components = e;
|
|
41378
41379
|
}
|
|
@@ -41390,7 +41391,7 @@ var de = class r3 {
|
|
|
41390
41391
|
return new r3(e.split(t.repetitionSeparator).map((n) => n.split(t.componentSeparator)), t);
|
|
41391
41392
|
}
|
|
41392
41393
|
};
|
|
41393
|
-
function
|
|
41394
|
+
function os(r4) {
|
|
41394
41395
|
let e = r4 instanceof Date ? r4 : new Date(r4), n = e.toISOString().replace(/[-:T]/g, "").replace(/(\.\d+)?Z$/, ""), i2 = e.getUTCMilliseconds();
|
|
41395
41396
|
return i2 > 0 && (n += "." + i2.toString()), n;
|
|
41396
41397
|
}
|