Need to truncate a segment #6270
-
I am trying to truncate the AL1.5.1 segment to only allow 250 characters to be sent. Once it's truncated I need to add some text to direct users to the patient's record for the complete value. I have tried everything I can think of to set this up but nothing I set up is reflected in my transformed message. Does anyone know I can accomplish this. Below is a test message showing >250 characters in the AL1.5.1 segment. I am also including the Javascript code I have so far. Copy of AL1 segment (this is test data): Copy of current code: // Initialize variables // Access the raw message // Extract the AL1 segments // Process each AL1 segment // Replace old AL1 segments with new ones // Update the raw message with the modified content |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Please use code formatting and highlighting here. Please read https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks. Fix your post please. |
Beta Was this translation helpful? Give feedback.
-
Thank you, thank you everyone for your input. I have played with your suggestions and was able to get it to work properly. I sincerely appreciate your input. |
Beta Was this translation helpful? Give feedback.
This can be shortened up of course.