Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
synchronisation:introduction [2023/01/27 12:47] – [How to tell if synchronisation is happening] Gary Willetts | synchronisation:introduction [2023/11/15 21:28] (current) – [Data types] Craig Drown | ||
---|---|---|---|
Line 13: | Line 13: | ||
==== Definitions ==== | ==== Definitions ==== | ||
- | * The **//central | + | * The **//Central |
* aggregating the store data from all stores => enables centralised reporting, and a real-time backup | * aggregating the store data from all stores => enables centralised reporting, and a real-time backup | ||
* controlling how all of the stores sync with each other | * controlling how all of the stores sync with each other | ||
Line 24: | Line 24: | ||
* the syncing process is initiated from each remote site on a schedule, and pushes its own updated records to the central server first, before pulling any updated records from the central server | * the syncing process is initiated from each remote site on a schedule, and pushes its own updated records to the central server first, before pulling any updated records from the central server | ||
- | | + | === Primary vs Central vs Mirror servers === |
- | * The central | + | |
- | * Each sync site has a unique ID and connection parameters | + | |
+ | * The **// | ||
+ | * Each sync site has a unique ID and connection parameters, along with a list of the other sync sites with which it can send/ | ||
+ | |||
+ | === Active vs Collector === | ||
+ | |||
+ | * Each store must be **//Active//** on a //single// sync site, and that is where its own store data can be added, edited, and deleted. | ||
+ | * The **//Central server//** can have **// | ||
+ | * Each store that is **// | ||
+ | * **// | ||
+ | |||
+ | === Sync and data integrity === | ||
- | * Multiple copies of the same store can exist across multiple sites (see [[synchronisation: | ||
- | * each store is **// | ||
- | * a **// | ||
- | * a **// | ||
* To preserve data integrity, and to avoid potential clashes where more than one sync site tries to modify the same record, //only one sync site can edit/update any specific type of data//. There are some special cases (see [[synchronisation: | * To preserve data integrity, and to avoid potential clashes where more than one sync site tries to modify the same record, //only one sync site can edit/update any specific type of data//. There are some special cases (see [[synchronisation: | ||
Line 200: | Line 207: | ||
* **//Local data//** can be edited or imported on any site but doesn' | * **//Local data//** can be edited or imported on any site but doesn' | ||
* **//Sync data//** can only be edited on the central server but doesn' | * **//Sync data//** can only be edited on the central server but doesn' | ||
- | * **//Message data//** can be edited | + | * **//Message data//** can be created |
* Some data can fall into more than one type, depending on the situation. | * Some data can fall into more than one type, depending on the situation. | ||
- | ^ Data ^ | + | ^ Data ^ |
- | | Items | Central | Including item-related data e.g. item categories, units, BOM masters | | + | | Items | Central |
- | | Names (except patients) | Central | Including name-related data e.g. name categories, contacts, tags | | + | | Names (except patients) | Central |
- | | Merging of items, units and names (except patients) | Central | | | + | | Merging of items, units and names (except patients) | Central | Primary | |
- | | Groups and departments | Central | | | + | | Groups and departments | Central | Primary | |
- | | Item master lists and programmes | Central | | | + | | Item master lists and programmes | Central | Primary | |
- | | Budgets, periods and accounts | Central | | | + | | Budgets, periods and accounts | Central | Primary | |
- | | Transaction categories and payment types | Central | | | + | | Transaction categories and payment types | Central | Primary | |
- | | Purchase order categories | Central | | | + | | Purchase order categories | Central | Primary | |
- | | Custom data | Central | | | + | | Custom data | Central | Primary | |
- | | Barcodes | Central | | | + | | Barcodes | Central | Primary | |
- | | Currencies | Central | | | + | | Currencies | Central | Primary | |
- | | Options and properties | Central | | | + | | Options and properties | Central | Primary | |
- | | Location types | Central | | | + | | Location types | Central | Primary | |
- | | Regimens and indicators | Central | | | + | | Regimens and indicators | Central | Primary | |
- | | Drug interactions and warnings | Central | | | + | | Drug interactions and warnings | Central | Primary |
- | | Abbreviations and item directions | Central | Dispensary data | | + | | Vaccinators and vaccine settings | Central | Primary | |
- | | Diagnoses | Central | Dispensary data | | + | | Custom reports | Central |
- | | Insurance providers | Central | Dispensary data | | + | | Asset settings | Central | Primary | |
- | | Patient event types | Central | Dispensary data | | + | | Regions | Central | Primary | |
- | | Vaccinators and vaccine settings | Central | | | + | | Incoterms |
- | | Custom reports | Central | Standard reports are regenerated on each upgrade | | + | | Abbreviations and item directions |
- | | Asset settings | Central | | | + | | Diagnoses |
- | | Regions | Central | | | + | | Insurance providers | Central | Primary | Dispensary data | |
- | | Sites and sync-related preferences | + | | Patient event types | Central | Primary | Dispensary data |
- | | Dashboard reports | + | | Stores and non sync-related store preferences | Central store | Primary | |
- | | Messages | + | | Purchase orders (centralised) | Central store | Primary | | |
- | | Stores and non sync-related store preferences | Central store | | | + | | Tenders and quotes (centralised) | Central store | Primary | |
- | | Purchase orders (centralised) | Central store | | | + | | Payments (centralised) | Central store | Primary | |
- | | Payments (centralised) | Central store | | | + | | Visibility of items and names (except patients) | Central store | Primary | |
- | | Visibility of items and names (except patients) | Central store | | | + | | Visibility of existing patients and prescribers | Central store | Primary | | |
- | | Visibility of existing patients and prescribers | Central store | | | + | | Sites and sync-related preferences | Sync | Central | Changes on the central server indirectly update related records on remote sites | |
- | | Visibility of new patients and prescribers | Patient | New visibility records sent to central server | | + | | Dashboard reports | Sync | Central | | |
- | | Patients and prescribers | Patient | Including patient-related data e.g. PMR, insurance policies | | + | | Messages | Message | Store | Depends on sending and/or receiving store (which can be blank) |
- | | Merging of patients and prescribers | Patient | | | + | | Visibility of new patients and prescribers | Patient |
- | | Repeats | + | | Patients and prescribers | Patient |
- | | Patient events | + | | Merging of patients and prescribers | Patient | Store | |
- | | Name notes | Store | | | + | | Patient events |
- | | Customer stock history and requisitions | Store | | | + | | Repeats |
- | | Locations | Store | | | + | | Prescriptions | Patient | Store | Preference can be set sync to all sites where the patient is visible |
- | | Merging locations | Store | | | + | | Name notes | Store | Store | |
- | | Stock and replenishments | Store | | | + | | Customer stock history and requisitions | Store | Store | |
- | | Stocktakes and inventory adjustments | Store | | | + | | Locations | Store | Store | |
- | | AMC projections | Store | | | + | | Merging locations | Store | Store | |
- | | Transactions | + | | Stock and replenishments | Store | Store | |
- | | Transaction notes | Store | | | + | | Stocktakes and inventory adjustments | Store | Store | |
- | | Item notes | Store | | | + | | AMC projections | Store | Store | |
- | | Boxes | Store | | | + | | Transactions |
- | | Goods received | Store | | | + | | Transaction notes | Store | Store | |
- | | Indicator values | Store | | | + | | Item notes | Store | Store | |
- | | Vaccine monitors/ | + | | Boxes | Store | Store | |
- | | Assets | Store | | | + | | Goods received | Store | Store | |
- | | Store credentials | Store | | | + | | Indicator values | Store | Store | |
- | | Authorisers and authorisation | Store | | | + | | Vaccine monitors/ |
- | | Purchase orders | Store | Except for centralised procurement or supervisor-mode ordering | | + | | Assets | Store | Store | |
- | | Payments | Store | Except for centralised payments | | + | | Store credentials | Store | Store | |
- | | New users | Store | New user records sent to central server | | + | | Authorisers and authorisation | Store | Store | | |
- | | User licenses and existing users | Local | | | + | | Tenders and quotes | Store | Store | Except for centralised procurement |
- | | User permissions | Local | | | + | | Purchase orders |
- | | Preferences (non-store) | Local | Except for a few special cases which are explicitly synced | | + | | Payments |
- | | Tenders and quotes | + | | New users | Store | Store | New user records sent to central server | |
- | | Incoterms and tender conditions | + | | User licenses and existing users | Local | Local | |
- | | Reference documents | + | | User permissions | Local | Local | |
- | | HIS | Local | | | + | | Preferences (non-store) |
- | | Drug registration | Local | | | + | | Reference documents |
- | | Labels | Local | | | + | | HIS | Local | Local | | |
- | | Logs | Local | | | + | | Drug registration | Local | Local | |
- | | Reminders | Local | | | + | | Labels | Local | Local | |
- | | Adverse drug reactions | Local | | | + | | Logs | Local | Local | |
+ | | Reminders | Local | Local | | ||
+ | | Adverse drug reactions | Local | Local | | | ||
==== Stores ==== | ==== Stores ==== | ||
Line 392: | Line 402: | ||
===== How to tell if synchronisation is happening ===== | ===== How to tell if synchronisation is happening ===== | ||
- | Note: the synchronisation system can be disabled completely or paused in the preferences (see the [[preferences: | + | **Note:** the synchronisation system can be disabled completely or paused in the preferences (see the [[preferences: |
==== The Manual Sync Button ==== | ==== The Manual Sync Button ==== | ||
{{: | {{: |