How your data is protected
What Moroccan law 09-08 asks of a practice and of us, how our software applies it, and sample agreements to start from. Last updated: 25 November 2026.
Read this first. This page explains the law in plain words and shows how IA SYSTEMS works with it. It is not legal advice. The sample documents are a starting point, to be adapted to each case and reviewed by a Moroccan lawyer before anyone signs them. The CNDP does not certify software or providers, and nothing here claims an approval or a certification.
Who is who
Law 09-08 protects people whose personal data is processed. A medical or dental practice holds its patients' data, so the practice is the controller (responsable du traitement): it decides why and how the data is used, and it answers for it. IA SYSTEMS makes the software. Whether we are also the practice's processor (sous-traitant) depends on how the software is installed:
- Installed at the practice. This is how most practices will run our software. The server is the practice's own, in its premises, and the data stays there. We have no access to it, except when the practice asks us for maintenance or support. For that work, we act as its processor, under a maintenance and support agreement.
- Hosted by IA SYSTEMS. When a practice asks us to run its server, we are its processor for everything we host, under a hosting agreement.
Health data is sensitive data under the law (article 1, 3°). That is why it gets the extra protections described below.
Hosting and support agreements
What the law requires
When a controller uses a processor, article 23 asks for three things:
- the practice chooses a processor that gives sufficient guarantees on technical and organisational security, and checks they are kept (23-2);
- a contract binds the processor, saying that it acts only on the practice's instructions, and that the same security duties apply to it (23-3);
- these terms are kept in writing (23-4).
Anyone working for the processor may use the data only on the practice's instructions (article 25), and everyone who sees the data is bound by professional secrecy, even after they leave (article 26). For health data, article 24 adds eight controls, set out in the table below.
What our agreements cover
- the purpose: running and supporting the practice's software, and nothing else;
- instructions: we act only on the practice's written instructions;
- our staff's confidentiality, bound by professional secrecy;
- the security measures, mapped to article 24 (annex B of each sample);
- where the data is kept and how backups are made, kept and tested (hosting only);
- support access: only at the practice's request or to fix an incident, for a limited time, and recorded;
- no other provider without the practice's prior written consent, and the list of those it has accepted;
- help with patients' requests and with the practice's CNDP file;
- telling the practice about a security incident without delay, within a time set in the agreement;
- at the end: the practice's data returned in full, then deleted from our side, with a written confirmation;
- the practice's right to check that we keep these commitments.
How the software applies article 24
For our practice software, Medecin, this is what the software does, wherever it is installed. What depends on the premises or the hosting is set in the agreement.
| Article 24 control | What the software does | Set by the agreement |
|---|---|---|
| a) Entry to the installations | (Not a software matter) | The practice's premises, or the data centre's physical access controls |
| b) Data media | (Not a software matter) | Disks, backup media and their destruction |
| c) Data entry | Only signed-in staff can enter data, each under their own account. A finalized consultation can no longer change: a correction is added, never overwritten. The rest of the clinical history is kept the same way, and identity and appointment changes keep their history. | Who gets an account |
| d) Use over networks | Connections to the software are encrypted (HTTPS). | The network and its access |
| e) Access | Who may read a record is decided on the server, from the care relationship and the person's role, not by hiding buttons on the screen. | Support access rules |
| f) Transmission | Exporting data takes a separate permission and the person's password again, and every export is recorded. Exporting the whole practice must also be approved by its administrator. Appointment reminders go only if the practice turns them on, with no medical details. | Sub-processors |
| g) Record of entries | Sensitive views and changes are recorded, by reference, never with the content of a note. Sign-ins are recorded. | How long the records are kept |
| h) Transport | A whole-practice export (JSON data, a readable PDF record, and the files: results, documents, images) lets the practice take all its data with it. | How backups and exports are moved |
Today, no medical feature of Medecin uses AI.
Sample agreements
Both samples are in French, the language of practice in Moroccan contracts, with an English version for reference. Text in [brackets] is to be filled in for each case. To print a sample, open it first.
Sample A: hosting and processing (practice hosted by IA SYSTEMS)
Français (texte à signer)
Entre [nom du cabinet], [adresse], représenté par [Dr …], ci-après « le Responsable du traitement »,
et IA SYSTEMS, [forme sociale, RC, ICE], rue de Russie, Tanger, représentée par [nom, qualité], ci-après « le Sous-traitant ».
Article 1 : Objet
Le présent contrat régit l'hébergement et l'exploitation, par le Sous-traitant, du logiciel de gestion du cabinet [Medecin] et des données à caractère personnel qu'il contient, pour le compte du Responsable du traitement, conformément aux articles 23 à 26 de la loi n° 09-08.
Article 2 : Description du traitement
Finalité : gestion et suivi des patients du cabinet. Catégories de personnes : patients, personnel du cabinet. Catégories de données : identité, coordonnées, données administratives et de facturation, données relatives à la santé. Le détail figure en annexe A.
Article 3 : Instructions
Le Sous-traitant ne traite les données que sur instruction écrite du Responsable du traitement (art. 23-3 et 25 de la loi n° 09-08) et uniquement pour l'objet du contrat. Il informe le Responsable du traitement si une instruction lui paraît contraire à la loi.
Article 4 : Confidentialité
Le Sous-traitant veille à ce que les personnes autorisées à traiter les données soient soumises au secret professionnel (art. 26), y compris après la fin de leurs fonctions. Il ne divulgue, ne copie ni ne conserve les données à d'autres fins.
Article 5 : Sécurité
Le Sous-traitant met en œuvre les mesures techniques et organisationnelles de l'article 23-1 et les mesures de l'article 24 décrites en annexe B. Il ne les modifie que pour les renforcer.
Article 6 : Lieu d'hébergement et sauvegardes
Les données sont hébergées [au Maroc, à … / préciser le pays, la ville et le centre de données]. Elles sont sauvegardées [fréquence], sous forme chiffrée, à [lieu], et conservées [durée]. Une restauration est testée [fréquence]. Aucun transfert hors du Maroc n'a lieu sans l'accord écrit préalable du Responsable du traitement et les formalités prévues par la loi auprès de la CNDP.
Article 7 : Accès pour assistance
Le personnel du Sous-traitant n'accède aux données qu'à la demande du Responsable du traitement ou pour remédier à un incident, pour la durée nécessaire. Chaque accès est enregistré et le relevé est communiqué au Responsable du traitement sur demande.
Article 8 : Sous-traitants ultérieurs
Le Sous-traitant ne fait appel à aucun autre prestataire sans l'autorisation écrite préalable du Responsable du traitement. Les prestataires autorisés figurent en annexe C et sont liés par les mêmes obligations.
Article 9 : Assistance
Le Sous-traitant aide le Responsable du traitement à répondre aux demandes des personnes (art. 7 à 9) et à constituer son dossier auprès de la CNDP, notamment en fournissant la description de l'annexe A.
Article 10 : Incidents de sécurité
Le Sous-traitant notifie au Responsable du traitement toute violation de la sécurité des données dans un délai de [x] heures après en avoir eu connaissance, avec les informations disponibles et les mesures prises.
Article 11 : Fin du contrat
À la fin du contrat, le Sous-traitant remet au Responsable du traitement l'intégralité de ses données dans un format exploitable [JSON et PDF], puis les détruit, sauvegardes comprises, dans un délai de [x] jours, et lui en remet une attestation écrite.
Article 12 : Contrôle
Le Sous-traitant met à disposition les informations nécessaires pour démontrer le respect du contrat et permet les audits du Responsable du traitement ou d'un auditeur mandaté par lui, à [conditions].
Article 13 : Durée, droit applicable
Le contrat prend effet le [date] pour [durée]. Il est soumis au droit marocain. [Juridiction compétente.]
Annexe A : description du traitement (voir l'onglet 2). Annexe B : mesures de sécurité (art. 24 a à h, voir le tableau ci-dessus). Annexe C : sous-traitants ultérieurs autorisés : [hébergeur, pays] ; [outils d'assistance à l'ingénierie, y compris assistés par IA : prestataire, pays, ou ligne supprimée s'il n'y en a pas].
Fait à [ville], le [date], en deux exemplaires. Signatures.
English (for reference)
Between [practice], the controller, and IA SYSTEMS, Tangier, the processor. The articles follow the French text:
- Purpose: hosting and running the practice's software and its personal data, for the practice, under articles 23 to 26 of law 09-08.
- Description: patient management and follow-up; patients and staff; identity, contact, administrative and billing data, and health data (annex A).
- Instructions: only on the practice's written instructions, and only for this purpose. We say so if an instruction seems unlawful.
- Confidentiality: our staff are bound by professional secrecy, also after they leave. No disclosure, copy or other use.
- Security: the measures of articles 23-1 and 24 in annex B, only ever strengthened.
- Location and backups: hosted [in Morocco, at … / or state the country, city and data centre]; encrypted backups [frequency] at [place], kept [period], with a restore tested [frequency]. No transfer outside Morocco without the practice's prior written consent and the CNDP formalities.
- Support access: only at the practice's request or to fix an incident, for as long as needed. Every access is recorded, and the record is given to the practice on request.
- Other providers: none without the practice's prior written consent. Accepted providers are in annex C, under the same duties: [hosting provider, country]; [engineering support tools, including AI-assisted ones: provider, country, or the line removed if there are none].
- Assistance: with patients' requests (articles 7 to 9) and with the practice's CNDP file.
- Incidents: notified within [x] hours, with what is known and what was done.
- End: all the practice's data returned [JSON and PDF], then deleted on our side, backups included, within [x] days, with a written confirmation.
- Checks: we show how we keep the agreement, and accept audits on [terms].
- Term and law: from [date] for [period], under Moroccan law.
Sample B: maintenance and support (software installed at the practice)
Français (texte à signer)
Entre [nom du cabinet], ci-après « le Responsable du traitement », et IA SYSTEMS, ci-après « le Prestataire ».
Article 1 : Objet
Le Prestataire assure la maintenance et l'assistance du logiciel [Medecin], installé sur le serveur du Responsable du traitement, dans ses locaux. Les données restent sur ce serveur, sous la seule maîtrise du Responsable du traitement.
Article 2 : Principe
Le Prestataire n'a pas d'accès permanent aux données. Lorsqu'une intervention exige d'y accéder, il agit en tant que sous-traitant au sens de l'article 23 de la loi n° 09-08, sur instruction du Responsable du traitement et pour cette seule intervention.
Article 3 : Interventions
Toute intervention, sur place ou à distance, est demandée ou autorisée par le Responsable du traitement, limitée dans le temps et dans son objet, et enregistrée (date, durée, intervenant, opérations). L'accès à distance est ouvert par le Responsable du traitement et refermé à la fin de l'intervention.
Article 4 : Confidentialité
Outils utilisés pour les interventions : [outils d'assistance à l'ingénierie, y compris assistés par IA : prestataire, pays, ou ligne supprimée s'il n'y en a pas]. Aucun autre outil ou prestataire n'accède aux données sans l'accord écrit préalable du Responsable du traitement.
Les intervenants sont soumis au secret professionnel (art. 26), y compris lors de la maintenance et de la télémaintenance. Aucune donnée n'est copiée hors du serveur du cabinet, sauf instruction écrite pour une intervention précise. Toute copie est alors détruite à la fin de l'intervention.
Article 5 : Sécurité et mises à jour
Le Prestataire fournit les mises à jour du logiciel et les conseils de sécurité. Les mesures de l'article 24 propres aux locaux, au matériel et aux sauvegardes relèvent du Responsable du traitement. Celles assurées par le logiciel figurent en annexe B.
Article 6 : Incidents
Le Prestataire signale sans délai au Responsable du traitement toute faille dont il a connaissance qui touche le logiciel ou ses données, et l'aide à y remédier.
Article 7 : Assistance
Le Prestataire aide le Responsable du traitement à répondre aux demandes des personnes et à constituer son dossier auprès de la CNDP.
Article 8 : Durée, droit applicable
Le contrat prend effet le [date] pour [durée], et il est soumis au droit marocain.
Fait à [ville], le [date]. Signatures.
English (for reference)
- Purpose: maintenance and support of the software installed on the practice's own server, in its premises. The data stays on that server, under the practice's sole control.
- Principle: we have no standing access to the data. When work requires access, we act as the practice's processor (article 23), on its instructions, for that work only.
- Tools: [engineering support tools, including AI-assisted ones: provider, country, or the line removed if there are none]. No other tool or provider reaches the data without the practice's prior written consent.
- Interventions: on site or remote, requested or authorised by the practice, limited in time and purpose, and recorded (date, length, who, what). The practice opens remote access and closes it at the end.
- Confidentiality: professional secrecy (article 26), including in remote maintenance. No data is copied off the practice's server unless the practice asks for it in writing for a specific task, and any such copy is destroyed at the end.
- Security and updates: we provide software updates and security advice. Premises, hardware and backups are the practice's. The software's own measures are in annex B.
- Incidents: we tell the practice without delay about any flaw we learn of that affects the software or its data, and help fix it.
- Assistance: with patients' requests and the practice's CNDP file.
- Term and law: from [date] for [period], under Moroccan law.
The steps with the CNDP
The CNDP (Commission nationale de contrôle de la protection des données à caractère personnel) oversees law 09-08. A practice must notify the CNDP before it starts processing its patients' data. It is the practice, as controller, that files. We help it with what concerns our software and our role.
Declaration or authorisation?
Article 22 of the law provides for a declaration when health data is processed only for prevention, diagnosis or care by a practitioner bound by professional secrecy. The implementing decree (n° 2-09-165, article 29) and the CNDP's current practice treat it as a request for prior authorisation. On 28 November 2025, the CNDP published a model request for patient-follow-up processing (deliberation D-941-2025, form F-113). A practice should follow the CNDP's current procedure and confirm it with the CNDP or a lawyer.
The practice's steps
- File with the CNDP before starting: the model request for patient follow-up (D-941-2025, form F-113, through the CNDP's forms or its online platform). It says that a processor is used (decree, article 27) and attaches the processor agreement.
- If the data leaves Morocco (hosting, backups or remote access from abroad): a transfer request to the CNDP (articles 43 and 44, form F-118). Even a country on the CNDP's list, such as France, needs this filing, and D-941-2025 asks for prior authorisation for patients' data. A practice whose software is installed on its own premises in Morocco has no transfer to declare, unless it sends data abroad itself.
- Inform patients (article 5): who the practice is, why the data is used, who receives it, their rights, and the CNDP's reference for the practice's file. A sample notice follows.
- Answer patients' requests: access, free of charge (article 7); rectification or erasure within ten days (article 8); objection on legitimate grounds (article 9).
What IA SYSTEMS provides
- the hosting agreement or the maintenance and support agreement, to attach to the file;
- a description of the processing the software does, ready for the practice to adapt (sample below);
- where the data is kept and which providers are involved, when we host;
- answers to the CNDP's technical questions, through the practice.
We do not file on the practice's behalf, and the CNDP does not certify our software.
Public bodies
For public administrations and establishments, law 05-20 on cybersecurity (article 11) requires their sensitive data to be hosted in Morocco and, when a cloud provider is used, a provider qualified by the national cybersecurity authority, the DGSSI (arrêté n° 3-17-25 of 2025). "Sensitive data" there has its own meaning, different from law 09-08's. An installation on the body's own premises avoids the cloud question. IA SYSTEMS does not claim a DGSSI qualification.
Sample documents
Sample C: description of the processing, for the practice's CNDP file
Français
- Responsable du traitement : [cabinet, adresse, praticien responsable].
- Finalité : gestion et suivi des patients : rendez-vous, accueil, dossier médical, documents (ordonnances, certificats, comptes rendus), honoraires et reçus[, plans de traitement et devis dentaires].
- Personnes concernées : patients du cabinet ; personnel du cabinet (comptes utilisateurs).
- Données des patients :
- identité : nom en caractères latins et arabes, date de naissance, sexe, langue, praticien responsable, mention distinctive facultative[, pièce d'identité (type et numéro, avec le motif de sa saisie, sans copie)] ;
- coordonnées et préférences de communication ;
- personnes liées : personne à contacter, représentant légal, payeur (sans accès au dossier) ;
- rendez-vous et passages (horaires, type de visite, jamais de motif médical) ;
- données relatives à la santé : antécédents, allergies, traitements, consultations, constantes, résultats reçus (conservés tels que reçus) ;
- documents : ordonnances, certificats, lettres d'adressage, demandes d'examens, comptes rendus ;
- suivis (consigne et date) ;
- couverture AMO (organisme, numéro d'immatriculation, assuré, lien) et formulaires préparés ;
- honoraires, paiements et reçus ;
- [module dentaire : schéma dentaire, plans de traitement, devis et exemplaires signés, images] ;
- Données du personnel : comptes, rôles, connexions (adresse IP, identifiant de navigateur) et journal de leurs actions.
- Destinataires : le personnel habilité du cabinet, selon la relation de soins et le rôle ; [IA SYSTEMS, sous-traitant, pour l'hébergement / la maintenance].
- Logiciel et sécurité : [Medecin], édité par IA SYSTEMS ; contrôle d'accès décidé côté serveur selon la relation de soins ; traçabilité des consultations et modifications sensibles ; exports soumis à une habilitation distincte et au mot de passe, tracés, et approbation de l'administrateur pour l'export complet ; connexions chiffrées (HTTPS) ; [hébergement : lieu ; sauvegardes : modalités].
- Lieu des données : [serveur du cabinet, à son adresse] / [hébergement par IA SYSTEMS à : …]. Transfert hors du Maroc : [aucun / préciser].
- Durée de conservation : [à fixer par le cabinet].
- Rappels de rendez-vous : [non utilisés / par WhatsApp, sans donnée médicale, si le cabinet les active].
Sample D: information notice for patients
Français · العربية
Protection de vos données. Le cabinet [nom, adresse, téléphone ou e-mail] est responsable du traitement de vos données, dont des données relatives à votre santé. Elles servent à la gestion de vos rendez-vous, de votre dossier médical, de vos soins et de vos paiements. Les informations demandées sont nécessaires à votre prise en charge ; [préciser celles qui sont facultatives]. Elles sont destinées au personnel habilité du cabinet[, à son prestataire informatique, IA SYSTEMS, qui agit uniquement sur ses instructions][, et à : préciser les autres destinataires, par exemple l'organisme d'assurance maladie]. [Elles ne quittent pas le Maroc. / Elles sont hébergées à : préciser le pays.] Vous pouvez y accéder, les faire rectifier et vous opposer à leur traitement pour des motifs légitimes, en vous adressant au cabinet. Ce traitement a fait l'objet de [l'autorisation / la déclaration] n° [référence] auprès de la CNDP.
حماية معطياتكم. عيادة [الاسم، العنوان، الهاتف أو البريد الإلكتروني] هي المسؤولة عن معالجة معطياتكم، ومنها المعطيات المتعلقة بصحتكم. وتُستعمل لتدبير مواعيدكم وملفكم الطبي وعلاجكم وأداءاتكم. والمعلومات المطلوبة ضرورية للتكفّل بكم؛ [تحديد المعلومات الاختيارية]. وهي موجّهة إلى المستخدمين المؤهّلين في العيادة[، وإلى مزوّدها المعلوماتي، IA SYSTEMS، الذي لا يتصرّف إلا وفق تعليماتها][، وإلى: تحديد الجهات الأخرى، مثل هيئة التأمين الصحي]. [لا تغادر هذه المعطيات المغرب. / تُستضاف في: تحديد البلد.] يمكنكم الولوج إليها وطلب تصحيحها والتعرّض على معالجتها لأسباب مشروعة، بالتوجّه إلى العيادة. وقد كانت هذه المعالجة موضوع [إذن / تصريح] رقم [المرجع] لدى اللجنة الوطنية لمراقبة حماية المعطيات ذات الطابع الشخصي.
Sources
The words of the law
Law 09-08 was published in Arabic (Bulletin officiel n° 5711, 23 February 2009) and in French (n° 5714, 5 March 2009). The Arabic edition is the official one. We checked the terms we use against both texts, as published by the CNDP. On our pages and in our agreements, we use exactly these words.
| English | French (official translation) | Arabic (official text) | Where |
|---|---|---|---|
| Personal data | données à caractère personnel | المعطيات ذات الطابع الشخصي | art. 1 |
| Data subject | personne concernée | الشخص المعني | art. 1 |
| Sensitive data | données sensibles | معطيات حساسة | art. 1, 3° |
| Controller | responsable du traitement | المسؤول عن المعالجة | art. 1, 5° |
| Processor | sous-traitant | المعالج من الباطن | art. 1, 6° |
| Processing by a processor | sous-traitance | المعالجة من الباطن | art. 23-3 |
| Health data | données relatives à la santé | المعطيات المتعلقة بالصحة / ذات الصلة بالصحة | art. 22, 24 |
The processor, in the law's own words
Article 1, 6° : « Sous-traitant : la personne physique ou morale, l'autorité publique, le service ou tout autre organisme qui traite des données à caractère personnel pour le compte du responsable du traitement. »
المادة 1، البند 6: «معالج من الباطن»: الشخص الذاتي أو المعنوي أو السلطة العامة أو المصلحة أو أية هيئة أخرى تعالج المعطيات ذات الطابع الشخصي لحساب المسؤول عن المعالجة.
Article 23-3 : « La réalisation du traitement en sous-traitance doit être régie par un contrat ou un acte juridique qui lie le sous-traitant au responsable du traitement et qui prévoit notamment que le sous-traitant n'agit que sous la seule instruction du responsable du traitement et que les obligations visées au paragraphe 1 ci-dessus lui incombent également. »
المادة 23، البند 3: تنظم عملية المعالجة من الباطن بموجب عقد أو محرر قانوني يربط المعالج من الباطن بالمسؤول عن المعالجة وينص خصوصا على ألا يتصرف المعالج من الباطن إلا بتعليمات من المسؤول عن المعالجة وعلى تقيده كذلك بالالتزامات المنصوص عليها في البند 1 أعلاه.
Notes
- The Arabic text uses «المعالج من الباطن» for the processor throughout (articles 1, 23, 25 and 61).
- The French and Arabic texts differ on some penalty figures (articles 57 and 61), and the Arabic edition is the official one, so we quote no figures here: penalties include fines and prison terms (articles 52 to 65).
Sources
Questions
Write to us at [email protected]. Patients with a question about their own data should contact their practice, which is responsible for it.