# PDS API Patient search by postcode

**URL:** <https://developer.community.nhs.uk/t/pds-api-patient-search-by-postcode/227>\
**Category:** Personal Demographics Service FHIR API\
**Tags:** fhir, spine\
**Created:** [15 February 2023 14:31 UTC](https://developer.community.nhs.uk/t/pds-api-patient-search-by-postcode/227 "2023-02-15T14:31:15Z")\
**Posts on this page:** 8\
**Page:** 1

<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:** [15 February 2023 14:31 UTC](https://developer.community.nhs.uk/t/pds-api-patient-search-by-postcode/227/1 "2023-02-15T14:31:15Z")

</div>

PDS API allows a Patient search by postcode using the parameter `address-postcode`.

FHIR R4 has an existing search parameter `address-postalcode`.

Why does PDS API use a different parameter to search on this property?

---

<div class="post-metadata">

**Author:** ![haroon.ahmed12](https://avatars.discourse-cdn.com/v4/letter/h/90ced4/32.png) [@haroon.ahmed12](https://developer.community.nhs.uk/u/haroon.ahmed12)\
**Post date:** [20 February 2023 11:28 UTC](https://developer.community.nhs.uk/t/pds-api-patient-search-by-postcode/227/2 "2023-02-20T11:28:08Z")

</div>

Hi Dunmail!

Thanks for your query!  
We’re looking into this and will get back to you as soon as we have something.

Thank you for your patience while we investigate.  
Haroon

---

<div class="post-metadata">

**Author:** ![chris.clarke](https://dub1.discourse-cdn.com/nhsdigitaldeveloper/user_avatar/developer.community.nhs.uk/chris.clarke/32/134_2.png) [@chris.clarke](https://developer.community.nhs.uk/u/chris.clarke)\
**Post date:** [22 February 2023 17:40 UTC](https://developer.community.nhs.uk/t/pds-api-patient-search-by-postcode/227/3 "2023-02-22T17:40:58Z")

</div>

As far as I’ve been able to ascertain, an oversight.

I’ve raised a ticket to add support for `address-postalcode` and update the documentation

---

<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 2023 14:00 UTC](https://developer.community.nhs.uk/t/pds-api-patient-search-by-postcode/227/4 "2023-02-23T14:00:20Z")

</div>

Thanks!

Is there a way to track the ticket so that we know if/when it has been resolved?

---

<div class="post-metadata">

**Author:** ![chris.clarke](https://dub1.discourse-cdn.com/nhsdigitaldeveloper/user_avatar/developer.community.nhs.uk/chris.clarke/32/134_2.png) [@chris.clarke](https://developer.community.nhs.uk/u/chris.clarke)\
**Post date:** [24 February 2023 09:30 UTC](https://developer.community.nhs.uk/t/pds-api-patient-search-by-postcode/227/5 "2023-02-24T09:30:44Z")

</div>

I don’t believe there’s a way to track our internal tickets, but I’ll add a note to it to send an update here when it’s been resolved, however that may be.

---

<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:** [3 March 2023 10:49 UTC](https://developer.community.nhs.uk/t/pds-api-patient-search-by-postcode/227/6 "2023-03-03T10:49:53Z")

</div>

NHS API Management team let me know that this fault has been added to the backlog as ticket SPINEDEM-1014 but it’s not expected to be resolved in the immediate future.

---

<div class="post-metadata">

**Author:** ![Peter.Gallagher](https://avatars.discourse-cdn.com/v4/letter/p/977dab/32.png) [@Peter.Gallagher](https://developer.community.nhs.uk/u/Peter.Gallagher)\
**Post date:** [28 June 2023 09:17 UTC](https://developer.community.nhs.uk/t/pds-api-patient-search-by-postcode/227/7 "2023-06-28T09:17:05Z")

</div>

This issue has now been resolved.

PDS API will now accept `address-postalcode` and `address-postcode`, however if both are provided then an error will be returned.

`address-postcode` will be deprecated some time in the future.

[The official documentation can be found here](https://digital.nhs.uk/developer/api-catalogue/personal-demographics-service-fhir#get-/Patient)

---

<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:** [28 June 2023 09:51 UTC](https://developer.community.nhs.uk/t/pds-api-patient-search-by-postcode/227/8 "2023-06-28T09:51:39Z")

</div>

Thanks for resolving this - we’ve tested and this parameter is now as we would expect.
