├── .gitignore ├── LICENSE.txt ├── README.md ├── agents ├── AgentAction.py ├── DiagnosisWorkflowParser.py ├── agent.py └── prompts.py ├── configs ├── config.yaml ├── model │ ├── ClinicalCamel70B.yaml │ ├── GPT35Turbo.yaml │ ├── GPT4.yaml │ ├── Llama2Chat70B.yaml │ ├── Llama3.1Instruct70B.yaml │ ├── Llama3.3Instruct70B.yaml │ ├── Llama3Instruct70B.yaml │ ├── Meditron70B.yaml │ ├── OASST70B.yaml │ ├── OpenBioLLM70B.yaml │ ├── PMCLlama13B.yaml │ └── WizardLM70B.yaml └── paths │ └── example.yaml ├── dataset ├── dataset.py ├── diagnosis.py ├── diagnostic_criteria.json ├── discharge.py ├── labs.py ├── procedures.py ├── radiology.py └── utils.py ├── evaluators ├── appendicitis_evaluator.py ├── cholecystitis_evaluator.py ├── diverticulitis_evaluator.py ├── pancreatitis_evaluator.py └── pathology_evaluator.py ├── icd ├── CMS32_DESC_LONG_SG.txt ├── ICD10_to_9.csv ├── gem_i9pcs.txt ├── gem_pcsi9.txt ├── icd10pcs_codes_2024.txt └── procedure_mappings.py ├── models ├── exllamav2_generator_base_custom.py ├── models.py └── utils.py ├── ref_range_test.py ├── requirements.txt ├── run.py ├── run_full_info.py ├── tests ├── Agent_test.py ├── AppendicitisEvaluator_test.py ├── CholecystitisEvaluator_test.py ├── Dataset_test.py ├── DiagnosisWorkflow_test.py ├── DiverticulitisEvaluator_test.py ├── DummyData.py ├── FullInfo_test.py ├── LLM_test.py ├── NLPUtils_test.py ├── PancreatitisEvaluator_test.py ├── PathologyEvaluator_test.py ├── Tools_test.py └── __init__.py ├── tools ├── Actions.py ├── Tools.py └── utils.py └── utils ├── logging.py └── nlp.py /.gitignore: -------------------------------------------------------------------------------- 1 | __pycache__ 2 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/README.md -------------------------------------------------------------------------------- /agents/AgentAction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/agents/AgentAction.py -------------------------------------------------------------------------------- /agents/DiagnosisWorkflowParser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/agents/DiagnosisWorkflowParser.py -------------------------------------------------------------------------------- /agents/agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/agents/agent.py -------------------------------------------------------------------------------- /agents/prompts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/agents/prompts.py -------------------------------------------------------------------------------- /configs/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/configs/config.yaml -------------------------------------------------------------------------------- /configs/model/ClinicalCamel70B.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/configs/model/ClinicalCamel70B.yaml -------------------------------------------------------------------------------- /configs/model/GPT35Turbo.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/configs/model/GPT35Turbo.yaml -------------------------------------------------------------------------------- /configs/model/GPT4.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/configs/model/GPT4.yaml -------------------------------------------------------------------------------- /configs/model/Llama2Chat70B.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/configs/model/Llama2Chat70B.yaml -------------------------------------------------------------------------------- /configs/model/Llama3.1Instruct70B.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/configs/model/Llama3.1Instruct70B.yaml -------------------------------------------------------------------------------- /configs/model/Llama3.3Instruct70B.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/configs/model/Llama3.3Instruct70B.yaml -------------------------------------------------------------------------------- /configs/model/Llama3Instruct70B.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/configs/model/Llama3Instruct70B.yaml -------------------------------------------------------------------------------- /configs/model/Meditron70B.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/configs/model/Meditron70B.yaml -------------------------------------------------------------------------------- /configs/model/OASST70B.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/configs/model/OASST70B.yaml -------------------------------------------------------------------------------- /configs/model/OpenBioLLM70B.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/configs/model/OpenBioLLM70B.yaml -------------------------------------------------------------------------------- /configs/model/PMCLlama13B.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/configs/model/PMCLlama13B.yaml -------------------------------------------------------------------------------- /configs/model/WizardLM70B.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/configs/model/WizardLM70B.yaml -------------------------------------------------------------------------------- /configs/paths/example.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/configs/paths/example.yaml -------------------------------------------------------------------------------- /dataset/dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/dataset/dataset.py -------------------------------------------------------------------------------- /dataset/diagnosis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/dataset/diagnosis.py -------------------------------------------------------------------------------- /dataset/diagnostic_criteria.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/dataset/diagnostic_criteria.json -------------------------------------------------------------------------------- /dataset/discharge.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/dataset/discharge.py -------------------------------------------------------------------------------- /dataset/labs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/dataset/labs.py -------------------------------------------------------------------------------- /dataset/procedures.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/dataset/procedures.py -------------------------------------------------------------------------------- /dataset/radiology.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/dataset/radiology.py -------------------------------------------------------------------------------- /dataset/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/dataset/utils.py -------------------------------------------------------------------------------- /evaluators/appendicitis_evaluator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/evaluators/appendicitis_evaluator.py -------------------------------------------------------------------------------- /evaluators/cholecystitis_evaluator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/evaluators/cholecystitis_evaluator.py -------------------------------------------------------------------------------- /evaluators/diverticulitis_evaluator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/evaluators/diverticulitis_evaluator.py -------------------------------------------------------------------------------- /evaluators/pancreatitis_evaluator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/evaluators/pancreatitis_evaluator.py -------------------------------------------------------------------------------- /evaluators/pathology_evaluator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/evaluators/pathology_evaluator.py -------------------------------------------------------------------------------- /icd/CMS32_DESC_LONG_SG.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/icd/CMS32_DESC_LONG_SG.txt -------------------------------------------------------------------------------- /icd/ICD10_to_9.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/icd/ICD10_to_9.csv -------------------------------------------------------------------------------- /icd/gem_i9pcs.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/icd/gem_i9pcs.txt -------------------------------------------------------------------------------- /icd/gem_pcsi9.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/icd/gem_pcsi9.txt -------------------------------------------------------------------------------- /icd/icd10pcs_codes_2024.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/icd/icd10pcs_codes_2024.txt -------------------------------------------------------------------------------- /icd/procedure_mappings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/icd/procedure_mappings.py -------------------------------------------------------------------------------- /models/exllamav2_generator_base_custom.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/models/exllamav2_generator_base_custom.py -------------------------------------------------------------------------------- /models/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/models/models.py -------------------------------------------------------------------------------- /models/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/models/utils.py -------------------------------------------------------------------------------- /ref_range_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/ref_range_test.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/requirements.txt -------------------------------------------------------------------------------- /run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/run.py -------------------------------------------------------------------------------- /run_full_info.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/run_full_info.py -------------------------------------------------------------------------------- /tests/Agent_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/tests/Agent_test.py -------------------------------------------------------------------------------- /tests/AppendicitisEvaluator_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/tests/AppendicitisEvaluator_test.py -------------------------------------------------------------------------------- /tests/CholecystitisEvaluator_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/tests/CholecystitisEvaluator_test.py -------------------------------------------------------------------------------- /tests/Dataset_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/tests/Dataset_test.py -------------------------------------------------------------------------------- /tests/DiagnosisWorkflow_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/tests/DiagnosisWorkflow_test.py -------------------------------------------------------------------------------- /tests/DiverticulitisEvaluator_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/tests/DiverticulitisEvaluator_test.py -------------------------------------------------------------------------------- /tests/DummyData.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/tests/DummyData.py -------------------------------------------------------------------------------- /tests/FullInfo_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/tests/FullInfo_test.py -------------------------------------------------------------------------------- /tests/LLM_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/tests/LLM_test.py -------------------------------------------------------------------------------- /tests/NLPUtils_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/tests/NLPUtils_test.py -------------------------------------------------------------------------------- /tests/PancreatitisEvaluator_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/tests/PancreatitisEvaluator_test.py -------------------------------------------------------------------------------- /tests/PathologyEvaluator_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/tests/PathologyEvaluator_test.py -------------------------------------------------------------------------------- /tests/Tools_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/tests/Tools_test.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tools/Actions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/tools/Actions.py -------------------------------------------------------------------------------- /tools/Tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/tools/Tools.py -------------------------------------------------------------------------------- /tools/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/tools/utils.py -------------------------------------------------------------------------------- /utils/logging.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/utils/logging.py -------------------------------------------------------------------------------- /utils/nlp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulhager/MIMIC-Clinical-Decision-Making-Framework/HEAD/utils/nlp.py --------------------------------------------------------------------------------