hl7apy
hl7apy copied to clipboard
Enhanced .validate()
While using hl7api, we had 2 different needs:
- 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. - 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]