211 lines
5.1 KiB
Mathematica
211 lines
5.1 KiB
Mathematica
OCXDI02T ;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 ^OCXDI02U
|
|
;
|
|
Q
|
|
;
|
|
DATA ;
|
|
;
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",.02,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",1,"E"
|
|
;;D^LAB TEST PRINT NAME
|
|
;;EOR^
|
|
;;KEY^860.4:^CURRENT DATE/TIME
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^CURRENT DATE/TIME
|
|
;;R^"860.4:",1,"E"
|
|
;;D^CDT
|
|
;;R^"860.4:",101,"E"
|
|
;;D^FREE TEXT
|
|
;;R^"860.4:","860.41:4",.01,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",.02,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",1,"E"
|
|
;;D^CURRENT_DATE/TIME
|
|
;;EOR^
|
|
;;KEY^860.4:^RECENT SERUM CREATININE TEXT
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^RECENT SERUM CREATININE TEXT
|
|
;;R^"860.4:",1,"E"
|
|
;;D^CREATININE TEXT
|
|
;;R^"860.4:",101,"E"
|
|
;;D^FREE TEXT
|
|
;;R^"860.4:","860.41:4",.01,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",.02,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",1,"E"
|
|
;;D^PATIENT.REC_CREATININE_TEXT
|
|
;;EOR^
|
|
;;KEY^860.4:^RECENT SERUM CREATININE FLAG
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^RECENT SERUM CREATININE FLAG
|
|
;;R^"860.4:",101,"E"
|
|
;;D^BOOLEAN
|
|
;;R^"860.4:","860.41:4",.01,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",.02,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",1,"E"
|
|
;;D^PATIENT.REC_CREATININE_FLAG
|
|
;;EOR^
|
|
;;KEY^860.4:^RECENT BARIUM STUDY ORDER STATUS
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^RECENT BARIUM STUDY ORDER STATUS
|
|
;;R^"860.4:",101,"E"
|
|
;;D^FREE TEXT
|
|
;;R^"860.4:","860.41:4",.01,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",.02,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",1,"E"
|
|
;;D^PATIENT.REC_BAR_ORDER_STATUS
|
|
;;EOR^
|
|
;;KEY^860.4:^RECENT CHOLECYSTOGRAM ORDER STATUS
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^RECENT CHOLECYSTOGRAM ORDER STATUS
|
|
;;R^"860.4:",101,"E"
|
|
;;D^FREE TEXT
|
|
;;R^"860.4:","860.41:4",.01,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",.02,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",1,"E"
|
|
;;D^PATIENT.REC_CHOLEC_ORD_STATUS
|
|
;;EOR^
|
|
;;KEY^860.4:^POLYPHARMACY
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^POLYPHARMACY
|
|
;;R^"860.4:",1,"E"
|
|
;;D^POLYRX
|
|
;;R^"860.4:",101,"E"
|
|
;;D^BOOLEAN
|
|
;;R^"860.4:","860.41:4",.01,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",.02,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",1,"E"
|
|
;;D^PATIENT.POLYPHARMACY
|
|
;;EOR^
|
|
;;KEY^860.4:^RECENT GLUCOPHAGE CREATININE FLAG
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^RECENT GLUCOPHAGE CREATININE FLAG
|
|
;;R^"860.4:",101,"E"
|
|
;;D^BOOLEAN
|
|
;;R^"860.4:","860.41:4",.01,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",.02,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",1,"E"
|
|
;;D^PATIENT.GLUCOPHAGE_CREAT_FLAG
|
|
;;EOR^
|
|
;;KEY^860.4:^RECENT GLUCOPHAGE CREATININE TEXT
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^RECENT GLUCOPHAGE CREATININE TEXT
|
|
;;R^"860.4:",101,"E"
|
|
;;D^FREE TEXT
|
|
;;R^"860.4:","860.41:4",.01,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",.02,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",1,"E"
|
|
;;D^PATIENT.GLUCOPHAGE_CREAT_TEXT
|
|
;;EOR^
|
|
;;KEY^860.4:^RECENT GLUCOPHAGE CREATININE RESULT
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^RECENT GLUCOPHAGE CREATININE RESULT
|
|
;;R^"860.4:",101,"E"
|
|
;;D^NUMERIC
|
|
;;R^"860.4:","860.41:4",.01,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",.02,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",1,"E"
|
|
;;D^PATIENT.GLUCOPHAGE_CREAT_RSLT
|
|
;;EOR^
|
|
;;KEY^860.4:^RECENT GLUCOPHAGE CREATININE DAYS
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^RECENT GLUCOPHAGE CREATININE DAYS
|
|
;;R^"860.4:",101,"E"
|
|
;;D^NUMERIC
|
|
;;R^"860.4:","860.41:4",.01,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",.02,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",1,"E"
|
|
;;D^PATIENT.GLUCOPHAGE_CREAT_DAYS
|
|
;;EOR^
|
|
;;KEY^860.4:^ANC W/IN 6 DAYS
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^ANC W/IN 6 DAYS
|
|
;;R^"860.4:","860.41:4",.01,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",.02,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",1,"E"
|
|
;;D^PATIENT.ANC_W/IN_6_DAYS_FLAG
|
|
;;EOR^
|
|
;;KEY^860.4:^RECENT ANC RESULT
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^RECENT ANC RESULT
|
|
;;R^"860.4:",1,"E"
|
|
;;D^RECENT ANC
|
|
;;R^"860.4:",101,"E"
|
|
;;D^FREE TEXT
|
|
;;R^"860.4:","860.41:4",.01,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",.02,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",1,"E"
|
|
;;D^PATIENT.RECENT ANC RESULT
|
|
;;EOR^
|
|
;;KEY^860.4:^CLOZAPINE LAB RESULTS
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^CLOZAPINE LAB RESULTS
|
|
;;R^"860.4:",1,"E"
|
|
;;D^CLOZ LAB RSLTS
|
|
;;R^"860.4:",101,"E"
|
|
;;D^FREE TEXT
|
|
;;R^"860.4:","860.41:4",.01,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",.02,"E"
|
|
;;D^DATABASE LOOKUP
|
|
;;R^"860.4:","860.41:4",1,"E"
|
|
;;D^PATIENT.CLOZ_LAB_RESULTS
|
|
;;EOR^
|
|
;;KEY^860.4:^PHARMACY LOCAL ID
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^PHARMACY LOCAL ID
|
|
;;R^"860.4:",1,"E"
|
|
;;D^DISP DRUG IEN
|
|
;;R^"860.4:",101,"E"
|
|
;;D^FREE TEXT
|
|
;;R^"860.4:","860.41:5",.01,"E"
|
|
;;D^CPRS ORDER PRESCAN
|
|
;;R^"860.4:","860.41:5",.02,"E"
|
|
;;D^ORDER ENTRY ORDER PRESCAN
|
|
;;R^"860.4:","860.41:5",1,"E"
|
|
;;D^PATIENT.OPS_DRUG_ID
|
|
;;EOR^
|
|
;;KEY^860.4:^CLOZAPINE MED
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^CLOZAPINE MED
|
|
;;R^"860.4:",1,"E"
|
|
;;D^CLOZAPINE
|
|
;1;
|
|
;
|