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

removing components/subcomponents of a field #35

Closed adkron closed 1 year ago

adkron commented 1 year ago
    hl7
    |> HL7.Query.replace_parts("MSH-9.3", nil)
    |> HL7.Query.to_message()

Is valid and removed the part, but the types don't line up and there is no test. I think this is valid and we should document the support.

Since the types don't line up if people are using dialyzer they get warnings.

adkron commented 1 year ago

Actually doing this breaks HL7.Message.to_string.