Skip to main content

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)

Source distribution for drg2txt 0.3.0
File Size Uploaded
drg2txt-0.3.0.tar.gz 16.8 kB Details

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

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page