You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
curl -s -X POST \
-H "Content-Type: application/json" \
-d '{"user_input": "i feel a bit light headed and have some difficulty breathing and some pain in chest"}' \
https://yauiuxmk8rlxkj-2180.proxy.runpod.net/api/v1/ner | jq
{
"query": "i feel a bit light headed and have some difficulty breathing and some pain in chest",
"symptoms_diseases": ["light headed", "difficulty breathing", "pain in chest"]
}
Semantic search symptoms and diseases in SNOMED-CT
curl -s -X POST \
-H "Content-Type: application/json" \
-d '{ "user_input": "i feel a bit light headed and have some difficulty breathing and some pain in chest", "symptoms_diseases": [ "shortness_of_breath", "chest_pain", "lightheadedness" ], "semantic_similarity_cutoff": 0.9 }' \
https://yauiuxmk8rlxkj-2180.proxy.runpod.net/api/v1/semantic_search | jq
{
"query": "i feel a bit light headed and have some difficulty breathing and some pain in chest",
"symptoms_diseases": [
"light headed",
"difficulty breathing",
"pain in chest"
],
"snomed_concept_ids": [
[371268001, 22601002, 56242006],
[230145002, 161945003],
[29857009, 139228007]
],
"snomed_concepts": [
["light", "light (weight)", "light, electromagnetic radiation"],
["difficulty breathing", "difficulty breathing"],
["chest pain", "chest pain"]
]
}
[
{
"snomed_concept_ids": [
371268001,
22601002,
56242006
],
"snomed_concepts": [
"light",
"light (weight)",
"light, electromagnetic radiation"
],
"questions": [
"Do you feel lightheaded?",
"Do you feel dizzy?",
"Do you feel nauseous?"
]
},
{
"snomed_concept_ids": [
230145002,
161945003
],
"snomed_concepts": [
"difficulty breathing",
"difficulty breathing"
],
"questions": [
"How long have you had difficulty breathing?",
"Is the pain in your chest constant, or does it come and go?"
]
},
{
"snomed_concept_ids": [
29857009,
139228007
],
"snomed_concepts": [
"chest pain",
"chest pain"
],
"questions": [
"When did you first notice the symptoms?",
"Are you allergic to any medication?"
]
}
]
Generate final summary report
curl -s -X POST \
-H "Content-Type: application/json" \
-d '{ "snomed_concept_ids": [ [ 139200001, 161945003, 230145002 ], [ 139228007, 29857009 ] ], "symptoms_diseases": [ "light headed", "difficulty breathing", "chest pain" ], "qa": { "Do you feel lightheaded?": "yes", "Do you feel dizzy?": "a little bit", "Do you feel nauseous?": "no", "How long have you had difficulty breathing?": "for the past 2 days", "Is the pain in your chest constant, or does it come and go?": "it comes and goes", "When did you first notice the symptoms?": "yesterday", "Are you allergic to any medication?": "not that i know of" } }' \
https://yauiuxmk8rlxkj-2180.proxy.runpod.net/api/v1/summary | jq
{
"conditions": [
"difficulty breathing",
"difficulty breathing",
"difficulty breathing",
"chest pain",
"chest pain"
],
"qa": {
"Do you feel lightheaded?": "yes",
"Do you feel dizzy?": "a little bit",
"Do you feel nauseous?": "no",
"How long have you had difficulty breathing?": "for the past 2 days",
"Is the pain in your chest constant, or does it come and go?": "it comes and goes",
"When did you first notice the symptoms?": "yesterday",
"Are you allergic to any medication?": "not that i know of"
},
"summary": "# In-Patient Report## Summary### Patient's ObservationsThe patient presented with the following complaints:
['light headed', 'difficulty breathing', 'chest pain']
of which these are the conditions identified from SNOMED:- difficulty breathing- difficulty breathing- difficulty breathing- chest pain- chest pain### Questions and AnswersSubsequently, on further questioning, the patient had these to add on:- **Question**: Do you feel lightheaded?- **Answer**: yes- **Question**: Do you feel dizzy?- **Answer**: a little bit- **Question**: Do you feel nauseous?- **Answer**: no- **Question**: How long have you had difficulty breathing?- **Answer**: for the past 2 days- **Question**: Is the pain in your chest constant, or does it come and go?- **Answer**: it comes and goes- **Question**: When did you first notice the symptoms?- **Answer**: yesterday- **Question**: Are you allergic to any medication?- **Answer**: not that i know of## Recommended tests### Tests for diagnosis- blood test- blood test- blood test- X-ray- X-ray- X-ray### Tests for exclusion- blood test- blood test- blood test- X-ray- X-ray- X-ray## Diseases to check for and narrow down the cause- heart attack- heart attack- heart attack- lung cancer- lung cancer- lung cancer","speciality": "### DepartmentThe patient should visit the **Outpatient** department."
}