Skip to content

Commit f1cbcea

Browse files
committed
NPA-3887 Document some 400 related person error
1 parent 7901246 commit f1cbcea

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

specification/validated-relationships-service-api.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -253,15 +253,20 @@ paths:
253253
254254
## Sandbox test scenarios
255255
256-
| Scenario | Request | Response |
257-
| --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------- |
258-
| List Relationship | `identifier`=`9000000017` | HTTP Status 200 List of relationships for the proxy |
259-
| List Relationship and include patient's details | `identifier`=`9000000017` and `_include`=`RelatedPerson:patient` | HTTP Status 200 List of relationships for the proxy and includes patient data |
260-
| List Relationship and no relationships returned | `identifier`=`9000000033` | HTTP Status 200 Empty bundle |
261-
| Verify Relationship between proxy and patient | `identifier`=`9000000017` and `patient:identifier`=`9000000009` | HTTP Status 200 Verified relationship between patient and proxy |
262-
| Verify Relationship between proxy and patient and include patient's details | `identifier`=`9000000017` and `patient:identifier`=`9000000009` and `_include`=`RelatedPerson:patient` | HTTP Status 200 Verified relationship between patient and proxy and includes patient's details |
263-
| Verify Relationship between proxy and patient | `identifier`=`9000000017` and `patient:identifier`=`9000000025` | HTTP Status 200 Verified relationship between patient and proxy |
264-
| Verify Relationship between proxy and patient and include patient's details | `identifier`=`9000000017` and `patient:identifier`=`9000000025` and `_include`=`RelatedPerson:patient` | HTTP Status 200 Verified relationship between patient and proxy and includes patient's details |
256+
NOTE: Headers are not tested in the sandbox. `X-Request-ID` and `X-Correlation-ID` are disregarded.
257+
258+
| Scenario | Request | Response |
259+
| --------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
260+
| List Relationship | `identifier`=`9000000017` | HTTP Status 200 List of relationships for the proxy |
261+
| List Relationship and include patient's details | `identifier`=`9000000017` and `_include`=`RelatedPerson:patient` | HTTP Status 200 List of relationships for the proxy and includes patient data |
262+
| List Relationship and no relationships returned | `identifier`=`9000000033` | HTTP Status 200 Empty bundle |
263+
| Verify Relationship between proxy and patient | `identifier`=`9000000017` and `patient:identifier`=`9000000009` | HTTP Status 200 Verified relationship between patient and proxy |
264+
| Verify Relationship between proxy and patient and include patient's details | `identifier`=`9000000017` and `patient:identifier`=`9000000009` and `_include`=`RelatedPerson:patient` | HTTP Status 200 Verified relationship between patient and proxy and includes patient's details |
265+
| Verify Relationship between proxy and patient | `identifier`=`9000000017` and `patient:identifier`=`9000000025` | HTTP Status 200 Verified relationship between patient and proxy |
266+
| Verify Relationship between proxy and patient and include patient's details | `identifier`=`9000000017` and `patient:identifier`=`9000000025` and `_include`=`RelatedPerson:patient` | HTTP Status 200 Verified relationship between patient and proxy and includes patient's details |
267+
| Missing identifier | identifier`=`` | HTTP Status 400 and MISSING_IDENTIFIER_VALUE error message |
268+
| Invalid identifier | identifier`=`900000000` Note: This identifier is 9 characters long too short to be NHS Number | HTTP Status 400 and INVALID_IDENTIFIER_VALUE error message |
269+
| Invalid identifier system | identifier`=`https://fhir.nhs.uk/Id/nhs-number/9730675929&patient:identifier=https://fhir.nhs.uk/Id/nhs-number/9730676399` | HTTP Status 400 and INVALID_IDENTIFIER_SYSTEM error message |
265270
266271
Or perhaps you'd like to try out the sandbox using our 'Try it out' feature, see the documentation for each endpoint.
267272

0 commit comments

Comments
 (0)