Skip to content

[pull] master from yubin-park:master #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# hcuppy

Current version is 0.0.8.

A Python package for [H-CUP Tools and Software](https://www.hcup-us.ahrq.gov/tools_software.jsp).
The modules implemented in this package are as follows:
- "[CCS (Clinical Classification Software)](https://www.hcup-us.ahrq.gov/toolssoftware/ccs10/ccs10.jsp)" converts ICD-10 diagnosis and procedure codes to clinically meaningful groups
Expand Down Expand Up @@ -90,10 +92,27 @@ please type `print(<instance>.<function>.__doc__)`.
]
```

### Using Elixhauser Comorbidity Index
### Using Elixhauser Comorbidity Index (Version Y22)

The Y22 version implementation requires Present On Admission (POA) information. To use the algorithm, please prepare two arrays of diagnosis codes: one with the full list (`dx_full_lst`), and the other with POA (`dx_poa_lst`). PLEASE NOTE THAT If you omit `dx_poa_lst`, then the algorithm would assume all diagnoses were present on admission.

```python
>>> from hcuppy.elixhauser import ElixhauserEngine
>>> ee = ElixhauserEngine()
>>> dx_full_lst = ["E640", "E119", "B190"]
>>> dx_poa_lst = ["E119", "B190"]
>>> out = ee.get_elixhauser(dx_full_lst, dx_poa_lst)
>>> print(out)
{'cmrbdt_lst': ['WGHTLOSS', 'DIAB_UNCX', 'LIVER_SEV'],
'mrtlt_scr': 29,
'rdmsn_scr': 16}
>>>
```

### Using Elixhauser Comorbidity Index (Old Version before Y22)
```python
>>> from hcuppy.elixhauser_v19 import ElixhauserEngineV19
>>> ee = ElixhauserEngineV19()
>>> out = ee.get_elixhauser(["E119", "E108", "I10", "I110", "Z944"])
>>> print(json.dumps(out, indent=2))
{
Expand Down Expand Up @@ -143,7 +162,8 @@ Please refer to the test scripts under the `tests/` folder if you want to see ot
Apache 2.0

## Authors
Yubin Park, PhD
- Yubin Park, PhD
- Kevin Buchan Jr, PhD

## References
- https://www.hcup-us.ahrq.gov/
Expand Down
Loading