Privacy policy
This policy describes the data the Medical Office Manager desktop application (“the application”) handles, where it is stored, what is sent to Google when the doctor turns on the Google Drive backup, and what the application's developer can and cannot see. It describes how the application actually works.
1. Summary
- Patient records are stored on the doctor's computer, in an encrypted database. The developer runs no server that would receive them.
- The Google Drive backup is optional. If the doctor connects a Google account, the application uses the
drive.filepermission, which only gives it access to the files it created itself. - Everything sent to Google Drive is encrypted on the computer before it is sent. Neither Google nor the developer can read the backups without the doctor's password or recovery key.
- The application contains no advertising, no usage statistics and sends nothing to the developer.
2. Data stored on the doctor's computer
The application stores, in the Windows user's data folder:
- the practice database: patients (identity, contact details, medical history, allergies), consultations, prescriptions, practice settings and an internal audit log (the database also provides for appointments, a feature to come);
- the key file (
keystore.json), which holds the master key protected by the password and by the recovery key, never in clear; - local backups (
.mombackupfiles), encrypted, and any copies in an external folder (USB key, disk) chosen by the doctor; - a technical log holding event names and error codes, never patient data (error messages are deliberately left out);
- if Google Drive is connected, the Google connection file (
cloud-token.json), encrypted (see section 7).
Each installation has its own database. The application works without an Internet connection. The edition without Google Drive contacts no server. The edition with Google Drive contacts only the Google servers needed for sign-in and Google Drive (accounts.google.com, oauth2.googleapis.com, www.googleapis.com); every other address is blocked by the application.
3. Encryption
- Database: encrypted (SQLCipher) with a key derived from a random master key specific to the installation.
- Master key: never stored in clear. It is protected twice, by the doctor's password and by a recovery key printed during setup (Argon2id key derivation, AES-256-GCM encryption).
- Local backups: encrypted with AES-256-GCM under a key derived from the master key; any alteration is detected when reading.
- Google Drive backups: encrypted on the computer before they are sent (see section 6).
The recovery key is kept by neither the application nor the developer. If both the password and the recovery key are lost, the data and the backups cannot be opened by anyone, the developer included.
4. Signing in with Google (OAuth)
The Google Drive backup is only turned on if the doctor accepts the conditions shown in the application and then connects his or her own Google account. Sign-in uses Google's OAuth 2.0 protocol:
- Google's sign-in page opens in the system browser; the application never sees the Google password;
- the exchange is protected by PKCE, a single-use
stateandnonce; the identity returned by Google is verified with Google's public keys; - the permissions requested are exactly:
openid,emailandhttps://www.googleapis.com/auth/drive.file.
5. Google data used and why
| Google data | Use |
|---|---|
Google account identifier (sub, via openid) | Recognise the connected account, for example to refuse that another account replaces the practice's account without a disconnection first. |
E-mail address (via email), only if Google reports it as verified | Show the doctor which account is connected. It is not used for anything else. |
Google Drive files created by the application (via drive.file) | Create, read, verify and organise the doctor's backup vault, and restore the data. |
The application does not list, read or change any other file in the doctor's Google Drive: the drive.file permission does not allow it, and the application only looks for items it marked itself. It accesses no other Google data (contacts, calendar, Gmail, etc.).
6. What is sent to Google Drive
Each backup made on the computer becomes a “recovery point” in a folder of the doctor's Google Drive named “Medical Office Manager – Coffre de sauvegarde”. The folder holds two kinds of files:
pack-….momvault: the parts of the database that changed since the previous point, compressed and then encrypted with AES-256-GCM on the computer, with keys derived from the installation's master key;index-….momvault: the encrypted list of recovery points, preceded by a readable header.
What Google can see: the names, sizes and dates of these files, and the readable header of the index files (a vault identifier, a version number, a date, and the master key itself encrypted under the recovery key — the same protection as in every local backup). This header makes a restore on a new computer possible with the recovery key.
What Google cannot see: patient names, record contents, the number of patients or consultations, or any medical text. The identifiers of the stored parts are computed with a secret key, which prevents testing whether known content is in the vault.
Every uploaded file is downloaded again and compared with the original before it counts as backed up.
7. How access tokens are stored and protected
- The refresh token, the account identifier and the verified e-mail address are stored in
cloud-token.json, encrypted with AES-256-GCM under a key derived from the master key. The file can only be read while the doctor has unlocked the application. It is kept outside the data folder: it is never included in a backup or sent to Google Drive. - The access token exists only in memory, never on disk.
- When the application locks, it erases its copies of the tokens; apart from the encrypted file above, no token is ever written to disk.
- Tokens are never sent to the developer or to any third party; they are only used to call Google's servers.
- “Déconnecter” (disconnect) in the application asks Google to revoke the access and deletes
cloud-token.json.
8. Limited Use of Google data
Medical Office Manager's use and transfer to any other app of information received from Google APIs will adhere to the Google API Services User Data Policy, including the Limited Use requirements. In particular:
- Google data is only used to provide the backup and restore the doctor asks for, and to show the connected account;
- it is not transferred to any third party, except to Google itself to perform these functions;
- it is never used for advertising, never sold, and never used to determine creditworthiness or for lending purposes;
- no person reads this data: it stays on the doctor's computer and in his or her own Google Drive;
- it is not used to train artificial intelligence models.
9. What the developer can and cannot see
The developer runs no server for the application: there is no online account, no usage statistics, no automatic error report and no automatic update that would send information to the developer. As a result, the developer:
- cannot see patient data, local backups, or the content of the doctor's Google Drive;
- does not receive the Google tokens, the password, the master key or the recovery key;
- cannot decrypt a backup sent to him without the doctor's password or recovery key.
The developer only receives what the doctor chooses to send, for example a support e-mail. Never attach patient data to such a message.
Since the developer holds no patient data and no Google user data, there is nothing to delete on the developer's side: deletion is done by the doctor, as described in section 10. For any question or request about it, write to basdourifares1@gmail.com.
10. Retention and deletion
On the computer
Data stays on the computer as long as the doctor keeps it. Local backups follow an automatic retention rule: all backups of the last 24 hours, the latest of each of the last 14 days of use, one per week for 8 weeks, and safety copies (before a restore or an update) for 30 days. Uninstalling the application does not delete the data folder; the doctor can delete it himself or herself.
On Google Drive
The application never deletes a recovery point automatically. It only removes its own technical files that are no longer needed (older index versions beyond the three newest, files merged after verification, unreadable files nothing uses), without losing any point. Disconnecting Google Drive does not delete the vault.
To delete the backups from Google Drive, the doctor deletes the “Medical Office Manager – Coffre de sauvegarde” folder at drive.google.com. To remove the application's access to the account, the doctor can click “Déconnecter” in the application or remove the access at myaccount.google.com/permissions.
11. The doctor's role
The doctor using the application is responsible for the patient data he or she records and for the choice of backing it up to Google Drive. Before storing real patient data on Google Drive, it is up to the doctor to complete the formalities that apply to him or her regarding personal data protection, in particular for storage outside his or her country. Before connecting, the application informs the doctor that the backups will be stored with Google, outside Tunisia, and that they remain encrypted.
12. This website
This site is for information only. It uses no cookies, no analytics, no scripts, no external fonts or resources, and has no forms. Like any website, the hosting provider may keep technical connection logs (IP address, date, requested page) under its own rules.
13. Changes and contact
This policy may be updated if the way the application works changes; the update date is shown at the top of the page.
For any question about this policy or about data handling: basdourifares1@gmail.com.