@medplum/core 0.9.21 → 0.9.24

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/esm/index.js CHANGED
@@ -611,6 +611,17 @@ function findObservationInterval(definition, patient, value, category) {
611
611
  (category === undefined || interval.category === category);
612
612
  });
613
613
  }
614
+ /**
615
+ * Tries to find an observation reference range for the given patient and condition names.
616
+ * @param definition The observation definition.
617
+ * @param patient The patient.
618
+ * @param names The condition names.
619
+ * @returns The observation interval if found; otherwise undefined.
620
+ */
621
+ function findObservationReferenceRange(definition, patient, names) {
622
+ var _a;
623
+ return (_a = definition.qualifiedInterval) === null || _a === void 0 ? void 0 : _a.find((interval) => observationIntervalMatchesPatient(interval, patient) && names.includes(interval.condition));
624
+ }
614
625
  /**
615
626
  * Returns true if the patient matches the observation interval.
616
627
  * @param interval The observation interval.
@@ -6184,6 +6195,7 @@ class MedplumClient extends EventTarget {
6184
6195
  * Returns the current base URL for all API requests.
6185
6196
  * By default, this is set to `https://api.medplum.com/`.
6186
6197
  * This can be overridden by setting the `baseUrl` option when creating the client.
6198
+ * @category HTTP
6187
6199
  * @returns The current base URL for all API requests.
6188
6200
  */
