HL7.Segment.replace_part

You're seeing just the function replace_part, go back to HL7.Segment module for more information.
Link to this function

replace_part(segment, transform, field, repetition \\ nil, component \\ nil, subcomponent \\ nil)

View Source

Specs

replace_part(
  segment_hl7(),
  fragment_hl7() | (fragment_hl7() -> fragment_hl7()),
  pos_integer(),
  pos_integer() | nil,
  pos_integer() | nil,
  pos_integer() | nil
) :: segment_hl7()

Updates content within a parsed HL7 segment, returning a modified segment whose data has been transformed at the given indices (starting at 1 as with HL7's convention). The transform can be either a string, list or fn old_data -> new_data.