FHIR Questionnaire to Aidbox Forms and back conversion
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.
Form rules conversion to human-readable description.
These features can be configured 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
.
Form rules conversion to human-readable description.
You can enable aidbox.sdc/rules
conversion to human friendly text while converting Form or Document.
Because Questionnaire and QuestionnaireResponse structures doesn't have place where to store such data We define 2 extra profiles for these resource-types.
You can enable this feature by adding:
zen.fhir
andhl7-fhir-r4-core
dependecies to your zen-package.ednaidbox.sdc.extra
import to your entrypoint namespace:describe-rules
key to service configuration or RPC call
Example:
zen-package.edn
box.edn
Assume that box.edn is your zen-project entrypoint namespace
When feature is enabled you will see additional data in Questionnaire
and QuestionnaireResponse
after converting Forms
and Documents
with rules.
In Aidbox
format you will see rule-description
field.
In FHIR
format you will see an extension with valueMarkdown
Include score
value in QuestionnaireResponse
score
value in QuestionnaireResponseaidbox.sdc/choice
field can have additional field called :score
that have no represantation in QuestionnaireResponse.
You can include this field in conversion by adding:
zen.fhir
andhl7-fhir-r4-core
dependecies to your zen-package.ednaidbox.sdc.extra
import to your entrypoint namespace:include-scores
key to service configuration or RPC call
Example:
zen-package.edn
box.edn
Assume that box.edn is your zen-project entrypoint namespace
When feature is enabled you will see additional data in QuestionnaireResponse
after converting Documents
with scores.
In Aidbox
format you will see score
field.
In FHIR
format you will see an extension with valueInteger
Last updated