{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# eligibility_criteria_parser\n", "\n", "> Repository with experiments on the usability of prompt learning for parsing eligibility criteria in clinical trials" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Install\n", "\n", "In order to install the module issue the following commands" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "```sh\n", "bash$ git clone https://github.com/megaduks/criteria_parser.git\n", "\n", "bash$ cd criteria_parser\n", "\n", "bash$ pip install -r requirements.txt\n", "\n", "bash$ pip install -e '.[dev]'\n", "```" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The next step is to run `dvc` to download the data" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "```bash\n", "bash$ dvc pull\n", "```" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## How to use" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The function `load_chia()` downloads the entire dataset as a dataframe" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "from eligibility_criteria_parser.core import *\n", "\n", "df = load_chia()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | ct_no | \n", "criteria | \n", "mode | \n", "drugs | \n", "persons | \n", "procedures | \n", "conditions | \n", "devices | \n", "visits | \n", "scopes | \n", "observations | \n", "measurements | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "NCT03124329 | \n", "Male and female individuals between ages of 18... | \n", "inclusion | \n", "None | \n", "[ages] | \n", "None | \n", "[gingival recession defects, recession defects] | \n", "None | \n", "None | \n", "None | \n", "[cervical restorations extending to the CEJ] | \n", "[recession, keratinized gingiva, Miller] | \n", "
1 | \n", "NCT02796378 | \n", "Elevated blood-cholesterol | \n", "inclusion | \n", "None | \n", "None | \n", "None | \n", "None | \n", "None | \n", "None | \n", "None | \n", "None | \n", "[blood-cholesterol] | \n", "
2 | \n", "NCT03216967 | \n", "Adult patients Kidney transplant recipients Pa... | \n", "inclusion | \n", "[calcineurin inhibitor, mycophenolic acid] | \n", "[Adult] | \n", "None | \n", "None | \n", "None | \n", "None | \n", "None | \n", "None | \n", "[Viremia, pregnancy test, blood ß-HCG dosage] | \n", "
3 | \n", "NCT02200978 | \n", "Patients less than 16 years old with newly dia... | \n", "inclusion | \n", "None | \n", "[old] | \n", "None | \n", "[acute promyelocytic leukemia] | \n", "None | \n", "None | \n", "None | \n", "None | \n", "[PML-RARa] | \n", "
4 | \n", "NCT01314898 | \n", "Male and/or female healthy volunteers, age 18 ... | \n", "inclusion | \n", "None | \n", "[Male, female, age, Females] | \n", "None | \n", "[healthy, childbearing potential] | \n", "None | \n", "None | \n", "None | \n", "None | \n", "[Body Mass Index (BMI), total body weight] | \n", "