Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

EMScribe 2.0 is a powerful tool designed to streamline the creation of comprehensive EMS narratives. Leveraging advanced AI, it extracts detailed information from text transcripts of patient interactions, generating thorough and accurate EMS reports.

License

NotificationsYou must be signed in to change notification settings

ScottSucksAtProgramming/EMScribe

Repository files navigation

EMScribe Logo

Build StatusIssuesPull RequestsStarsLicensePython Versions

📑 Table of Contents

🚀 Welcome to EMScribe!

Welcome to EMScribe, your ultimate companion for crafting comprehensive EMS narratives for patient care reports. Whether you're an EMT, paramedic, or researcher, EMScribe is designed to simplify your workflow and enhance your documentation process. Spend less time on your paperwork and more time providing exceptional care.

🌟 Overview

EMScribe is here to save the day by extracting critical information from text transcripts of patient interactions. It generates detailed reports that include:

  • Patient demographics
  • Medical history
  • Chief complaints
  • History of present illness
  • Treatments performed
  • Objective assessments
  • Treatment plans
  • Transport information
  • Transfer of care details

✨ Key Features

  • 🔍 Detailed Extraction: Pulls comprehensive patient information from text transcripts.
  • 📋 Narrative Generation: Creates complete EMS narratives.
  • 🧐 Narrative Review: (Coming Soon) Identifies missing information or inconsistencies.
  • ⚖️ Medical-Legal Review: (Coming Soon) Suggests changes to ensure legal protection.
  • 📄 Plain Text Output: Provides the final narrative in an easily readable format.

🛠️ Setup

Prerequisites

Make sure you have the following before getting started:

  • Python 3.8 or higher
  • Virtual Environment (venv)
  • Ollama (running locally)
  • VS Code (or any IDE)
  • Git

Installation

Follow these simple steps to install EMScribe:

  1. Clone the Repository:

    git clone https://github.com/ScottSucksAtProgramming/EMScribe.gitcd emscribe
  2. Set Up a Virtual Environment:

    python -m venv venvsource venv/bin/activate
  3. Install Dependencies:

    pip install -r requirements.txt
  4. Configure Ollama:

    EnsureOllama is running locally and accessible athttp://localhost:11434.

Verify the Installation

Run the tests to make sure everything is set up correctly:

pytest

If all tests pass, congratulations! You're ready to use EMScribe. 🎉

🚀 Using EMScribe

Adding EMScribe to Your PATH

To use theemscribe command from any directory, add it to your PATH. Add the following line to your shell configuration file (e.g.,.bashrc,.zshrc, or.profile):

export PATH="$PATH:/path/to/emscribe/bin"

Replace/path/to/emscribe with the absolute path to theemscribe file in your project directory.

After updating your shell configuration file, reload it:

source~/.bashrc# or source ~/.zshrc or source ~/.profile

Running theemscribe Command

Now, you can use theemscribe command to clean transcripts, extract information, review, and generate narratives. Use the providedtranscript.txt as a demo transcript when running the commands.

emscribe clean ./transcript.txtemscribe extract ./transcript.txtemscribe review ./extract.txtemscribe generate ./reviewed_extract.txt --output ./narrative.txt

You can also pipe the output from one command to another:

emscribe clean ./transcript.txt| emscribe extract -| emscribe review -| emscribe generate - --output ./narrative.txt

📈 Quick Start

Want to dive right in? Here’s a quick way to get started with EMScribe:

  1. Clone the Repository

  2. Install Dependencies

  3. Run a Demo Command:

    emscribe clean ./transcript.txt| emscribe extract -| emscribe review -| emscribe generate - --output ./narrative.txt

Enjoy the streamlined EMS documentation process! 🚑✨

📁 Directory Structure

.|-- README.md|-- bin|   `-- emscribe|-- commands|   |-- clean_command.py|   |-- extract_command.py|   |-- generate_command.py|   `-- review_command.py|-- data|   |-- cleaned_transcript.txt|   |-- extract.txt|   |-- narrative.txt|   `-- reviewed_extract.txt|-- docs|   |-- api_reference.md|   |-- contributing.md|   |-- development.md|   |-- index.md|   |-- installation.md|   `-- usage.md|-- images|   `-- emscribe_logo.png|-- modules|   |-- extract_reviewer.py|   |-- model_loader.py|   |-- narrative_manager.py|   |-- prompt_manager.py|   |-- prompts|   |   |-- cleaning_prompts.py|   |   |-- extraction_prompts.py|   |   |-- narrative_prompts.py|   |   `-- review_prompts.py|   |-- transcript_cleaner.py|   `-- transcript_extractor.py|-- requirements.txt|-- scripts|   `-- cli.py|-- tests|   |-- conftest.py|   |-- test_cli.py|   |-- test_model_loader.py|   |-- test_review_command.py|   |-- test_transcript_cleaner.py|   `-- test_transcript_extractor.py|-- transcript.txt`-- venv

📅 Roadmap

Here's a sneak peek at what's coming next:

  • PDF Extraction: Add the ability to extract information from PDF files generated by ePCR software.
  • Additional Narrative Formats: Include more narrative formats.
  • Hospital Hand-Off Reports: Generate reports for hospital hand-offs.
  • User Interface: Develop a user-friendly GUI for non-technical users.
  • Enhanced AI Capabilities: Improve the accuracy and speed of information extraction.
  • Customization: Allow users to customize the narrative generation process.
  • Mobile App: A mobile version of EMScribe for on-the-go usage.
  • API Access: Integrate with other AI services like OpenAI, Claude, etc.
  • Integration: Seamless integration with other EMS software systems.

Stay tuned for more updates!

🤝 Contribution Guidelines

Right now, I'm not looking for contributors, but if you have any requests or suggestions, feel free to contact me.

📜 License

This project uses a prohibitive license. You must obtain express written permission to use the software. For more details, please refer to theLICENSE file.

📧 Contact

For any questions or support, please contactScott Kostolni.

📚 Documentation

For detailed documentation, check out:

About

EMScribe 2.0 is a powerful tool designed to streamline the creation of comprehensive EMS narratives. Leveraging advanced AI, it extracts detailed information from text transcripts of patient interactions, generating thorough and accurate EMS reports.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp