Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Global Variables Directly Accessed |  Label References |  Local Variables |  Marked Items |  All
Print Page as PDF
Routine: SDAMA200

Package: Scheduling

Routine: SDAMA200


Information

SDAMA200 ;BPOIFO/ACS-Scheduling Replacement API Errors and Validation ; 12/13/04 3:13pm

Source Information

Source file <SDAMA200.m>

Call Graph

Call Graph Total: 1

Package Total Call Graph
VA Fileman 1 H^%DTC  

Caller Graph

Caller Graph Total: 4

Package Total Caller Graph
Scheduling 4 SDAMA201  SDAMA202  SDAMA204  SDAMA205  

Entry Points

Name Comments DBIA/ICR reference
114 ;;INVALID PATIENT ID
117 ;;SDAPI ERROR
116 ;;DATA MISMATCH
111 ;;START DATE CAN'T BE AFTER END DATE
110 ;;ID MUST BE NUMERIC
113 ;;APPT STATUS AND PATIENT STATUS FILTER COMBINATION UNSUPPORTED IN VISTA
112 ;;INVALID PATIENT STATUS FILTER
ERROR(SDERRNUM,SDAPINAM,SDERRFLG,SDRTNNAM) ;
GETPSTAT(SDPATIEN,SDAPPTDT) ;For a patient and appt date, return Patient Status (I or O)
GETASTAT(SDPATIEN,SDAPPTDT) ;For a patient and appt date, return Appointment Status (N, C, R, or NT)
PATAPPT(SDPATIEN) ;For a patient IEN, return Boolean value for existence of appointments on ^DPT
GETPTIEN(SDCLIEN,SDAPPTDT,SDPATCNT) ; For a clinic, appt date, and node, return the patient IEN on ^SC
GETCLIEN(SDPATIEN,SDAPPTDT) ; For a patient and appt date, return the clinic IEN on ^DPT
CLNAPPT(SDCLIEN) ;For a clinic IEN, return Boolean value for existence of appointments on ^SC
108 ;;FACILITY ID IS REQUIRED
109 ;;INVALID APPOINTMENT STATUS FILTER
VALIDATE(SDIEN,SDFIELDS,SDAPSTAT,SDSTART,SDEND,SDAPINAM,SDRTNNAM,SDIOSTAT) ;
102 ;;PATIENT ID IS REQUIRED
103 ;;INVALID FIELD LIST
101 ;;DATABASE IS UNAVAILABLE
106 ;;INVALID END DATE
104 ;;CLINIC ID IS REQUIRED
105 ;;INVALID START DATE
GETSDDA(SDCLIEN,SDAPPTDT,SDPATIEN) ; For a clinic, appt date, and patient, return the SDDA node number on ^SC

External References

