0.0
No commit activity in last 3 years
No release in over 3 years
Ruby library for HL7 2.x
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

ruby-hl7

R7::Message

Parse hl7 (2 < v < 3) message as segments tree

Example:

class TestMessage < R7::Message
   #define message structure
   define_message do
     msh
     pid
     pv1? { pv2? }
     orc {
       obrs { obxs { ntes? } }
     }
   end
 end

msg = TestMessage.parse "MSH|||||\rPID||||||\rORC||||||\rOBR|||||\rORX|code^val||\rORX|||\rOBR||||\rORX|||\rORX||||\r\n"
#access message tree
msg.orc.obrs.first.orx[1,2] #=> 'val'