Skip to content

rafaelolal/hackharvard2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hackharvard2024

Installation

  • brew install portaudio
  • brew install ffmpeg
  • python -m venv env (>=3.9 and <3.13)
  • source env/bin/activate (Linux)
  • pip install -r requirements.txt
  • Download a whisper model from https://github.com/openai/whisper/blob/main/whisper/__init__.py
  • .env variables needed
    • OPENAI_API_KEY
    • RECORDING_FOLDER (relative file location)
    • WHISPER_MODEL (relative file location)
    • FHIR_SERVER_URL (optional)
  • python backend/manage.py migrate
  • python backend/manage.py runserver

Synthea custom settings

synthea/src/main/resources/synthea.properties

# HackHarvard 2024 custom settings
exporter.fhir.use_us_core_ig = true
exporter.fhir.transaction_bundle = true
# exporter.fhir.bulk_data = true
exporter.fhir.server_url = http://localhost:8080/fhir

Synthea data generator

Ensure file is executable chmod +x ./gen_and_upload.sh Ensure ./run_synthea is pointing to the correct synthea directory

API Endpoints

/create_patient/[id]/ -> {success} /update_patient/[id]/ -> {success} /initialize_patient/[id]/ -> {success} /get_patient/[id]/ -> {data} /start_recording/ -> {recorder_id} /stop_recording/[id]/ -> {filename} /get_suggestion/[filename]/ -> {suggestion, transcription}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors