Git Product home page Git Product logo

icd10-cm's People

Contributors

bryand1 avatar felipekafuri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

icd10-cm's Issues

A typo in the name of chapter VII

"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')

Missing special ICD10 codes

This list compiled here is missing the ICD10 special codes from U00-U49 and U82-U85 respectively.
Kindly update the list with these important codes.
Screenshot (74)

Bug with zero-only numerical part of ICD codes like A00

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

Citation

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?

Assign None to code C50

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.