Formating a String

0
Hi,        I'm having a string       MSH|^~\&|AAA|abc|ABC|abc|20171007064156||ORM^ORM^ORM_001|100||2.5.1|||NE||||ABC|A01|20161007064148|||||||||| I need to split the above string using pipe(|) as sepertors. Is there any way to split the above string
asked
2 answers
2

Hi,

You could either do it in a java action or do it manually in a  microflow by using a combination of find and substring see - https://docs.mendix.com/refguide/string-function-calls

-Andrej

 

answered
0

You should probably use a proper HL7v2 library (which I am guessing is the EDIFACT dialect you are trying to parse here) and not try to build your own.

https://hapifhir.github.io/hapi-hl7v2/ comes to mind but I am sure there are others as well.

answered