What to remember
- You can use AI on clinical trial data and stay compliant, once you split the data into four levels: metadata (L0), aggregates (L1), pseudonymised data (L2) and identifying data (L3).
- The rule is the one you apply to every user: each role sees what its job needs.
- In Datacapt, the AI gets the same permissions as the user who connects it, and every action goes into the audit trail.
- Any approved AI tool may read and write metadata and read aggregates.
- Pseudonymised and identifying data need an AI that meets GDPR, HIPAA and HDS or equivalent, or that runs in your own infrastructure.
- Responsibility is shared, as in software validation. Get the sponsor's approval and write the AI use into the contract, even for L0 and L1.
Ask your data protection officer whether the study team can use AI on trial data. You will get one of two answers. "No" blocks every use case, including the ones that touch no patient data. "Yes" without conditions puts health data in a tool nobody has assessed.
Both answers miss what your EDC does every day. When a person joins a study, you give them a role, and the role decides what they see.
A four-level access model applies the same rule to AI. You classify study data by how close it sits to a person, from L0 (metadata) to L3 (identifying data), and each AI tool gets the levels its task needs and its compliance status allows. Datacapt uses this model in its EDC and its MCP connector.
| Level | Data | Examples | AI access |
|---|---|---|---|
| L0 | Metadata | Protocol, visits, forms, variables, codelists, validation rules, blank eCRF | Any approved AI tool, read and write |
| L1 | Aggregates | Completion rates, query counts, SDV status, recruitment per site, missing data | Any approved AI tool, read |
| L2 | Pseudonymised individual data | eCRF answers linked to a subject number, no direct identifier | Health-data compliant AI |
| L3 | Identifying data | Name, contact details, date of birth, uncontrolled free text | Health-data compliant AI |
A health-data compliant AI meets GDPR, HIPAA and HDS or an equivalent standard, or runs in your own infrastructure. The Datacapt connector gives every other tool L0 and L1 by default.
[[takeaways]]
Role-based access: you already limit what each user sees
Open the role settings of any EDC used in a regulated trial and you will find the same pattern:
| User | What they see | What they never see |
|---|---|---|
| Investigator | Full records of the patients at their site | Patients at other sites |
| CRA | Records at the sites they monitor | Sites outside their scope |
| Data manager | All eCRF data, under subject numbers | Names and contact details |
| Sponsor study manager | Dashboards and progress figures | Individual answers, in most set-ups |
This table is how you prove to an inspector that each person accessed what their job required and nothing more.
The regulations ask for this in their own words:
- GDPR, Article 5(1)(c) requires data minimisation: you process the personal data the purpose needs, and no more. Article 25 asks for data protection by design and by default.
- HIPAA sets a minimum necessary standard: a covered entity limits a use or disclosure of protected health information to the minimum needed for the task.
- 21 CFR Part 11, section 11.10(d) requires you to limit system access to authorised individuals. Section 11.10(g) adds authority checks on who can perform which operation, and section 11.10(e) requires a secure, time-stamped audit trail.
None of these texts mentions AI. All of them describe access control by role, and you can apply them to an AI tool the way you apply them to a person. For the full set of EDC requirements, see regulatory compliance of EDC systems.
Treat an AI tool as one more user
When a data manager asks Claude to draft edit checks, or a study manager asks ChatGPT for a site status, the AI reads study data. For your quality system, that makes it a user. It needs a role, a scope and a trace in the audit trail.
Two questions set its role:
- What does the task need? Edit checks need the protocol and the form structure (L0). A site status needs counts (L1). A medical review of subject 012 needs that subject's answers (L2).
- What has the tool proved? A tool your company has approved, under a contract that stops the vendor from training on your inputs, qualifies for L0 and L1. A tool that meets health-data rules qualifies for L2 and L3.
The task decides what the AI needs. The tool's compliance decides what it may get. When the task needs more than the tool has proved, you change the tool and keep the rule.
In Datacapt, the AI takes the role of the person who connects it. It gets the same permissions as that user's login. A CRA's agent sees the CRA's sites. A data manager's agent sees what the data manager sees, and nothing more. Every action it takes goes into the audit trail.
L0: metadata carries no personal data
The protocol, the visit schedule, forms, variables, codelists, validation rules and the blank eCRF describe the study without describing a person. GDPR applies to personal data, so L0 falls outside it. HIPAA and HDS do not apply either.
The risk at L0 is confidentiality. Your protocol is sponsor intellectual property. Your legal team handles that with the AI vendor's contract: no training on your inputs, retention limits, and the vendor's security commitments.
L0 is the one level where the AI may write. An agent can build forms, set conditional logic or add a study language. In Datacapt those writes land in a study in DRAFT status. A study designer reviews and validates the build before go-live, so the validated system that collects patient data stays under human control.
💡 Start your AI programme at L0. Study build saves the most time, and your DPO has no personal data to assess.
L1: aggregates answer most monitoring questions
Completion rates, query counts, SDV status, recruitment per site and missing data by form are aggregates. The platform computes them and sends the AI a number. The model reads "site 102 has 14 open queries older than 30 days" and never reads the 14 values behind it.
GDPR Recital 26 excludes anonymous information from its scope: data that no longer relates to an identifiable person. An aggregate built on enough subjects meets that test, which is why any approved AI tool may read L1.
The AI reads aggregates and never writes them. Collected data belongs to the site user who entered it, with an audit trail entry and a reason for change, as Part 11 expects.
⚠️ Watch small counts. If a site has enrolled one subject, "1 serious adverse event at site 104" points to a person. Set a minimum cell size with your data protection team, and treat any figure below it as L2.
L2: pseudonymised data is still personal data
L2 is the eCRF itself: answers linked to a subject number such as 012, with no name or direct identifier.
Many teams assume a subject number makes data anonymous. GDPR Recital 26 treats pseudonymised data as personal data, because someone holds the key: the investigator site can link 012 to a patient. In September 2025 the EU Court of Justice (EDPS v SRB) accepted that a recipient with no reasonable means to re-identify may hold data that is not personal for them. That does not help a study team, a sponsor or an EDC vendor, who can trace a subject through the site. Clinical data is also health data, a special category under Article 9.
An AI tool that reads L2 becomes a processor of health data. Your organisation then needs:
- a data processing agreement with the AI vendor (GDPR Article 28),
- a data protection impact assessment that covers the AI use (Article 35),
- a transfer mechanism when the vendor processes data outside the EU, such as an adequacy decision or standard contractual clauses (Chapter V),
- HDS-certified hosting when the data falls under French health data rules,
- a Business Associate Agreement when HIPAA applies,
- or a model you run on your own servers, where the data never reaches a third party.
L2 gives you what counts cannot. An AI with L2 access can read a subject's visits in order and flag that V3 is dated before V2. It can propose MedDRA or WHODrug codes or draft a narrative for a medical reviewer.
L3: identifying data stays with the people who need it
L3 holds what identifies a person on its own: name, contact details, date of birth. It also holds uncontrolled free text, because a site user can type a name or a phone number in any comment field, and you cannot know until someone reads it.
L3 follows the same bar as L2. In practice, few AI tasks in a study need it. Recruitment follow-up is one, when a coordinator wants help scheduling calls with pre-screened candidates. Data minimisation and the HIPAA minimum necessary standard both point the same way: keep L3 out of an AI workflow unless the task requires it.
The Datacapt MCP server never returns a participant's name, contact details or date of birth. Its tools know a participant by subject number and Datacapt ID.
What each regulation asks, and how the levels answer
| Regulation | What it asks | How the levels answer |
|---|---|---|
| GDPR Art. 5(1)(c) and 25 | Process the minimum personal data the purpose needs, by design | Each task gets the lowest level that does the job |
| GDPR Art. 9 and Recital 26 | Protect health data, including pseudonymised data | L2 and L3 go to compliant AI alone |
| GDPR Art. 28, 35 and Chapter V | Contract with each processor, assess high-risk processing, frame transfers | Required before an AI tool reaches L2 |
| HIPAA minimum necessary | Limit health information to what the task needs | Same logic as the levels, with a BAA for L2 and L3 |
| HDS (France) | Host health data with a certified provider | Part of the compliance bar for L2 and L3 |
| 21 CFR Part 11 | Limit access to authorised individuals, keep an audit trail | AI inherits a named user's permissions, every action is in the audit trail |
| ICH E6(R3) and GAMP 5 | Sponsor oversight of computerised systems and service providers, roles set in writing | The contract names the AI tools, the levels and who validates the output |
| EMA reflection paper on AI (2024) | The sponsor ensures each AI model it uses is fit for its intended use | Each use case has a level, a tool and a named validator |
The EU AI Act adds its own timeline, pushed back in 2026. Most AI tools used to run a trial are not high-risk systems under it. Read what Regulation 2026/1744 changes for clinical trials for the dates.
Responsibility is shared, as in software validation
You already share responsibility for your EDC. The vendor validates the platform: its development process, its tests, its release notes. You validate your use of it: the study build, the user acceptance tests, the roles you grant. GAMP 5 and ICH E6(R3) describe this split, and an inspector expects to find it in writing. Our guide to computerized system validation in clinical trials covers the method.
AI use follows the same split:
| Party | Responsible for |
|---|---|
| Datacapt | The connector, the level filter, user permissions on every MCP action, the audit trail |
| AI vendor | The model, its hosting, its contract terms: no training on your inputs, retention, security |
| Sponsor | The decision to use AI, the approved tools, the levels each tool may reach |
| CRO or study team | Use inside the approved scope, and validation of every AI draft before go-live |
The sponsor keeps final responsibility for the trial data under ICH E6(R3), even when it delegates tasks to a CRO or a vendor. The decision to use AI on a study belongs to the sponsor.
If you run a study for a sponsor, ask them before an AI tool touches it. Write their answer into the contract or the quality agreement: which tools, which levels, for which tasks, and who validates the output. If you are the sponsor, add the same clause to your CRO and vendor contracts.
Do it for L0 and L1 too. Your protocol belongs to the sponsor, and most confidentiality clauses forbid sharing it with a third party the sponsor has not approved. The sponsor also qualifies every system that handles its study, and an inspector will ask the sponsor how the team used AI. A signed clause gives the sponsor that answer, and the audit trail shows you stayed inside it.
💡 Add one AI clause to your contract template: approved tools, maximum level per tool, tasks, and the person who validates AI output. You then negotiate it once per sponsor.
How Datacapt enforces the levels
Your team should not have to enforce this by memory. Datacapt builds the levels into the connector:
- A tool that does not meet the health-data bar receives L0 and L1 by default.
- AI writes go to metadata in DRAFT studies. A human validates before go-live.
- Names, contact details and dates of birth never leave the platform through the MCP server.
- The AI gets the same permissions as the user who connects it. It cannot open a study, a site or a form that user cannot open.
- Each user connects with their own MCP key, scoped and revocable, so every AI action carries a name.
- Every MCP action goes into the audit trail with its origin, so an inspector can separate an AI action from a human one.
For the mechanics of an MCP server, read MCP and LLMs in clinical research. To compare what EDC vendors let an agent do, read the four levels of AI agent access. That article grades agent capability, from reading documentation to writing a study; this one grades the data an AI may see.
Six questions for your DPO and quality team
- Which level does each AI use case need? List the use cases and assign the lowest level that works. Most study build and monitoring tasks stop at L1.
- Which tools qualify for which level? Keep the BAA, the DPA, the transfer clauses or the HDS certificate on file for each tool cleared for L2.
- Does the vendor train on your inputs? Get the answer in the contract, for every level.
- Where do AI writes land? They should land in a draft that a named person validates.
- Can an inspector trace what the AI did? The audit trail should show each AI action, under which user, on which data.
- Has the sponsor approved the AI use in writing? The contract or quality agreement should name the tools and levels, L0 and L1 included.
Write the answers into your DPIA, your computerised system risk analysis and your contracts. An inspector who asks how you control AI then gets the same answer as for any user: a role, a scope and a trace.
[[cta]]
Can I use AI on clinical trial data under GDPR?
Yes. GDPR does not ban AI. It asks you to process the minimum personal data the purpose needs, to protect health data, and to have a contract with every processor. Metadata and aggregates carry no personal data. Pseudonymised and identifying data need an AI tool that meets health-data rules, a data processing agreement, a DPIA and, outside the EU, a transfer mechanism.
Can I use ChatGPT or Claude on clinical trial data?
On metadata and aggregates, yes, with a company-approved account whose contract stops the vendor from training on your inputs, and with the sponsor's approval. On subject-level data, the tool needs the health-data bar: a data processing agreement, a DPIA, a BAA when HIPAA applies, or hosting in your own infrastructure. A personal consumer account meets none of these.
Is pseudonymised clinical data personal data?
Yes, for the study team, the sponsor and the EDC vendor. GDPR Recital 26 keeps pseudonymised data in scope, because the site holds the key that links a subject number to a patient. Clinical data is also health data under Article 9.
How does HIPAA apply to AI tools?
When HIPAA applies, the minimum necessary standard limits health information to what the task needs, and an AI vendor that handles protected health information signs a Business Associate Agreement. Metadata and aggregates avoid both questions.
Does an AI agent break 21 CFR Part 11?
No, if you treat it as a user. Part 11 asks you to limit access to authorised individuals and to keep an audit trail. The agent should act under a named user's credentials, write to drafts a person validates, and leave a trace an inspector can filter. In Datacapt, the agent runs with the permissions of the user who connects it, and the audit trail records every MCP action.
Who is responsible when a study team uses AI?
Responsibility is shared, as for any validated software. Datacapt answers for the connector, the level filter and the audit trail. The AI vendor answers for its model and its contract terms. The sponsor keeps responsibility for the trial data, so the sponsor approves the AI use, and the contract names the tools and levels, metadata and aggregates included.
Does the EU AI Act change these rules?
The AI Act adds obligations of its own, such as AI literacy for staff, but most AI tools used to run a trial are not high-risk systems under it. GDPR, Good Clinical Practice and Part 11 still decide what data an AI may see. Regulation 2026/1744 moved the high-risk deadlines to December 2027 and August 2028.
Why is free text classed as identifying data?
A site user can type a name, a phone number or an address in any comment field. You cannot know what a free-text field holds until someone reads it, so you treat it as L3.


Florentin combines clinical research know-how with a true passion for product design. Attentive to detail and obsessed with user experience, he ensures that Datacapt remains a high-performance platform that’s also intuitive and accessible to every user.
Blog & News Datacapt
News, Articles, Resources et Tutorials.
