From df5dbfd773cb7f4a51ad4e0206afc92895eb6103 Mon Sep 17 00:00:00 2001
From: tmsMedcom <88831880+tmsMedcom@users.noreply.github.com>
Date: Wed, 26 Jun 2024 14:05:39 +0200
Subject: [PATCH] Updated layout
---
.../governance-for-careCommunication.md | 83 +++++++++++++------
1 file changed, 56 insertions(+), 27 deletions(-)
diff --git a/docs/assets/documents/governance-for-careCommunication.md b/docs/assets/documents/governance-for-careCommunication.md
index 51d993a..8286519 100644
--- a/docs/assets/documents/governance-for-careCommunication.md
+++ b/docs/assets/documents/governance-for-careCommunication.md
@@ -25,10 +25,15 @@ A Provenance instance describes the activity of the current message, for example
## Rules regarding new CareCommunication
**Sender system**
-1. User of a sender system **SHALL** be able to send a new CareCommunication. The sender system **SHALL** include a unique communication identifier for the message thread.
+
+|Rule name|Rules to contrain the use of new CareCommunications|
+|:---|:---|
+|medcom-carecommunication-1 | User of a sender system **SHALL** be able to send a new CareCommunication. The sender system **SHALL** include a unique communication identifier for the message thread. |
**Receiver system**
-2. User of receiver systems **SHALL** be able to see a new CareCommunication is received in a new message thread.
+|Rule name|Rules to contrain the use of new CareCommunications|
+|:---|:---|
+|medcom-carecommunication-2 | User of receiver systems **SHALL** be able to see a new CareCommunication is received in a new message thread. |
## Rules regarding replies
It is a requirement that a system can send a reply to an already received CareCommunication, which can be a new message, reply or forwarding. It is also a requirement that a system can receive and display all message segments in the message to create a historical overview for the user. Figure 1 illustrates the flow for replying with CareCommunications.
@@ -40,21 +45,26 @@ It is a requirement that a system can send a reply to an already received CareCo
**Sender system**
-3. User of a sender system **SHALL** be able to reply to a new CareCommunication or the latest received reply or forwarded CareCommunication. In these cases, the communication identifier **SHALL** remain the same in the reply.
-4. User of a sender system SHOULD be able to reply to the latest message when the latest message is sent from the sender system itself.
-5. User of the sender system **SHALL** NOT be able to reply to messages which isn't the latest. If this is necesary, a new message thread with a unique communication identifier **SHALL** be created.
-6. When replying to a CareCommunication that already includes an attachment, the base64-encoded content **SHALL** NOT be included, but the identifier, timestamp and title **SHALL** be included, and author information **SHALL** be included if available.
+|Rule name|Rules to contrain the use of reply CareCommunications|
+|:---|:---|
+|medcom-carecommunication-3 | User of a sender system **SHALL** be able to reply to a new CareCommunication or the latest received reply or forwarded CareCommunication. In these cases, the communication identifier **SHALL** remain the same in the reply. |
+|medcom-carecommunication-4 | User of a sender system SHOULD be able to reply to the latest message when the latest message is sent from the sender system itself. |
+|medcom-carecommunication-5 | User of the sender system **SHALL** NOT be able to reply to messages which isn't the latest. If this is necesary, a new message thread with a unique communication identifier **SHALL** be created. |
+|medcom-carecommunication-6 | When replying to a CareCommunication that already includes an attachment, the base64-encoded content **SHALL** NOT be included, but the identifier, timestamp and title **SHALL** be included, and author information **SHALL** be included if available. |
-**Receiver system** **HUSK KRAV OM tydelige referencer mellem meddelelser.**
-7. User of receiver system **SHALL** be able to see the received replies in the same message thread as previous CareCommunication with identical communication identifier.
-8. In cases where a CareCommunication does not arrive and an unknown message segment is afterwards included in a received CareCommunication, the unknown message segment **SHALL** be displayed to the user in the associated message thread. The messages **SHALL** be ordered by the timestamp from the message segment. It **SHALL** be clear to the user that an unread message is received.
-9. In cases where a CareCommunication arrives in unexpected order the received messages **SHALL** be displayed to the user in the associated message thread, ordered by the timestamp from the message segment. When a delayed CareCommunication appears, it **SHALL** be displayed in the same message thread. It **SHALL** be clear to the user that an unread message is received.
-10. In cases where a reply is received with an unknown communication identifier, the message segment(s) **SHALL** be displayed to the user in a new message thread.
-> Note: For the scenarios (8, 9 and 10) the handling in the receiver system is the same: A) create a new message thread if the communication identifier is unknown or if known, include the message in the message thread with an identical communication identifier, B) order the messages based on the time stamp in the message segment, and C) make it clear to the user that an unread message is received.
+**Receiver system**
-11. When two systems, at the same time, sends a reply to the same CareCommunication with the same communication identifier, both systems **SHALL** be able to handle receiving a reply which is not the latest reply in the message thread in the system. This is managed by including the received CareCommunication in the message thread with the same communication identifier. The flow for parallel sent CareCommunications is illustrated on Figure 2. It **SHALL** be clear to the user that an unread message is received and which message it is a reply to. If the time stamps in the message segments are different, the messages **SHALL** be ordered by these and if they are identical the message segments **SHALL** be ordered by the sender of the messages. The message sent by the initiator of the communication **SHALL** appear as the first, followed by the message send by the replier.
-12. The user **SHALL** be able to continue the communication in the message thread after the flow of messages received in 8, 9, 10, and 11.
+|Rule name|Rules to contrain the use of reply CareCommunications|
+|:---|:---|
+|medcom-carecommunication-7 | User of receiver system **SHALL** be able to see the received replies in the same message thread as previous CareCommunication with identical communication identifier.|
+|medcom-carecommunication-8 | In cases where a CareCommunication does not arrive and an unknown message segment is afterwards included in a received CareCommunication, the unknown message segment **SHALL** be displayed to the user in the associated message thread. The messages **SHALL** be ordered by the timestamp from the message segment. It **SHALL** be clear to the user that an unread message is received.|
+|medcom-carecommunication-9 | In cases where a CareCommunication arrives in unexpected order the received messages **SHALL** be displayed to the user in the associated message thread, ordered by the timestamp from the message segment. When a delayed CareCommunication appears, it **SHALL** be displayed in the same message thread. It **SHALL** be clear to the user that an unread message is received. |
+|medcom-carecommunication-10 | In cases where a reply is received with an unknown communication identifier, the message segment(s) **SHALL** be displayed to the user in a new message thread.|
+|medcom-carecommunication-11 | When two systems, at the same time, sends a reply to the same CareCommunication with the same communication identifier, both systems **SHALL** be able to handle receiving a reply which is not the latest reply in the message thread in the system. This is managed by including the received CareCommunication in the message thread with the same communication identifier. The flow for parallel sent CareCommunications is illustrated on Figure 2. It **SHALL** be clear to the user that an unread message is received and which message it is a reply to. If the time stamps in the message segments are different, the messages **SHALL** be ordered by these and if they are identical the message segments **SHALL** be ordered by the sender of the messages. The message sent by the initiator of the communication **SHALL** appear as the first, followed by the message send by the replier.|
+|medcom-carecommunication-12 | The user **SHALL** be able to continue the communication in the message thread after the flow of messages received in 8, 9, 10, and 11.|
+
+> Note: For the scenarios (8, 9 and 10) the handling in the receiver system is the same: A) create a new message thread if the communication identifier is unknown or if known, include the message in the message thread with an identical communication identifier, B) order the messages based on the time stamp in the message segment, and C) make it clear to the user that an unread message is received.