Open tnikolai2 opened 3 years ago
Sorry for the very delayed response. This repository is for the application running at https://lhcformbuilder.nlm.nih.gov/. Is that what you are talking about? It does not save QuestionnaireResponses, but helps you construct a Questionnaire.
I need construct Questionnaire. But how to integrate formbuilder with my javascript app. I need place formbuilder in some html div on my page And load/save Questionnaire via javascript:
formbuilder.load(some_Questionnaire_json,some_div);
. . .
Questionnaire_json=formbuilder.getData();
The form builder was not designed to be embedded in another app, so there is no formal API. It is meant to be a standalone application. However, you are welcome to download or fork the source and customize it as needed. Can you share why you would want to embed the form builder in another application? An example use case would help us to consider whether we should add an API.
Import/export is very inconvenient. If use files - very annoying. If use some fhir server - authentification not possible. If refresh page, need add fhir server url again. Cannot update existing Questionnaire, can only create new one.
I am not sure why you wrote "Cannot update existing Questionnaire", when you also mentioned the Import menu. Maybe you ust meant you can't import a Questionnaire from FHIR server that requires authentication, which is true. We have plans (probably not before next year) to add a SMART on FHIR launch option. Would a SMART on FHIR authentication meet you needs?
There are useful functions to work with forms:
But for formbuilder no such functionality.
Formbuilder can connect to fhir server, but do not remember it, cannot send authentiation data, cant add search criteria. Can only save as new QuestionnaireResponse, but cannot modify existing.
It would be nice to add similar functions (getFormFHIRData,addFormToPage) for formbuilder.