yubin-park / hccpy

A Python implementation of Hierarchical Condition Categories
Apache License 2.0
97 stars 59 forks source link

Diagnosis category "sepsis" bug #47

Closed daabbott-deloitte closed 1 year ago

daabbott-deloitte commented 1 year ago

Most versions have a diagnosis category "sepsis", which is stored in the code as z["SEPSIS"].

The bug occurs in here, where instead x["SEPSIS"] is mistakenly used. As is, the result is x["SEPSIS_ASP_SPEC_BACT_PNEUM"] weights are never applied to a beneficiary profile.

This should be a relatively easy fix but should be done for all applicable versions.

dr00b commented 1 year ago

closed by #48