Skip to content

poddus/CGM-M1-Pro-Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CGM-M1-Pro-Parser

CGM M1 Pro has the option to search by certain criteria. The results of these searches can be exported to text files. Unfortunately (like most things in the software), this functionality hasn't been updated for about 2 decades. The lists don't share a common format, they don't even share the same line width. This makes working with lists outside of CGM M1 Pro basically impossible (perhaps this is by design). This parser fills the gap and enables exporting to a sane format.

A Word of Caution

If at all possible, please avoid using CGM M1 Pro. It is an abysmal product.

Dependencies

The script requires numpy and pandas for the set operation option.

Usage

For now, the best way to use the parser is via command line

./CGMParser.py input.txt -o output.csv

this creates a list of patient IDs found in the input file. Using the optional -a flag, it is possible to extract all meta information for each patient record. The actual text, while parsed, is not currently exported.

Testing

Some simple test input can be found in the test_input folder. Unit tests are planned but not yet implemented.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages