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

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)

Uploaded Source

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

Hashes for drg2txt-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2830ff051b3a3f5792c3b724f8ffc457e140a73df56c458f1b10719a0b5d7cb2
MD5 4faf26e5968468399e8175021e8327c1
BLAKE2b-256 f662a4319fe6d229e3e76c43f6c402c614c117f29267ae0f4d7fa8a23edcf2f7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 file

0.2.0

1 file

0.1.0

1 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