-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise
NHS::PDS::TooManyMatches
(#2758)
This updates the PDS search client code to handle getting a too many matches error response and raise a suitable exception. This doesn't handle the error, as we need to decide how to handle this case, but having its own error means we can easily filter these out in Sentry.
- Loading branch information
Showing
3 changed files
with
93 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"issue": [ | ||
{ | ||
"code": "multiple-matches", | ||
"details": { | ||
"coding": [ | ||
{ | ||
"code": "TOO_MANY_MATCHES", | ||
"display": "Too Many Matches", | ||
"system": "https://fhir.nhs.uk/R4/CodeSystem/Spine-ErrorOrWarningCode", | ||
"version": "1" | ||
} | ||
] | ||
}, | ||
"severity": "information" | ||
} | ||
], | ||
"resourceType": "OperationOutcome" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters