HCA-Healthcare / elixir-hl7

An Elixir library for working with HL7 v2.x healthcare data
Apache License 2.0
110 stars 22 forks source link

Add HL7 struct storing HL7 data as nested maps #27

Closed DarkMarmot closed 7 months ago

DarkMarmot commented 1 year ago

This now has an HL7 module to generate map data from HL7 text to store in an HL7 struct. It also includes functions to query these maps using a ~p sigil (an HL7 path). This adopts standards and structures that are incompatible with HL7.Query. My goal here is to eventually replicate the functionality found with these maps. In the interim, you can move between the two as the data structures are compact but lossless in round robins between this and HL7.Message.

adkron commented 8 months ago

As a thought, should we do ~hl{PID-19}. Often there is a lowercase version, and then the upper adds some interpolation or something like that.

I also like when I don't have to use the shift key. 😉

DarkMarmot commented 8 months ago

As a thought, should we do ~hl{PID-19}. Often there is a lowercase version, and then the upper adds some interpolation or something like that.

I also like when I don't have to use the shift key. 😉

I would vastly prefer not shifting as well, but I think multichar sigils only support uppercase right now?