wokket/rust-hl7

Move MSH out of library into Example

wokket opened this issue · 4 comments

The MSH impl is largely stolen from the other library, is complicating seg handling, triggering clippy warning about wildly varying enum sizes etc.

Move the MSH Segment out to an exmaple of how to use the library to build strongly-typed segments as a consuming app, and simplify the core library.

I think that makes sense - being a "primitives toolbox" it seems a bit specialized to have in there, and really no different than what i'm doing for Into SQL models in my project (domain-specific data mapping). I left an issue in the other project, if its needed, a bridging-conversion lib might be the best way to handle inter-op of the two without polluting either.

The only other issue in that project is from me two years ago asking if it was still active ¯_(ツ)_/¯

Let's get MSH out of the library and into an example app and see how it cleans up. Would you mind having a crack at that as you have all the real world experience 👍

I think we can close this one now, right?