201 lines
5.0 KiB
Mathematica
201 lines
5.0 KiB
Mathematica
OCXDI036 ;SLC/RJS,CLA - OCX PACKAGE DIAGNOSTIC ROUTINES ;SEP 7,1999 at 10:30
|
|
;;3.0;ORDER ENTRY/RESULTS REPORTING;**32**;Dec 17,1997
|
|
;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
|
|
;
|
|
S ;
|
|
;
|
|
D DOT^OCXDIAG
|
|
;
|
|
;
|
|
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("OCXDIAG",$J,$O(^TMP("OCXDIAG",$J,"A"),-1)+1)=TEXT
|
|
;
|
|
G ^OCXDI037
|
|
;
|
|
Q
|
|
;
|
|
DATA ;
|
|
;
|
|
;;D^CLOZAPINE NO ANC W/IN 7 DAYS
|
|
;;R^"860.3:",.02,"E"
|
|
;;D^CPRS ORDER PRESCAN
|
|
;;R^"860.3:","860.31:6",.01,"E"
|
|
;;D^6
|
|
;;R^"860.3:","860.31:6",1,"E"
|
|
;;D^CLOZAPINE ANC W/IN 7 FLAG
|
|
;;R^"860.3:","860.31:6",2,"E"
|
|
;;D^LOGICAL FALSE
|
|
;;EOR^
|
|
;;KEY^860.3:^CLOZAPINE NO WBC W/IN 7 DAYS
|
|
;;R^"860.3:",.01,"E"
|
|
;;D^CLOZAPINE NO WBC W/IN 7 DAYS
|
|
;;R^"860.3:",.02,"E"
|
|
;;D^CPRS ORDER PRESCAN
|
|
;;R^"860.3:","860.31:4",.01,"E"
|
|
;;D^4
|
|
;;R^"860.3:","860.31:4",1,"E"
|
|
;;D^CLOZAPINE WBC W/IN 7 FLAG
|
|
;;R^"860.3:","860.31:4",2,"E"
|
|
;;D^LOGICAL FALSE
|
|
;;EOR^
|
|
;;KEY^860.3:^CLOZAPINE WBC < 3.0
|
|
;;R^"860.3:",.01,"E"
|
|
;;D^CLOZAPINE WBC < 3.0
|
|
;;R^"860.3:",.02,"E"
|
|
;;D^CPRS ORDER PRESCAN
|
|
;;R^"860.3:","860.31:4",.01,"E"
|
|
;;D^4
|
|
;;R^"860.3:","860.31:4",1,"E"
|
|
;;D^CLOZAPINE WBC W/IN 7 RESULT
|
|
;;R^"860.3:","860.31:4",2,"E"
|
|
;;D^LESS THAN
|
|
;;R^"860.3:","860.31:4",3,"E"
|
|
;;D^3.0
|
|
;;R^"860.3:","860.31:5",.01,"E"
|
|
;;D^5
|
|
;;R^"860.3:","860.31:5",1,"E"
|
|
;;D^CLOZAPINE WBC W/IN 7 FLAG
|
|
;;R^"860.3:","860.31:5",2,"E"
|
|
;;D^LOGICAL TRUE
|
|
;;EOR^
|
|
;;KEY^860.3:^CLOZAPINE WBC >= 3.0 & < 3.5
|
|
;;R^"860.3:",.01,"E"
|
|
;;D^CLOZAPINE WBC >= 3.0 & < 3.5
|
|
;;R^"860.3:",.02,"E"
|
|
;;D^CPRS ORDER PRESCAN
|
|
;;R^"860.3:","860.31:4",.01,"E"
|
|
;;D^4
|
|
;;R^"860.3:","860.31:4",1,"E"
|
|
;;D^CLOZAPINE WBC W/IN 7 RESULT
|
|
;;R^"860.3:","860.31:4",2,"E"
|
|
;;D^GREATER THAN
|
|
;;R^"860.3:","860.31:4",3,"E"
|
|
;;D^2.999
|
|
;;R^"860.3:","860.31:5",.01,"E"
|
|
;;D^5
|
|
;;R^"860.3:","860.31:5",1,"E"
|
|
;;D^CLOZAPINE WBC W/IN 7 RESULT
|
|
;;R^"860.3:","860.31:5",2,"E"
|
|
;;D^LESS THAN
|
|
;;R^"860.3:","860.31:5",3,"E"
|
|
;;D^3.5
|
|
;;R^"860.3:","860.31:6",.01,"E"
|
|
;;D^6
|
|
;;R^"860.3:","860.31:6",1,"E"
|
|
;;D^CLOZAPINE WBC W/IN 7 FLAG
|
|
;;R^"860.3:","860.31:6",2,"E"
|
|
;;D^LOGICAL TRUE
|
|
;;EOR^
|
|
;;KEY^860.3:^CLOZAPINE WBC >= 3.5
|
|
;;R^"860.3:",.01,"E"
|
|
;;D^CLOZAPINE WBC >= 3.5
|
|
;;R^"860.3:",.02,"E"
|
|
;;D^CPRS ORDER PRESCAN
|
|
;;R^"860.3:","860.31:1",.01,"E"
|
|
;;D^1
|
|
;;R^"860.3:","860.31:1",1,"E"
|
|
;;D^CLOZAPINE WBC W/IN 7 RESULT
|
|
;;R^"860.3:","860.31:1",2,"E"
|
|
;;D^GREATER THAN
|
|
;;R^"860.3:","860.31:1",3,"E"
|
|
;;D^3.499
|
|
;;R^"860.3:","860.31:2",.01,"E"
|
|
;;D^2
|
|
;;R^"860.3:","860.31:2",1,"E"
|
|
;;D^CLOZAPINE WBC W/IN 7 FLAG
|
|
;;R^"860.3:","860.31:2",2,"E"
|
|
;;D^LOGICAL TRUE
|
|
;;EOR^
|
|
;;EOF^OCXS(860.3)^1
|
|
;;SOF^860.2 ORDER CHECK RULE
|
|
;;KEY^860.2:^CRITICAL LAB RESULTS
|
|
;;R^"860.2:",.01,"E"
|
|
;;D^CRITICAL LAB RESULTS
|
|
;;R^"860.2:","860.21:1",.01,"E"
|
|
;;D^CRITICAL LAB TEST
|
|
;;R^"860.2:","860.21:1",.02,"E"
|
|
;;D^SIMPLE DEFINITION
|
|
;;R^"860.2:","860.21:1",1,"E"
|
|
;;D^HL7 LAB TEST RESULTS CRITICAL
|
|
;;R^"860.2:","860.21:2",.01,"E"
|
|
;;D^CRITICAL LAB ORDER
|
|
;;R^"860.2:","860.21:2",.02,"E"
|
|
;;D^SIMPLE DEFINITION
|
|
;;R^"860.2:","860.21:2",1,"E"
|
|
;;D^HL7 LAB ORDER RESULTS CRITICAL
|
|
;;R^"860.2:","860.22:1",.01,"E"
|
|
;;D^1
|
|
;;R^"860.2:","860.22:1",1,"E"
|
|
;;D^CRITICAL LAB TEST
|
|
;;R^"860.2:","860.22:1",3,"E"
|
|
;;D^CRITICAL LAB RESULT (INFO)
|
|
;;R^"860.2:","860.22:1",5,"E"
|
|
;;D^Critical lab: |LAB TEST PRINT NAME| |LAB RESULT| |LAB COLLECTION D/T|
|
|
;;R^"860.2:","860.22:2",.01,"E"
|
|
;;D^2
|
|
;;R^"860.2:","860.22:2",1,"E"
|
|
;;D^CRITICAL LAB ORDER
|
|
;;R^"860.2:","860.22:2",3,"E"
|
|
;;D^CRITICAL LAB RESULTS (ACTION)
|
|
;;R^"860.2:","860.22:2",5,"E"
|
|
;;D^Critical labs - [|ORDERABLE ITEM NAME|]
|
|
;;EOR^
|
|
;;KEY^860.2:^ORDER FLAGGED FOR CLARIFICATION
|
|
;;R^"860.2:",.01,"E"
|
|
;;D^ORDER FLAGGED FOR CLARIFICATION
|
|
;;R^"860.2:","860.21:2",.01,"E"
|
|
;;D^FLAGGED
|
|
;;R^"860.2:","860.21:2",1,"E"
|
|
;;D^ORDER FLAGGED
|
|
;;R^"860.2:","860.22:1",.01,"E"
|
|
;;D^1
|
|
;;R^"860.2:","860.22:1",1,"E"
|
|
;;D^FLAGGED
|
|
;;R^"860.2:","860.22:1",3,"E"
|
|
;;D^FLAGGED ORDERS
|
|
;;R^"860.2:","860.22:1",5,"E"
|
|
;;D^Order(s) needing clarification: Flagged |CURRENT DATE/TIME|.
|
|
;;EOR^
|
|
;;KEY^860.2:^ORDER REQUIRES CHART SIGNATURE
|
|
;;R^"860.2:",.01,"E"
|
|
;;D^ORDER REQUIRES CHART SIGNATURE
|
|
;;R^"860.2:","860.21:1",.01,"E"
|
|
;;D^SIGNATURE
|
|
;;R^"860.2:","860.21:1",1,"E"
|
|
;;D^ORDER REQUIRES CHART SIGNATURE
|
|
;;R^"860.2:","860.22:1",.01,"E"
|
|
;;D^1
|
|
;;R^"860.2:","860.22:1",1,"E"
|
|
;;D^SIGNATURE
|
|
;;R^"860.2:","860.22:1",3,"E"
|
|
;;D^ORDER REQUIRES CHART SIGNATURE
|
|
;;R^"860.2:","860.22:1",5,"E"
|
|
;;D^Order released - requires chart signature.
|
|
;;EOR^
|
|
;;KEY^860.2:^PATIENT ADMISSION
|
|
;;R^"860.2:",.01,"E"
|
|
;;D^PATIENT ADMISSION
|
|
;;R^"860.2:","860.21:1",.01,"E"
|
|
;;D^ADMISSION
|
|
;;R^"860.2:","860.21:1",.02,"E"
|
|
;;D^SIMPLE DEFINITION
|
|
;;R^"860.2:","860.21:1",1,"E"
|
|
;;D^PATIENT ADMISSION
|
|
;;R^"860.2:","860.22:1",.01,"E"
|
|
;;D^1
|
|
;;R^"860.2:","860.22:1",1,"E"
|
|
;;D^ADMISSION
|
|
;;R^"860.2:","860.22:1",3,"E"
|
|
;;D^ADMISSION
|
|
;;R^"860.2:","860.22:1",5,"E"
|
|
;;D^Admitted on |PATIENT MOVEMENT DATE CURRENT| to |PATIENT WARD ROOM-BED|
|
|
;;EOR^
|
|
;;KEY^860.2:^IMAGING REQUEST CANCELLED/HELD
|
|
;;R^"860.2:",.01,"E"
|
|
;;D^IMAGING REQUEST CANCELLED/HELD
|
|
;;R^"860.2:","860.21:1",.01,"E"
|
|
;;D^CANCELLED
|
|
;1;
|
|
;
|