core.isackcode | Medplum

isAckCode() function

Type guard for a valid HL7 acknowledgment code (MSA-1).

Signature:

export declare function isAckCode(value: string | undefined): value is AckCode;

Parameters [​](/content/docs/sdk/core.isackcode#parameters "Direct link to Parameters"/index.html)

Parameter Type Description
value string | undefined The candidate code (already upper-cased, if applicable).

Returns:

value is AckCode

True if value is one of the recognized AckCode values.