For AI agents: the documentation index is at /docs/aidbox/llms.txt. A Markdown version of this page is available at /docs/aidbox/notebooks.md or by requesting it with the Accept: text/markdown header.
Aidbox Docs
All notebooks

Aidbox Forms

This notebook will help you to create test patient, test encounter and test observation.

7 cells · updated Dec 27, 2022

This is a read-only view. Responses shown were saved when the notebook was published — open it in your own Aidbox to run the cells against live data.

Introduction

If you want to play with Aidbox Forms, you need to create the Aidbox project in Sandbox and plug Aidbox Forms module by configuring the Aidbox Project. Follow this instruction - https://docs.aidbox.app/modules-1/aidbox-forms/getting-started

You can create, customize any form. But if you want to test the form then you need to create the test patient and the test encounter for it. If you want to test how data can be prefilled then you need to create the test observation. Use this notebook for this.

1. Create test patient resource

REST Send Cells run only inside Aidbox. Use Run in Aidbox above to open this notebook in your own instance.
POST /Patient
content-type: application/yaml

name:
- family: James
  given:
  - Morgan
id: morgan
gender: male
identifier:
- system: ''
  value: ''
address:
- city: Historic City
  line:
  - 534 Erewhon St
  state: DE
maritalStatus:
  coding:
  - system: http://terminology.hl7.org/CodeSystem/v3-MaritalStatus
    code: M
    display: Married
birthDate: '1996-12-05'
meta:
  profile:
  - http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient

2. Create test encounter resource

REST Send Cells run only inside Aidbox. Use Run in Aidbox above to open this notebook in your own instance.
POST /Encounter
content-type: application/yaml

id: enc-1
status: planned
subject:
  id: morgan
  resourceType: Patient
class:
  system: http://terminology.hl7.org/CodeSystem/v3-ActCode
  code: HH

3. Create test observation resource

REST Send Cells run only inside Aidbox. Use Run in Aidbox above to open this notebook in your own instance.
POST /Observation
content-type: application/yaml

encounter:
  id: >-
    enc-1
  resourceType: Encounter
value:
  Quantity:
    unit: '[in-i]'
    value: 70
resourceType: Observation
status: final
effective:
  dateTime: '2022-08-04T14:49:01.291490Z'
id: >-
  4d6f8dcc-fb89-443e-92e7-f50f0a522f83
code:
  coding:
    - code: 8302-2
issued: '2022-08-04T14:49:01.292711Z'
subject:
  id: >-
    morgan
  resourceType: Patient