SDECAPI4 ;ALB/SAT - VISTA SCHEDULING RPCS ;JAN 15, 2016
Source file <SDECAPI4.m>
| Name | Comments | DBIA/ICR reference |
|---|---|---|
| GETVISIT(BSDIN,BSDOUT) | ;Private Entry Point
; >> All date/time variables must be in FileMan internal format ; Special Incoming Variables: ; BSDIN("FORCE ADD") = 1 ; no matter what, create new visit (Optional) ; BSDIN ("NEVER ADD") = 1 ; never add visit, just try to find one or more (Optional) ; BSDIN("ANCILLARY") = 1 ; for ancillary packages to create noon visit if no match found (Optional) ; BSDIN("SHOW VISITS") = 1 ; this will display visits if more than one match ; Incoming Variables used in Matching: REQUIRED ; BSDIN("PAT") = patient IEN (file 2 or 9000001) ; BSDIN("VISIT DATE") = visit date & time (same as check-in date & time) ; BSDIN ("SITE") = location of encounter IEN (file 4 or 9999999.06) ; BSDIN("VISIT TYPE") = internal value for field .03 in Visit file ; BSDIN("SRV CAT") = internal value for service category ; BSDIN("TIME RANGE") = # ; range in minutes for matching on visit time; REQUIRED unless FORCE ADD set ; ; zero=exact matches only; -1=don't match on time ; These are used to match if sent (Optional) ; BSDIN("PROVIDER") = IEN for provider to match from file 200 ; BSDIN("CLINIC CODE") = IEN of clinic stop code (file 40.7) ; BSDIN("HOS LOC") = IEN of hospital location (file 44, field .22 in VISIT file) ; BSDIN("DEF CC") = IEN of default clinic code for package making call PATCH 1009 ; BSDIN("DEF HL") = IEN of default hospital location for package making call PATCH 1009 ; Incoming Variables used in creating appt and visit ; BSDIN("APPT DATE") = appt date & time (Required for scheduled appts and walk-ins; check-in will be performed) ; BSDIN("USR") = user IEN in file 200; REQUIRED ; BSDIN("OPT") = name for Option Used To Create field, for check-in only (Optional) ; BSDIN("OI") = reason for appointment; for walk-ins (Optional) ; Incoming PCC variables for adding additional info to visit (Optional) ; BSDIN("SDTPB") = Third Party Billed (#.04) ; BSDIN("SDPVL") = Parent Visit Link (#.12) ; BSDIN("SDAPPT") = WalkIn/Appt (#.16) ; BSDIN("SDEVM") = Evaluation and Management Code (#.17) ; BSDIN("SDCODT") = Check Out Date & Time (#.18) ; BSDIN("SDLS") = Level of Service -PCC Form (#.19). ; BSDIN("SDVELG") = Eligibility (#.21) ; BSDIN("SDPROT") = Protocol (#.25). ; BSDIN("SDOPT") = Option Used To Create (#.24) ; BSDIN("SDOLOC") = Outside Location (#2101) ; Outgoing Array: ; BSDOUT(0) always set; if = 0 none found and may have error message in 2nd piece ; if = 1 and BSDOUT(visit ien)="ADD" new visit just created ; if = 1 and BSDOUT(visit ien)=#; # is time difference in minutes ; if >1, multiple BSDOUT(visit ien) entries exist |
|
| APPTDT | ;
|
|
| MATCH(IN,OUT) | ; find matching visits based on IN array
|
|
| PRVMTCH() | ; do visits match on provider?
|
|
| TIMEDIF(VDTTM,VIEN) | ; return time diff between incoming time and current visit
|
|
| ADDVIST(BSDTMP,BSDOUT) | ||
| WALKIN(BSDATA,OUT) | ;EP; create walkin appt which is checked in and visit created
; also called by BSDAPI3 to create ancillary walkin appt |
|
| HAVEREQ(IN,OUT) | ; check required fields
|
|
| TIME(RANGE,VISIT,DATE,END) | ; set DATE and END based on TIME RANGE setting in minutes
|
|
| TRIAGE(VST) | ; returns 1 if visit's hosp loc is triage type
|
| FileNo | Call Tags |
|---|---|
| ^SC - [#44] | GET1^DIQ |
| ^AUPNVSIT - [#9000010] | GET1^DIQ |