Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: OCXOCMPH

OCXOCMPH.m

Go to the documentation of this file.
  1. OCXOCMPH ;SLC/RJS,CLA - ORDER CHECK CODE COMPILER (Build GETDF Function) ;10/29/98 12:37
  1. ;;3.0;ORDER ENTRY/RESULTS REPORTING;**32**;Dec 17,1997
  1. ;; ;;ORDER CHECK EXPERT version 1.01 released OCT 29,1998
  1. ;
  1. Q
  1. BLDDF ;
  1. N OCXDF,OCXGDF,OCXDR,OCXHL7
  1. S OCXGDF=$$LINE^OCXOCMP4("GETDF") Q:'OCXGDF
  1. S OCXHL7=$O(^OCXS(860.6,"B","GENERIC HL7 MESSAGE ARRAY",0)) Q:'OCXHL7
  1. ;
  1. S OCXDF=0 F S OCXDF=$O(^TMP("OCXCMP",$J,"DATA FIELD",OCXDF)) Q:'OCXDF D
  1. .S OCXDR=$G(^TMP("OCXCMP",$J,"DATA FIELD",OCXDF,OCXHL7,1))
  1. .I $L(OCXDR) D
  1. ..D IN^OCXOCMP4("GETDF"," "_OCXDR)
  1. ..S ^TMP("OCXCMP",$J,"DATA FIELD",OCXDF,OCXHL7,1)="||NOOP||"
  1. ;
  1. Q
  1. ;
  1. SWAP ;
  1. Q:'$$LINE^OCXOCMP4("SWAPOUT","NAME","ARRAY") 1
  1. D IN^OCXOCMP4("SWAPOUT"," Q:'$L(NAME)")
  1. D IN^OCXOCMP4("SWAPOUT"," K ^TMP(""OCXSWAP"",$J,NAME)")
  1. D IN^OCXOCMP4("SWAPOUT"," S ^TMP(""OCXSWAP"",$J)=($P($H,"","",2)+($H*86400)+(2*60))_"" <- ^TMP ENTRY EXPIRATION DATE FOR ^OCXOPURG""")
  1. D IN^OCXOCMP4("SWAPOUT"," M ^TMP(""OCXSWAP"",$J,NAME)=ARRAY")
  1. D IN^OCXOCMP4("SWAPOUT"," K ARRAY")
  1. ;
  1. Q:'$$LINE^OCXOCMP4("SWAPIN","NAME","ARRAY") 1
  1. D IN^OCXOCMP4("SWAPIN"," Q:'$L(NAME)")
  1. D IN^OCXOCMP4("SWAPIN"," K ARRAY")
  1. D IN^OCXOCMP4("SWAPIN"," M ARRAY=^TMP(""OCXSWAP"",$J,NAME)")
  1. D IN^OCXOCMP4("SWAPIN"," K ^TMP(""OCXSWAP"",$J,NAME)")
  1. ;
  1. Q
  1. ;