- ORY28004 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*280) ;MAR 3,2010 at 07:20
- ;;3.0;ORDER ENTRY/RESULTS REPORTING;**280**;Dec 17,1997;Build 85
- ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
- ;
- S ;
- ;
- D DOT^ORY280ES
- ;
- ;
- K REMOTE,LOCAL,OPCODE,REF
- F LINE=1:1:500 S TEXT=$P($T(DATA+LINE),";",2,999) Q:TEXT I $L(TEXT) D Q:QUIT
- .S ^TMP("OCXRULE",$J,$O(^TMP("OCXRULE",$J,"A"),-1)+1)=TEXT
- ;
- G ^ORY28005
- ;
- Q
- ;
- DATA ;
- ;
- ;;D^ ; ; By taking the Years, Months, Days, Hours and Minutes converting
- ;;R^"860.8:",1,3
- ;;D^ ; ; Them into Seconds and then adding them all together into one big integer
- ;;R^"860.8:",100,1
- ;;D^ ;DT2INT(OCXDT) ; This Local Extrinsic Function converts a date into an integer
- ;;R^"860.8:",100,2
- ;;D^ ; ; By taking the Years, Months, Days, Hours and Minutes converting
- ;;R^"860.8:",100,3
- ;;D^ ; ; Them into Seconds and then adding them all together into one big integer
- ;;R^"860.8:",100,4
- ;;D^ ; ;
- ;;R^"860.8:",100,5
- ;;D^ ; Q:'$L($G(OCXDT)) ""
- ;;R^"860.8:",100,6
- ;;D^ ; N OCXDIFF,OCXVAL S (OCXDIFF,OCXVAL)=0
- ;;R^"860.8:",100,7
- ;;D^ ; ;
- ;;R^"860.8:",100,8
- ;;D^ ; I $L(OCXDT),'OCXDT,(OCXDT[" at ") D ; EXTERNAL EXPERT SYSTEM FORMAT 1 TO EXTERNAL FORMAT
- ;;R^"860.8:",100,9
- ;;D^ ; .N OCXHR,OCXMIN,OCXTIME
- ;;R^"860.8:",100,10
- ;;D^ ; .S OCXTIME=$P($P(OCXDT," at ",2),".",1),OCXHR=$P(OCXTIME,":",1),OCXMIN=$P(OCXTIME,":",2)
- ;;R^"860.8:",100,11
- ;;D^ ; .S:(OCXDT["Midnight") OCXHR=00
- ;;R^"860.8:",100,12
- ;;D^ ; .S:(OCXDT["PM") OCXHR=OCXHR+12
- ;;R^"860.8:",100,13
- ;;D^ ; .S OCXDT=$P(OCXDT," at ")_"@"_$E(OCXHR+100,2,3)_$E(OCXMIN+100,2,3)
- ;;R^"860.8:",100,14
- ;;D^ ; ;
- ;;R^"860.8:",100,15
- ;;D^ ; I $L(OCXDT),(OCXDT?1.2N1"/"1.2N.1" ".2N.1":".2N) D ; EXTERNAL EXPERT SYSTEM FORMAT 2 TO EXTERNAL FORMAT
- ;;R^"860.8:",100,16
- ;;D^ ; .N OCXMON
- ;;R^"860.8:",100,17
- ;;D^ ; .S OCXMON=$P("January^February^March^April^May^June^July^August^September^October^November^December",U,$P(OCXDT,"/",1))
- ;;R^"860.8:",100,18
- ;;D^ ; .I $L($P(OCXDT," ",2)) S OCXDT=OCXMON_" "_$P($P(OCXDT," ",1),"/",2)_"@"_$TR($P(OCXDT," ",2),":","")
- ;;R^"860.8:",100,19
- ;;D^ ; .E S OCXDT=OCXMON_" "_$P($P(OCXDT," ",1),"/",2)
- ;;R^"860.8:",100,20
- ;;D^ ; ;
- ;;R^"860.8:",100,21
- ;;D^ ; I $L(OCXDT),(OCXDT?1.2N1"/"1.2N1"/"1.2N.1" ".2N.1":".2N) D ; EXTERNAL EXPERT SYSTEM FORMAT 3 TO EXTERNAL FORMAT
- ;;R^"860.8:",100,22
- ;;D^ ; .N OCXMON
- ;;R^"860.8:",100,23
- ;;D^ ; .S OCXMON=$P("January^February^March^April^May^June^July^August^September^October^November^December",U,$P(OCXDT,"/",1))
- ;;R^"860.8:",100,24
- ;;D^ ; .I $L($P(OCXDT," ",2)) S OCXDT=OCXMON_" "_$P($P(OCXDT," ",1),"/",2)_","_$P($P(OCXDT," ",1),"/",3)_"@"_$TR($P(OCXDT," ",2),":","")
- ;;R^"860.8:",100,25
- ;;D^ ; .E S OCXDT=OCXMON_" "_$P($P(OCXDT," ",1),"/",2)_", "_$P($P(OCXDT," ",1),"/",3)
- ;;R^"860.8:",100,26
- ;;D^ ; ;
- ;;R^"860.8:",100,27
- ;;D^ ; I $L(OCXDT),'OCXDT D ; EXTERNAL FORMAT TO INTERNAL FILEMAN FORMAT
- ;;R^"860.8:",100,28
- ;;D^ ; .I (OCXDT["@0000") S OCXDT=$P(OCXDT,"@",1),OCXDIFF=1
- ;;R^"860.8:",100,29
- ;;D^ ; .N %DT,X,Y S X=OCXDT,%DT="" S:(OCXDT["@")!(OCXDT="N") %DT="T" D ^%DT S OCXDT=+Y
- ;;R^"860.8:",100,30
- ;;D^ ; ;
- ;;R^"860.8:",100,31
- ;;D^ ; I ($L(OCXDT\1)>7) S OCXDT=$$HL7TFM^XLFDT(OCXDT) ; HL7 FORMAT TO INTERNAL FILEMAN FORMAT
- ;;R^"860.8:",100,32
- ;;D^ ; ;
- ;;R^"860.8:",100,33
- ;;D^ ; I ($L(OCXDT\1)=7) S OCXDT=$$FMTH^XLFDT(+OCXDT) ; INTERNAL FILEMAN FORMAT TO $H FORMAT
- ;;R^"860.8:",100,34
- ;;D^ ; ;
- ;;R^"860.8:",100,35
- ;;D^ ; I (OCXDT?5N1","1.5N) S OCXVAL=(OCXDT*86400)+$P(OCXDT,",",2) ; $H FORMAT TO EXPERT SYSTEM INTERNAL FORMAT
- ;;R^"860.8:",100,36
- ;;D^ ; ;
- ;;R^"860.8:",100,37
- ;;D^ ; Q OCXVAL
- ;;R^"860.8:",100,38
- ;;D^ ; ;
- ;;EOR^
- ;;KEY^860.8:^CONVERT DATE FROM OCX FORMAT TO READABLE FORMAT
- ;;R^"860.8:",.01,"E"
- ;;D^CONVERT DATE FROM OCX FORMAT TO READABLE FORMAT
- ;;R^"860.8:",.02,"E"
- ;;D^INT2DT
- ;;R^"860.8:",1,1
- ;;D^ ;INT2DT(OCXDT,OCXF) ; This Local Extrinsic Function converts an OCX internal format
- ;;R^"860.8:",1,2
- ;;D^ ; ; date into an Externl Format (Human Readable) date. 'OCXF=SHORT FORMAT OCXF=LONG FORMAT
- ;;R^"860.8:",1,3
- ;;D^ ; ;
- ;;R^"860.8:",100,1
- ;;D^ ;INT2DT(OCXDT,OCXF) ; This Local Extrinsic Function converts an OCX internal format
- ;;R^"860.8:",100,2
- ;;D^ ; ; date into an Externl Format (Human Readable) date. 'OCXF=SHORT FORMAT OCXF=LONG FORMAT
- ;;R^"860.8:",100,3
- ;;D^ ; ;
- ;;R^"860.8:",100,4
- ;;D^ ; Q:'$L($G(OCXDT)) "" S OCXF=+$G(OCXF)
- ;;R^"860.8:",100,5
- ;;D^ ; N OCXYR,OCXLPYR,OCXMON,OCXDAY,OCXHR,OCXMIN,OCXSEC,OCXCYR
- ;;R^"860.8:",100,6
- ;;D^ ; S (OCXYR,OCXLPYR,OCXMON,OCXDAY,OCXHR,OCXMIN,OCXSEC,OCXAP)=""
- ;;R^"860.8:",100,7
- ;;D^ ; S OCXSEC=$E(OCXDT#60+100,2,3),OCXDT=OCXDT\60
- ;;R^"860.8:",100,8
- ;;D^ ; S OCXMIN=$E(OCXDT#60+100,2,3),OCXDT=OCXDT\60
- ;;R^"860.8:",100,9
- ;;D^ ; S OCXHR=$E(OCXDT#24+100,2,3),OCXDT=OCXDT\24
- ;;R^"860.8:",100,10
- ;;D^ ; S OCXCYR=($H\1461)*4+1841+(($H#1461)\365)
- ;;R^"860.8:",100,11
- ;;D^ ; S OCXYR=(OCXDT\1461)*4+1841,OCXDT=OCXDT#1461
- ;;R^"860.8:",100,12
- ;;D^ ; S OCXLPYR=(OCXDT\365),OCXDT=OCXDT-(OCXLPYR*365),OCXYR=OCXYR+OCXLPYR
- ;;R^"860.8:",100,13
- ;;D^ ; S OCXCNT="031^059^090^120^151^181^212^243^273^304^334^365"
- ;;R^"860.8:",100,14
- ;;D^ ; S:(OCXLPYR=3) OCXCNT="031^060^091^121^152^182^213^244^274^305^335^366"
- ;;R^"860.8:",100,15
- ;;D^ ; F OCXMON=1:1:12 Q:(OCXDT<$P(OCXCNT,U,OCXMON))
- ;;R^"860.8:",100,16
- ;;D^ ; S OCXDAY=OCXDT-$P(OCXCNT,U,OCXMON-1)+1
- ;;R^"860.8:",100,17
- ;;D^ ; I OCXF S OCXMON=$P("January^February^March^April^May^June^July^August^September^October^November^December",U,OCXMON)
- ;;R^"860.8:",100,18
- ;;D^ ; E S OCXMON=$E(OCXMON+100,2,3)
- ;;R^"860.8:",100,19
- ;;D^ ; S OCXAP=$S('OCXHR:"Midnight",(OCXHR=12):"Noon",(OCXHR<12):"AM",1:"PM")
- ;;R^"860.8:",100,20
- ;;D^ ; I OCXF S OCXHR=OCXHR#12 S:'OCXHR OCXHR=12
- ;;R^"860.8:",100,21
- ;;D^ ; Q:'OCXF $E(OCXMON+100,2,3)_"/"_$E(OCXDAY+100,2,3)_$S((OCXCYR=OCXYR):" "_OCXHR_":"_OCXMIN,1:"/"_$E(OCXYR,3,4))
- ;;R^"860.8:",100,22
- ;;D^ ; Q:(OCXHR+OCXMIN+OCXSEC) OCXMON_" "_OCXDAY_","_OCXYR_" at "_OCXHR_":"_OCXMIN_"."_OCXSEC_" "_OCXAP
- ;;R^"860.8:",100,23
- ;;D^ ; Q OCXMON_" "_OCXDAY_","_OCXYR
- ;;R^"860.8:",100,24
- ;;D^ ; ;
- ;;EOR^
- ;;KEY^860.8:^ELAPSED ORDER CHECK TIME LOGGER
- ;;R^"860.8:",.01,"E"
- ;;D^ELAPSED ORDER CHECK TIME LOGGER
- ;;R^"860.8:",.02,"E"
- ;;D^TIMELOG
- ;;R^"860.8:",100,1
- ;;D^ ;TIMELOG(OCXMODE,OCXCALL) ; Log an entry in the Elapsed time log.
- ;;R^"860.8:",100,2
- ;;D^ ; ;
- ;;R^"860.8:",100,3
- ;;D^ ; ;
- ;;R^"860.8:",100,4
- ;;D^ ; Q 0
- ;;R^"860.8:",100,5
- ;;D^ ; ;
- ;;EOR^
- ;;KEY^860.8:^EQUALS TERM OPERATOR
- ;;R^"860.8:",.01,"E"
- ;;D^EQUALS TERM OPERATOR
- ;;R^"860.8:",.02,"E"
- ;;D^EQTERM
- ;;R^"860.8:",100,1
- ;;D^ ;EQTERM(DATA,TERM) ;
- ;;R^"860.8:",100,2
- ;;D^ ; ;
- ;;R^"860.8:",100,3
- ;;D^T+; I $G(OCXTRACE) W !,"%%%%",?20," Execution trace DATA: ",$G(DATA)," TERM: ",$G(TERM)
- ;;R^"860.8:",100,4
- ;;D^ ; N OCXF,OCXL
- ;;R^"860.8:",100,5
- ;;D^ ; ;
- ;;R^"860.8:",100,6
- ;;D^ ; S OCXL="",OCXF=$$TERMLKUP(TERM,.OCXL)
- ;;R^"860.8:",100,7
- ;;D^T-; Q:'OCXF 0
- ;;R^"860.8:",100,8
- ;;D^T+; I 'OCXF W:$G(OCXTRACE) !,"%%%%",?20," Term '",TERM,"' not in Order Check National Term File" Q 0
- ;1;
- ;
- --- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HORY28004 7436 printed Mar 13, 2025@21:45:32 Page 2
- ORY28004 ;SLC/RJS,CLA - OCX PACKAGE RULE TRANSPORT ROUTINE (Delete after Install of OR*3*280) ;MAR 3,2010 at 07:20
- +1 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**280**;Dec 17,1997;Build 85
- +2 ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
- +3 ;
- S ;
- +1 ;
- +2 DO DOT^ORY280ES
- +3 ;
- +4 ;
- +5 KILL REMOTE,LOCAL,OPCODE,REF
- +6 FOR LINE=1:1:500
- SET TEXT=$PIECE($TEXT(DATA+LINE),";",2,999)
- if TEXT
- QUIT
- IF $LENGTH(TEXT)
- Begin DoDot:1
- +7 SET ^TMP("OCXRULE",$JOB,$ORDER(^TMP("OCXRULE",$JOB,"A"),-1)+1)=TEXT
- End DoDot:1
- if QUIT
- QUIT
- +8 ;
- +9 GOTO ^ORY28005
- +10 ;
- +11 QUIT
- +12 ;
- DATA ;
- +1 ;
- +2 ;;D^ ; ; By taking the Years, Months, Days, Hours and Minutes converting
- +3 ;;R^"860.8:",1,3
- +4 ;;D^ ; ; Them into Seconds and then adding them all together into one big integer
- +5 ;;R^"860.8:",100,1
- +6 ;;D^ ;DT2INT(OCXDT) ; This Local Extrinsic Function converts a date into an integer
- +7 ;;R^"860.8:",100,2
- +8 ;;D^ ; ; By taking the Years, Months, Days, Hours and Minutes converting
- +9 ;;R^"860.8:",100,3
- +10 ;;D^ ; ; Them into Seconds and then adding them all together into one big integer
- +11 ;;R^"860.8:",100,4
- +12 ;;D^ ; ;
- +13 ;;R^"860.8:",100,5
- +14 ;;D^ ; Q:'$L($G(OCXDT)) ""
- +15 ;;R^"860.8:",100,6
- +16 ;;D^ ; N OCXDIFF,OCXVAL S (OCXDIFF,OCXVAL)=0
- +17 ;;R^"860.8:",100,7
- +18 ;;D^ ; ;
- +19 ;;R^"860.8:",100,8
- +20 ;;D^ ; I $L(OCXDT),'OCXDT,(OCXDT[" at ") D ; EXTERNAL EXPERT SYSTEM FORMAT 1 TO EXTERNAL FORMAT
- +21 ;;R^"860.8:",100,9
- +22 ;;D^ ; .N OCXHR,OCXMIN,OCXTIME
- +23 ;;R^"860.8:",100,10
- +24 ;;D^ ; .S OCXTIME=$P($P(OCXDT," at ",2),".",1),OCXHR=$P(OCXTIME,":",1),OCXMIN=$P(OCXTIME,":",2)
- +25 ;;R^"860.8:",100,11
- +26 ;;D^ ; .S:(OCXDT["Midnight") OCXHR=00
- +27 ;;R^"860.8:",100,12
- +28 ;;D^ ; .S:(OCXDT["PM") OCXHR=OCXHR+12
- +29 ;;R^"860.8:",100,13
- +30 ;;D^ ; .S OCXDT=$P(OCXDT," at ")_"@"_$E(OCXHR+100,2,3)_$E(OCXMIN+100,2,3)
- +31 ;;R^"860.8:",100,14
- +32 ;;D^ ; ;
- +33 ;;R^"860.8:",100,15
- +34 ;;D^ ; I $L(OCXDT),(OCXDT?1.2N1"/"1.2N.1" ".2N.1":".2N) D ; EXTERNAL EXPERT SYSTEM FORMAT 2 TO EXTERNAL FORMAT
- +35 ;;R^"860.8:",100,16
- +36 ;;D^ ; .N OCXMON
- +37 ;;R^"860.8:",100,17
- +38 ;;D^ ; .S OCXMON=$P("January^February^March^April^May^June^July^August^September^October^November^December",U,$P(OCXDT,"/",1))
- +39 ;;R^"860.8:",100,18
- +40 ;;D^ ; .I $L($P(OCXDT," ",2)) S OCXDT=OCXMON_" "_$P($P(OCXDT," ",1),"/",2)_"@"_$TR($P(OCXDT," ",2),":","")
- +41 ;;R^"860.8:",100,19
- +42 ;;D^ ; .E S OCXDT=OCXMON_" "_$P($P(OCXDT," ",1),"/",2)
- +43 ;;R^"860.8:",100,20
- +44 ;;D^ ; ;
- +45 ;;R^"860.8:",100,21
- +46 ;;D^ ; I $L(OCXDT),(OCXDT?1.2N1"/"1.2N1"/"1.2N.1" ".2N.1":".2N) D ; EXTERNAL EXPERT SYSTEM FORMAT 3 TO EXTERNAL FORMAT
- +47 ;;R^"860.8:",100,22
- +48 ;;D^ ; .N OCXMON
- +49 ;;R^"860.8:",100,23
- +50 ;;D^ ; .S OCXMON=$P("January^February^March^April^May^June^July^August^September^October^November^December",U,$P(OCXDT,"/",1))
- +51 ;;R^"860.8:",100,24
- +52 ;;D^ ; .I $L($P(OCXDT," ",2)) S OCXDT=OCXMON_" "_$P($P(OCXDT," ",1),"/",2)_","_$P($P(OCXDT," ",1),"/",3)_"@"_$TR($P(OCXDT," ",2),":","")
- +53 ;;R^"860.8:",100,25
- +54 ;;D^ ; .E S OCXDT=OCXMON_" "_$P($P(OCXDT," ",1),"/",2)_", "_$P($P(OCXDT," ",1),"/",3)
- +55 ;;R^"860.8:",100,26
- +56 ;;D^ ; ;
- +57 ;;R^"860.8:",100,27
- +58 ;;D^ ; I $L(OCXDT),'OCXDT D ; EXTERNAL FORMAT TO INTERNAL FILEMAN FORMAT
- +59 ;;R^"860.8:",100,28
- +60 ;;D^ ; .I (OCXDT["@0000") S OCXDT=$P(OCXDT,"@",1),OCXDIFF=1
- +61 ;;R^"860.8:",100,29
- +62 ;;D^ ; .N %DT,X,Y S X=OCXDT,%DT="" S:(OCXDT["@")!(OCXDT="N") %DT="T" D ^%DT S OCXDT=+Y
- +63 ;;R^"860.8:",100,30
- +64 ;;D^ ; ;
- +65 ;;R^"860.8:",100,31
- +66 ;;D^ ; I ($L(OCXDT\1)>7) S OCXDT=$$HL7TFM^XLFDT(OCXDT) ; HL7 FORMAT TO INTERNAL FILEMAN FORMAT
- +67 ;;R^"860.8:",100,32
- +68 ;;D^ ; ;
- +69 ;;R^"860.8:",100,33
- +70 ;;D^ ; I ($L(OCXDT\1)=7) S OCXDT=$$FMTH^XLFDT(+OCXDT) ; INTERNAL FILEMAN FORMAT TO $H FORMAT
- +71 ;;R^"860.8:",100,34
- +72 ;;D^ ; ;
- +73 ;;R^"860.8:",100,35
- +74 ;;D^ ; I (OCXDT?5N1","1.5N) S OCXVAL=(OCXDT*86400)+$P(OCXDT,",",2) ; $H FORMAT TO EXPERT SYSTEM INTERNAL FORMAT
- +75 ;;R^"860.8:",100,36
- +76 ;;D^ ; ;
- +77 ;;R^"860.8:",100,37
- +78 ;;D^ ; Q OCXVAL
- +79 ;;R^"860.8:",100,38
- +80 ;;D^ ; ;
- +81 ;;EOR^
- +82 ;;KEY^860.8:^CONVERT DATE FROM OCX FORMAT TO READABLE FORMAT
- +83 ;;R^"860.8:",.01,"E"
- +84 ;;D^CONVERT DATE FROM OCX FORMAT TO READABLE FORMAT
- +85 ;;R^"860.8:",.02,"E"
- +86 ;;D^INT2DT
- +87 ;;R^"860.8:",1,1
- +88 ;;D^ ;INT2DT(OCXDT,OCXF) ; This Local Extrinsic Function converts an OCX internal format
- +89 ;;R^"860.8:",1,2
- +90 ;;D^ ; ; date into an Externl Format (Human Readable) date. 'OCXF=SHORT FORMAT OCXF=LONG FORMAT
- +91 ;;R^"860.8:",1,3
- +92 ;;D^ ; ;
- +93 ;;R^"860.8:",100,1
- +94 ;;D^ ;INT2DT(OCXDT,OCXF) ; This Local Extrinsic Function converts an OCX internal format
- +95 ;;R^"860.8:",100,2
- +96 ;;D^ ; ; date into an Externl Format (Human Readable) date. 'OCXF=SHORT FORMAT OCXF=LONG FORMAT
- +97 ;;R^"860.8:",100,3
- +98 ;;D^ ; ;
- +99 ;;R^"860.8:",100,4
- +100 ;;D^ ; Q:'$L($G(OCXDT)) "" S OCXF=+$G(OCXF)
- +101 ;;R^"860.8:",100,5
- +102 ;;D^ ; N OCXYR,OCXLPYR,OCXMON,OCXDAY,OCXHR,OCXMIN,OCXSEC,OCXCYR
- +103 ;;R^"860.8:",100,6
- +104 ;;D^ ; S (OCXYR,OCXLPYR,OCXMON,OCXDAY,OCXHR,OCXMIN,OCXSEC,OCXAP)=""
- +105 ;;R^"860.8:",100,7
- +106 ;;D^ ; S OCXSEC=$E(OCXDT#60+100,2,3),OCXDT=OCXDT\60
- +107 ;;R^"860.8:",100,8
- +108 ;;D^ ; S OCXMIN=$E(OCXDT#60+100,2,3),OCXDT=OCXDT\60
- +109 ;;R^"860.8:",100,9
- +110 ;;D^ ; S OCXHR=$E(OCXDT#24+100,2,3),OCXDT=OCXDT\24
- +111 ;;R^"860.8:",100,10
- +112 ;;D^ ; S OCXCYR=($H\1461)*4+1841+(($H#1461)\365)
- +113 ;;R^"860.8:",100,11
- +114 ;;D^ ; S OCXYR=(OCXDT\1461)*4+1841,OCXDT=OCXDT#1461
- +115 ;;R^"860.8:",100,12
- +116 ;;D^ ; S OCXLPYR=(OCXDT\365),OCXDT=OCXDT-(OCXLPYR*365),OCXYR=OCXYR+OCXLPYR
- +117 ;;R^"860.8:",100,13
- +118 ;;D^ ; S OCXCNT="031^059^090^120^151^181^212^243^273^304^334^365"
- +119 ;;R^"860.8:",100,14
- +120 ;;D^ ; S:(OCXLPYR=3) OCXCNT="031^060^091^121^152^182^213^244^274^305^335^366"
- +121 ;;R^"860.8:",100,15
- +122 ;;D^ ; F OCXMON=1:1:12 Q:(OCXDT<$P(OCXCNT,U,OCXMON))
- +123 ;;R^"860.8:",100,16
- +124 ;;D^ ; S OCXDAY=OCXDT-$P(OCXCNT,U,OCXMON-1)+1
- +125 ;;R^"860.8:",100,17
- +126 ;;D^ ; I OCXF S OCXMON=$P("January^February^March^April^May^June^July^August^September^October^November^December",U,OCXMON)
- +127 ;;R^"860.8:",100,18
- +128 ;;D^ ; E S OCXMON=$E(OCXMON+100,2,3)
- +129 ;;R^"860.8:",100,19
- +130 ;;D^ ; S OCXAP=$S('OCXHR:"Midnight",(OCXHR=12):"Noon",(OCXHR<12):"AM",1:"PM")
- +131 ;;R^"860.8:",100,20
- +132 ;;D^ ; I OCXF S OCXHR=OCXHR#12 S:'OCXHR OCXHR=12
- +133 ;;R^"860.8:",100,21
- +134 ;;D^ ; Q:'OCXF $E(OCXMON+100,2,3)_"/"_$E(OCXDAY+100,2,3)_$S((OCXCYR=OCXYR):" "_OCXHR_":"_OCXMIN,1:"/"_$E(OCXYR,3,4))
- +135 ;;R^"860.8:",100,22
- +136 ;;D^ ; Q:(OCXHR+OCXMIN+OCXSEC) OCXMON_" "_OCXDAY_","_OCXYR_" at "_OCXHR_":"_OCXMIN_"."_OCXSEC_" "_OCXAP
- +137 ;;R^"860.8:",100,23
- +138 ;;D^ ; Q OCXMON_" "_OCXDAY_","_OCXYR
- +139 ;;R^"860.8:",100,24
- +140 ;;D^ ; ;
- +141 ;;EOR^
- +142 ;;KEY^860.8:^ELAPSED ORDER CHECK TIME LOGGER
- +143 ;;R^"860.8:",.01,"E"
- +144 ;;D^ELAPSED ORDER CHECK TIME LOGGER
- +145 ;;R^"860.8:",.02,"E"
- +146 ;;D^TIMELOG
- +147 ;;R^"860.8:",100,1
- +148 ;;D^ ;TIMELOG(OCXMODE,OCXCALL) ; Log an entry in the Elapsed time log.
- +149 ;;R^"860.8:",100,2
- +150 ;;D^ ; ;
- +151 ;;R^"860.8:",100,3
- +152 ;;D^ ; ;
- +153 ;;R^"860.8:",100,4
- +154 ;;D^ ; Q 0
- +155 ;;R^"860.8:",100,5
- +156 ;;D^ ; ;
- +157 ;;EOR^
- +158 ;;KEY^860.8:^EQUALS TERM OPERATOR
- +159 ;;R^"860.8:",.01,"E"
- +160 ;;D^EQUALS TERM OPERATOR
- +161 ;;R^"860.8:",.02,"E"
- +162 ;;D^EQTERM
- +163 ;;R^"860.8:",100,1
- +164 ;;D^ ;EQTERM(DATA,TERM) ;
- +165 ;;R^"860.8:",100,2
- +166 ;;D^ ; ;
- +167 ;;R^"860.8:",100,3
- +168 ;;D^T+; I $G(OCXTRACE) W !,"%%%%",?20," Execution trace DATA: ",$G(DATA)," TERM: ",$G(TERM)
- +169 ;;R^"860.8:",100,4
- +170 ;;D^ ; N OCXF,OCXL
- +171 ;;R^"860.8:",100,5
- +172 ;;D^ ; ;
- +173 ;;R^"860.8:",100,6
- +174 ;;D^ ; S OCXL="",OCXF=$$TERMLKUP(TERM,.OCXL)
- +175 ;;R^"860.8:",100,7
- +176 ;;D^T-; Q:'OCXF 0
- +177 ;;R^"860.8:",100,8
- +178 ;;D^T+; I 'OCXF W:$G(OCXTRACE) !,"%%%%",?20," Term '",TERM,"' not in Order Check National Term File" Q 0
- +179 ;1;
- +180 ;