Questions that are related to fasting (e.g, code
FSTING
) do not need to be answered. Vital uses the default value you provided for fasting at the lab test creation time. However, if you do answer them, then the answered value overrides the preset test value.choice
multiple_choice
numeric
text
choice
and multiple_choice
have a set list of answers to pick from, while numeric
and text
don’t, and are free-form responses.
AOE questions can also be required or optional.
Where to find the questions
As these AOE are directly related to biomarkers, you can find them in theGET /v3/lab_tests/markers
endpoint or in the GET /v3/lab_tests/{lab_test_id}/markers
endpoint, in the aoe
object.
As an example, let’s look at the Lead, Blood (Adult)
marker. We have omitted some extra questions for the sake of this doc.
id
, which will be required to answer it. The types we refer to above are an enum that is represented by type
.
The answers
list contains a list of possible answers in the case that type
is one of choice
or multiple_choice
, otherwise it is empty.
required
deems whether the questions MUST be answered in order for the order to be valid, otherwise a error will be shown Missing required questions - "question"
.
How to answer
For more information, refer to our Knowledge Base article.
POST /v3/order
endpoint, in the field aoe_answers
.
This field has the following format:
marker
object, as explained above.
The marker_id
refers to the Vital marker id, and the question_id
to the id of the question being answered.
For example, marker Leader, Blood (Adult)
, has the following data:
marker_id
which is the id
field, the question_id
in questions[0].id
and one of the code
values in the question[0].answers
field.
Answer types
Theanswer
field contains the actual answer to the question and it’s value will depend on the type and question itself.
choice
andmultiple_choice
answer
should contain the code
field in the list of answers
provided, as shown here.
e.g The question is as follows for marker of id 173
:
text
In some instances, the
text
case contains a constraint
field. This is a string tooltip indicator of the constraints applied by the lab on this particular question.173
:
numeric
answer
should be a numeric string representation of the actual value.
e.g The question is as follows for marker of id 173
: