Sometimes the patient or studies get updated. This requires modifying the deduplicated data for affected studies and re-writing any indices. Also, sometimes studies come in with slightly different data for patient/query. The data for such studies should get recorded with the original information as stored, but in the end a single study object should be created that is relevant for all instances (last one in wins is probably the right solution here, but needs to be configurable).
Sometimes the patient or studies get updated. This requires modifying the deduplicated data for affected studies and re-writing any indices. Also, sometimes studies come in with slightly different data for patient/query. The data for such studies should get recorded with the original information as stored, but in the end a single study object should be created that is relevant for all instances (last one in wins is probably the right solution here, but needs to be configurable).