Hi Ronald,

I'm not sure I understand the motivation for handling them specially.
Nulls (as opposed to empty fields) are to indicate that corresponding
data should be deleted from the receiving application. This is
supported -- if a field contains "\"\"" then the application should
delete data -- but it isn't HAPI's business to enforce this, so I
don't understand why special treatment is needed.

Can you explain further? E.g. what makes it difficult to check that
something is null, and what validation errors are you getting?

Bryan

On 8/31/07, Life is hard, and then you die <[EMAIL PROTECTED]> wrote:
>
> We're trying to handle hl7 update messages, and these may contain hl7
> null's (""). HAPI does not currently seem to handle them specially,
> which leads to various problems, such as validation failures and
> making it somewhat torturous to detect these nulls.
>
> I've been trying to figure out what the best approach for handling
> nulls would be, and came up with the following: add two methods to
> Type, 'boolean isNull()' and 'void setNull(boolean)'. The parsers
> would set the null-flag appropriately, and the encoders and verifier
> would simiarly check the flag; setting the flag on instances that are
> part of another composite type (as opposed to part of the segment
> directly) would have no effect.
>
> I've done a quick implmentation of this and it works reasonably well.
> But I wanted to gather feedback on the approach before submitting a
> patch. Is there a better alternative? What have others done? Have I
> missed something?
>
> TIA.
>
>
>  Cheers,
>
>  Ronald
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Hl7api-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Hl7api-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hl7api-devel

Reply via email to