Stream: implementers
Topic: Mapping v2 Unstructured Observation
Peter Bernhardt (Aug 08 2016 at 19:06):
Has anyone attempted to map a v2 ORU with unstructured data? Essentially this is a report presented as multiple OBX entries.
Peter Bernhardt (Aug 08 2016 at 19:07):
and those entries are lines of the narrative.
James Agnew (Aug 08 2016 at 19:18):
I did this as a POC at one point... fwiw if you're in Java HAPI-v2 has a method getValueAsHtml
on the string datatypes. You need to manually join all of the repetitions with a \.br\
but HAPI-v2 will then handle converting all of the v2 formatting codes into HTML
Peter Bernhardt (Aug 08 2016 at 19:37):
Thanks, James. Unfortunately not using your awesome API (we're a .NET shop) and we'll be parsing out the v2 message like this. Did you store as Observation resource? If so, how did you code it?
James Agnew (Aug 08 2016 at 19:42):
Heh- well, if by chance you want to try and port the formatting conversion code: http://hl7api.sourceforge.net/base/apidocs/src-html/ca/uhn/hl7v2/model/primitive/FormattedTextEncoder.html
Yup, stored as observation resource. In our case OBR-4
had a code we chould use for Observation.code
.
Peter Bernhardt (Aug 08 2016 at 19:45):
We get nuttin' useful.
Peter Bernhardt (Aug 08 2016 at 19:46):
thanks for link to the encoder
Last updated: Apr 12 2022 at 19:14 UTC