VistA-FOIAVistA/r/ORDER_ENTRY_RESULTS_REPORTI.../OCXDI026.m

234 lines
5.2 KiB
Mathematica

OCXDI026 ;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 ^OCXDI027
;
Q
;
DATA ;
;
;;D^6
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO FILE POINTER
;;R^"863.3:","863.32:3",1,"E"
;;D^42
;;EOR^
;;KEY^863.3:^PATIENT.MOVE_SERV_CURR
;;R^"863.3:",.01,"E"
;;D^PATIENT.MOVE_SERV_CURR
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^DGPM
;;R^"863.3:",.05,"E"
;;D^SERVICE CATEGORY
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^WARDSERV(|PMWIENC|)
;;EOR^
;;KEY^863.3:^PATIENT.MOV_WARD_IEN_CURR
;;R^"863.3:",.01,"E"
;;D^PATIENT.MOV_WARD_IEN_CURR
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^DGPM
;;R^"863.3:",.05,"E"
;;D^IEN
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^DGPMA
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^6
;;EOR^
;;KEY^863.3:^PATIENT.MOV_WARD_IEN_PREV
;;R^"863.3:",.01,"E"
;;D^PATIENT.MOV_WARD_IEN_PREV
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^DGPM
;;R^"863.3:",.05,"E"
;;D^IEN
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^DGPM0
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^6
;;EOR^
;;KEY^863.3:^PATIENT.MOVE_SERV_PREV
;;R^"863.3:",.01,"E"
;;D^PATIENT.MOVE_SERV_PREV
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^DGPM
;;R^"863.3:",.05,"E"
;;D^SERVICE CATEGORY
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^WARDSERV(|PMWIENP|)
;;EOR^
;;KEY^863.3:^PATIENT.MOVE_WARD_PREV
;;R^"863.3:",.01,"E"
;;D^PATIENT.MOVE_WARD_PREV
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^DGPM
;;R^"863.3:",.05,"E"
;;D^WARD NAME
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO VARIABLE NAME
;;R^"863.3:","863.32:1",1,"E"
;;D^DGPM0
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^6
;;R^"863.3:","863.32:3",.01,"E"
;;D^OCXO FILE POINTER
;;R^"863.3:","863.32:3",1,"E"
;;D^42
;;EOR^
;;KEY^863.3:^PATIENT.ORD_ITEM_NAME
;;R^"863.3:",.01,"E"
;;D^PATIENT.ORD_ITEM_NAME
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.04,"E"
;;D^DBL
;;R^"863.3:",.05,"E"
;;D^ORDERABLE ITEM
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^ORDITEM(|ORDER NUMBER|)
;;EOR^
;;KEY^863.3:^PATIENT.NEW_MOVEMENT
;;R^"863.3:",.01,"E"
;;D^PATIENT.NEW_MOVEMENT
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^NEW MOVEMENT
;;R^"863.3:",.06,"E"
;;D^9999
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^('(+$G(DGPMA)=+$G(DGPM0))&'$L(DGPMP))
;;EOR^
;;KEY^863.3:^PATIENT.ACTIVE MEDS
;;R^"863.3:",.01,"E"
;;D^PATIENT.ACTIVE MEDS
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.06,"E"
;;D^1
;;EOR^
;;KEY^863.3:^LOCAL GLUCOPHAGE MEDS
;;R^"863.3:",.01,"E"
;;D^LOCAL GLUCOPHAGE MEDS
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^("METFORMIN")
;;EOR^
;;KEY^863.3:^PATIENT.TAKING_LITHIUM
;;R^"863.3:",.01,"E"
;;D^PATIENT.TAKING_LITHIUM
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^CURRENT LITHIUM FLAG
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^TAKEMED^ORKPS(|PATIENT IEN|,"^LITHIUM")
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^1
;;EOR^
;;KEY^863.3:^PATIENT.DATE_LAST_LITHIUM_TEST
;;R^"863.3:",.01,"E"
;;D^PATIENT.DATE_LAST_LITHIUM_TEST
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^LAB TEST DATE
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^LOCL^ORQQLR1(|PATIENT IEN|,|LITHIUM LAB TEST NID|,"SERUM SPECIMEN")
;;R^"863.3:","863.32:2",.01,"E"
;;D^OCXO UP-ARROW PIECE NUMBER
;;R^"863.3:","863.32:2",1,"E"
;;D^6
;;EOR^
;;KEY^863.3:^LITHIUM LAB TEST NID
;;R^"863.3:",.01,"E"
;;D^LITHIUM LAB TEST NID
;;R^"863.3:",.05,"E"
;;D^NATIONAL LAB ID
;;R^"863.3:",.06,"E"
;;D^99
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;;D^(0)
;;EOR^
;;KEY^863.3:^PATIENT.TAKING_GLUCOPHAGE
;;R^"863.3:",.01,"E"
;;D^PATIENT.TAKING_GLUCOPHAGE
;;R^"863.3:",.02,"E"
;;D^PATIENT
;;R^"863.3:",.05,"E"
;;D^CURRENT GLUCOPHAGE FLAG
;;R^"863.3:",.06,"E"
;;D^999
;;R^"863.3:","863.32:1",.01,"E"
;;D^OCXO EXTERNAL FUNCTION CALL
;;R^"863.3:","863.32:1",1,"E"
;1;
;