ppazos / cabolabs-ehrserver

Open platform to manage and share standardized clinical data, designed by @ppazos at CaboLabs Health Informatics.
https://cabolabs.com
Apache License 2.0
179 stars 110 forks source link

SYNC - implement the updated resource sync #992

Closed ppazos closed 5 years ago

ppazos commented 6 years ago
  1. use the syncLog.resourceLastUpdated to know if the resource was updated and is dirty from the last sync.

  2. add the logic to the sync job.

The issue is updating a User won't change the lastUpdated of an Account, so the Account won't be updated. We need more services to be able to sync just individual entities when modifications happen, and use aggregated syncs only for the first sync.

This is for all but Contribution since contribs can't be updated.