^LEX(757.33,IEN,2,"B",EFF,HIS) - Where IEN is the Internal Entry Number for the Mapping, EFF is the Effective Date of the Mapping and HIS is the Internal Entry Number where the Effective Date is stored in the Status
Histroy sub-file 757.333.
RECORD INDEXES: ACT (#1463) (WHOLE FILE #757.33), AMAPS (#1465) (WHOLE FILE #757.33), G (#1470) (WHOLE FILE #757.33)
This is the status (active or inactive) of the mapping.
FIELD INDEX: ACHGD (#1471) MUMPS IR ACTION
Short Descr: Change Date
Description: The purpose of this action is to populate the CHANGE DATE field #2 of the STATUS HISTORY sub-file #757.333 with the current date and time whenever a status (active or inactive) is added or edited.
Set Logic: S $P(^LEX(757.33,+($G(DA(1))),2,+($G(DA)),0),U,3)=$$NOW^XLFDT
Set Cond: S X=X1(1)'=X2(1)
Kill Logic: Q
X(1): STATUS (757.333,1) (Len 8) (forwards)
Lookup Prompt: Enter Status
RECORD INDEXES: ACT (#1463) (WHOLE FILE #757.33), AMAPS (#1465) (WHOLE FILE #757.33), G (#1470) (WHOLE FILE #757.33)
INPUT TRANSFORM: S %DT="ESTXR" D ^%DT S X=Y K:X<1 X
LAST EDITED: AUG 18, 2008
HELP-PROMPT: (No range limit on date)
DESCRIPTION:
This field contains the timestamp for when the status is changed. It is populated by the ACHGD Cross-Reference (Action) of the STATUS field #1 of the STATUS HISTORY sub-file 757.333.