Aidbox Forms
This notebook will help you to create test patient, test encounter and test observation.
7 cells · updated Dec 27, 2022
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
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-patient2. Create test encounter resource
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: HH3. Create test observation resource
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