ex_l7 v0.2.0 ExL7.Segment

Structure and Helper functions for a HL7 (ExL7.Message) segment.

Summary

Functions

Returns the ID of the segment, such as MSH, PID, and PV1

Returns an ExL7.Segment from a given list of strings

Returns a HL7 segment string from a single ExL7.Segment

Functions

get_id(segment)

Returns the ID of the segment, such as MSH, PID, and PV1.

Parameters

  • segment: An ExL7.Segment.
parse(segment_string, control_characters)

Returns an ExL7.Segment from a given list of strings.

Parameters

  • segment_string: String that represents an HL7 segment.
  • control_characters: ExL7.ControlCharacters used to parse fields, components, and sub components.
to_string(segment, control_characters)

Returns a HL7 segment string from a single ExL7.Segment.

Parameters

  • segment: An ExL7.Segment.
  • control_characters: ExL7.ControlCharacters used to join fields, components, and sub components.