DDBRT ;SFISC/DCL-BROWSER TEST ROUTINE ;NOV 04, 1996@13:55
;;22.2;VA FileMan;;Jan 05, 2016;Build 42
;;Per VA Directive 6402, this routine should not be modified.
;;Submitted to OSEHRA 5 January 2015 by the VISTA Expertise Network.
;;Based on Medsphere Systems Corporation's MSC FileMan 1051.
;;Licensed under the terms of the Apache License, Version 2.0.
;
Q
TEST() ;TEST IF CRT CAN USE BROWSER;USER MUST GO THRU ZU OR XUP FIRST
Q:$G(IOST(0)) $$GET(+IOST(0))
Q:$G(IOS) $$GET($$GET1^DIQ(3.5,+IOS,"SUBTYPE","I"))
Q:$G(^XUTL("XQ",$J,"IOST(0)")) $$GET(+^("IOST(0)"))
Q:$G(^XUTL("XQ",$J,"IOS")) $$GET($$GET1^DIQ(3.5,+^("IOS"),"SUBTYPE","I"))
Q 0
GET(DDBRTIEN) ;
I $$GET1^DIQ(3.2,DDBRTIEN,"SET TOP & BOTTOM MARGINS")="" Q 0
I $$GET1^DIQ(3.2,DDBRTIEN,"REVERSE INDEX")="" Q 0
Q 1
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HDDBRT 804 printed Dec 13, 2024@02:41:55 Page 2
DDBRT ;SFISC/DCL-BROWSER TEST ROUTINE ;NOV 04, 1996@13:55
+1 ;;22.2;VA FileMan;;Jan 05, 2016;Build 42
+2 ;;Per VA Directive 6402, this routine should not be modified.
+3 ;;Submitted to OSEHRA 5 January 2015 by the VISTA Expertise Network.
+4 ;;Based on Medsphere Systems Corporation's MSC FileMan 1051.
+5 ;;Licensed under the terms of the Apache License, Version 2.0.
+6 ;
+7 QUIT
TEST() ;TEST IF CRT CAN USE BROWSER;USER MUST GO THRU ZU OR XUP FIRST
+1 if $GET(IOST(0))
QUIT $$GET(+IOST(0))
+2 if $GET(IOS)
QUIT $$GET($$GET1^DIQ(3.5,+IOS,"SUBTYPE","I"))
+3 if $GET(^XUTL("XQ",$JOB,"IOST(0)"))
QUIT $$GET(+^("IOST(0)"))
+4 if $GET(^XUTL("XQ",$JOB,"IOS"))
QUIT $$GET($$GET1^DIQ(3.5,+^("IOS"),"SUBTYPE","I"))
+5 QUIT 0
GET(DDBRTIEN) ;
+1 IF $$GET1^DIQ(3.2,DDBRTIEN,"SET TOP & BOTTOM MARGINS")=""
QUIT 0
+2 IF $$GET1^DIQ(3.2,DDBRTIEN,"REVERSE INDEX")=""
QUIT 0
+3 QUIT 1