Skip to content

Commit 3087b2d

Browse files
committed
NPA-5222: Fix Endpoint API Spec Defaults
1 parent ea0e1af commit 3087b2d

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

postman/Validate Relationship Service Sandbox.postman_collection.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9720,13 +9720,13 @@
97209720
}
97219721
},
97229722
"url": {
9723-
"raw": "{{api_base_url}}/Consent/c512b0db-6702-43ee-8c21-bbded2552da9",
9723+
"raw": "{{api_base_url}}/Consent/74eed847-ca25-4e76-8cf2-f2c2d7842a7a",
97249724
"host": [
97259725
"{{api_base_url}}"
97269726
],
97279727
"path": [
97289728
"Consent",
9729-
"c512b0db-6702-43ee-8c21-bbded2552da9"
9729+
"74eed847-ca25-4e76-8cf2-f2c2d7842a7a"
97309730
]
97319731
},
97329732
"description": "Valid patch changing status to 'active'"
@@ -10288,4 +10288,4 @@
1028810288
"type": "string"
1028910289
}
1029010290
]
10291-
}
10291+
}

sandbox/api/patch_consent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def patch_consent_response(id: str) -> Union[dict, tuple]:
3131
# Validate body - validation is beyond the scope of the sandbox.
3232
# Assume all requests are valid
3333

34-
if id == "c512b0db-6702-43ee-8c21-bbded2552da9":
34+
if id == "74eed847-ca25-4e76-8cf2-f2c2d7842a7a":
3535
# Successful status update
3636
return generate_response_from_example(PATCH_CONSENT__SUCCESS, 200)
3737

sandbox/api/tests/test_patch_consent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
@pytest.mark.parametrize(
2121
("nhs_num", "response_file_name", "status_code"),
2222
[
23-
("c512b0db-6702-43ee-8c21-bbded2552da9", PATCH_CONSENT__SUCCESS, 200),
23+
("74eed847-ca25-4e76-8cf2-f2c2d7842a7a", PATCH_CONSENT__SUCCESS, 200),
2424
("6b71ac92-baa3-4b76-b0f5-a601257e2722", PATCH_CONSENT__SUCCESS, 200),
2525
("43003db8-ffcd-4bd6-ab2f-b49b9656f9e5", PATCH_CONSENT__SUCCESS, 200),
2626
("849ea584-2318-471b-a24c-cee1b5ad0137", PATCH_CONSENT__INVALID_PATCH_FORMAT, 400),

specification/examples/requests/POST_QuestionnaireResponse/mother-child.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
QuestionnaireResponseMotherChildRequest:
22
summary: Mother > Child access request
33
description: |
4-
Example proxy access request from a mother (Martha) with NHS number `9000000001` requesting access to act on behalf of their child (Timmy) with NHS number `9000000002`.
4+
Example proxy access request from a mother (Martha) with NHS number `9000000017` requesting access to act on behalf of their child (Timmy) with NHS number `9000000002`.
55
66
Significant details to point out:
77
@@ -18,7 +18,7 @@ QuestionnaireResponseMotherChildRequest:
1818
type: "RelatedPerson"
1919
identifier:
2020
system: "https://fhir.nhs.uk/Id/nhs-number"
21-
value: "9000000001"
21+
value: "9000000017"
2222
subject:
2323
type: "Patient"
2424
identifier:
@@ -32,7 +32,7 @@ QuestionnaireResponseMotherChildRequest:
3232
- linkId: "relatedPerson_identifier"
3333
text: "NHS number"
3434
answer:
35-
- valueString: "9000000001"
35+
- valueString: "9000000017"
3636
- linkId: "relatedPerson_basisForAccess"
3737
text: "Basis for Access"
3838
answer:

specification/validated-relationships-service-api.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ paths:
938938
939939
| Scenario | Request | Response |
940940
| ------------------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
941-
| Successful status update | Valid patch changing status to 'active', request with id 'c512b0db-6702-43ee-8c21-bbded2552da9' | HTTP Status 200 and OperationOutcome |
941+
| Successful status update | Valid patch changing status to 'active', request with id '74eed847-ca25-4e76-8cf2-f2c2d7842a7a' | HTTP Status 200 and OperationOutcome |
942942
| Successful access level update | Valid patch modifying the role end date, request with id '6b71ac92-baa3-4b76-b0f5-a601257e2722' | HTTP Status 200 and OperationOutcome |
943943
| Multiple valid changes | Valid patch with multiple operations, request with id '43003db8-ffcd-4bd6-ab2f-b49b9656f9e5' | HTTP Status 200 and OperationOutcome |
944944
| Invalid patch format | Malformed JSON patch document, request with id '849ea584-2318-471b-a24c-cee1b5ad0137' | HTTP Status 400 and INVALID_PATCH_FORMAT error response |
@@ -2627,6 +2627,9 @@ components:
26272627
enum:
26282628
- "Consent:performer"
26292629
- "Consent:patient"
2630+
default:
2631+
- "Consent:performer"
2632+
- "Consent:patient"
26302633
examples:
26312634
IncludePerformer:
26322635
summary: Include the performer (proxy) in the bundle
@@ -2733,4 +2736,4 @@ components:
27332736
type: string
27342737
format: uuid
27352738
pattern: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
2736-
example: 11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA
2739+
example: 74eed847-ca25-4e76-8cf2-f2c2d7842a7a

0 commit comments

Comments
 (0)