This PR introduces a small update to the logic that handles Patient merge. With changes to the PdsService.cs and PdsServiceTests.cs files. The changes are primarily focused on refactoring the JSON handling and improving the test cases.
Fixed a bug where a deleted patient would appear in the Bundle twice - as a PUT and a DELETE. This was inefficient, and would cause problems when parallel execution is enabled.
Changes to JSON Handling - src/Core/Pds/PdsService.cs: Replaced Newtonsoft.Json.Linq with System.Text.Json for JSON handling.
Improvements to Test Cases - tests/Unit.Tests/Core/Pds/PdsServiceTests.cs: Refactored the test cases to include changes to how the ConvertData method is called and checked, and the addition of more detailed checks for the TransactionAsync method.
This PR introduces a small update to the logic that handles Patient merge. With changes to the
PdsService.cs
andPdsServiceTests.cs
files. The changes are primarily focused on refactoring the JSON handling and improving the test cases.PUT
and aDELETE
. This was inefficient, and would cause problems when parallel execution is enabled.src/Core/Pds/PdsService.cs
: ReplacedNewtonsoft.Json.Linq
withSystem.Text.Json
for JSON handling.tests/Unit.Tests/Core/Pds/PdsServiceTests.cs
: Refactored the test cases to include changes to how theConvertData
method is called and checked, and the addition of more detailed checks for theTransactionAsync
method.