@medplum/core 3.2.10 → 3.2.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.
@@ -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
@@ -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