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
18,478 changes: 9,238 additions & 9,240 deletions postman/validated_relationship_service.integration.postman_collection.json

Large diffs are not rendered by default.

22,080 changes: 10,917 additions & 11,163 deletions postman/validated_relationship_service.sandbox.postman_collection.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion sandbox/api/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
POST_CONSENT__DIRECTORY = "./api/examples/POST_Consent/"
POST_CONSENT__SUCCESS = f"{POST_CONSENT__DIRECTORY}success.yaml"
POST_CONSENT__DUPLICATE_RELATIONSHIP_ERROR = f"{POST_CONSENT__DIRECTORY}errors/duplicate_relationship_error.yaml"
POST_CONSENT__PERFORMER_IDENTIFIER_ERROR = f"{POST_CONSENT__DIRECTORY}errors/invalid_performer_identifier_error.yaml"
POST_CONSENT__MISSING_FREE_TEXT_FOR_OTHER = f"{POST_CONSENT__DIRECTORY}errors/missing_free_text_for_other.yaml"

# PATCH Consent
Expand Down
5 changes: 0 additions & 5 deletions sandbox/api/post_consent.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from .constants import (
INTERNAL_SERVER_ERROR_EXAMPLE,
POST_CONSENT__DUPLICATE_RELATIONSHIP_ERROR,
POST_CONSENT__PERFORMER_IDENTIFIER_ERROR,
POST_CONSENT__SUCCESS,
POST_CONSENT__MISSING_FREE_TEXT_FOR_OTHER,
)
Expand Down Expand Up @@ -40,10 +39,6 @@ def post_consent_response() -> Union[dict, tuple]:
elif patient_identifier == "9000000049":
response = generate_response_from_example(POST_CONSENT__DUPLICATE_RELATIONSHIP_ERROR, 409)

# Invalid performer NHS number
elif patient_identifier == "9000000000":
response = generate_response_from_example(POST_CONSENT__PERFORMER_IDENTIFIER_ERROR, 422)

elif patient_identifier == "9000000050":
# Missing free text for OTHER reason code (should fail)
response = generate_response_from_example(POST_CONSENT__MISSING_FREE_TEXT_FOR_OTHER, 400)
Expand Down
2 changes: 0 additions & 2 deletions sandbox/api/tests/test_post_consent.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from sandbox.api.constants import (
POST_CONSENT__DUPLICATE_RELATIONSHIP_ERROR,
POST_CONSENT__PERFORMER_IDENTIFIER_ERROR,
POST_CONSENT__SUCCESS,
POST_CONSENT__MISSING_FREE_TEXT_FOR_OTHER,
)
Expand All @@ -29,7 +28,6 @@
201,
"90b9863e-e33c-4895-a333-fd0ea0e23205",
),
("9000000000", POST_CONSENT__PERFORMER_IDENTIFIER_ERROR, 422, None),
("9000000049", POST_CONSENT__DUPLICATE_RELATIONSHIP_ERROR, 409, None),
(
"9000000050",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ ConsentAdultToAdultGuardianRequest:
system: https://fhir.nhs.uk/Id/nhs-number
value: "9000000012"
dateTime: "2025-02-11T14:30:00Z"
performer:
- type: RelatedPerson
identifier:
system: https://fhir.nhs.uk/Id/nhs-number
value: "9000000017"
provision:
type: permit
period:
Expand All @@ -46,3 +41,8 @@ ConsentAdultToAdultGuardianRequest:
- system: https://fhir.nhs.uk/England/CodeSystem/England-ConsentStatusReason
code: ROLE_CREATED
display: Role created
- url: https://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.grantee
valueReference:
identifier:
system: https://fhir.nhs.uk/Id/nhs-number
value: '9000000017'
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ ConsentParentChildProxyCreationRequest:
system: https://fhir.nhs.uk/Id/nhs-number
value: "9000000012"
dateTime: "2025-02-11T14:30:00Z"
performer:
- type: RelatedPerson
identifier:
system: https://fhir.nhs.uk/Id/nhs-number
value: "9000000009"
provision:
type: permit
period:
Expand All @@ -47,3 +42,8 @@ ConsentParentChildProxyCreationRequest:
- system: https://fhir.nhs.uk/England/CodeSystem/England-ConsentStatusReason
code: ROLE_CREATED
display: Role created
- url: https://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.grantee
valueReference:
identifier:
system: https://fhir.nhs.uk/Id/nhs-number
value: '9000000009'
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,6 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle:
system: "https://fhir.nhs.uk/Id/nhs-number"
value: "9000000009"
dateTime: "2024-07-21T17:32:28Z"
performer:
- identifier:
system: "https://fhir.nhs.uk/Id/nhs-number"
value: "9000000017"
policy:
- authority: "https://www.england.nhs.uk"
uri: "REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD"
Expand All @@ -115,6 +111,11 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle:
- system: https://fhir.nhs.uk/England/CodeSystem/England-ConsentStatusReason
code: ROLE_CREATED
display: Role created
- url: https://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.grantee
valueReference:
identifier:
system: https://fhir.nhs.uk/Id/nhs-number
value: '9000000017'
search:
mode: match
- fullUrl: "https://api.service.nhs.uk/validated-relationships/FHIR/R4/RelatedPerson/RP974720"
Expand Down Expand Up @@ -184,10 +185,6 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle:
system: "https://fhir.nhs.uk/Id/nhs-number"
value: "9000000005"
dateTime: "2024-07-21T17:32:28Z"
performer:
- identifier:
system: "https://fhir.nhs.uk/Id/nhs-number"
value: "9000000017"
policy:
- authority: "https://www.england.nhs.uk"
uri: "REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD"
Expand All @@ -213,5 +210,10 @@ ConsentMultipleRelationshipsStatusActiveIncludeDetailsBundle:
- system: https://fhir.nhs.uk/England/CodeSystem/England-ConsentStatusReason
code: ROLE_CREATED
display: Role created
- url: https://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.grantee
valueReference:
identifier:
system: https://fhir.nhs.uk/Id/nhs-number
value: '9000000017'
search:
mode: match
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ ConsentMultipleRelationshipsStatusInactiveBundle:
system: 'https://fhir.nhs.uk/Id/nhs-number'
value: '9000000006'
dateTime: '2024-07-21T17:32:28Z'
performer:
- identifier:
system: 'https://fhir.nhs.uk/Id/nhs-number'
value: '9000000017'
policy:
- authority: https://www.england.nhs.uk
uri: REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD
Expand All @@ -59,6 +55,11 @@ ConsentMultipleRelationshipsStatusInactiveBundle:
- system: https://fhir.nhs.uk/England/CodeSystem/England-ConsentStatusReason
code: ROLE_DEACTIVATED_END_DATE_REACHED
display: End date reached
- url: https://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.grantee
valueReference:
identifier:
system: https://fhir.nhs.uk/Id/nhs-number
value: '9000000017'
search:
mode: match
- fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Consent/ABCD12B3
Expand All @@ -81,10 +82,6 @@ ConsentMultipleRelationshipsStatusInactiveBundle:
system: 'https://fhir.nhs.uk/Id/nhs-number'
value: '9000000007'
dateTime: '2024-07-21T17:32:28Z'
performer:
- identifier:
system: 'https://fhir.nhs.uk/Id/nhs-number'
value: '9000000017'
policy:
- authority: https://www.england.nhs.uk
uri: REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD
Expand All @@ -111,5 +108,10 @@ ConsentMultipleRelationshipsStatusInactiveBundle:
code: OTHER
display: Other reason
text: Patient would not respond to phone calls
- url: https://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.grantee
valueReference:
identifier:
system: https://fhir.nhs.uk/Id/nhs-number
value: '9000000017'
search:
mode: match
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle:
system: 'https://fhir.nhs.uk/Id/nhs-number'
value: '9000000009'
dateTime: '2024-07-21T17:32:28Z'
performer:
- identifier:
system: 'https://fhir.nhs.uk/Id/nhs-number'
value: '9000000017'
policy:
- authority: https://www.england.nhs.uk
uri: REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD
Expand All @@ -59,6 +55,11 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle:
- system: https://fhir.nhs.uk/England/CodeSystem/England-ConsentStatusReason
code: ROLE_CREATED
display: Role created
- url: https://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.grantee
valueReference:
identifier:
system: https://fhir.nhs.uk/Id/nhs-number
value: '9000000017'
search:
mode: match

Expand All @@ -82,10 +83,6 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle:
system: 'https://fhir.nhs.uk/Id/nhs-number'
value: '9000000005'
dateTime: '2024-07-21T17:32:28Z'
performer:
- identifier:
system: 'https://fhir.nhs.uk/Id/nhs-number'
value: '9000000017'
policy:
- authority: https://www.england.nhs.uk
uri: REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD
Expand All @@ -111,6 +108,11 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle:
- system: https://fhir.nhs.uk/England/CodeSystem/England-ConsentStatusReason
code: ROLE_CREATED
display: Role created
- url: https://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.grantee
valueReference:
identifier:
system: https://fhir.nhs.uk/Id/nhs-number
value: '9000000017'
search:
mode: match

Expand All @@ -134,10 +136,6 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle:
system: 'https://fhir.nhs.uk/Id/nhs-number'
value: '9000000020'
dateTime: '2024-07-21T17:32:28Z'
performer:
- identifier:
system: 'https://fhir.nhs.uk/Id/nhs-number'
value: '9000000017'
policy:
- authority: https://www.england.nhs.uk
uri: REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD
Expand All @@ -163,6 +161,11 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle:
- system: https://fhir.nhs.uk/England/CodeSystem/England-ConsentStatusReason
code: APPLICATION_SUBMITTED
display: Application submitted online
- url: https://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.grantee
valueReference:
identifier:
system: https://fhir.nhs.uk/Id/nhs-number
value: '9000000017'
search:
mode: match

Expand All @@ -186,10 +189,6 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle:
system: 'https://fhir.nhs.uk/Id/nhs-number'
value: '9000000021'
dateTime: '2024-07-21T17:32:28Z'
performer:
- identifier:
system: 'https://fhir.nhs.uk/Id/nhs-number'
value: '9000000017'
policy:
- authority: https://www.england.nhs.uk
uri: REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD
Expand All @@ -215,5 +214,10 @@ ConsentMultipleRelationshipsStatusProposedActiveBundle:
- system: https://fhir.nhs.uk/England/CodeSystem/England-ConsentStatusReason
code: APPLICATION_SUBMITTED
display: Application submitted online
- url: https://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.grantee
valueReference:
identifier:
system: https://fhir.nhs.uk/Id/nhs-number
value: '9000000017'
search:
mode: match
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ ConsentMultipleRelationshipsIncludePatientBundle:
system: "https://fhir.nhs.uk/Id/nhs-number"
value: "9000000009"
dateTime: "2024-07-21T17:32:28Z"
performer:
- identifier:
system: "https://fhir.nhs.uk/Id/nhs-number"
value: "9000000022"
policy:
- authority: https://www.england.nhs.uk
uri: REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD
Expand All @@ -91,6 +87,11 @@ ConsentMultipleRelationshipsIncludePatientBundle:
- system: https://fhir.nhs.uk/England/CodeSystem/England-ConsentStatusReason
code: ROLE_CREATED
display: Role created
- url: https://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.grantee
valueReference:
identifier:
system: https://fhir.nhs.uk/Id/nhs-number
value: '9000000022'
search:
mode: match
- fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/DFCC67F5
Expand Down Expand Up @@ -142,10 +143,6 @@ ConsentMultipleRelationshipsIncludePatientBundle:
system: "https://fhir.nhs.uk/Id/nhs-number"
value: "9000000005"
dateTime: "2024-07-21T17:32:28Z"
performer:
- identifier:
system: "https://fhir.nhs.uk/Id/nhs-number"
value: "9000000022"
policy:
- authority: https://www.england.nhs.uk
uri: REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD
Expand All @@ -171,6 +168,11 @@ ConsentMultipleRelationshipsIncludePatientBundle:
- system: https://fhir.nhs.uk/England/CodeSystem/England-ConsentStatusReason
code: ROLE_CREATED
display: Role created
- url: https://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.grantee
valueReference:
identifier:
system: https://fhir.nhs.uk/Id/nhs-number
value: '9000000022'
search:
mode: match
- fullUrl: https://api.service.nhs.uk/validated-relationships/FHIR/R4/Patient/ZPTT32T3
Expand Down Expand Up @@ -222,10 +224,6 @@ ConsentMultipleRelationshipsIncludePatientBundle:
system: "https://fhir.nhs.uk/Id/nhs-number"
value: "9000000006"
dateTime: "2024-07-21T17:32:28Z"
performer:
- identifier:
system: "https://fhir.nhs.uk/Id/nhs-number"
value: "9000000022"
policy:
- authority: https://www.england.nhs.uk
uri: REPLACE_WITH_LINK_TO_PUBLISHED_NATIONAL_PROXY_STANDARD
Expand All @@ -251,5 +249,10 @@ ConsentMultipleRelationshipsIncludePatientBundle:
- system: https://fhir.nhs.uk/England/CodeSystem/England-ConsentStatusReason
code: ROLE_DEACTIVATED_END_DATE_REACHED
display: End date reached
- url: https://hl7.org/fhir/5.0/StructureDefinition/extension-Consent.grantee
valueReference:
identifier:
system: https://fhir.nhs.uk/Id/nhs-number
value: '9000000022'
search:
mode: match
Loading