@medplum/core 2.0.5 → 2.0.7
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 +872 -27
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.min.cjs +1 -1
- package/dist/esm/client.mjs +7 -6
- package/dist/esm/client.mjs.map +1 -1
- package/dist/esm/fhirlexer/tokenize.mjs +13 -4
- package/dist/esm/fhirlexer/tokenize.mjs.map +1 -1
- package/dist/esm/fhirmapper/parse.mjs +317 -0
- package/dist/esm/fhirmapper/parse.mjs.map +1 -0
- package/dist/esm/fhirmapper/tokenize.mjs +15 -0
- package/dist/esm/fhirmapper/tokenize.mjs.map +1 -0
- package/dist/esm/fhirpath/atoms.mjs +2 -2
- package/dist/esm/fhirpath/atoms.mjs.map +1 -1
- package/dist/esm/fhirpath/functions.mjs +2 -2
- package/dist/esm/fhirpath/functions.mjs.map +1 -1
- package/dist/esm/fhirpath/utils.mjs +4 -4
- package/dist/esm/fhirpath/utils.mjs.map +1 -1
- package/dist/esm/filter/parse.mjs +51 -0
- package/dist/esm/filter/parse.mjs.map +1 -0
- package/dist/esm/filter/tokenize.mjs +18 -0
- package/dist/esm/filter/tokenize.mjs.map +1 -0
- package/dist/esm/filter/types.mjs +34 -0
- package/dist/esm/filter/types.mjs.map +1 -0
- package/dist/esm/index.min.mjs +1 -1
- package/dist/esm/index.mjs +8 -2
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/node_modules/tslib/tslib.es6.mjs.map +1 -1
- package/dist/esm/outcomes.mjs +15 -1
- package/dist/esm/outcomes.mjs.map +1 -1
- package/dist/esm/schema.mjs +397 -0
- package/dist/esm/schema.mjs.map +1 -0
- package/dist/esm/search/details.mjs +1 -1
- package/dist/esm/search/details.mjs.map +1 -1
- package/dist/esm/types.mjs +34 -8
- package/dist/esm/types.mjs.map +1 -1
- package/dist/types/client.d.ts +20 -8
- package/dist/types/fhirlexer/tokenize.d.ts +5 -1
- package/dist/types/fhirmapper/index.d.ts +1 -0
- package/dist/types/filter/index.d.ts +2 -0
- package/dist/types/filter/parse.d.ts +7 -0
- package/dist/types/filter/tokenize.d.ts +2 -0
- package/dist/types/filter/types.d.ts +31 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/outcomes.d.ts +1 -0
- package/dist/types/schema.d.ts +120 -0
- package/dist/types/types.d.ts +19 -5
- package/package.json +1 -1
- package/tsconfig.build.json +0 -9
package/dist/esm/client.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import { createReference, arrayBufferToBase64 } from './utils.mjs';
|
|
|
12
12
|
// PKCE auth based on:
|
|
13
13
|
// https://aws.amazon.com/blogs/security/how-to-add-authentication-single-page-web-application-with-amazon-cognito-oauth2-implementation/
|
|
14
14
|
var _MedplumClient_instances, _MedplumClient_fetch, _MedplumClient_createPdf, _MedplumClient_storage, _MedplumClient_requestCache, _MedplumClient_cacheTime, _MedplumClient_baseUrl, _MedplumClient_fhirBaseUrl, _MedplumClient_authorizeUrl, _MedplumClient_tokenUrl, _MedplumClient_logoutUrl, _MedplumClient_onUnauthenticated, _MedplumClient_autoBatchTime, _MedplumClient_autoBatchQueue, _MedplumClient_clientId, _MedplumClient_clientSecret, _MedplumClient_autoBatchTimerId, _MedplumClient_accessToken, _MedplumClient_refreshToken, _MedplumClient_refreshPromise, _MedplumClient_profilePromise, _MedplumClient_profile, _MedplumClient_config, _MedplumClient_addLogin, _MedplumClient_refreshProfile, _MedplumClient_getCacheEntry, _MedplumClient_setCacheEntry, _MedplumClient_cacheResource, _MedplumClient_deleteCacheEntry, _MedplumClient_request, _MedplumClient_fetchWithRetry, _MedplumClient_executeAutoBatch, _MedplumClient_addFetchOptionsDefaults, _MedplumClient_setRequestContentType, _MedplumClient_setRequestBody, _MedplumClient_handleUnauthenticated, _MedplumClient_requestAuthorization, _MedplumClient_refresh, _MedplumClient_fetchTokens, _MedplumClient_verifyTokens, _MedplumClient_setupStorageListener;
|
|
15
|
-
const MEDPLUM_VERSION = "2.0.
|
|
15
|
+
const MEDPLUM_VERSION = "2.0.7-c59953c5";
|
|
16
16
|
const DEFAULT_BASE_URL = 'https://api.medplum.com/';
|
|
17
17
|
const DEFAULT_RESOURCE_CACHE_SIZE = 1000;
|
|
18
18
|
const DEFAULT_CACHE_TIME = 60000; // 60 seconds
|
|
@@ -469,13 +469,14 @@ class MedplumClient extends EventTarget {
|
|
|
469
469
|
* Builds a FHIR search URL from a search query or structured query object.
|
|
470
470
|
* @category HTTP
|
|
471
471
|
* @category Search
|
|
472
|
-
* @param
|
|
472
|
+
* @param resourceType The FHIR resource type.
|
|
473
|
+
* @param query The FHIR search query or structured query object. Can be any valid input to the URLSearchParams() constructor.
|
|
473
474
|
* @returns The well-formed FHIR URL.
|
|
474
475
|
*/
|
|
475
476
|
fhirSearchUrl(resourceType, query) {
|
|
476
477
|
const url = this.fhirUrl(resourceType);
|
|
477
478
|
if (query) {
|
|
478
|
-
url.search = query.toString();
|
|
479
|
+
url.search = new URLSearchParams(query).toString();
|
|
479
480
|
}
|
|
480
481
|
return url;
|
|
481
482
|
}
|
|
@@ -523,7 +524,7 @@ class MedplumClient extends EventTarget {
|
|
|
523
524
|
*
|
|
524
525
|
* @category Search
|
|
525
526
|
* @param resourceType The FHIR resource type.
|
|
526
|
-
* @param query
|
|
527
|
+
* @param query Optional FHIR search query or structured query object. Can be any valid input to the URLSearchParams() constructor.
|
|
527
528
|
* @param options Optional fetch options.
|
|
528
529
|
* @returns Promise to the search result bundle.
|
|
529
530
|
*/
|
|
@@ -564,7 +565,7 @@ class MedplumClient extends EventTarget {
|
|
|
564
565
|
*
|
|
565
566
|
* @category Search
|
|
566
567
|
* @param resourceType The FHIR resource type.
|
|
567
|
-
* @param query
|
|
568
|
+
* @param query Optional FHIR search query or structured query object. Can be any valid input to the URLSearchParams() constructor.
|
|
568
569
|
* @param options Optional fetch options.
|
|
569
570
|
* @returns Promise to the search result bundle.
|
|
570
571
|
*/
|
|
@@ -599,7 +600,7 @@ class MedplumClient extends EventTarget {
|
|
|
599
600
|
*
|
|
600
601
|
* @category Search
|
|
601
602
|
* @param resourceType The FHIR resource type.
|
|
602
|
-
* @param query
|
|
603
|
+
* @param query Optional FHIR search query or structured query object. Can be any valid input to the URLSearchParams() constructor.
|
|
603
604
|
* @param options Optional fetch options.
|
|
604
605
|
* @returns Promise to the search result bundle.
|
|
605
606
|
*/
|