<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 74: Add option to enocde all present but empty segments</title><link>https://sourceforge.net/p/hl7api/feature-requests/74/</link><description>Recent changes to 74: Add option to enocde all present but empty segments</description><atom:link href="https://sourceforge.net/p/hl7api/feature-requests/74/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 28 Jan 2013 18:08:11 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/hl7api/feature-requests/74/feed.rss" rel="self" type="application/rss+xml"/><item><title>Add option to enocde all present but empty segments</title><link>https://sourceforge.net/p/hl7api/feature-requests/74/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;A message can have a segment present but empty, like if I parse a message that has a segment "ZPD|||". Calling Message.printStructure() shows the segment as "ZPD".&lt;/p&gt;
&lt;p&gt;Given such a message, I see no easy way to make a Parser automatically encode such segments. They are just stripped from the encoded form by default. I know I could use ParserConfiguration.addForcedEncode() to force encoding certain segments, but I am using HAPI to just pass through messages after doing some transformation so I actually have no idea what optional/non-standard segments may be present in the message.&lt;/p&gt;
&lt;p&gt;So I am writing to request an option to encode present but empty segments. Thanks in advance.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">DiGiT</dc:creator><pubDate>Mon, 28 Jan 2013 18:08:11 -0000</pubDate><guid>https://sourceforge.net88695e28070c6c690d90fbf9df21ea34154a2ab8</guid></item></channel></rss>