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

`HL7.Segment.get_part` has wrong typing #39

Open adkron opened 7 months ago

adkron commented 7 months ago

The typing has pos_integer, but in reality we allow 0 for the field.

Since HL7 is 1 based I don't know if we should change the code to be 1 based or if the typing should be updated.