@startuml

skinparam sequence {
LifeLineBackgroundColor #FF4E26

ParticipantBackgroundColor #72BEDB

QueueBackgroundColor #72BEDB
}

Queue MessageQueue

participant DentistTopicListener

participant EDIGateway

participant Tandlægesystem

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


{queue} DentistTopicListener ->> EDIGateway ++ : Send Anmodningsbesked

note right

Anmodningsbeskeden indeholder CPR-nummer på borgeren samt 

navn og adresse fra CPR samt e-mail adresse og telefonnummer,

hvis borgeren oplyste dette på Sundhed.dk.

end note

return

DeActivate ActivateDentistTopicListener

{dequeue} EDIGateway -->→ Tandlægesystem: Modtag notifikation om besked

{queue} <--> {dequeue}: Lidt efter




@enduml