The patient has orders that prevent deletion.
Recovery
Keep the patient record for order history. Use the supported inactive state when appropriate.
Branch on code, not on the text of detail. The HTTP status, requestId, and optional data.issues describe this occurrence.
Do not log patient or prescription bodies. Give support the request ID when investigating a failure.