wokket / rust-hl7

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

Parse components and subcomponents from Field #10

Closed sempervictus closed 3 years ago

sempervictus commented 3 years ago

Implement functional sub-field parsers for the component and subcomopnent delimeters to produce vectors of &str's via value accessor and subdivider functions copmonents and subcomponents; both of which take a &Separators argument for MSH-appropriate dissection.

Testing: Added tests for both functions - passing

wokket commented 3 years ago

I think we'll prob end up having to change this given your other PR, but I'm happy enough with this as a baby step, lgtm 👍