JAL FEDERAL HEALTH CARE CENTER |
FILEPSSN (a subroutine of JVDGF) is used whenever the
Single Patient Registration needs to generate a pseudoSSN.
FILEPSSN ; create pseudo SSN
N DPTIDS,DPTX,ZTQUEUED
N X,Y S X=TMPFDA(2,.03) D ^%DT
S ZTQUEUED=1,DPTIDS(.03)=Y,DPTX=TMPFDA(2,.01)
S X=XSN D SSN^DGRPDD1 ; call to legacy code.
I X?9N1"P" S XSN=X
I X'?9N1"P" D
. S XSN=""
. S DGOUT(1)="ERR^Patient Record NOT CREATED"
. S DGOUT(2)="pseudoSSN could not be generated"
;
Q
The line of code calls the component:
S X=XSN D SSN^DGRPDD1 ; call to legacy code.
|