COMPILED CODE |
W ?0,"",$G(ORPLINE)
W ?44,"","| D O C T O R ' S O R D E R S"
W !?44,"","|"
W !?2,"",$G(ORPMAN)
W ?44,"","| VA FORM 10-1158"
W !?44,"","|__________________________________"
K X,ORPLINE,ORPNAME,ORPSSN,ORPLOC,ORPDT,ORPRMBED,ORPMAN
W !?44,"","|"
W !?1,"",$$NAME^ORU($G(ORPNAME),"LAST, FIRST MI")
W ?28,"",$$SSN^ORU($G(ORPSSN),"")
W ?44,"","| MEDICAL RECORD"
W !?3,"Loc: ",$G(ORPLOC)
W ?27,"Date: ",$$DATE^ORU($G(ORPDT),"MM/DD/CCYY")
W ?44,"","|"
W !?3,"Room/Bed:",$G(ORPRMBED)
|
SILENT CODE |
S:'$D(@ORHOOT@(GCNT,0)) @ORHOOT@(GCNT,0)=""
S X=$$S^ORU4(1,.CCNT,""_$$NAME^ORU4($G(ORPNAME),"LAST, FIRST MI",.ORHOOT,1,.GCNT,.CCNT),.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(28,.CCNT,""_$$SSN^ORU4($G(ORPSSN),"",.ORHOOT,28,.GCNT,.CCNT),.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(44,.CCNT,""_"| MEDICAL RECORD",.CCNT)
I $D(@ORHOOT@(GCNT,0)),$D(X) S @ORHOOT@(GCNT,0)=@ORHOOT@(GCNT,0)_X
D LN^ORU4
S:'$D(@ORHOOT@(GCNT,0)) @ORHOOT@(GCNT,0)=""
S X=$$S^ORU4(0,.CCNT,""_$G(ORPLINE),.CCNT)
S X=$$S^ORU4(3,.CCNT,"Loc: "_$G(ORPLOC),.CCNT)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T@(GCNT,0)),$D(X) S @ORHOOT@(GCNT,0)=@ORHOOT@(GCNT,0)_X
S:'$D(@ORHOOT@(GCNT,0)) @ORHOOT@(GCNT,0)=""
S X=$$S^ORU4(44,.CCNT,""_"| VA FORM 10-1158",.CCNT)
I $D(@ORHOOT@(GCNT,0)),$D(X) S @ORHOOT@(GCNT,0)=@ORHOOT@(GCNT,0)_X
D LN^ORU4
S:'$D(@ORHOOT@(GCNT,0)) @ORHOOT@(GCNT,0)=""
S X=$$S^ORU4(44,.CCNT,""_"|__________________________________",.CCNT)
I $D(@ORHOOT@(GCNT,0)),$D(X) S @ORHOOT@(GCNT,0)=@ORHOOT@(GCNT,0)_X
S:'$D(@ORHOOT@(GCNT,0)) @ORHOOT@(GCNT,0)=""
K X,ORPLINE,ORPNAME,ORPSSN,ORPLOC,ORPDT,ORPRMBED,ORPMAN
S X=$$S^ORU4(44,.CCNT,""_"|",.CCNT)
I $D(@ORHOOT@(GCNT,0)),$D(X) S @ORHOOT@(GCNT,0)=@ORHOOT@(GCNT,0)_X
D LN^ORU4
S:'$D(@ORHOOT@(GCNT,0)) @ORHOOT@(GCNT,0)=""
|