@medplum/core 4.3.9 → 4.3.11
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 +3 -3
- package/dist/cjs/index.d.ts +3 -1
- package/dist/esm/index.d.ts +3 -1
- package/dist/esm/index.mjs +7 -7
- package/dist/esm/index.mjs.map +3 -3
- package/package.json +3 -3
package/dist/cjs/index.d.ts
CHANGED
|
@@ -374,6 +374,8 @@ export declare function buildElementsContext({ parentContext, path, elements, pr
|
|
|
374
374
|
|
|
375
375
|
export declare function buildTypeName(components: string[]): string;
|
|
376
376
|
|
|
377
|
+
export declare function businessRule(key: string, message: string): OperationOutcome;
|
|
378
|
+
|
|
377
379
|
/**
|
|
378
380
|
* Calculates the age in years from the birth date.
|
|
379
381
|
* @param birthDateStr - The birth date or start date in ISO-8601 format YYYY-MM-DD.
|
|
@@ -2610,7 +2612,7 @@ export declare function isResource<T extends Resource>(value: unknown, resourceT
|
|
|
2610
2612
|
* @param resourceType - The candidate resource type string.
|
|
2611
2613
|
* @returns True if the resource type is a valid FHIR resource type.
|
|
2612
2614
|
*/
|
|
2613
|
-
export declare function isResourceType(resourceType: string):
|
|
2615
|
+
export declare function isResourceType(resourceType: string): resourceType is ResourceType;
|
|
2614
2616
|
|
|
2615
2617
|
/**
|
|
2616
2618
|
* Returns true if the type schema is a non-abstract FHIR resource.
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -374,6 +374,8 @@ export declare function buildElementsContext({ parentContext, path, elements, pr
|
|
|
374
374
|
|
|
375
375
|
export declare function buildTypeName(components: string[]): string;
|
|
376
376
|
|
|
377
|
+
export declare function businessRule(key: string, message: string): OperationOutcome;
|
|
378
|
+
|
|
377
379
|
/**
|
|
378
380
|
* Calculates the age in years from the birth date.
|
|
379
381
|
* @param birthDateStr - The birth date or start date in ISO-8601 format YYYY-MM-DD.
|
|
@@ -2610,7 +2612,7 @@ export declare function isResource<T extends Resource>(value: unknown, resourceT
|
|
|
2610
2612
|
* @param resourceType - The candidate resource type string.
|
|
2611
2613
|
* @returns True if the resource type is a valid FHIR resource type.
|
|
2612
2614
|
*/
|
|
2613
|
-
export declare function isResourceType(resourceType: string):
|
|
2615
|
+
export declare function isResourceType(resourceType: string): resourceType is ResourceType;
|
|
2614
2616
|
|
|
2615
2617
|
/**
|
|
2616
2618
|
* Returns true if the type schema is a non-abstract FHIR resource.
|