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…
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&retrieve&patient_id=<?php echo $bedPatient['bed_patient_id']; ?>&document_id=-1&as_file=false&original_file=true&disable_exit=false&show_original=true&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.