Skip to content

v1.0.2987-alpha

Choose a tag to compare

@github-actions github-actions released this 28 Apr 09:45
7c404ee
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>