How to convert FHIR Questionnaire to Aidbox Forms and back
You can use Aidbox to convert
FHIR Questionnaires to Aidbox Forms
Aidbox Forms to FHIR Questionnaires (with some limitations)
SDCDocument to FHIR QuestionnaireResponse resource.
You can use Aidbox Form API
aidbox.sdc/convert-document
- converts SDCDocument to FHIR QuestionnaireResponseaidbox.sdc/convert-questionnaire
- converts FHIR Questionnaire to Aidbox SDC Formaidbox.sdc/convert-form
- converts Form to FHIR Questionnaireaidbox.sdc/convert-forms
- converts all Forms to Questionnaire and save them in Aidbox
Optional features
Aidbox Forms supports
automatic Form convertion to Questionnaire resource on Aidbox startup.
automatic SDCDocument convertion to QuestionnaireResponse resource on SDCDocument save.
These features can be configure via api-constructor in zen-project.
You need to configure your aidbox/system
with sdc-service
and it's configuration.
Example:
Your zen-project entrypoint namespace (box.edn for example)
Forms conversion on startup
For forms conversion you should set [:conversion :convert-forms-on-start]
property to true
Example:
You need to restart aidbox to take effect of changed configuration
Document conversion on save
For Document conversion you should set [:conversion :convert-doc-on-save]
property to true
Example:
You need to restart aidbox to take effect of changed configuration
After that - every document changes will be reflected in QuestionnaireResponse resources.
NOTE:
id
of convertedQuestionnaireResponse
will be the same asid
ofSDCDocument
.
Last updated