207 lines
5.1 KiB
Mathematica
207 lines
5.1 KiB
Mathematica
|
OCXDI02O ;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 ^OCXDI02P
|
||
|
;
|
||
|
Q
|
||
|
;
|
||
|
DATA ;
|
||
|
;
|
||
|
;;D^ORDER FLAGGED FOR RESULTS
|
||
|
;;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^ORDER FLAGGED FOR RESULTS
|
||
|
;;EOR^
|
||
|
;;KEY^860.4:^OBSERVATION VALUE
|
||
|
;;R^"860.4:",.01,"E"
|
||
|
;;D^OBSERVATION VALUE
|
||
|
;;R^"860.4:",101,"E"
|
||
|
;;D^FREE TEXT
|
||
|
;;R^"860.4:","860.41:1",.01,"E"
|
||
|
;;D^GENERIC HL7 MESSAGE ARRAY
|
||
|
;;R^"860.4:","860.41:1",.02,"E"
|
||
|
;;D^HL7 OBSERVATION/RESULT SEGMENT
|
||
|
;;R^"860.4:","860.41:1",1,"E"
|
||
|
;;D^PATIENT.HL7_OBSERVATION_VALUE
|
||
|
;;EOR^
|
||
|
;;KEY^860.4:^ORDER NUMBER
|
||
|
;;R^"860.4:",.01,"E"
|
||
|
;;D^ORDER NUMBER
|
||
|
;;R^"860.4:",101,"E"
|
||
|
;;D^NUMERIC
|
||
|
;;R^"860.4:","860.41:1",.01,"E"
|
||
|
;;D^GENERIC HL7 MESSAGE ARRAY
|
||
|
;;R^"860.4:","860.41:1",.02,"E"
|
||
|
;;D^HL7 COMMON ORDER SEGMENT
|
||
|
;;R^"860.4:","860.41:1",1,"E"
|
||
|
;;D^PATIENT.HL7 ORDER NUMBER
|
||
|
;;R^"860.4:","860.41:2",.01,"E"
|
||
|
;;D^CPRS ORDER PROTOCOL
|
||
|
;;R^"860.4:","860.41:2",.02,"E"
|
||
|
;;D^OERR ORDER EVENT FLAG PROTOCOL
|
||
|
;;R^"860.4:","860.41:2",1,"E"
|
||
|
;;D^PATIENT.OERR ORDER NUMBER
|
||
|
;;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_ORDER NUMBER
|
||
|
;;EOR^
|
||
|
;;KEY^860.4:^ORDERABLE ITEM
|
||
|
;;R^"860.4:",.01,"E"
|
||
|
;;D^ORDERABLE ITEM
|
||
|
;;R^"860.4:",101,"E"
|
||
|
;;D^FREE TEXT
|
||
|
;;R^"860.4:","860.41:1",.01,"E"
|
||
|
;;D^GENERIC HL7 MESSAGE ARRAY
|
||
|
;;R^"860.4:","860.41:1",.02,"E"
|
||
|
;;D^HL7 OBSERVATION/RESULT SEGMENT
|
||
|
;;R^"860.4:","860.41:1",1,"E"
|
||
|
;;D^PATIENT.ORDERABLE ITEM
|
||
|
;;EOR^
|
||
|
;;KEY^860.4:^PATIENT IEN
|
||
|
;;R^"860.4:",.01,"E"
|
||
|
;;D^PATIENT IEN
|
||
|
;;R^"860.4:",101,"E"
|
||
|
;;D^NUMERIC
|
||
|
;;R^"860.4:","860.41:1",.01,"E"
|
||
|
;;D^GENERIC HL7 MESSAGE ARRAY
|
||
|
;;R^"860.4:","860.41:1",.02,"E"
|
||
|
;;D^HL7 PATIENT ID SEGMENT
|
||
|
;;R^"860.4:","860.41:1",1,"E"
|
||
|
;;D^PATIENT.HL7_PATIENT_ID
|
||
|
;;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.IEN
|
||
|
;;EOR^
|
||
|
;;KEY^860.4:^PATIENT DATE OF BIRTH
|
||
|
;;R^"860.4:",.01,"E"
|
||
|
;;D^PATIENT DATE OF BIRTH
|
||
|
;;R^"860.4:",101,"E"
|
||
|
;;D^DATE/TIME
|
||
|
;;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.DATE OF BIRTH
|
||
|
;;EOR^
|
||
|
;;KEY^860.4:^ORDER MODE
|
||
|
;;R^"860.4:",.01,"E"
|
||
|
;;D^ORDER MODE
|
||
|
;;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_ORD_MODE
|
||
|
;;EOR^
|
||
|
;;KEY^860.4:^OI NATIONAL ID
|
||
|
;;R^"860.4:",.01,"E"
|
||
|
;;D^OI NATIONAL ID
|
||
|
;;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_NAT_ID
|
||
|
;;EOR^
|
||
|
;;KEY^860.4:^OI NATIONAL ID TEXT
|
||
|
;;R^"860.4:",.01,"E"
|
||
|
;;D^OI NATIONAL ID TEXT
|
||
|
;;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_NAT_TEXT
|
||
|
;;EOR^
|
||
|
;;KEY^860.4:^OI NATIONAL CODING SYSTEM
|
||
|
;;R^"860.4:",.01,"E"
|
||
|
;;D^OI NATIONAL CODING SYSTEM
|
||
|
;;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_NAT_COD_SYS
|
||
|
;;EOR^
|
||
|
;;KEY^860.4:^OI LOCAL ID
|
||
|
;;R^"860.4:",.01,"E"
|
||
|
;;D^OI LOCAL ID
|
||
|
;;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_LOCAL ID
|
||
|
;;EOR^
|
||
|
;;KEY^860.4:^OI LOCAL TEXT
|
||
|
;;R^"860.4:",.01,"E"
|
||
|
;;D^OI LOCAL TEXT
|
||
|
;;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_LOCAL_TEXT
|
||
|
;;EOR^
|
||
|
;;KEY^860.4:^OI LOCAL CODING SYSTEM
|
||
|
;;R^"860.4:",.01,"E"
|
||
|
;;D^OI LOCAL CODING SYSTEM
|
||
|
;;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_LOC_COD_SYS
|
||
|
;;EOR^
|
||
|
;;KEY^860.4:^ORDER EFFECTIVE DATE
|
||
|
;;R^"860.4:",.01,"E"
|
||
|
;;D^ORDER EFFECTIVE DATE
|
||
|
;;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_ORD_EFF_DATE
|
||
|
;;EOR^
|
||
|
;;KEY^860.4:^DIET ORDERABLE ITEM
|
||
|
;;R^"860.4:",.01,"E"
|
||
|
;;D^DIET ORDERABLE ITEM
|
||
|
;;R^"860.4:",101,"E"
|
||
|
;;D^FREE TEXT
|
||
|
;;R^"860.4:","860.41:1",.01,"E"
|
||
|
;;D^GENERIC HL7 MESSAGE ARRAY
|
||
|
;1;
|
||
|
;
|