Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Doctor exists in GMC and TIS (and gmc details match up) - this works fine ✅

  2. Doctor exists in GMC only - an error is thrown when trying to fetch details for the non existent doctor in TIS ⚠️

  3. Doctor exists in TIS only - an error is thrown when trying to fetch notes for the non-existent doctor in reval (and would also be thrown when fetching connection history) ⚠️

Current Operation

  • Two connection URLS are called on page load

    1. /api/trainee/{gmcId} - This appears to populate the sidebar

    2. /api/connection/{gmcId}

Proposal 1

Drawio
mVer2
zoom1
simple0
inComment0
custContentId3787227160
pageId3787096075
lbox1
diagramDisplayNameConnectionsDetailsAggregation.drawio
contentVer1
revision1
baseUrlhttps://hee-tis.atlassian.net/wiki
diagramNameConnectionsDetailsAggregation.drawio
pCenter0
width551
links
tbstyle
height501

Proposal 2

Drawio
mVer2
zoom1
simple0
inComment0
custContentId3786866736
pageId3787096075
lbox1
diagramDisplayNameUntitled Diagram-1686648060239.drawio
contentVer3
revision3
baseUrlhttps://hee-tis.atlassian.net/wiki
diagramNameUntitled Diagram-1686648060239.drawio
pCenter0
width451
links
tbstyle
height402

Proposal 3

Code Block
from("direct:trainee")
    .multicast(AGGREGATOR)
    .parallelProcessing()
    .to("direct:trainee-details")
    .to("direct:traineenotes-get")
    .to(// gmc doctor endpoint)
from("direct:trainee-details")
    .setHeader(OIDC_ACCESS_TOKEN_HEADER).method(keycloakBean, GET_TOKEN_METHOD)
    .setHeader(AggregationKey.HEADER).constant("programme")
    .toD(serviceUrl + API_TRAINEE);
from("direct:traineenotes-get")
    .setHeader(AggregationKey.HEADER).constant("notes")
    .toD(coreServiceUrl + API_TRAINEENOTES);
from(/*"direct:gmcdoctorendpoint"*/)
    .setHeader(AggregationKey.HEADER).constant("doctor")
    .toD(coreServiceUrl /*gmcDoctorEndpoint*/);
Drawio
mVer2
simple0
zoom1
inComment0
pageId3787096075
custContentId

...

3791454213
diagramDisplayNameUntitled Diagram-

...

1686904822629.drawio
lbox1
contentVer

...

1
revision

...

1
baseUrlhttps://hee-tis.atlassian.net/wiki
diagramNameUntitled Diagram-

...

1686904822629.drawio
pCenter0
width

...

641
links
tbstyle
height

...

324.5