Skip to content
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

add parameter no_hierarchy to avoid hcc hierarchy #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FuadRafid
Copy link

For users who do want to use the hierarchy but a simple mapping from ICD10 to HCC and RAF Scores, this parameter will facilitate that function.

Copy link
Owner

@yubin-park yubin-park left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than having "no hierarchy" as an option, I am thinking of expanding the output. For example, we can add {"cc_wo_hierarchy": [...]} to be added in the output. This way, for those users who want the CCs, they can grab that part from the output.

@@ -134,7 +136,10 @@ def profile(self, dx_lst, age=70, sex="M",
dx_set = {dx.strip().upper().replace(".","") for dx in dx_lst}
cc_dct = {dx:self.dx2cc[dx] for dx in dx_set if dx in self.dx2cc}
cc_dct = V22I0ED2.apply_agesex_edits(cc_dct, age, sex)
hcc_lst = self._apply_hierarchy(cc_dct, age, sex)
if no_hierarchy:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for creating this option. But I have a bit different thought. I will leave my comments.

@yubin-park
Copy link
Owner

@FuadRafid Left my review above. Let me know your thoughts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants