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 .
-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.
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