Allow for more treatment plan data to be displayed in the eCR viewer.
Use updated FHIR-Converter which preserves the contents of <text> nodes as _innerText and return this for the div of a composition instead of trying to rebuild the html from the jsonified parsed xml (which doesn't preserve order).
Allow more formats to be handled by formatTablesToJSON to account for the examples we have
Instead of looking for specific plan of treatment headers and table values, take all headers which have table data and present them to the user with the column names that were provided in the eCR
Related Issue
Fixes #2746
Additional Information
Because we've changed how the eCR is parsed, in cases where a composition ID wasn't present in the text file, the composition ID (which is used as the primary key in our db) will change
I've stabilized how this is generated so in the future it won't be sensitive to parsing changes
Screenshots:
Checklist
[ ] If this code affects the other scrum team, have they been notified? (In Slack, as reviewers, etc.)
PULL REQUEST
Summary
Allow for more treatment plan data to be displayed in the eCR viewer.
<text>
nodes as_innerText
and return this for thediv
of a composition instead of trying to rebuild the html from the jsonified parsed xml (which doesn't preserve order).formatTablesToJSON
to account for the examples we haveRelated Issue
Fixes #2746
Additional Information
Screenshots:
Checklist