Aidbox Code Editor (deprecated)

Overview

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 storedData Model layer(Document DSL)
  • How a form will be renderedLayout layer(Layout DSL)
  • How to prefill a form with existing data and set the conextPrefill layer(Launch DSL)
  • How data will be itemized & extracted to FHIR resourcesFHIR mapping layer(Finalize DSL)
  • How data will be validated and how to put constraints on the fieldsValidation layer(FinalizeConstrains DSL)
  • How to bind all layers for specific formForm layer(Form DSL)

One layer is required - Data Model layer, the rest are optional depending on needs of your practice.

Getting started

You have two options available:

Create form in Code Editor from scratch

  • 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

Form DSL (deprecated)

Document DSL (deprecated)

Layout DSL (deprecated)

Launch DSL (deprecated)

Finalize DSL (deprecated)

FinalizeConstraints DSL (deprecated)

Go to Form creation 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

{ns forms
 import #{forms.vitals
          forms.phq2phq9
          forms.gad-7
          forms.allergies
          forms.ros
          forms.physical-exam
          forms.annual-wellness-visit}
 }

Import Questionnaire (from FHIR Questionnaire)

  • 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.