Skip to main content

Data Protection Impact Assessment (DPIA)

Status of this document

This DPIA was prepared by the project team (a graduation project; the pilot was built for Ziekenhuis Oost-Limburg) as a DPIA-style assessment. It has not been reviewed by a data protection officer, has not been approved by legal counsel, and has not been signed off by the hospital. It should be read as the project's own risk analysis, not as a validated compliance record. The project's internal data-retention note of 12 June 2026 also records known gaps, listed under Known gaps below.

Regulatory basis

This assessment is prepared with reference to GDPR Art. 35 (Regulation (EU) 2016/679), which requires an assessment where processing is "likely to result in a high risk to the rights and freedoms of natural persons." While the ZOL Intelligent Search system processes publicly available hospital information rather than patient records, two factors invoke a proactive DPIA per WP29 Guidelines on DPIA (WP 248 rev.01): (a) the healthcare context (data concerning health is special-category data under GDPR Art. 9 even when nominally about hospitals rather than patients), and (b) the system's use of automated decision-making (intent classification) that influences how a user's query is handled. A proactive DPIA is the prudent posture and is encouraged by the Belgian Data Protection Authority's (GBA / APD) sectoral guidance.

1. System description​

1.1 Purpose​

The pilot built for ZOL (the ZOL Intelligent Search system) is intended to replace keyword-based search on the hospital website with a natural-language interface. Users ask questions in Dutch (or other supported languages — see §1.5) and receive grounded, cited responses about hospital departments, doctors, conditions, treatments, and practical information.

1.2 Data controller​

Ziekenhuis Oost-Limburg (ZOL), Genk, Belgium, is the intended data controller for a production deployment. The hospital's Data Protection Officer has not reviewed this document.

1.3 Processing scope​

Data categorySourceContains personal data?Storage
User queriesWebsite visitors / phone callersPossible (users may include names, phone numbers, symptom descriptions)PostgreSQL; voice-side redaction strips inline PII before structured-log emission
Hospital contentZOL public website + published brochuresYes (doctor names, department phones, emails — all public-domain)pgvector, an entity taxonomy in PostgreSQL, object storage
Response dataSystem-generatedNo patient PIIConversation history
Session metadataBrowser session / SIP callIP address, timestamps, language code, caller-ID-on-voicePostgreSQL, Redis (ephemeral cache)
AnalyticsAggregated query patternsNo (aggregated, anonymised)PostgreSQL
Audit logsSecurity-relevant events (auth, safety blocks, PII detections, GDPR deletions)Yes (user_id, IP)PostgreSQL (audit tables)

1.4 Data flow​

1.5 Languages and demographics​

In the project's code, the web chat detects and answers in twelve languages (Dutch as the primary language, plus English, French, German, Turkish, Italian, Romanian, Greek, Arabic, Polish, Russian and Spanish); voice calls are supported in four languages (Dutch, English, French and Italian), with the language locked at the first utterance. Language quality is not evaluated equally for all of them. The hospital serves a diverse population in Belgian Limburg including significant Turkish, Romanian, Italian, Greek, and Polish communities; multilingual capability is itself a fairness-driven design decision (see adversarial hardening multilingual coverage for the language list).

2. Necessity and proportionality (GDPR Art. 5)​

2.1 Lawful basis​

BasisArticleJustification
Public interestArt. 6(1)(e)Healthcare institutions have a public-service duty to make their services accessible. The system is a wayfinding tool that supports that duty. (Proposed by the project team; not confirmed by the controller.)
Legitimate interestArt. 6(1)(f)Improving hospital information accessibility for patients and visitors; balanced against the negligible processing of personal data, the public-domain nature of the content, and voluntary user interaction. The interest passes the three-part test (purpose, necessity, balancing) per WP29 Opinion 06/2014.

The system does not rely on consent (Art. 6(1)(a)) because the processing is incidental to the user's voluntary act of using the search function; explicit consent would add friction without protection benefit and would not be the most appropriate basis under EDPB Guidelines 05/2020 on consent.

The system does not process special-category data (Art. 9) deliberately: the corpus contains general-public hospital information, not patient health records. Inadvertent special-category content in user queries (a caller mentioning their symptoms) is processed under Art. 9(2)(h) (provision of healthcare) and Art. 9(2)(i) (public health) jointly — the user is interacting with a hospital channel for a healthcare-adjacent purpose.

2.2 Necessity​

The processing is necessary because:

  • According to the January 2026 project brief, the existing website search handles roughly 25,000 queries per month, indicating sustained demand for better information access;
  • Keyword search is described in the same brief as weak on natural-language questions (such as "Ik heb pijn in mijn borst, naar welke afdeling moet ik?");
  • The alternative (no AI assistance, keyword-only search) results in increased helpdesk load and frustrated patients — the operational rationale for the project;
  • No less intrusive means achieves the same accessibility improvement.

2.3 Proportionality​

PrincipleArticleImplementation
Data minimisationArt. 5(1)(c)Only publicly available hospital content is indexed. No patient records, medical histories, or insurance data enters the system. Voice transcripts are PII-redacted before reaching structured logs.
Purpose limitationArt. 5(1)(b)Queries are used to generate responses. They are also used for quality work: real user questions from negative feedback can be added to the evaluation question set (see the Evaluation Overview), and stored conversations were read during the June 2026 incident audit. There is no automatic expiry of stored conversations (12 June 2026 note). No use for marketing or profiling is documented.
Storage limitationArt. 5(1)(e)Per-data-class retention documented in the Data Retention Policy. The retention schedule is a target; see Known gaps for what is not yet in place.
AccuracyArt. 5(1)(d)Source citations enable users to verify claims against the original hospital content. RAG grounding is designed to constrain generation to retrieved evidence.

3. Risk assessment​

3.1 Identified risks​

Where a residual-risk rating relies on the project's own evaluation or tests, this is marked explicitly. No rating in this table has been independently verified.

RiskLikelihoodSeverityInherent riskMitigationResidual risk
R1: System provides medical adviceLow to medium (this risk materialised on 1 June 2026)CriticalHIGHLayered safety architecture (see Safety Architecture); refuse-and-link policy; the project's safety tests; live probe after each deployment (with the gaps described on the Safety page)MEDIUM — project team's rating, revised October 2026 (relies on self-reported evaluation); raised from the earlier rating of LOW after the June 2026 incident
R2: User PII in queries forwarded to LLM providerMediumMediumMEDIUMPII detection + audit logging; PII-containing queries excluded from semantic cache; OpenAI's standard data processing addendum is the intended safeguardLOW (rating relies on self-reported evaluation)
R3: LLM hallucination produces incorrect hospital infoMediumMediumMEDIUMSource grounding (RAG); citation verification; quality gate at calibrated similarity threshold (per ADR-0048)LOW (rating relies on self-reported evaluation)
R4: Query-data breach (conversation history)LowMediumLOWTLS in transit (RFC 8446); encryption at rest stated as a design intent; Keycloak-mediated access controlLOW (rating relies on stated configuration, not independently verified; stored conversations are not anonymised, see Known gaps)
R5: Re-identification from aggregated analyticsVery lowLowLOWAnalytics pre-aggregated; no individual query trackingVERY LOW (rating relies on self-reported evaluation)
R6: Discrimination via language-based quality gapsLowMediumMEDIUMMultilingual support with translated safety messages; per-language evaluation plannedLOW (rating relies on self-reported evaluation)
R7: Adversarial-input safety bypass (GCG suffix attacks)LowCriticalMEDIUMPerplexity-based anomaly detector (ADR-0036); LLM-as-judge defence-in-depth; see Adversarial HardeningLOW (rating relies on self-reported evaluation)
R8: Voice-side PII surfaces in logsMediumMediumMEDIUMVoice-side redaction strips Belgian phone numbers, names, and date-of-birth patterns before log emission; SHA-256 hashing for audit-trail correlation without plaintext retentionLOW (rating relies on self-reported evaluation)

3.2 Risk details​

R1: Medical advice (critical)​

The most significant risk: a response that could be interpreted as medical advice could cause patient harm. This risk materialised in practice: on 1 June 2026 the pilot gave a specific medication dose, and an audit found further dosing answers since 15 May 2026. See the factual record. The system now implements four layered safety checks (see Safety Architecture):

  1. Intent classification blocks medical-advice queries before retrieval
  2. Post-generation regex scans for Dutch medical-advice patterns
  3. LLM-as-judge validates response safety
  4. Quality gate blocks low-confidence responses

