SCWebCore.encounter.getSummary can be used at any point in an SCWebCore instance's lifecycle to request an EncounterSummary. EncounterSummary is a json representation that includes any information from the session that is relevant to triage. The SCWebCore.encounter interface manages a private EncounterSummary and it maintains that the EncounterSummary properties are updated and supported appropriately.
The encounter summary has the following properties:
- ageGroup - An age group of 'adult' or 'child'.
- ageInDays - An age in days specified by the user. This is an optional filter as the user is not required to provide this.
- gender - The gender filter for the symptom check. Should be 'male', 'female' or undefined. This is an optional filter as the user is not required to provide this.
- triageOptions - An array of triage options that are a match for the most acute symptom selected. Every time that an EncounterSummary is requested through the Encounter.getSummary the triage options are updated based on matches for the most acute symptom selected at that time.
- symptomsSelected - An array of symptoms selected from the what to do screen. Use Encounter.symptomSelected to maintain that the Symptoms are sorted by disposition level decreasing. When a topic change is reported via Encounter.topicViewed symptomsSelected will be cleared out.
- topicsViewed - An array of topics viewed including their id, type and title. Each topic viewed is prepended to the array as it is viewed. The encounter service will maintain that each topic is added only once. If a topic is viewed a second time, it will be moved to the beginning of the array.
- searchesPerformed - An array of search strings for searches performed.
- bodyAreasSelected - An array of body areas selected from the homunculus interface or body area index.
An example encounter summary might look like this:
{
"ageGroup": "adult",
"ageInDays": 10585,
"gender": "female",
"triageOptions": [
{
"level_min": 65,
"level_max": 84,
"button_text": "Find a Doctor",
"button_class": "btn-danger",
"icon": "fa fa-user-md",
"url": "https://www.google.com/maps/search/primary+care+physician/",
"selected": false
},
{
"level_min": 0,
"level_max": 65,
"button_text": "See Care Advice",
"button_class": "btn-success",
"icon": "fa fa-home",
"selected": false
},
{
"level_min": 0,
"level_max": 90,
"button_text": "See MD Connect Doctor Now",
"button_class": "btn-primary",
"icon": "fa fa-video-camera",
"selected": false
}
],
"symptomsSelected": [
{
"id": "17551",
"telemedicine": "na",
"text": "Moderate vomiting (3-5 times) for more than 2 days",
"topic_title": "Morning Sickness",
"topic_id": 345,
"level": 65,
"disposition": "Call Doctor Within 24 Hours",
"urgent_care": true
},
{
"id": "17797",
"telemedicine": "audio",
"text": "You think you need to be seen, but the problem is not urgent",
"topic_title": "Morning Sickness",
"topic_id": 345,
"level": 65,
"disposition": "Call Doctor Within 24 Hours",
"urgent_care": true
}
],
"topicsViewed": [
{
"id": 345,
"title": "Morning Sickness",
"type": "symptom"
}
],
"searchesPerformed": [],
"bodyAreasSelected": [
"Abdomen"
]
}
From this encounter summary you can interpret the following:
- The most acute symptom is "Moderate vomiting (3-5 times) for more than 2 days"
- The symptom selections are from the Morning Sickness topic
- There are 3 triage options available
- Call Doctor Within 24 Hours
- Self Care at Home
- Get Virtual Visit Now
- There are 2 symptoms selected
- The symptom check was for a 29 year old female
- The abdomen body area has been selected
Example Implementation
In the example implementation the encounter summary is provided by SCWebCore.encounter. This class maintains a private encounter summary that can be requested any time using its getSummary function. In the demo page, this encounter summary can be visualized by selecting the button with the </>
icon from the right side navigation menu.