bryand1 / icd10-cm Goto Github PK
View Code? Open in Web Editor NEWICD-10 CM medical classification list by the World Health Organization
License: MIT License
ICD-10 CM medical classification list by the World Health Organization
License: MIT License
"Diseases of the eye and adnexia" should be "Diseases of the eye and adnexa"
Reproduce:
import icd10
icd10.chapters[6]
# ('VII', 'H00-H59', 'Diseases of the eye and adnexia')
Hey Bryan,
really appreciate this neat package! When working with ICD codes like A00, A000, or B00 that have zero-only numerical parts, I get ValueErrors due to the lstripping of all zeros in Line 126 of the init.py:
icd10.find('A00').chapter
# Traceback
124
125 def in_chapter(block: str, icd10: str) -> bool:
--> 126 alpha, numeric = ord(icd10[0]), int(icd10[1:3].lstrip('0'))
127 sblock, eblock = block.split('-') # A00-B99
128 salpha, snumeric = ord(sblock[0]), int(sblock[1:].lstrip('0') or 0)
ValueError: invalid literal for int() with base 10: ''
As far as I can tell, it should work fine when changing
alpha, numeric = ord(icd10[0]), int(icd10[1:3].lstrip('0'))
to
alpha, numeric = ord(icd10[0]), int(icd10[1:3].lstrip('0') or 0)
as in the following lines.
Cheers,
Julius
I have recently come across your work and would like to reference it in a project I am working on. However, I am unsure of the proper way to cite your work. Would you be able to provide me with information on how to properly cite your work, such as by adding a citation.cff?
Please also add a conda package
In the line 127 to line 129 in __init__()
:
sblock, eblock = block.split('-') # A00-B99
salpha, snumeric = ord(sblock[0]), int(sblock[1:].lstrip('0') or 0)
ealpha, enumeric = ord(eblock[0]), int(eblock[1:].lstrip('0') or 0)
This does not work for code C50, since chapter II start from C00 and end with D48, so 50 will larger than 0 but less than 48.
A condition should be added here, thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.