The backend appends no per-answer medical disclaimer; the web chat shows a standing AI notice and voice calls open with a spoken AI disclosure (see the Safety Architecture).

Evidence: refusal is checked by the project's own automated tests and by a probe after each deployment (self-reported). These checks have had gaps: the automated pipeline did not run from mid-June to 18 July 2026, and no independent audit has been carried out; see the Safety Architecture. See Quality Evaluation for methodology, and Adversarial Hardening for adversarial tests. The residual rating for R1 relies on this self-reported evidence.

R2: PII in query forwarding​

Users may include personal information in queries (phone numbers, names). This data flows to the LLM provider (OpenAI) for response generation and embedding; on the voice channel, speech and text also pass to Deepgram and ElevenLabs, and retrieved passages are sent to Jina for reranking.

Mitigations:

  • PII detection layer flags and logs PII occurrences (regex patterns covering Belgian formats — see PII Protection)
  • PII-containing queries excluded from semantic cache (so the same PII string is not retained)
  • OpenAI's Data Processing Addendum is the intended Art. 28 (processor) safeguard; execution for this deployment is not evidenced
  • Other processors that see query-derived data: Deepgram (speech-to-text) and ElevenLabs (text-to-speech) on the voice channel, and Jina (reranking). A data processing agreement for each is not evidenced in the project record
  • No PII is stored in the knowledge graph or vector store
  • Voice channel: a redaction step strips PII patterns before structured-log emission, supporting GDPR Art. 5(1)(c) data minimisation at the log layer

R6: Language discrimination​

The system targets a diverse-population catchment area; non-Dutch queries must achieve quality parity with Dutch queries to avoid indirect discrimination under GDPR recital 71 (automated decision-making fairness).

Mitigations:

  • Multilingual support with translated safety messages
  • Query rewriting normalises non-Dutch input
  • Per-language quality evaluation is planned
  • Helpdesk fallback (089 32 50 50) remains available regardless of system performance

R7: Adversarial-input safety bypass​

Documented threat model: Universal and Transferable Adversarial Attacks on Aligned Language Models (Zou et al., 2023) demonstrated that GCG-style adversarial suffixes bypass standard LLM safety alignment. For a healthcare safety architecture, an attack that bypasses intent classification can trigger the medical-advice failure class.

Mitigations: See Adversarial Hardening. Perplexity-based anomaly detection runs before any LLM call and is designed to block adversarial suffixes (self-reported tests).

See Zou et al. 2023 GCG attacks.

4. Data-subject rights (GDPR Chapter III)​

RightArticleImplementation
InformationArt. 13–14Privacy notice on hospital website; the intent is that the system identifies itself as AI-powered search (AI Act Art. 50 transparency); verification on the live system is open, see EU AI Act Compliance
AccessArt. 15Conversation history available via authenticated session; an administrator can export per-user data through an administrative function
RectificationArt. 16Hospital content errors corrected at source; system re-ingests on next crawl
ErasureArt. 17An authenticated administrative deletion function exists to honour GDPR erasure requests. Copies in forensic backups expire only after up to 30 days (see Known gaps).
RestrictionArt. 18Processing can be paused per-user via rate-limit override or admin block
Data portabilityArt. 20Conversation export in JSON through an administrative function
ObjectionArt. 21Users opt out by not using the search function; traditional phone/email channels remain available
Automated decision-makingArt. 22Intent classification is automated but does not produce legal effects or similarly significantly affect the data subject (the test under Art. 22(1)). Blocked queries receive a helpful redirect, not a denial of service.

5. Technical and organisational measures (GDPR Art. 32)​

5.1 Technical measures​

