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.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.| Code | Name | When it occurs | Suggested action |
|---|---|---|---|
ORD_SDK_001 | ORDERS_GENERATION_FAILED | Occurs when the Web SDK fails to generate medication orders for the session. | Review the error details and retry the order generation. |
ORD_SDK_003 | INCOMPLETE_ORDER | Occurs 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 theerror 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.