wokket / rust-hl7

Learning rust by playing with a HL7 parser. Use for real at your own risk!
18 stars 8 forks source link

Move MshSegment out to examples/demo.rs #37

Closed sempervictus closed 3 years ago

sempervictus commented 3 years ago

Strongly-typed message header segment does not conform with generic segment semantics, nor does it serve a specific purpose in the lib.

Remove the MshSegment struct and implementations from the main library sources, place into the demo example to show conversion semantics and accessor mechanism.

sempervictus commented 3 years ago

You'll need #36 for the demo binary to actually run correctly as the query string used on line 122 is missing the repeat element (#36 addresses that exact issue).

sempervictus commented 3 years ago

Why does rebasing cause this? Rebased up to the first commit in the branch and now its showing conflicts