[1484] | 1 | C0Q1P2 ; VEN/SMH - Kids utilities for C0Q 1.0 patch 1 ; 7/13/12 4:13pm
|
---|
| 2 | ;;1.0;QUALITY MEASURES;*1*;July 13, 2112;
|
---|
| 3 | ; Licensed under package license. See Documentation
|
---|
| 4 | ;
|
---|
| 5 | ; PEPs: PRE, TRAN, POST
|
---|
| 6 | ;
|
---|
| 7 | PRE ; Unified Pre; PEP
|
---|
| 8 | D PREREM
|
---|
| 9 | QUIT
|
---|
| 10 | TRAN ; Unified Tran; PEP
|
---|
| 11 | QUIT
|
---|
| 12 | POST ; Unified Post; PEP
|
---|
| 13 | D POSTREM
|
---|
| 14 | QUIT
|
---|
| 15 | ;
|
---|
| 16 | ; Rest of entry points are private
|
---|
| 17 | ;
|
---|
| 18 | ;
|
---|
| 19 | ARRAY(MODE,ARRAY) ;List of exchange entries used by delete and install
|
---|
| 20 | ;
|
---|
| 21 | N LN S LN=1
|
---|
| 22 | ;
|
---|
| 23 | ; NQF 0024-alt-core_wt-kids
|
---|
| 24 | S ARRAY(LN,1)="MU NQF0024 BMI_MK"
|
---|
| 25 | I MODE S ARRAY(LN,2)="07/06/2011@15:11:46"
|
---|
| 26 | S LN=LN+1
|
---|
| 27 | ;
|
---|
| 28 | ; NQF 0013-core-HTN
|
---|
| 29 | S ARRAY(LN,1)="MU NQF0013 HTN_MK"
|
---|
| 30 | I MODE S ARRAY(LN,2)="07/06/2011@15:08:53"
|
---|
| 31 | S LN=LN+1
|
---|
| 32 | ;
|
---|
| 33 | ; NQF 0028a-core-tobacco-access
|
---|
| 34 | ; NQF 0028b-core-tobaocc-intervention
|
---|
| 35 | ; Both are in the first; dialog is in the second.
|
---|
| 36 | S ARRAY(LN,1)="MU NQF0028 TOBACCO_MK"
|
---|
| 37 | I MODE S ARRAY(LN,2)="07/06/2011@15:14:49"
|
---|
| 38 | S LN=LN+1
|
---|
| 39 | S ARRAY(LN,1)="MU NQF0028AB MANAGEMENT DI"
|
---|
| 40 | I MODE S ARRAY(LN,2)="06/08/2011@16:50:31"
|
---|
| 41 | S LN=LN+1
|
---|
| 42 | ;
|
---|
| 43 | ; NQF 0041-alt-core-flu
|
---|
| 44 | S ARRAY(LN,1)="MU NQF0041 FLU_MK"
|
---|
| 45 | I MODE S ARRAY(LN,2)="07/06/2011@15:26:59"
|
---|
| 46 | S LN=LN+1
|
---|
| 47 | Q
|
---|
| 48 | ;
|
---|
| 49 | ;===============================================================
|
---|
| 50 | DELEI ;If the Exchange File entry already exists delete it.
|
---|
| 51 | N ARRAY,IC,IND,LIST,LUVALUE,NUM
|
---|
| 52 | D ARRAY(1,.ARRAY)
|
---|
| 53 | S IC=0
|
---|
| 54 | F S IC=$O(ARRAY(IC)) Q:'IC D
|
---|
| 55 | .S LUVALUE(1)=ARRAY(IC,1)
|
---|
| 56 | .D FIND^DIC(811.8,"","","U",.LUVALUE,"","","","","LIST")
|
---|
| 57 | .I '$D(LIST) Q
|
---|
| 58 | .S NUM=$P(LIST("DILIST",0),U,1)
|
---|
| 59 | .I NUM'=0 D
|
---|
| 60 | ..F IND=1:1:NUM D
|
---|
| 61 | ... N DA,DIK
|
---|
| 62 | ... S DIK="^PXD(811.8,"
|
---|
| 63 | ... S DA=LIST("DILIST",2,IND)
|
---|
| 64 | ... D ^DIK
|
---|
| 65 | Q
|
---|
| 66 | ;
|
---|
| 67 | ;===============================================================
|
---|
| 68 | EXFINC(Y) ;Return a 1 if the Exchange file entry is in the list to
|
---|
| 69 | ;include in the build. This is used in the build to determine which
|
---|
| 70 | ;entries to include.
|
---|
| 71 | N ARRAY,FOUND,IEN,IC,LUVALUE
|
---|
| 72 | D ARRAY(1,.ARRAY)
|
---|
| 73 | S FOUND=0
|
---|
| 74 | S IC=0
|
---|
| 75 | F S IC=+$O(ARRAY(IC)) Q:(IC=0)!(FOUND) D
|
---|
| 76 | . M LUVALUE=ARRAY(IC)
|
---|
| 77 | . S IEN=+$$FIND1^DIC(811.8,"","KU",.LUVALUE)
|
---|
| 78 | . I IEN=Y S FOUND=1 Q
|
---|
| 79 | Q FOUND
|
---|
| 80 | ;
|
---|
| 81 | PREREM ;
|
---|
| 82 | D DELEI
|
---|
| 83 | Q
|
---|
| 84 | POSTREM ;
|
---|
| 85 | D SMEXINS
|
---|
| 86 | Q
|
---|
| 87 | ;===============================================================
|
---|
| 88 | SMEXINS ;Silent mode install.
|
---|
| 89 | N ARRAY,IC,IEN,LUVALUE,PXRMINST
|
---|
| 90 | S PXRMINST=1
|
---|
| 91 | D ARRAY(1,.ARRAY)
|
---|
| 92 | S IC=0
|
---|
| 93 | F S IC=$O(ARRAY(IC)) Q:'IC D
|
---|
| 94 | .M LUVALUE=ARRAY(IC)
|
---|
| 95 | .S IEN=+$$FIND1^DIC(811.8,"","KU",.LUVALUE)
|
---|
| 96 | .I IEN'=0 D
|
---|
| 97 | .. N TEXT
|
---|
| 98 | .. I LUVALUE(1)["PARAMETER" S TEXT="Installing entry "_LUVALUE(1)
|
---|
| 99 | .. E S TEXT="Installing reminder exchange entry "_LUVALUE(1)
|
---|
| 100 | .. D BMES^XPDUTL(TEXT)
|
---|
| 101 | .. D INSTALL^PXRMEXSI(IEN,"I",1)
|
---|
| 102 | Q
|
---|
| 103 | ;
|
---|
| 104 | CRPL(PLNAME,C0QERR) ; Private ; $$ ; Create Patient List
|
---|
| 105 | ; Input: PLNAME: By Value: Patient List Name
|
---|
| 106 | ; C0QERR: By Ref: Error Array
|
---|
| 107 | ; Output: IEN of Patient List, or -1 for error
|
---|
| 108 | N C0QFDA,C0QIENS ; FDA, return IEN
|
---|
| 109 | S C0QFDA(810.5,"?+1,",.01)=PLNAME ; Patient List Name
|
---|
| 110 | S C0QFDA(810.5,"?+1,",.07)="`"_DUZ ; Creator
|
---|
| 111 | S C0QFDA(810.5,"?+1,",.08)="PUB" ; Type: Public
|
---|
| 112 | S C0QFDA(810.5,"?+1,",100)="L" ; Class: Local
|
---|
| 113 | D UPDATE^DIE("E",$NA(C0QFDA),$NA(C0QIENS),$NA(C0QERR)) ; External Flag
|
---|
| 114 | I $G(C0QIENS(1)) QUIT C0QIENS(1)
|
---|
| 115 | E QUIT -1
|
---|