{ "info": { "author": "Tom Searle", "author_email": "thomas.searle@kcl.ac.uk", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "\n# ICD9 Diagnostic Code Helper Utility\nA helper utility that offers fast lookup of ICD9-CM V32 (2015) codes, \ncomplete with the entire hierarchy.\n\n\n## Why does this utility exist?\nICD9-CMS extends the original (already outdated) ICD9 code standard. \n\nThe billable ICD9 codes are available [here](https://www.cms.gov/Medicare/Coding/ICD9ProviderDiagnosticCodes/codes.html).\nHowever, these flat files lack the non-billable hierarchical relations between codes and the intermediate code descriptions.\n\nFor example, the above linked file only contains codes 0010, 0011 and 0019, and not the higher level codes 001 and 001-009.\n\n```\n001-009: ntestinal Infectious Diseases\n 001:Cholera\n 0010:Cholera d/t vib cholerae:Cholera due to vibrio cholerae\n 0011:Cholera d/t vib el tor:Cholera due to vibrio cholerae el tor \n 0019:Cholera NOS:Cholera, unspecified\n ...\n```\n\nThis intermediate non-billable nodes have been scraped from \n[http://www.icd9data.com/2015/Volume1/default.htm](http://www.icd9data.com/2015/Volume1/default.htm)\nparsed into the hierarchy and merged with the above using cms.gov billable codes. The hierarchy have been\nsaved to disk. \n\n\n### To install \n```\n$ pip install icd9cms\n```\n\n### To use\n```\n>>> from icd9cms.icd9 import search\n>>>search('001')\n001:Cholera:None\n>>> # Codes can be searched for with or without the implied '.' \n>>> search('001.0') == search('0010')\nTrue\n>>> # The root node is under the code 'n/a' or None\n>>> search('n/a')\nn/a:root:None\n```\n\n#### Parent / Child / Siblings Relations\n```\n>>> code = search('001')\n>>> code.parent\n001-009:Intestinal Infectious Diseases:None\n>>> code.children\n>>> code.children\n[0010:Cholera d/t vib cholerae:Cholera due to vibrio cholerae, 0011:Cholera d/t vib el tor:Cholera due to vibrio cholerae el tor, 0019:Cholera NOS:Cholera, unspecified]\n>>> code.siblings\n[002:Typhoid and paratyphoid fevers:None, 003:Other salmonella infections:None, 004:Shigellosis:None, 005:Other food poisoning (bacterial):None, 006:Amebiasis:None, 007:Other protozoal intestinal diseases:None, 008:Intestinal infections due to other organisms:None, 009:Ill-defined intestinal infections:None]\n```\n\n#### Collect Billable (Leaf) codes / Is a Code Billable (leaf)\n```\n>>> code = search('0010')\n>>> code.is_leaf\nTrue\n>>> leaf_codes = search('001-009').leaves\n>>> list(leaf_codes)\n[0010:Cholera d/t vib cholerae:Cholera due to vibrio cholerae, 0011:Cholera d/t vib el tor:Cholera due to vibrio cholerae el tor, 0019:Cholera NOS:Cholera, unspecified, 0020:Typhoid fever:Typhoid fever, 0021:Paratyphoid fever a:Paratyphoid fever A, 0022:Paratyphoid fever b:Paratyphoid fever B, 0023:Paratyphoid fever c:Paratyphoid fever C, 0029:Paratyphoid fever NOS:Paratyphoid fever, unspecified, 00320:Local salmonella inf NOS:Localized salmonella infection, unspecified, 00321:Salmonella meningitis:Salmonella meningitis, 00322:Salmonella pneumonia:Salmonella pneumonia, ...\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/tomolopolis/icd-util", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "icd9cms", "package_url": "https://pypi.org/project/icd9cms/", "platform": "", "project_url": "https://pypi.org/project/icd9cms/", "project_urls": { "Homepage": "https://github.com/tomolopolis/icd-util" }, "release_url": "https://pypi.org/project/icd9cms/0.2.1/", "requires_dist": [ "pandas", "bs4", "requests" ], "requires_python": "", "summary": "A utility for searching across the full icd9cms (2015) diagnosis hierarchy", "version": "0.2.1" }, "last_serial": 4546207, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "9cf9c9f8aadcae24d6d74aef97a41441", "sha256": "598f0682ca1f50e4580fb03d6c0bd351692ff0527e637b0a39a21a80e85f1737" }, "downloads": -1, "filename": "icd9cms-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9cf9c9f8aadcae24d6d74aef97a41441", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5552, "upload_time": "2018-10-26T14:20:13", "url": "https://files.pythonhosted.org/packages/31/7e/1a533dac8e75248dc4c51f3a124c79cfc732af5ab6876ed340d3670f0ff5/icd9cms-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "539f372fa9fc14dce9e03933da473489", "sha256": "c6fd3864ed21cff3b37954ab3eeafc68756a0ba6619457bafd7d8a9e8c5a0044" }, "downloads": -1, "filename": "icd9cms-0.1.tar.gz", "has_sig": false, "md5_digest": "539f372fa9fc14dce9e03933da473489", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4634, "upload_time": "2018-10-26T14:20:14", "url": "https://files.pythonhosted.org/packages/3d/5c/6691efde38d4c87d59b81db72eeb0ae151f6299efd3a9125b042cec97b6e/icd9cms-0.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "a99aa93bcf6ef513c5f68a65dbdb024a", "sha256": "eb4c90722ff78d59a94d28bfb391528045fb708bbecb729d8e532e93a873bf50" }, "downloads": -1, "filename": "icd9cms-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a99aa93bcf6ef513c5f68a65dbdb024a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 1212940, "upload_time": "2018-11-29T22:53:32", "url": "https://files.pythonhosted.org/packages/fd/e7/d9e82c8bb9d1d1149c46acdbd0f56bc038fe401b48e5263bd8231961079f/icd9cms-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e7ff0d7e6c99b95bfe80d870462e67c6", "sha256": "a2f3fd08c6177c6d1797141631f4a0a5f2ee82bd0598c1ff58c1925520951313" }, "downloads": -1, "filename": "icd9cms-0.2.0.tar.gz", "has_sig": false, "md5_digest": "e7ff0d7e6c99b95bfe80d870462e67c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1216091, "upload_time": "2018-11-29T22:53:53", "url": "https://files.pythonhosted.org/packages/57/80/018e495cbc073537f1b2d05bc6d46f9d3a28234c040b128cd294a634c492/icd9cms-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "bf97870c45579a6fbe6e7fa82bd73606", "sha256": "10f47d0308bc218c85436a55b31a10442fc42aeef17b8dac02fc86c91f65843d" }, "downloads": -1, "filename": "icd9cms-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "bf97870c45579a6fbe6e7fa82bd73606", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 1212960, "upload_time": "2018-11-30T08:24:03", "url": "https://files.pythonhosted.org/packages/89/a3/e3c70a341e312fef30000618e7cc7ae1f3893f65a4a2f3f5dd73280e05c1/icd9cms-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7d50bd7d8245694e705755b5fc97ee52", "sha256": "8601753fe88d16245346246093bce7d8ff8b9a3e0046998b543797ae5fddfb3e" }, "downloads": -1, "filename": "icd9cms-0.2.1.tar.gz", "has_sig": false, "md5_digest": "7d50bd7d8245694e705755b5fc97ee52", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1216107, "upload_time": "2018-11-30T08:24:48", "url": "https://files.pythonhosted.org/packages/fd/93/44d5bfc66aadd59dc9f30f1a00992f88eac9d0f66cf3ee8dfd16df61daae/icd9cms-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bf97870c45579a6fbe6e7fa82bd73606", "sha256": "10f47d0308bc218c85436a55b31a10442fc42aeef17b8dac02fc86c91f65843d" }, "downloads": -1, "filename": "icd9cms-0.2.1-py3-none-any.whl", "has_sig": false, "md5_digest": "bf97870c45579a6fbe6e7fa82bd73606", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 1212960, "upload_time": "2018-11-30T08:24:03", "url": "https://files.pythonhosted.org/packages/89/a3/e3c70a341e312fef30000618e7cc7ae1f3893f65a4a2f3f5dd73280e05c1/icd9cms-0.2.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7d50bd7d8245694e705755b5fc97ee52", "sha256": "8601753fe88d16245346246093bce7d8ff8b9a3e0046998b543797ae5fddfb3e" }, "downloads": -1, "filename": "icd9cms-0.2.1.tar.gz", "has_sig": false, "md5_digest": "7d50bd7d8245694e705755b5fc97ee52", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1216107, "upload_time": "2018-11-30T08:24:48", "url": "https://files.pythonhosted.org/packages/fd/93/44d5bfc66aadd59dc9f30f1a00992f88eac9d0f66cf3ee8dfd16df61daae/icd9cms-0.2.1.tar.gz" } ] }