Transaction sets
Transaction sets are made up of segments and loops. A segment contains a unit of information, for example, a line item or a patient record.
Each segment begins with a unique initiator that distinguishes it from all other segments. A segment also has a terminator that tells when the segment ends.
A loop is a repeating pattern of segments and other loops.