@medplum/core 3.0.1 → 3.0.2

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.
@@ -1778,6 +1778,20 @@ export declare function isCreated(outcome: OperationOutcome): boolean;
1778
1778
 
1779
1779
  export declare function isDataTypeLoaded(type: string): boolean;
1780
1780
 
1781
+ /**
1782
+ * Returns true if the input value is a YYYY-MM-DD date string.
1783
+ * @param input - Unknown input value.
1784
+ * @returns True if the input is a date string.
1785
+ */
1786
+ export declare function isDateString(input: unknown): input is string;
1787
+
1788
+ /**
1789
+ * Returns true if the input value is a YYYY-MM-DDThh:mm:ss.sssZ date/time string.
1790
+ * @param input - Unknown input value.
1791
+ * @returns True if the input is a date/time string.
1792
+ */
1793
+ export declare function isDateTimeString(input: unknown): input is string;
1794
+
1781
1795
  /**
1782
1796
  * Returns true if the value is empty (null, undefined, empty string, or empty object).
1783
1797
  * @param v - Any value.
@@ -2130,6 +2144,8 @@ export declare const MEDPLUM_VERSION: any;
2130
2144
  * 6. Searching
2131
2145
  * 7. Making GraphQL queries
2132
2146
  *
2147
+ * The client can also be used to integrate with other FHIR servers. For an example, see the Epic Connection Demo Bot [here](https://github.com/medplum/medplum/tree/main/examples/medplum-demo-bots/src/epic).
2148
+ *
2133
2149
  * @example
2134
2150
  * Here is a quick example of how to use the client:
2135
2151
  *
@@ -3728,6 +3744,8 @@ export declare interface MedplumInfraConfig {
3728
3744
  rdsInstanceType: string;
3729
3745
  rdsInstanceVersion?: string;
3730
3746
  rdsSecretsArn?: string;
3747
+ rdsReaderInstanceType?: string;
3748
+ rdsProxyEnabled?: boolean;
3731
3749
  cacheNodeType?: string;
3732
3750
  desiredServerCount: number;
3733
3751
  serverImage: string;
@@ -3787,8 +3805,10 @@ export declare interface MedplumSourceInfraConfig {
3787
3805
  maxAzs: ValueOrExternalSecret<number>;
3788
3806
  rdsInstances: ValueOrExternalSecret<number>;
3789
3807
  rdsInstanceType: ValueOrExternalSecret<string>;
3790
- rdsInstanceVersion: ValueOrExternalSecret<string>;
3808
+ rdsInstanceVersion?: ValueOrExternalSecret<string>;
3791
3809
  rdsSecretsArn?: ValueOrExternalSecret<string>;
3810
+ rdsReaderInstanceType?: ValueOrExternalSecret<string>;
3811
+ rdsProxyEnabled?: ValueOrExternalSecret<boolean>;
3792
3812
  cacheNodeType?: ValueOrExternalSecret<string>;
3793
3813
  desiredServerCount: ValueOrExternalSecret<number>;
3794
3814
  serverImage: ValueOrExternalSecret<string>;
@@ -4738,6 +4758,13 @@ export declare interface TokenResponse {
4738
4758
 
4739
4759
  export declare const tooManyRequests: OperationOutcome;
4740
4760
 
4761
+ /**
4762
+ * Tries to convert an unknown input value to a Period object.
4763
+ * @param input - Unknown input value.
4764
+ * @returns A Period object or undefined.
4765
+ */
4766
+ export declare function toPeriod(input: unknown): Period | undefined;
4767
+
4741
4768
  /**
4742
4769
  * Returns a "best guess" TypedValue for a given value.
4743
4770
  * @param value - The unknown value to check.
@@ -4851,6 +4878,8 @@ export declare function validateResourceType(resourceType: string): void;
4851
4878
 
4852
4879
  export declare function validationError(details: string): OperationOutcome;
4853
4880
 
4881
+ export declare const validationRegexes: Record<string, RegExp>;
4882
+
4854
4883
  export declare type ValueOrExternalSecret<T extends ExternalSecretPrimitive> = T | ExternalSecret<T>;
4855
4884
 
4856
4885
  /**
@@ -1778,6 +1778,20 @@ export declare function isCreated(outcome: OperationOutcome): boolean;
1778
1778
 
1779
1779
  export declare function isDataTypeLoaded(type: string): boolean;
1780
1780
 
1781
+ /**
1782
+ * Returns true if the input value is a YYYY-MM-DD date string.
1783
+ * @param input - Unknown input value.
1784
+ * @returns True if the input is a date string.
1785
+ */
1786
+ export declare function isDateString(input: unknown): input is string;
1787
+
1788
+ /**
1789
+ * Returns true if the input value is a YYYY-MM-DDThh:mm:ss.sssZ date/time string.
1790
+ * @param input - Unknown input value.
1791
+ * @returns True if the input is a date/time string.
1792
+ */
1793
+ export declare function isDateTimeString(input: unknown): input is string;
1794
+
1781
1795
  /**
1782
1796
  * Returns true if the value is empty (null, undefined, empty string, or empty object).
1783
1797
  * @param v - Any value.
@@ -2130,6 +2144,8 @@ export declare const MEDPLUM_VERSION: any;
2130
2144
  * 6. Searching
2131
2145
  * 7. Making GraphQL queries
2132
2146
  *
2147
+ * The client can also be used to integrate with other FHIR servers. For an example, see the Epic Connection Demo Bot [here](https://github.com/medplum/medplum/tree/main/examples/medplum-demo-bots/src/epic).
2148
+ *
2133
2149
  * @example
2134
2150
  * Here is a quick example of how to use the client:
2135
2151
  *
@@ -3728,6 +3744,8 @@ export declare interface MedplumInfraConfig {
3728
3744
  rdsInstanceType: string;
3729
3745
  rdsInstanceVersion?: string;
3730
3746
  rdsSecretsArn?: string;
3747
+ rdsReaderInstanceType?: string;
3748
+ rdsProxyEnabled?: boolean;
3731
3749
  cacheNodeType?: string;
3732
3750
  desiredServerCount: number;
3733
3751
  serverImage: string;
@@ -3787,8 +3805,10 @@ export declare interface MedplumSourceInfraConfig {
3787
3805
  maxAzs: ValueOrExternalSecret<number>;
3788
3806
  rdsInstances: ValueOrExternalSecret<number>;
3789
3807
  rdsInstanceType: ValueOrExternalSecret<string>;
3790
- rdsInstanceVersion: ValueOrExternalSecret<string>;
3808
+ rdsInstanceVersion?: ValueOrExternalSecret<string>;
3791
3809
  rdsSecretsArn?: ValueOrExternalSecret<string>;
3810
+ rdsReaderInstanceType?: ValueOrExternalSecret<string>;
3811
+ rdsProxyEnabled?: ValueOrExternalSecret<boolean>;
3792
3812
  cacheNodeType?: ValueOrExternalSecret<string>;
3793
3813
  desiredServerCount: ValueOrExternalSecret<number>;
3794
3814
  serverImage: ValueOrExternalSecret<string>;
@@ -4738,6 +4758,13 @@ export declare interface TokenResponse {
4738
4758
 
4739
4759
  export declare const tooManyRequests: OperationOutcome;
4740
4760
 
4761
+ /**
4762
+ * Tries to convert an unknown input value to a Period object.
4763
+ * @param input - Unknown input value.
4764
+ * @returns A Period object or undefined.
4765
+ */
4766
+ export declare function toPeriod(input: unknown): Period | undefined;
4767
+
4741
4768
  /**
4742
4769
  * Returns a "best guess" TypedValue for a given value.
4743
4770
  * @param value - The unknown value to check.
@@ -4851,6 +4878,8 @@ export declare function validateResourceType(resourceType: string): void;
4851
4878
 
4852
4879
  export declare function validationError(details: string): OperationOutcome;
4853
4880
 
4881
+ export declare const validationRegexes: Record<string, RegExp>;
4882
+
4854
4883
  export declare type ValueOrExternalSecret<T extends ExternalSecretPrimitive> = T | ExternalSecret<T>;
4855
4884
 
4856
4885
  /**