ACKQFIL1 ;BIR/PTD - Update A&SP Files per CO Directive - CONTINUED ;20 Jun 2013 10:49 AM
Source file <ACKQFIL1.m>
action | A | extended action | Ea | event driver | Ed | subscriber | Su | protocol | O | limited protocol | LP | run routine | RR | broker | B | edit | E | server | Se | P | screenman | SM | inquire | I |
Name | Comments | DBIA/ICR reference |
---|---|---|
ADD | ;User wants to add new file entries.
|
|
ORIG | ; For an existing entry, get the original zero node field values.
|
|
CDR | ||
ICD | ||
CPT | ||
MOD | ; Does this code have mofifiers?
; K DIR,X,Y S DIR(0)="Y",DIR("A")="Does this code have modifiers",DIR("?")="Answer YES to add code modifiers; answer NO if there are no modifiers." ; I ACKFNUM=509850.1 S DIR("B")=$S($P(^ACK(509850.1,ACKIEN,0),"^",2)=1:"YES",1:"NO") ; I ACKFNUM=509850.4 S DIR("B")=$S($P(^ACK(509850.4,ACKIEN,0),"^",5)=1:"YES",1:"NO") ; S DIR("??")="^D MOD^ACKQHLP1" W ! D ^DIR K DIR G:$D(DIRUT) CHECK S ACKMOD=+Y ; S DR=$S(ACKFNUM=509850.4:".05",1:".02")_"///^S X=ACKMOD" D ^DIE ; I ACKMOD=0 G CHECK ;Code does not have modifiers. |
|
SUBFL | ; Selected code has modifiers, subfile fields must be answered.
; S (DIC,DIE)="^ACK("_ACKFNUM_","_ACKIEN_",1,",DIC(0)="QEALM",DLAYGO=ACKFNUM,DA(1)=ACKIEN,DIC("P")=$P(^DD(ACKFNUM,1,0),"^",2) D ^DIC K DIC I Y<0 G CHECK ; S (ACKSUB,DA)=+Y,DR=".01T;.02T"_$S(ACKFNUM=509850.4:";.03T",1:"") D ^DIE K DA,DIE,DR G SUBFL |
|
CHECK | ; Determine if all fields have been answered.
; ACKCOMP equals: 1 if all fields answered. ; 0 if zero node fields not answered. ; -1 if subfile fields not answered. |
|
CKCDR | ; Examine CDR ACCOUNT file.
|
|
CKICD | ; Examine A&SP DIAGNOSTIC CONDITION file.
|
|
CKCPT | ; Examine A&SP PROCEDURE CODE file.
|
|
UNLK | ||
DIK | ; All fields not answered for new entry, so delete it.
|
|
KVAR | ; Kill selected variables.
|
|
RESET | ; Existing entry edited, leaving blank fields.
; Restore original value for any blank field on zero node. |
Name | Line Occurrences |
---|---|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Routine Call |
|
Routine Call |
|
Routine Call |
|
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
ACKCOMP | CHECK+4*, CKCDR+2*, CKICD+2*, CKCPT+2*, CKCPT+8, CKCPT+10, CKCPT+12, CKCPT+14, CKCPT+16, KVAR+1! |
>> ACKFNUM | ADD+2, ADD+4, ADD+5, ORIG+1, CDR, ICD, ICD+2, ICD+4, CPT, CHECK+4 , CKCDR+1, CKICD+1, CKCPT+1, CKCPT+8, UNLK, DIK+2, RESET+2 |
ACKHRLOS | ICD+1*, ICD+2*, ICD+5*, KVAR+1! |
ACKICDCS | ADD+3~*, ICD+1 |
>> ACKIEN | ADD+3*, ADD+4, ADD+5, ORIG+1, ICD+2, ICD+4, CHECK+4, UNLK, DIK+2, RESET+2 |
ACKLAYGO | ADD+2*, KVAR+1! |
ACKMOD | KVAR+1! |
ACKNEW | ADD+5*, ORIG+1, CKCPT+10, CKCPT+12, CKCPT+14, KVAR+1!, RESET+2 |
ACKORIG | ORIG+1*, KVAR+1!, RESET+2 |
ACKSUB | CKCPT+10! |
ACKZNODE | CHECK+4*, CKCDR+2, CKICD+2, CKCPT+2, CKCPT+10!, KVAR+1! |
DA | ADD+3*, CDR!, DIK+2*, KVAR+1! |
DIC | ADD+2*!, KVAR+1! |
DIC("A" | ADD+2* |
DIC(0 | ADD+2* |
DIE | ADD+2*, CDR!, KVAR+1! |
DIK | DIK+2*, KVAR+1! |
DIR | ICD+3!, ICD+5!, KVAR+1! |
DIR("?" | ICD+3* |
DIR("??" | ICD+5* |
DIR("A" | ICD+3* |
DIR("B" | ICD+4* |
DIR(0 | ICD+3* |
DIRUT | ICD, ICD+5, KVAR+1! |
DLAYGO | ADD+2*, KVAR+1! |
DR | CDR*!, ICD*, CPT* |
ICDFMT | ADD+1*, ADD+2! |
PC | CKCDR+2*, CKICD+2*, CKCPT+2*, CKCPT+10!, RESET+2 |
X | ICD+3!, KVAR+1! |
Y | ADD+2, ADD+3, ADD+5, ICD+3!, ICD+5, KVAR+1! |