Name Field # of Occurrence
H^%DTC VALIDATE+31, VALIDATE+35

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^DPT - [#2] PATAPPT+1, GETCLIEN+1, GETASTAT+2, GETPSTAT+2
^SC - [#44] CLNAPPT+1, GETPTIEN+1, GETSDDA+3, GETSDDA+5
^SDAM(44.3 - [#44.3] VALIDATE+61, VALIDATE+64
^TMP($J ERROR+3*

Label References

Name Line Occurrences
ERROR VALIDATE+5, VALIDATE+6, VALIDATE+18, VALIDATE+19, VALIDATE+30, VALIDATE+31, VALIDATE+34, VALIDATE+35, VALIDATE+39, VALIDATE+45
, VALIDATE+49, VALIDATE+60, VALIDATE+61, VALIDATE+71, VALIDATE+72, VALIDATE+78, VALIDATE+79

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
%H VALIDATE+27~, VALIDATE+31, VALIDATE+35
%T VALIDATE+27~
%Y VALIDATE+27~
SDAPINAM VALIDATE~, VALIDATE+5, VALIDATE+6, VALIDATE+18, VALIDATE+19, VALIDATE+30, VALIDATE+31, VALIDATE+34, VALIDATE+35, VALIDATE+39
, VALIDATE+45, VALIDATE+49, VALIDATE+60, VALIDATE+61, VALIDATE+63, VALIDATE+71, VALIDATE+72, VALIDATE+78, VALIDATE+79, ERROR~
, ERROR+3
SDAPPTDT GETCLIEN~, GETCLIEN+1, GETPTIEN~, GETPTIEN+1, GETSDDA~, GETSDDA+3, GETSDDA+5, GETASTAT~, GETASTAT+2, GETPSTAT~
, GETPSTAT+2
SDAPSTAT VALIDATE~, VALIDATE+9, VALIDATE+14, VALIDATE+17, VALIDATE+22*, VALIDATE+24*, VALIDATE+78, VALIDATE+79
SDAPVAL VALIDATE+11~, VALIDATE+17*, VALIDATE+18, VALIDATE+19, VALIDATE+21
SDCLIEN CLNAPPT~, CLNAPPT+1, GETPTIEN~, GETPTIEN+1, GETSDDA~, GETSDDA+3, GETSDDA+5
SDEND VALIDATE~, VALIDATE+33, VALIDATE+34, VALIDATE+35, VALIDATE+39, VALIDATE+52~, VALIDATE+53*, VALIDATE+59, VALIDATE+60*, VALIDATE+61*
SDENDVAL VALIDATE+27~, VALIDATE+28*, VALIDATE+36*, VALIDATE+38
SDERRFLG VALIDATE+2~, VALIDATE+3*, VALIDATE+5, VALIDATE+6, VALIDATE+18, VALIDATE+19, VALIDATE+30, VALIDATE+31, VALIDATE+34, VALIDATE+35
, VALIDATE+39, VALIDATE+45, VALIDATE+49, VALIDATE+60, VALIDATE+61, VALIDATE+71, VALIDATE+72, VALIDATE+78, VALIDATE+79, VALIDATE+81
, ERROR~, ERROR+2*
SDERRNUM ERROR~, ERROR+3
SDFIELD VALIDATE+52~, VALIDATE+53*, VALIDATE+59*, VALIDATE+60, VALIDATE+61
SDFIELDS VALIDATE~, VALIDATE+42, VALIDATE+43, VALIDATE+44*, VALIDATE+45, VALIDATE+46, VALIDATE+47, VALIDATE+48*, VALIDATE+49, VALIDATE+55
, VALIDATE+57, VALIDATE+59, VALIDATE+63, VALIDATE+65*, VALIDATE+67*
SDI VALIDATE+52~, VALIDATE+53*, VALIDATE+59*, VALIDATE+63*, VALIDATE+64*, VALIDATE+65
SDIEN VALIDATE~, VALIDATE+5, VALIDATE+6
SDIOSTAT VALIDATE~, VALIDATE+70, VALIDATE+71, VALIDATE+72, VALIDATE+74*, VALIDATE+78, VALIDATE+79
SDMATCH GETSDDA+1~, GETSDDA+2*, GETSDDA+3, GETSDDA+5*
SDNEWAP VALIDATE+11~, VALIDATE+15*, VALIDATE+21*, VALIDATE+22
SDNUM VALIDATE+11~, VALIDATE+14*, VALIDATE+17, VALIDATE+52~, VALIDATE+53*, VALIDATE+57*, VALIDATE+59
SDPATCNT GETPTIEN~, GETPTIEN+1, GETSDDA+1~, GETSDDA+2*, GETSDDA+3*, GETSDDA+4, GETSDDA+5, GETSDDA+6
SDPATIEN PATAPPT~, PATAPPT+1, GETCLIEN~, GETCLIEN+1, GETSDDA~, GETSDDA+5, GETASTAT~, GETASTAT+2, GETPSTAT~, GETPSTAT+2
SDPIECE VALIDATE+11~, VALIDATE+17*
SDQUIT VALIDATE+11~, VALIDATE+12*, VALIDATE+17, VALIDATE+18*, VALIDATE+19*
SDRTNNAM VALIDATE~, VALIDATE+5, VALIDATE+6, VALIDATE+18, VALIDATE+19, VALIDATE+30, VALIDATE+31, VALIDATE+34, VALIDATE+35, VALIDATE+39
, VALIDATE+45, VALIDATE+49, VALIDATE+60, VALIDATE+61, VALIDATE+71, VALIDATE+72, VALIDATE+78, VALIDATE+79, ERROR~, ERROR+3
SDSTART VALIDATE~, VALIDATE+29, VALIDATE+30, VALIDATE+31, VALIDATE+39
SDSTAT GETASTAT+1~, GETASTAT+2*, GETASTAT+3*, GETASTAT+4, GETPSTAT+1~, GETPSTAT+2*, GETPSTAT+3*, GETPSTAT+4
SDSTVAL VALIDATE+27~, VALIDATE+28*, VALIDATE+32*, VALIDATE+38
X VALIDATE+27~, VALIDATE+31*, VALIDATE+35*

Marked Items

Name Field # of Occurrence
$T(@SDERRNUM ERROR+3
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Global Variables Directly Accessed |  Label References |  Local Variables |  Marked Items |  All