Changeset 636 for FOIAVistA/tag/r/RADIOLOGY_NUCLEAR_MEDICINE-RA/RAHLO3.m
- Timestamp:
- Dec 4, 2009, 8:26:01 PM (14 years ago)
- Location:
- FOIAVistA/tag/r
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
FOIAVistA/tag/r/RADIOLOGY_NUCLEAR_MEDICINE-RA/RAHLO3.m
r628 r636 1 1 RAHLO3 ;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 8 3 RPTSTAT ; Determine the status to set this report to. 9 4 K RARPTSTS S:$D(RAESIG) RARPTSTS="V" Q:$D(RARPTSTS) 10 5 ; $D(RAESIG)=0 now figure out report status 11 N RASTATS RASTAT=$E($G(^TMP("RARPT-REC",$J,RASUB,"RASTAT")))6 S RASTAT=$E($G(^TMP("RARPT-REC",$J,RASUB,"RASTAT"))) 12 7 I RASTAT="A" S RARPTSTS="V" Q 13 8 I RASTAT]"",("FR"[RASTAT) D 14 9 . S:RASTAT="F" RARPTSTS="V" Q:$D(RARPTSTS) 15 . I $G(RATELE) S RARPTSTS="R" Q ;Always allow 'Released/Unverified' reports for teleradiology16 10 . ; do we allow 'Released/Unverified' reports for this location? 17 11 . S RARPTSTS=$S($P($G(^RA(79.1,RAMLC,0)),"^",17)="Y":"R",1:"D") … … 21 15 ; if still no status, default to draft 22 16 S:'$D(RARPTSTS) RARPTSTS="D" 17 K RASTAT 23 18 Q 24 19 TEXT(X) ; Check if the Impression Text and the Report Text contain … … 47 42 ; If 'No' to any of the above questions, kill RAESIG & set the variable 48 43 ; 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 Q44 I '$D(^VA(200,"ARC","R",+$G(RAVERF))),('$D(^VA(200,"ARC","S",+$G(RAVERF)))) D Q 50 45 . ; neither a resident or staff 51 46 . K RAESIG S RAERR="Provider not classified as resident or staff." 52 47 . Q 53 I $D(^VA(200,"ARC","R",+$G(RAVERF))),('$P(RAMDV,"^",18)) ,'$G(RATELE)D Q48 I $D(^VA(200,"ARC","R",+$G(RAVERF))),('$P(RAMDV,"^",18)) D Q 54 49 . ; residents can't verify reports linked to this division 55 50 . K RAESIG S RAERR="Residents are not permitted to verify reports." 56 51 . Q 57 I '$D(^XUSEC("RA VERIFY",+$G(RAVERF))) ,'$G(RATELE)D Q52 I '$D(^XUSEC("RA VERIFY",+$G(RAVERF))) D Q 58 53 . ; verifier MUST have the RA VERIFY key. 59 54 . K RAESIG S RAERR="Provider does not meet security requirements to verify report." 60 55 . Q 61 I '$G(RATELE),$P($G(^VA(200,+$G(RAVERF),"RA")),"^",3),($P(^("RA"),"^",3)'>$$DT^XLFDT()) D56 I $P($G(^VA(200,+$G(RAVERF),"RA")),"^",3),($P(^("RA"),"^",3)'>$$DT^XLFDT()) D 62 57 . ; Rad/Nuc Med user has been inactivated. 63 58 . K RAESIG S RAERR="Inactive Rad/Nuc Med Classification for Interpreting Physician." 64 59 . Q 65 I '$ G(RATELE),'$S('$D(^VA(200,+$G(RAVERF),"RA")):1,$P(^("RA"),"^")'="Y":1,1:0) D60 I '$S('$D(^VA(200,+$G(RAVERF),"RA")):1,$P(^("RA"),"^")'="Y":1,1:0) D 66 61 . K RAESIG S RAERR="Staff review required to verify report." 67 62 . Q … … 94 89 . I RAVCNT=1,('$D(RAVIEN(RAVCNT))#2) S RAVIEN(RAVCNT)=RAVIEN 95 90 . 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" 100 94 Q 101 95 ESIG ; Added for COTS E-Sig capability
Note:
See TracChangeset
for help on using the changeset viewer.