@medplum/fhir-router 3.2.18 → 3.2.20

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.
@@ -200,12 +200,16 @@ export declare type FhirRequest = {
200
200
  export declare type FhirRequestConfig = {
201
201
  graphqlBatchedSearchSize?: number;
202
202
  graphqlMaxDepth?: number;
203
- graphqlMaxPageSize?: number;
204
203
  graphqlMaxSearches?: number;
204
+ searchOnReader?: boolean;
205
205
  transactions?: boolean;
206
206
  };
207
207
 
208
- export declare type FhirResponse = [OperationOutcome] | [OperationOutcome, Resource];
208
+ export declare type FhirResponse = [OperationOutcome] | [OperationOutcome, Resource] | [OperationOutcome, Resource, FhirResponseOptions];
209
+
210
+ export declare type FhirResponseOptions = {
211
+ contentType?: string;
212
+ };
209
213
 
210
214
  export declare type FhirRouteHandler = (req: FhirRequest, repo: FhirRepository, router: FhirRouter, options?: FhirRouteOptions) => Promise<FhirResponse>;
211
215
 
@@ -200,12 +200,16 @@ export declare type FhirRequest = {
200
200
  export declare type FhirRequestConfig = {
201
201
  graphqlBatchedSearchSize?: number;
202
202
  graphqlMaxDepth?: number;
203
- graphqlMaxPageSize?: number;
204
203
  graphqlMaxSearches?: number;
204
+ searchOnReader?: boolean;
205
205
  transactions?: boolean;
206
206
  };
207
207
 
208
- export declare type FhirResponse = [OperationOutcome] | [OperationOutcome, Resource];
208
+ export declare type FhirResponse = [OperationOutcome] | [OperationOutcome, Resource] | [OperationOutcome, Resource, FhirResponseOptions];
209
+
210
+ export declare type FhirResponseOptions = {
211
+ contentType?: string;
212
+ };
209
213
 
210
214
  export declare type FhirRouteHandler = (req: FhirRequest, repo: FhirRepository, router: FhirRouter, options?: FhirRouteOptions) => Promise<FhirResponse>;
211
215