API Response Schema

Top level items

These are the top level items that can be returned in the Healthily API Response. Please see the Examples guide for more information.

Properties

KeyTypeDescription
conversationobjectHolds details about the current conversation
questionobjectAn array or list of questions
userobjectHolds details about the current user, based on information passed to the API during login

choice

Details

Type - object

Properties

KeyTypeDescription
typestringType of choice being returned. See Choice types for further information.
idintegerid of the question choice to return in the request
labelstringLabel of the answer choice

constraint

Details

Type - object

Properties

KeyTypeDescription
min_selectionsintegerThe minimum number of choices that can be provided in answer to a question
max_selectionsintegerThe maximum number of choices that can be provided in answer to a question

consultation_triage

Details

Type - object

Properties

KeyTypeDescription
triagestring
triage_advicestring
levelstring

conversation

Details

Type - object

Properties

KeyTypeDescription
idstringUsually this is text format (TEXT). Other types will be explained later in other chapters.
scenariostringCurrent conversation scenario. See Conversation scenarios for more information.
phasestringThe current phase of the conversation. See Conversation phases for more information.
available_commandsarrayAvailable commandsAdditional commands available to you to present to the user as part of a conversation exit strategy. See Available commands for more information.
symptoms_summaryobjectA summary of the symptoms that have been selected in the current conversation

influencing_factor

Details

Type - object

Properties

KeyTypeDescription
cuistringConcept Unique Identifier, a code that identifies a medical concept in our symptoms database.
typestringINFO NEEDED
rankintegerINFO NEEDED
namestringShort name for the influencing factor
long_namestringLong name for the influencing factor
valueobjectINFO NEEDED

message

A single message

Details

Type - object

Properties

KeyTypeDescription
typestringType of message being returned. See Message types for further information.
value_typestringDifferent to message type, this describes the type of the actual message value (label) that will be returned, e.g. TEXT
valuestringLabel text which needs to be presented to the user as information or question.
metaobjectMessage metadata

meta

Details

Type - object

Properties

KeyTypeDescription
chat_contextarrayArray of strings
namestringName/title of the article
snippetstringBrief summary of the article
imagestringURL of article image

question

Details

Type - object

Properties

KeyTypeDescription
typestringThe type of question being asked. One of generic, xxx, xxx or xxx. See Question types for further information.
messagesarray(message)If multiple is false, the user should only be able to select one answer. If multiple is true, users can select one or more answers.
mandatoryBooleanDefines whether or not a user must answer a question.
multipleBooleanIf multiple is false, the user should only be able to select one answer. If multiple is true, users can select one or more answers.
choicesarray(choice)An array or list of possible answers to the question.
constraintsobjectConstraints specific to the question

report

Report generated based on questions answered by the user as part of an assessment flow.

Details

Type - object

Properties

KeyTypeDescription
typestringType of report being presented
idstringUnique report ID
summaryobjectSummary of the report

section

Details

Type - object

Properties

KeyTypeDescription
idstringUnique id of section, e.g. "symptoms"
namestringSection name, e.g. "Symptoms"
summarystringSection summary text
public_urlstringURL of full article on third party site
markdownstringFull section content, including markdown formatting

summary

Details

Type - object

Properties

KeyTypeDescription
diagnosis_possiblebooleanWas diagnosis possible?
extracted_symptomsarray(symptom)Symptoms user provided as part of the assessment
durationstringUser's answer to duration of symptom question
additional_symptomsarray(symptom)Symptoms added during the assessment
negative_symptomsarray(symptom)Symptoms the user has indicated they do not have
unsure_symptomsarray(symptom)Symptoms the user is unsure that they have
consultation_triageobjectTriage information
articlesarrayINFO NEEDED
articles_v3arrayINFO NEEDED
consultation_idstringUnique ID for the consultation
notificationsarrayINFO NEEDED
influencing_factorsarray(influencing_factor)INFO NEEDED
user_profileobjectBasic profile information about the user

symptom

Details

Type - object

Properties

KeyTypeDescription
cuistringConcept Unique Identifier, a code that identifies a medical concept in our symptoms database.
namestringName of the symptom
severitystringSeverity of the symptom (if known/provided)

symptoms

Details

Type - object

Properties

KeyTypeDescription
mainarray(symptom)Array of objects describing symptoms that user first enters
includedarray(symptom)Array of objects describing symptoms that user select in conversation mode
excludedarrayArray of strings describing symptoms excluded by the user

symptoms_summary

Details

Type - object

Properties

KeyTypeDescription
selectedarrayUser selected symptoms (see Symptoms )
excludedarrayExcluded symptoms that user did not choose (see Symptoms )

triage

Details

Type - object

Properties

KeyTypeDescription
triage_levelstring
triage_messagestring
triage_advicestring
triage_diagnosticstring
triage_treatmentstring
triage_worriesstring

user

Details

Type - object

Properties

KeyTypeDescription
namestringName provided when initiating the Smart Symptom Checker.
genderstringGender provided when initiating the Smart Symptom Checker. Either "m" or "f".
ageintegerAge calculated from year_of_birth
year_of_birthintegerYear of birth provided when initiating the Smart Symptom Checker.
otherbooleanWhether the Smart Symptom Checker has been initiated for the current user (false) or someone else (true)
initial_symptomstringThe initial symptom string provided when initiating the Smart Symptom Checker.

user_profile

Details

Type - object

Properties

KeyTypeDescription
genderstringGender of user
year_of_birthintegerYear in which user was born

value

Details

Type - object

Properties

KeyTypeDescription
not_surebooleanINFO NEEDED
valuebooleanINFO NEEDED

What’s Next