Replies: 3 comments 3 replies
-
We can get rid of additional attribute by holding questions in a map where key is a question identifier and value is definition LateVisitDocument
{:type aidbox.sdc/form
:questions {:basic-question {:label "Super basic question"}}} Pros:
Cons:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Additional attribute called LateVisitDocument
{:type aidbox.sdc/form
:questions [{:label "Super basic question"
:id :basic-question}]} Pros:
Cons:
|
Beta Was this translation helpful? Give feedback.
3 replies
-
Also we can get rid of attribute by combining previous two solutions. Store ids and questions as pairs in a list LateVisitDocument
{:type aidbox.sdc/form
:questions [:basic-question {:label "Super basic question"}
:second-question {:label "Super basic question"}]} Pros:
Cons:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Form DSL contains information about questions and visual items
Each question have unique id
Non-question visual items don't have ID
Question identifier must be convertible to FHIR Questionnaire linkId
Questions can be grouped
Question identifier should be stable between form updates
FHIR Questionnaire has
linkId
for this purpose. But word "link" is less meaningful, because "id" is already convey that semantics. Also there are less characters to type without "link"Questions
Can we provide field identifier uniqueness?
Need to know order of questions on view
Aspects
Approaches
Store questions as map where key is an identifier and value is definition
Store questions as an array with additional attribute "id"
Store questions as array of pairs of key and definition
Decision matrix
Beta Was this translation helpful? Give feedback.
All reactions