Skip to content

Latest commit

 

History

History
49 lines (30 loc) · 1.24 KB

README.md

File metadata and controls

49 lines (30 loc) · 1.24 KB

ASAP PMP Report Parser

A Python CLI tool for parsing and validating ASAP reports.

The ASAP standard is a flat file developed by the American Society For Automation in Pharmacy. https://asapnet.org/

The ASAP format is delimited flat file format that uses ~ as section delimiters and * as field delimiters.

Setup

pipenv install
pipenv run python -m app --help

Parsing ASAP files

pipenv run python -m app path/to/asap.txt

Command line options

--help

--help - Display help message.

--unsafe-phi-display

-u or --unsafe-phi-display - Display PHI data in the output. By default, PHI data is redacted.

pipenv run python -m app --unsafe-phi-display path/to/asap.txt

Eventual Steps for Distributing on PyPi

The setup.py file includes some advanced patterns and best practices for setup.py, as well as some commented–out nice–to–haves. For example, it provides a python setup.py upload command, which creates a universal wheel (and sdist) and uploads your package to PyPi using Twine. It also creates/uploads a new git tag, automatically.

Packaging

Update setup.py with your details and then run python setup.py upload to package for distribution on PyPi.