https://github.com/banderlog/drg2txt
Mapper for MS-DRG v38.1 (DRG/MDC numeric codes to their text description)
https://github.com/banderlog/drg2txt
cms data-science drg mdc medicine python
Last synced: about 2 months ago
JSON representation
Mapper for MS-DRG v38.1 (DRG/MDC numeric codes to their text description)
- Host: GitHub
- URL: https://github.com/banderlog/drg2txt
- Owner: banderlog
- License: mit
- Created: 2021-06-18T09:10:50.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-27T22:04:59.000Z (over 3 years ago)
- Last Synced: 2025-02-15T06:04:40.154Z (2 months ago)
- Topics: cms, data-science, drg, mdc, medicine, python
- Language: Jupyter Notebook
- Homepage:
- Size: 40 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# drg2txt
[](https://pepy.tech/project/drg2txt)
[](https://pepy.tech/project/drg2txt)
[](https://pepy.tech/project/drg2txt)Mapper for DRG/MDC numeric codes to their text description.
Uses [MS-DRG v38.1](https://www.cms.gov/icd10m/version38-1-fullcode-cms/fullcode_cms/P0001.html).## Installation
`pip install drg2txt`
## Examples
```python
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`