Skip to content
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

Application integration #10

Open
tnikolai2 opened this issue Dec 2, 2020 · 5 comments
Open

Application integration #10

tnikolai2 opened this issue Dec 2, 2020 · 5 comments

Comments

@tnikolai2
Copy link

There are useful functions to work with forms:

form_data=LForms.Util.getFormFHIRData('QuestionnaireResponse', "R4", div)
. . .
LForms.Util.addFormToPage(form_data, div);

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.

@plynchnlm
Copy link
Member

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.

@tnikolai2
Copy link
Author

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();

@plynchnlm
Copy link
Member

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.

@tnikolai2
Copy link
Author

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.

@plynchnlm
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants