new Symptom(question, _disposition, topic)
A Symptom represents a users selection of a symptom from the what to do screen. The symptom is an extension of the SCAPI question object which inherits the topic_id and disposition level from the topic that the user selected it from.
Parameters:
Name | Type | Description |
---|---|---|
question |
Object | an SCAPI Question object with id, text, telemedicine, urgent_care?, firstaidid?, firstaidtitle? properties |
_disposition |
Object | the disposition for the question |
topic |
Object | the topic object with id and title properties for the topic the question was selected from |
Members
-
<inner> first_aid_id :bool
-
This indicates the first aid topic id if there is first aid available for this symptom. This is the firstaidid property for the what to do question in the Symptom Checker API topic model.
Type:
- bool
-
<inner> first_aid_title :string
-
This indicates the first aid topic title if there is first aid available for this symptom. This is the firstaidtitle property for the what to do question in the Symptom Checker API topic model.
Type:
- string
-
<inner> id :string
-
This is the id of the what to do question in the Symptom Checker API topic model.
Type:
- string
-
<inner> level :number
-
This indicates the disposition level for this symptom.
Type:
- number
-
<inner> sequence :number
-
This indicates the sequence within the disposition level for this symptom.
Type:
- number
-
<inner> telemedicine :Array.<Telemedicine>
-
This is the telemedicine value for the what to do question in the Symptom Checker API topic model.
Type:
- Array.<Telemedicine>
-
<inner> text :string
-
This is the statement that the user has selected as their symptom. This is the text for the what to do question in the Symptom Checker API topic model (
topic.dispositions[x].questions[y].text
).Type:
- string
-
<inner> topic_id :string
-
This indicates the symptom checker topic id for this symptom.
Type:
- string
-
<inner> topic_title :string
-
This indicates the symptom checker topic title for this symptom.
Type:
- string
-
<inner> urgent_care :string
-
This indicates whether or not urgent care is an appropriate mode of care for this symptom. This is the urgent care value for the what to do question in the Symptom Checker API topic model.
Type:
- string