Skip to content
Open
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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2053,7 +2053,7 @@
" \"link\": [",
" {",
" \"relation\": \"self\",",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000017&status=active&_include=Consent:performer&_include=Consent:patient\"",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000017&status=active&_include=Consent:grantee&_include=Consent:patient\"",
" }",
" ],",
" \"entry\": [",
Expand Down Expand Up @@ -2509,7 +2509,7 @@
}
},
"url": {
"raw": "{{api_base_url}}/Consent?performer:identifier=9000000017&status=active&_include=Consent:performer&_include=Consent:patient",
"raw": "{{api_base_url}}/Consent?performer:identifier=9000000017&status=active&_include=Consent:grantee&_include=Consent:patient",
"host": [
"{{api_base_url}}"
],
Expand All @@ -2527,7 +2527,7 @@
},
{
"key": "_include",
"value": "Consent:performer"
"value": "Consent:grantee"
},
{
"key": "_include",
Expand Down Expand Up @@ -4213,7 +4213,7 @@
" \"link\": [",
" {",
" \"relation\": \"self\",",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000022&_include=Consent:performer\"",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000022&_include=Consent:grantee\"",
" }",
" ],",
" \"entry\": [",
Expand Down Expand Up @@ -4662,7 +4662,7 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{api_base_url}}/Consent?performer:identifier=9000000022&_include=Consent:performer",
"raw": "{{api_base_url}}/Consent?performer:identifier=9000000022&_include=Consent:grantee",
"host": [
"{{api_base_url}}"
],
Expand All @@ -4676,7 +4676,7 @@
},
{
"key": "_include",
"value": "Consent:performer"
"value": "Consent:grantee"
}
]
}
Expand All @@ -4698,7 +4698,7 @@
" \"link\": [",
" {",
" \"relation\": \"self\",",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000022&_include=Consent:performer&_include=Consent:patient\"",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000022&_include=Consent:grantee&_include=Consent:patient\"",
" }",
" ],",
" \"entry\": [",
Expand Down Expand Up @@ -5301,7 +5301,7 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{api_base_url}}/Consent?performer:identifier=9000000022&_include=Consent:performer&_include=Consent:patient",
"raw": "{{api_base_url}}/Consent?performer:identifier=9000000022&_include=Consent:grantee&_include=Consent:patient",
"host": [
"{{api_base_url}}"
],
Expand All @@ -5315,7 +5315,7 @@
},
{
"key": "_include",
"value": "Consent:performer"
"value": "Consent:grantee"
},
{
"key": "_include",
Expand Down Expand Up @@ -5714,7 +5714,7 @@
" \"link\": [",
" {",
" \"relation\": \"self\",",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?patient:identifier=9000000100&_include=Consent:performer&_include=Consent:patient\"",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?patient:identifier=9000000100&_include=Consent:grantee&_include=Consent:patient\"",
" }",
" ],",
" \"entry\": [",
Expand Down Expand Up @@ -6213,7 +6213,7 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{api_base_url}}/Consent?patient:identifier=9000000100&_include=Consent:performer&_include=Consent:patient",
"raw": "{{api_base_url}}/Consent?patient:identifier=9000000100&_include=Consent:grantee&_include=Consent:patient",
"host": [
"{{api_base_url}}"
],
Expand All @@ -6227,7 +6227,7 @@
},
{
"key": "_include",
"value": "Consent:performer"
"value": "Consent:grantee"
},
{
"key": "_include",
Expand All @@ -6253,7 +6253,7 @@
" \"link\": [",
" {",
" \"relation\": \"self\",",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?patient:identifier=9000000100&_include=Consent:performer\"",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?patient:identifier=9000000100&_include=Consent:grantee\"",
" }",
" ],",
" \"entry\": [",
Expand Down Expand Up @@ -6702,7 +6702,7 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{api_base_url}}/Consent?patient:identifier=9000000100&_include=Consent:performer",
"raw": "{{api_base_url}}/Consent?patient:identifier=9000000100&_include=Consent:grantee",
"host": [
"{{api_base_url}}"
],
Expand All @@ -6716,7 +6716,7 @@
},
{
"key": "_include",
"value": "Consent:performer"
"value": "Consent:grantee"
}
]
}
Expand Down Expand Up @@ -7165,7 +7165,7 @@
" \"link\": [",
" {",
" \"relation\": \"self\",",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000025&_include=Consent:performer&_include=Consent:patient\"",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000025&_include=Consent:grantee&_include=Consent:patient\"",
" }",
" ],",
" \"entry\": []",
Expand Down Expand Up @@ -7385,7 +7385,7 @@
" \"link\": [",
" {",
" \"relation\": \"self\",",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000010&_include=Consent:performer&_include=Consent:patient\"",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000010&_include=Consent:grantee&_include=Consent:patient\"",
" }",
" ],",
" \"entry\": [",
Expand Down Expand Up @@ -7599,7 +7599,7 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{api_base_url}}/Consent?performer:identifier=9000000010&_include=Consent:performer&_include=Consent:patient",
"raw": "{{api_base_url}}/Consent?performer:identifier=9000000010&_include=Consent:grantee&_include=Consent:patient",
"host": [
"{{api_base_url}}"
],
Expand All @@ -7613,7 +7613,7 @@
},
{
"key": "_include",
"value": "Consent:performer"
"value": "Consent:grantee"
},
{
"key": "_include",
Expand Down Expand Up @@ -7802,7 +7802,7 @@
" \"link\": [",
" {",
" \"relation\": \"self\",",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000019&_include=Consent:performer&_include=Consent:patient\"",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000019&_include=Consent:grantee&_include=Consent:patient\"",
" }",
" ],",
" \"entry\": [",
Expand Down Expand Up @@ -8025,7 +8025,7 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{api_base_url}}/Consent?performer:identifier=9000000019&_include=Consent:performer&_include=Consent:patient",
"raw": "{{api_base_url}}/Consent?performer:identifier=9000000019&_include=Consent:grantee&_include=Consent:patient",
"host": [
"{{api_base_url}}"
],
Expand All @@ -8039,7 +8039,7 @@
},
{
"key": "_include",
"value": "Consent:performer"
"value": "Consent:grantee"
},
{
"key": "_include",
Expand Down Expand Up @@ -9263,7 +9263,7 @@
"response": []
},
{
"name": "Retrieve consenting adult relationship with performer details",
"name": "Retrieve consenting adult relationship with grantee details",
"event": [
{
"listen": "test",
Expand All @@ -9277,7 +9277,7 @@
" \"link\": [",
" {",
" \"relation\": \"self\",",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000010&_include=Consent:performer\"",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000010&_include=Consent:grantee\"",
" }",
" ],",
" \"entry\": [",
Expand Down Expand Up @@ -9441,7 +9441,7 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{api_base_url}}/Consent/74eed847-ca25-4e76-8cf2-f2c2d7842a7a?_include=Consent:performer",
"raw": "{{api_base_url}}/Consent/74eed847-ca25-4e76-8cf2-f2c2d7842a7a?_include=Consent:grantee",
"host": [
"{{api_base_url}}"
],
Expand All @@ -9452,7 +9452,7 @@
"query": [
{
"key": "_include",
"value": "Consent:performer"
"value": "Consent:grantee"
}
]
}
Expand All @@ -9474,7 +9474,7 @@
" \"link\": [",
" {",
" \"relation\": \"self\",",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000010&_include=Consent:performer&_include=Consent:patient\"",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000010&_include=Consent:grantee&_include=Consent:patient\"",
" }",
" ],",
" \"entry\": [",
Expand Down Expand Up @@ -9688,7 +9688,7 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{api_base_url}}/Consent/74eed847-ca25-4e76-8cf2-f2c2d7842a7a?_include=Consent:performer&_include=Consent:patient",
"raw": "{{api_base_url}}/Consent/74eed847-ca25-4e76-8cf2-f2c2d7842a7a?_include=Consent:grantee&_include=Consent:patient",
"host": [
"{{api_base_url}}"
],
Expand All @@ -9699,7 +9699,7 @@
"query": [
{
"key": "_include",
"value": "Consent:performer"
"value": "Consent:grantee"
},
{
"key": "_include",
Expand Down Expand Up @@ -10079,7 +10079,7 @@
"response": []
},
{
"name": "Retrieve mother-child relationship with performer details",
"name": "Retrieve mother-child relationship with grantee details",
"event": [
{
"listen": "test",
Expand All @@ -10093,7 +10093,7 @@
" \"link\": [",
" {",
" \"relation\": \"self\",",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000019&_include=Consent:performer\"",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000019&_include=Consent:grantee\"",
" }",
" ],",
" \"entry\": [",
Expand Down Expand Up @@ -10266,7 +10266,7 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{api_base_url}}/Consent/39df03a2-1b14-4d19-b1dc-d5d8cbf96948?_include=Consent:performer",
"raw": "{{api_base_url}}/Consent/39df03a2-1b14-4d19-b1dc-d5d8cbf96948?_include=Consent:grantee",
"host": [
"{{api_base_url}}"
],
Expand All @@ -10277,7 +10277,7 @@
"query": [
{
"key": "_include",
"value": "Consent:performer"
"value": "Consent:grantee"
}
]
}
Expand All @@ -10299,7 +10299,7 @@
" \"link\": [",
" {",
" \"relation\": \"self\",",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000019&_include=Consent:performer&_include=Consent:patient\"",
" \"url\": \"https://sandbox.api.service.nhs.uk/validated-relationships/FHIR/R4/Consent?performer:identifier=9000000019&_include=Consent:grantee&_include=Consent:patient\"",
" }",
" ],",
" \"entry\": [",
Expand Down Expand Up @@ -10522,7 +10522,7 @@
"method": "GET",
"header": [],
"url": {
"raw": "{{api_base_url}}/Consent/39df03a2-1b14-4d19-b1dc-d5d8cbf96948?_include=Consent:performer&_include=Consent:patient",
"raw": "{{api_base_url}}/Consent/39df03a2-1b14-4d19-b1dc-d5d8cbf96948?_include=Consent:grantee&_include=Consent:patient",
"host": [
"{{api_base_url}}"
],
Expand All @@ -10533,7 +10533,7 @@
"query": [
{
"key": "_include",
"value": "Consent:performer"
"value": "Consent:grantee"
},
{
"key": "_include",
Expand Down
26 changes: 13 additions & 13 deletions sandbox/api/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PATIENT_IDENTIFIERS = ["9000000017", "9000000033", "9000000042"]
RELATED_IDENTIFIERS = ["9000000009", "9000000025", "9000000042"]

CONSENT_PERFORMER = "Consent:performer"
CONSENT_GRANTEE = "Consent:grantee"
CONSENT_PATIENT = "Consent:patient"

# Example files
Expand All @@ -29,47 +29,47 @@
)
GET_CONSENT__MULTIPLE_RELATIONSHIPS = f"{GET_CONSENT__DIRECTORY}multiple-relationships.yaml"
GET_CONSENT__MULTIPLE_RELATIONSHIPS_INCLUDE_BOTH = (
f"{GET_CONSENT__DIRECTORY}multiple-relationships-include-performer-patient.yaml"
f"{GET_CONSENT__DIRECTORY}multiple-relationships-include-grantee-patient.yaml"
)
GET_CONSENT__MULTIPLE_RELATIONSHIPS_INCLUDE_PATIENT = (
f"{GET_CONSENT__DIRECTORY}multiple-relationships-include-patient.yaml"
)
GET_CONSENT__MULTIPLE_RELATIONSHIPS_INCLUDE_PERFORMER = (
f"{GET_CONSENT__DIRECTORY}multiple-relationships-include-performer.yaml"
GET_CONSENT__MULTIPLE_RELATIONSHIPS_INCLUDE_GRANTEE = (
f"{GET_CONSENT__DIRECTORY}multiple-relationships-include-grantee.yaml"
)
GET_CONSENT__NO_RELATIONSHIPS = f"{GET_CONSENT__DIRECTORY}no-relationships.yaml"
GET_CONSENT__SINGLE_CONSENTING_ADULT_RELATIONSHIP = f"{GET_CONSENT__DIRECTORY}single-consenting-adult-relationship.yaml"
GET_CONSENT__SINGLE_CONSENTING_ADULT_RELATIONSHIP_INCLUDE_BOTH = (
f"{GET_CONSENT__DIRECTORY}single-consenting-adult-relationship-include-performer-patient.yaml"
f"{GET_CONSENT__DIRECTORY}single-consenting-adult-relationship-include-grantee-patient.yaml"
)
GET_CONSENT__SINGLE_CONSENTING_ADULT_RELATIONSHIP_INCLUDE_PATIENT = (
f"{GET_CONSENT__DIRECTORY}single-consenting-adult-relationship-include-patient.yaml"
)
GET_CONSENT__SINGLE_CONSENTING_ADULT_RELATIONSHIP_INCLUDE_PERFORMER = (
f"{GET_CONSENT__DIRECTORY}single-consenting-adult-relationship-include-performer.yaml"
GET_CONSENT__SINGLE_CONSENTING_ADULT_RELATIONSHIP_INCLUDE_GRANTEE = (
f"{GET_CONSENT__DIRECTORY}single-consenting-adult-relationship-include-grantee.yaml"
)
GET_CONSENT__SINGLE_MOTHER_CHILD_RELATIONSHIP = f"{GET_CONSENT__DIRECTORY}single-mother-child-relationship.yaml"
GET_CONSENT__SINGLE_MOTHER_CHILD_RELATIONSHIP_INCLUDE_BOTH = (
f"{GET_CONSENT__DIRECTORY}single-mother-child-relationship-include-performer-patient.yaml"
f"{GET_CONSENT__DIRECTORY}single-mother-child-relationship-include-grantee-patient.yaml"
)
GET_CONSENT__SINGLE_MOTHER_CHILD_RELATIONSHIP_INCLUDE_PATIENT = (
f"{GET_CONSENT__DIRECTORY}single-mother-child-relationship-include-patient.yaml"
)
GET_CONSENT__SINGLE_MOTHER_CHILD_RELATIONSHIP_INCLUDE_PERFORMER = (
f"{GET_CONSENT__DIRECTORY}single-mother-child-relationship-include-performer.yaml"
GET_CONSENT__SINGLE_MOTHER_CHILD_RELATIONSHIP_INCLUDE_GRANTEE = (
f"{GET_CONSENT__DIRECTORY}single-mother-child-relationship-include-grantee.yaml"
)
GET_CONSENT__STATUS_PARAM_INVALID = f"{GET_CONSENT__DIRECTORY}errors/invalid-status-parameter.yaml"
GET_CONSENT__MULTIPLE_RELATIONSHIPS_SINGLE_PATIENT = (
f"{GET_CONSENT__DIRECTORY}multiple-relationships-single-patient.yaml"
)
GET_CONSENT__MULTIPLE_RELATIONSHIPS_SINGLE_PATIENT_INCLUDE_PERFORMER = (
f"{GET_CONSENT__DIRECTORY}multiple-relationships-single-patient-include-performer.yaml"
GET_CONSENT__MULTIPLE_RELATIONSHIPS_SINGLE_PATIENT_INCLUDE_GRANTEE = (
f"{GET_CONSENT__DIRECTORY}multiple-relationships-single-patient-include-grantee.yaml"
)
GET_CONSENT__MULTIPLE_RELATIONSHIPS_SINGLE_PATIENT_INCLUDE_PATIENT = (
f"{GET_CONSENT__DIRECTORY}multiple-relationships-single-patient-include-patient.yaml"
)
GET_CONSENT__MULTIPLE_RELATIONSHIPS_SINGLE_PATIENT_INCLUDE_BOTH = (
f"{GET_CONSENT__DIRECTORY}multiple-relationships-single-patient-include-performer-patient.yaml"
f"{GET_CONSENT__DIRECTORY}multiple-relationships-single-patient-include-grantee-patient.yaml"
)
GET_CONSENT__SINGLE_MOTHER_CHILD_RELATIONSHIP_UNKNOWN_LEGAL_BASIS = (
f"{GET_CONSENT__DIRECTORY}single-mother-child-relationship-unknown-legal-basis.yaml"
Expand Down
Loading