-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(feat)O3-2210: Add support for file picker to form engine #103
Conversation
Screencast.from.21-08-23.11.59.03.webm |
Hello
|
@jona42-ui did you intend to pickup where @donaldkibet left off with #88?
@donaldkibet mentioned to me while in Abuja that the missing piece in the puzzle was figuring out how to persist the attachments without depending on the attachments module. @donaldkibet do you wanna share your findings? @ibacher @mogoodrich does the WS/REST module support Complex Obs out of the box? If so, is this our best shot? |
sure @samuelmale though I needed more of either an editor that opens image files in new tab or a pop up window on annotation then persisting the clinical images with form data on encounter |
It should. REST is generally a pretty thin wrapper around the underlying Java APIs and we certainly support complex obs there. However, correctly creating complex obs is, well, complex. They rely on having an appropriate set of handlers on the backend to work with the data (complex obs are basically stored as a binary string that's interpreted by a handler). |
Thanks @ibacher I was thinking to have a utility somewhat like this;
|
abit scary @ibacher but atleast i wanted to persist the images to complete my gsoc project, what advice can you give to me kindly to have something functional. thanks so much. |
@ibacher I had a temporary hack and used the attachment resources to persist the image though this is not the plan for the forms' data to save the images//complex obs. |
@jona42-ui Ultimately, I think using the attachment resource is the right idea here. The trick is to ensure it's attached to the same encounter as the form. |
Closing this because work is being track at #128 |
Requirements
Summary
Added a file component and schema update to include the required questionOption for rendering files, including specifications such as maximum allowed file size and allowed file types (e.g., .jpg). like
Implented a preview feature for files that are yet to be uploaded.
Screenshots
Related Issue
O3-2210
Other