NIAD-2873: Change how we query the persist duration from SDS #330
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
By this PR we are adapting the way how we query SDS service to avoid getting a broken response.
Why
For one of our test ODS codes,
C88046
, we've observed that we've been unable to retrieve the "persist duration" from the SDS API. The persist duration is fetched for each ODS code during the transfer timeout functionality, to ascertain whether the transfer has timed out or not.Within the SDS FHIR API, there are two endpoints:
endpoint
device
When calling the
endpoint
API with the test ODS code, it is returning nothing, but when calling thedevice
endpoint using the ODS to get the PartyID, and then calling theendpoint
API using that PartyID we get the persist duration.We believe that the original behaviour to use the ODS code by itself should work, but have been unable to get a definitive answer from ITOC as to whether there is a data issue within SDS for our ODS code.
Example error log entry seen previously
Type of change
Please delete options that are not relevant.
Checklist: