A laboratory service credential is not a patient permission
A pathology provider sends results to a network of clinics through an integration account. The account is technically valid, but a query endpoint may retrieve a different patient’s record when supplied with another identifier. The issue is not whether the laboratory can authenticate. It is whether the receiving application checks that the requested patient, order, requesting clinician and care relationship belong together. A successful interface message for Patient A should not establish standing permission to view Patient B.
Clinical systems exchange information in batches and through several interfaces. A doctor may order a test at one site, the laboratory may produce a corrected result later, and the record may be synchronised through an intermediary. Hard-coding one simple user-to-patient mapping is not always safe. The appropriate authorisation model needs to reflect actual care assignments while preventing the supplier from using a broad system token as a universal patient search key.
Map the result from collection to chart
Document the identifiers that connect the referral, specimen, laboratory order, patient and intended clinical recipient. Identify which system is authoritative for each and when those relationships can change. A laboratory may know an order number but not every current care-team membership. The clinic may know the patient chart but have no direct visibility of the third-party job that delivered the result. The integration contract should make clear which service performs the patient-context decision and what trace can substantiate it.
Trace both a push result and a subsequent retrieval. A well-scoped result-delivery API does not guarantee that a search or document-download endpoint has identical restrictions. Inspect batch exports, reporting jobs, support tools and cached URLs as separate paths. Some interfaces queue work after the initial request; the final worker must not assume that a once-valid association remains authorised after reassignment or interface termination.
Use a synthetic clinical journey with a corrected result
Create two fictional patients with distinct names, record IDs and referring clinicians. Issue a synthetic pathology order for Patient A and generate a result containing a harmless unique marker. The expected test is that the laboratory’s integration delivers the correct result to A’s chart, the relevant clinician can read it and a delivery receipt links back to the original order. Repeat with an amended result and verify that the chart identifies the correction rather than silently duplicating an obsolete value.
The negative case asks the same integration account to retrieve Patient B’s record by changing the identifier, without any legitimate order or documented care relationship. The system should refuse the request at the receiving endpoint, and the denial should appear in an audit trace. If Patient B happens to be in the same clinic or batch, that fact alone is not permission. Evaluate whether the endpoint independently verifies patient and order context or simply trusts an identifier supplied by the calling application.
Batch processing creates plausible but different explanations
A surge of result requests may be normal following an instrument outage or delayed overnight reconciliation. Alert volume does not by itself identify data theft. Investigators should link requests to actual orders and downstream deliveries, assessing unmatched identifiers, repeated denied lookups and unexpected export destinations. A supplier support engineer investigating a failed integration may perform broader diagnostics under an explicit approved role. That exception must be distinguishable in logs from a routine service account calling a patient search endpoint.
If application logging only records the integration account, ask for correlation of message ID, patient context, source facility, receiving clinician and job ID. Where a shared service makes some identity detail impossible to recover, record the limitation and design a future audit improvement. Do not place genuine patient details in an unrestricted security ticket to compensate for missing correlation. Synthetic records can test the control; investigation of real access requires a lawful purpose, minimum necessary information and controlled evidence storage.
Protect continuity during containment
Disabling the laboratory interface may delay results needed for treatment. Before changing a credential or route, involve the clinical safety officer and pathology lead. Agree which results can be handled by an authorised phone escalation, secure manual delivery or existing downtime protocol. Record how clinicians will acknowledge urgent results and how messages received during the disruption will later be reconciled. A control change that preserves confidentiality while losing critical results is not an acceptable completion.
The supplier should stop unauthorised searches without interrupting approved delivery where technically possible. Bind retrieval to active, order-scoped context and constrain support privileges separately. If the design requires an integration credential to hold broad rights for a legacy reason, compensate with gateway filtering, monitoring and a date-bound architectural fix, and make the residual risk visible to clinical governance. Emergency clinical access should be a separate supervised workflow, not a permanent loophole in ordinary laboratory authorisation.
Distinguish authorisation from clinical correctness
A result may be delivered to an authorised clinic yet still be attached to the wrong chart because of identifier mapping or patient merges. Test identity reconciliation alongside permission boundaries, but report the two controls separately. A passed access test does not establish that laboratory identity matching is clinically accurate. Ask the integration owner to validate message handling for amended results, duplicate messages, cancelled orders and records that changed facility after collection.
Consider the reverse case: the correct result is withheld from an authorised clinician because the care relationship changed in one system but not another. The clinical owner needs a safe exception route with explicit patient context, auditable approval and expiry. Avoid making the security team decide treatment access solely from directory groups. The responsible clinicians and privacy officer should approve the context rules and review cases where an automatic match fails.
What would show unauthorised disclosure
When a suspicious lookup appears, preserve the API request identifier, credential claims, patient-context decision, response status and evidence of any resulting document delivery. A denied request is not a disclosure. A successful query containing another patient’s information needs a more serious assessment, especially if an export or onward transmission occurred. Confirm what information was actually returned; a record-existence response is different from a detailed clinical history, though both may have privacy implications.
A supplier may be able to provide only partial logs. Document the exposure interval, known destinations, unavailable evidence and confidence level rather than assuming the best or worst case. Privacy and legal advisers should assess notification obligations from the supported facts. Technical remediation should proceed independently of whether the ultimate investigation establishes deliberate misuse.
Acceptance requires two patients and a real result journey
The final demonstration must show an authorised fictional result successfully delivered and visible to the intended clinical user, an out-of-context patient query refused, a queued or cached retrieval denied after revocation, and an amended result handled correctly. Keep the interface configuration, test identities, order mapping, message IDs, decision events and clinical sign-off together. Re-run the tests after supplier upgrades and after restoring integration components from backup.
The useful control statement is narrow and testable: this service may deliver and retrieve only the results associated with its approved clinical workflow, through every supported entry point. That is stronger than an assurance that the laboratory system is encrypted or that the integration uses multifactor authentication. Confidentiality and safe delivery depend on enforcing patient context where the data is actually used.
Review the contract after the clinical test
The integration agreement should require the pathology provider to identify the service owner, supported patient-context fields, emergency support route and audit access. Ask which party corrects a mistaken association and who decides whether an electronic result may be replayed. The same provisions should cover termination of access and the return or retention of delivered records. These responsibilities need named clinical and technical signatories, because a generic supplier assurance report does not resolve an incorrect patient linkage during a real shift.
Sources and further reading
Explore Next Defence expertise
Next Defence can help your team evaluate the permissions and operational risks in clinical record integrations need patient-level access checks. Our specialists can review evidence such as Interface messages, service scopes, patient object audit and clinical approval, assess whether the authorised work remains usable, and test controls against the unacceptable case where the same integration queries unrelated patients using another identifier. We can agree proportionate remediation with clinical integration owner and privacy lead, backed by a repeatable acceptance test and clear incident responsibilities.