Replies: 2 comments
-
Do not group itemshow does this affect data schema?Simple flat data structure. [{:id "bp-systolic"}
{:id "bp-diastolic"}] How to query results?Query form result is also easy. select * from QuestionnaireResponse, jsonb_array_elements(resource->'items') items
where item->>'id' == 'bp-systolic' How does this affect rules?Since we can't join several fields into group, we have to write rule for each fields, For example we have several questions belongs to alcohol usage. And we want to show them only How to convert our form description <> FHIR Questionnaire/QuestionnaireResponseConverting to QuestionnaireResponse is straightforward. We don't need handle nested items. (assoc qr :bp-systolic (get resp :bp-systolic)) But importing/converting Questionnaire also possible, but need to flatten Q structure (assoc form :bp-systolic (find-item q :bp-systolic)) |
Beta Was this translation helpful? Give feedback.
-
Special widget type
|
Beta Was this translation helpful? Give feedback.
-
Description
Form is a list of questions grouped together around specific problem.
Form is used to capture data from respondents (patients,practitioners, etc...)
There are forms and fields that can be grouped and merged logically and visually
Use cases
and I want this data be stored together
FHIR has special item type for this:
group
:Current solution in Aidbox SDC is to use
zen/map
in document schema:Problem with current solution in Aidbox SDC is that you can't be confident that
this is a group.
zen/map
is also a Quantity, Coding, Reference questions.Questions
Approaches
Beta Was this translation helpful? Give feedback.
All reactions