Display instrument to instrument similarities in front end
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 11
- Avg merge
- 4h 9m
- Merged PRs (30d)
- 1
Description
## Description
The API is now calculating an instrument to instrument similarity. e.g. the GAD-7 is e.g. 60% similar to the PHQ-9
See this PR for more details: https://github.com/harmonydata/harmony/pull/81
Please can we display them in a nice way in the UI
You can see this in the call to `/text/match`, e.g.:
```
curl -X 'POST' \
'http://localhost:8000/text/match?include_catalogue_matches=false&is_negate=true' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"instruments": [
{
"questions": [
{
"question_text": "Feeling nervous, anxious, or on edge"
},
{
"question_text": "Not being able to stop or control worrying"
}
]
},
{
"questions": [
{
"question_text": "Sentir-se nervoso/a, ansioso/a ou muito tenso/a"
},
{
"question_text": " Não ser capaz de impedir ou de controlar as preocupações"
}
]
}
]
}'
```
```
{
"instruments": [
///... ///
}
],
"instrument_to_instrument_similarities": [
{
"instrument_1_idx": 0,
"instrument_2_idx": 1,
"instrument_1_name": "GAD-7 English",
"instrument_2_name": "GAD-7 Portuguese",
"precision": 1,
"recall": 1,
"f1": 1
}
],
...
```
## Rationale
Many users have requested this feature.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.