Strange TIU Error

71 views
Skip to first unread message

Ilan Volow

unread,
Jun 22, 2015, 4:08:46 PM6/22/15
to hard...@googlegroups.com
I'm trying to make use of VistA's TIU HL7 capabilities, and after a day or two of debugging the messages I'm sending and checking and rechecking the TIUHL7 Message Manager, I've gotten it down to only one error displayed in the message manager

ERR^TXA^9^^0000.00~SSN [000000029] lookup failed for AUTHOR/DICTATOR.

The relevant M code that returns this error is located in VitaA-M/TIUFLF2.m 

. I '+$G(TIU("AUDA")),+$G(TIU("AUSSN")) S TIU("AUDA")=+$$FIND1^DIC(200,"","X",+$G(TIU("AUSSN")),"SSN") I '+TIU("AUDA") D ERR^TIUHL7U1("TXA",9,"0000.00","SSN ["_TIU("AUSSN")_"] lookup failed for AUTHOR/DICTATOR.") Q


I've made sure to pass in the SSN of the test doctor who is currently already in the database at all the relevant points the TIHUL7 guide specified. Is there some other reason why a lookup for the doctor via SSN would fail for TIU?

Here's the test HL7 message I was sending if that would help provide some context

MSH^~|\&^TIUHL7 EX SENDING APP^AREA51 ^TIUHL7^DISNEYLAND^20040621104503-0500^^MDM~T02^500167399^P^2.4^^^AL^AL^US
EVN^T01^20060105180000
PID^^^000000113~~~USSSA&&0363~SS|000000113~~~USSSA~SS~VA FACILITY NAME&500&L|000000113~~~USSSA&&0363~SS~VA FACILITY NAME&500&^^Carter~David~Jr~~L
PV1^^^^^000000113~~~USSSA~~VA facility&facility number&L~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^20041101062220.000-0400^20041128062220.000-0400^^^^^^^^
TXA^^CN^TEXT^^000000029~Alexander~Robert~Jr~~~~~USSSA~L~~~SS~facility&facility number&L^20041128062220.000-0400^20041128062220.000-0400^^000000029~Alexander~Robert~Jr~~~~~USSSA~L~~~SS~facility&facility number&L^000000029~Alexander~Robert~Jr~~~~~USSSA~L~~~SS~facility&facility number&L^^^123456789~~~USVHA~~VA facility&facility number&L~~^^^CRISIS NOTE^PA^U^AV^A
OBX^1^TX^^^Patient, Veterans Aloysius has been supported by the Home Telehealth Program.|The following information was submitted by the veteran through their Home Telehealth system.|- 28 sessions with the Congestive Heart Failure DIALOG | -28 sessions with the Chronic Pain DIALOG| - 28 BLOOD GLUCOSE observations | - 28 BLOOD PRESSURE observations |- 28 PAIN observations | - 28 PULSE observations | - 28 PULSE OXIMETRY observations | - 28 TEMPERATURE observations | - 28 WEIGHT observations

Steven McPhelan

unread,
Jun 22, 2015, 8:15:46 PM6/22/15
to hardhats
We got several issues here:

1. The snippet of code that you referenced does not exist in TIUFLF2 in the 6/2/2015 FOIA version.  However, it does exist at CONTINUE+15^TIUHL7P2

2. You lookup is failing because TIU at this point ASSUMES that SSN is a valid M number.  000000029 is not a valid SSN.  Notice that the code pluses the SSN value presumably to strip off the P possibly.  This is odd in that the VA standard for test SSNs is to start the SSN with 000 or 00000.  So +"000000029" = 29 and 29 does not exist in the SSN cross reference.

3. Technically I guess you can say it is a TIU error versus being a Fileman issue.  The TIU program is "incorrectly" calling Fileman and Fileman is failing.  The file 200 input transform requires that X?9N and does not require that X=+X.

Instead of modify the TIU routine you can change the SSN to 666000029 and it should work.  The last time I checked 666xxxxxx is an invalid SSN as is most (not all) of 7xxxxxxxx, 8xxxxxxxx, 9xxxxxxxx

Steve

Sam Habiel

unread,
Jun 23, 2015, 2:12:41 AM6/23/15
to hard...@googlegroups.com
The + on the SSN is absolutely a bug. My own SSN starts with a zero. 
--
--
http://groups.google.com/group/Hardhats
To unsubscribe, send email to Hardhats+u...@googlegroups.com

---
You received this message because you are subscribed to the Google Groups "Hardhats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hardhats+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Sam Habiel, Pharm.D.
VISTA Expertise Network

Ilan Volow

unread,
Jun 23, 2015, 1:37:54 PM6/23/15
to hard...@googlegroups.com
I took your suggestions, changing the test doctor's SSN to 666000029 and replacing  000000029 with 666000029 in the HL7 message. After following these instructions, the HL7 message didn't seem to be processed; the entry for the modified message only had a timestamp and a message status  of "Unknown". 

When I selected the "unknown" message and try to run the "Reprocess Message" command, my SSH terminal closes and I'm kicked off my VistA connection. 

Running ^XTER listed the following error:


$ZE= DIV4+5^XUSER, Quit does not return to an extrinsic function: argument not a
llowed,150374450,-%GTM-E-NOTEXTRINSIC
Last Global Ref: ^VA(200,52,2,2957)
 Q %1

