drg2txt
Mapper for DRG/MDC numeric codes to their text description. Uses MS-DRG v38.1.
Installation
pip install drg2txt
Examples
import drg2txt
[drg2txt.get_drg_description(i) for i in [1, 10, 100, 'WOLOLO']]
>>>
['Heart transplant or implant of heart assist system with MCC',
'Pancreas transplant',
'Seizures with MCC',
None]
[drg2txt.get_drg_mdc_description(i) for i in [1, 10, 100, 'WOLOLO']]
>>>
['Has no MDC', 'Has no MDC', 'Diseases and disorders of the nervous system', None]
[drg2txt.get_mdc_code(i) for i in [1, 10, 100, 'WOLOLO']]
[-1, -1, 1, None]
Look on original dicts: from drg2txt import drg_descr, drg_mdc, mdc_descr
Metadata
Release files for drg2txt 0.3.0
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 |
|---|---|---|---|---|
| drg2txt-0.3.0.tar.gz | 16.8 kB | Without provenance | Details for drg2txt-0.3.0.tar.gz |
Release files / drg2txt-0.3.0.tar.gz
| Download URL | drg2txt-0.3.0.tar.gz |
|---|---|
| Size | 16.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2830ff051b3a3f5792c3b724f8ffc457e140a73df56c458f1b10719a0b5d7cb2
|
|
BLAKE2b-256 checksum How to use checksums |
f662a4319fe6d229e3e76c43f6c402c614c117f29267ae0f4d7fa8a23edcf2f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.10
|
Security for drg2txt 0.3.0
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.