{ "info": { "author": "Yubin Park", "author_email": "yubin.park@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# drgpy \n\n`drgpy` is a Python library for assigning a combination of diagnosis and procedure codes to Diagnosis Related Groups (MS-DRG) that is used in Medicare inpatient reimbursement today.\n\n## Installing\n\nInstalling from the source:\n```\n$ git clone git@github.com:yubin-park/drgpy.git\n$ cd drgpy\n$ python setup.py develop\n```\n\nOr, simply using `pip`:\n```\n$ pip install drgpy\n```\n\n## File Structure\n- `drgpy/`: The package source code is located here.\n - `data/`: The raw data files downloaded from [the CMS website](https://www.cms.gov/Medicare/Medicare-Fee-for-Service-Payment/AcuteInpatientPPS/MS-DRG-Classifications-and-Software.html). \n - `msdrg.py`: The main file for the MS-DRG logic.\n - `_mdcsrdr.py`: A script that reads/parses `mdcs_xx_xx.txt` data files.\n - `_appndxrdr.py`: A script that reads/parses `appendix_xx.txt` data files.\n - `_mdcs0007.py`: logics for MDC00 - MDC07\n - `_mdcs0811.py`: logics for MDC08 - MDC11\n - `_mdcs1221.py`: logics for MDC12 - MDC21\n - `_mdcs2225.py`: logics for MDC22 - MDC25\n- `tests/`: test scripts to check the validity of the outputs.\n- `LICENSE.txt`: Apache 2.0.\n- `README.md`: This README file.\n- `setup.py`: a set-up script.\n\n## Code Examples\n`drgpy` is really simple to use. \nPlease see some examples below.\nNOTE that all functions used below have docstrings. \nIf you want to see the input parameter specifications,\nplease type `print(..__doc__)`.\n\n```python\n>>> from drgpy.msdrg import DRGEngine\n>>> de = DRGEngine()\n>>> print(de.get_drg.__doc__)\n\n Return the corresponding DRG code for the diagnoses and procedures\n\n Parameters\n ----------\n dx_lst : list\n A list of ICD-10 diagnosis codes\n pr_lst : list\n A list of ICD-10 procedure codes\n>>>\n>>> de.get_drg([\"B20\"],[])\n'977'\n>>> de.get_drg([], [\"02HA0RS\"])\n'983'\n>>> de.get_drg([], [\"02HA0RS\", \"02PA0RZ\"])\n'002'\n>>>\n```\n\nPlease refer to the test scripts under the `tests/` folder if you want to see other example use cases.\n\n## License\nApache 2.0\n\n## Authors\nYubin Park, PhD\n\n## References\n- https://www.cms.gov/Medicare/Medicare-Fee-for-Service-Payment/AcuteInpatientPPS/MS-DRG-Classifications-and-Software.html\n\n\n\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/yubin-park/drgpy", "keywords": "", "license": "Apaceh 2.0", "maintainer": "", "maintainer_email": "", "name": "drgpy", "package_url": "https://pypi.org/project/drgpy/", "platform": "", "project_url": "https://pypi.org/project/drgpy/", "project_urls": { "Homepage": "https://github.com/yubin-park/drgpy" }, "release_url": "https://pypi.org/project/drgpy/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "drgpy is a Python library for assigning a combination of diagnosis and procedure codes to Diagnosis Related Groups (MS-DRG) that is used in Medicare inpatient reimbursement today.", "version": "0.0.1" }, "last_serial": 5423371, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "c8a80cecc3a3f9f24b8c34046e261404", "sha256": "9c4949b22ae064ea36a5b19380b1f53f7f64d653f09b0e69bc10e33734f5f724" }, "downloads": -1, "filename": "drgpy-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "c8a80cecc3a3f9f24b8c34046e261404", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4328613, "upload_time": "2019-06-20T01:40:10", "url": "https://files.pythonhosted.org/packages/a9/e9/700bad75a86a8c71a1f06ce243680069577686eeb2236d00551c5a8c1623/drgpy-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "89c8f48b57640c8d89b9bbd6b6aea43a", "sha256": "02c52720c7f2100932f05413e8caf45adc155c29fc45171bcf80838d7ccc6118" }, "downloads": -1, "filename": "drgpy-0.0.1.tar.gz", "has_sig": false, "md5_digest": "89c8f48b57640c8d89b9bbd6b6aea43a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16782, "upload_time": "2019-06-20T01:40:13", "url": "https://files.pythonhosted.org/packages/a6/9c/027034bc04d4abea536b59e6b194f6f21711461f378e3c8554bb9a7ea8fc/drgpy-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c8a80cecc3a3f9f24b8c34046e261404", "sha256": "9c4949b22ae064ea36a5b19380b1f53f7f64d653f09b0e69bc10e33734f5f724" }, "downloads": -1, "filename": "drgpy-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "c8a80cecc3a3f9f24b8c34046e261404", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4328613, "upload_time": "2019-06-20T01:40:10", "url": "https://files.pythonhosted.org/packages/a9/e9/700bad75a86a8c71a1f06ce243680069577686eeb2236d00551c5a8c1623/drgpy-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "89c8f48b57640c8d89b9bbd6b6aea43a", "sha256": "02c52720c7f2100932f05413e8caf45adc155c29fc45171bcf80838d7ccc6118" }, "downloads": -1, "filename": "drgpy-0.0.1.tar.gz", "has_sig": false, "md5_digest": "89c8f48b57640c8d89b9bbd6b6aea43a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16782, "upload_time": "2019-06-20T01:40:13", "url": "https://files.pythonhosted.org/packages/a6/9c/027034bc04d4abea536b59e6b194f6f21711461f378e3c8554bb9a7ea8fc/drgpy-0.0.1.tar.gz" } ] }