@medplum/core 0.9.33 → 0.9.34
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/client.d.ts +13 -1
- package/dist/cjs/index.js +15 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.min.js +1 -1
- package/dist/cjs/index.min.js.map +1 -1
- package/dist/esm/client.d.ts +13 -1
- package/dist/esm/client.js +15 -1
- package/dist/esm/client.js.map +1 -1
- package/dist/esm/index.min.js +1 -1
- package/dist/esm/index.min.js.map +1 -1
- package/package.json +3 -3
package/dist/cjs/client.d.ts
CHANGED
|
@@ -618,7 +618,7 @@ export declare class MedplumClient extends EventTarget {
|
|
|
618
618
|
*
|
|
619
619
|
* See the FHIR "read" operation for full details: https://www.hl7.org/fhir/http.html#read
|
|
620
620
|
*
|
|
621
|
-
* @category
|
|
621
|
+
* @category Read
|
|
622
622
|
* @param resourceType The FHIR resource type.
|
|
623
623
|
* @param id The resource ID.
|
|
624
624
|
* @returns The resource if available; undefined otherwise.
|
|
@@ -1037,6 +1037,18 @@ export declare class MedplumClient extends EventTarget {
|
|
|
1037
1037
|
* @returns The GraphQL result.
|
|
1038
1038
|
*/
|
|
1039
1039
|
graphql(query: string, operationName?: string | null, variables?: any, options?: RequestInit): Promise<any>;
|
|
1040
|
+
/**
|
|
1041
|
+
*
|
|
1042
|
+
* Executes the $graph operation on this resource to fetch a Bundle of resources linked to the target resource
|
|
1043
|
+
* according to a graph definition
|
|
1044
|
+
|
|
1045
|
+
* @category Read
|
|
1046
|
+
* @param resourceType The FHIR resource type.
|
|
1047
|
+
* @param id The resource ID.
|
|
1048
|
+
* @param graphName `name` parameter of the GraphDefinition
|
|
1049
|
+
* @returns A Bundle
|
|
1050
|
+
*/
|
|
1051
|
+
readResourceGraph<K extends ResourceType>(resourceType: K, id: string, graphName: string): ReadablePromise<Bundle<Resource>>;
|
|
1040
1052
|
/**
|
|
1041
1053
|
* @category Authentication
|
|
1042
1054
|
* @returns The Login State
|
package/dist/cjs/index.js
CHANGED
|
@@ -6767,7 +6767,7 @@
|
|
|
6767
6767
|
*
|
|
6768
6768
|
* See the FHIR "read" operation for full details: https://www.hl7.org/fhir/http.html#read
|
|
6769
6769
|
*
|
|
6770
|
-
* @category
|
|
6770
|
+
* @category Read
|
|
6771
6771
|
* @param resourceType The FHIR resource type.
|
|
6772
6772
|
* @param id The resource ID.
|
|
6773
6773
|
* @returns The resource if available; undefined otherwise.
|
|
@@ -7322,6 +7322,20 @@
|
|
|
7322
7322
|
graphql(query, operationName, variables, options) {
|
|
7323
7323
|
return this.post(this.fhirUrl('$graphql'), { query, operationName, variables }, JSON_CONTENT_TYPE, options);
|
|
7324
7324
|
}
|
|
7325
|
+
/**
|
|
7326
|
+
*
|
|
7327
|
+
* Executes the $graph operation on this resource to fetch a Bundle of resources linked to the target resource
|
|
7328
|
+
* according to a graph definition
|
|
7329
|
+
|
|
7330
|
+
* @category Read
|
|
7331
|
+
* @param resourceType The FHIR resource type.
|
|
7332
|
+
* @param id The resource ID.
|
|
7333
|
+
* @param graphName `name` parameter of the GraphDefinition
|
|
7334
|
+
* @returns A Bundle
|
|
7335
|
+
*/
|
|
7336
|
+
readResourceGraph(resourceType, id, graphName) {
|
|
7337
|
+
return this.get(`${this.fhirUrl(resourceType, id)}/$graph?graph=${graphName}`);
|
|
7338
|
+
}
|
|
7325
7339
|
/**
|
|
7326
7340
|
* @category Authentication
|
|
7327
7341
|
* @returns The Login State
|