Grouping of QuestionnaireResponse
# support
j
When is the right time to nest information within multiple
answer
with repeated groups of sub-items, or just put them within multiple
item
with repeated groups of sub-items? An example:
Copy code
- physician timings (A)
  - physician ID (A)
  - availability object (A)  (could just be an item though)
    - availability enabled for day (A)
    - availability day (A)
    - availability time period (could be an answer though)
      - availability time period start (A)
      - availability time period end (A)
For this example, should we be putting all
availability objects
/
availability time period
information within an
answer
array or an
item
array?
r
Hi @jasonwa.ng , thanks for the question. Just so I understand the question correctly, is this a schematic of your
Questionnaire
, or the
QuestionnaireResponse
?
j
This is a schematic of my
QuestionnaireResponse
!
r
@jasonwa.ng the best practice is for your
QuestionnaireResponse.items
to mirror the structure of your
Questionnaire.items
. So if your
Questionnaire.item[i]
has bot an
anwerOption
and nested sub-items, doing the same in the response would be a good move
152 Views