HELP-PROMPT: Enter a code from the selected coding system, 1 to 40 characters.
DESCRIPTION: This is a code such as ICD-9, CPT, SNOMED CT, etc.
NOTES: XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER
CROSS-REFERENCE: ^^TRIGGER^9999999.18^2
1)= K DIV S DIV=X,D0=DA(1),DIV(0)=D0,D1=DA,DIV(1)=D1 S Y(1)=$S($D(^AUTTEXAM(D0,210,D1,0)):^(0),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X=DIV N %I,%H,% D NOW^%DTC S X=% X ^DD(9999999.18,1,1,1,1.4)
1.4)= S DIH=$G(^AUTTEXAM(DIV(0),210,DIV(1),0)),DIV=X S $P(^(0),U,3)=DIV,DIH=9999999.18,DIG=2 D ^DICR
2)= K DIV S DIV=X,D0=DA(1),DIV(0)=D0,D1=DA,DIV(1)=D1 S Y(1)=$S($D(^AUTTEXAM(D0,210,D1,0)):^(0),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X="" X ^DD(9999999.18,1,1,1,2.4)
2.4)= S DIH=$G(^AUTTEXAM(DIV(0),210,DIV(1),0)),DIV=X S $P(^(0),U,3)=DIV,DIH=9999999.18,DIG=2 D ^DICR
CREATE VALUE)= NOW
DELETE VALUE)= @
FIELD)= DATE MAPPED
When a code is mapped automatically set the date and time it was mapped.
INPUT TRANSFORM: S %DT="ESTX" D ^%DT S X=Y K:Y<1 X
LAST EDITED: JAN 22, 2019
HELP-PROMPT: Enter the date and time when the code was linked.
DESCRIPTION: This is the date and time the mapped code was linked to existing patient data. This field should not be edited, it is set automatically when the linking is done.