PreviseDx Esopredict PDF File Utils
Collection of Python modules for processing PreviseDx Esopredict PDF files
Usage
# from pdfrw import PdfReader, PdfWriter
from previsedx_esopredict_pdf_file_utils import EsopredictPDFWriter as Writer
from previsedx_esopredict_pdf_file_utils import constants
import yaml
import os
config_file = constants.DEFAULT_CONFIG_FILE
# Load configuration file into dictionary.
config = yaml.safe_load(open(config_file))
outdir = os.path.join(
constants.DEFAULT_OUTDIR_BASE,
os.path.basename(__file__),
constants.DEFAULT_TIMESTAMP,
)
# Create the output directory if it does not exist
os.makedirs(outdir, exist_ok=True)
# Output path for the populated PDF
outfile = os.path.join(outdir, "populated_output.pdf")
writer = Writer(
config=config,
config_file=config_file,
outdir=outdir,
outfile=outfile,
verbose=True,
)
lookup = {
"patient_name": "John Doe",
"date_of_birth": "2024-01-02",
"provider_name": "Dr. Jack Tripper",
"gender": "Male",
"medical_record_id": "12345",
"previse_lab_id": "11112",
"specimen_id": "7890",
"collection_date": "2024-01-02",
"date_received": "2024-02-02",
"date_reported": "2024-03-02",
"clinic": "Johns Hopkins Medical Center",
"address": "123 Main St",
"city_state_zip": "Baltmore, MD 12345",
"treating_provider": "Dr. Smith",
"barretts_diagnosis": "Something, Yes",
"segment_length": "1.2",
"risk_level": "High",
"range_score": "8",
"five_year_probability_of_progression": "14%",
"notes": "Some notes from provider",
}
writer.write_file(**lookup)
History
0.1.0 (2024-09-08)
First release on PyPI.
Metadata
Release files for previsedx-esopredict-pdf-file-utils 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| previsedx_esopredict_pdf_file_utils-0.1.1.tar.gz | 16.1 kB | Without provenance | Details for previsedx_esopredict_pdf_file_utils-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| previsedx_esopredict_pdf_file_utils-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for previsedx_esopredict_pdf_file_utils-0.1.1-py3-none-any.whl |
Total release size: 28.3 kB
Release files / previsedx_esopredict_pdf_file_utils-0.1.1.tar.gz
| Download URL | previsedx_esopredict_pdf_file_utils-0.1.1.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
249812af35d7f278a74c811c06ded40407b7699beb2c633f15cf4b40c642e774
|
|
BLAKE2b-256 checksum How to use checksums |
39dc91b0871e96d05dc0257915e627c654854c0d73b4bcb2228623ab379adff4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Release files / previsedx_esopredict_pdf_file_utils-0.1.1-py3-none-any.whl
| Download URL | previsedx_esopredict_pdf_file_utils-0.1.1-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc89f34b6d1ba8354013bbf85548c613ed57e7b361210324fe76b55c41a85ca7
|
|
BLAKE2b-256 checksum How to use checksums |
a1a58de768621cd5f9be2faaaec4c78f6cb7171f1d2b0a4358a4f9b36afb3237
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Security for previsedx-esopredict-pdf-file-utils 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.