Skip to main content
Quick summary
Medication orders use ORD_SDK_* error codes when generation fails or when one or more orders are missing required fields. Listen for Web SDK error events and inspect error.code to handle errors during Medication orders generation effectively.
The Headed Web SDK uses ORD_SDK_* error codes to identify errors during Medication orders generation. This guide lists each code, its name, and when it applies so you can handle errors during Medication orders generation effectively.

Medication orders error codes

The table below is the reference for Medication orders error codes, names, and descriptions.
CodeNameWhen it occursSuggested action
ORD_SDK_001ORDERS_GENERATION_FAILEDOccurs when the Web SDK fails to generate medication orders for the session.Review the error details and retry the order generation.
ORD_SDK_003INCOMPLETE_ORDEROccurs when one or more orders are missing required fields (RxCUI, diagnosis).Complete the missing fields and retry the order generation.

Handling Medication orders errors

Subscribe to the error event on SukiClient (JavaScript) or through the useSuki() hook (React). Check error.code for ORD_SDK_* values. For how to subscribe to SDK errors, refer to Error handling.

Next steps

Medication orders overview Medication orders payload structure
Last modified on June 12, 2026