Skip to main content

Log receipt of MRI exams into the database

Project description

ispy2_mri

PyPI - Version PyPI - Python Version Hatch project


Table of Contents

Purpose

This package provide a graphical application to enter information about batches of MRI's as they come in from sites. The information is saved in the ispy2 database, named breastdb on the server. Some of that information is available electronically, and can be pulled from a plain text file of the user's choice instead of entered manually.

This is a replacement for one of the functions currently accessible through a web interface. That web application can still be used for other things, like generating reports, or even for entering the same information. However, the web application does not use the information in the plain text files.

If you are not in UCSF Radiology, it is very unlikely this package is of interest.

Installation

Prerequisites

  • Only tested on MS-Windows, might work elsewhere if ODBC does
  • Python 3.10 or greater installed. To test, start a terminal (hit the Windows button, type "command prompt", and select that application), and enter py --version in the terminal.
  • 64-bit ODBC installed with a recent MS SQL Server driver, e.g., 18.
  • An ODBC data source ("DSN") named breastdb-new pointing to the breastdb database.
  • You have permission to write to that database.
  • The machine you are using can contact the database (may require firewall changes)
  • You have access to the directory in which the text files summarizing key scan info are available.

Program Setup

The main issue is exactly how you get access to the Python Package that uses the program.

py -m pip install ispy2_mri  # MS-Windows

This will create a program that can be launched from a terminal with ispy2-mri. You may want to create a desktop shortcut that will do the same thing.

License

ispy2-mri is distributed under the terms of the GPL-3 license.

Developer Notes

The application that ships is under src, but it is generated by the scripts under build. Make any changes to the code in build, and then run pre_fields.py to regenerate src/ispy2_mri/ispy2_gui.py. The pre is for pre-processor: the code turns the "specification" in tomcat web application's original ispy2.jsp (which came from the insert directory of the bdb project) into a Python-based Qt application.

There is probably a way to automate that into the regular build process, which uses hatch. But its documentation doesn't spell out how.

See Notes.md for the main developer notes, as well as comments in the code and the version control history. In time, the issues for the project might have something as well.

I do not recommend studying the code in ispy2_gui.py directly as it has a lot of repetitive, automatically generated code. And it does not have a lot of the notes and To Do list in the comments for pre_fields.py.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ispy2_mri-0.0.7.tar.gz (67.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ispy2_mri-0.0.7-py3-none-any.whl (51.8 kB view details)

Uploaded Python 3

File details

Details for the file ispy2_mri-0.0.7.tar.gz.

File metadata

  • Download URL: ispy2_mri-0.0.7.tar.gz
  • Upload date:
  • Size: 67.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.25.0

File hashes

Hashes for ispy2_mri-0.0.7.tar.gz
Algorithm Hash digest
SHA256 e9bf20f519db324a1f079a1fbfe8c613d6b1faf66192365dcdb470021fb1517f
MD5 58ab8c01b8d4640ff3305437038e1af6
BLAKE2b-256 8681b5c92ac2f4af4adb1ec253aa743ac19f64d69f68655bfea55e1a94f55d30

See more details on using hashes here.

File details

Details for the file ispy2_mri-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: ispy2_mri-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 51.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.25.0

File hashes

Hashes for ispy2_mri-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c9f8c9b9d26f31ee7a024be046b7e9f9dd610ebca60db2a853cfa7a0abfa547d
MD5 ad5af13d1f2f334fa9fdccd42fc9e606
BLAKE2b-256 00ecfa0330605e3f40323765278db377fc860b5dea4aea22f4a553ff0d5ab7cd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page