@medplum/core 4.3.2 → 4.3.4
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 +5 -5
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/cjs/index.d.ts +56 -55
- package/dist/esm/index.d.ts +56 -55
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/index.mjs.map +3 -3
- package/package.json +3 -3
package/dist/cjs/index.d.ts
CHANGED
|
@@ -693,7 +693,7 @@ export declare interface CreatePdfFunction {
|
|
|
693
693
|
*/
|
|
694
694
|
export declare interface CreatePdfOptions extends Omit<CreateBinaryOptions, 'data' | 'contentType'> {
|
|
695
695
|
/**
|
|
696
|
-
* The PDF document definition. See https://pdfmake.github.io/docs/0.1/document-definition-object/
|
|
696
|
+
* The PDF document definition. See {@link https://pdfmake.github.io/docs/0.1/document-definition-object/}
|
|
697
697
|
*/
|
|
698
698
|
readonly docDefinition: TDocumentDefinitions;
|
|
699
699
|
/**
|
|
@@ -2996,8 +2996,6 @@ export declare function matchesRange(value: number, range: Range_2, precision?:
|
|
|
2996
2996
|
*/
|
|
2997
2997
|
export declare function matchesSearchRequest(resource: Resource, searchRequest: SearchRequest): boolean;
|
|
2998
2998
|
|
|
2999
|
-
export declare function matchesStringValue(resourceValue: unknown, filterValue: string, asToken?: boolean): boolean;
|
|
3000
|
-
|
|
3001
2999
|
export declare const MEDPLUM_CLI_CLIENT_ID = "medplum-cli";
|
|
3002
3000
|
|
|
3003
3001
|
export declare const MEDPLUM_RELEASES_URL = "https://meta.medplum.com/releases";
|
|
@@ -3018,7 +3016,7 @@ export declare const MEDPLUM_VERSION: string;
|
|
|
3018
3016
|
* 6. Searching
|
|
3019
3017
|
* 7. Making GraphQL queries
|
|
3020
3018
|
*
|
|
3021
|
-
* The client can also be used to integrate with other FHIR servers. For an example, see the
|
|
3019
|
+
* The client can also be used to integrate with other FHIR servers. For an example, see the {@link https://github.com/medplum/medplum/tree/main/examples/medplum-demo-bots/src/epic | Epic Connection Demo Bot}.
|
|
3022
3020
|
*
|
|
3023
3021
|
* @example
|
|
3024
3022
|
* Here is a quick example of how to use the client:
|
|
@@ -3289,7 +3287,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3289
3287
|
/**
|
|
3290
3288
|
* Tries to sign in with Google authentication.
|
|
3291
3289
|
* The response parameter is the result of a Google authentication.
|
|
3292
|
-
* See
|
|
3290
|
+
* See {@link https://developers.google.com/identity/gsi/web/guides/handle-credential-responses-js-functions | Google Sign-In Credential Response} for full details.
|
|
3293
3291
|
* @category Authentication
|
|
3294
3292
|
* @param loginRequest - Login request including Google credential response.
|
|
3295
3293
|
* @param options - Optional fetch options.
|
|
@@ -3415,7 +3413,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3415
3413
|
* const patients = medplum.search('Patient', '_summary=count');
|
|
3416
3414
|
* ```
|
|
3417
3415
|
*
|
|
3418
|
-
* See
|
|
3416
|
+
* See {@link https://www.hl7.org/fhir/search.html | FHIR search} for full details.
|
|
3419
3417
|
* @category Search
|
|
3420
3418
|
* @param resourceType - The FHIR resource type.
|
|
3421
3419
|
* @param query - Optional FHIR search query or structured query object. Can be any valid input to the URLSearchParams() constructor.
|
|
@@ -3438,7 +3436,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3438
3436
|
*
|
|
3439
3437
|
* The return value is the resource, if available; otherwise, undefined.
|
|
3440
3438
|
*
|
|
3441
|
-
* See
|
|
3439
|
+
* See {@link https://www.hl7.org/fhir/search.html | FHIR search} for full details.
|
|
3442
3440
|
* @category Search
|
|
3443
3441
|
* @param resourceType - The FHIR resource type.
|
|
3444
3442
|
* @param query - Optional FHIR search query or structured query object. Can be any valid input to the URLSearchParams() constructor.
|
|
@@ -3461,7 +3459,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3461
3459
|
*
|
|
3462
3460
|
* The return value is an array of resources.
|
|
3463
3461
|
*
|
|
3464
|
-
* See
|
|
3462
|
+
* See {@link https://www.hl7.org/fhir/search.html | FHIR search} for full details.
|
|
3465
3463
|
* @category Search
|
|
3466
3464
|
* @param resourceType - The FHIR resource type.
|
|
3467
3465
|
* @param query - Optional FHIR search query or structured query object. Can be any valid input to the URLSearchParams() constructor.
|
|
@@ -3471,11 +3469,12 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3471
3469
|
searchResources<RT extends ResourceType>(resourceType: RT, query?: QueryTypes, options?: MedplumRequestOptions): ReadablePromise<ResourceArray<WithId<ExtractResource<RT>>>>;
|
|
3472
3470
|
/**
|
|
3473
3471
|
* Creates an
|
|
3474
|
-
*
|
|
3472
|
+
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AsyncGenerator | async generator}
|
|
3475
3473
|
* over a series of FHIR search requests for paginated search results. Each iteration of the generator yields
|
|
3476
3474
|
* the array of resources on each page. Searches using _offset based pagination are limited to 10,000 records.
|
|
3477
3475
|
* For larger result sets, _cursor based pagination should be used instead.
|
|
3478
|
-
*
|
|
3476
|
+
*
|
|
3477
|
+
* See {@link https://www.medplum.com/docs/search/paginated-search#cursor-based-pagination | the docs} for more information.
|
|
3479
3478
|
*
|
|
3480
3479
|
* @example
|
|
3481
3480
|
*
|
|
@@ -3588,7 +3587,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3588
3587
|
* console.log(history);
|
|
3589
3588
|
* ```
|
|
3590
3589
|
*
|
|
3591
|
-
* See the
|
|
3590
|
+
* See the {@link https://www.hl7.org/fhir/http.html#history | FHIR "history" operation} for full details.
|
|
3592
3591
|
* @category Read
|
|
3593
3592
|
* @param resourceType - The FHIR resource type.
|
|
3594
3593
|
* @param id - The resource ID.
|
|
@@ -3607,7 +3606,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3607
3606
|
* console.log(version);
|
|
3608
3607
|
* ```
|
|
3609
3608
|
*
|
|
3610
|
-
* See the
|
|
3609
|
+
* See the {@link https://www.hl7.org/fhir/http.html#vread | FHIR "vread" operation} for full details.
|
|
3611
3610
|
* @category Read
|
|
3612
3611
|
* @param resourceType - The FHIR resource type.
|
|
3613
3612
|
* @param id - The resource ID.
|
|
@@ -3627,7 +3626,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3627
3626
|
* console.log(bundle);
|
|
3628
3627
|
* ```
|
|
3629
3628
|
*
|
|
3630
|
-
* See the FHIR "patient-everything" operation for full details
|
|
3629
|
+
* See the {@link https://hl7.org/fhir/operation-patient-everything.html | FHIR "patient-everything" operation} for full details.
|
|
3631
3630
|
* @category Read
|
|
3632
3631
|
* @param id - The Patient Id
|
|
3633
3632
|
* @param options - Optional fetch options.
|
|
@@ -3645,9 +3644,9 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3645
3644
|
* console.log(bundle);
|
|
3646
3645
|
* ```
|
|
3647
3646
|
*
|
|
3648
|
-
* See
|
|
3647
|
+
* See the {@link https://build.fhir.org/ig/HL7/fhir-ips/index.html | International Patient Summary Implementation Guide} for full details.
|
|
3649
3648
|
*
|
|
3650
|
-
* See
|
|
3649
|
+
* See the {@link https://build.fhir.org/ig/HL7/fhir-ips/OperationDefinition-summary.html | Patient summary operation} for full details.
|
|
3651
3650
|
*
|
|
3652
3651
|
* @param id - The Patient ID.
|
|
3653
3652
|
* @param options - Optional fetch options.
|
|
@@ -3673,7 +3672,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3673
3672
|
* console.log(result.id);
|
|
3674
3673
|
* ```
|
|
3675
3674
|
*
|
|
3676
|
-
* See the
|
|
3675
|
+
* See the {@link https://www.hl7.org/fhir/http.html#create | FHIR "create" operation} for full details.
|
|
3677
3676
|
* @category Create
|
|
3678
3677
|
* @param resource - The FHIR resource to create.
|
|
3679
3678
|
* @param options - Optional fetch options.
|
|
@@ -3714,7 +3713,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3714
3713
|
*
|
|
3715
3714
|
* The query parameter only contains the search parameters (what would be in the URL following the "?").
|
|
3716
3715
|
*
|
|
3717
|
-
* See the FHIR "conditional create" operation for full details
|
|
3716
|
+
* See the {@link https://www.hl7.org/fhir/http.html#create | FHIR "conditional create" operation} for full details.
|
|
3718
3717
|
* @category Create
|
|
3719
3718
|
* @param resource - The FHIR resource to create.
|
|
3720
3719
|
* @param query - The search query for an equivalent resource (should not include resource type or "?").
|
|
@@ -3748,7 +3747,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3748
3747
|
* console.log(result);
|
|
3749
3748
|
* ```
|
|
3750
3749
|
*
|
|
3751
|
-
* See the
|
|
3750
|
+
* See the {@link https://www.hl7.org/fhir/http.html#create | FHIR "create" operation} for full details.
|
|
3752
3751
|
* @category Create
|
|
3753
3752
|
* @param createBinaryOptions -The binary options. See `CreateBinaryOptions` for full details.
|
|
3754
3753
|
* @param requestOptions - Optional fetch options. **NOTE:** only `options.signal` is respected when `onProgress` is also provided.
|
|
@@ -3783,7 +3782,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3783
3782
|
* console.log(result.id);
|
|
3784
3783
|
* ```
|
|
3785
3784
|
*
|
|
3786
|
-
* See the
|
|
3785
|
+
* See the {@link https://www.hl7.org/fhir/http.html#create | FHIR "create" operation} for full details.
|
|
3787
3786
|
*
|
|
3788
3787
|
* @category Create
|
|
3789
3788
|
* @param createBinaryOptions -The binary options. See `CreateBinaryOptions` for full details.
|
|
@@ -3820,7 +3819,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3820
3819
|
* console.log(result.id);
|
|
3821
3820
|
* ```
|
|
3822
3821
|
*
|
|
3823
|
-
* See the
|
|
3822
|
+
* See the {@link https://pdfmake.github.io/docs/0.1/document-definition-object/ | pdfmake document definition} for full details.
|
|
3824
3823
|
* @category Media
|
|
3825
3824
|
* @param createPdfOptions - The PDF creation options. See `CreatePdfOptions` for full details.
|
|
3826
3825
|
* @param requestOptions - Optional fetch options.
|
|
@@ -3868,7 +3867,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3868
3867
|
* console.log(result.meta.versionId);
|
|
3869
3868
|
* ```
|
|
3870
3869
|
*
|
|
3871
|
-
* See the
|
|
3870
|
+
* See the {@link https://www.hl7.org/fhir/http.html#update | FHIR "update" operation} for full details.
|
|
3872
3871
|
* @category Write
|
|
3873
3872
|
* @param resource - The FHIR resource to update.
|
|
3874
3873
|
* @param options - Optional fetch options.
|
|
@@ -3890,9 +3889,9 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3890
3889
|
* console.log(result.meta.versionId);
|
|
3891
3890
|
* ```
|
|
3892
3891
|
*
|
|
3893
|
-
* See the
|
|
3892
|
+
* See the {@link https://www.hl7.org/fhir/http.html#patch | FHIR "update" operation} for full details.
|
|
3894
3893
|
*
|
|
3895
|
-
* See the
|
|
3894
|
+
* See the {@link https://tools.ietf.org/html/rfc6902 | JSONPatch specification} for full details.
|
|
3896
3895
|
* @category Write
|
|
3897
3896
|
* @param resourceType - The FHIR resource type.
|
|
3898
3897
|
* @param id - The resource ID.
|
|
@@ -3911,7 +3910,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3911
3910
|
* await medplum.deleteResource('Patient', '123');
|
|
3912
3911
|
* ```
|
|
3913
3912
|
*
|
|
3914
|
-
* See the
|
|
3913
|
+
* See the {@link https://www.hl7.org/fhir/http.html#delete | FHIR "delete" operation} for full details.
|
|
3915
3914
|
* @category Delete
|
|
3916
3915
|
* @param resourceType - The FHIR resource type.
|
|
3917
3916
|
* @param id - The resource ID.
|
|
@@ -3932,7 +3931,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3932
3931
|
* });
|
|
3933
3932
|
* ```
|
|
3934
3933
|
*
|
|
3935
|
-
* See the
|
|
3934
|
+
* See the {@link https://www.hl7.org/fhir/resource-operation-validate.html | FHIR "$validate" operation} for full details.
|
|
3936
3935
|
* @param resource - The FHIR resource.
|
|
3937
3936
|
* @param options - Optional fetch options.
|
|
3938
3937
|
* @returns The validate operation outcome.
|
|
@@ -3990,7 +3989,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
3990
3989
|
* });
|
|
3991
3990
|
* ```
|
|
3992
3991
|
*
|
|
3993
|
-
* See
|
|
3992
|
+
* See the {@link https://hl7.org/fhir/http.html#transaction | FHIR "batch/transaction" section} for full details.
|
|
3994
3993
|
* @category Batch
|
|
3995
3994
|
* @param bundle - The FHIR batch/transaction bundle.
|
|
3996
3995
|
* @param options - Optional fetch options.
|
|
@@ -4031,7 +4030,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
4031
4030
|
* });
|
|
4032
4031
|
* ```
|
|
4033
4032
|
*
|
|
4034
|
-
* See
|
|
4033
|
+
* See the {@link https://nodemailer.com/extras/mailcomposer/ | nodemailer MailComposer options} for full details.
|
|
4035
4034
|
* @category Media
|
|
4036
4035
|
* @param email - The MailComposer options.
|
|
4037
4036
|
* @param options - Optional fetch options.
|
|
@@ -4077,9 +4076,9 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
4077
4076
|
* );
|
|
4078
4077
|
* ```
|
|
4079
4078
|
*
|
|
4080
|
-
* See the GraphQL documentation for more details
|
|
4079
|
+
* See the {@link https://graphql.org/learn/ | GraphQL documentation} for more details.
|
|
4081
4080
|
*
|
|
4082
|
-
* See the FHIR GraphQL documentation for FHIR specific details
|
|
4081
|
+
* See the {@link https://www.hl7.org/fhir/graphql.html | FHIR GraphQL documentation} for FHIR specific details.
|
|
4083
4082
|
* @category Read
|
|
4084
4083
|
* @param query - The GraphQL query.
|
|
4085
4084
|
* @param operationName - Optional GraphQL operation name.
|
|
@@ -4245,17 +4244,19 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
4245
4244
|
*/
|
|
4246
4245
|
createDocumentReference(createDocumentReferenceOptions: CreateDocumentReferenceOptions, requestOptions?: MedplumRequestOptions): Promise<DocumentReference>;
|
|
4247
4246
|
/**
|
|
4248
|
-
* Performs Bulk Data Export operation request flow. See
|
|
4247
|
+
* Performs Bulk Data Export operation request flow. See the {@link https://build.fhir.org/ig/HL7/bulk-data/export.html#bulk-data-export | FHIR "Bulk Data Export"} for full details.
|
|
4249
4248
|
* @param exportLevel - Optional export level. Defaults to system level export. 'Group/:id' - Group of Patients, 'Patient' - All Patients.
|
|
4250
4249
|
* @param resourceTypes - A string of comma-delimited FHIR resource types.
|
|
4251
4250
|
* @param since - Resources will be included in the response if their state has changed after the supplied time (e.g. if Resource.meta.lastUpdated is later than the supplied _since time).
|
|
4252
4251
|
* @param options - Optional fetch options.
|
|
4253
|
-
* @returns Bulk Data Response containing links to Bulk Data files. See
|
|
4252
|
+
* @returns Bulk Data Response containing links to Bulk Data files. See the {@link https://build.fhir.org/ig/HL7/bulk-data/export.html#response---complete-status | "Response - Complete Status"} for full details.
|
|
4254
4253
|
*/
|
|
4255
4254
|
bulkExport(exportLevel?: string, resourceTypes?: string, since?: string, options?: MedplumRequestOptions): Promise<Partial<BulkDataExport>>;
|
|
4256
4255
|
/**
|
|
4257
4256
|
* Starts an async request following the FHIR "Asynchronous Request Pattern".
|
|
4258
|
-
*
|
|
4257
|
+
*
|
|
4258
|
+
* See the {@link https://hl7.org/fhir/r4/async.html | FHIR "Asynchronous Request Pattern"} for full details.
|
|
4259
|
+
*
|
|
4259
4260
|
* @param url - The URL to request.
|
|
4260
4261
|
* @param options - Optional fetch options.
|
|
4261
4262
|
* @returns The response body.
|
|
@@ -4408,7 +4409,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
4408
4409
|
* await medplum.searchResources('Patient')
|
|
4409
4410
|
* ```
|
|
4410
4411
|
*
|
|
4411
|
-
* See
|
|
4412
|
+
* See {@link https://datatracker.ietf.org/doc/html/rfc6749#section-4.4 | RFC 6749 Section 4.4} for full details.
|
|
4412
4413
|
*
|
|
4413
4414
|
* @category Authentication
|
|
4414
4415
|
* @param clientId - The client ID.
|
|
@@ -4426,7 +4427,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
4426
4427
|
* await medplum.searchResources('Patient')
|
|
4427
4428
|
* ```
|
|
4428
4429
|
*
|
|
4429
|
-
* See
|
|
4430
|
+
* See {@link https://datatracker.ietf.org/doc/html/rfc7523#section-2.1 | RFC 7523 Section 2.1} for full details.
|
|
4430
4431
|
*
|
|
4431
4432
|
* @category Authentication
|
|
4432
4433
|
* @param clientId - The client ID.
|
|
@@ -4438,7 +4439,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
4438
4439
|
/**
|
|
4439
4440
|
* Starts a new OAuth2 JWT assertion flow.
|
|
4440
4441
|
*
|
|
4441
|
-
* See
|
|
4442
|
+
* See {@link https://datatracker.ietf.org/doc/html/rfc7523#section-2.2 | RFC 7523 Section 2.2} for full details.
|
|
4442
4443
|
*
|
|
4443
4444
|
* @category Authentication
|
|
4444
4445
|
* @param jwt - The JWT assertion.
|
|
@@ -4516,7 +4517,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
4516
4517
|
invite(projectId: string, body: InviteRequest): Promise<ProjectMembership | OperationOutcome>;
|
|
4517
4518
|
/**
|
|
4518
4519
|
* Makes a POST request to the tokens endpoint.
|
|
4519
|
-
* See
|
|
4520
|
+
* See {@link https://openid.net/specs/openid-connect-core-1_0.html#TokenEndpoint | OpenID Connect Core 1.0 TokenEndpoint} for full details.
|
|
4520
4521
|
* @param params - Token parameters.
|
|
4521
4522
|
* @returns The user profile resource.
|
|
4522
4523
|
*/
|
|
@@ -4524,7 +4525,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
|
|
|
4524
4525
|
/**
|
|
4525
4526
|
* Verifies the tokens received from the auth server.
|
|
4526
4527
|
* Validates the JWT against the JWKS.
|
|
4527
|
-
* See
|
|
4528
|
+
* See {@link https://openid.net/specs/openid-connect-core-1_0.html#TokenEndpoint | OpenID Connect Core 1.0 TokenEndpoint} for full details.
|
|
4528
4529
|
* @param tokens - The token response.
|
|
4529
4530
|
* @returns Promise to complete.
|
|
4530
4531
|
*/
|
|
@@ -4639,7 +4640,7 @@ export declare interface MedplumClientOptions {
|
|
|
4639
4640
|
/**
|
|
4640
4641
|
* Base server URL.
|
|
4641
4642
|
*
|
|
4642
|
-
* Default value is https://api.medplum.com
|
|
4643
|
+
* Default value is `https://api.medplum.com/`
|
|
4643
4644
|
*
|
|
4644
4645
|
* Use this to point to a custom Medplum deployment.
|
|
4645
4646
|
*/
|
|
@@ -4647,7 +4648,7 @@ export declare interface MedplumClientOptions {
|
|
|
4647
4648
|
/**
|
|
4648
4649
|
* OAuth2 authorize URL.
|
|
4649
4650
|
*
|
|
4650
|
-
* Default value is baseUrl + "/oauth2/authorize"
|
|
4651
|
+
* Default value is `baseUrl + "/oauth2/authorize"`.
|
|
4651
4652
|
*
|
|
4652
4653
|
* Can be specified as absolute URL or relative to baseUrl.
|
|
4653
4654
|
*
|
|
@@ -4657,7 +4658,7 @@ export declare interface MedplumClientOptions {
|
|
|
4657
4658
|
/**
|
|
4658
4659
|
* FHIR URL path.
|
|
4659
4660
|
*
|
|
4660
|
-
* Default value is
|
|
4661
|
+
* Default value is `fhir/R4/`.
|
|
4661
4662
|
*
|
|
4662
4663
|
* Can be specified as absolute URL or relative to baseUrl.
|
|
4663
4664
|
*
|
|
@@ -4667,7 +4668,7 @@ export declare interface MedplumClientOptions {
|
|
|
4667
4668
|
/**
|
|
4668
4669
|
* OAuth2 token URL.
|
|
4669
4670
|
*
|
|
4670
|
-
* Default value is baseUrl + "/oauth2/token"
|
|
4671
|
+
* Default value is `baseUrl + "/oauth2/token"`.
|
|
4671
4672
|
*
|
|
4672
4673
|
* Can be specified as absolute URL or relative to baseUrl.
|
|
4673
4674
|
*
|
|
@@ -4677,7 +4678,7 @@ export declare interface MedplumClientOptions {
|
|
|
4677
4678
|
/**
|
|
4678
4679
|
* OAuth2 logout URL.
|
|
4679
4680
|
*
|
|
4680
|
-
* Default value is baseUrl + "/oauth2/logout"
|
|
4681
|
+
* Default value is `baseUrl + "/oauth2/logout"`.
|
|
4681
4682
|
*
|
|
4682
4683
|
* Can be specified as absolute URL or relative to baseUrl.
|
|
4683
4684
|
*
|
|
@@ -4721,7 +4722,7 @@ export declare interface MedplumClientOptions {
|
|
|
4721
4722
|
/**
|
|
4722
4723
|
* Number of resources to store in the cache.
|
|
4723
4724
|
*
|
|
4724
|
-
* Default value is 1000
|
|
4725
|
+
* Default value is `1000`.
|
|
4725
4726
|
*
|
|
4726
4727
|
* Consider using this for performance of displaying Patient or Practitioner resources.
|
|
4727
4728
|
*/
|
|
@@ -4729,13 +4730,13 @@ export declare interface MedplumClientOptions {
|
|
|
4729
4730
|
/**
|
|
4730
4731
|
* The length of time in milliseconds to cache resources.
|
|
4731
4732
|
*
|
|
4732
|
-
* Default value is 60000 (60 seconds).
|
|
4733
|
+
* Default value is `60000` (60 seconds).
|
|
4733
4734
|
*
|
|
4734
4735
|
* Cache time of zero disables all caching.
|
|
4735
4736
|
*
|
|
4736
4737
|
* For any individual request, the cache behavior can be overridden by setting the cache property on request options.
|
|
4737
4738
|
*
|
|
4738
|
-
* See: https://developer.mozilla.org/en-US/docs/Web/API/Request/cache
|
|
4739
|
+
* See: {@link https://developer.mozilla.org/en-US/docs/Web/API/Request/cache}
|
|
4739
4740
|
*/
|
|
4740
4741
|
cacheTime?: number;
|
|
4741
4742
|
/**
|
|
@@ -4743,7 +4744,7 @@ export declare interface MedplumClientOptions {
|
|
|
4743
4744
|
*
|
|
4744
4745
|
* Auto batching attempts to group multiple requests together into a single batch request.
|
|
4745
4746
|
*
|
|
4746
|
-
* Default value is 0
|
|
4747
|
+
* Default value is `0`, which disables auto batching.
|
|
4747
4748
|
*/
|
|
4748
4749
|
autoBatchTime?: number;
|
|
4749
4750
|
/**
|
|
@@ -4751,13 +4752,13 @@ export declare interface MedplumClientOptions {
|
|
|
4751
4752
|
*
|
|
4752
4753
|
* This is the amount of time before the access token expires that the client will attempt to refresh the token.
|
|
4753
4754
|
*
|
|
4754
|
-
* Default value is 300000 (5 minutes).
|
|
4755
|
+
* Default value is `300000` (5 minutes).
|
|
4755
4756
|
*/
|
|
4756
4757
|
refreshGracePeriod?: number;
|
|
4757
4758
|
/**
|
|
4758
4759
|
* Fetch implementation.
|
|
4759
4760
|
*
|
|
4760
|
-
* Default is window.fetch (if available).
|
|
4761
|
+
* Default is `window.fetch` (if available).
|
|
4761
4762
|
*
|
|
4762
4763
|
* For Node.js applications, consider the 'node-fetch' package.
|
|
4763
4764
|
*/
|
|
@@ -4765,7 +4766,7 @@ export declare interface MedplumClientOptions {
|
|
|
4765
4766
|
/**
|
|
4766
4767
|
* Storage implementation.
|
|
4767
4768
|
*
|
|
4768
|
-
* Default is window.localStorage (if available), this is the common implementation for use in the browser, or an in-memory storage implementation. If using Medplum on a server it may be useful to provide a custom storage implementation, for example using redis, a database or a file based storage. Medplum CLI is an an example of `FileSystemStorage`, for reference.
|
|
4769
|
+
* Default is `window.localStorage` (if available), this is the common implementation for use in the browser, or an in-memory storage implementation. If using Medplum on a server it may be useful to provide a custom storage implementation, for example using redis, a database or a file based storage. Medplum CLI is an an example of `FileSystemStorage`, for reference.
|
|
4769
4770
|
*/
|
|
4770
4771
|
storage?: IClientStorage;
|
|
4771
4772
|
/**
|
|
@@ -5189,7 +5190,7 @@ export declare const notModified: OperationOutcome;
|
|
|
5189
5190
|
|
|
5190
5191
|
/**
|
|
5191
5192
|
* OAuth 2.0 Client Authentication Methods
|
|
5192
|
-
* See
|
|
5193
|
+
* See {@link https://datatracker.ietf.org/doc/html/rfc7523#section-2.2 | RFC 7523 Section 2.2} for full details.
|
|
5193
5194
|
*/
|
|
5194
5195
|
export declare const OAuthClientAssertionType: {
|
|
5195
5196
|
/** Using JWTs for Client Authentication */
|
|
@@ -5200,9 +5201,9 @@ export declare type OAuthClientAssertionType = (typeof OAuthClientAssertionType)
|
|
|
5200
5201
|
|
|
5201
5202
|
/**
|
|
5202
5203
|
* OAuth 2.0 Grant Type Identifiers
|
|
5203
|
-
* Standard identifiers: https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1-07#name-grant-types
|
|
5204
|
-
* JWT bearer extension: https://datatracker.ietf.org/doc/html/rfc7523
|
|
5205
|
-
* Token exchange extension: https://datatracker.ietf.org/doc/html/rfc8693
|
|
5204
|
+
* Standard identifiers: {@link https://datatracker.ietf.org/doc/html/draft-ietf-oauth-v2-1-07#name-grant-types}
|
|
5205
|
+
* JWT bearer extension: {@link https://datatracker.ietf.org/doc/html/rfc7523}
|
|
5206
|
+
* Token exchange extension: {@link https://datatracker.ietf.org/doc/html/rfc8693}
|
|
5206
5207
|
*/
|
|
5207
5208
|
export declare const OAuthGrantType: {
|
|
5208
5209
|
readonly ClientCredentials: "client_credentials";
|
|
@@ -5230,7 +5231,7 @@ export declare type OAuthTokenAuthMethod = (typeof OAuthTokenAuthMethod)[keyof t
|
|
|
5230
5231
|
|
|
5231
5232
|
/**
|
|
5232
5233
|
* OAuth 2.0 Token Type Identifiers
|
|
5233
|
-
* See
|
|
5234
|
+
* See {@link https://datatracker.ietf.org/doc/html/rfc8693#name-token-type-identifiers | RFC 8693 Section 3.1} for full details.
|
|
5234
5235
|
*/
|
|
5235
5236
|
export declare const OAuthTokenType: {
|
|
5236
5237
|
/** Indicates that the token is an OAuth 2.0 access token issued by the given authorization server. */
|
|
@@ -6510,7 +6511,7 @@ export declare type ValueOrExternalSecret<T extends ExternalSecretPrimitive> = T
|
|
|
6510
6511
|
|
|
6511
6512
|
/**
|
|
6512
6513
|
* ValueSet $expand operation parameters.
|
|
6513
|
-
* See
|
|
6514
|
+
* See {@link https://hl7.org/fhir/r4/valueset-operation-expand.html | FHIR ValueSet $expand Operation Parameters} for full details.
|
|
6514
6515
|
*/
|
|
6515
6516
|
export declare interface ValueSetExpandParams {
|
|
6516
6517
|
url?: string;
|