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

AMQQPOS.m

Go to the documentation of this file.
  1. AMQQPOS ;IHS/CMI/THL - POST INSTALLATION ROUTINE ;
  1. ;;2.0;IHS PCC SUITE;**2**;MAY 14, 2009
  1. ;-----
  1. N X,Y,Z,%,%Z,A,B,I,DFN
  1. I '$D(^AMQQ(1,1)) W !,*7,"You must restore the QMAN globals prior to running this routine!" Q
  1. LAB I $O(^UTILITY("AMQQ",$J,"SAVE",0)) W !! D WAIT^DICD
  1. F DA=0:0 S DA=$O(^UTILITY("AMQQ",$J,"SAVE",DA)) Q:'DA D S DIK="^AMQQ(5," D IX^DIK W "."
  1. .F X=0:0 S X=$O(^UTILITY("AMQQ",$J,"SAVE",DA,X)) Q:'X S Y=$P(^(X),"|"),Z=$P(^(X),"|",2),@Y=Z
  1. K ^UTILITY("AMQQ",$J,"SAVE"),X,Y,Z,DIK,DA,DIC,D
  1. GOLD ; ENTRY POINT TO SYNC-UP V FILES
  1. F X=0:0 S X=$O(^AMQQ(5,X)) Q:'X S Y=^(X,0),Z=$P(Y,U,12) I Z'="" D G1
  1. I $G(^DD(9002226,0,"VR"))<4.2 W !!,"You must install the current version of the TAXONOMY File for QMAN to run properly!!!",!!,*7,*7
  1. I '$D(^DD(9000010.09,1103)) W !!,"If you want to be able to search for lab results, install a version of",!,"the V LAB file which includes field 1103",!!,*7,*7
  1. D BYE
  1. EXIT K %,A,B,C,I,X,Y,Z,DFN,%Z
  1. Q
  1. ;
  1. G1 S (%,B)=$P(Y,U,5)
  1. S %=$G(^AMQQ(1,%,2))
  1. I %="" D BAD Q
  1. I %["AUPNVXAM"!(%["AUPNVNTS") S %=$P(%,";",2) G G11 ;PATCH XXX
  1. S A="AUPNV"_$P(Z,";")_";"
  1. S %=+$P(%,A,2)
  1. G11 S %Z=$P(Z,";",2)
  1. S Z="^AUTT"_$P(Z,";")_"(""C"","""_$P(Z,";",2)_""","""")"
  1. S Z=$O(@Z)
  1. I Z,Z=% Q
  1. I 'Z D BAD Q
  1. S DFN=%
  1. D RESET
  1. Q
  1. ;
  1. MSG W !,$P(Y,U)," (",X,")"
  1. Q
  1. ;
  1. BAD ;
  1. W !,$P(^AMQQ(5,X,0),U)," NOT FOUND IN YOUR DATABASE"
  1. S DIK="^AMQQ(5,"
  1. S DA=X
  1. D ^DIK
  1. K DA,DIK
  1. Q
  1. ;
  1. RESET ; The following lines contain commands that perform hard sets
  1. ; of data global ^AMQQ - An exemption to SAC 6.1.2.3 has been approved
  1. ; by Jim McArthur per memo dated May 17, 1993. This exemption is
  1. S $P(^AMQQ(1,B,0),U,11)=Z
  1. I Z S $P(^(0),U,15)=Z
  1. S A=^AMQQ(1,B,1)
  1. I A'["IMM" S C=" I $D(^(AMQP(0),",%=$P(A,C,2),%="))"_$P(%,"))",2,999),%=Z_%,A=$P(A,C)_C_%,^AMQQ(1,B,1)=A
  1. F I=1,2 S A=^AMQQ(1,B,I),C=$P(^AMQQ(5,X,0),U,12),C=$P(C,";") S:C="EXAM" C="XAM" S C="AUPNV"_C_";",%=$P(A,C,2),%=Z_";"_$P(%,";",2,999),A=$P(A,C)_C_%,^AMQQ(1,B,I)=A
  1. I A["IMM" D IMM
  1. Q
  1. ;
  1. IMM ; Check compound immunization links to see if need to change a dfn
  1. N %A,%B,%C,%D,%E,%F,%I,%LINK
  1. F %I=2:1 S %A=$P($T(IMMUN+%I),";;",2) Q:%A="" D
  1. . S %C=$P(%A,U) F I=1:1 S %D=$P(%C,":",I) Q:%D="" I %D=%Z S %LINK=$P(%A,U,2) D Q
  1. .. F I=1,2 S A=^AMQQ(1,%LINK,I),C="AUPNVIMM;",%=$P(A,C,2),%C=$P(%,";") D S %=%C_";"_$P(%,";",2,999),A=$P(A,C)_C_%,^AMQQ(1,%LINK,I)=A
  1. ... F %E=1:1 S %F=$P(%C,":",%E) Q:%F="" I %F=DFN S $P(%C,":",%E)=Z
  1. Q
  1. ;
  1. BYE ; EXIT MESSAGE
  1. W !!!,"Good news! The installation of Q-Man has been successfully completed."
  1. W !!,"Bad news! You still have some work to do: assign keys and security codes,"
  1. W !,"put the Q-Man options on the menu, and use the Q-Man Managers Utilities."
  1. W !,"If you do not have written instructions, do a Fileman Inquire on the Q-Man"
  1. W !,"entry of the package file.",!!!,*7,*7
  1. Q
  1. ;
  1. IMMUN ; Table of Compound Immunizations - IHS CODE:IHS CODE^QMAN LINK ENTRY
  1. ; DFNs will be changed to reflect current system state
  1. ;;02:03:04:34^180
  1. ;;02:04^186
  1. ;;03:04:34^185
  1. ;;15:17^199
  1. ;;14:17:18^198