You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
VED-1138: Allow create action to reinstate deleted records (#1435)
* Enhance immunization creation process to support reinstating deleted records
- Updated FhirService to return both the created immunization ID and version number upon creation.
- Modified FhirController to include the E-Tag header in the response, reflecting the current version of the created resource.
- Added tests to verify the behavior of reinstating deleted records during the create operation, ensuring proper handling of duplicate identifiers.
- Refactored the immunization repository to streamline the update process for reinstated records.
* Update immunization creation test to return version number alongside ID
- Modified the test for creating immunizations to assert the returned version number.
- Changed the mock repository method to return a tuple of (None, None) for the immunization identifier check, aligning with the updated service behavior.
---------
Co-authored-by: Akinola Olutola <akinola.olutola1@nhs.net>