211 lines
5.1 KiB
Mathematica
211 lines
5.1 KiB
Mathematica
OCXDI02P ;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 ^OCXDI02Q
|
|
;
|
|
Q
|
|
;
|
|
DATA ;
|
|
;
|
|
;;R^"860.4:","860.41:1",.02,"E"
|
|
;;D^HL7 DIETARY SEGMENT
|
|
;;R^"860.4:","860.41:1",1,"E"
|
|
;;D^PATIENT.HL7_DIET_LOCAL_TEXT
|
|
;;EOR^
|
|
;;KEY^860.4:^PATIENT TRANSACTION TYPE CURRENT
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^PATIENT TRANSACTION TYPE CURRENT
|
|
;;R^"860.4:",1,"E"
|
|
;;D^TRANSACTION TYPE
|
|
;;R^"860.4:",101,"E"
|
|
;;D^FREE TEXT
|
|
;;R^"860.4:","860.41:3",.01,"E"
|
|
;;D^DGPM PATIENT MOVEMENT PROTOCOL
|
|
;;R^"860.4:","860.41:3",.02,"E"
|
|
;;D^DGPM MOVEMENT EVENTS PROTOCOL
|
|
;;R^"860.4:","860.41:3",1,"E"
|
|
;;D^PATIENT.TRANS_TYPE_CURRENT
|
|
;;EOR^
|
|
;;KEY^860.4:^SITE FLAGGED ORDER
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^SITE FLAGGED ORDER
|
|
;;R^"860.4:",1,"E"
|
|
;;D^SITEORD
|
|
;;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.SITE_FLAGGED_ORDER
|
|
;;EOR^
|
|
;;KEY^860.4:^SITE FLAGGED RESULT
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^SITE FLAGGED RESULT
|
|
;;R^"860.4:",1,"E"
|
|
;;D^SITERES
|
|
;;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.SITE_FLAGGED_RESULT
|
|
;;EOR^
|
|
;;KEY^860.4:^CONTRAST MEDIA FLAG
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^CONTRAST MEDIA 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.RAD_CON_MEDIA
|
|
;;EOR^
|
|
;;KEY^860.4:^MOST RECENT RENAL TEST ABNORMAL FLAG
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^MOST RECENT RENAL TEST ABNORMAL 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_RENAL_ABNORM_FLAG
|
|
;;EOR^
|
|
;;KEY^860.4:^ABNORMAL RENAL BIOCHEM RESULTS
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^ABNORMAL RENAL BIOCHEM RESULTS
|
|
;;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_RENAL_ABNORM_RES
|
|
;;EOR^
|
|
;;KEY^860.4:^CHOLECYSTOGRAM PROCEDURE FLAG
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^CHOLECYSTOGRAM PROCEDURE 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.CHOLE_PROC_FLAG
|
|
;;EOR^
|
|
;;KEY^860.4:^RECENT CHOLECYSTOGRAM FLAG
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^RECENT CHOLECYSTOGRAM 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_CHOLEC_FLAG
|
|
;;EOR^
|
|
;;KEY^860.4:^RECENT CHOLECYSTOGRAM TEXT
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^RECENT CHOLECYSTOGRAM 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_CHOLEC_TEXT
|
|
;;EOR^
|
|
;;KEY^860.4:^PATIENT AGE
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^PATIENT AGE
|
|
;;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.AGE
|
|
;;EOR^
|
|
;;KEY^860.4:^FORMATTED LAB RESULTS
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^FORMATTED LAB RESULTS
|
|
;;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.LAB_RESULTS
|
|
;;EOR^
|
|
;;KEY^860.4:^FORMATTED RENAL LAB RESULTS
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^FORMATTED RENAL LAB RESULTS
|
|
;;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.REN_LAB_RES
|
|
;;EOR^
|
|
;;KEY^860.4:^CONTRAST MEDIA ALLERGY FLAG
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^CONTRAST MEDIA ALLERGY FLAG
|
|
;;R^"860.4:",1,"E"
|
|
;;D^ConMedAlgyFlag
|
|
;;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.CONT_MED_ALGY
|
|
;;EOR^
|
|
;;KEY^860.4:^CONTRAST MEDIA CODE TRANSLATION
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^CONTRAST MEDIA CODE TRANSLATION
|
|
;;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.CON_MEDIA_TRANS
|
|
;;EOR^
|
|
;;KEY^860.4:^CONTRAST MEDIA CODE
|
|
;;R^"860.4:",.01,"E"
|
|
;;D^CONTRAST MEDIA CODE
|
|
;;R^"860.4:",1,"E"
|
|
;;D^CMC
|
|
;;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"
|
|
;1;
|
|
;
|