together with @dserkowski we working at OpenMRS Sync 2.0 project. More information about that: https://wiki.openmrs.org/display/projects/Sync+2.0 . The Sync 2.0 MVP (Patient synchronization) already works. There is an issue with patient conflicts and we would like to ask OpenMRS Community if the solution already exists.
To illustrate the problem look into the following link: https://wiki.openmrs.org/display/projects/Sync+2.0+Demo+Environment
- Imagine a situation when the Patient is created/registered in the clinic Sync2 on Monday and Sync3 on Tuesday. The data synchronization is set at three-day intervals. The data will be pushed at the same time. Assume that the Patient identifiers are set as Personal ID Number. Merging patients will fail with the message “The patient with the given Patient Identifier already exists”.
Is there implemented the solution for this issue?
- The patient was created on the Sync2 instance. Synchronization will success and on the Sync1, Sync2, Sync3, and Sync4 the same patient appears. Synchronization interval is set to 3 days. Clinic Sync2 update patient’s address, clinic Sync3 another information of this patient. During second synchronization one update will be overridden by another. (Patient on the parent instance Sync1 will be updated by Sync2, the next updated patient on Sync1 will be overridden by Sync3 update). Any thoughts how we can resolve this with the current core? Every object has ‘updated date’, but I didn’t find a possibility to check single field updated date.
Maybe you had a similar problem and a solution for this? Or any thoughts?
Thanks in advance!