<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 74: Add option to enocde all present but empty segments</title><link href="https://sourceforge.net/p/hl7api/feature-requests/74/" rel="alternate"/><link href="https://sourceforge.net/p/hl7api/feature-requests/74/feed.atom" rel="self"/><id>https://sourceforge.net/p/hl7api/feature-requests/74/</id><updated>2013-01-28T18:08:11.519000Z</updated><subtitle>Recent changes to 74: Add option to enocde all present but empty segments</subtitle><entry><title>Add option to enocde all present but empty segments</title><link href="https://sourceforge.net/p/hl7api/feature-requests/74/" rel="alternate"/><published>2013-01-28T18:08:11.519000Z</published><updated>2013-01-28T18:08:11.519000Z</updated><author><name>DiGiT</name><uri>https://sourceforge.net/u/digit48/</uri></author><id>https://sourceforge.net88695e28070c6c690d90fbf9df21ea34154a2ab8</id><summary type="html">&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;</summary></entry></feed>