COMPILED CODE |
W ?38,"",$$NAME^ORU($G(ORPNAME),"")
W !?0,"",$G(ORPURG)
W ?38,"","Specimen Label: "
W !?0,"Test: ",$$TMPWRAP^ORU($G(OROOT2),"70")
W !?0,"","**LAB SLIP** BRING TO LAB"
W !
W !
W !
K X,ORPNAME,ORPCB,ORPSSN,ORPLB,ORPRMBED,ORPLOC,ORPRPHY,ORPSTRT,ORPURG,OROOT2
W !?0,"",$G(ORPCB)
W ?38,"",$$SSN^ORU($G(ORPSSN),"")
W ?51,"LB #",$G(ORPLB)
W !
W !?57,"",$G(ORPRMBED)
W ?59,"",$G(ORPLOC)
W !?0,"PHY: ",$$NAME^ORU($G(ORPRPHY),"")
W !?0,"Start Date: ",$$DATE^ORU($G(ORPSTRT),"")
|
SILENT CODE |
S:'$D(@ORHOOT@(GCNT,0)) @ORHOOT@(GCNT,0)=""
I $D(@ORHOOT@(GCNT,0)),$D(X) S @ORHOOT@(GCNT,0)=@ORHOOT@(GCNT,0)_X
S:'$D(@ORHOOT@(GCNT,0)) @ORHOOT@(GCNT,0)=""
S X=$$S^ORU4(51,.CCNT,"LB #"_$G(ORPLB),.CCNT)
I $D(@ORHOOT@(GCNT,0)),$D(X) S @ORHOOT@(GCNT,0)=@ORHOOT@(GCNT,0)_X
D LN^ORU4
D LN^ORU4
S:'$D(@ORHOOT@(GCNT,0)) @ORHOOT@(GCNT,0)=""
S X=$$S^ORU4(57,.CCNT,""_$G(ORPRMBED),.CCNT)
I $D(@ORHOOT@(GCNT,0)),$D(X) S @ORHOOT@(GCNT,0)=@ORHOOT@(GCNT,0)_X
S:'$D(@ORHOOT@(GCNT,0)) @ORHOOT@(GCNT,0)=""
S X=$$S^ORU4(38,.CCNT,""_$$NAME^ORU4($G(ORPNAME),"",.ORHOOT,38,.GCNT,.CCNT),.CCNT)
S X=$$S^ORU4(59,.CCNT,""_$G(ORPLOC),.CCNT)
I $D(@ORHOOT@(GCNT,0)),$D(X) S @ORHOOT@(GCNT,0)=@ORHOOT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