Connections Actions, History & Interaction with GMC
NOTE: This documentation currently pertains to the early implementations of the “new” connections application and is subject to change
It’s worth keeping the following information on data models in mind when reading this document:
Connections Data Models
The following DTO is used for the API call in all cases:
Field | Notes |
---|---|
changeReason |
|
designatedBodyCode |
|
doctors | List of DoctorInfoDtos:
|
Add Connection
The GMC endpoint TryAddDoctor is called, passing the following information:
GMC Number
Change Reason
DB code
On receiving response from GMC save a new Connection Request Log, and depending on the response:
If an error occurred, create an exception
otherwise send a message to recommendation service to update the designated body code - this is poorly named as “removeDesignatedBodyCode”
This does not currently update the Elasticsearch index so this will not be reflected in the front end!
Remove Connection
The GMC endpoint TryRemoveDoctor is called, passing the following information:
GMC Number
Change Reason
DB code
On receiving response from GMC save a new Connection Request Log, and depending on the response:
If an error occurred, create an exception
otherwise send a message to recommendation service to update the designated body code - this is poorly named as “removeDesignatedBodyCode”
This does not currently update the Elasticsearch index so this will not be reflected in the front end!
Hide Connection
A new Hide Connection Log is created
This does not currently update the Elasticsearch index so this will not be reflected in the front end!
Unhide Connection
An existing Hide Connection Log is deleted
This does not currently update the Elasticsearch index so this will not be reflected in the front end!
GMC Client Implementation
Architecture note: connections maintains it’s own interactions with the GMC API rather than going via the GMC Client Service, we might want to reconsider this.
Slack: https://hee-nhs-tis.slack.com/
Jira issues: https://hee-tis.atlassian.net/issues/?filter=14213