Ask on Order Entry (AOE)
Some biomarkers require answers to clinical questions, this is referred to as AOE. These can be as simple as the volume of a particular marker, or the ethnicity of the patient.
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.
There are 4 types of AOE:
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 the GET /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.
Each question has it’s own 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
Answering is done at order time, via the POST /v3/order
endpoint, in the field aoe_answers
.
This field has the following format:
You will populate this list with the answers to the questions defined in the 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:
In order to answer the required question, you will need the 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
The answer
field contains the actual answer to the question and it’s value will depend on the type and question itself.
choice
andmultiple_choice
In this case, the 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
:
The answer is:
text
This case can encompass many responses, and depends on the question itself.
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.
e.g The question is as follows for marker of id 173
:
The answer is:
numeric
In this case, the answer
should be a numeric string representation of the actual value.
e.g The question is as follows for marker of id 173
:
The answer is: