@medplum/core 4.0.4 → 4.1.1
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 +7 -7
- package/dist/cjs/index.cjs.map +4 -4
- package/dist/cjs/index.d.ts +13 -6
- package/dist/esm/index.d.ts +13 -6
- package/dist/esm/index.mjs +7 -7
- package/dist/esm/index.mjs.map +4 -4
- package/package.json +3 -3
package/dist/cjs/index.d.ts
CHANGED
|
@@ -162,6 +162,7 @@ export declare interface AgentTransmitResponse extends BaseAgentMessage {
|
|
|
162
162
|
export declare interface AgentUpgradeRequest extends BaseAgentRequestMessage {
|
|
163
163
|
type: 'agent:upgrade:request';
|
|
164
164
|
version?: string;
|
|
165
|
+
force?: boolean;
|
|
165
166
|
}
|
|
166
167
|
|
|
167
168
|
export declare interface AgentUpgradeResponse extends BaseAgentMessage {
|
|
@@ -532,6 +533,7 @@ export declare const ContentType: {
|
|
|
532
533
|
readonly JAVASCRIPT: "text/javascript";
|
|
533
534
|
readonly JSON: "application/json";
|
|
534
535
|
readonly JSON_PATCH: "application/json-patch+json";
|
|
536
|
+
readonly MULTIPART_FORM_DATA: "multipart/form-data";
|
|
535
537
|
readonly PNG: "image/png";
|
|
536
538
|
readonly SCIM_JSON: "application/scim+json";
|
|
537
539
|
readonly SVG: "image/svg+xml";
|
|
@@ -872,20 +874,21 @@ export declare function escapeHtml(unsafe: string): string;
|
|
|
872
874
|
|
|
873
875
|
/**
|
|
874
876
|
* Evaluates a FHIRPath expression against a resource or other object.
|
|
875
|
-
* @param expression - The FHIRPath expression to
|
|
877
|
+
* @param expression - The FHIRPath expression to evaluate.
|
|
876
878
|
* @param input - The resource or object to evaluate the expression against.
|
|
877
879
|
* @returns The result of the FHIRPath expression against the resource or object.
|
|
878
880
|
*/
|
|
879
|
-
export declare function evalFhirPath(expression: string, input: unknown): unknown[];
|
|
881
|
+
export declare function evalFhirPath(expression: string | FhirPathAtom, input: unknown): unknown[];
|
|
880
882
|
|
|
881
883
|
/**
|
|
882
884
|
* Evaluates a FHIRPath expression against a resource or other object.
|
|
883
|
-
* @param expression - The FHIRPath expression to
|
|
885
|
+
* @param expression - The FHIRPath expression to evaluate.
|
|
884
886
|
* @param input - The resource or object to evaluate the expression against.
|
|
885
887
|
* @param variables - A map of variables for eval input.
|
|
888
|
+
* @param cache - Cache for parsed ASTs.
|
|
886
889
|
* @returns The result of the FHIRPath expression against the resource or object.
|
|
887
890
|
*/
|
|
888
|
-
export declare function evalFhirPathTyped(expression: string, input: TypedValue[], variables?: Record<string, TypedValue>): TypedValue[];
|
|
891
|
+
export declare function evalFhirPathTyped(expression: string | FhirPathAtom, input: TypedValue[], variables?: Record<string, TypedValue>, cache?: LRUCache<FhirPathAtom> | undefined): TypedValue[];
|
|
889
892
|
|
|
890
893
|
/**
|
|
891
894
|
* Evaluates a SQL-on-FHIR view on a set of FHIR resources.
|
|
@@ -1452,7 +1455,7 @@ export declare const forbidden: OperationOutcome;
|
|
|
1452
1455
|
* @param options - Optional address format options.
|
|
1453
1456
|
* @returns The formatted address string.
|
|
1454
1457
|
*/
|
|
1455
|
-
export declare function formatAddress(address: Address, options?: AddressFormatOptions): string;
|
|
1458
|
+
export declare function formatAddress(address: Address | undefined, options?: AddressFormatOptions): string;
|
|
1456
1459
|
|
|
1457
1460
|
/**
|
|
1458
1461
|
* Formats a CodeableConcept element as a string.
|
|
@@ -1516,7 +1519,7 @@ export declare function formatHl7DateTime(isoDate: Date | string): string;
|
|
|
1516
1519
|
* @param options - Optional name format options.
|
|
1517
1520
|
* @returns The formatted name string.
|
|
1518
1521
|
*/
|
|
1519
|
-
export declare function formatHumanName(name: HumanName, options?: HumanNameFormatOptions): string;
|
|
1522
|
+
export declare function formatHumanName(name: HumanName | undefined, options?: HumanNameFormatOptions): string;
|
|
1520
1523
|
|
|
1521
1524
|
export declare function formatMoney(money: Money | undefined): string;
|
|
1522
1525
|
|
|
@@ -1712,6 +1715,8 @@ export declare function getNestedProperty(value: TypedValue | undefined, key: st
|
|
|
1712
1715
|
withPath?: false;
|
|
1713
1716
|
}): (TypedValue | TypedValue[] | undefined)[];
|
|
1714
1717
|
|
|
1718
|
+
export declare function getParsedExpressionForResourceType(resourceType: string, expression: string): FhirPathAtom;
|
|
1719
|
+
|
|
1715
1720
|
/**
|
|
1716
1721
|
* Returns the difference between two paths which is often suitable to use as a key in a `Record<string, InternalSchemaElement>`
|
|
1717
1722
|
* @param parentPath - The parent path that will be removed from `path`.
|
|
@@ -2260,6 +2265,7 @@ export declare interface InviteRequest {
|
|
|
2260
2265
|
lastName: string;
|
|
2261
2266
|
email?: string;
|
|
2262
2267
|
externalId?: string;
|
|
2268
|
+
scope?: 'project' | 'server';
|
|
2263
2269
|
password?: string;
|
|
2264
2270
|
sendEmail?: boolean;
|
|
2265
2271
|
membership?: Partial<ProjectMembership>;
|
|
@@ -5743,6 +5749,7 @@ export declare function satisfiedAccessPolicy(resource: Resource, interaction: A
|
|
|
5743
5749
|
export declare interface SearchParameterDetails {
|
|
5744
5750
|
readonly type: SearchParameterType;
|
|
5745
5751
|
readonly elementDefinitions?: InternalSchemaElement[];
|
|
5752
|
+
readonly parsedExpression: FhirPathAtom;
|
|
5746
5753
|
readonly array?: boolean;
|
|
5747
5754
|
}
|
|
5748
5755
|
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -162,6 +162,7 @@ export declare interface AgentTransmitResponse extends BaseAgentMessage {
|
|
|
162
162
|
export declare interface AgentUpgradeRequest extends BaseAgentRequestMessage {
|
|
163
163
|
type: 'agent:upgrade:request';
|
|
164
164
|
version?: string;
|
|
165
|
+
force?: boolean;
|
|
165
166
|
}
|
|
166
167
|
|
|
167
168
|
export declare interface AgentUpgradeResponse extends BaseAgentMessage {
|
|
@@ -532,6 +533,7 @@ export declare const ContentType: {
|
|
|
532
533
|
readonly JAVASCRIPT: "text/javascript";
|
|
533
534
|
readonly JSON: "application/json";
|
|
534
535
|
readonly JSON_PATCH: "application/json-patch+json";
|
|
536
|
+
readonly MULTIPART_FORM_DATA: "multipart/form-data";
|
|
535
537
|
readonly PNG: "image/png";
|
|
536
538
|
readonly SCIM_JSON: "application/scim+json";
|
|
537
539
|
readonly SVG: "image/svg+xml";
|
|
@@ -872,20 +874,21 @@ export declare function escapeHtml(unsafe: string): string;
|
|
|
872
874
|
|
|
873
875
|
/**
|
|
874
876
|
* Evaluates a FHIRPath expression against a resource or other object.
|
|
875
|
-
* @param expression - The FHIRPath expression to
|
|
877
|
+
* @param expression - The FHIRPath expression to evaluate.
|
|
876
878
|
* @param input - The resource or object to evaluate the expression against.
|
|
877
879
|
* @returns The result of the FHIRPath expression against the resource or object.
|
|
878
880
|
*/
|
|
879
|
-
export declare function evalFhirPath(expression: string, input: unknown): unknown[];
|
|
881
|
+
export declare function evalFhirPath(expression: string | FhirPathAtom, input: unknown): unknown[];
|
|
880
882
|
|
|
881
883
|
/**
|
|
882
884
|
* Evaluates a FHIRPath expression against a resource or other object.
|
|
883
|
-
* @param expression - The FHIRPath expression to
|
|
885
|
+
* @param expression - The FHIRPath expression to evaluate.
|
|
884
886
|
* @param input - The resource or object to evaluate the expression against.
|
|
885
887
|
* @param variables - A map of variables for eval input.
|
|
888
|
+
* @param cache - Cache for parsed ASTs.
|
|
886
889
|
* @returns The result of the FHIRPath expression against the resource or object.
|
|
887
890
|
*/
|
|
888
|
-
export declare function evalFhirPathTyped(expression: string, input: TypedValue[], variables?: Record<string, TypedValue>): TypedValue[];
|
|
891
|
+
export declare function evalFhirPathTyped(expression: string | FhirPathAtom, input: TypedValue[], variables?: Record<string, TypedValue>, cache?: LRUCache<FhirPathAtom> | undefined): TypedValue[];
|
|
889
892
|
|
|
890
893
|
/**
|
|
891
894
|
* Evaluates a SQL-on-FHIR view on a set of FHIR resources.
|
|
@@ -1452,7 +1455,7 @@ export declare const forbidden: OperationOutcome;
|
|
|
1452
1455
|
* @param options - Optional address format options.
|
|
1453
1456
|
* @returns The formatted address string.
|
|
1454
1457
|
*/
|
|
1455
|
-
export declare function formatAddress(address: Address, options?: AddressFormatOptions): string;
|
|
1458
|
+
export declare function formatAddress(address: Address | undefined, options?: AddressFormatOptions): string;
|
|
1456
1459
|
|
|
1457
1460
|
/**
|
|
1458
1461
|
* Formats a CodeableConcept element as a string.
|
|
@@ -1516,7 +1519,7 @@ export declare function formatHl7DateTime(isoDate: Date | string): string;
|
|
|
1516
1519
|
* @param options - Optional name format options.
|
|
1517
1520
|
* @returns The formatted name string.
|
|
1518
1521
|
*/
|
|
1519
|
-
export declare function formatHumanName(name: HumanName, options?: HumanNameFormatOptions): string;
|
|
1522
|
+
export declare function formatHumanName(name: HumanName | undefined, options?: HumanNameFormatOptions): string;
|
|
1520
1523
|
|
|
1521
1524
|
export declare function formatMoney(money: Money | undefined): string;
|
|
1522
1525
|
|
|
@@ -1712,6 +1715,8 @@ export declare function getNestedProperty(value: TypedValue | undefined, key: st
|
|
|
1712
1715
|
withPath?: false;
|
|
1713
1716
|
}): (TypedValue | TypedValue[] | undefined)[];
|
|
1714
1717
|
|
|
1718
|
+
export declare function getParsedExpressionForResourceType(resourceType: string, expression: string): FhirPathAtom;
|
|
1719
|
+
|
|
1715
1720
|
/**
|
|
1716
1721
|
* Returns the difference between two paths which is often suitable to use as a key in a `Record<string, InternalSchemaElement>`
|
|
1717
1722
|
* @param parentPath - The parent path that will be removed from `path`.
|
|
@@ -2260,6 +2265,7 @@ export declare interface InviteRequest {
|
|
|
2260
2265
|
lastName: string;
|
|
2261
2266
|
email?: string;
|
|
2262
2267
|
externalId?: string;
|
|
2268
|
+
scope?: 'project' | 'server';
|
|
2263
2269
|
password?: string;
|
|
2264
2270
|
sendEmail?: boolean;
|
|
2265
2271
|
membership?: Partial<ProjectMembership>;
|
|
@@ -5743,6 +5749,7 @@ export declare function satisfiedAccessPolicy(resource: Resource, interaction: A
|
|
|
5743
5749
|
export declare interface SearchParameterDetails {
|
|
5744
5750
|
readonly type: SearchParameterType;
|
|
5745
5751
|
readonly elementDefinitions?: InternalSchemaElement[];
|
|
5752
|
+
readonly parsedExpression: FhirPathAtom;
|
|
5746
5753
|
readonly array?: boolean;
|
|
5747
5754
|
}
|
|
5748
5755
|
|