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/RAHLO3.m

    r628 r636  
    11RAHLO3 ;HIRMFO/GJC-Process data set from the bridge program ;11/18/97  12:13
    2  ;;5.0;Radiology/Nuclear Medicine;**4,81,84**;Mar 16, 1998;Build 13
    3  ;
    4  ;Integration Agreements
    5  ;-----------------------
    6  ;$$GET1^DIQ(2056); $$DT^XLFDT(10103)
    7  ;
     2 ;;5.0;Radiology/Nuclear Medicine;**4,81**;Mar 16, 1998;Build 12
    83RPTSTAT ; Determine the status to set this report to.
    94 K RARPTSTS S:$D(RAESIG) RARPTSTS="V" Q:$D(RARPTSTS)
    105 ; $D(RAESIG)=0 now figure out report status
    11  N RASTAT S RASTAT=$E($G(^TMP("RARPT-REC",$J,RASUB,"RASTAT")))
     6 S RASTAT=$E($G(^TMP("RARPT-REC",$J,RASUB,"RASTAT")))
    127 I RASTAT="A" S RARPTSTS="V" Q
    138 I RASTAT]"",("FR"[RASTAT) D
    149 . S:RASTAT="F" RARPTSTS="V" Q:$D(RARPTSTS)
    15  . I $G(RATELE) S RARPTSTS="R" Q  ;Always allow 'Released/Unverified' reports for teleradiology
    1610 . ; do we allow 'Released/Unverified' reports for this location?
    1711 . S RARPTSTS=$S($P($G(^RA(79.1,RAMLC,0)),"^",17)="Y":"R",1:"D")
     
    2115 ; if still no status, default to draft
    2216 S:'$D(RARPTSTS) RARPTSTS="D"
     17 K RASTAT
    2318 Q
    2419TEXT(X) ; Check if the Impression Text and the Report Text contain
     
    4742 ; If 'No' to any of the above questions, kill RAESIG & set the variable
    4843 ; RAERR to the appropriate error message.
    49  I '$D(^VA(200,"ARC","R",+$G(RAVERF))),('$D(^VA(200,"ARC","S",+$G(RAVERF)))),'$G(RATELE) D  Q
     44 I '$D(^VA(200,"ARC","R",+$G(RAVERF))),('$D(^VA(200,"ARC","S",+$G(RAVERF)))) D  Q
    5045 . ; neither a resident or staff
    5146 . K RAESIG S RAERR="Provider not classified as resident or staff."
    5247 . Q
    53  I $D(^VA(200,"ARC","R",+$G(RAVERF))),('$P(RAMDV,"^",18)),'$G(RATELE) D  Q
     48 I $D(^VA(200,"ARC","R",+$G(RAVERF))),('$P(RAMDV,"^",18)) D  Q
    5449 . ; residents can't verify reports linked to this division
    5550 . K RAESIG S RAERR="Residents are not permitted to verify reports."
    5651 . Q
    57  I '$D(^XUSEC("RA VERIFY",+$G(RAVERF))),'$G(RATELE) D  Q
     52 I '$D(^XUSEC("RA VERIFY",+$G(RAVERF))) D  Q
    5853 . ; verifier MUST have the RA VERIFY key.
    5954 . K RAESIG S RAERR="Provider does not meet security requirements to verify report."
    6055 . Q
    61  I '$G(RATELE),$P($G(^VA(200,+$G(RAVERF),"RA")),"^",3),($P(^("RA"),"^",3)'>$$DT^XLFDT()) D
     56 I $P($G(^VA(200,+$G(RAVERF),"RA")),"^",3),($P(^("RA"),"^",3)'>$$DT^XLFDT()) D
    6257 . ; Rad/Nuc Med user has been inactivated.
    6358 . K RAESIG S RAERR="Inactive Rad/Nuc Med Classification for Interpreting Physician."
    6459 . Q
    65  I '$G(RATELE),'$S('$D(^VA(200,+$G(RAVERF),"RA")):1,$P(^("RA"),"^")'="Y":1,1:0) D
     60 I '$S('$D(^VA(200,+$G(RAVERF),"RA")):1,$P(^("RA"),"^")'="Y":1,1:0) D
    6661 . K RAESIG S RAERR="Staff review required to verify report."
    6762 . Q
     
    9489 . I RAVCNT=1,('$D(RAVIEN(RAVCNT))#2) S RAVIEN(RAVCNT)=RAVIEN
    9590 . Q
    96  I RAVCNT=0 S RAERR="Invalid Provider Name: "_RAVERF Q  ; partial match not found
    97  I RAVCNT>1 S RAERR="Non-Unique Provider Name: "_RAVERF Q  ; >1 partial match
    98  ;S RAVERF=$G(RAVIEN(1)) S:'RAVERF RAERR="Provider Name Entry Error"
    99  S:'$G(RAVIEN(1)) RAERR="Provider Name Entry Error: "_RAVERF S RAVERF=$G(RAVIEN(1))
     91 I RAVCNT=0 S RAERR="Invalid Provider Name" Q  ; partial match not found
     92 I RAVCNT>1 S RAERR="Non-Unique Provider Name" Q  ; >1 partial match
     93 S RAVERF=$G(RAVIEN(1)) S:'RAVERF RAERR="Provider Name Entry Error"
    10094 Q
    10195ESIG ; Added for COTS E-Sig capability
Note: See TracChangeset for help on using the changeset viewer.