Depending on how your console functions, I'd have expected something more
like:
PID|||123456||Doe^Johnstem||||200701011539||ADT^A01^ADT A01||||123
But at any rate, try adding this before the println:
encodedMessage = encodedMessage.replaceAll("\r", "\n");
Jeremy Huiskamp | karoshealth
Software Engineer
7 Father David Bauer Drive, Suite 201
Waterloo, ON, N2L 0A2, Canada
www.karoshealth.com
On 12 April 2016 at 19:45, moparisthebest <ad...@moparisthebest.com> wrote:
> Hello,
>
> I'm new to HAPI and HL7 in general, and I tried this example exactly:
>
>
> http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/CreateAMessage.html
>
> With these maven dependencies:
>
> <dependency>
> <groupId>ca.uhn.hapi</groupId>
> <artifactId>hapi-base</artifactId>
> <version>2.2</version>
> </dependency>
> <dependency>
> <groupId>ca.uhn.hapi</groupId>
> <artifactId>hapi-structures-v24</artifactId>
> <version>2.2</version>
> </dependency>
>
> And though the example says it should print:
>
> MSH|^~\&|TestSendingSystem||||200701011539||ADT^A01^ADT A01||||123
> PID|||123456||Doe^John
>
> What it *actually* prints is only:
>
> PID|||123456||Doe^John
>
> What do I need to do to get it to print the entire message?
>
> I am using java version "1.8.0_74" amd64 on a Linux machine, if that
> matters.
>
> Thanks much!
>
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications
> Manager
> Applications Manager provides deep performance insights into multiple
> tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Hl7api-devel mailing list
> Hl7api-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel