# PDS Test Patient - Int environment Issues

**URL:** <https://developer.community.nhs.uk/t/pds-test-patient-int-environment-issues/10795>\
**Category:** Personal Demographics Service FHIR API\
**Tags:** testing, pds, spine\
**Created:** [21 February 2026 06:44 UTC](https://developer.community.nhs.uk/t/pds-test-patient-int-environment-issues/10795 "2026-02-21T06:44:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Mayfield](https://dub1.discourse-cdn.com/nhsdigitaldeveloper/user_avatar/developer.community.nhs.uk/kevin_mayfield/32/473_2.png) [@Kevin\_Mayfield](https://developer.community.nhs.uk/u/Kevin_Mayfield)\
**Post date:** [21 February 2026 06:44 UTC](https://developer.community.nhs.uk/t/pds-test-patient-int-environment-issues/10795/1 "2026-02-21T06:44:54Z")

</div>

Is it possible to protect our test patients from modifications by others? Or get the test patients reloaded periodically (overnight?)

We’re establishing a multi NHS Trust and Diagnostic system which involves several organisations using the same PDS test patients.

We are finding our test patients are getting unrealistic modifications. For example:

Our Sansa Manchester (9737383192) patient has been given an Indian like name, also become Cersei London (9737383230) and also moved to Scunthorpe. (NHS Number didn’t change just the demographics)

This causes our IG and data quality checks to start rejecting clinical interactions we are testing. At present this is a local issue with NHS trusts in two ICS (one region) but we are likely to add a second region (so whole of the North).

---

<div class="post-metadata">

**Author:** ![dunmail](https://dub1.discourse-cdn.com/nhsdigitaldeveloper/user_avatar/developer.community.nhs.uk/dunmail/32/126_2.png) [@dunmail](https://developer.community.nhs.uk/u/dunmail)\
**Post date:** [23 February 2026 17:53 UTC](https://developer.community.nhs.uk/t/pds-test-patient-int-environment-issues/10795/2 "2026-02-23T17:53:37Z")

</div>

It’s been a frustration for a couple of years:

> [@PDS API Patient search returns unexpected match](https://developer.community.nhs.uk/t/pds-api-patient-search-returns-unexpected-match/226/9):
>
> Whilst the test data page says that the data are read-only, in reality they can be updated by users of the system and therefore can differ from the details in the spreadsheet. This is compounded by the problem that @chris.clarke described where the data underpinning read and search interactions become unsynchronised. You can request a dataset specifically for your own use that is less likely to be modified.

I would be delighted if the static data stopped changing …

---

<div class="post-metadata">

**Author:** ![Kevin\_Mayfield](https://dub1.discourse-cdn.com/nhsdigitaldeveloper/user_avatar/developer.community.nhs.uk/kevin_mayfield/32/473_2.png) [@Kevin\_Mayfield](https://developer.community.nhs.uk/u/Kevin_Mayfield)\
**Post date:** [24 February 2026 08:19 UTC](https://developer.community.nhs.uk/t/pds-test-patient-int-environment-issues/10795/3 "2026-02-24T08:19:12Z")

</div>

I should have checked that either you or @iminshall had raised this before.

We originally noticed this issue around the old EDITESTPATIENTS (for pathology) and decided to create our own for genomics.

Most of the test systems already had these EDITESTPATIENTS and we would have reused them (we are a variation of this and so it makes sense).

We’re about to extend the use of our test patients across “The North”.

---

<div class="post-metadata">

**Author:** ![Adrian\_Hall](https://dub1.discourse-cdn.com/nhsdigitaldeveloper/user_avatar/developer.community.nhs.uk/adrian_hall/32/587_2.png) [@Adrian\_Hall](https://developer.community.nhs.uk/u/Adrian_Hall)\
**Post date:** [24 February 2026 10:59 UTC](https://developer.community.nhs.uk/t/pds-test-patient-int-environment-issues/10795/4 "2026-02-24T10:59:59Z")

</div>

I’m not sure it is possible to stop this happening. Other consumers should _not_ be using your test data, but marshalling that is very hard.  
Reloading patients can’t be done globally, because state needs protecting. I’m not sure what processes are available for your circumstances, but I will ask around.

I’m assuming you have raised a service desk ticket about it?

---

<div class="post-metadata">

**Author:** ![dunmail](https://dub1.discourse-cdn.com/nhsdigitaldeveloper/user_avatar/developer.community.nhs.uk/dunmail/32/126_2.png) [@dunmail](https://developer.community.nhs.uk/u/dunmail)\
**Post date:** [24 February 2026 12:44 UTC](https://developer.community.nhs.uk/t/pds-test-patient-int-environment-issues/10795/5 "2026-02-24T12:44:46Z")

</div>

Issue raised 3 years ago, but no resolution.

Our approach for testing is to pull current state from PDS INT during initialisation of a regression test suite and then use that state to infer tests. For example, if `4123456789` has surname `Smith`, we expect to match `Patient?name=Smith`. This limits some of the regression tests we can conduct, but means we are only exposed to changing state for the duration of the test suite.

It’s not a viable option for testing across multiple systems (_i.e._ Kev’s case) unless they **all** use PDS as their MPI.

---

<div class="post-metadata">

**Author:** ![jakob](https://avatars.discourse-cdn.com/v4/letter/j/71c47a/32.png) [@jakob](https://developer.community.nhs.uk/u/jakob)\
**Post date:** [24 February 2026 22:11 UTC](https://developer.community.nhs.uk/t/pds-test-patient-int-environment-issues/10795/6 "2026-02-24T22:11:23Z")

</div>

Changes in INT messing up patients seems to be a common problem across services. [GP Connect errors for integration testing](https://developer.community.nhs.uk/t/gp-connect-errors-for-integration-testing/10182)

---

<div class="post-metadata">

**Author:** ![Nicholas\_Hunt](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@Nicholas\_Hunt](https://developer.community.nhs.uk/u/Nicholas_Hunt)\
**Post date:** [27 February 2026 17:02 UTC](https://developer.community.nhs.uk/t/pds-test-patient-int-environment-issues/10795/7 "2026-02-27T17:02:05Z")

</div>

You can use TDSSP to reload your own PDS packs into spine PTL. This will re-baseline the records to how they are defined in TDSSP, effectively negating any changes that might have been made outside of TDSSP.

---

<div class="post-metadata">

**Author:** ![Adrian\_Hall](https://dub1.discourse-cdn.com/nhsdigitaldeveloper/user_avatar/developer.community.nhs.uk/adrian_hall/32/587_2.png) [@Adrian\_Hall](https://developer.community.nhs.uk/u/Adrian_Hall)\
**Post date:** [4 March 2026 07:54 UTC](https://developer.community.nhs.uk/t/pds-test-patient-int-environment-issues/10795/8 "2026-03-04T07:54:11Z")

</div>

> [@Nicholas\_Hunt](#):
>
> TDSSP

[Setting up test data in our path to live environments - NHS England Digital](https://digital.nhs.uk/services/path-to-live-environments/setting-up-test-data-in-our-path-to-live-environments)
