Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: ORY61

ORY61.m

Go to the documentation of this file.
ORY61 ; SLC/MKB - Postinit for patch OR*3*61 ;7/16/99  15:31
 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**61**;Dec 17, 1997
 ;
EN ; -- set Index field in Lab dialog
 ;
 N DLG,PRMT,PTR,DA
 S DLG=$O(^ORD(101.41,"AB","LR OTHER LAB TESTS",0)) Q:'DLG
 S ^ORD(101.41,DLG,3)="D GETIMES^ORCDLR1 S ORMAX=$$GET^XPAR(""LOC.`""_+$G(ORL),""LR MAX DAYS CONTINUOUS"",1,""Q"")"
 S ^ORD(101.41,DLG,3.1)="D GETIMES^ORCDLR1 S ORMAX=$S($G(ORL):$$GET^XPAR(""LOC.`""_+ORL,""LR MAX DAYS CONTINUOUS"",1,""Q""),1:0)"
 F PRMT="COLLECTION SAMPLE","SPECIMEN" D
 . S PTR=+$O(^ORD(101.41,"AB","OR GTX "_PRMT,0)) Q:'PTR
 . S DA=$O(^ORD(101.41,DLG,10,"D",PTR,0)) Q:'DA
 . S $P(^ORD(101.41,DLG,10,DA,0),U,10)="B;D" S:PRMT="SPECIMEN" ^(4)="I $L($P(^(0),U,5))"
 Q