MeasureArticle anchorImplementation
Encryption at restArt. 32(1)(a)Database volume encryption (stated design intent; not independently verified)
Encryption in transitArt. 32(1)(a)TLS 1.2+ for all web and WebSocket connections; secure SIP (SIPS) for telephony signalling is planned (voice telephony Phase B, ADR-0050); there is no evidence that it is live
Pseudonymisation of audit dataArt. 4(5), Art. 32(1)(a)Voice transcripts are PII-redacted at log boundary; SHA-256 hashing for audit-trail correlation
Access controlArt. 32(1)(b)Keycloak OIDC authentication (@owasp_llm_top10 LLM06 mitigation by delegating identity to an audited IdP) with JWT validation; role-based authorisation (user / admin)
Network isolationArt. 32(1)(b)Container networks; no direct database exposure
Audit loggingArt. 32(1)(d)Structured audit trail for all security-relevant events; see Data Retention Policy for retention
MonitoringArt. 32(1)(d)Operational metrics; health checks; per-turn voice telemetry
BackupArt. 32(1)(c)Regular database dumps of conversation and audit tables (every two hours, kept 30 days, since June 2026). Point-in-time recovery was not available when the June 2026 incident occurred.

5.2 Organisational measures​

MeasureStatus
Data Processing Agreement with OpenAIOpenAI's standard data processing addendum is the intended safeguard; execution for this deployment is not evidenced in the project repository
Security incident response procedureDescribed in an internal pilot runbook; not independently reviewed
Regular access reviewIntended; no review record exists in the repository
Data processing agreements with Deepgram, ElevenLabs and JinaNot evidenced in the project record
Privacy training for hospital staffRecommended for the helpdesk team; not carried out by the project
ISO/IEC 27001 alignment (target, not certification)Posture being aligned to ISO/IEC 27001:2022 controls; certification not currently held

See ISO/IEC 27001:2022.

6. Consultation​

StakeholderConsultation
Hospital DPONot yet consulted. Review would be required before production deployment (Art. 35(2))
IT SecurityNot yet carried out
Communication teamNot yet carried out
PXL UniversityAcademic supervision of ethical considerations
Belgian Data Protection Authority (GBA / APD)Prior consultation under Art. 36 is not currently anticipated, on the project team's own assessment of residual risk as LOW to MEDIUM (self-assessed)

7. Conclusion​

On the project team's own assessment, the pilot processes limited personal data (user queries and session metadata) for a legitimate and proportionate goal (improving hospital information accessibility). The mitigations the project relies on are:

  • A layered safety architecture. Medical-advice failures are not excluded: the pilot gave a specific dose on 1 June 2026 and was remediated afterwards (see the factual record)
  • PII detection, audit logging, and voice-side redaction
  • Source-grounded responses with citations
  • A per-data-class retention schedule documented in the Data Retention Policy (a target; see below)
  • Role-based access control (Keycloak OIDC) and encryption in transit
  • Adversarial-input hardening per ADR-0036

Outcome (project team's view, not validated): the residual risks appear acceptable for a limited pilot given these mitigations, subject to the following before any wider deployment:

  1. Review of this document by the controller's Data Protection Officer (Art. 35(2));
  2. Confirmation that an OpenAI data processing agreement is in place (Art. 28);
  3. Publication of a user-facing privacy notice referencing the outcome of the review.

Known gaps​

From the project's internal data-retention note of 12 June 2026 (a draft prepared for DPO and legal review):

  • Stored conversation content is not anonymised or pseudonymised.
  • Conversation tables had no automatic expiry at the time of the note.
  • Deleting a user's rows does not purge copies in forensic backups, so erasure completes only when those backups expire (up to 30 days).
  • Users can type medical questions without authenticating, so stored queries can be sensitive even without an identified person.
  • That note recorded that no DPIA existed at that date; this document is the project team's own assessment and has not been reviewed by a DPO. The page was first written on 28 February 2026, so the note's statement describes the formal DPIA process and not this page's existence.

8. Review schedule​

This DPIA shall be reviewed:

  • Before any significant change to data-processing activities (per Art. 35(11));
  • When new data categories are introduced (e.g., patient portal integration);
  • At minimum annually from the date of production deployment;
  • Following any data-protection incident, regardless of notification threshold under Art. 33–34.

Document version: 2.0 (2026-05-10), revised October 2026 | First written: 28 February 2026 | Last revised: October 2026 | Author: SOFT4U BV (project team). Not reviewed by a data protection officer.

References​