@startuml CCNewMessageAttachment 'layout skinparam class { BackgroundColor White BorderColor Black ArrowColor Black } hide circle hide empty members skinparam SameClassWidth true skinparam Ranksep 10 'title title Simplified example: New message with Attachment 'Message 1: New message package "Message 1: New message" as new <>{ class "Bundle 1" as newB { Bundle.id = BUN1 Bundle.timestamp = 2021-12-03T14:00:10Z ... } class "MessageHeader 1" as newMH{ MessageHeader.id = MHID1 ... } class "Sender Organization 1" as newSOrg{ ... } class "Reciver Organization 1" as newROrg{ ... } class "Communication 1" as newCom{ Communication.status = "unknown" Communication.class = "medicine" Communication.sent = 2021-12-03T14:00:00Z Communication.payload[0].contentString = "Question regarding medicine" Communication.payload[0].payloadDateTimeExtension = 2021-12-03T13:34:00Z Communication.payload[0].payloadAuthorExtension = Practitioner/Prac1 Communication.payload[1].contentAttachment.data = "IlBERi1kb2N1bWVudCBvZiBNZWRpY2F0aW9uIFJlY2llcHQi" Communication.payload[1].contentAttachment.title = "Medication Receipt" Communication.payload[1].contentAttachment.contentType = "application/pdf" Communication.payload[1].payloadDateTimeExtension = 2021-12-02T12:34:56Z Communication.payload[1].payloadAuthorExtension = Practitioner/Prac1 ... } class "Encounter 1" as newENC{ Encounter.status = "in-progress" Encounter.class = "IMP" ... } class "Patient 1" as newPT{ ... } class "Practitioner 1" as newPrac{ Practitioner.identifier = Prac1 ... } class "PractitionerRole 1" as newPracR{ ... } class "Provenance 1" as newPRO{ Provenance.target = MessageHeader/MHID1 Provenance.activity = "new-messsage" Provenance.agent.who = "Sender Organization 1" ... } newB -[hidden]- newMH newMH -[hidden]- newSOrg newSOrg-[hidden]-newROrg newROrg-[hidden]-newCom newCom -[hidden]- newENC newENC-[hidden]-newPT newPT-[hidden]-newPrac newPrac-[hidden]-newPracR newPracR-[hidden]-newPRO @enduml