A patient identifier is already assigned to another patient.
Recovery
Find the existing patient by external ID. Confirm identity before updating or reusing that record.
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.