@medplum/core 5.1.24 → 5.1.26
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 +6 -6
- package/dist/cjs/index.cjs.map +3 -3
- package/dist/cjs/index.d.ts +19 -0
- package/dist/esm/index.d.ts +19 -0
- package/dist/esm/index.mjs +5 -5
- package/dist/esm/index.mjs.map +3 -3
- package/package.json +3 -3
package/dist/cjs/index.d.ts
CHANGED
|
@@ -2868,6 +2868,18 @@ export declare class Hl7Message {
|
|
|
2868
2868
|
* @returns The HL7 message as a string.
|
|
2869
2869
|
*/
|
|
2870
2870
|
toString(): string;
|
|
2871
|
+
/**
|
|
2872
|
+
* Returns this message's acknowledgment code (MSA-1), if it is a recognized
|
|
2873
|
+
* HL7 ACK code.
|
|
2874
|
+
*
|
|
2875
|
+
* Useful on an ACK message to decide the outcome of the acknowledged message —
|
|
2876
|
+
* e.g. AA/CA (accepted) vs AR/CR (rejected) vs AE/CE (error). The value is
|
|
2877
|
+
* upper-cased before matching. Returns undefined when there is no MSA segment,
|
|
2878
|
+
* MSA-1 is empty, or the value is not a known `AckCode`.
|
|
2879
|
+
*
|
|
2880
|
+
* @returns The `AckCode`, or undefined.
|
|
2881
|
+
*/
|
|
2882
|
+
getAckType(): AckCode | undefined;
|
|
2871
2883
|
/**
|
|
2872
2884
|
* Returns an HL7 "ACK" (acknowledgement) message for this message.
|
|
2873
2885
|
* @param options - The optional options to configure the "ACK" message.
|
|
@@ -3274,6 +3286,13 @@ export declare interface IReconnectingWebSocketCtor {
|
|
|
3274
3286
|
|
|
3275
3287
|
export declare function isAccepted(outcome: OperationOutcome): boolean;
|
|
3276
3288
|
|
|
3289
|
+
/**
|
|
3290
|
+
* Type guard for a valid HL7 acknowledgment code (MSA-1).
|
|
3291
|
+
* @param value - The candidate code (already upper-cased, if applicable).
|
|
3292
|
+
* @returns True if `value` is one of the recognized `AckCode` values.
|
|
3293
|
+
*/
|
|
3294
|
+
export declare function isAckCode(value: string | undefined): value is AckCode;
|
|
3295
|
+
|
|
3277
3296
|
/**
|
|
3278
3297
|
* Type guard to validate an add pharmacy bot response.
|
|
3279
3298
|
* @param value - The value to check.
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2868,6 +2868,18 @@ export declare class Hl7Message {
|
|
|
2868
2868
|
* @returns The HL7 message as a string.
|
|
2869
2869
|
*/
|
|
2870
2870
|
toString(): string;
|
|
2871
|
+
/**
|
|
2872
|
+
* Returns this message's acknowledgment code (MSA-1), if it is a recognized
|
|
2873
|
+
* HL7 ACK code.
|
|
2874
|
+
*
|
|
2875
|
+
* Useful on an ACK message to decide the outcome of the acknowledged message —
|
|
2876
|
+
* e.g. AA/CA (accepted) vs AR/CR (rejected) vs AE/CE (error). The value is
|
|
2877
|
+
* upper-cased before matching. Returns undefined when there is no MSA segment,
|
|
2878
|
+
* MSA-1 is empty, or the value is not a known `AckCode`.
|
|
2879
|
+
*
|
|
2880
|
+
* @returns The `AckCode`, or undefined.
|
|
2881
|
+
*/
|
|
2882
|
+
getAckType(): AckCode | undefined;
|
|
2871
2883
|
/**
|
|
2872
2884
|
* Returns an HL7 "ACK" (acknowledgement) message for this message.
|
|
2873
2885
|
* @param options - The optional options to configure the "ACK" message.
|
|
@@ -3274,6 +3286,13 @@ export declare interface IReconnectingWebSocketCtor {
|
|
|
3274
3286
|
|
|
3275
3287
|
export declare function isAccepted(outcome: OperationOutcome): boolean;
|
|
3276
3288
|
|
|
3289
|
+
/**
|
|
3290
|
+
* Type guard for a valid HL7 acknowledgment code (MSA-1).
|
|
3291
|
+
* @param value - The candidate code (already upper-cased, if applicable).
|
|
3292
|
+
* @returns True if `value` is one of the recognized `AckCode` values.
|
|
3293
|
+
*/
|
|
3294
|
+
export declare function isAckCode(value: string | undefined): value is AckCode;
|
|
3295
|
+
|
|
3277
3296
|
/**
|
|
3278
3297
|
* Type guard to validate an add pharmacy bot response.
|
|
3279
3298
|
* @param value - The value to check.
|