Thanks Thomas,
I've applied this and committed it. Looks great!
Cheers,
James
On Wed, Aug 8, 2012 at 12:06 PM, Thomas Robinson wrote:
> On mine they are placed in the action listeners for the radio buttons and
> the caret update (to handle the XML highlighter).
> Here is what I have for the bu
Hi Eugene,
The easiest way is to use the specific message structure for the message
type you are trying to create. For example, to create an ADT^A01 message
you could follow the instructions here:
http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/CreateAMessage.html
Cheers,
James
On Mon,
Hi Derek,
I don't believe that EncodedMessageComparator does, but you could always
null it out in both the expected and actual message before you compare.
Alternately, Hl7V2MessageCompare has a method "setFieldsToIgnore()" which
lets you put in one or more terser paths to ignore. So you could do
Does EncodedMessageComparator.equivalent() ignore the time stamp in the
message header?
http://hl7api.sourceforge.net/base/apidocs/ca/uhn/hl7v2/util/EncodedMessageComparator.html#equivalent(java.lang.String,
java.lang.String)
Derek
On Wed, Aug 8, 2012 at 3:31 PM, christian ohr wrote:
>
> ... o
... or there's ca.uhn.hl7v2.util.EncodedMessageComparator, which provides a
couple of methods that help standardizing and comparing messages.
cheers
Christian
rahul somasunderam-2 wrote:
>
> I wrote up a method using LightHL7Lib:
>
> public void assertMessagesEqual(Hl7Record expected, Hl7R
Hi Derek,
One other option is to use the Hl7V2MessageCompare class from the
hapi-testpanel subproject. This should probably get moved to the main HAPI
library at some point, so it's a bit annoying to import for now, but it's
certainly very robust. We use it internally at UHN quite a bit.
You can
I wrote up a method using LightHL7Lib:
public void assertMessagesEqual(Hl7Record expected, Hl7Record actual) {
List headers = expected.listSegments();
headers.addAll(actual.listSegments());
assertEquals(expected.listSegments(), actual.listSegments());
Set segments = new TreeSet(h
On mine they are placed in the action listeners for the radio buttons and
the caret update (to handle the XML highlighter).
Here is what I have for the buttons.
myRdbtnEr7.addActionListener(new ActionListener() {
> public void actionPerformed(ActionEvent theE) {
>
Is comparing the string representation of a HAPI message the only way to
compare messages? We noticed that HAPI messages don't redefine method
equals(), so comparisons using JUnit assertions or Mockito verify() calls
must use Object.equals() which compares object identity, not contents. Are
there
Hi Thomas,
Thanks for the code, sounds useful!
I'd love to incorporate this, but where do these two methods get called? If
it's easier, you could just attach a diff to an email, and I'll apply it.
Cheers,
James
On Tue, Aug 7, 2012 at 2:30 PM, Thomas Robinson wrote:
> Hello again,
>
> I was wor
10 matches
Mail list logo