SDAMA200 ;BPOIFO/ACS-Scheduling Replacement API Errors and Validation ; 12/13/04 3:13pm
Source file <SDAMA200.m>
Package | Total | Call Graph |
---|---|---|
VA FileMan | 1 | H^%DTC |
action | A | extended action | Ea | event driver | Ed | subscriber | Su | protocol | O | limited protocol | LP | run routine | RR | broker | B | edit | E | server | Se | P | screenman | SM | inquire | I |
Package | Total | Caller Graph |
---|---|---|
Scheduling | 4 | SDAMA201 SDAMA202 SDAMA204 SDAMA205 |
Name | Comments | DBIA/ICR reference |
---|---|---|
VALIDATE(SDIEN,SDFIELDS,SDAPSTAT,SDSTART,SDEND,SDAPINAM,SDRTNNAM,SDIOSTAT) | ;
|
|
ERROR(SDERRNUM,SDAPINAM,SDERRFLG,SDRTNNAM) | ;
|
|
101 | ;;DATABASE IS UNAVAILABLE
|
|
102 | ;;PATIENT ID IS REQUIRED
|
|
103 | ;;INVALID FIELD LIST
|
|
104 | ;;CLINIC ID IS REQUIRED
|
|
105 | ;;INVALID START DATE
|
|
106 | ;;INVALID END DATE
|
|
108 | ;;FACILITY ID IS REQUIRED
|
|
109 | ;;INVALID APPOINTMENT STATUS FILTER
|
|
110 | ;;ID MUST BE NUMERIC
|
|
111 | ;;START DATE CAN'T BE AFTER END DATE
|
|
112 | ;;INVALID PATIENT STATUS FILTER
|
|
113 | ;;APPT STATUS AND PATIENT STATUS FILTER COMBINATION UNSUPPORTED IN VISTA
|
|
114 | ;;INVALID PATIENT ID
|
|
116 | ;;DATA MISMATCH
|
|
117 | ;;SDAPI ERROR
|
|
PATAPPT(SDPATIEN) | ;For a patient IEN, return Boolean value for existence of appointments on ^DPT
|
|
CLNAPPT(SDCLIEN) | ;For a clinic IEN, return Boolean value for existence of appointments on ^SC
|
|
GETCLIEN(SDPATIEN,SDAPPTDT) | ; For a patient and appt date, return the clinic IEN on ^DPT
|
|
GETPTIEN(SDCLIEN,SDAPPTDT,SDPATCNT) | ; For a clinic, appt date, and node, return the patient IEN on ^SC
|
|
GETSDDA(SDCLIEN,SDAPPTDT,SDPATIEN) | ; For a clinic, appt date, and patient, return the SDDA node number on ^SC
|
|
GETASTAT(SDPATIEN,SDAPPTDT) | ;For a patient and appt date, return Appointment Status (N, C, R, or NT)
|
|
GETPSTAT(SDPATIEN,SDAPPTDT) | ;For a patient and appt date, return Patient Status (I or O)
|
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* |
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 |
>> | 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* |
Name | Field # of Occurrence |
---|---|
$T(@SDERRNUM | ERROR+3 |