Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9720,13 +9720,13 @@
}
},
"url": {
"raw": "{{api_base_url}}/Consent/c512b0db-6702-43ee-8c21-bbded2552da9",
"raw": "{{api_base_url}}/Consent/74eed847-ca25-4e76-8cf2-f2c2d7842a7a",
"host": [
"{{api_base_url}}"
],
"path": [
"Consent",
"c512b0db-6702-43ee-8c21-bbded2552da9"
"74eed847-ca25-4e76-8cf2-f2c2d7842a7a"
]
},
"description": "Valid patch changing status to 'active'"
Expand Down Expand Up @@ -10288,4 +10288,4 @@
"type": "string"
}
]
}
}
2 changes: 1 addition & 1 deletion sandbox/api/patch_consent.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def patch_consent_response(id: str) -> Union[dict, tuple]:
# Validate body - validation is beyond the scope of the sandbox.
# Assume all requests are valid

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

Expand Down
2 changes: 1 addition & 1 deletion sandbox/api/tests/test_patch_consent.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@pytest.mark.parametrize(
("nhs_num", "response_file_name", "status_code"),
[
("c512b0db-6702-43ee-8c21-bbded2552da9", PATCH_CONSENT__SUCCESS, 200),
("74eed847-ca25-4e76-8cf2-f2c2d7842a7a", PATCH_CONSENT__SUCCESS, 200),
("6b71ac92-baa3-4b76-b0f5-a601257e2722", PATCH_CONSENT__SUCCESS, 200),
("43003db8-ffcd-4bd6-ab2f-b49b9656f9e5", PATCH_CONSENT__SUCCESS, 200),
("849ea584-2318-471b-a24c-cee1b5ad0137", PATCH_CONSENT__INVALID_PATCH_FORMAT, 400),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
QuestionnaireResponseMotherChildRequest:
summary: Mother > Child access request
description: |
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`.
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`.

Significant details to point out:

Expand All @@ -18,7 +18,7 @@ QuestionnaireResponseMotherChildRequest:
type: "RelatedPerson"
identifier:
system: "https://fhir.nhs.uk/Id/nhs-number"
value: "9000000001"
value: "9000000017"
subject:
type: "Patient"
identifier:
Expand All @@ -32,7 +32,7 @@ QuestionnaireResponseMotherChildRequest:
- linkId: "relatedPerson_identifier"
text: "NHS number"
answer:
- valueString: "9000000001"
- valueString: "9000000017"
- linkId: "relatedPerson_basisForAccess"
text: "Basis for Access"
answer:
Expand Down
9 changes: 6 additions & 3 deletions specification/validated-relationships-service-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ info:
* only covers a limited set of scenarios
* is open access, so does not allow you to test authorisation

[<img src="https://run.pstmn.io/button.svg" alt="Run In Postman" style="width: 128px; height: 32px;">](https://app.getpostman.com/run-collection/18067099-a5cc5740-0392-439d-931c-00fbb2d058f1?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D18067099-a5cc5740-0392-439d-931c-00fbb2d058f1%26entityType%3Dcollection%26workspaceId%3D66795b20-35be-480e-bcb5-07e30c1c64b5))
[<img src="https://run.pstmn.io/button.svg" alt="Run In Postman" style="width: 128px; height: 32px;">](https://god.gw.postman.com/run-collection/46399153-7043e3fb-54f4-41ea-88f7-43e00a6c00dd?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D46399153-7043e3fb-54f4-41ea-88f7-43e00a6c00dd%26entityType%3Dcollection%26workspaceId%3D98276349-4ae9-4592-84a2-01459d13edc7))

### Integration testing

Expand Down Expand Up @@ -938,7 +938,7 @@ paths:

| Scenario | Request | Response |
| ------------------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
| Successful status update | Valid patch changing status to 'active', request with id 'c512b0db-6702-43ee-8c21-bbded2552da9' | HTTP Status 200 and OperationOutcome |
| Successful status update | Valid patch changing status to 'active', request with id '74eed847-ca25-4e76-8cf2-f2c2d7842a7a' | HTTP Status 200 and OperationOutcome |
| Successful access level update | Valid patch modifying the role end date, request with id '6b71ac92-baa3-4b76-b0f5-a601257e2722' | HTTP Status 200 and OperationOutcome |
| Multiple valid changes | Valid patch with multiple operations, request with id '43003db8-ffcd-4bd6-ab2f-b49b9656f9e5' | HTTP Status 200 and OperationOutcome |
| Invalid patch format | Malformed JSON patch document, request with id '849ea584-2318-471b-a24c-cee1b5ad0137' | HTTP Status 400 and INVALID_PATCH_FORMAT error response |
Expand Down Expand Up @@ -2627,6 +2627,9 @@ components:
enum:
- "Consent:performer"
- "Consent:patient"
default:
- "Consent:performer"
- "Consent:patient"
examples:
IncludePerformer:
summary: Include the performer (proxy) in the bundle
Expand Down Expand Up @@ -2733,4 +2736,4 @@ components:
type: string
format: uuid
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}$"
example: 11C46F5F-CDEF-4865-94B2-0EE0EDCC26DA
example: 74eed847-ca25-4e76-8cf2-f2c2d7842a7a