@medplum/core 3.2.24 → 3.2.25

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.
@@ -2807,6 +2807,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
2807
2807
  private readonly tokenUrl;
2808
2808
  private readonly logoutUrl;
2809
2809
  private readonly fhircastHubUrl;
2810
+ private readonly defaultHeaders;
2810
2811
  private readonly onUnauthenticated?;
2811
2812
  private readonly autoBatchTime;
2812
2813
  private readonly autoBatchQueue;
@@ -2877,6 +2878,13 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
2877
2878
  * @returns The current FHIRcast Hub URL.
2878
2879
  */
2879
2880
  getFhircastHubUrl(): string;
2881
+ /**
2882
+ * Returns default headers to include in all requests.
2883
+ * This can be used to set custom headers such as Cookies or Authorization headers.
2884
+ * @category HTTP
2885
+ * @returns Default headers to include in all requests.
2886
+ */
2887
+ getDefaultHeaders(): Record<string, string>;
2880
2888
  /**
2881
2889
  * Clears all auth state including local storage and session storage.
2882
2890
  * @category Authentication
@@ -4513,6 +4521,12 @@ export declare interface MedplumClientOptions {
4513
4521
  * Default is true.
4514
4522
  */
4515
4523
  extendedMode?: boolean;
4524
+ /**
4525
+ * Default headers to include in all requests.
4526
+ * This can be used to set custom headers such as Cookies or Authorization headers.
4527
+ * @default {}
4528
+ */
4529
+ defaultHeaders?: Record<string, string>;
4516
4530
  }
4517
4531
 
4518
4532
  export declare interface MedplumInfraConfig {
@@ -4773,6 +4787,8 @@ export declare class MockAsyncClientStorage extends ClientStorage implements ICl
4773
4787
 
4774
4788
  export declare const multipleMatches: OperationOutcome;
4775
4789
 
4790
+ export declare const NDC = "http://hl7.org/fhir/sid/ndc";
4791
+
4776
4792
  export declare interface NewPatientRequest {
4777
4793
  readonly login: string;
4778
4794
  readonly projectId: string;
@@ -4925,6 +4941,7 @@ export declare enum Operator {
4925
4941
  ENDS_BEFORE = "eb",
4926
4942
  APPROXIMATELY = "ap",
4927
4943
  CONTAINS = "contains",
4944
+ STARTS_WITH = "sw",
4928
4945
  EXACT = "exact",
4929
4946
  TEXT = "text",
4930
4947
  NOT = "not",
@@ -2807,6 +2807,7 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
2807
2807
  private readonly tokenUrl;
2808
2808
  private readonly logoutUrl;
2809
2809
  private readonly fhircastHubUrl;
2810
+ private readonly defaultHeaders;
2810
2811
  private readonly onUnauthenticated?;
2811
2812
  private readonly autoBatchTime;
2812
2813
  private readonly autoBatchQueue;
@@ -2877,6 +2878,13 @@ export declare class MedplumClient extends TypedEventTarget<MedplumClientEventMa
2877
2878
  * @returns The current FHIRcast Hub URL.
2878
2879
  */
2879
2880
  getFhircastHubUrl(): string;
2881
+ /**
2882
+ * Returns default headers to include in all requests.
2883
+ * This can be used to set custom headers such as Cookies or Authorization headers.
2884
+ * @category HTTP
2885
+ * @returns Default headers to include in all requests.
2886
+ */
2887
+ getDefaultHeaders(): Record<string, string>;
2880
2888
  /**
2881
2889
  * Clears all auth state including local storage and session storage.
2882
2890
  * @category Authentication
@@ -4513,6 +4521,12 @@ export declare interface MedplumClientOptions {
4513
4521
  * Default is true.
4514
4522
  */
4515
4523
  extendedMode?: boolean;
4524
+ /**
4525
+ * Default headers to include in all requests.
4526
+ * This can be used to set custom headers such as Cookies or Authorization headers.
4527
+ * @default {}
4528
+ */
4529
+ defaultHeaders?: Record<string, string>;
4516
4530
  }
4517
4531
 
4518
4532
  export declare interface MedplumInfraConfig {
@@ -4773,6 +4787,8 @@ export declare class MockAsyncClientStorage extends ClientStorage implements ICl
4773
4787
 
4774
4788
  export declare const multipleMatches: OperationOutcome;
4775
4789
 
4790
+ export declare const NDC = "http://hl7.org/fhir/sid/ndc";
4791
+
4776
4792
  export declare interface NewPatientRequest {
4777
4793
  readonly login: string;
4778
4794
  readonly projectId: string;
@@ -4925,6 +4941,7 @@ export declare enum Operator {
4925
4941
  ENDS_BEFORE = "eb",
4926
4942
  APPROXIMATELY = "ap",
4927
4943
  CONTAINS = "contains",
4944
+ STARTS_WITH = "sw",
4928
4945
  EXACT = "exact",
4929
4946
  TEXT = "text",
4930
4947
  NOT = "not",