Ignore:
Timestamp:
Dec 4, 2009, 8:26:01 PM (14 years ago)
Author:
George Lilly
Message:

WorldVistAEHR overlayed on FOIAVistA

Location:
FOIAVistA/tag/r
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • FOIAVistA/tag/r/RADIOLOGY_NUCLEAR_MEDICINE-RA/RAHLO.m

    r628 r636  
    11RAHLO ;HIRMFO/GJC-Process data set from the bridge program ;11/18/97  12:13
    2  ;;5.0;Radiology/Nuclear Medicine;**4,8,27,55,66,84**;Mar 16, 1998;Build 13
     2 ;;5.0;Radiology/Nuclear Medicine;**4,8,27,55,66**;Mar 16, 1998
    33 ; 09/07/2005 Remedy call 108405 - KAM Allow Radiology to accept dx codes from Talk Technology
    4  ;
    5  ;Integration Agreements
    6  ;----------------------
    7  ;DT^DILF(2054); LOCK^DILF(2054); DEM^VADPT(10061); $$DT^XLFDT(10103)
    8  ;
    94EN1 ; Check the validity of the following data globals:
    105 ; Example: '^TMP("RARPT-REC",$J,RASUB,' where RASUB is a
     
    5954 D DT^DILF("ET",RADATE,.RAVLDT)
    6055 S:RAVLDT=-1 RAERR="Invalid report date" Q:$D(RAERR)
    61  K VA,VADM,VAERR S DFN=RADFN D DEM^VADPT
    62  I VADM(1)']"" S RAERR="Unknown Internal patient identifier" K VA,VADM,VAERR Q
    63  I RASSN'=$P(VADM(2),"^") S RAERR="Internal patient identifier and SSN don't match" K VA,VADM,VAERR Q
     56 K VA,VADM,VAERR S DFN=RADFN D DEM^VADPT I VADM(1)']""!(RASSN'=$P(VADM(2),"^")) S RAERR="Internal patient identifier and SSN don't match" K VA,VADM,VAERR Q
    6457 I '$D(^RADPT(RADFN,"DT",RADTI,"P",RACNI,0))!(RALONGCN']"") D  Q
    6558 . S RAERR="Invalid Exam Date and/or Case Number"
     
    7972 ; check resident and staff
    8073 N X1,X2,X3 S X2=0,X3=""
    81  I '$G(RATELE),+$G(^TMP("RARPT-REC",$J,RASUB,"RARESIDENT"))!(+$G(^("RASTAFF"))) D  Q:$G(RAERR)]""
     74 I +$G(^TMP("RARPT-REC",$J,RASUB,"RARESIDENT"))!(+$G(^("RASTAFF"))) D  Q:$G(RAERR)]""
    8275 . S X1=+$G(^TMP("RARPT-REC",$J,RASUB,"RARESIDENT"))
    8376 . I X1 D
    84  .. I '$D(^VA(200,"ARC","R",X1)),'$D(^VA(200,"ARC","S",X1)) S X2=1
     77 .. I '$D(^VA(200,"ARC","R",X1)) S X2=1
    8578 .. I $P($G(^VA(200,X1,"RA")),"^",3),$P(^("RA"),"^",3)'>$$DT^XLFDT S X2=X2+2
    86  .. I X2=1 S X3=$E($P($G(^VA(200,X1,0)),"^"),1,20)_" is not class'd as Resident or Staff"
     79 .. I X2=1 S X3=$E($P($G(^VA(200,X1,0)),"^"),1,20)_" is not class'd as resident"
    8780 .. I X2=2 S X3=$P($G(^VA(200,X1,0)),"^")_"'s INACTIVE DATE is past"
    8881 .. I X2=3 S X3=$P($G(^VA(200,X1,0)),"^")_" is not class'd as resident and past INACTIVE DATE"
     
    9891 . Q
    9992 ; raesig is in alphanumeric format, so shouldn't use $g of it here
    100  I ($G(RAESIG)]"")!($G(RAVERF)) D:'$G(RATELE) VERCHK^RAHLO3 ; check if provider can verify report
     93 I ($G(RAESIG)]"")!($G(RAVERF)) D VERCHK^RAHLO3 ; check if provider can verify report
    10194 ; if verifier fails checks,
    10295 ;   quit only if vendor is non-kurzweil,
     
    10699 K RASECDX ;clear secondary dx array because RAHLO2 may not be called
    107100 ; 09/07/2005 108405 KAM- Removed ('$D(RADENDUM)#2) from next line
    108  I $G(RATELE),'$D(RADENDUM),'$D(^TMP("RARPT-REC",$J,RASUB,"RADX")) D  ;Patch 84
    109  .I RASTAT="R" S:$D(RATELEDR) ^TMP("RARPT-REC",$J,RASUB,"RADX",1)=RATELEDR Q
    110  .S:$D(RATELEDF) ^TMP("RARPT-REC",$J,RASUB,"RADX",1)=RATELEDF
    111101 D:$D(^TMP("RARPT-REC",$J,RASUB,"RADX")) DIAG^RAHLO2 Q:$D(RAERR)  ; DX code check took out - &('$D(RADENDUM)#2)
    112102 ; edit sec Dx codes if they exist for non-addendums
     
    119109 . S:'B RAERR=$$ERR^RAHLO2(A)
    120110 . Q
    121  I $G(RATELE),$G(RARPT) D  Q:$D(RAERR)  ;PATCH 84
    122  .I $D(^RARPT(RARPT,0)) D LOCK^DILF($NA(^RARPT(RARPT))) E  S RAERR="Report: "_$P($G(^RARPT(RARPT,0)),"^")_" Locked on VISTA site" Q
    123  .L -^RARPT(RARPT)
    124  I $G(RATELE),$L($G(RATELEPI)),RATELEPI'?10N S RAERR="Incorrect Teleradiologist's NPI: "_RATELEPI Q
    125111 D RPTSTAT^RAHLO3 ; determine the status of the report
    126112 D FILE^RAHLO1:'$D(RAERR)
Note: See TracChangeset for help on using the changeset viewer.