DGADDUTL ;ALB/PHH,EG,BAJ,ERC,CKN,TDM,LBD,JAM,ARF - PATIENT ADDRESS ; 19 Jul 2017 3:03 PM
Source file <DGADDUTL.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
ADDR | ; validate/edit Patient address (entry for DG ADDRESS UPDATE option)
|
|
ADDRLOOP | ;
|
|
ADD(DFN) | ; validate/edit Patient address (entry point for routine DGREG)
; Input -- DFN |
|
ADDYN(PROMPT) | ; Yes/No Prompt to Edit/Validate Address
; Input -- None ; Output -- 1 = YES ; 2 = NO ; -1 = Aborted |
|
UPDATE(DFN,TYPE) | ; Update the Address
; Input -- TYPE = "PERM" for Permanent Address ; = "TEMP" for Temporary Address ; Output -- None ; |
|
UPDDTTM(DFN,TYPE) | ; Update the PATIENT file #2 with the current date and time
|
|
ADDRED(DFN,FLG) | ; Address Edit (Code copied from DGREGAED and modified)
|
|
GETPRIOR(DFN,DGPRIOR) | ; Get prior address fields.
|
|
GETUPDTS(DFN,DGINPUT) | ; Get current address fields.
|
|
FILEYN(DGOLD,DGNEW) | ; Determine whether or not to file to #301.7
|
|
FOREIGN(DFN,CIEN,FILE,FIELD,COUNTRY) | ;
; ** NOTE we have to default the value for "US" into the prompt if it is blank |
|
UPDADDLG(DFN,DGPRIOR,DGINPUT) | ; Update the IVM ADDRESS CHANGE LOG file #301.7
|
|
EDITTADR(DFN) | ; Edit Temporary Address
|
|
GETTADR(DFN,DGPRIOR) | ; Get prior temporary address fields.
|
|
DISPTADR(DFN,DGARRY) | ; Display Temporary Address
|
|
COUNTRY(DGC) | ;
|
|
FOR(DGC) | ;returns a 1 if address is foreign, a 0 if domestic, -1 if DGC is not valid
; DGC is the external value of the country (.01 field of file 779.004) |
|
CNTRYI(DGIEN) | ;where DGC is the internal value of the country
|
|
FORIEN(DGC) | ;returns a 1 if address is foreign, a 0 if domestic, -1 if DGC is invalid
|
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 |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
FileNo | Call Tags |
---|---|
^DPT - [#2] | Classic Fileman Calls, GETS^DIQ |