I am mapping from HL7 2.4 to bespoke JSON format, with standard delimiter of comma for field. Everything works fine except for one thing. The customer has asked for the address fields to be concatenated into a single field, with the separate subfields delimited by commas, e.g., “Flat 1 Somewhere Apt, Main Street, London N2 3JJ”.
Problem is that when the parser hits the comma in the concatenated string, it sees it as the field delimiter, so all that maps across is “Flat 1 Somewhere Apt”. I’ve tried a standard escape character, e.g., “\,”, and tried placing double quotes around the whole string.
Has anyone faced and dealt with this type of scenario in Cloverleaf?