Is this another possible (or the same) TIU bug?

Christopher Edwards

unread,
Jun 23, 2015, 1:44:39 PM6/23/15
to hard...@googlegroups.com
quick fix:

export gtm_zquit_anyway=true in your enviornment scripts.

This is due to an extrinsic function being called with a Do command. This environment variable causes gtm to return with a value if called as an extrinsic function or not return a value if called as a subroutine.


Christopher Edwards
cje...@gmail.com

--

Sam Habiel

unread,
Jun 23, 2015, 2:00:26 PM6/23/15
to hardhats
Change the Q %1 to Q:$Q %1 Q.
> --
> --
> http://groups.google.com/group/Hardhats
> To unsubscribe, send email to Hardhats+u...@googlegroups.com
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Hardhats" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to hardhats+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



Steven McPhelan

unread,
Jun 23, 2015, 5:05:24 PM6/23/15
to hardhats
Correction on the SSN. 000xxxxxx is a fake SSN.  Real SSNs can start with a 0.  Sam yours is the first I had ever seen that started with a 0 (that I remember).

Steve

Bhaskar, K.S

unread,
Jun 23, 2015, 5:09:20 PM6/23/15
to hard...@googlegroups.com
There should be a lot of them - SSNs issued in New York and New England can start with 0 - see http://stevemorse.org/ssn/ssn.html

Regards
-- Bhaskar


On 06/23/2015 05:05 PM, Steven McPhelan wrote:
Correction on the SSN. 000xxxxxx is a fake SSN.  Real SSNs can start with a 0.  Sam yours is the first I had ever seen that started with a 0 (that I remember).

Steve
--
--
http://groups.google.com/group/Hardhats
To unsubscribe, send email to Hardhats+u...@googlegroups.com

---
You received this message because you are subscribed to the Google Groups "Hardhats" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hardhats+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
GT.M - Rock solid. Lightning fast. Secure. Pick any three.
_____________
The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.

Chris Richardson

unread,
Jun 23, 2015, 6:16:17 PM6/23/15
to hard...@googlegroups.com
Bhaskar;

   Sorry to hijack this thread, but I found it rather bothersome to run ^%RSE and get tons of negative results printed when the the large population of routines to look for something obscure.  I have modified it to eliminate these negative routines.  The search of 27,000 routines to look for a single string that only happened in less than 20 routines.  So the report was a page and a half compared to 450 pages of negative information.  We could put in a switch on this, but for now, this is a lot more useful.  I offer this as a modification to to your wonderful utility.  Thanks for the GTM offering and I think you suggested that version 6.3 of GTM was coming out soon??  When will it be available??  Thanks for the GTM internals class.  It was well worth it.

    Best wishes;   Chris Richardson
_RCE.m

Bhaskar, K.S

unread,
Jun 23, 2015, 6:25:52 PM6/23/15
to hard...@googlegroups.com
Chris --

Thank you for the kind words.

Thanks for the _RCE.m.  Before we can consider accepting your changes, would you please state that you make no claim of copyright to your changes?  There is an entire alternative licensing path we can go through (because GT.M is released under a proprietary license on proprietary UNIX systems, and a FOSS license on Linux), but I'd rather not, if you're willing to make no claim of copyright.  Also, can you take a stab at describing from a user's point of view what the changes were that you made, rather than having us reverse engineer your intentions from the code changes?

I didn't say anything about any GT.M V6.3.  I did say that V6.2-002 was about to be released.  It has been released now.  However, I'd suggest waiting for V6.2-002A which is V6.2-002 plus a fix for a bug that probably doesn't affect VistA - but might.

Regards
-- Bhaskar

Chris Richardson

unread,
Jun 25, 2015, 8:58:40 PM6/25/15
to hard...@googlegroups.com
Bhaskar;

   I would like to make such a statement of no claim on this simple change.  This is just part of my support of the community.  Is this sufficient to your needs?  GTM is a real joy to work with and anything I can do to help them along (in my humble capabilities).  If there is more you need, Bhaskar, please let me know.  I sent it to the members of the list in expectation that this was a pervasive problem and I am happy to help improve the community.  It would be nice to have a little acclamation comment of my contribution in the routine, but this is not a show stopper, nice, but not necessary.  We could start an active community feed-back that allows the further enhancement of the tool in GTM.  BTW, here is a routine utility that helps to submit Linux Commands and capture the output to an array in GTM.  XVCMND.m allows this communication with Linux and capture to an array.  I make no claims on this code as well.  Please use it in good health.

      Chris Richardson 
XVCMND.m

Bhaskar, K.S

unread,
Jun 26, 2015, 7:58:19 AM6/26/15
to hard...@googlegroups.com
Thank you very much, Chris.

I think there needs to be a place for community authored utility programs, and complete applications, without attempting to put everything into GT.M itself.  We can put it in Source Forge either under a new project, or under the worldvista project (which was intended to be community contritions to WorldVistA).

However… if you feel up to it, I have a suggestion.  If we were doing it all over again today, fifteen years after we released GT.M as FOSS, we would seriously consider Github.  Why not start your own Github page, and put XVCMND there (along with other code that you have written that is potentially useful to the community)?

Regards
-- Bhaskar
Reply all
Reply to author
Forward
0 new messages