I want to add encounter details/observations from my module here.
I managed to add a link in the general actions area from where the user will be directed to module page where one can add details and save info. Now on ending the visit, the above info should be visible in the area shown in the screenshot.
Can someone please help me with steps to achieve this?
I’m still facing troubles about how to use the HTML forms in the module. The documentation is not descriptive enough for me.
In my case, I just have a submit button which uploads files to the server root dir (working). I have created an additional table to keep track of these files with additional details (working).
Now I need to show the uploaded files under encounters section as a list for that particular visit as shown in the screenshot above. The files would be listed either as links for each of these files or a single link to a different page from module where a user can view or modify these files later.
Can you please suggest me how I can achieve this. or a sample module I can peek into?
But in my case, all the observations are stored in the filesystem. I just need to record them as an encounter for the visit and show in the visits along with other encounters.
There is no other form data associated with the encounter apart from the visitId, patientId, startDate, endDate, encounterType and ecounterLocation.
I created a custom encounterType. I’m not sure how to create a new encounter and link it to the patient’s visit as an encounter.
Do we have any tutorial for saving encounter without any form?
And yes, I would like to add, this is for the new UI using >2.4 with openMRS(1.11.6) and uicommons(1.7).
Now I’m trying to figure out a way to uploading and saving the files on the server on submission of the form.
There could be several files which need to be uploaded to the server before moving to the patient dashboard.
I’m planning to save the files on the server, so I created Upload and Download controllers for that purpose and they are working from outside the form.
But within HTML form, there could be many other observations along with the files and canvas. And we need to save all of them.
Your question makes sense. The problem is that HTML Form Entry doesn’t support saving binary data very well. (At least it didn’t when I last worked on it years ago.)