# Patient Picture

**URL:** <https://community.open-emr.org/t/patient-picture/23425>\
**Category:** Inpatient Development\
**Created:** [September 25, 2024, 6:09pm UTC](https://community.open-emr.org/t/patient-picture/23425 "2024-09-25T18:09:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luisuriarte](https://community.open-emr.org/user_avatar/community.open-emr.org/luisuriarte/32/15503_2.png) [@luisuriarte](https://community.open-emr.org/u/luisuriarte)\
**Post date:** [September 25, 2024, 6:09pm UTC](https://community.open-emr.org/t/patient-picture/23425/1 "2024-09-25T18:09:14Z")

</div>

Hi friends.  
Please, I am trying to make a modal form for patient information. Could someone help me (where to look in the code) how to get the patient picture if I have the patient\_id?.  
Thank so much.  
Luis

---

<div class="post-metadata">

**Author:** ![mdsupport](https://community.open-emr.org/user_avatar/community.open-emr.org/mdsupport/32/10763_2.png) [@mdsupport](https://community.open-emr.org/u/mdsupport)\
**Post date:** [September 25, 2024, 9:14pm UTC](https://community.open-emr.org/t/patient-picture/23425/2 "2024-09-25T21:14:49Z")

</div>

> <https://github.com/openemr/openemr/blob/f9e3158455f3f755b4bfabd724a67380d53e3d16/src/Services/PatientService.php#L625>

---

<div class="post-metadata">

**Author:** ![luisuriarte](https://community.open-emr.org/user_avatar/community.open-emr.org/luisuriarte/32/15503_2.png) [@luisuriarte](https://community.open-emr.org/u/luisuriarte)\
**Post date:** [September 25, 2024, 9:48pm UTC](https://community.open-emr.org/t/patient-picture/23425/3 "2024-09-25T21:48:37Z")

</div>

Thank you, thank you very much…🙂

---

<div class="post-metadata">

**Author:** ![luisuriarte](https://community.open-emr.org/user_avatar/community.open-emr.org/luisuriarte/32/15503_2.png) [@luisuriarte](https://community.open-emr.org/u/luisuriarte)\
**Post date:** [September 26, 2024, 1:57am UTC](https://community.open-emr.org/t/patient-picture/23425/4 "2024-09-26T01:57:48Z")

</div>

I couldn’t use the function. But I found out by searching between browser console and grep, I used this code:

```auto
<img data-bind="attr: {src: patient_picture}"
class="img-thumbnail"
width="80"
height="80"
onerror="this.src = '../images/default_patient.svg'"
src="/controller.php?document&amp;retrieve&amp;patient_id=<?php echo $bedPatient['bed_patient_id']; ?>&amp;document_id=-1&amp;as_file=false&amp;original_file=true&amp;disable_exit=false&amp;show_original=true&amp;context=patient_picture">
```

Finally I was able to add the patient picture. Thanks a lot anyway.

\<?php echo $bedPatient['bed\_patient\_id']; ?\> is my variable.
