@medplum/fhir-router 4.3.12 → 4.3.14
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 +12 -12
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/cjs/index.d.ts +6 -1
- package/dist/esm/index.d.ts +6 -1
- package/dist/esm/index.mjs +12 -12
- package/dist/esm/index.mjs.map +3 -3
- package/package.json +4 -4
package/dist/cjs/index.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ export declare abstract class FhirRepository<TClient = unknown> {
|
|
|
99
99
|
* @param id - The FHIR resource ID.
|
|
100
100
|
* @returns Operation outcome and a history bundle.
|
|
101
101
|
*/
|
|
102
|
-
abstract readHistory<T extends Resource>(resourceType: string, id: string): Promise<Bundle<WithId<T>>>;
|
|
102
|
+
abstract readHistory<T extends Resource>(resourceType: string, id: string, options?: ReadHistoryOptions): Promise<Bundle<WithId<T>>>;
|
|
103
103
|
/**
|
|
104
104
|
* Reads a FHIR resource version.
|
|
105
105
|
*
|
|
@@ -281,6 +281,11 @@ export declare type PathSegment = {
|
|
|
281
281
|
*/
|
|
282
282
|
export declare function processBatch(req: FhirRequest, repo: FhirRepository, router: FhirRouter, bundle: Bundle): Promise<Bundle>;
|
|
283
283
|
|
|
284
|
+
export declare type ReadHistoryOptions = {
|
|
285
|
+
offset?: number;
|
|
286
|
+
limit?: number;
|
|
287
|
+
};
|
|
288
|
+
|
|
284
289
|
export declare const RepositoryMode: {
|
|
285
290
|
readonly READER: "reader";
|
|
286
291
|
readonly WRITER: "writer";
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ export declare abstract class FhirRepository<TClient = unknown> {
|
|
|
99
99
|
* @param id - The FHIR resource ID.
|
|
100
100
|
* @returns Operation outcome and a history bundle.
|
|
101
101
|
*/
|
|
102
|
-
abstract readHistory<T extends Resource>(resourceType: string, id: string): Promise<Bundle<WithId<T>>>;
|
|
102
|
+
abstract readHistory<T extends Resource>(resourceType: string, id: string, options?: ReadHistoryOptions): Promise<Bundle<WithId<T>>>;
|
|
103
103
|
/**
|
|
104
104
|
* Reads a FHIR resource version.
|
|
105
105
|
*
|
|
@@ -281,6 +281,11 @@ export declare type PathSegment = {
|
|
|
281
281
|
*/
|
|
282
282
|
export declare function processBatch(req: FhirRequest, repo: FhirRepository, router: FhirRouter, bundle: Bundle): Promise<Bundle>;
|
|
283
283
|
|
|
284
|
+
export declare type ReadHistoryOptions = {
|
|
285
|
+
offset?: number;
|
|
286
|
+
limit?: number;
|
|
287
|
+
};
|
|
288
|
+
|
|
284
289
|
export declare const RepositoryMode: {
|
|
285
290
|
readonly READER: "reader";
|
|
286
291
|
readonly WRITER: "writer";
|