Changeset 636 for FOIAVistA/tag/r/AUTOMATED_LAB_INSTRUMENTS-LA
- Timestamp:
- Dec 4, 2009, 8:26:01 PM (15 years ago)
- Location:
- FOIAVistA/tag/r
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
FOIAVistA/tag/r/AUTOMATED_LAB_INSTRUMENTS-LA/LA7QRY2.m
r628 r636 1 LA7QRY2 ;DALOI/JMC - Lab HL7 Query Utility ; 12/10/03 10:39am2 ;;5.2;AUTOMATED LAB INSTRUMENTS;**46,69 **;Sep 27, 19941 LA7QRY2 ;DALOI/JMC - Lab HL7 Query Utility ;1/30/07 19:05 2 ;;5.2;AUTOMATED LAB INSTRUMENTS;**46,69,73**;Sep 27, 1994;Build 7 3 3 ; 4 4 Q … … 9 9 ; 10 10 S (DFN,LRDFN)="",LA7PTYP=0 11 ; VOE changes, Use HRN cross reference, Daou;;June 8,2005 12 S LA7X=$O(^AUPNPAT("D",LA7PTID,"")) 13 I LA7X>0 D SETDFN(LA7X) S LA7PTYP=1 11 14 ; 12 ; SSN passed as patient identifier 13 I LA7PTID?9N.1A D 14 . S LA7PTYP=1 15 . S LA7X=$O(^DPT("SSN",LA7PTID,0)) 16 . I LA7X>0 D SETDFN(LA7X) 15 ; See if SSN passed as patient identifier 16 I DFN'>0 S LA7X=$O(^DPT("SSN",LA7PTID,0)) I LA7X>0 D SETDFN(LA7X) S LA7PTYP=1 17 17 ; 18 18 ; MPI/ICN (integration control number) passed as patient identifier 19 I LA7PTID?10N1"V"6N D 20 . S LA7PTYP=2 21 . S LA7X=$$GETDFN^MPIF001($P(LA7PTID,"V")) 22 . I LA7X>0 D SETDFN(LA7X) 19 I DFN'>0 S LA7X=$$GETDFN^MPIF001($P(LA7PTID,"V")) I LA7X>0 D SETDFN(LA7X) S LA7PTYP=2 23 20 ; 24 21 ; If no patient identified/no laboratory record - return exception message -
FOIAVistA/tag/r/AUTOMATED_LAB_INSTRUMENTS-LA/LA7VORM1.m
r628 r636 1 LA7VORM1 ;DALOI/DLR - LAB ORM (Order) message builder ; 12-12-96 2 ;;5.2;AUTOMATED LAB INSTRUMENTS;**27,51,46,61,64**;Sep 27, 1994 1 LA7VORM1 ;DALOI/DLR - LAB ORM (Order) message builder ;1/27/07 12:25 2 ;;5.2;AUTOMATED LAB INSTRUMENTS;**27,51,46,61,64,73**;Sep 27, 1994;Build 7 3 ; Modified from FOIA VISTA, 4 ; Copyright (C) 2007 WorldVistA 5 ; 6 ; This program is free software; you can redistribute it and/or modify 7 ; it under the terms of the GNU General Public License as published by 8 ; the Free Software Foundation; either version 2 of the License, or 9 ; (at your option) any later version. 10 ; 11 ; This program is distributed in the hope that it will be useful, 12 ; but WITHOUT ANY WARRANTY; without even the implied warranty of 13 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 ; GNU General Public License for more details. 15 ; 16 ; You should have received a copy of the GNU General Public License 17 ; along with this program; if not, write to the Free Software 18 ; Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 3 19 ; 4 20 BUILD(LA7628) ; … … 6 22 ; 7 23 N LA7101,LA762801,LA7629,LA7NVAF,LA7PIDSN,LA7X,ECNT,GBL,SHP,SHPC,SITE,ORUID,NTST 24 N LDATE,LDATE2 8 25 ; 9 26 I $G(LA7628)<1!('$D(^LAHM(62.8,+$G(LA7628),0))) D Q … … 11 28 . D EXIT 12 29 ; 30 S LDATE2=$P(^LAHM(62.8,LA7628,0),"-",2) 31 S LDATE=($E(LDATE2,1,4)-1700)_$E(LDATE2,5,8) 13 32 S GBL="^TMP(""HLS"","_$J_")",ECNT=1 14 33 S LA7628(0)=$G(^LAHM(62.8,LA7628,0)) … … 64 83 S (LRDFN,LRI,LA7PIDSN)=0 65 84 F S LRDFN=$O(^TMP("LA7628",$J,LRDFN)) Q:'LRDFN D Q:$G(HL) 66 . N LA7PID,LA7PV1 85 . N LA7PID,LA7PV1,ORNUM 67 86 . I LA7SMSG=1 D STARTMSG Q:$G(HL) 68 . I LA7SMSG<2 D PID,PV1 87 . I LA7SMSG<2 D PID,PV1,IN1^LA7VORM4 69 88 . S LA7UID="" 70 89 . F S LA7UID=$O(^TMP("LA7628",$J,LRDFN,LA7UID)) Q:LA7UID="" D 71 . . N LA76802,LA7ORC,X 90 . . N LA76802,LA7ORC,X,ORCCHK,DGCHK 91 . . S ORCCHK="",DGCHK="" 72 92 . . S X=$Q(^LRO(68,"C",LA7UID)) 73 93 . . I $QS(X,3)'=LA7UID Q … … 76 96 . . S I=$O(^LRO(68,LRAA,1,LRAD,1,LRAN,5,0)) 77 97 . . S LA76802(5)=$G(^LRO(68,LRAA,1,LRAD,1,LRAN,5,I,0)) 78 . . I LA7SMSG=2 D STARTMSG Q:$G(HL) D PID,PV1 98 . . ;check for VOE before inserting insurance 99 . . I DUZ("AG")="E",LA7SMSG=2 D STARTMSG Q:$G(HL) D PID,PV1,IN1^LA7VORM4 100 . . I DUZ("AG")'="E",LA7SMSG=2 D STARTMSG Q:$G(HL) D PID,PV1 79 101 . . S (LA7OBRSN,LA762801)=0 80 102 . . F S LA762801=$O(^TMP("LA7628",$J,LRDFN,LA7UID,LA762801)) Q:'LA762801 D … … 82 104 . . . F I=0,.1,1,2,5 S LA762801(I)=$G(^LAHM(62.8,LA7628,10,LA762801,I)) 83 105 . . . I $$CHKTST^LA7SMU(LA7628,LA762801)'=0 Q ;deleted accession 84 . . . D ORC,OBR^LA7VORM3,OBX^LA7VORM3 106 . . . ; check for VOE to prepare for Diagnosis codes. 107 . . . I DUZ("AG")="E" D ; check for VOE 108 . . . . S ITEMNUM=0 109 . . . . F S ITEMNUM=ITEMNUM+1 Q:ITEMNUM>$P(^LRO(69,LDATE,1,0),"^",4) D 110 . . . . . I LRDFN=$P(^LRO(69,LDATE,1,ITEMNUM,0),"^") S ORNUM=$P(^LRO(69,LDATE,1,ITEMNUM,0),"^",11) 111 . . . . I ORCCHK'=1 D ORC S ORCCHK=1 112 . . . . D OBR^LA7VORM3,OBX^LA7VORM3 113 . . . E D ; not VOE 114 . . . . D ORC,OBR^LA7VORM3,OBX^LA7VORM3 115 . . ; check for VOE before inserting Diagnosis code 116 . . I DUZ("AG")="E",DGCHK'=1 D DG1^LA7VORM4(ORNUM) S DGCHK=1 85 117 . . I LA7SMSG=2 D BLG,SENDMSG 86 118 . I LA7SMSG<2 D BLG … … 97 129 K LRAA,LRACC,LRAD,LRAN,LRDFN,LRI 98 130 K LTST,NLT,NLTIEN,PCNT,RUID,SNIEN,TIEN,X,Y,LA 131 K ORCCHK,DGCHK,LDATE,LDATE2 99 132 D KVAR^LRX 100 133 I $D(ZTQUEUED) S ZTREQ="@" … … 228 261 Q 229 262 ; 230 ;231 263 BLG ; Billing segment 232 264 ;
Note:
See TracChangeset
for help on using the changeset viewer.