Skip to content

Mapper for MS-DRG v38.1 (DRG/MDC numeric codes to their text description)

License

Notifications You must be signed in to change notification settings

banderlog/drg2txt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

drg2txt

Downloads Downloads Downloads

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

About

Mapper for MS-DRG v38.1 (DRG/MDC numeric codes to their text description)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published