Map MS-DRG v38.1 DRG/MDC numeric codes to their text description
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
drg2txt-0.3.0.tar.gz
(16.8 kB
view details)
File details
Details for the file drg2txt-0.3.0.tar.gz
.
File metadata
- Download URL: drg2txt-0.3.0.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2830ff051b3a3f5792c3b724f8ffc457e140a73df56c458f1b10719a0b5d7cb2 |
|
MD5 | 4faf26e5968468399e8175021e8327c1 |
|
BLAKE2b-256 | f662a4319fe6d229e3e76c43f6c402c614c117f29267ae0f4d7fa8a23edcf2f7 |