@medplum/core 3.2.10 → 3.2.12
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 +5 -5
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/cjs/index.d.ts +7 -2
- package/dist/esm/index.d.ts +7 -2
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/index.mjs.map +3 -3
- package/package.json +3 -3
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1345,7 +1345,7 @@ export declare function findObservationReferenceRange(definition: ObservationDef
|
|
|
1345
1345
|
*/
|
|
1346
1346
|
export declare function findResourceByCode(resources: ResourceWithCode[], code: CodeableConcept | string, system: string): ResourceWithCode | undefined;
|
|
1347
1347
|
|
|
1348
|
-
export declare function flatMapFilter<T, U>(arr: T[], fn: (value: T, idx: number) => U | undefined): U[];
|
|
1348
|
+
export declare function flatMapFilter<T, U>(arr: T[] | undefined, fn: (value: T, idx: number) => U | undefined): U[];
|
|
1349
1349
|
|
|
1350
1350
|
export declare const forbidden: OperationOutcome;
|
|
1351
1351
|
|
|
@@ -1367,9 +1367,10 @@ export declare function formatCodeableConcept(codeableConcept: CodeableConcept |
|
|
|
1367
1367
|
/**
|
|
1368
1368
|
* Formats a Coding element as a string.
|
|
1369
1369
|
* @param coding - A FHIR Coding element
|
|
1370
|
+
* @param includeCode - If true, includes both the code and display if available
|
|
1370
1371
|
* @returns The coding as a string.
|
|
1371
1372
|
*/
|
|
1372
|
-
export declare function formatCoding(coding: Coding | undefined): string;
|
|
1373
|
+
export declare function formatCoding(coding: Coding | undefined, includeCode?: boolean): string;
|
|
1373
1374
|
|
|
1374
1375
|
/**
|
|
1375
1376
|
* Formats a FHIR date string as a human readable string.
|
|
@@ -2192,6 +2193,8 @@ export declare function isCompletedSubscriptionRequest(subscriptionRequest: Subs
|
|
|
2192
2193
|
|
|
2193
2194
|
export declare function isComplexTypeCode(code: string): boolean;
|
|
2194
2195
|
|
|
2196
|
+
export declare function isConflict(outcome: OperationOutcome): boolean;
|
|
2197
|
+
|
|
2195
2198
|
export declare function isContextVersionRequired(event: string): event is FhircastEventVersionRequired;
|
|
2196
2199
|
|
|
2197
2200
|
export declare function isCreated(outcome: OperationOutcome): boolean;
|
|
@@ -5517,6 +5520,8 @@ export declare function setIdentifier(resource: Resource & {
|
|
|
5517
5520
|
|
|
5518
5521
|
export declare function singleton(collection: TypedValue[], type?: string): TypedValue | undefined;
|
|
5519
5522
|
|
|
5523
|
+
export declare function singularize<T>(value: T | T[] | undefined): T | undefined;
|
|
5524
|
+
|
|
5520
5525
|
/**
|
|
5521
5526
|
* Sleeps for the specified number of milliseconds.
|
|
5522
5527
|
* @param ms - Time delay in milliseconds
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1345,7 +1345,7 @@ export declare function findObservationReferenceRange(definition: ObservationDef
|
|
|
1345
1345
|
*/
|
|
1346
1346
|
export declare function findResourceByCode(resources: ResourceWithCode[], code: CodeableConcept | string, system: string): ResourceWithCode | undefined;
|
|
1347
1347
|
|
|
1348
|
-
export declare function flatMapFilter<T, U>(arr: T[], fn: (value: T, idx: number) => U | undefined): U[];
|
|
1348
|
+
export declare function flatMapFilter<T, U>(arr: T[] | undefined, fn: (value: T, idx: number) => U | undefined): U[];
|
|
1349
1349
|
|
|
1350
1350
|
export declare const forbidden: OperationOutcome;
|
|
1351
1351
|
|
|
@@ -1367,9 +1367,10 @@ export declare function formatCodeableConcept(codeableConcept: CodeableConcept |
|
|
|
1367
1367
|
/**
|
|
1368
1368
|
* Formats a Coding element as a string.
|
|
1369
1369
|
* @param coding - A FHIR Coding element
|
|
1370
|
+
* @param includeCode - If true, includes both the code and display if available
|
|
1370
1371
|
* @returns The coding as a string.
|
|
1371
1372
|
*/
|
|
1372
|
-
export declare function formatCoding(coding: Coding | undefined): string;
|
|
1373
|
+
export declare function formatCoding(coding: Coding | undefined, includeCode?: boolean): string;
|
|
1373
1374
|
|
|
1374
1375
|
/**
|
|
1375
1376
|
* Formats a FHIR date string as a human readable string.
|
|
@@ -2192,6 +2193,8 @@ export declare function isCompletedSubscriptionRequest(subscriptionRequest: Subs
|
|
|
2192
2193
|
|
|
2193
2194
|
export declare function isComplexTypeCode(code: string): boolean;
|
|
2194
2195
|
|
|
2196
|
+
export declare function isConflict(outcome: OperationOutcome): boolean;
|
|
2197
|
+
|
|
2195
2198
|
export declare function isContextVersionRequired(event: string): event is FhircastEventVersionRequired;
|
|
2196
2199
|
|
|
2197
2200
|
export declare function isCreated(outcome: OperationOutcome): boolean;
|
|
@@ -5517,6 +5520,8 @@ export declare function setIdentifier(resource: Resource & {
|
|
|
5517
5520
|
|
|
5518
5521
|
export declare function singleton(collection: TypedValue[], type?: string): TypedValue | undefined;
|
|
5519
5522
|
|
|
5523
|
+
export declare function singularize<T>(value: T | T[] | undefined): T | undefined;
|
|
5524
|
+
|
|
5520
5525
|
/**
|
|
5521
5526
|
* Sleeps for the specified number of milliseconds.
|
|
5522
5527
|
* @param ms - Time delay in milliseconds
|