COMPILED CODE |
W ?0,$S($L($G(ORPSTRT)):"Start Date: ",1:""),$$DATE^ORU($G(ORPSTRT),"MM/DD/CCYY")
W !
W !
K X,ORPSTRT,ORPNAME,OROOT,ORPSSN,ORPDOB,ORPAGE,ORPRMBED,ORPRPHY,ORPLOC
W ?40,"",$$NAME^ORU($G(ORPNAME),"LAST,FIRST MI")
W !?0,$S($L($G(OROOT)):"",1:""),$$TMPWRAP^ORU($G(OROOT),"38")
W ?40,"",$$SSN^ORU($G(ORPSSN),"")
W ?54,"",$$DOB^ORU($G(ORPDOB),"")
W ?65,"",$$AGE^ORU($G(ORPAGE),"")
W !?57,"",$G(ORPRMBED)
W !?0,$S($L($G(ORPRPHY)):"PHY: ",1:""),$$NAME^ORU($G(ORPRPHY),"")
W ?57,"",$G(ORPLOC)
|
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(40,.CCNT,""_$$SSN^ORU4($G(ORPSSN),"",.ORHOOT,40,.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(54,.CCNT,""_$$DOB^ORU4($G(ORPDOB),"",.ORHOOT,54,.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(65,.CCNT,""_$$AGE^ORU4($G(ORPAGE),"",.ORHOOT,65,.GCNT,.CCNT),.CCNT)
I $D(@ORHOOT@(GCNT,0)),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