6189
6201
  getBaseUrl() {
@@ -6191,6 +6203,7 @@ class MedplumClient extends EventTarget {
6191
6203
  }
6192
6204
  /**
6193
6205
  * Clears all auth state including local storage and session storage.
6206
+ * @category Authentication
6194
6207
  */
6195
6208
  clear() {
6196
6209
  __classPrivateFieldGet(this, _MedplumClient_storage, "f").clear();
@@ -6203,6 +6216,7 @@ class MedplumClient extends EventTarget {
6203
6216
  }
6204
6217
  /**
6205
6218
  * Invalidates any cached values or cached requests for the given URL.
6219
+ * @category Caching
6206
6220
  * @param url The URL to invalidate.
6207
6221
  */
6208
6222
  invalidateUrl(url) {
@@ -6211,6 +6225,7 @@ class MedplumClient extends EventTarget {
6211
6225
  }
6212
6226
  /**
6213
6227
  * Invalidates all cached search results or cached requests for the given resourceType.
6228
+ * @category Caching
6214
6229
  * @param resourceType The resource type to invalidate.
6215
6230
  */
6216
6231
  invalidateSearches(resourceType) {
@@ -6228,6 +6243,7 @@ class MedplumClient extends EventTarget {
6228
6243
  * For common operations, we recommend using higher level methods
6229
6244
  * such as `readResource()`, `search()`, etc.
6230
6245
  *
6246
+ * @category HTTP
6231
6247
  * @param url The target URL.
6232
6248
  * @param options Optional fetch options.
6233
6249
  * @returns Promise to the response content.
@@ -6249,6 +6265,7 @@ class MedplumClient extends EventTarget {
6249
6265
  * For common operations, we recommend using higher level methods
6250
6266
  * such as `createResource()`.
6251
6267
  *
6268
+ * @category HTTP
6252
6269
  * @param url The target URL.
6253
6270
  * @param body The content body. Strings and `File` objects are passed directly. Other objects are converted to JSON.
6254
6271
  * @param contentType The content type to be included in the "Content-Type" header.
@@ -6273,6 +6290,7 @@ class MedplumClient extends EventTarget {
6273
6290
  * For common operations, we recommend using higher level methods
6274
6291
  * such as `updateResource()`.
6275
6292
  *
6293
+ * @category HTTP
6276
6294
  * @param url The target URL.
6277
6295
  * @param body The content body. Strings and `File` objects are passed directly. Other objects are converted to JSON.
6278
6296
  * @param contentType The content type to be included in the "Content-Type" header.
@@ -6297,6 +6315,7 @@ class MedplumClient extends EventTarget {
6297
6315
  * For common operations, we recommend using higher level methods
6298
6316
  * such as `patchResource()`.
6299
6317
  *
6318
+ * @category HTTP
6300
6319
  * @param url The target URL.
6301
6320
  * @param operations Array of JSONPatch operations.
6302
6321
  * @param options Optional fetch options.
@@ -6312,10 +6331,12 @@ class MedplumClient extends EventTarget {
6312
6331
  /**
6313
6332
  * Makes an HTTP DELETE request to the specified URL.
6314
6333
  *
6334
+ *
6315
6335
  * This is a lower level method for custom requests.
6316
6336
  * For common operations, we recommend using higher level methods
6317
6337
  * such as `deleteResource()`.
6318
6338
  *
6339
+ * @category HTTP
6319
6340
  * @param url The target URL.
6320
6341
  * @param options Optional fetch options.
6321
6342
  * @returns Promise to the response content.
@@ -6326,18 +6347,53 @@ class MedplumClient extends EventTarget {
6326
6347
  return __classPrivateFieldGet(this, _MedplumClient_instances, "m", _MedplumClient_request).call(this, 'DELETE', url, options);
6327
6348
  }
6328
6349
  /**
6329
- * Tries to register a new user.
6330
- * @param request The registration request.
6350
+ * Initiates a new user flow.
6351
+ *
6352
+ * This method is part of the two different user registration flows:
6353
+ * 1) New Practitioner and new Project
6354
+ * 2) New Patient registration
6355
+ *
6356
+ * @category Authentication
6357
+ * @param registerRequest Register request including email and password.
6358
+ * @returns Promise to the authentication response.
6359
+ */
6360
+ startNewUser(registerRequest) {
6361
+ return __awaiter(this, void 0, void 0, function* () {
6362
+ yield __classPrivateFieldGet(this, _MedplumClient_instances, "m", _MedplumClient_startPkce).call(this);
6363
+ return this.post('auth/newuser', Object.assign(Object.assign({}, registerRequest), { codeChallengeMethod: 'S256', codeChallenge: __classPrivateFieldGet(this, _MedplumClient_storage, "f").getString('codeChallenge') }));
6364
+ });
6365
+ }
6366
+ /**
6367
+ * Initiates a new project flow.
6368
+ *
6369
+ * This requires a partial login from `startNewUser` or `startNewGoogleUser`.
6370
+ *
6371
+ * @param registerRequest Register request including email and password.
6372
+ * @param login The partial login to complete. This should come from the `startNewUser` method.
6373
+ * @returns Promise to the authentication response.
6374
+ */
6375
+ startNewProject(registerRequest, login) {
6376
+ return __awaiter(this, void 0, void 0, function* () {
6377
+ return this.post('auth/newproject', Object.assign(Object.assign({}, registerRequest), login));
6378
+ });
6379
+ }
6380
+ /**
6381
+ * Initiates a new patient flow.
6382
+ *
6383
+ * This requires a partial login from `startNewUser` or `startNewGoogleUser`.
6384
+ *
6385
+ * @param registerRequest Register request including email and password.
6386
+ * @param login The partial login to complete. This should come from the `startNewUser` method.
6331
6387
  * @returns Promise to the authentication response.
6332
6388
  */
6333
- register(request) {
6389
+ startNewPatient(registerRequest, login) {
6334
6390
  return __awaiter(this, void 0, void 0, function* () {
6335
- const response = yield this.post('auth/register', request);
6336
- yield this.setActiveLogin(response);
6391
+ return this.post('auth/newpatient', Object.assign(Object.assign({}, registerRequest), login));
6337
6392
  });
6338
6393
  }
6339
6394
  /**
6340
6395
  * Initiates a user login flow.
6396
+ * @category Authentication
6341
6397
  * @param loginRequest Login request including email and password.
6342
6398
  * @returns Promise to the authentication response.
6343
6399
  */
@@ -6352,6 +6408,7 @@ class MedplumClient extends EventTarget {
6352
6408
  * Tries to sign in with Google authentication.
6353
6409
  * The response parameter is the result of a Google authentication.
6354
6410
  * See: https://developers.google.com/identity/gsi/web/guides/handle-credential-responses-js-functions
6411
+ * @category Authentication
6355
6412
  * @param loginRequest Login request including Google credential response.
6356
6413
  * @returns Promise to the authentication response.
6357
6414
  */
@@ -6365,6 +6422,7 @@ class MedplumClient extends EventTarget {
6365
6422
  /**
6366
6423
  * Signs out locally.
6367
6424
  * Does not invalidate tokens with the server.
6425
+ * @category Authentication
6368
6426
  */
6369
6427
  signOut() {
6370
6428
  this.clear();
@@ -6374,6 +6432,7 @@ class MedplumClient extends EventTarget {
6374
6432
  * Tries to sign in the user.
6375
6433
  * Returns true if the user is signed in.
6376
6434
  * This may result in navigating away to the sign in page.
6435
+ * @category Authentication
6377
6436
  */
6378
6437
  signInWithRedirect() {
6379
6438
  const urlParams = new URLSearchParams(window.location.search);
@@ -6389,6 +6448,7 @@ class MedplumClient extends EventTarget {
6389
6448
  /**
6390
6449
  * Tries to sign out the user.
6391
6450
  * See: https://docs.aws.amazon.com/cognito/latest/developerguide/logout-endpoint.html
6451
+ * @category Authentication
6392
6452
  */
6393
6453
  signOutWithRedirect() {
6394
6454
  window.location.assign(__classPrivateFieldGet(this, _MedplumClient_logoutUrl, "f"));
@@ -6396,6 +6456,7 @@ class MedplumClient extends EventTarget {
6396
6456
  /**
6397
6457
  * Builds a FHIR URL from a collection of URL path components.
6398
6458
  * For example, `buildUrl('/Patient', '123')` returns `fhir/R4/Patient/123`.
6459
+ * @category HTTP
6399
6460
  * @param path The path component of the URL.
6400
6461
  * @returns The well-formed FHIR URL.
6401
6462
  */
@@ -6404,6 +6465,8 @@ class MedplumClient extends EventTarget {
6404
6465
  }
6405
6466
  /**
6406
6467
  * Builds a FHIR search URL from a search query or structured query object.
6468
+ * @category HTTP
6469
+ * @category Search
6407
6470
  * @param query The FHIR search query or structured query object.
6408
6471
  * @returns The well-formed FHIR URL.
6409
6472
  */
@@ -6451,6 +6514,7 @@ class MedplumClient extends EventTarget {
6451
6514
  *
6452
6515
  * See FHIR search for full details: https://www.hl7.org/fhir/search.html
6453
6516
  *
6517
+ * @category Search
6454
6518
  * @param query The search query as either a string or a structured search object.
6455
6519
  * @returns Promise to the search result bundle.
6456
6520
  */
@@ -6473,6 +6537,7 @@ class MedplumClient extends EventTarget {
6473
6537
  *
6474
6538
  * See FHIR search for full details: https://www.hl7.org/fhir/search.html
6475
6539
  *
6540
+ * @category Search
6476
6541
  * @param query The search query as either a string or a structured search object.
6477
6542
  * @returns Promise to the search result bundle.
6478
6543
  */
@@ -6505,6 +6570,7 @@ class MedplumClient extends EventTarget {
6505
6570
  *
6506
6571
  * See FHIR search for full details: https://www.hl7.org/fhir/search.html
6507
6572
  *
6573
+ * @category Search
6508
6574
  * @param query The search query as either a string or a structured search object.
6509
6575
  * @returns Promise to the search result bundle.
6510
6576
  */
@@ -6522,6 +6588,8 @@ class MedplumClient extends EventTarget {
6522
6588
  /**
6523
6589
  * Searches a ValueSet resource using the "expand" operation.
6524
6590
  * See: https://www.hl7.org/fhir/operation-valueset-expand.html
6591
+ *
6592
+ * @category Search
6525
6593
  * @param system The ValueSet system url.
6526
6594
  * @param filter The search string.
6527
6595
  * @returns Promise to expanded ValueSet.
@@ -6534,6 +6602,7 @@ class MedplumClient extends EventTarget {
6534
6602
  }
6535
6603
  /**
6536
6604
  * Returns a cached resource if it is available.
6605
+ * @category Caching
6537
6606
  * @param resourceType The FHIR resource type.
6538
6607
  * @param id The FHIR resource ID.
6539
6608
  * @returns The resource if it is available in the cache; undefined otherwise.
@@ -6545,6 +6614,7 @@ class MedplumClient extends EventTarget {
6545
6614
  }
6546
6615
  /**
6547
6616
  * Returns a cached resource if it is available.
6617
+ * @category Caching
6548
6618
  * @param resourceType The FHIR resource type.
6549
6619
  * @param id The FHIR resource ID.
6550
6620
  * @returns The resource if it is available in the cache; undefined otherwise.
@@ -6572,6 +6642,7 @@ class MedplumClient extends EventTarget {
6572
6642
  *
6573
6643
  * See the FHIR "read" operation for full details: https://www.hl7.org/fhir/http.html#read
6574
6644
  *
6645
+ * @category Caching
6575
6646
  * @param resourceType The FHIR resource type.
6576
6647
  * @param id The resource ID.
6577
6648
  * @returns The resource if available; undefined otherwise.
@@ -6594,6 +6665,7 @@ class MedplumClient extends EventTarget {
6594
6665
  *
6595
6666
  * See the FHIR "read" operation for full details: https://www.hl7.org/fhir/http.html#read
6596
6667
  *
6668
+ * @category Read
6597
6669
  * @param reference The FHIR reference object.
6598
6670
  * @returns The resource if available; undefined otherwise.
6599
6671
  */
@@ -6612,6 +6684,7 @@ class MedplumClient extends EventTarget {
6612
6684
  * Returns a cached schema for a resource type.
6613
6685
  * If the schema is not cached, returns undefined.
6614
6686
  * It is assumed that a client will call requestSchema before using this method.
6687
+ * @category Schema
6615
6688
  * @param resourceType The FHIR resource type.
6616
6689
  * @returns The schema if immediately available, undefined otherwise.
6617
6690
  * @deprecated Use globalSchema instead.
@@ -6622,6 +6695,7 @@ class MedplumClient extends EventTarget {
6622
6695
  /**
6623
6696
  * Requests the schema for a resource type.
6624
6697
  * If the schema is already cached, the promise is resolved immediately.
6698
+ * @category Schema
6625
6699
  * @param resourceType The FHIR resource type.
6626
6700
  * @returns Promise to a schema with the requested resource type.
6627
6701
  */
@@ -6683,6 +6757,7 @@ class MedplumClient extends EventTarget {
6683
6757
  *
6684
6758
  * See the FHIR "history" operation for full details: https://www.hl7.org/fhir/http.html#history
6685
6759
  *
6760
+ * @category Read
6686
6761
  * @param resourceType The FHIR resource type.
6687
6762
  * @param id The resource ID.
6688
6763
  * @returns Promise to the resource history.
@@ -6702,6 +6777,7 @@ class MedplumClient extends EventTarget {
6702
6777
  *
6703
6778
  * See the FHIR "vread" operation for full details: https://www.hl7.org/fhir/http.html#vread
6704
6779
  *
6780
+ * @category Read
6705
6781
  * @param resourceType The FHIR resource type.
6706
6782
  * @param id The resource ID.
6707
6783
  * @returns The resource if available; undefined otherwise.
@@ -6709,6 +6785,12 @@ class MedplumClient extends EventTarget {
6709
6785
  readVersion(resourceType, id, vid) {
6710
6786
  return this.get(this.fhirUrl(resourceType, id, '_history', vid));
6711
6787
  }
6788
+ /**
6789
+ *
6790
+ * @category Read
6791
+ * @param id The Patient Id
6792
+ * @returns A Bundle of all Resources related to the Patient
6793
+ */
6712
6794
  readPatientEverything(id) {
6713
6795
  return this.get(this.fhirUrl('Patient', id, '$everything'));
6714
6796
  }
@@ -6732,6 +6814,7 @@ class MedplumClient extends EventTarget {
6732
6814
  *
6733
6815
  * See the FHIR "create" operation for full details: https://www.hl7.org/fhir/http.html#create
6734
6816
  *
6817
+ * @category Create
6735
6818
  * @param resource The FHIR resource to create.
6736
6819
  * @returns The result of the create operation.
6737
6820
  */
@@ -6776,6 +6859,7 @@ class MedplumClient extends EventTarget {
6776
6859
  *
6777
6860
  * See the FHIR "conditional create" operation for full details: https://www.hl7.org/fhir/http.html#ccreate
6778
6861
  *
6862
+ * @category Create
6779
6863
  * @param resource The FHIR resource to create.
6780
6864
  * @param query The search query for an equivalent resource.
6781
6865
  * @returns The result of the create operation.
@@ -6804,6 +6888,7 @@ class MedplumClient extends EventTarget {
6804
6888
  *
6805
6889
  * See the FHIR "create" operation for full details: https://www.hl7.org/fhir/http.html#create
6806
6890
  *
6891
+ * @category Create
6807
6892
  * @param data The binary data to upload.
6808
6893
  * @param filename Optional filename for the binary.
6809
6894
  * @param contentType Content type for the binary.
@@ -6834,6 +6919,7 @@ class MedplumClient extends EventTarget {
6834
6919
  *
6835
6920
  * See the pdfmake document definition for full details: https://pdfmake.github.io/docs/0.1/document-definition-object/
6836
6921
  *
6922
+ * @category Media
6837
6923
  * @param docDefinition The PDF document definition.
6838
6924
  * @returns The result of the create operation.
6839
6925
  */
@@ -6851,6 +6937,7 @@ class MedplumClient extends EventTarget {
6851
6937
  *
6852
6938
  * This is a convenience method to handle commmon cases where a `Communication` resource is created with a `payload`.
6853
6939
  *
6940
+ * @category Create
6854
6941
  * @param resource The FHIR resource to comment on.
6855
6942
  * @param text The text of the comment.
6856
6943
  * @returns The result of the create operation.
@@ -6901,6 +6988,7 @@ class MedplumClient extends EventTarget {
6901
6988
  *
6902
6989
  * See the FHIR "update" operation for full details: https://www.hl7.org/fhir/http.html#update
6903
6990
  *
6991
+ * @category Write
6904
6992
  * @param resource The FHIR resource to update.
6905
6993
  * @returns The result of the update operation.
6906
6994
  */
@@ -6932,6 +7020,7 @@ class MedplumClient extends EventTarget {
6932
7020
  *
6933
7021
  * See the JSONPatch specification for full details: https://tools.ietf.org/html/rfc6902
6934
7022
  *
7023
+ * @category Write
6935
7024
  * @param resourceType The FHIR resource type.
6936
7025
  * @param id The resource ID.
6937
7026
  * @param operations The JSONPatch operations.
@@ -6952,6 +7041,7 @@ class MedplumClient extends EventTarget {
6952
7041
  *
6953
7042
  * See the FHIR "delete" operation for full details: https://www.hl7.org/fhir/http.html#delete
6954
7043
  *
7044
+ * @category Delete
6955
7045
  * @param resourceType The FHIR resource type.
6956
7046
  * @param id The resource ID.
6957
7047
  * @returns The result of the delete operation.
@@ -7003,7 +7093,7 @@ class MedplumClient extends EventTarget {
7003
7093
  * ```
7004
7094
  *
7005
7095
  * See The FHIR "batch/transaction" section for full details: https://hl7.org/fhir/http.html#transaction
7006
- *
7096
+ * @category Batch
7007
7097
  * @param bundle The FHIR batch/transaction bundle.
7008
7098
  * @returns The FHIR batch/transaction response bundle.
7009
7099
  */
@@ -7043,7 +7133,7 @@ class MedplumClient extends EventTarget {
7043
7133
  * ```
7044
7134
  *
7045
7135
  * See options here: https://nodemailer.com/extras/mailcomposer/
7046
- *
7136
+ * @category Media
7047
7137
  * @param options The MailComposer options.
7048
7138
  * @returns Promise to the operation outcome.
7049
7139
  */
@@ -7091,6 +7181,7 @@ class MedplumClient extends EventTarget {
7091
7181
  *
7092
7182
  * See the FHIR GraphQL documentation for FHIR specific details: https://www.hl7.org/fhir/graphql.html
7093
7183
  *
7184
+ * @category Read
7094
7185
  * @param query The GraphQL query.
7095
7186
  * @param operationName Optional GraphQL operation name.
7096
7187
  * @param variables Optional GraphQL variables.
@@ -7100,9 +7191,16 @@ class MedplumClient extends EventTarget {
7100
7191
  graphql(query, operationName, variables, options) {
7101
7192
  return this.post(this.fhirUrl('$graphql'), { query, operationName, variables }, JSON_CONTENT_TYPE, options);
7102
7193
  }
7194
+ /**
7195
+ * @category Authentication
7196
+ * @returns The Login State
7197
+ */
7103
7198
  getActiveLogin() {
7104
7199
  return __classPrivateFieldGet(this, _MedplumClient_storage, "f").getObject('activeLogin');
7105
7200
  }
7201
+ /**
7202
+ * @category Authentication
7203
+ */
7106
7204
  setActiveLogin(login) {
7107
7205
  return __awaiter(this, void 0, void 0, function* () {
7108
7206
  __classPrivateFieldSet(this, _MedplumClient_accessToken, login.accessToken, "f");
@@ -7116,25 +7214,43 @@ class MedplumClient extends EventTarget {
7116
7214
  yield __classPrivateFieldGet(this, _MedplumClient_instances, "m", _MedplumClient_refreshProfile).call(this);
7117
7215
  });
7118
7216
  }
7217
+ /**
7218
+ * @category Authentication
7219
+ */
7119
7220
  getAccessToken() {
7120
7221
  return __classPrivateFieldGet(this, _MedplumClient_accessToken, "f");
7121
7222
  }
7223
+ /**
7224
+ * @category Authentication
7225
+ */
7122
7226
  setAccessToken(accessToken) {
7123
7227
  __classPrivateFieldSet(this, _MedplumClient_accessToken, accessToken, "f");
7124
7228
  __classPrivateFieldSet(this, _MedplumClient_refreshToken, undefined, "f");
7125
7229
  __classPrivateFieldSet(this, _MedplumClient_profile, undefined, "f");
7126
7230
  __classPrivateFieldSet(this, _MedplumClient_config, undefined, "f");
7127
7231
  }
7232
+ /**
7233
+ * @category Authentication
7234
+ */
7128
7235
  getLogins() {
7129
7236
  var _a;
7130
7237
  return (_a = __classPrivateFieldGet(this, _MedplumClient_storage, "f").getObject('logins')) !== null && _a !== void 0 ? _a : [];
7131
7238
  }
7239
+ /**
7240
+ * @category Authentication
7241
+ */
7132
7242
  isLoading() {
7133
7243
  return !!__classPrivateFieldGet(this, _MedplumClient_profilePromise, "f");
7134
7244
  }
7245
+ /**
7246
+ * @category User Profile
7247
+ */
7135
7248
  getProfile() {
7136
7249
  return __classPrivateFieldGet(this, _MedplumClient_profile, "f");
7137
7250
  }
7251
+ /**
7252
+ * @category User Profile
7253
+ */
7138
7254
  getProfileAsync() {
7139
7255
  return __awaiter(this, void 0, void 0, function* () {
7140
7256
  if (__classPrivateFieldGet(this, _MedplumClient_profilePromise, "f")) {
@@ -7143,11 +7259,16 @@ class MedplumClient extends EventTarget {
7143
7259
  return this.getProfile();
7144
7260
  });
7145
7261
  }
7262
+ /**
7263
+ * @category User Profile
7264
+ */
7146
7265
  getUserConfiguration() {
7147
7266
  return __classPrivateFieldGet(this, _MedplumClient_config, "f");
7148
7267
  }
7149
7268
  /**
7150
7269
  * Downloads the URL as a blob.
7270
+ *
7271
+ * @category Read
7151
7272
  * @param url The URL to request.
7152
7273
  * @returns Promise to the response body as a blob.
7153
7274
  */
@@ -7188,6 +7309,7 @@ class MedplumClient extends EventTarget {
7188
7309
  /**
7189
7310
  * Starts a new OAuth2 client credentials flow.
7190
7311
  * See: https://datatracker.ietf.org/doc/html/rfc6749#section-4.4
7312
+ * @category Authentication
7191
7313
  * @param clientId The client ID.
7192
7314
  * @param clientSecret The client secret.
7193
7315
  * @returns Promise that resolves to the client profile.
@@ -7395,6 +7517,7 @@ _MedplumClient_fetch = new WeakMap(), _MedplumClient_createPdf = new WeakMap(),
7395
7517
  };
7396
7518
  /**
7397
7519
  * Returns the base URL for the current page.
7520
+ * @category HTTP
7398
7521
  */
7399
7522
  function getBaseUrl() {
7400
7523
  return window.location.protocol + '//' + window.location.host + '/';
@@ -10637,5 +10760,5 @@ function simplifyExpression(input) {
10637
10760
  return result;
10638
10761
  }
10639
10762
 
10640
- export { AndAtom, ArithemticOperatorAtom, AsAtom, COMPONENT_SEPARATOR, ConcatAtom, ContainsAtom, DEFAULT_SEARCH_COUNT, DotAtom, EmptySetAtom, EqualsAtom, EquivalentAtom, FIELD_SEPARATOR, FhirPathAtom, FunctionAtom, Hl7Field, Hl7Message, Hl7Segment, InAtom, IndexerAtom, IsAtom, LRUCache, LiteralAtom, MedplumClient, NotEqualsAtom, NotEquivalentAtom, OperationOutcomeError, Operator, OrAtom, PropertyType, ReadablePromise, SEGMENT_SEPARATOR, SearchParameterType, SymbolAtom, UnaryOperatorAtom, UnionAtom, XorAtom, accessDenied, allOk, arrayBufferToBase64, arrayBufferToHex, assertOk, badRequest, booleanToTypedValue, buildTypeName, calculateAge, calculateAgeString, capitalize, createReference, createSchema, createTypeSchema, created, deepEquals$1 as deepEquals, evalFhirPath, evalFhirPathTyped, fhirPathArrayEquals, fhirPathArrayEquivalent, fhirPathEquals, fhirPathEquivalent, fhirPathIs, fhirPathNot, findObservationInterval, formatAddress, formatFamilyName, formatGivenName, formatHumanName, formatSearchQuery, getCodeBySystem, getDateProperty, getDisplayString, getExpressionForResourceType, getExtensionValue, getIdentifier, getImageSrc, getPropertyDisplayName, getQuestionnaireAnswers, getReferenceString, getSearchParameterDetails, getStatus, getTypedPropertyValue, globalSchema, gone, indexSearchParameter, indexStructureDefinition, indexStructureDefinitionBundle, isGone, isLowerCase, isNotFound, isObject$1 as isObject, isOk, isPeriod, isProfileResource, isQuantity, isQuantityEquivalent, isStringArray, isUUID, matchesRange, notFound, notModified, parseFhirPath, parseSearchDefinition, preciseEquals, preciseGreaterThan, preciseGreaterThanOrEquals, preciseLessThan, preciseLessThanOrEquals, removeDuplicates, resolveId, setCodeBySystem, stringify, toJsBoolean, toTypedValue, tokenize };
10763
+ export { AndAtom, ArithemticOperatorAtom, AsAtom, COMPONENT_SEPARATOR, ConcatAtom, ContainsAtom, DEFAULT_SEARCH_COUNT, DotAtom, EmptySetAtom, EqualsAtom, EquivalentAtom, FIELD_SEPARATOR, FhirPathAtom, FunctionAtom, Hl7Field, Hl7Message, Hl7Segment, InAtom, IndexerAtom, IsAtom, LRUCache, LiteralAtom, MedplumClient, NotEqualsAtom, NotEquivalentAtom, OperationOutcomeError, Operator, OrAtom, PropertyType, ReadablePromise, SEGMENT_SEPARATOR, SearchParameterType, SymbolAtom, UnaryOperatorAtom, UnionAtom, XorAtom, accessDenied, allOk, arrayBufferToBase64, arrayBufferToHex, assertOk, badRequest, booleanToTypedValue, buildTypeName, calculateAge, calculateAgeString, capitalize, createReference, createSchema, createTypeSchema, created, deepEquals$1 as deepEquals, evalFhirPath, evalFhirPathTyped, fhirPathArrayEquals, fhirPathArrayEquivalent, fhirPathEquals, fhirPathEquivalent, fhirPathIs, fhirPathNot, findObservationInterval, findObservationReferenceRange, formatAddress, formatFamilyName, formatGivenName, formatHumanName, formatSearchQuery, getCodeBySystem, getDateProperty, getDisplayString, getExpressionForResourceType, getExtensionValue, getIdentifier, getImageSrc, getPropertyDisplayName, getQuestionnaireAnswers, getReferenceString, getSearchParameterDetails, getStatus, getTypedPropertyValue, globalSchema, gone, indexSearchParameter, indexStructureDefinition, indexStructureDefinitionBundle, isGone, isLowerCase, isNotFound, isObject$1 as isObject, isOk, isPeriod, isProfileResource, isQuantity, isQuantityEquivalent, isStringArray, isUUID, matchesRange, notFound, notModified, parseFhirPath, parseJWTPayload, parseSearchDefinition, preciseEquals, preciseGreaterThan, preciseGreaterThanOrEquals, preciseLessThan, preciseLessThanOrEquals, removeDuplicates, resolveId, setCodeBySystem, stringify, toJsBoolean, toTypedValue, tokenize };
10641
10764
  //# sourceMappingURL=index.js.map