DOCTOR'S ORDERS (1010)    OE/RR PRINT FORMATS (100.23)

Name Value
NAME DOCTOR'S ORDERS
ROWS 4
ORDER TEXT LENGTH 33
FIELDS
  • ORDER TEXT
    ROW:   1
    COLUMN:   22
    CAPTION (Optional):   NONE
    FORMAT:   33
  • ELECTRONIC SIGNATURE TITLE
    ROW:   2
    COLUMN:   60
    CAPTION (Optional):   NONE
  • START DATE
    ROW:   2
    COLUMN:   21
    FORMAT:   MM/DD/CCYY HR:MIN
    SUPPRESS CAPTION:   YES
  • LAB URGENCY
    ROW:   4
    COLUMN:   35
    SUPPRESS CAPTION:   YES
  • CONSULT URGENCY
    ROW:   4
    COLUMN:   36
    SUPPRESS CAPTION:   YES
  • STATUS OF ORDER
    ROW:   1
    COLUMN:   19
    CAPTION (Optional):   NONE
  • ORDER DATE
    ROW:   1
    COLUMN:   1
    CAPTION (Optional):   NONE
    FORMAT:   MM/DD/CCYY HR:MIN
  • ELECTRONIC SIGNATURE NAME
    ROW:   1
    COLUMN:   60
    CAPTION (Optional):   NONE
COMPILED CODE
W ?0,"",$$DATE^ORU($G(ORPODT),"MM/DD/CCYY HR:MIN")
K X,ORPODT,ORPSTAT,OROOT,ORPES,ORPSTRT,ORPDOT,ORPURG,ORPCURG
W ?18,"",$G(ORPSTAT)
W ?21,"",$$TMPWRAP^ORU($G(OROOT),"33")
W ?59,"",$G(ORPES)
W !?20,$S($L($G(ORPSTRT)):"Start: ",1:""),$$DATE^ORU($G(ORPSTRT),"MM/DD/CCYY HR:MIN")
W ?59,"",$G(ORPDOT)
W !
W !?34,$S($L($G(ORPURG)):"Urgency: ",1:""),$G(ORPURG)
W ?35,$S($L($G(ORPCURG)):"URG: ",1:""),$G(ORPCURG)
SILENT CODE
S:'$D(@ORHOOT@(GCNT,0)) @ORHOOT@(GCNT,0)=""
S:'$D(@ORHOOT@(GCNT,0)) @ORHOOT@(GCNT,0)=""
S X=$$S^ORU4(59,.CCNT,""_$G(ORPES),.CCNT)
I $D(@ORHOOT@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