IN1 insurance segment?

262 views
Skip to first unread message

Derick Bailey

unread,
Mar 10, 2011, 11:15:40 AM3/10/11
to ruby-hl7
I need an IN1 insurance segment. there isn't one in the current
version of Ruby-HL7 so I'm going to add one, myself. Is there an easy
way for me to do this within my project? or do I need to fork the hl7
project, add the segment, and create a custom build/gem for this?

-derick

kofno

unread,
Mar 10, 2011, 11:30:22 AM3/10/11
to ruby-hl7
Someone will correct me if I'm wrong, but I think that, as long as
your segment

1) is a subclass of HL7::Message::Segment

2) is defined in the segment namespace (for example,
HL7::Message::Segment::IN1)

then you should be able to define the segment withing your project w/
out forking the gem.

There are plenty of examples of extending Segment in
https://github.com/ruby-hl7/ruby-hl7/tree/master/lib/segments

Derick Bailey

unread,
Mar 10, 2011, 11:32:02 AM3/10/11
to ruby...@googlegroups.com
i assumed / was hoping this was the case, and started heading down this path already. i'll let you know if it works. :)

  -derick

Derick Bailey

unread,
Mar 10, 2011, 12:00:53 PM3/10/11
to ruby...@googlegroups.com
FYI - that does work. i created a new segment in the same namespace, used the same configuration as an existing segment and it produced what i expected.

thanks,

  -derick

Reply all
Reply to author
Forward
0 new messages