From b89748b05b389a11a11f46d2924ba8ac407614ce Mon Sep 17 00:00:00 2001 From: fderuiter <127706008+fderuiter@users.noreply.github.com> Date: Fri, 30 Jan 2026 15:50:23 +0000 Subject: [PATCH] Refactor RecordsEndpoint to deduplicate creation logic Extracted `_prepare_create_request` helper method in `imednet/endpoints/records.py` to handle validation, header building, and path construction. This removes duplication between `create` and `async_create` methods. Verified with existing tests in `tests/unit/endpoints/test_records_endpoint.py` and `tests/unit/endpoints/test_records_async.py`. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>