@medplum/core 5.2.7 → 5.2.9
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 +9 -9
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/cjs/index.d.ts +27 -0
- package/dist/esm/index.d.ts +27 -0
- package/dist/esm/index.mjs +9 -9
- package/dist/esm/index.mjs.map +3 -3
- package/package.json +3 -3
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1633,6 +1633,18 @@ export { ErrorEvent_2 as ErrorEvent }
|
|
|
1633
1633
|
*/
|
|
1634
1634
|
export declare function escapeHtml(unsafe: string): string;
|
|
1635
1635
|
|
|
1636
|
+
/**
|
|
1637
|
+
* Escapes a literal string for use as a single FHIR search value.
|
|
1638
|
+
* Backslash-escapes commas and backslashes, so that the value is not split into multiple "or" values.
|
|
1639
|
+
* This is the inverse of `splitSearchOnComma`.
|
|
1640
|
+
*
|
|
1641
|
+
* See: https://hl7.org/fhir/r4/search.html#escaping
|
|
1642
|
+
*
|
|
1643
|
+
* @param input - The literal string to search for.
|
|
1644
|
+
* @returns The escaped FHIR search value.
|
|
1645
|
+
*/
|
|
1646
|
+
export declare function escapeSearchValue(input: string): string;
|
|
1647
|
+
|
|
1636
1648
|
/**
|
|
1637
1649
|
* Escape token part of a JSON Pointer string
|
|
1638
1650
|
*
|
|
@@ -3650,6 +3662,13 @@ export declare class IsAtom extends InfixOperatorAtom {
|
|
|
3650
3662
|
*/
|
|
3651
3663
|
export declare function isBrowserEnvironment(): boolean;
|
|
3652
3664
|
|
|
3665
|
+
/**
|
|
3666
|
+
* Returns true if the search filter is a chained search (forward chain or reverse chain via `_has`).
|
|
3667
|
+
* @param filter - The search filter.
|
|
3668
|
+
* @returns True if the filter is a chained search filter.
|
|
3669
|
+
*/
|
|
3670
|
+
export declare function isChainedSearchFilter(filter: Filter): boolean;
|
|
3671
|
+
|
|
3653
3672
|
/**
|
|
3654
3673
|
* Returns true if the input value is a CodeableConcept object.
|
|
3655
3674
|
* This is a heuristic check based on the presence of the "coding" property.
|
|
@@ -3970,6 +3989,14 @@ export declare function isUnauthenticated(outcome: OperationOutcome): boolean;
|
|
|
3970
3989
|
*/
|
|
3971
3990
|
export declare function isUUID(input: string): input is string;
|
|
3972
3991
|
|
|
3992
|
+
/**
|
|
3993
|
+
* Checks that the day exists in its month, e.g. rejects 2023-02-29.
|
|
3994
|
+
* Assumes the input already matched the date, dateTime, or instant regex.
|
|
3995
|
+
* @param str - The date, dateTime, or instant string.
|
|
3996
|
+
* @returns True if the day is valid or not present.
|
|
3997
|
+
*/
|
|
3998
|
+
export declare function isValidCalendarDate(str: string): boolean;
|
|
3999
|
+
|
|
3973
4000
|
/**
|
|
3974
4001
|
* Returns true if the given date object is a valid date.
|
|
3975
4002
|
* Dates can be invalid if created by parsing an invalid string.
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1633,6 +1633,18 @@ export { ErrorEvent_2 as ErrorEvent }
|
|
|
1633
1633
|
*/
|
|
1634
1634
|
export declare function escapeHtml(unsafe: string): string;
|
|
1635
1635
|
|
|
1636
|
+
/**
|
|
1637
|
+
* Escapes a literal string for use as a single FHIR search value.
|
|
1638
|
+
* Backslash-escapes commas and backslashes, so that the value is not split into multiple "or" values.
|
|
1639
|
+
* This is the inverse of `splitSearchOnComma`.
|
|
1640
|
+
*
|
|
1641
|
+
* See: https://hl7.org/fhir/r4/search.html#escaping
|
|
1642
|
+
*
|
|
1643
|
+
* @param input - The literal string to search for.
|
|
1644
|
+
* @returns The escaped FHIR search value.
|
|
1645
|
+
*/
|
|
1646
|
+
export declare function escapeSearchValue(input: string): string;
|
|
1647
|
+
|
|
1636
1648
|
/**
|
|
1637
1649
|
* Escape token part of a JSON Pointer string
|
|
1638
1650
|
*
|
|
@@ -3650,6 +3662,13 @@ export declare class IsAtom extends InfixOperatorAtom {
|
|
|
3650
3662
|
*/
|
|
3651
3663
|
export declare function isBrowserEnvironment(): boolean;
|
|
3652
3664
|
|
|
3665
|
+
/**
|
|
3666
|
+
* Returns true if the search filter is a chained search (forward chain or reverse chain via `_has`).
|
|
3667
|
+
* @param filter - The search filter.
|
|
3668
|
+
* @returns True if the filter is a chained search filter.
|
|
3669
|
+
*/
|
|
3670
|
+
export declare function isChainedSearchFilter(filter: Filter): boolean;
|
|
3671
|
+
|
|
3653
3672
|
/**
|
|
3654
3673
|
* Returns true if the input value is a CodeableConcept object.
|
|
3655
3674
|
* This is a heuristic check based on the presence of the "coding" property.
|
|
@@ -3970,6 +3989,14 @@ export declare function isUnauthenticated(outcome: OperationOutcome): boolean;
|
|
|
3970
3989
|
*/
|
|
3971
3990
|
export declare function isUUID(input: string): input is string;
|
|
3972
3991
|
|
|
3992
|
+
/**
|
|
3993
|
+
* Checks that the day exists in its month, e.g. rejects 2023-02-29.
|
|
3994
|
+
* Assumes the input already matched the date, dateTime, or instant regex.
|
|
3995
|
+
* @param str - The date, dateTime, or instant string.
|
|
3996
|
+
* @returns True if the day is valid or not present.
|
|
3997
|
+
*/
|
|
3998
|
+
export declare function isValidCalendarDate(str: string): boolean;
|
|
3999
|
+
|
|
3973
4000
|
/**
|
|
3974
4001
|
* Returns true if the given date object is a valid date.
|
|
3975
4002
|
* Dates can be invalid if created by parsing an invalid string.
|