...
Code Block | ||
---|---|---|
| ||
function HL7Normalize(Msg) local Result = Msg -- Get the | delimiter local D= Msg:sub(4,4) Result:gsub(D, "|") -- Repeat for the other 4 delimeters return Result end |
Solve a one off uncommon problems with a one off simple solutions - see separation of concerns.
In Iguana X the normalization can be done in a ‘neuron’ to handle this special edge case.