Scenario - Request Authorisation

Actors

Name Type Description
Client Application System The application the Proxy uses to create the request. IHE refers to this as the Consent Recorder
NHS England Proxy Service System NHS England National Proxy Service
National Proxy Registry System NHS England National Proxy Data Registry. IHE refers to this as the Consent Registry
Primary Care System General Practice System

Use Case(s)

Background Standards

Request Authorisation

The sequence diagram below is a high level view of the actual process which focuses on the interactions exchanged between the actors.

See Scenario - Request Proxy Access for a description of the first part of the sequence.

View Proxy Access Request

View the initial Proxy Access Request

Is referenced in the focus element of the receieved Proxy Access Request Verification FHIR Task.

 "focus": {
        "type": "QuestionnaireResponse",
        "reference": "https://proxyservice.example.nhs.uk/FHIR/R4/QuestionnaireResponse-QuestionnaireResponse-proxy-access-request"
    },

Message Semantics

GET {baseUrl}/QuestionnaireReponse/{id}
Example
GET https://proxyservice.example.nhs.uk/FHIR/R4/QuestionnaireResponse-QuestionnaireResponse-proxy-access-request

Is referenced in the input array of the receieved Proxy Access Request Verification FHIR Task.

 {
            "type": {
                "coding":  [
                    {
                        "system": "https://fhir.nhs.uk/England/NationalProxy",
                        "code": "Consent"
                    }
                ]
            },
            "valueReference": {
                "reference": "https://proxyservice.example.nhs.uk/FHIR/R4/Consent/Consent-Consent-national-proxy-proposed",
                "type": "Consent"
            }
        }

Message Semantics

This is also IHE Privacy Consent on FHIR (PCF) - Access Consent [ITI-108]

GET {baseUrl}/Consent/{id}
Example
GET https://proxyservice.example.nhs.uk/FHIR/R4/Consent/Consent-Consent-national-proxy-proposed

View the proposed RelatedPerson

Is referenced in the input array of the receieved Proxy Access Request Verification FHIR Task.

 {
            "type": {
                "coding":  [
                    {
                        "system": "https://fhir.nhs.uk/England/NationalProxy",
                        "code": "Proxy"
                    }
                ]
            },
            "valueReference": {
                "reference": "https://nhsdigital.github.io/nhsengland-spine-specification-sandbox/RelatedPerson-RelatedPerson-NHS-9100000009",
                "type": "RelatedPerson"
            }
        }

Message Semantics

GET {baseUrl}/RelatedPerson/{id}
Example
GET https://proxyservice.example.nhs.uk/FHIR/R4/RelatedPerson/RelatedPerson-RelatedPerson-NHS-910000000

Update National Proxy Registry

The National Proxy Registry is updated based on the values present in the out array in the response of the FHIR Task Task Consent Verification Completed.

"output":  [
        {
            "type": {
                "coding":  [
                    {
                        "system": "https://fhir.nhs.uk/England/NationalProxy",
                        "code": "decision"
                    }
                ]
            },
            "valueCodeableConcept": {
                "coding":  [
                    {
                        "system": "https://fhir.nhs.uk/England/NationalProxyConsentStatus",
                        "code": "proxy-approved"
                    }
                ]
            }
        }
    ]

An example Consent relating to a proxy-approved can be found in Consent confirmed A Consent updated for proxy-rejected can be found in Consent rejected

Inform Proxy of Decision

This has not been defined and so is an example of a notification which is a copy of the completed Task resource.

PUT https://clientapplication.example.nhs.uk/FHIR/R4/Task?identifier={identifier}

Event Payload Example

Task Consent Verification Completed