Where 1193 and 2295 are patient_ids and the UUID is auto-generated.
When I try to create a new instance with same openmrs database and configurations as the server that has the images above then add the images to their respective folders in /home/bahmni/document_images, the images are not displayed in the Documents tab.
I’m wondering if there is something I am doing wrong?
Can you tell us the approach that you have followed to copy database and configuration files from one instance to other instance.
We suggest you to follow Backup/Restore commands wiki page to take backup from one instance and restore it in other instance as it has the support for file backup.
Hi @jmbabazi,[quote=“jmbabazi, post:1, topic:11498”]
├── 1193-Consultation-1de16bb1-94f4-431a-8521-886b5469666b.png│ ├── 1193-Consultation-1de16bb4-94f4-431a-8521-886b5469666b_thumbnail.png
These are not patient document images that you can see in the documents tab as mentioned in this wiki page. These are patient consultation images that got uploaded from Observation tab. You can see these consultation images if you open that particular visit of the patient when it got uploaded. You can also try it in demo.mybahmni.org.
The document_images thing is not a specific endtb-configuration. Endtb has got a different use case to use it.
Ideally having the /home/bahmni/document_images folder restore along with Data base restore should work.
But in your case the image is still not displayed. But do you see the observation under Documents Tab?
I am anticipating that the permission to the folders/files might have got messed up because it was restore.Please find the below for the right permissions on the folders & files.
If this still doesn’t make it work, we need to debug with 1 particular observation and check if the observations table value_complex is referring to correct file.
Thank you @swathivarkala. I’ve managed to restore these images. The issue was with the old DB which didn’t have the value_complex data.
I assume that its okay to just add my other question here instead of creating a new thread. In Documents Tab, you cannot view a pdf file if the json configuration of the patient document is obs-to-obs flowsheet.
To view a pdf document, the config should be like below; but this changes the beautiful tabular display, which most clinicians love.