@startuml

skinparam sequence {
LifeLineBackgroundColor #FF4E26

ParticipantBackgroundColor #72BEDB

QueueBackgroundColor #72BEDB
}

Queue MessageQueue

participant DentistTopicListener

participant EDIGateway

participant Tandlægesystem

participant Tandlæge

participant EDIPortalen

Note Over DentistTopicListener
B.1: En Borger har valgt en ny tandlæge og 
tandlægen kontaktes nu mhp. optagelse af 
borgeren.
end note

Activate DentistTopicListener

MessageQueue ->> DentistTopicListener

DentistTopicListener ->> EDIGateway ++ : Send Anmodningsbesked

DentistTopicListener --> DentistTopicListener: Undersøg beskedtype



note right

Der afsendes nu en passende

besked alt efter type.

end note

return

DeActivate ActivateDentistTopicListener

EDIGateway --> Tandlægesystem: Modtag notifikation om besked

Tandlæge --> Tandlægesystem: Tilgår 'indbakke' i tandlægesystem

Tandlægesystem --> EDIPortalen: Åbner besked


@enduml