@startuml skinparam sequenceArrowThickness 2 skinparam roundcorner 5 skinparam maxmessagesize 180 skinparam sequenceParticipant bold title Create PractitionerRole sequence diagram actor "Integrating application user" as User #CornflowerBlue participant "Integrating application" as A #CornflowerBlue participant " HPI" as B #CornflowerBlue participant "HPI Practitioner Role database" as C #CornflowerBlue ||| User -> A: User specifies Practitioner, Organisation, Facility, Start date activate A ||| A -> B: POST/PractitionerRole activate B ||| B -> B: Validate[] ||| B -> C: Add request activate C ||| C -[dashed]-> B: deactivate C ||| B -[dashed]-> A: deactivate B ||| A -> User: 201 Created HTTP status code deactivate A ||| @enduml