Changeset 1484
- Timestamp:
- Jul 13, 2012, 7:25:21 PM (12 years ago)
- Location:
- qrda/C0Q/trunk/p
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
qrda/C0Q/trunk/p/C0QKIDS.m
r1465 r1484 1 C0QKIDS ; VEN/SMH - Kids Utilities for transporting C0Q data ; 7/ 3/12 8:38am1 C0QKIDS ; VEN/SMH - Kids Utilities for transporting C0Q data ; 7/13/12 11:49am 2 2 ;;1.0;C0Q;;May 21, 2012;Build 47 3 3 ; Licensed under package license. See Documentation. … … 6 6 ; 7 7 PRE ; Unified Pre; PEP 8 D PREREM9 8 QUIT 10 9 TRAN ; Unified Transport; PEP … … 16 15 D POST101 17 16 D POST201 18 D POSTREM19 17 QUIT 20 18 ; … … 108 106 ; Code below taken from PXRMP15I 109 107 ;=============================================================== 110 ARRAY(MODE,ARRAY) ;List of exchange entries used by delete and install111 ;112 S ARRAY(1,1)="MU NQF0024 BMI_MK"113 I MODE S ARRAY(1,2)="07/06/2011@15:11:46"114 Q115 ;116 ;===============================================================117 DELEI ;If the Exchange File entry already exists delete it.118 N ARRAY,IC,IND,LIST,LUVALUE,NUM119 D ARRAY(1,.ARRAY)120 S IC=0121 F S IC=$O(ARRAY(IC)) Q:'IC D122 .S LUVALUE(1)=ARRAY(IC,1)123 .D FIND^DIC(811.8,"","","U",.LUVALUE,"","","","","LIST")124 .I '$D(LIST) Q125 .S NUM=$P(LIST("DILIST",0),U,1)126 .I NUM'=0 D127 ..F IND=1:1:NUM D128 ... N DA,DIK129 ... S DIK="^PXD(811.8,"130 ... S DA=LIST("DILIST",2,IND)131 ... D ^DIK132 Q133 ;134 ;===============================================================135 EXFINC(Y) ;Return a 1 if the Exchange file entry is in the list to136 ;include in the build. This is used in the build to determine which137 ;entries to include.138 N ARRAY,FOUND,IEN,IC,LUVALUE139 D ARRAY(1,.ARRAY)140 S FOUND=0141 S IC=0142 F S IC=+$O(ARRAY(IC)) Q:(IC=0)!(FOUND) D143 . M LUVALUE=ARRAY(IC)144 . S IEN=+$$FIND1^DIC(811.8,"","KU",.LUVALUE)145 . I IEN=Y S FOUND=1 Q146 Q FOUND147 ;148 PREREM ;149 D DELEI150 Q151 POSTREM ;152 D SMEXINS153 Q154 ;===============================================================155 SMEXINS ;Silent mode install.156 N ARRAY,IC,IEN,LUVALUE,PXRMINST157 S PXRMINST=1158 D ARRAY(1,.ARRAY)159 S IC=0160 F S IC=$O(ARRAY(IC)) Q:'IC D161 .M LUVALUE=ARRAY(IC)162 .S IEN=+$$FIND1^DIC(811.8,"","KU",.LUVALUE)163 .I IEN'=0 D164 .. N TEXT165 .. I LUVALUE(1)["PARAMETER" S TEXT="Installing entry "_LUVALUE(1)166 .. E S TEXT="Installing reminder "_LUVALUE(1)167 .. D BMES^XPDUTL(TEXT)168 .. D INSTALL^PXRMEXSI(IEN,"I",1)169 Q170 ;171 CRPL(PLNAME,C0QERR) ; Private ; $$ ; Create Patient List172 ; Input: PLNAME: By Value: Patient List Name173 ; C0QERR: By Ref: Error Array174 ; Output: IEN of Patient List, or -1 for error175 N C0QFDA,C0QIENS ; FDA, return IEN176 S C0QFDA(810.5,"?+1,",.01)=PLNAME ; Patient List Name177 S C0QFDA(810.5,"?+1,",.07)="`"_DUZ ; Creator178 S C0QFDA(810.5,"?+1,",.08)="PUB" ; Type: Public179 S C0QFDA(810.5,"?+1,",100)="L" ; Class: Local180 D UPDATE^DIE("E",$NA(C0QFDA),$NA(C0QIENS),$NA(C0QERR)) ; External Flag181 I $G(C0QIENS(1)) QUIT C0QIENS(1)182 E QUIT -1
Note:
See TracChangeset
for help on using the changeset viewer.