# Emis Web API GetMedicationIssues on PatientAcessEMISWEBV4\_3

**URL:** <https://openhealthhub.org/t/emis-web-api-getmedicationissues-on-patientacessemiswebv4-3/2766>\
**Category:** open forum\
**Created:** [25 June 2024 08:27 UTC](https://openhealthhub.org/t/emis-web-api-getmedicationissues-on-patientacessemiswebv4-3/2766 "2024-06-25T08:27:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![komal](https://openhealthhub.org/letter_avatar_proxy/v4/letter/k/d07c76/32.png) [@komal](https://openhealthhub.org/u/komal)\
**Post date:** [25 June 2024 08:27 UTC](https://openhealthhub.org/t/emis-web-api-getmedicationissues-on-patientacessemiswebv4-3/2766/1 "2024-06-25T08:27:42Z")

</div>

I am calling getMedicationIssues web api and it has a parameter patientId which is integer type the value I have assigned it is 9999999999 which is too large to be shored in integer type and long type is not acceptable. So, how to pass this argument?

---

<div class="post-metadata">

**Author:** ![dunmail](https://openhealthhub.org/user_avatar/openhealthhub.org/dunmail/32/147_2.png) [@dunmail](https://openhealthhub.org/u/dunmail)\
**Post date:** [25 June 2024 09:02 UTC](https://openhealthhub.org/t/emis-web-api-getmedicationissues-on-patientacessemiswebv4-3/2766/2 "2024-06-25T09:02:42Z")

</div>

`patientId` in EMIS Web is a locally assigned integer, scoped to a single EMIS Web database.

I guess that `9999999999` is a dummy NHS Number?

---

<div class="post-metadata">

**Author:** ![john.salter](https://openhealthhub.org/letter_avatar_proxy/v4/letter/j/8e7dd6/32.png) [@john.salter](https://openhealthhub.org/u/john.salter)\
**Post date:** [25 June 2024 09:32 UTC](https://openhealthhub.org/t/emis-web-api-getmedicationissues-on-patientacessemiswebv4-3/2766/3 "2024-06-25T09:32:03Z")

</div>

It may be worthwhile picking up a valid dummy NHS number rather than 9999999999 as the last digit is a checksum that should be trapped.  
There are some dummy NHS numbers here : [Dummy NHS numbers - Discovery Data Service](https://wiki.discoverydataservice.org/index.php?title=Dummy_NHS_numbers)

Not sure why long isn’t acceptable? However I have seen it as text from some systems for formatting purposes to aid easier reading / data entry e.g. 123-456-7890, or 123 456 7890.  
I frequently receive NHS numbers as text but I would never request them as such!

Apologies I have no knowledge of the API can only speak of my experience with NHS numbers.

---

<div class="post-metadata">

**Author:** ![mayfield.g.kev](https://openhealthhub.org/user_avatar/openhealthhub.org/mayfield.g.kev/32/648_2.png) [@mayfield.g.kev](https://openhealthhub.org/u/mayfield.g.kev)\
**Post date:** [25 June 2024 09:38 UTC](https://openhealthhub.org/t/emis-web-api-getmedicationissues-on-patientacessemiswebv4-3/2766/4 "2024-06-25T09:38:35Z")

</div>

As above.

We use GetMatchedPatient API to find the patient first and use the EMIS ID in the response from that call in subsequent calls.

---

<div class="post-metadata">

**Author:** ![alimusa](https://openhealthhub.org/letter_avatar_proxy/v4/letter/a/5e9695/32.png) [@alimusa](https://openhealthhub.org/u/alimusa)\
**Post date:** [22 August 2024 08:18 UTC](https://openhealthhub.org/t/emis-web-api-getmedicationissues-on-patientacessemiswebv4-3/2766/5 "2024-08-22T08:18:20Z")

</div>

@mayfield.g.kev, are you using Partner APIs? If so, could you guide me on how to get started, particularly with authentication and request/response examples? I’m working in Python and am fairly new to this, so any help would be greatly appreciated. Thank you in advance!

---

<div class="post-metadata">

**Author:** ![msg-dhsit](https://openhealthhub.org/user_avatar/openhealthhub.org/msg-dhsit/32/1095_2.png) [@msg-dhsit](https://openhealthhub.org/u/msg-dhsit)\
**Post date:** [31 January 2025 16:17 UTC](https://openhealthhub.org/t/emis-web-api-getmedicationissues-on-patientacessemiswebv4-3/2766/6 "2025-01-31T16:17:42Z")

</div>

if anyone has anyinfo on connecting to partner API please do respond.
