Agent skill
Diagnosis.
An important skill, to help agents assist doctors with diagnosising patients.
Install this agent skill to your Project
npx add-skill https://github.com/mathias-nielsen/co-doctor-skills/tree/main/diagnosis-skill
SKILL.md
Diagnosis tasks
Extrapolate symptoms
This action can extrapolate and gather symptoms from natural language input
from langchain.chat_models import init_chat_model
from entities import DetectionEntity, SymptomsOutputState
def extrapolate_symptoms(text: str, score: float = 0.95): -> SymptomsOutputState
# Documentation: https://docs.aws.amazon.com/comprehend-medical/latest/dev/gettingstarted-api.html
model = init_chat_model("aws.comprehendmedical.detect-entities-v2");
response = model.invoke(text);
high_confidence = []
low_confidence = []
for entity in response:
if entity.score >= score:
high_confidence.append(entity)
else:
low_confidence.append(entity)
return SymptomsOutputState(
high_confidence=high_confidence,
confidence_below_treshold=low_confidence
)
Find potential diagnosis
This action will find potential diagnosis, based on common external resources
def find_potential_diagnose(symptoms):
""" This function will return 1 or more diagnosis, based on array of symptoms """
# Mock Code
# ...
Suggest Next Steps
In case a diagnosis is inconclusive, but more tests is needed, this task will find the best next step to in the diagnosis
def find_next_steps(symptoms, diagnosis):
# Mock Code
# ...
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
Administrative Health Platform
A set of skills to interact with web-based health platforms to interact with digital medical records, handle billing,
Medical Records
All things needed for interacting with medical records
Diagnose Research Agent
A comprehensive skill designed for researching on complex diagnosis problems.
Billing
A set of skills to handle billing the patients, government or health insurance.
Booking
This skill provides the required tasks needed, in order to interact with the booking system.
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
Didn't find tool you were looking for?