Upload and View or Download Image or File in HTMLForm Entry Module
Upload and View/Download Image/File in HTMLForm Entry Module
Primary mentor | Saptarshi Purkayastha |
Backup mentor | |
Assigned to |
Abstract
Background: It is important to load images or other files (such as Excel spreadsheets generated during EBRT - External Beam radiation Therapy or Brachytherapy based Oncology treatments) with patients clinical record.
We are proposing this project so that, the implementers while developing the HTML Forms using the HTMLForm entry module can provide a file upload button to the data entry user. Consequently, when the user load a file/image while doing data entry for an encounter, those files should be stored in the server so that they are available to be viewed/downloaded by other users.
Project Champions
Implementation : MissionArogya - ArogyaNet
Rajib Sengupta
Objectives
1.Tag:
Provide a “Tag”, say “Upload File” or “browse” in the HTMLFormEntry module to upload file. It will show up as a button to upload file.
2.Upload:
When the data entry user (the clinician), will enter data for an encounter, they will be provided with this button in the form. While clicked on that button, it will open a file explorer pop-up window. The user can go to his/her desktop/network to locate the file and load it. When the file is loaded it can be stored in the database or as a file in the server itself.
3.View or Download:
In the Encounter lists of the Patient add another icon next to the “Edit” and “View” icon as the “File Uploaded” icon. While clicked on that it should open up another UI (or pop-up) with links to all the files that are attached to that specific encounter. WHile clicked on that link, either the file will be opened or can be downloaded.
OR The file link can be inside the HTML Form itself, as a "Link" . WHile clicked on that link, either the file will be opened or can be downloaded.
Hello! I am interested in this project. Below is my objectives aligned with how I understand the project. Please do correct me if I am far off the objectives of the project.
Project Objectives
•Create a ‘choose file’ and ‘upload file’ button with HTML form that lets users select a file to upload and upload the file which will be posted to the server.
•Move the uploaded file from a temporary storage area on the server to a more permanent location by saving it with the $_FILES associative array.
•Check that no errors occurred during upload and read file from the server. Create a ‘File uploaded’ in a form that will open another UI with links to all the files that are attached to that specific encounter. The files will be opened when their links are clicked on.