You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-266Lines changed: 4 additions & 266 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,276 +21,14 @@ GP2GP 2.2b producer, or those wishing to decommission their existing producer, m
21
21
1.[Guidance on integrating with the adaptors APIs](#how-to-query-the-ehr-status-api)
22
22
1.[Documentation on how this adaptor maps GPConnect concepts to GP2GP concepts](https://github.com/NHSDigital/patient-switching-adaptors-mapping-documentation)
23
23
24
-
## How to query the EHR Status API
24
+
## How to query the EHR Status API and the Requests endpoint
25
25
26
26
An API is provided to query the status of any transfer to an incumbent.
27
-
28
-
Requests can be made to the following endpoint using the *Conversation ID (SSP-TraceID)* of the transfer:
29
-
30
-
```http request
31
-
{location of gp2gp service}/ehr-status/{conversationId} [GET]
32
-
```
33
-
34
-
The response will contain the following fields:
35
-
36
-
### EhrStatus
37
-
38
-
| Field name | Description | Data type | Possible values | nullable |
| originalRequestDate | The date and time of the original request | ISO-8601 || False |
41
-
| migrationStatus | The current state of the transfer, a status of COMPLETE_WITH_ISSUES is given if placeholder documents were sent | string / enum | COMPLETE <br/><br/>COMPLETE_WITH_ISSUES <br/><br/> FAILED_NME <br/><br/> FAILED_INCUMBENT <br/><br/> IN_PROGRESS | False |
42
-
| attachmentStatus | An array of statuses for each document sent during the transfer | Array of **AttachmentStatus** (See below) || False |
43
-
| migrationLog | An array containing details of acknowledgments received during the transfer | Array of **ReceivedAcknowledgement** (See below) || False |
44
-
45
-
<br/>
46
-
47
-
### Subtypes
48
-
49
-
#### AttachmentStatus
50
-
51
-
| Field name | Description | Data type | Possible values | Nullable |
| identifier | An array of identifiers taken from the `identifier` element of the GP Connect `DocumentReference`| Array of **Identifier** (see below) || False |
54
-
| fileStatus | The status of the document sent to the winning practice (can be used to identify if a placeholder document was sent) | string / enum | PLACEHOLDER <br/><br/>ORIGINAL_FILE <br/><br/>ERROR | False |
55
-
| filename | The filename sent to winning practice in the GP2GP message | string || False |
56
-
| originalDescription | The description of the file as given by the `description` element of the GP Connect `DocumentReference` resource.<br/><br/> This is inserted into the GP2GP placeholder document as the original filename and suffix. So should be of the form *filename.suffix*, e.g. *referral.txt*| string || True |
57
-
58
-
<br/>
59
-
60
-
#### Identifier
61
-
62
-
| Field name | Description | Data type | Nullable |
#### Failed by requester, with multiple positive acknowledgements for COPC messages (without conversation closed) and one negative acknowledgement for EHR Extract (conversation closed and error):
| initialRequestTimestamp | The date and time of the original request. | ISO-8601 || False |
256
-
| actionCompletedTimestamp | The date and time of when the transfer completed. | ISO-8601 || False |
257
-
| nhsNumber || string || False |
258
-
| conversationId || string || False |
259
-
| fromAsid || string || False |
260
-
| toAsid || string || False |
261
-
| fromOdsCode || string || False |
262
-
| toOdsCode || string || False |
263
-
| migrationStatus | The current state of the transfer, a status of COMPLETE_WITH_ISSUES is given if placeholder documents were sent | string / enum | COMPLETE <br/> COMPLETE_WITH_ISSUES <br/> FAILED_NME <br/> FAILED_INCUMBENT | False |
0 commit comments