VistA Analysis » VistA Reference » RPCs » DSIC GET VISITS APPOINTMENT


This will call the DSIC GET SCHED APPTS rpc to get the scheduledappointments for the user inputted date range. It uses SELECTED^VSIT to find all visits. It uses IN5^VADPT to get the current admission. It will also get historical admission data, but manipulate the hospital location pointer values to the Visit LOCATION (#9999999.06) file,that points to the INSTITUTION (#4) file.


Property Value
Label VSIT
MUMPS Implementation DSICVT0

Input Parameters

Name Type Maximum Data Length Required Description
DATA LITERAL   true DATA - required - DFN ^ BEG ^ END ^ ZLOC ^ FLG ^ MODS ^ CAT DFN - required - pointer to file 2 BEG - optional - starting Fileman date/time END - optional - ending fileman date/time - default = DT+.5 ZLOC - optional - clinic, either name or file 44 ien retained for backwards compatibility FLG - optional - type of appts to return 0 - active/kept appts (past) - default 1 - future appts only 2 - both past and future appts MODS - optional - string of codes determine which encounters to return default value = ASV MODS["A" - return current admission regardless of date MODS["S" - return schedule appts MODS["V" - return visit file entries (#9000010) CAT - optional - default value is 0 screen visits by service category 1 - return all visits 0 or <null> - do not return historical type visits
SCR LIST 250 true SCR - optional - added 7/3/2002 - sgm passed by reference format: SCR(subscript) = code ^ value where code = C for hospital location #44 D for medical center division #40.8 S for 3-digit stop code from file 40.7 (not ien) value = for codes C,D - any unique lookup value or ien for code S - 3-digit stop code (not ien to 40.7)

Document generated on August 31st 2022, 2:55:43 pm