Aidbox Code Editor (deprecated)
This article outlines the basic steps to start designing form in Aidbox Code Editor in browser
Last updated
This article outlines the basic steps to start designing form in Aidbox Code Editor in browser
Last updated
We strongly recommend using our UI Form Builder based on FHIR SDC (Structured Data Capture), which we are continuously developing. The current solution will remain supported but will not receive further development at this time.
This tool is based on domain-specific language (DSL) which gives flexibility and composability, with which you can describe layer-by-layer any forms with complex logic, integrate them in your current solution to capture data and store it in FHIR storage.
We have presented the form as a layered structure. To design the form, you need to describe the necessary layers using DSL.
Each layer is responsible for solving a specific problem:
How structured data will be stored - Data Model layer (Document DSL)
How a form will be rendered - Layout layer (Layout DSL)
How to prefill a form with existing data and set the conext - Prefill layer (Launch DSL)
How data will be itemized & extracted to FHIR resources - FHIR mapping layer (Finalize DSL)
How data will be validated and how to put constraints on the fields - Validation layer (FinalizeConstrains DSL)
How to bind all layers for specific form - Form layer (Form DSL)
One layer is required - Data Model layer, the rest are optional depending on needs of your practice.
Open http://localhost:8080/ , using login / passwod - admin / admin
Go to forms by pressing the button Aidbox Forms
(or by visiting http://localhost:8080/ui/sdc )
Go to the Forms
page
Press on Create Template
button
You have two options available:
Before creating new form you need to give a form title and namespace
After that new form template will be generated and you will be redirected to the Aidbox editor
page
You need to describe some schemas to complete the form
Go to this page to start designing a form.
Created form will be saved to local file sysem in your repository
Don't forget to import the created form into the forms.edn file so that the form is loaded after restarting the program.
Example
You can import the FHIR Questionnaire file from your local computer or import from json
After that new form will be generated and you will be redirected to the Aidbox editor
page
You can customize the form and all changes will be saved to the local file system in you repository
While converting FHIR Questionnaire to the Aidbox form basic extractions will be generated by default
Don't forget to import the created form into the forms.edn file so that the form is loaded after restarting the program.