Skip to content

Commit 3a949b2

Browse files
committed
NPA-3887 Standarise NHS Numbers across sandbox and schema
1 parent 75175ad commit 3a949b2

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

specification/validated-relationships-service-api.yaml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -255,18 +255,19 @@ paths:
255255
256256
NOTE: Headers are not tested in the sandbox. `X-Request-ID` and `X-Correlation-ID` are disregarded.
257257
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 |
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` | HTTP Status 400 and INVALID_IDENTIFIER_SYSTEM error message |
270+
| Identifier not supported in sandbox | identifier`=`1000000001` | HTTP Status 404 and INVALIDATED_RESOURCE error message |
270271
271272
Or perhaps you'd like to try out the sandbox using our 'Try it out' feature, see the documentation for each endpoint.
272273
@@ -1699,10 +1700,10 @@ components:
16991700
format: token
17001701
examples:
17011702
withoutSystem:
1702-
value: 9000000009
1703+
value: 9000000017
17031704
summary: NHS number specified without system.
17041705
withSystem:
1705-
value: https://fhir.nhs.uk/Id/nhs-number|9000000009
1706+
value: https://fhir.nhs.uk/Id/nhs-number|9000000017
17061707
summary: System and NHS number specified
17071708

17081709
PatientIdentifier:
@@ -1716,10 +1717,10 @@ components:
17161717
format: token
17171718
examples:
17181719
withoutSystem:
1719-
value: 9000000017
1720+
value: 9000000009
17201721
summary: NHS number specified without system
17211722
withSystem:
1722-
value: https://fhir.nhs.uk/Id/nhs-number|9000000017
1723+
value: https://fhir.nhs.uk/Id/nhs-number|9000000009
17231724
summary: System and NHS number specified
17241725

17251726
ConsentBundlePerformerIdentifier:

0 commit comments

Comments
 (0)