Triage API

In this article, you will learn how Triage API works

Our AI/NLP algorithms analyze standard questionnaire data, patient narrative, and biomarkers to assist clinicians with screening and triage and choosing the right care, at the right time.

How to get a token and Call AI Triage API

As a care provider, you can log into your panel and submit your sample text and scores and view your triage report:

1630

Another way a care provider can see the triage data of his patients is to log in with the care navigator panel:

1628

1- To try the first way, you need to receive a valid token:

In this example, you can get a token with this information:

UsernamePasswordClinic Code
[email protected]OPTT89765Demo@09TWF5D0FPE8

2- Call this API to get a valid token:

2.1 Request URL:

curl --location --request POST 'https://gwi.live.optt.health/gateway/uaa/token?grant_type=password&[email protected]&password=OPTTDemo2023@' \
--header 'Authorization: Basic b3B0dC1oODUxNDkwYzpzZWNyZXQtbXI1MXM4MHctYTczcy05MjEyLTk3ZDEtNTAxZGNrOGRkZTIw'

2.5 Copy access token:

1084

3- Call this API to get a triage Response:

3.1 Request URL:

https://gwi.live.optt.health/gateway/profile/caregiver/clinic/TWF5D0FPE8/triage

3.2 Request Method Type:
PUT

3.3 Header

HeaderValue
Content-Typeapplication/json

3.4 Authorization Type

Authorization TypeValue
BarerThis is an access token that you received in the previous step.

3.5 PATH PARAMS

ParameterValueDescription
textBut sometimes the clouds sink and the valleys end. Storms begin, and I’m climbing mountains. These are the times I’m left in thickets and thorn bushes, bruised and broken, scraped and scarred. I feel alone in these moments. My mind is noisy but my heart is empty. People reach out, but I push them away. I promise you, it’s not because of you. Ironically, the lonelier I feel, the more I isolate myself. It doesn’t make sense, I know. But this sadness leaves me drained. It leaves me exhausted. Sometimes I can’t leave my bed all day. Sometimes I can, but all I can manage is a shower. And sometimes I manage to get outside, but after a short 30 minutes, it feels like I haven’t slept for days.
gad7Gad7 Total ScoreOptional field

It should be a score between 0 - 21
phq9phq9 Total ScoreOptional field

It should be a score between 0 - 27

3.6 A complete example of an API call:

curl --location --request POST 'https://gwi.live.optt.health/gateway/profile/caregiver/clinic/TWF5D0FPE8/triage' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2NzUyNjU2MTQsInVzZXJfbmFtZSI6ImNncC1raXU5LXZ1Z2UtMjU1NiIsImF1dGhvcml0aWVzIjpbIkNBUkVHSVZFUiJdLCJqdGkiOiI1MjcxNWMwNS0zNzE5LTRhNTQtYjUyNi1kM2M5YjkzZWUwYmQiLCJjbGllbnRfaWQiOiJvcHR0LWg4NTE0OTBjIiwic2NvcGUiOlsicmVhZCIsIndyaXRlIl19.G_h6s2T_uJ-XoG3idGQsdFzQ7FIOxeJvkR8q9-5FYxT4IQNYAUyAm1q8FrbhxI2jXrRlLCayRoisx98pOi8xh1oq_DmkSri6858QCMGdEW6eqPXxS0h1ZtfD7vcobBavsDFDPJp9ftwzEzrsuTgOnZ-ZivSqzPjE4KWMzFwj5cj_x-YDbmhTkhdl9aQitNFjAdlXFd1uQBmW94hkvVCMCCgtZUA5Q4Y7Kh0KtVLr4I-TUGk2AApc0RrghDnr6Ig8-pZUSjok4AHIcaPX8elM3vj-fOn3ztOImhn8yezuZAwoxzlWBzgEvKjSndeXG3KndOFL__UuRpNmpiyijMH2OQ' \
--data-raw '{
    "text":"But sometimes the clouds sink and the valleys end. Storms begin, and I’m climbing mountains. These are the times I’m left in thickets and thorn bushes, bruised and broken, scraped and scarred. I feel alone in these moments. My mind is noisy but my heart is empty. People reach out, but I push them away. I promise you, it’s not because of you. Ironically, the lonelier I feel, the more I isolate myself. It doesn’t make sense, I know. But this sadness leaves me drained. It leaves me exhausted. Sometimes I can’t leave my bed all day. Sometimes I can, but all I can manage is a shower. And sometimes I manage to get outside, but after a short 30 minutes, it feels like I haven’t slept for days.",
    "gad7":21,
    "phq9":21
}'
1096

3.7 Response:

{
    "compliance": {
        "key": "compliance_chance",
        "value": "50-75 %"
    },
    "labels": [
        {
            "key": "Isolation (e.g., difficulty with relationships, social anxiety)",
            "value": 10.0
        },
        {
            "key": "Crying and Guilt",
            "value": 14.0
        },
        {
            "key": "Emotions (e.g., feeling sad, angry, frustrated)",
            "value": 30.0
        }
    ],
    "scores": [
        {
            "key": "anxiety",
            "value": 40.08
        },
        {
            "key": "depression",
            "value": 59.92
        },
        {
            "key": "symptomatic level",
            "value": 72.35
        }
    ],
    "similarities": [
        "It just feels like I sometimes just want to be alone.",
        "Sometimes I’ll have days where I need to recharge after being around people too much, be too scared to talk to people, or more simply be content eith being alone.",
        "On the other hand I often wake up feeling down(sad) and actually don’t want to communicate with anyone else.",
        "I am unable to find the motivation to talk to others and often have periods of sadness.",
        "I often have disturbing thoughts that come from nowhere and I am alone most of the day.",
        "Sometimes I even try to think of sad things, or I act sad when I’m alone, it’s not even around people.",
        "It’s like I have a dark personality even though I feel emotions deeply sometimes I feel heartache or choking feeling when I am not able to cry alone at night.",
        "I don’t feel like talking to anyone when this happens.",
        "I would rather be alone ,and not have everyone around me, even while I am writting about being around people I start to feel a sort of anxiety of sorts I can’t really explain it.",
        "On a superficial level, I make great efforts to conceal my depression and life state, but this requires me to keep people distant to protect my self, which not to mention is painful and lonely."
    ],
    "suggestions": [
        {
            "key": "Anxiety",
            "value": 10.0
        },
        {
            "key": "Depression",
            "value": 30.0
        },
        {
            "key": "Insomnia",
            "value": 30.0
        }
    ],
    "question": "But sometimes the clouds sink and the valleys end. Storms begin, and I’m climbing mountains. These are the times I’m left in thickets and thorn bushes, bruised and broken, scraped and scarred. I feel alone in these moments. My mind is noisy but my heart is empty. People reach out, but I push them away. I promise you, it’s not because of you. Ironically, the lonelier I feel, the more I isolate myself. It doesn’t make sense, I know. But this sadness leaves me drained. It leaves me exhausted. Sometimes I can’t leave my bed all day. Sometimes I can, but all I can manage is a shower. And sometimes I manage to get outside, but after a short 30 minutes, it feels like I haven’t slept for days.",
    "care_level_suggestion": "Level 2 care (e.g. online-CBT + weekly engagement)"
}
1654