Skip to content

flexagoon/med

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

med?

This is a service that allows to quickly check the trustworthiness of a medicine by its Russian trade name.

Algorithm

Here's how the code works:

  1. Search for the trade name on RLSNet
    • Get the official trade name in English (name)
    • Extract the main active ingredient (active_ingredient)
      • If there's no active ingredient, further steps are skipped and a warning is shown
    • Check if the drug is homeopathic (homeopathy)
      • If it is, further steps are skipped and a warning is shown
  2. Use OpenFDA API to get FDA approval status (fda_approved)
  3. Use PubMed E-Utils to fetch the abstracts of the research on the drug
    1. First, get the Cochrane Reviews on the topic
    2. Then, search for non-Cochrane studies by the trade name
    3. Lastly, search for non-Cochrane studies by the active ingredient name
    4. Save the numbers of found studies (cochrane, pubmed)
  4. Summarize the obtained abstracts using Claude API
  5. Calculate the research score: $min(fda\_approved * 40 + cochrane * 10 + pubmed, 100)$

Launching

Since the app uses Claude API for summarization, you need to obtain an API key from the Anthropic dev console.

Then, set the ANTHROPIX_API_KEY environment variable to your API key. The code reads .env files, so you can set the variable there if you want.

To launch or build the app, follow the Phoenix documentation. The main command youu need is mix phx.server to run the code.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published