GP2GP Requesting Adaptor
ID | S94 |
Version | 1.0.1 |
Type | Standard |
Status | Effective |
Effective Date | May 22, 2025 |
Contracting Vehicle(s) |
- 1 Introduction
- 2 Requirements
- 2.1 Registration Process & EHR Request
- 2.1.1 Step 1 - Patient Registration
- 2.1.2 Step 2 - User performs PDS Trace
- 2.1.3 Step 3 - Requesting System - Lookup previous ODS code on PDS
- 2.1.4 Step 4 - Requesting System Query ODS for previous GP Practice details
- 2.1.5 Step 5 - Requesting System updates PDS
- 2.1.6 Step 6 - Query SDS API for Provider ASID
- 2.1.7 Step 7 - Build request to migrate structured record
- 2.2 GP2GP Requesting Adaptor converts and sends HL7 request
- 2.3 Providing the EHR Process
- 2.4 Conversion and retrieval of the EHR Process
- 2.5 Prepare to integrate the record
- 2.6 Integrate the record
- 2.7 Internal Transfers
- 2.8 User Experience
- 2.8.1 User stories
- 2.9 Appendix A - Negative Acknowledgments
- 2.10 Appendix B - Primary Care Support England (PCSE)
- 2.11 Appendix C - Suspended and Orphaned Records
- 2.11.1 Suspended Patients
- 2.11.2 Orphaned Records
- 2.12 Appendix D - Further information on Attachments
- 2.1 Registration Process & EHR Request
- 3 Dependencies
- 4 Roadmap
Introduction
The GP2GP Requesting Adaptor is designed to allow a System Supplier who does not have GP2GP HL7 and instead uses GP Connect - Access Record Structured API v1.6.0 to request an Electronic Health Record (EHR) from a System Supplier using GP2GP HL7.
This page documents the details of how the Requesting System will interact with the GP2GP Requesting Adaptor. It also details the requirements of the Requesting Site (the GP Practice the Patient is registering with) around the initial registration process and then ingesting/filing the received EHR from the Sending Site.
Requirements
Registration Process & EHR Request
The following section details the initial registration steps that are required before the request for the registering Patients Electronic Health Record from their previous practice can begin via GP2GP and the Requesting Adaptor.
Step 1 - Patient Registration
The first step is for the Patient to provide their demographic details e.g. name, NHS number, address to the GP Practice staff, who will then in turn access PDS.
Patient Registration | ||
Requirement ID | Requirement Text | Level |
---|---|---|
GP2GP_Req_01 | Only Patients registering for GMS1 Permanent registrations qualify for the electronic transfer of Patient records (GP2GP). Any other Patient registration type (e.g. temporary/private) does not qualify for GP2GP. | MUST |
GP2GP_Req_02 | If the Patient was registered at the Requesting site under any other registration status (e.g. private or temporary) and then applies to become a GMS1 Permanent Patient, it is necessary for the Requesting system to still initiate the request for the EHR from the Sending site. | MUST |
GP2GP_Req_03 | The Requesting System will limit access to perform permanent Patient registrations, PDS Advanced Trace and PDS General Update interactions to only users who have the appropriate RBAC permissions as defined in the PDS requirements. | MUST |
GP2GP_Req_04 | If there is no response from PDS (it is unavailable and error has been received) then the user would benefit from being prompted to contact the National Help Desk or their Clinical System Supplier Help Desk to resolve the issue. The GP2GP process will end until such time is PDS available and a user with appropriate permissions logs in again to perform a PDS trace to find and register the Patient. | SHOULD |
GP2GP_Req_05 | In the exceptional scenario where PDS is unavailable, and there is a critical need to record information about the Patient, functionality is accessible to allow a user to electronically record information about the Patient until such time as PDS is available so as to provide continuity of care. | MUST |
Step 2 - User performs PDS Trace
The GP Practice staff member will now attempt to trace (find) the Patient on PDS
PDS Trace | ||
Requirement ID | Requirement Text | Level |
---|---|---|
GP2GP_Req_06 | The user will now need to search for the Patient on PDS in line with their guidance: | MUST |
GP2GP_Req_07 | The Requesting system will not automatically select a Patient from the search results, irrespective of the number of results. i.e. if only one Patient is returned they should not be auto-selected. | MUST |
GP2GP_Req_08 | The user needs to select a Patient from the PDS trace results if they wish to continue the registration. If the PDS search fails to identify the Patient then then there is no previous registration available and no transfer of an EHR is possible. | MUST |
GP2GP_Req_09 | If the PDS record is flagged as ‘sensitive’ then it cannot be updated and the electronic transfer of the EHR cannot proceed. There is a separate manual process via National Back Office and PCSE to deal with the transfer of Patients records who are flagged as sensitive. | MUST |
Now that the GP Practice Staff member has selected a Patient to register, the Requesting System must follow the steps below to complete the request for the EHR to send to the GP2GP Requesting Adaptor.
Step 3 - Requesting System - Lookup previous ODS code on PDS
The Requesting System will now lookup the Patients current registered ODS code on PDS (the one the Patient is currently registered at and the Requesting System will be requesting the EHR from). This needs to be performed before the Requesting Site updates PDS as in Step 5, otherwise its ODS code will be that of the Patients on PDS.
Lookup previous ODS code | ||
Requirement ID | Requirement Text | Level |
---|---|---|
GP2GP_Req_10 | If the user identifies and selects a Patient from the PDS trace that is unique and not ‘sensitive’ then the Requesting System will need to store and persist the data item | MUST |
GP2GP_Req_11 | If the | MUST |
GP2GP_Req_12 | If the | MUST |
GP2GP_Req_13 | Should the | MUST |
Step 4 - Requesting System Query ODS for previous GP Practice details
The Requesting System will now query ODS for the details of the Patients current registered GP Practice.
The information retrieved from the ODS API about the current GP Practice is purely so the the user (GP Practice Staff) has access to contact details for the Sending Site should there be any queries about the transfer of the EHR. It will not prevent the processing of the GP2GP request.
Lookup previous ODS code | ||
Requirement ID | Requirement Text | Level |
---|---|---|
GP2GP_Req_14 | The Requesting System will now retrieve the following details of the previous GP Practice using the ODS API:
This is purely so the user has access to information that may help them in contacting the Sending System in case of any issues with the EHR transfer. | MUST |
GP2GP_Req_15 | The Requesting System will display the previous practice details obtained to the user registering the Patient. | MUST |
GP2GP_Req_16 | This information needs to be cached and the most up to date details made available. This is to allow any necessary follow up should the user need to contact the previous GP Practice. | MUST |
GP2GP_Req_17 | The failure to obtain the previous GP Practice details from ODS does not prevent the Requesting System from initiating the electronic transfer of the EHR from the Sending Site. | MUST |
Step 5 - Requesting System updates PDS
Now the Requesting System has obtained the Patients current GP Practice details it will now update PDS to indicate they are now the registered GP Practice.
Update PDS | ||
Requirement ID | Requirement Text | Level |
---|---|---|
GP2GP_Req_18 | Once the user has selected a Patient to be registered the Requesting System will update PDS (after obtaining the Sending Practice ODS code from PDS as in Step 3). This will set the Patients GP Practice code to that of the Requesting System (the GP Practice the Patient is registering at) on PDS and the registration date. | MUST |
GP2GP_Req_19 | The PDS update interaction is an synchronous transaction and the Requesting System waits for a PDS Successful Update Response. | MUST |
GP2GP_Req_20 | If an error is received indicating a failure to update PDS, then the GP2GP process ends as the Patient has not been registered.
| MUST |
GP2GP_Req_21 | If an error is encountered updating PDS the user is to be prompted to contact the National Help Desk or their Clinical System Supplier Help Desk to resolve the issue. Note: PDS system retries are not possible, but if the user is present and logged in with the appropriate RBAC permissions they may attempt to re-register the Patient. | SHOULD |
GP2GP_Req_22 | On receiving a PDS Successful Update Response the following steps are now triggered by the Requesting System to transfer the EHR using the GP2GP Requesting Adaptor | MUST |
Step 6 - Query SDS API for Provider ASID
The Requesting System will now need to retrieve the Accredited System Identifier of the Sending Site (now the Patients previous GP Practice). These are required so they can be passed to the GP2GP Requesting Adaptor so it can route the request via Spine Message Handling Service (MHS).
Retrieve ASID details | ||
Requirement ID | Requirement Text | Level |
---|---|---|
GP2GP_Req_23 | The Requesting System performs the GP2GP process only with the previously registered GP Practice ODS details retrieved in Step 3 obtained from PDS. | MUST |
GP2GP_Req_24 | The Requesting System queries SDS for the Patients previous GP Practice ASID (Accredited System Identifier) which is needed to create the request to the GP2GP Requesting Adaptor GPC API Facade endpoint. To query SDS for the Provider ASID it will need
Further detail on the SDS API can be found here Spine Directory Service - FHIR API | MUST T |
GP2GP_Req_25 | If the lookup to SDS fails or no ASID exists for any reason (e.g. the previous practice was a Defence Medical Services that does not support GP2GP) then the GP2GP process cannot proceed as the Sending Site end point has not been identified. The GP2GP status for this transfer in the workflow will be marked as ‘failed’ and will indicate that the user must contact the Sending Site as no GP2GP request was made. | MUST |
GP2GP_Req_26 | The Requesting System is permitted to perform a retry of the lookup to SDS if the error returned is a timeout. | MAY |
GP2GP_Req_27 | If the error persists the user is to be prompted that an error has occurred and the GP2GP process will not proceed until the system issue has been resolved. | SHOULD |
GP2GP_Req_28 | The failure to perform the lookup on SDS results in the automatic generation of a ticket to the Requesting System Service Desk | SHOULD |
GP2GP_Req_29 | If the SDS lookup is successful then the Requesting System will need to build the request for the GP2GP Requesting Adaptor | MUST |
Step 7 - Build request to migrate structured record
The GP2GP Requesting Adaptor provides a GP Connect like API facade. The Requesting System will now need to build the request for the EHR and post this to the facade to initiate the EHR transfer..
Retrieve ASID details | ||
Requirement ID | Requirement Text | Level |
---|---|---|
GP2GP_Req_30 | The Requesting System now constructs and posts the bespoke migratestructuredrecord request to the Requesting Adaptor GPC API Facade endpoint URL ( The following is required to call this endpoint
| MUST |
GP2GP_Req_31 | The Requesting System uses only the Sending System (Providers) ASID as obtained from the SDS Query in Step 6 and the Sending System (Providers) ODS code obtained from Step 3. | MUST |
GP2GP_Req_32 | The ConversationId is retained by the Requesting System and used for all further calls for the Patient’s NHS number (this EHR transfer) | MUST |
GP2GP_Req_33 | The endpoint also requires a JSON body that includes the Patient NHS number. The format of the body is as follows: { | MUST |
GP2GP_Req_34 | As soon as the Requesting System has posted the GP C 1.6 migratestructuredrecord request to the Requesting Adaptor GPC API Facade endpoint URL it should receive a 202-accepted response. This means the adaptor has received the request and is validating and making the relevant requests. The Requesting System now begins to poll the endpoint for a response. Polling details are set out in Step 14. | MUST |
GP2GP Requesting Adaptor converts and sends HL7 request
Step 8 - Requesting Adaptor validates request
The GP2GP Requesting Adaptor has now received the Requesting Site GP Connect migratestructuredrecord request.
It will now take the following actions
Check the message is well formed (it can retrieve the NHS number of the Patient in the request)
Checks the url of the recipient GP2GP endpoint to ensure it is compliant using the MHS Adaptor
If the body is malformed in a way that the NHS number cannot be extracted the Migrate Structured endpoint will respond with 422 Unprocessable Entity
and an Operation Outcome of INVALID_RESOURCE
:
The Content-Type
header must equal application/fhir+json
otherwise the response will be 415 Unsupported Media Type
.
If any of the following headers are missing, then the Migrate Structured endpoint will respond with 400 Bad Request
.
to-asid
from-asid
to-ods
from-ods
Any errors will be posted to the GPC API Facade endpoint URL and the request for the EHR will not be processed and this is is picked up by the Requesting System in Step 14.
Step 9 - Requesting Adaptor validates request
The Requesting Adaptor will now attempt to convert the migratestructuredrecord request to a HL7 request. Should the conversion fail or cannot be sent for any reason it will generate a 500 Internal Server Error
and post to the GP C Facade endpoint URL. The the request for the EHR will not be processed and this is is picked up by the Requesting System when polling the Adaptor in step 14.
Provided the above steps are successful then the Requesting Adaptor will now send the HL7 request to the Sending System via Spine.
Providing the EHR Process
There are no changes to the process for existing System Suppliers using GP2GP HL7. So as to provide context this is a high level overview of the steps taken in GP2GP for the Sending Site once it has received the HL7 request.
Please note in the case of failure, all HL7 negative acknowledgements have been mapped to appropriate GP Connect error codes (Please see Appendix A). These will be provided to the Requesting System via the GP2GP Requesting Adaptor as in Step 14 so it can take the appropriate action.
Step 10 - Sending Site validates the HL7 request
As per the GP2GP 2.2b v7.2 HL7 Requirements
The Sending system shall automatically check the local Patient index for the NHS Number supplied on the EHR Request, populating the Application Acknowledgement with response code 06 if the Patient is not registered at the practice.
The Sending system must query PDS to ensure the registered GP Practice details are consistent with the EHR Request before the EHR Response is sent. If the current GP Practice on PDS does not match the Requesting practice the Sending system must return a negative acknowledgement with Response code 19 (Requesting practice is not the Patient’s current primary healthcare provider)
A negative application acknowledgement message shall also be returned if an EHR Request that cannot be fulfilled for other reasons, including GP2GP messaging not enabled (End Point setup but GP2GP configuration switched OFF) (Response code 07)
Step 11 - Sending Site generates the HL7 EHR
The Sending Site will now generate the EHR. If any attachments fail to be retrieved placeholders will be created. This will generate tasks for users to print these attachments that will then be sent manually off system via PCSE (Please see Appendix B for further information on PCSE)
If the Sending Site fails to generate the EHR extract it will send a negative acknowledgement (Response code 10)
Step 12 - Sending Site sends the HL7 EHR
The Sending Site will now commence the sending of any Common Point to Point messages that form part of the EHR extract.
The Sending system will commence the sending of any Common Point to Point messages that form part of an EHR Extract immediately after a “continue” response is received from the GP2GP Requesting Adaptor.
The GP2GP Requesting Adaptor will not attempt to convert the HL7 message to FHIR until all Common Point to Point messages have been received.
Conversion and retrieval of the EHR Process
Step 13 - GP2GP Requesting Adaptor converts HL7 EHR to GP C Payload
The GP2GP Requesting Adaptor will now convert the HL7 record to GP Connect FHIR.
It will also parse all the documents (including any .txt placeholders) from the HL7 file and write them individually to the file storage of the GP2GP Requesting Adaptor so they can be individually retrieved by the Requesting System directly from the S3 file storage.
At this point it will provide a 200 response
and the GP Connect payload to GP Connect API Facade endpoint URL.
Should the conversion have failed it will provide a 500 Internal Server Error
error. This will be posted to the GP Connect API Facade endpoint URL. It will also post a HL7 ack to the incumbent sending site Error 11 Failed to successfully integrate EHR Extract
so the incumbent system is aware to alert its users to print the EHR and send via PCSE.
Step 14 - Requesting System polls the adaptor
The Requesting System will need to continually poll the adaptor to retrieve the outcome of any GP2GP transfer.
If the request has been successfully fulfilled by the Sending Site and converted by the adaptor it can validate the FHIR payload, retrieve the documents and integrate the record.
Should it determine there has been a failure in processing the request it will need to determine the failure point and alert its users appropriately.
Retrieve ASID details | ||
Requirement ID | Requirement Text | Level |
---|---|---|
GP2GP_Req_35 | It is the responsibility of the Requesting System to ensure that the GP2GP Requesting Adaptor is monitored and available at all times so as to process any GP2GP EHR requests and responses. | MUST |
GP2GP_Req_36 | As described in Step 7, once the request has been made the Requesting System polls the GP C Façade endpoint of the GP2GP Requesting Adaptor. This is done initially at a a maximum timeframe of 120 seconds | MUST |
GP2GP_Req_37 | If a HTTP code 204 response is returned the request is in progress and the Requesting Site polls again at regular intervals. The following are suggested intervals but these can be agreed at the time of assurance:
Then continually every 480 minutes. | MUST |
GP2GP_Req_38 | If a 200 OK/completed GP C HTTP response has been returned and the EHR payload has been successfully delivered then the Requesting System now follows the requirements in Step 15 | MUST |
GP2GP_Req_39 | If the Requesting System identifies any Operational Outcome (error) then it must mark the transfer as failed and the GP2GP process ends. Please see Appendix A (Negative Acknowledgments) for further information. | MUST |
GP2GP_Req_40 | The Requesting System must make the user aware that the process has failed for this GP2GP transfer and whether they should expect the printed EHR from the Sending Site via PCSE. Please see Appendix A (Negative Acknowledgments) for further information. | MUST |
GP2GP_Req_101 | Where a GP2GP transfer has failed, the Sending Site may attempt a re-send of the EHR. The Requesting System will need to allow receipt of a re-sent EHR that has the same Conversation ID of the EHR that previously failed. The Requesting System will also update its GP2GP workflow associated with the outcome of the resend (if it fails again or is successful). | must |
Prepare to integrate the record
This initial step ensures that the record bundle the NME Requesting Site retrieves is of a format that is valid and can be integrated, before it identifies and retrieves its associated documents.
Step 15 - Validate incoming FHIR record
Validation | ||
Requirement ID | Requirement Text | Level |
---|---|---|
GP2GP_Req_41 | When the Requesting System polls the GP C Facade endpoint of the GP2GP Requesting Adaptor and received a 200 completed HTTP Operational Outcome it will then retrieve the FHIR structured record from the GP2GP Requesting Adaptor. | MUST |
GP2GP_Req_42 | The Requesting System validates the incoming EHR and retrieves all documents before committing the EHR to its database | MUST |
GP2GP_Req_43 | The Requesting System ensures the structured record bundle is well formed and contains all the necessary resources/profiles | MUST |
GP2GP_Req_44 | For the avoidance of doubt the validation does not involve any user involvement, it is strictly a system based validation. | MUST |
GP2GP_Req_45 | The Requesting System ensures that any validation on the incoming record bundles Patient profile does not prevent it from accepting the record without the Patient name* | MUST |
GP2GP_Req_46 | If the initial validation is successful the Requesting System now identifies and retrieve all associated documents. | MUST |
GP2GP_Req_47 | If the Requesting System identifies any issues with the GP C structured record bundle provided it will provide the following error to the GP2GP Requesting Adaptor Endpoint facadelocation/$gpc.ack With the following: header fields: confirmationResponse : “failed_to_integrate“, conversationID: “string“ The GP2GP Requesting Adaptor will then convert this to the appropriate HL7 negative acknowledgment:
| MUST |
GP2GP_Req_48 | In the case of failure the Requesting System updates the GP2GP transfer status as failed | MUST |
GP2GP_Req_49 | In the case of failure the Requesting System makes the user aware that validation has failed and no EHR will be available and a printed EHR and attachments will be provided by the Sending Site via PCSE. | MUST |
Re GP2GP_Req_45:
GP Connect mandates a sending system to provide the Patient name and the NHS number in the Patient profile when providing a record. In GP2GP HL7 the EHR is not provided with the Patient name only the NHS number. As the GP2GP Requesting adaptor is converting the HL7 record this requirement has been relaxed for the adaptor only as it is a GP Connect Façade API. The GP2GP Requesting adaptor will convert the HL7 to GP Connect and will not provide the Patient name (as it has not received this information in the GP2GP HL7 EHR). This mimics current GP2GP HL7 behaviour. The Requesting System (the NME in this case) will already have the Patient name on their system from the PDS trace and Patient registration process.
Step 16 - Identifying and retrieving attachments
Document references returned are identified within the Patient’s structured record identified via "resourceType": "DocumentReference"
. The key pieces of information are in the "attachment"
section which provides the mime-type of the file (MSWord, PDF, etc.), and the URL to retrieve the file and its size on disk in bytes.
Identify attachments | ||
Requirement ID | Requirement Text | Level |
---|---|---|
GP2GP_Req_50 | Having checked that this is a well formed structured record the Requesting System then parses the file and identifies if there are any document references. | MUST |
GP2GP_Req_51 | The Requesting System now establishes the number of documents within the structured record bundle and creates a cached status against each document. | MUST |
GP2GP_Req_52 | The Requesting System now attempts to retrieve each document using the URL supplied in the | MUST |
GP2GP_Req_53 | The Requesting System attempts to retrieve all attachments regardless of the size of the attachment (no upper limits are to be set). Please see the section on file size below in Appendix D. | MUST |
GP2GP_Req_54 | The Requesting System keeps track of each documents status. A document transfer can have a status of
| MUST |
GP2GP_Req_55 | If the Requesting System identifies that either:
Then it proceeds to Step 17 (Prepare to integrate) | MUST |
GP2GP_Req_56 | If the Requesting System encounters an error when trying to retrieve an attachment(s) from the GP2GP Requesting Adaptor storage then it creates an automatic Service Desk alert/ticket for the Requesting System support team. | SHOULD |
GP2GP_Req_57 | If the issue cannot be resolved within 1 hour, then the Requesting System creates a placeholder. This is so as not to delay the integration of the EHR because of a failed document(s) | MUST |
GP2GP_Req_58 | The placeholder is a file that is text with a ‘txt’ suffix and MIME type text/plain. | MUST |
GP2GP_Req_59 | The file is named as follows: AbsentAttachment_[description]_[Owning Organisation ODS Code]_[Date created].txt Where [id] is the GP Connect ‘Document Reference Id’ and [description] is the Document Reference ‘Description’. For example: AbsentAttachment_discharge summary_A12345_18012022.txt The title is labelled with these data items to make it clear what the document is, when it was created and who was the original owner. This is to help users identifying attachments, especially with the pain point where a record moves from A-B-C, where B has missing attachments from A and then C has missing attachments from both A and B and needs to be able to clearly identify where the missing attachments came from originally. | MUST |
GP2GP_Req_60 | Within the placeholder file the text is as set out in Appendix D - GP C placeholder. An example is provided here
| MUST |
GP2GP_Req_61 | Once all placeholders have been created the Requesting System proceeds to Step 17 | MUST |
GP2GP_Req_62 | The Requesting System alerts its users to any placeholders it has created (i.e. document could not be retrieved) and that the user will need to contact the Sending Site should they want a copy. Further information can be found in Appendix D. | MUST |
GP2GP_Req_63 | If after the record has been integrated (the completion of Step 17) either
The Requesting System has the functionality to allow the user to delete the .txt placeholder and insert the retrieved document it related to. This is because it is preferable to have a placeholder replaced with the actual document so as not to ensure the attachment is available and to prevent the propagation of placeholders in onward transfers | SHOULD |
Integrate the record
Once the the electronic Patient record has been validated and all documents retrieved (or placeholders created) the Requesting System will now look to integrate/file all elements into its database, this is all done without any user interaction.
Step 17 - Automatic Integration of the Record Bundle
The following must have occurred before integration of the record can take place.
The NME Requesting System has polled the GP C Façade endpoint of the GP2GP Requesting Adaptor and received a 200 completed HTTP Operational Outcome that includes the Patient record bundle (EHR).
All attachments identified in the Patient record bundle (EHR) have either
been successfully retrieved from the Requesting Adaptor local file storage
failed and the Requesting System has generated a placeholder
The following set of requirements follow the same principal for auto-integration, but the wording has changed as they only apply to suppliers who are using the GP2GP Requesting Adaptor and there are slight changes in behaviour.
Integrate the EHR | ||
Requirement ID | Requirement Text | Level |
---|---|---|
GP2GP_Req_64 | EHRs are automatically integrated by the Requesting system immediately, without delay after they have been received. (As a performance measure, EHRs are to be integrated within 20 minutes of receipt). | MUST |
GP2GP_Req_65 | Automatic integration is a System based activity, there is no user involvement in triggering the integration task. | MUST |
GP2GP_Req_66 | Requesting System Users are not prevented from accessing and using the Requesting System whilst the integration system task is being processed. For example: A User must be able to use the Requesting System to book an appointment, open a EHR or add a consultation whilst the Requesting System is performing integration processes. | MUST |
GP2GP_Req_67 | The Requesting System handles the following scenarios in such a way as to prevent loss of data during automatic integration:
| MUST |
GP2GP_Req_68 | The Requesting System only performs a full integration, there is no concept of a partial integration of the Patients EHR. (e.g. integrating Observations, Medications and not integrating Allergies is not allowed) | MUST |
GP2GP_Req_69 | If the integration of the record is successful then the Requesting System provides the following success message to the GP2GP Requesting Adaptor: Endpoint facadelocation/ With the following: header fields: confirmationResponse : “accepted“, conversationID: “string” The GP2GP Requesting Adaptor will then convert this to the appropriate HL7 Positive acknowledgment
| MUST |
GP2GP_Req_70 | If the automatic integration system task cannot be started, completed or fails to integrate, the Requesting System creates an automatic Service Desk alert/ticket for the Requesting System support team. | SHOULD |
GP2GP_Req_71 | The Requesting System creates an alert for the user to let them know that the integration has failed and is being investigated along with the ticket ID. | SHOULD |
GP2GP_Req_72 | The failure to integrate means losing the EHR and fall back to the off system process. To avoid this the Requesting System assigns the issue as a priority and looks to re-integrate the EHR within 72 hours. | SHOULD |
GP2GP_Req_73 | If no resolution can be found to the issue within 72 hours then the Requesting System will automatically provide the following error to the GP2GP Requesting Adaptor Endpoint facadelocation/$gpc.ack With the following: header fields: confirmationResponse : “failed_to_integrate“, conversationID: “string“ The GP2GP Requesting Adaptor will then convert this to the appropriate HL7 negative acknowledgment
This will trigger the Sending Site to print the EHR and all attachments for sending off system via PCSE. | MUST |
GP2GP_Req_74 | If the 72 hours has eclipsed the Requesting System updates the GP2GP transfer status as failed and makes the user aware that no EHR will be available as integration failed and a printed EHR and attachments will be provided by the Sending Site via PCSE. | MUST |
GP2GP_Req_102 | When the Requesting System is integrating a re-send of an EHR, it must not overwrite any data that has been entered since the Patient has been registered. | must |
Step 18 - Post integration actions
Once an EHR has been integrated along with all the attachments and any placeholders, there a number of system checks that need to be performed and potential tasks created for the user(s).