Affects versions: None
Fix versions: 1.3-milestone-3
This will be in the patient-data-impl module, and prevents editing of the patient doc when the patient doc itself is locked by the same user. Displays a more meaningful reason.
Algorithm: checks if this document is a patient, and if yes, if it is locked by the current user.
user: the locking user
date: the locking date
reason: "It looks like you are already editing this patient record in another session. To avoid data loss, it is recommended to keep editing in that session. However, if you're sure you can't find the other session, you can click below to force editing." (CourtneyHum please review this message)