Forum Replies Created
-
AuthorReplies
-
Hi Jim!
I should have known that you and that gorgeous car would show up! I’m using version 20.1, and MSH.7 is formatted 20221209091927 – Year/month/day/time. Thank you so much for your time!
Yes, it’s an outbound thread with protocol:file. I’d like to put date/time in the file being created.
Thank you all for your input, I truly appreciate it! My final solution, after thinking it through, was to put the values in a table, and kill or send based on the values being present in the table. This allows room for growth as well.
My goal here is to send only clinic screening, and clinic ultrasound, suppressing all other messages.
Thank you, Paul, that’ll work!
That was perfect, thank you!
First and foremost, A HUGE thank you to Jim Kosloskey for the screen sharing session to point out where I went wrong, and taking the time to make sure I understood the groove he was laying down!
The best thing I learned yesterday was that understanding your data completely will reduce mistakes (and frustration).
Solution: I didn’t realize that my schema was double nested. Instead of
1(0).1(0).3(0).0(%g1).OBX(0).#3(0).[4]
I needed
1(0).1(%g2).3(0).0(%g1).OBX(0).#3(0).[4]
HL7 Editor is your friend, know your data!
Thanks, Jim, email incoming…
I stated that wrong. I’m coping OBX.3.1 to OBX.3.4
That worked perfectly, thank you!
I’ve never used TCL translate, but that looks like a good solution. How do I get the PID.3.1 value into the code, then into the PID segment again?
Thanks all, I appreciate the input!
Another question might be, can I pull the first digit directly out of 0(0).PID(0).#18(0) by adding (0)(0) ?
Thanks Rob! Is there a way to use a numeric variable? My problem is that Cloverleaf 6.0 won’t let me do a substring search of PID.18. I’m guessing because it’s numeric.
If I
copy 0(0).PID(0).#13(0).[5] to @AC
then copy 0(0).PID(0).#13(0).[6] to @AD then
Concat: =(
@AC
=)
@ADI get (601)551XXXX – redacted number
so I know the segment is correct. However, as soon as I try to
xlateStrSubstring 0 2 with an input of @AD and output to @AE it fails.
All I can conclude is that we have a failure trying to substring a numeric value. I even tried putting @null in both @AE and @AF to make sure it had a value. The message still fails to send. Unfortunately, my testing tool is acting up and I’m unable to echo out values.
Thoughts?
-
AuthorReplies