Code Monkey home page Code Monkey logo

drgpy's People

Contributors

yubin-park 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

drgpy's Issues

Use of diagnoses and procedures only

Hi, may I confirm my understanding that your script does not need information such as sex, age, admission diagnosis, discharge code to create DRGs, and if so whether mapping based only on diagnoses and procedures is sufficient to reproduce the CMA algorithm. Thanks for your thoughts!

MS-DRG Version number

Feature Request: it would be useful if the package and/or DRGEngine object included a discoverable MS-DRG version number.

(Thanks for developing this package, it is very useful!)

thank you for posting

Hi @yubin-park!

I wanted to thank you for posting this script and your research for where to find machine readable ICD-10 codes.

I and a colleague were contemplating scraping CMS' index.

Now we don't have to!

Cheers.

Making OR Procedures DRG-specific

Hey thanks for this package - simple, clean API which can chug through DRG grouping very quickly.

I cross referenced the results with already grouped DRGs and came across a few issues:

  1. OR Procedures are DRG-specific: After skimming through your code, it seems like the logic for Appendix E is implemented in a way where it considers procedures as OR or non-OR despite this distinction being DRG-specific. I noticed common misclassification into DRG 819 due to this.
  2. DRG-specific Issues: There are a handful of DRGs which have minor issues in their implementation
    a. 795: The claim still qualifies for this DRG if it has multiple secondary diagnoses which are on the list of allowed secondaries. It is not simply a hard cut off with more than one
    b. 064 and 065: These DRGs qualify if they have rtPA OR an MCC/CC respectively. Currently claims are only qualifying if they have rtPA
    c. 177: The second group of primary diagnoses is not being cross referenced for this grouping

Again - this is an awesome repo man, I've had to parse CMS files too and know it's no easy feat!

Do not return a DRG code with ICD N400

Hi Yubin, I hope you are ok! I was running the library and realized that when I'm looking for the ICD N400, the function is returning 000. Do you have any idea what is happening?

`dx_pttrn` excludes COVID-19 codes

Thanks for the great package! We have a large DB of codes and DRGs assigned at a large regional hospital system and we've been looking at cases where this library disagrees with the billed DRGs. One high volume case is patients with a primary DX of U071 COVID-19. The CMS files show that these patients should be assigned DRG 177-179 but drgpy returns DRG 000. This seems to be due to dx_pttrn excluding these codes on line 6 of _mdcsrdr.py. I looked through the history and couldn't figure out why the code was written this way. Obviously this code was written before COVID-19. Is there a reason to exclude 'U' codes from this library? If not, may I submit a pull request to fix this?

Thanks!

Appropriately recognizing DRGs 98X (Procedure Unrelated to Primary Diagnosis)

This is awesome repo and much easier to implement than generating batch input for the MCE, but I've found a couple issues as compared to the official CMS logic. The most frequent issue we have encountered is inappropriate assignment (or rather lack thereof) to DRGs 981-983 and 987-989. It seems that with the current logic if the grouper finds a diagnosis that matches a DRG and sees that the procedures do not correspond to any DRGs directly related to that diagnosis, it ignores the procedures and returns a DRG just based on diagnosis codes. However, the correct logic would be to check if the unrelated procedure codes qualify for DRGs in the 98X range.

Example:

  • DRGpy = Seizure + Coronary intervention --> DRG 101
  • MSDRG/MCE = Seizure + Coronary intervention --> DRG 983

Feature Request for ICD-9

I am looking for something similar that uses ICD-9-CM, as I wish to analyze older claims data.

Is it possible to modify the program to do so? CMS does publish the final rule tables going back to ~2006, which includes MCC/CC lists and exclusion lists. (I don't fully understand how the grouping algorithm works, so maybe this is insufficient.)

If you can point me to another resource, I'd also be very grateful.

NoExcl in Appendix C?

Hi folks,

I have ICD_Dx_lst = ['T6591XA','F23'] and when I try to find DRG it's showing KeyError: 'No Excl'. When I check the Appendix C, column "PDX Exclusions", "F23" is "NoExcl ".
So it is not writing any DRG.

How to I come out of KeyError: 'No Excl' and get proper DRG?

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.