Conversion of .rtf documents to HL7 (Not embed)
Hi everyone,
Does anyone have any experience / examples of converting an .rtf file into an HL7 message (ORU^R01). My example is a histology report which is placed on a server to pick up and then convert if possible for downstream systems who receive HL7.
Struggling to find any sort of examples or even whether its feasible at this stage - there are certainly better knowledged people on here than me so thought id ask.
With thanks
Warren
Comments
You may try an external RTF parser to run your conversion using CPIPE or $ZF(-100-)
and then consume the result.
1 Example of many others in Google: striprtf (py)
Once you move to a version supporting Embedded Python you can run it even internal
Use LibreOffice to convert rtf to txt.
Thanks for your replies Robert and Eduard.
I have walked through the LibreOffice Method that you have written Eduard and im getting an error message as follows in terminal - any ideas what i need to look at?
set sc = ##class(Converter.LibreOffice).convert("C:\Temp\HN.rtf","C:\Temp\HN.txt","txt") write sc
0 @>