Patient Picture

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

1 Like

Thank you, thank you very much…:slight_smile:

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

<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.