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

ORY116.m

Go to the documentation of this file.
  1. ORY116 ;SLC/MKB -- postinit rtn for OR*3*116 ;9/27/01 16:39 [11/27/01 1:28pm]
  1. ;;3.0;ORDER ENTRY/RESULTS REPORTING;**116**;Dec 17, 1997
  1. ;
  1. PRE ; -- preinit
  1. Q
  1. ;
  1. POST ; -- postinit
  1. N NAME,DLG,VER
  1. S VER=$P($T(VERSION^ORY116),";",3)
  1. F NAME="PSJ OR PAT OE","PSO OERR","PSO SUPPLY","PS MEDS" S DLG=+$O(^ORD(101.41,"AB",NAME,0)) S:DLG ^ORD(101.41,DLG,7)="D SC^ORCDPS3" ;Set VALIDATION field for medication dialogs
  1. D DLGS
  1. D SURGRPT
  1. D MAIL
  1. Q
  1. ;
  1. DLGS ; -- Look for local dialogs that will need to be updated
  1. N PSJ,PSO,PSS,ORPKG,ORDLG,OR0,ORZ,CNT
  1. S PSJ=+$O(^DIC(9.4,"C","PSJ",0)),PSO=+$O(^DIC(9.4,"C","PSO",0))
  1. S PSS=+$O(^DIC(9.4,"C","PSS",0))
  1. S ORZ(1)="The VALIDATION field has been populated for the medication dialogs"
  1. S ORZ(2)="PSJ OR PAT OE, PSO OERR, PSO SUPPLY, and PS MEDS with this patch;"
  1. S ORZ(3)="please review the following local copies of these dialogs:"
  1. S CNT=3 F ORPKG=PSJ,PSO,PSS S ORDLG=0 D
  1. . F S ORDLG=+$O(^ORD(101.41,"APKG",ORPKG,ORDLG)) Q:ORDLG'>0 D
  1. .. S OR0=$G(^ORD(101.41,ORDLG,0)) Q:$P(OR0,U,4)'="D" ;ck dialogs only
  1. .. I ORPKG=PSJ Q:$P(OR0,U)="PSJ OR PAT OE"
  1. .. I ORPKG=PSO Q:$P(OR0,U)="PSO OERR" Q:$P(OR0,U)="PSO SUPPLY"
  1. .. I ORPKG=PSS Q:$P(OR0,U)="PS MEDS"
  1. .. S CNT=CNT+1,ORZ(CNT)=$J(ORDLG,7)_" "_$P(OR0,U)
  1. DLG1 I $O(ORZ(3)) D ;send bulletin
  1. . N XMDUZ,XMY,I,XMSUB,XMTEXT,DIFROM
  1. . S XMDUZ="PATCH OR*3*116 INSTALLATION",XMY(.5)="" S:$G(DUZ) XMY(DUZ)=""
  1. . ;I '$G(DUZ) S I=$G(^XTMP("OR94","DUZ")) S:I XMY(I)=""
  1. . S XMSUB="PATCH OR*3*116 INSTALLATION COMPLETED"
  1. . S XMTEXT="ORZ(" D ^XMD
  1. . D BMES^XPDUTL("The order dialogs for medications have been modified in this patch;")
  1. . D MES^XPDUTL("a bulletin has been sent to the installer listing local copies that")
  1. . D MES^XPDUTL("may need to be reviewed and updated.")
  1. Q
  1. ;
  1. DLGSEND(NAME) ; -- Return true if the order dialog should be sent
  1. I NAME="PS MEDS" Q 1
  1. I NAME="PSJ OR PAT OE" Q 1
  1. I NAME="PSO OERR" Q 1
  1. I NAME="PSO SUPPLY" Q 1
  1. Q 0
  1. SURGRPT ; Should surgery report be available? (RV)
  1. N ORP,ORT,ORS,ORLST,ORERR
  1. S ORP="ORWRP REPORT LIST",ORT=$O(^ORD(101.24,"B","ORRP SURGERIES",0))
  1. I $$PATCH^XPDUTL("SR*3.0*100"),(+ORT) D
  1. . D GETLST^XPAR(.ORLST,"PKG","ORWRP REPORT LIST","Q",.ORERR)
  1. . S ORS=+ORLST(ORLST)+5
  1. . D PUT^XPAR("PKG",ORP,ORS,ORT)
  1. Q
  1. ;
  1. MAIL ; send bulletin of installation time
  1. N COUNT,DIFROM,I,START,TEXT,XMDUZ,XMSUB,XMTEXT,XMY
  1. S COUNT=0
  1. S XMSUB="Version "_$P($T(VERSION),";;",2)_" Installed"
  1. S XMDUZ="CPRS PACKAGE"
  1. F I="G.CPRS GUI INSTALL@DOMAIN.NAME",DUZ S XMY(I)=""
  1. S XMTEXT="TEXT("
  1. ;
  1. S X=$P($T(VERSION),";;",2)
  1. D LINE("Version "_X_" has been installed.")
  1. D LINE(" ")
  1. D LINE("Install complete: "_$$FMTE^XLFDT($$NOW^XLFDT()))
  1. ;
  1. D ^XMD
  1. Q
  1. ;
  1. LINE(DATA) ; set text into array
  1. S COUNT=COUNT+1
  1. S TEXT(COUNT)=DATA
  1. Q
  1. ;
  1. VERSION ;;17.7