hl7apy icon indicating copy to clipboard operation
hl7apy copied to clipboard

Enhanced .validate()

Open massimiliano-della-rovere opened this issue 8 months ago • 0 comments

While using hl7api, we had 2 different needs:

  1. the report_file parameter of .validate() need to support also file-like object (io.StringIO/io.BytesIO in our case) that are not necessarily filesystem files.
  2. Cases where we needed a full report of warnings and errors returned by the function, instead of raising just the 1st error.

So we modified .validate() adding the above mentioned backward-compatible error-handling and -reporting enhancements.

Co-authored-by: Massimiliano della Rovere [email protected] Co-authored-by: Jorge García Roca [email protected]