dotimplement / HealthChain

Simplify testing and validating AI and NLP applications in a healthcare context 💫 🏥
https://dotimplement.github.io/HealthChain/
Apache License 2.0
25 stars 16 forks source link

Added the find section by code functionality #87

Closed Vortex-21 closed 1 month ago

Vortex-21 commented 1 month ago

Description

I have updated the cdaannotator by adding the _find_section_by_code() function and modifying the related functions such that if the cda document doesn't contain template_ids then it can identify and retrieve the related sections using their respective code values .

Related Issue

https://github.com/dotimplement/HealthChain/issues/66

Changes Made

-Added SectionCode Enum. -Added _find_section_by_code() function. -Updated the related functions like _find_problems_section(). -Added and updated tests for a document which doesn't contain template_ids for various sections .

Testing

I have added tests similar to the already existing tests but with a different instance of the cdaAnnotator which contains data from that xml document which doesnt have any template_ids.

Checklist

Additional Notes

Vortex-21 commented 1 month ago

Looks good to me. Thank you so much for your second contribution @Vortex-21! 🌟

@jenniferjiangkells Thank you so much for your kind words! 😊 I'm really glad I could contribute .