Remote Procedure Calls (OSEHRA/MDWS/Scheduling) RPC Definition and sample results from command line invocation My comments Test Results NAME: SD GET PATIENT APPOINTMENTS NUMBER: 2934 TAG: GETAPTS RETURN VALUE TYPE: ARRAY VERSION: 1 INPUT PARAMETER: DFN MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 1 INPUT PARAMETER: DATE REQUIRED: NO Retrieves data from PATIENT:APPOINTMENT ROUTINE: SDMRPC1 AVAILABILITY: SUBSCRIPTION PARAMETER TYPE: LITERAL REQUIRED: YES PARAMETER TYPE: LIST SEQUENCE NUMBER: 2 (2.98) No date returns all appointments CPM>N RETVAL D GETAPTS^SDMRPC1(.RETVAL,100022) ZW RETVAL ... RETVAL(2080)="RESULT(""APT"",3130225.13,""APPOINTMENT DATE/TIME"")=3130225.13^FE B 25, 2013@13:00" RETVAL(2081)="RESULT(""APT"",3130225.13,""APPOINTMENT TYPE"")=9^REGULAR" RETVAL(2082)="RESULT(""APT"",3130225.13,""APPOINTMENT TYPE SUB-CATEGORY"")=0^" RETVAL(2083)="RESULT(""APT"",3130225.13,""APPT. CANCELLED"")=" RETVAL(2084)="RESULT(""APT"",3130225.13,""AUTO-REBOOKED APPT. DATE/TIME"")=" RETVAL(2085)="RESULT(""APT"",3130225.13,""CANCELLATION REASON"")=" RETVAL(2086)="RESULT(""APT"",3130225.13,""CANCELLATION REMARKS"")=" RETVAL(2087)="RESULT(""APT"",3130225.13,""CLINIC"")=426^TEST ONE" RETVAL(2088)="RESULT(""APT"",3130225.13,""COLLATERAL VISIT"")=" RETVAL(2089)="RESULT(""APT"",3130225.13,""CURRENT STATUS"")=INPATIENT/FUTURE^INP ATIENT/FUTURE" RETVAL(2090)="RESULT(""APT"",3130225.13,""DATA ENTRY CLERK"")=10000000391^THOMPS ON,ANDREW" RETVAL(2091)="RESULT(""APT"",3130225.13,""DATE APPT. MADE"")=3130222^FEB 22, 201 3" RETVAL(2092)="RESULT(""APT"",3130225.13,""DESIRED DATE OF APPOINTMENT"")=3130222 ^FEB 22, 2013" RETVAL(2093)="RESULT(""APT"",3130225.13,""EKG DATE/TIME"")=" RETVAL(2094)="RESULT(""APT"",3130225.13,""ENCOUNTER CONVERSION STATUS"")=" RETVAL(2095)="RESULT(""APT"",3130225.13,""ENCOUNTER FORMS AS ADD-ONS"")=" RETVAL(2096)="RESULT(""APT"",3130225.13,""ENCOUNTER FORMS PRINTED"")=" RETVAL(2097)="RESULT(""APT"",3130225.13,""FOLLOW-UP VISIT"")=1^YES" RETVAL(2098)="RESULT(""APT"",3130225.13,""LAB DATE/TIME"")=" RETVAL(2099)="RESULT(""APT"",3130225.13,""NEXT AVA. APPT. INDICATOR"")=1^'NEXT A VA.' APPT. INDICATED BY USER" RETVAL(2100)="RESULT(""APT"",3130225.13,""NO-SHOW/CANCEL DATE/TIME"")=" RETVAL(2101)="RESULT(""APT"",3130225.13,""NO-SHOW/CANCELLED BY"")=" RETVAL(2102)="RESULT(""APT"",3130225.13,""NUMBER OF COLLATERAL SEEN"")=" RETVAL(2103)="RESULT(""APT"",3130225.13,""OUTPATIENT ENCOUNTER"")=" RETVAL(2104)="RESULT(""APT"",3130225.13,""PURPOSE OF VISIT"")=3^SCHEDULED VISIT" RETVAL(2105)="RESULT(""APT"",3130225.13,""REAL APPOINTMENT"")=0^0" RETVAL(2106)="RESULT(""APT"",3130225.13,""ROUTING SLIP PRINT DATE"")=" RETVAL(2107)="RESULT(""APT"",3130225.13,""ROUTING SLIP PRINTED"")=" RETVAL(2108)="RESULT(""APT"",3130225.13,""SCHEDULING REQUEST TYPE"")=N^'NEXT AVA ILABLE' APPT." RETVAL(2109)="RESULT(""APT"",3130225.13,""SPECIAL SURVEY DISPOSITION"")=" RETVAL(2110)="RESULT(""APT"",3130225.13,""STATUS"")=I^INPATIENT APPOINTMENT" RETVAL(2111)="RESULT(""APT"",3130225.13,""TELEPHONE OF CLINIC"")=" RETVAL(2112)="RESULT(""APT"",3130225.13,""X-RAY DATE/TIME"")=" Has appointment on 2/25 CPM>N RETVAL D GETAPTS^SDMRPC1(.RETVAL,100022,3130225) ZW RETVAL RETVAL(1)=1 Date & time returns single appointment data CPM>N RETVAL D GETAPTS^SDMRPC1(.RETVAL,100022,3130225.13) ZW RETVAL RETVAL(1)="RESULT(""APT"",3130225.13,""APPOINTMENT DATE/TIME"")=3130225.13^FEB 2 5, 2013@13:00" RETVAL(2)="RESULT(""APT"",3130225.13,""APPOINTMENT TYPE"")=9^REGULAR" RETVAL(3)="RESULT(""APT"",3130225.13,""APPOINTMENT TYPE SUB-CATEGORY"")=0^" RETVAL(4)="RESULT(""APT"",3130225.13,""APPT. CANCELLED"")=" RETVAL(5)="RESULT(""APT"",3130225.13,""AUTO-REBOOKED APPT. DATE/TIME"")=" RETVAL(6)="RESULT(""APT"",3130225.13,""CANCELLATION REASON"")=" RETVAL(7)="RESULT(""APT"",3130225.13,""CANCELLATION REMARKS"")=" RETVAL(8)="RESULT(""APT"",3130225.13,""CLINIC"")=426^TEST ONE" RETVAL(9)="RESULT(""APT"",3130225.13,""COLLATERAL VISIT"")=" RETVAL(10)="RESULT(""APT"",3130225.13,""CURRENT STATUS"")=INPATIENT/NO ACT TAKN^ INPATIENT/NO ACT TAKN" RETVAL(11)="RESULT(""APT"",3130225.13,""DATA ENTRY CLERK"")=10000000391^THOMPSON ,ANDREW" RETVAL(12)="RESULT(""APT"",3130225.13,""DATE APPT. MADE"")=3130222^FEB 22, 2013" RETVAL(13)="RESULT(""APT"",3130225.13,""DESIRED DATE OF APPOINTMENT"")=3130222^F EB 22, 2013" RETVAL(14)="RESULT(""APT"",3130225.13,""EKG DATE/TIME"")=" RETVAL(15)="RESULT(""APT"",3130225.13,""ENCOUNTER CONVERSION STATUS"")=" RETVAL(16)="RESULT(""APT"",3130225.13,""ENCOUNTER FORMS AS ADD-ONS"")=" RETVAL(17)="RESULT(""APT"",3130225.13,""ENCOUNTER FORMS PRINTED"")=" RETVAL(18)="RESULT(""APT"",3130225.13,""FOLLOW-UP VISIT"")=1^YES" RETVAL(19)="RESULT(""APT"",3130225.13,""LAB DATE/TIME"")=" RETVAL(20)="RESULT(""APT"",3130225.13,""NEXT AVA. APPT. INDICATOR"")=1^'NEXT AVA .' APPT. INDICATED BY USER" RETVAL(21)="RESULT(""APT"",3130225.13,""NO-SHOW/CANCEL DATE/TIME"")=" RETVAL(22)="RESULT(""APT"",3130225.13,""NO-SHOW/CANCELLED BY"")=" RETVAL(23)="RESULT(""APT"",3130225.13,""NUMBER OF COLLATERAL SEEN"")=" RETVAL(24)="RESULT(""APT"",3130225.13,""OUTPATIENT ENCOUNTER"")=" RETVAL(25)="RESULT(""APT"",3130225.13,""PURPOSE OF VISIT"")=3^SCHEDULED VISIT" RETVAL(26)="RESULT(""APT"",3130225.13,""REAL APPOINTMENT"")=0^0" RETVAL(27)="RESULT(""APT"",3130225.13,""ROUTING SLIP PRINT DATE"")=" RETVAL(28)="RESULT(""APT"",3130225.13,""ROUTING SLIP PRINTED"")=" RETVAL(29)="RESULT(""APT"",3130225.13,""SCHEDULING REQUEST TYPE"")=N^'NEXT AVAIL ABLE' APPT." RETVAL(30)="RESULT(""APT"",3130225.13,""SPECIAL SURVEY DISPOSITION"")=" RETVAL(31)="RESULT(""APT"",3130225.13,""STATUS"")=I^INPATIENT APPOINTMENT" RETVAL(32)="RESULT(""APT"",3130225.13,""TELEPHONE OF CLINIC"")=" RETVAL(33)="RESULT(""APT"",3130225.13,""X-RAY DATE/TIME"")=" No appointment on 2/26 CPM>N RETVAL D GETAPTS^SDMRPC1(.RETVAL,100022,3130226) ZW RETVAL RETVAL(1)=0 NAME: SD GET PATIENT PENDING APPTS NUMBER: 2946 TAG: GETPEND RETURN VALUE TYPE: ARRAY VERSION: 1 INPUT PARAMETER: DFN MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 1 INPUT PARAMETER: DATE MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 2 DESCRIPTION: Start date Retrieves data from PATIENT:APPOINTMENT ROUTINE: SDMRPC1 AVAILABILITY: SUBSCRIPTION PARAMETER TYPE: LITERAL REQUIRED: YES PARAMETER TYPE: LITERAL REQUIRED: YES (2.98) CPM>N RETVAL D GETPEND^SDMRPC1(.RETVAL,100022,3130222) ZW RETVAL RETVAL(1)="RESULT(3130225.13,""APPOINTMENT TYPE"")=REGULAR" RETVAL(2)="RESULT(3130225.13,""CLINIC"")=TEST ONE" RETVAL(3)="RESULT(3130225.13,""COLLATERAL VISIT"")=" RETVAL(4)="RESULT(3130225.13,""CONSULT LINK"")=" RETVAL(5)="RESULT(3130225.13,""EKG"")=" RETVAL(6)="RESULT(3130225.13,""LAB"")=" RETVAL(7)="RESULT(3130225.13,""LENGTH OF APP'T"")=30" RETVAL(8)="RESULT(3130225.13,""XRAY"")=" Date after last appointment CPM>N RETVAL D GETPEND^SDMRPC1(.RETVAL,100022,3130226) ZW RETVAL RETVAL(1)=0 Missing param 2 (date required) CPM>N RETVAL D GETPEND^SDMRPC1(.RETVAL,100022) ZW RETVAL N STATUS,RESULT S STATUS=$$GETPEND^SDMAPI1(.RESULT,PAT,DT) ^ <UNDEFINED>GETPEND+1^SDMRPC1 *DT NAME: SD HAS PATIENT PENDING APPTS NUMBER: 2945 TAG: HASPEND RETURN VALUE TYPE: ARRAY VERSION: 1 INPUT PARAMETER: DFN MAXIMUM DATA LENGTH: 200 ROUTINE: SDMRPC1 AVAILABILITY: SUBSCRIPTION PARAMETER TYPE: LITERAL REQUIRED: YES SEQUENCE NUMBER: 1 INPUT PARAMETER: DATE PARAMETER TYPE: LITERAL MAXIMUM DATA LENGTH: 200 REQUIRED: YES SEQUENCE NUMBER: 2 DESCRIPTION: Start date (internal format) Looks in PATIENT:APPOINTMENT (2.98) Returns 1 if patient has a pending appointment Returns 0 if patient does not have a pending appointment In this test case, patient has appointment on 2/25/13 @ 1300 Appointment on 2/25 CPM>N RETVAL D HASPEND^SDMRPC1(.RETVAL,100022,3130225) ZW RETVAL RETVAL(1)=1 No appointment on or after 2/26 CPM>N RETVAL D HASPEND^SDMRPC1(.RETVAL,100022,3130226) ZW RETVAL RETVAL=-1 RETVAL(1)=0 Appointment after 2/25 0900 CPM>N RETVAL D HASPEND^SDMRPC1(.RETVAL,100022,3130225.09) ZW RETVAL RETVAL(1)=1 No appointment after 2/25 1600 CPM>N RETVAL D HASPEND^SDMRPC1(.RETVAL,100022,3130225.16) ZW RETVAL RETVAL=-1 RETVAL(1)=0 Patient not found in VistA CPM>N RETVAL D HASPEND^SDMRPC1(.RETVAL,1099999,3130328) ZW RETVAL RETVAL(1)="RESULT(0)=PATNFND^Patient not found.^1" BUG IN RC3 (I have fixed in my local CPM db) SDMAPI1 ;RGI/VSL - APPOINTMENT API; 02/04/2013 HASPEND(RETURN,DFN) ; Check if patient has panding appointments SHOULD BE: HASPEND(RETURN,DFN,DT) ; Check if patient has panding appointments Also – always returns 1 whether pending appointment or not. (Code in RC2 is different, but always returns 1 as well.) HASPEND(RETURN,DFN,DT) ; Check if patient has panding appointments K RETURN S RETURN=0 D HASPEND^SDMDAL2(.RETURN,+DFN,DT) S RETURN=1 Q 1 NAME: SD APPOINTMENT MAKE NUMBER: 2937 TAG: MAKE RETURN VALUE TYPE: ARRAY VERSION: 1 INPUT PARAMETER: DFN ROUTINE: SDMRPC2 AVAILABILITY: SUBSCRIPTION PARAMETER TYPE: LITERAL MAXIMUM DATA LENGTH: 200 REQUIRED: YES SEQUENCE NUMBER: 1 INPUT PARAMETER: CLINIC PARAMETER TYPE: LITERAL MAXIMUM DATA LENGTH: 200 REQUIRED: YES SEQUENCE NUMBER: 2 DESCRIPTION: CLINIC IEN INPUT PARAMETER: APPDATE PARAMETER TYPE: LITERAL MAXIMUM DATA LENGTH: 200 REQUIRED: YES SEQUENCE NUMBER: 3 DESCRIPTION: Appointment Date INPUT PARAMETER: TYPE PARAMETER TYPE: LITERAL MAXIMUM DATA LENGTH: 200 REQUIRED: YES SEQUENCE NUMBER: 4 DESCRIPTION: PURPOSE OF VISIT INPUT PARAMETER: SUBTYPE PARAMETER TYPE: LITERAL MAXIMUM DATA LENGTH: 200 REQUIRED: YES SEQUENCE NUMBER: 5 DESCRIPTION: SUBTYPE INPUT PARAMETER: LEN PARAMETER TYPE: LITERAL MAXIMUM DATA LENGTH: 200 REQUIRED: YES SEQUENCE NUMBER: 5 6 DESCRIPTION: APPOINTMENT LENGTH INPUT PARAMETER: REQTYPE PARAMETER TYPE: LITERAL MAXIMUM DATA LENGTH: 200 REQUIRED: YES SEQUENCE NUMBER: 7 DESCRIPTION: Request Type INPUT PARAMETER: LVL PARAMETER TYPE: LITERAL MAXIMUM DATA LENGTH: 10 REQUIRED: NO SEQUENCE NUMBER: 6 8 API is requiring more input params than defined above. Creates record in HOSPITAL LOCATION:APPOINTMENT:PATIENT (44.003) Creates record in PATIENT:APPOINTMENT: (2.98) or updates a cancelled appointment Bad data checking CPM>N RETVAL D MAKE^SDMRPC2(.RETVAL,100022,429,3130306.13,9,0,30,"N") ZW RETVAL RETVAL(1)="RESULT(0)=CLNNFND^Clinic not found.^1" CPM>N RETVAL D MAKE^SDMRPC2(.RETVAL,1009999,429,3130306.13,9,0,30,"N") ZW RETVAL RETVAL(1)="RESULT(0)=PATNFND^Patient not found.^1" CPM>N RETVAL D MAKE^SDMRPC2(.RETVAL,100022,426,3130302.13,9,0,30,"N") ZW RETVAL RETVAL(1)="RESULT(0)=APTWHEN^WHEN??^1" CPM>N RETVAL D MAKE^SDMRPC2(.RETVAL,100022,426,3130305.13,100,0,30,"N") ZW RETVAL RETVAL(1)="RESULT(0)=TYPNFND^Appointment type not found.^1" Good data CPM>N RETVAL D MAKE^SDMRPC2(.RETVAL,100022,426,3130301.13,9,0,30,"N") ZW RETVAL Review active orders? YES// n to check further. RETVAL(1)=1 NO This prompt appears if patient has pending orders, need From Patient File APPOINTMENT DATE/TIME: MAR 01, 2013@13:00 CLINIC: TEST ONE STATUS: INPATIENT APPOINTMENT PURPOSE OF VISIT: SCHEDULED VISIT APPOINTMENT TYPE: REGULAR DATA ENTRY CLERK: THOMPSON,ANDREW DATE APPT. MADE: FEB 26, 2013 APPOINTMENT TYPE SUB-CATEGORY: 0 SCHEDULING REQUEST TYPE: 'NEXT AVAILABLE' APPT. NEXT AVA. APPT. INDICATOR: 'NEXT AVA.' APPT. INDICATED BY USER DESIRED DATE OF APPOINTMENT: FEB 26, 2013 FOLLOW-UP VISIT: YES REAL APPOINTMENT (c): 0 CURRENT STATUS (c): INPATIENT/FUTURE TYPE: NSC VETERAN VETERAN (Y/N)?: YES AGE (c): 77 TERMINAL DIGIT OF SSN (c): 080033666 1U4N (c): B0008 DIVISION (c): VEHU CBOC From Hospital Location File APPOINTMENT DATE/TIME: MAR 01, 2013@13:00 PATIENT: BCMA,EIGHT LENGTH OF APP'T: 30 DATA ENTRY CLERK: THOMPSON,ANDREW DATE APPOINTMENT MADE: FEB 26, 2013 SSN (c): 666330008 TERMINAL DIGITS (c): 0008 STREET (c): 123 Main St. OTHER, TRAVEL (c): ... PATTERN DATE: MAR 01, 2013 CURRENT AVAILABILITY: FR 01 | [2] [2] [2] [2] [2] [2] [2] [2] [1] [2] [ 2] [2] [2] [2] [2] [2] NAME: SD APPOINTMENT CANCEL NUMBER: 2940 TAG: CANCEL RETURN VALUE TYPE: ARRAY VERSION: 1 INPUT PARAMETER: DFN MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 1 INPUT PARAMETER: CLINIC MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 2 INPUT PARAMETER: DATE MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 3 INPUT PARAMETER: TYPE MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 4 INPUT PARAMETER: REASON MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 5 DESCRIPTION: ROUTINE: SDMRPC2 AVAILABILITY: SUBSCRIPTION PARAMETER TYPE: LITERAL REQUIRED: YES PARAMETER TYPE: LITERAL REQUIRED: YES PARAMETER TYPE: LITERAL REQUIRED: YES PARAMETER TYPE: LITERAL REQUIRED: YES PARAMETER TYPE: LITERAL REQUIRED: YES Cancellation reason INPUT PARAMETER: REMARKS MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 6 PARAMETER TYPE: LITERAL REQUIRED: NO Bad data checking CPM>N RETVAL D CANCEL^SDMRPC2(.RETVAL,1000239,426,3130312.14,"C",1,"Snow") ZW RETVAL RETVAL(1)="RESULT(0)=PATNFND^Patient not found.^1" CPM>N RETVAL D CANCEL^SDMRPC2(.RETVAL,100023,4264,3130312.14,"C",1,"Snow") ZW RETVAL RETVAL(1)="RESULT(0)=CLNNFND^Clinic not found.^1" CPM>N RETVAL D CANCEL^SDMRPC2(.RETVAL,100023,426,3130312.15,"C",1,"Snow") ZW RETVAL I APT("APT",SD,"STATUS")["C" D Q RETURN ^ <UNDEFINED>CHKCAN+4^SDMAPI3 *APT("APT",3130312.15,"STATUS") CPM>N RETVAL D CANCEL^SDMRPC2(.RETVAL,100023,426,3130312.14,"C",100,"Snow") ZW RETVAL RETVAL(1)="RESULT(0)=RSNNFND^Cancellation reason not found.^1" CPM>N RETVAL D CANCEL^SDMRPC2(.RETVAL,100023,426,3130312.14,9,1,"Snow") ZW RETVAL RETVAL(1)="RESULT(0)=INVPARAM^Invalid parameter value - TYP^1" Good data CPM>N RETVAL D CANCEL^SDMRPC2(.RETVAL,100023,426,3130312.14,"C",1,"Snow") ZW RETVAL RETVAL(1)=1 From Patient File Before: APPOINTMENT DATE/TIME: MAR 12, 2013@14:00 CLINIC: TEST ONE STATUS: INPATIENT APPOINTMENT PURPOSE OF VISIT: SCHEDULED VISIT APPOINTMENT TYPE: REGULAR DATA ENTRY CLERK: THOMPSON,ANDREW DATE APPT. MADE: FEB 28, 2013 APPOINTMENT TYPE SUB-CATEGORY: 0 SCHEDULING REQUEST TYPE: 'NEXT AVAILABLE' APPT. NEXT AVA. APPT. INDICATOR: 'NEXT AVA.' APPT. INDICATED BY USER DESIRED DATE OF APPOINTMENT: FEB 28, 2013 FOLLOW-UP VISIT: NO REAL APPOINTMENT (c): 0 CURRENT STATUS (c): INPATIENT/FUTURE TYPE: NSC VETERAN VETERAN (Y/N)?: YES AGE (c): 77 TERMINAL DIGIT OF SSN (c): 090033666 1U4N (c): B0009 DIVISION (c): VEHU CBOC After: APPOINTMENT DATE/TIME: MAR 12, 2013@14:00 CLINIC: TEST ONE STATUS: CANCELLED BY CLINIC PURPOSE OF VISIT: SCHEDULED VISIT NO-SHOW/CANCELLED BY: THOMPSON,ANDREW NO-SHOW/CANCEL DATE/TIME: FEB 28, 2013@18:14 CANCELLATION REASON: WEATHER APPOINTMENT TYPE: REGULAR DATA ENTRY CLERK: THOMPSON,ANDREW DATE APPT. MADE: FEB 28, 2013 APPOINTMENT TYPE SUB-CATEGORY: 0 SCHEDULING REQUEST TYPE: 'NEXT AVAILABLE' APPT. NEXT AVA. APPT. INDICATOR: 'NEXT AVA.' APPT. INDICATED BY USER DESIRED DATE OF APPOINTMENT: FEB 28, 2013 FOLLOW-UP VISIT: NO CANCELLATION REMARKS: Snow REAL APPOINTMENT (c): 0 CURRENT STATUS (c): CANCELLED BY CLINIC TYPE: NSC VETERAN VETERAN (Y/N)?: YES AGE (c): 77 TERMINAL DIGIT OF SSN (c): 090033666 1U4N (c): B0009 DIVISION (c): VEHU CBOC From Hospital Location File APPOINTMENT DATE/TIME: MAR 12, 2013@14:00 APPOINTMENT DATE/TIME: MAR 14, 2013@10:00 NAME: SD APPOINTMENT CHECK NUMBER: 2938 TAG: CHKAPP RETURN VALUE TYPE: ARRAY VERSION: 1 INPUT PARAMETER: CLINIC MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 1 DESCRIPTION: CLINIC IEN INPUT PARAMETER: DFN MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 2 INPUT PARAMETER: DATE MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 3 DESCRIPTION: START DATE INPUT PARAMETER: LEN MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 4 Need to determine what LEN is appointment deleted ROUTINE: SDMRPC2 AVAILABILITY: SUBSCRIPTION PARAMETER TYPE: LITERAL REQUIRED: YES PARAMETER TYPE: LITERAL REQUIRED: YES PARAMETER TYPE: LITERAL REQUIRED: YES PARAMETER TYPE: LITERAL REQUIRED: YES CPM>N RETVAL D CHKAPP^SDMRPC2(.RETVAL,426,100022,3130222,30) ZW RETVAL RETVAL(1)="RESULT(0)=INVPARAM^Invalid parameter value - SD^1" CPM>N RETVAL D CHKAPP^SDMRPC2(.RETVAL,426,100022,3130222) ZW RETVAL N STATUS,RESULT S STATUS=$$CHKAPP^SDMAPI2(.RESULT,SC,DFN,SD,LEN) ^ <UNDEFINED>CHKAPP+1^SDMRPC2 *LEN NAME: SD APPOINTMENT LIST BY NAME NUMBER: 2941 TAG: LSTAPPT RETURN VALUE TYPE: ARRAY VERSION: 1 INPUT PARAMETER: SEARCH MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 1 INPUT PARAMETER: START ROUTINE: SDMRPC2 AVAILABILITY: SUBSCRIPTION PARAMETER TYPE: LITERAL REQUIRED: YES PARAMETER TYPE: LITERAL MAXIMUM DATA LENGTH: 200 REQUIRED: YES SEQUENCE NUMBER: 2 INPUT PARAMETER: NUMBER PARAMETER TYPE: LITERAL MAXIMUM DATA LENGTH: 200 REQUIRED: NO SEQUENCE NUMBER: 3 ?Bug - This is calling the API to list appointment types NAME: SD GET APPOINTMENT TYPE NUMBER: 2942 TAG: GETAPPT ROUTINE: SDMRPC2 RETURN VALUE TYPE: ARRAY AVAILABILITY: SUBSCRIPTION VERSION: 1 INPUT PARAMETER: TYPE PARAMETER TYPE: LITERAL MAXIMUM DATA LENGTH: 200 REQUIRED: YES SEQUENCE NUMBER: 1 Returns an entry from #409.1 -- APPOINTMENT TYPE FILE From Fileman APPOINTMENT TYPE LIST FEB 25,2013 16:31 PAGE 1 NUMBER NAME -------------------------------------------------------------------------------1 COMPENSATION & PENSION 2 CLASS II DENTAL 3 ORGAN DONORS 4 EMPLOYEE 5 PRIMA FACIA 6 RESEARCH 7 COLLATERAL OF VET. 8 SHARING AGREEMENT 9 REGULAR 10 COMPUTER GENERATED 11 SERVICE CONNECTED CPM>N RETVAL D GETAPPT^SDMRPC2(.RETVAL,9) ZW RETVAL RETVAL(1)="RESULT(""DEFAULT ELIGIBILITY"")=" RETVAL(2)="RESULT(""DESCRIPTION"")=REC(409.1,""9,"",""DESCRIPTION"")^REC(409.1," "9,"",""DESCRIPTION"")" RETVAL(3)="RESULT(""DUAL ELIGIBILITY ALLOWED"")=1^YES" RETVAL(4)="RESULT(""IGNORE MEANS TEST BILLING"")=" RETVAL(5)="RESULT(""INACTIVE"")=" RETVAL(6)="RESULT(""NAME"")=REGULAR^REGULAR" RETVAL(7)="RESULT(""NUMBER"")=9^9" RETVAL(8)="RESULT(""SYNONYM"")=REG^REG" CPM>N RETVAL D GETAPPT^SDMRPC2(.RETVAL,11) ZW RETVAL RETVAL(1)="RESULT(""DEFAULT ELIGIBILITY"")=" RETVAL(2)="RESULT(""DESCRIPTION"")=REC(409.1,""11,"",""DESCRIPTION"")^REC(409.1, ""11,"",""DESCRIPTION"")" RETVAL(3)="RESULT(""DUAL ELIGIBILITY ALLOWED"")=" RETVAL(4)="RESULT(""IGNORE MEANS TEST BILLING"")=" RETVAL(5)="RESULT(""INACTIVE"")=" RETVAL(6)="RESULT(""NAME"")=SERVICE CONNECTED^SERVICE CONNECTED" RETVAL(7)="RESULT(""NUMBER"")=11^11" RETVAL(8)="RESULT(""SYNONYM"")=SC^SC" Out of range CPM>N RETVAL D GETAPPT^SDMRPC2(.RETVAL,20) ZW RETVAL RETVAL(1)=1 NAME: SD GET CLINIC AVAILABILITY NUMBER: 2944 TAG: SLOTS RETURN VALUE TYPE: ARRAY VERSION: 1 INPUT PARAMETER: CLINIC MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 1 ROUTINE: SDMRPC1 AVAILABILITY: SUBSCRIPTION PARAMETER TYPE: LITERAL REQUIRED: YES CPM>N RETVAL D SLOTS^SDMRPC1(.RETVAL,426) ZW RETVAL RETVAL(1)="RESULT(0)=^44.005" RETVAL(2)="RESULT(3110321,0)=3110321" RETVAL(3)="RESULT(3110321,1)=MO 21 [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] " RETVAL(4)="RESULT(3110322,0)=3110322" RETVAL(5)="RESULT(3110322,1)=TU 22 [2] [2] [2] [2] [2] [2] [1] [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] " RETVAL(6)="RESULT(3110323,0)=3110323" RETVAL(7)="RESULT(3110323,1)=WE 23 [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] [2] " ... RETVAL(247)="RESULT(3130321,0)=3130321" RETVAL(248)="RESULT(3130321,1)=TH 21 | [2] [2] [2] [2] [2] [2] [2] [2] [2 ] [2] [2] [2] [2] [2] [2] [2] " RETVAL(249)="RESULT(3130322,0)=3130322" RETVAL(250)="RESULT(3130322,1)=FR 22 | [2] [2] [2] [2] [2] [2] [2] [2] [2 ] [2] [2] [2] [2] [2] [2] [2] " RETVAL(251)="RESULT(3130325,0)=3130325" RETVAL(252)="RESULT(3130325,1)=MO 25 | [2] [2] [2] [2] [2] [2] [2] [2] [2 ] [2] [2] [2] [2] [2] [2] [2] " RETVAL(253)="RESULT(3130326,0)=3130326" RETVAL(254)="RESULT(3130326,1)=TU 26 | [2] [2] [2] [2] [2] [2] [2] [2] [2 ] [2] [2] [2] [2] [2] [2] [2] " RETVAL(255)="RESULT(3130327,0)=3130327" RETVAL(256)="RESULT(3130327,1)=WE 27 | [2] [2] [2] [2] [2] [2] [2] [2] [2 ] [2] [2] [2] [2] [2] [2] [2] " RETVAL(257)="RESULT(3130328,0)=3130328" RETVAL(258)="RESULT(3130328,1)=TH 28 | [2] [2] [2] [2] [2] [2] [2] [2] [2 ] [2] [2] [2] [2] [2] [2] [2] " RETVAL(259)="RESULT(3130329,0)=3130329" RETVAL(260)="RESULT(3130329,1)=FR 29 | [2] [2] [2] [2] [2] [2] [2] [2] [2 ] [2] [2] [2] [2] [2] [2] [2] " NAME: SD GET CLINIC DETAILS NUMBER: 2935 TAG: GETCLN RETURN VALUE TYPE: ARRAY VERSION: 1 INPUT PARAMETER: CLINIC IEN MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 1 ROUTINE: SDMRPC1 AVAILABILITY: SUBSCRIPTION PARAMETER TYPE: LITERAL REQUIRED: YES CPM>N RETVAL D GETCLN^SDMRPC1(.RETVAL,426) ZW RETVAL RETVAL(1)="RESULT(""*COMMUNICATION FORMAT"")=" RETVAL(2)="RESULT(""*OKC A"")=" RETVAL(3)="RESULT(""*OKC B"")=" RETVAL(4)="RESULT(""*RECORD APPOINTMENT STATUS"")=" RETVAL(5)="RESULT(""*RECORD REQUEST DEVICE"")=" RETVAL(6)="RESULT(""*RECORD REQUEST PRIORITY"")=" RETVAL(7)="RESULT(""*RECORD TRACKING COMMUNICATION"")=" RETVAL(8)="RESULT(""*RT AT HOME RETREIVER"")=" RETVAL(9)="RESULT(""*RT NOT AT HOME RETREIVER"")=" RETVAL(10)="RESULT(""ABBREVIATION"")=TO^TO" RETVAL(11)="RESULT(""ADMINISTER INPATIENT MEDS?"")=" RETVAL(12)="RESULT(""AGENCY"")=" RETVAL(13)="RESULT(""ALLOWABLE CONSECUTIVE NO-SHOWS"")=3^3" RETVAL(14)="RESULT(""APPT. CANCELLATION LETTER"")=" RETVAL(15)="RESULT(""ASK DIAGNOSIS AT CHECK OUT"")=" RETVAL(16)="RESULT(""ASK FOR CHECK IN/OUT TIME"")=" RETVAL(17)="RESULT(""ASK PROVIDER AT CHECK OUT"")=" RETVAL(18)="RESULT(""ASK STOP CODES AT CHECK OUT"")=" RETVAL(19)="RESULT(""AUTOFINISH CLINIC PRINTER"")=" RETVAL(20)="RESULT(""AUTOFINISH RX SITE"")=" RETVAL(21)="RESULT(""AVAILABILITY FLAG"")=" RETVAL(22)="RESULT(""CATEGORY OF VISIT"")=" RETVAL(23)="RESULT(""CLINIC CANCELLATION LETTER"")=" RETVAL(24)="RESULT(""CLINIC GROUP (REPORTS)"")=" RETVAL(25)="RESULT(""CLINIC MEETS AT THIS FACILITY?"")=Y^YES" RETVAL(26)="RESULT(""CLINIC SERVICES RESOURCE"")=" RETVAL(27)="RESULT(""COLLATERAL VISITS? (Y OR N)"")=" RETVAL(28)="RESULT(""COPIES"")=" RETVAL(29)="RESULT(""CREDIT STOP CODE"")=" RETVAL(30)="RESULT(""DEFAULT APPOINTMENT TYPE"")=9^REGULAR" RETVAL(31)="RESULT(""DEFAULT DEVICE"")=" RETVAL(32)="RESULT(""DEFAULT PROVIDER"")=" RETVAL(33)="RESULT(""DEFAULT TO PC PRACTITIONER?"")=" RETVAL(34)="RESULT(""DISPLAY INCREMENTS PER HOUR"")=2^30-MIN " RETVAL(35)="RESULT(""DISPOSITION ACTION"")=" RETVAL(36)="RESULT(""DIVISION"")=1^VEHU DIVISION" RETVAL(37)="RESULT(""HOLD SC SLOTS UNTIL # OF DAYS"")=" RETVAL(38)="RESULT(""HOUR CLINIC DISPLAY BEGINS"")=8^8" RETVAL(39)="RESULT(""INACTIVATE DATE"")=" RETVAL(40)="RESULT(""INCLUDE ON FILE ROOM LISTS?"")=" RETVAL(41)="RESULT(""INSTITUTION"")=" RETVAL(42)="RESULT(""LENGTH OF APP'T"")=30^30" RETVAL(43)="RESULT(""MAX # DAYS FOR AUTO-REBOOK"")=365^365" RETVAL(44)="RESULT(""MAX # DAYS FOR FUTURE BOOKING"")=365^365" RETVAL(45)="RESULT(""MODULE"")=" RETVAL(46)="RESULT(""NAME"")=TEST ONE^TEST ONE" RETVAL(47)="RESULT(""NO SHOW LETTER"")=" RETVAL(48)="RESULT(""NON-COUNT CLINIC? (Y OR N)"")=Y^YES" RETVAL(49)="RESULT(""OCCASION OF SERVICE CLINIC?"")=" RETVAL(50)="RESULT(""OOS CALLING PACKAGE"")=" RETVAL(51)="RESULT(""OVERBOOKS/DAY MAXIMUM"")=5^5" RETVAL(52)="RESULT(""PHYSICAL LOCATION"")=" RETVAL(53)="RESULT(""PRE-APPOINTMENT LETTER"")=" RETVAL(54)="RESULT(""PRINCIPAL CLINIC"")=" RETVAL(55)="RESULT(""PROCEDURE CHECK-OFF SHEET"")=" RETVAL(56)="RESULT(""PROHIBIT ACCESS TO CLINIC?"")=" RETVAL(57)="RESULT(""PRV. YEAR CREDIT STOP CODE"")=" RETVAL(58)="RESULT(""PRV. YEAR STOP CODE"")=" RETVAL(59)="RESULT(""REACTIVATE DATE"")=" RETVAL(60)="RESULT(""REQUIRE ACTION PROFILES?"")=0^YES" RETVAL(61)="RESULT(""REQUIRE X-RAY FILMS?"")=" RETVAL(62)="RESULT(""SCHEDULE ON HOLIDAYS?"")=" RETVAL(63)="RESULT(""SERVICE"")=M^MEDICINE" RETVAL(64)="RESULT(""SPECIAL AMIS STOP"")=" RETVAL(65)="RESULT(""START TIME FOR AUTO REBOOK"")=" RETVAL(66)="RESULT(""STOP CODE NUMBER"")=142^ALLERGY IMMUNOLOGY" RETVAL(67)="RESULT(""TELEPHONE"")=" RETVAL(68)="RESULT(""TREATING SPECIALTY"")=" RETVAL(69)="RESULT(""TYPE"")=C^CLINIC" RETVAL(70)="RESULT(""TYPE EXTENSION"")=1^CLINIC" RETVAL(71)="RESULT(""VARIABLE APP'NTMENT LENGTH"")=V^YES, VARIABLE LENGTH" RETVAL(72)="RESULT(""VISIT LOCATION"")=" RETVAL(73)="RESULT(""WARD LOCATION FILE POINTER"")=" RETVAL(74)="RESULT(""WORKLOAD VALIDATION AT CHK OUT"")=" CPM>N RETVAL D GETCLN^SDMRPC1(.RETVAL,826) ZW RETVAL RETVAL=-1 RETVAL(1)="RESULT(0)=CLNNFND^Clinic not found.^1" NAME: SD GET CLINICS BY NAME NUMBER: 2936 TAG: LSTCLNS RETURN VALUE TYPE: ARRAY VERSION: 1 INPUT PARAMETER: SEARCH MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 1 INPUT PARAMETER: START REQUIRED: YES INPUT PARAMETER: NUMBER MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 3 NOT SURE HOW TO USE THIS YET Missing param 1 ROUTINE: SDMRPC1 AVAILABILITY: SUBSCRIPTION PARAMETER TYPE: LITERAL REQUIRED: NO YES PARAMETER TYPE: LIST SEQUENCE NUMBER: 2 PARAMETER TYPE: LITERAL REQUIRED: NO YES CPM>N RETVAL D LSTCLNS^SDMRPC1(.RETVAL,,426) ZW RETVAL N STATUS,RESULT S STATUS=$$LSTCLNS^SDMAPI1(.RESULT,SEARCH,.START,NUMBER) ^ <UNDEFINED>LSTCLNS+1^SDMRPC1 *SEARCH Missing param 3 CPM>N RETVAL D LSTCLNS^SDMRPC1(.RETVAL,1,426) ZW RETVAL N STATUS,RESULT S STATUS=$$LSTCLNS^SDMAPI1(.RESULT,SEARCH,.START,NUMBER) ^ <UNDEFINED>LSTCLNS+1^SDMRPC1 *NUMBER Only returns 2 clinics CPM>N RETVAL D LSTCLNS^SDMRPC1(.RETVAL,1,426,10) ZW RETVAL RETVAL(1)="RESULT(0)=2^10^0^" RETVAL(2)="RESULT(1)=" RETVAL(3)="RESULT(1,""ID"")=58" RETVAL(4)="RESULT(1,""NAME"")=10TH FLOOR" RETVAL(5)="RESULT(2)=" RETVAL(6)="RESULT(2,""ID"")=169" RETVAL(7)="RESULT(2,""NAME"")=19 LINDA'S FUNNY CLINIC" CPM>N RETVAL D LSTCLNS^SDMRPC1(.RETVAL,100,426,10) ZW RETVAL RETVAL(1)="RESULT(0)=0^10^0^" CPM>N RETVAL D LSTCLNS^SDMRPC1(.RETVAL,0,426,10) ZW RETVAL RETVAL(1)="RESULT(0)=0^10^0^" NAME: SD GET ELIGIBILITY DETAILS NUMBER: 2943 TAG: GETELIG ROUTINE: SDMRPC2 RETURN VALUE TYPE: ARRAY AVAILABILITY: SUBSCRIPTION VERSION: 1 INPUT PARAMETER: ELIGIBILITY PARAMETER TYPE: LITERAL MAXIMUM DATA LENGTH: 200 REQUIRED: YES SEQUENCE NUMBER: 1 Returns entry from #8 -- ELIGIBILITY CODE FILE CPM>N RETVAL D GETELIG^SDMRPC2(.RETVAL,1) ZW RETVAL RETVAL(1)="RESULT(""ABBREVIATION"")=AA^AA" RETVAL(2)="RESULT(""AGENCY"")=" RETVAL(3)="RESULT(""CARD COLOR"")=B^BLUE" RETVAL(4)="RESULT(""ID FORMAT"")=1^VA STANDARD" RETVAL(5)="RESULT(""INACTIVE"")=" RETVAL(6)="RESULT(""MAKE RECORD SENSITIVE?"")=" RETVAL(7)="RESULT(""MAS ELIGIBILITY CODE"")=2^AID & ATTENDANCE" RETVAL(8)="RESULT(""NAME"")=AID & ATTENDANCE^AID & ATTENDANCE" RETVAL(9)="RESULT(""PRINT NAME"")=AID & ATTENDANCE^AID & ATTENDANCE" RETVAL(10)="RESULT(""SELECT AS ADDITIONAL"")=1^YES" RETVAL(11)="RESULT(""TYPE"")=Y^VETERAN" RETVAL(12)="RESULT(""VA CODE NUMBER"")=2^2" NAME: SD APPOINTMENT MAKE UNSCH NUMBER: 2951 TAG: MAKEUS RETURN VALUE TYPE: ARRAY VERSION: 1 Requires parameters ROUTINE: SDMRPC2 AVAILABILITY: SUBSCRIPTION CPM>N RETVAL D MAKEUS^SDMRPC2(.RETVAL) ZW RETVAL N STATUS,RESULT S STATUS=$$MAKEUS^SDMAPI2(.RESULT,DFN,SC,SD,TYP,STYP) ^ <UNDEFINED>MAKEUS+1^SDMRPC2 *DFN NAME: SD APPOINTMENT CHECK-IN NUMBER: 2939 TAG: CHECKIN RETURN VALUE TYPE: ARRAY VERSION: 1 INPUT PARAMETER: DFN MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 1 INPUT PARAMETER: DATE MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 2 DESCRIPTION: Appointment date INPUT PARAMETER: CLINIC MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 3 NAME: SD APPOINTMENT CHECK-OUT NUMBER: 2953 TAG: CHECKO RETURN VALUE TYPE: ARRAY VERSION: 1 Requires parameters ROUTINE: SDMRPC2 AVAILABILITY: SUBSCRIPTION PARAMETER TYPE: LITERAL REQUIRED: YES PARAMETER TYPE: LITERAL REQUIRED: YES PARAMETER TYPE: LITERAL REQUIRED: YES ROUTINE: SDMRPC4 AVAILABILITY: SUBSCRIPTION CPM>N RETVAL D CHECKO^SDMRPC4(.RETVAL) ZW RETVAL RETVAL(1)="RESULT(0)=INVPARAM^Invalid parameter value - DFN^1" NAME: SD APPOINTMENT CHECK-OUT DEL NUMBER: 2954 TAG: DELCO RETURN VALUE TYPE: ARRAY VERSION: 1 Requires parameters ROUTINE: SDMRPC4 AVAILABILITY: SUBSCRIPTION CPM>N RETVAL D DELCO^SDMRPC4(.RETVAL) ZW RETVAL DELCOSD(RETURN,DFN,SD) ; Delete check out (SD) ^ <PARAMETER>DELCOSD^SDMAPI4 NAME: SD APPOINTMENT NOSHOW NUMBER: 2952 TAG: NOSHOW RETURN VALUE TYPE: ARRAY VERSION: 1 Requires parameters ROUTINE: SDMRPC2 AVAILABILITY: SUBSCRIPTION CPM>N RETVAL D NOSHOW^SDMRPC2(.RETVAL) ZW RETVAL N STATUS,RESULT S STATUS=$$NOSHOW^SDMAPI2(.RESULT,DFN,+SC,+SD,$G(LVL,0)) ^ <UNDEFINED>NOSHOW+1^SDMRPC2 *DFN NAME: SD VALID CLINIC STOP CODE NUMBER: 2947 TAG: CLNCK RETURN VALUE TYPE: ARRAY VERSION: 1 INPUT PARAMETER: CLN MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 1 DESCRIPTION: CLINIC IFN Returns 1 if valid clinic ROUTINE: SDMRPC1 AVAILABILITY: SUBSCRIPTION PARAMETER TYPE: LITERAL REQUIRED: YES CPM>N RETVAL D CLNCK^SDMRPC1(.RETVAL,426) ZW RETVAL RETVAL(1)=1 CPM>N RETVAL D CLNCK^SDMRPC1(.RETVAL,826) ZW RETVAL RETVAL(1)="RESULT(0)=CLNNDFN^Clinic not define or has no zero node.^1" NAME: SD VERIFY CLINIC ACCESS NUMBER: 2948 TAG: CLNRGHT ROUTINE: SDMRPC1 RETURN VALUE TYPE: ARRAY AVAILABILITY: SUBSCRIPTION VERSION: 1 INPUT PARAMETER: CLN PARAMETER TYPE: LITERAL MAXIMUM DATA LENGTH: 200 REQUIRED: YES SEQUENCE NUMBER: 1 DESCRIPTION: CLINIC IFN Returns 1 if valid clinic, aborts if not CPM>N RETVAL D CLNRGHT^SDMRPC1(.RETVAL,426) ZW RETVAL RETVAL(1)=1 CPM>N RETVAL D CLNRGHT^SDMRPC1(.RETVAL,826) ZW RETVAL I DATA(2500)="Y" D Q RETURN ^ <UNDEFINED>CLNRGHT+4^SDMAPI1 *DATA(2500) NAME: SD VALID STOP CODE NUMBER: 2949 TAG: CLNVSC RETURN VALUE TYPE: ARRAY VERSION: 1 INPUT PARAMETER: STOPCODE MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 1 DESCRIPTION: CLINIC STOP NAME Number Returns 1 if valid stop code ROUTINE: SDMRPC1 AVAILABILITY: SUBSCRIPTION PARAMETER TYPE: LITERAL REQUIRED: YES CPM>N RETVAL D CLNVSC^SDMRPC1(.RETVAL,320) ZW RETVAL RETVAL(1)=1 CPM>N RETVAL D CLNVSC^SDMRPC1(.RETVAL,100) ZW RETVAL RETVAL(1)="RESULT(0)=CLNSCIN^Invalid Clinic Stop Code 100.^1" CPM>N RETVAL D CLNVSC^SDMRPC1(.RETVAL,"ALLERGY IMMUNOLOGY") ZW RETVAL RETVAL(1)="RESULT(0)=CLNSCIN^Invalid Clinic Stop Code 0.^1" NAME: SD GET SCHDULING REQUEST TYPES NUMBER: 2963 TAG: LSTSRT ROUTINE: SDMRPC1 RETURN VALUE TYPE: ARRAY AVAILABILITY: SUBSCRIPTION No input parameters. Returns a list of values from PATIENT:APPOINTMENT (2.98) SCHDULING REQUEST TYPE (25) CPM>N RETVAL D LSTSRT^SDMRPC1(.RETVAL) ZW RETVAL RETVAL(1)="RESULT(0)=7" RETVAL(2)="RESULT(1)=N^'NEXT AVAILABLE' APPT." RETVAL(3)="RESULT(2)=C^OTHER THAN 'NEXT AVA.' (CLINICIAN REQ.)" RETVAL(4)="RESULT(3)=P^OTHER THAN 'NEXT AVA.' (PATIENT REQ.)" RETVAL(5)="RESULT(4)=W^WALKIN APPT." RETVAL(6)="RESULT(5)=M^MULTIPLE APPT. BOOKING" RETVAL(7)="RESULT(6)=A^AUTO REBOOK" RETVAL(8)="RESULT(7)=O^OTHER THAN 'NEXT AVA.' APPT." NAME: SD GET FIRST AVAILABLE APPT NUMBER: 2950 TAG: FRSTAVBL RETURN VALUE TYPE: ARRAY VERSION: 1 INPUT PARAMETER: CLINIC IEN MAXIMUM DATA LENGTH: 200 SEQUENCE NUMBER: 1 ROUTINE: SDMRPC1 AVAILABILITY: SUBSCRIPTION PARAMETER TYPE: LITERAL REQUIRED: YES CPM>N RETVAL D FRSTAVBL^SDMRPC1(.RETVAL,426) ZW RETVAL RETVAL(1)=3110321 NAME: SD LIST CANCELLATION REASONS NUMBER: 2955 TAG: LSTCRSNS RETURN VALUE TYPE: ARRAY VERSION: 1 Requires parameters ROUTINE: SDMRPC1 AVAILABILITY: SUBSCRIPTION CPM>N RETVAL D LSTCRSNS^SDMRPC1(.RETVAL) ZW RETVAL N STATUS,RESULT S STATUS=$$LSTCRSNS^SDMAPI1(.RESULT,SEARCH,START,NUMBER) ^ <UNDEFINED>LSTCRSNS+1^SDMRPC1 *SEARCH NAME: SD EWL LIST NUMBER: 2956 TAG: LISTEWL RETURN VALUE TYPE: ARRAY VERSION: 1 NAME: SD EWL DETAIL NUMBER: 2957 TAG: DETALEWL RETURN VALUE TYPE: ARRAY VERSION: 1 NAME: SD EWL NEW NUMBER: 2958 TAG: NEWEWL RETURN VALUE TYPE: ARRAY VERSION: 1 NAME: SD EWL UPDATE NUMBER: 2962 TAG: UPDTEWL RETURN VALUE TYPE: SINGLE VALUE VERSION: 1 NAME: SD EWL DISPOSITION NUMBER: 2959 TAG: DISPEWL RETURN VALUE TYPE: SINGLE VALUE VERSION: 1 NAME: SD EWL DELETE NUMBER: 2960 TAG: DELEWL RETURN VALUE TYPE: SINGLE VALUE VERSION: 1 ROUTINE: SDMRPC1 AVAILABILITY: SUBSCRIPTION ROUTINE: SDMRPC1 AVAILABILITY: SUBSCRIPTION ROUTINE: SDMRPC1 AVAILABILITY: SUBSCRIPTION ROUTINE: SDMRPC1 AVAILABILITY: SUBSCRIPTION ROUTINE: SDMRPC1 AVAILABILITY: SUBSCRIPTION ROUTINE: SDMRPC1 AVAILABILITY: SUBSCRIPTION NAME: SD EWL IS PATIENT ON LIST NUMBER: 2961 TAG: ISEWL RETURN VALUE TYPE: SINGLE VALUE VERSION: 1 ROUTINE: SDMRPC1 AVAILABILITY: SUBSCRIPTION BUILD Contents of KIDS Build File NUMBER: 8002 NAME: SD*6.0*1*T7 TYPE: SINGLE PACKAGE DATE DISTRIBUTED: DEC 31, 2012 TRACK PACKAGE NATIONALLY: NO DESCRIPTION: Created by the Tiger Team ;) TRANSPORT BUILD NUMBER: 13 ALPHA/BETA TESTING: YES BUILD COMPONENT: PRINT TEMPLATE BUILD COMPONENT: SORT TEMPLATE BUILD COMPONENT: INPUT TEMPLATE BUILD COMPONENT: FORM BUILD COMPONENT: FUNCTION BUILD COMPONENT: DIALOG BUILD COMPONENT: BULLETIN BUILD COMPONENT: MAIL GROUP BUILD COMPONENT: HELP FRAME BUILD COMPONENT: ROUTINE (6) ENTRIES: SDMRPC ACTION: SEND TO SITE CHECKSUM: B268885 ENTRIES: SDMRPC1 ACTION: SEND TO SITE CHECKSUM: B11191921 ENTRIES: SDMRPC2 ACTION: SEND TO SITE CHECKSUM: B4388937 ENTRIES: SDMRPC4 ACTION: SEND TO SITE CHECKSUM: B531625 ENTRIES: MDWSIO ACTION: SEND TO SITE CHECKSUM: B4071827 ENTRIES: MDWSPKG ACTION: SEND TO SITE CHECKSUM: B2694 BUILD COMPONENT: OPTION (1) ENTRIES: SD API ACTION: SEND TO SITE BUILD COMPONENT: SECURITY KEY BUILD COMPONENT: PROTOCOL BUILD COMPONENT: LIST TEMPLATE BUILD COMPONENT: HL7 APPLICATION PARAMETER BUILD COMPONENT: HLO APPLICATION REGISTRY BUILD COMPONENT: HL LOGICAL LINK BUILD COMPONENT: PARAMETER DEFINITION BUILD COMPONENT: PARAMETER TEMPLATE BUILD COMPONENT: REMOTE PROCEDURE (30) ENTRIES: SD APPOINTMENT CANCEL ACTION: SEND TO SITE ENTRIES: SD APPOINTMENT CHECK ACTION: SEND TO SITE ENTRIES: SD APPOINTMENT CHECK-IN ENTRIES: SD APPOINTMENT LIST BY NAME ENTRIES: SD APPOINTMENT MAKE ENTRIES: SD GET APPOINTMENT TYPE ENTRIES: SD GET CLINIC AVAILABILITY ENTRIES: SD GET CLINIC DETAILS ENTRIES: SD GET CLINICS BY NAME ENTRIES: SD GET ELIGIBILITY DETAILS ENTRIES: SD GET PATIENT APPOINTMENTS ENTRIES: SD GET PATIENT PENDING APPTS ENTRIES: SD HAS PATIENT PENDING APPTS ENTRIES: SD VALID CLINIC STOP CODE ENTRIES: SD VERIFY CLINIC ACCESS ENTRIES: SD VALID STOP CODE ENTRIES: SD GET FIRST AVAILABLE APPT ENTRIES: SD LIST CANCELLATION REASONS ENTRIES: SD EWL LIST ENTRIES: SD EWL DETAIL ENTRIES: SD EWL NEW ENTRIES: SD APPOINTMENT CHECK-OUT ENTRIES: SD APPOINTMENT CHECK-OUT DEL ENTRIES: SD APPOINTMENT NOSHOW ENTRIES: SD APPOINTMENT MAKE UNSCH ENTRIES: SD EWL UPDATE ENTRIES: SD EWL DISPOSITION ENTRIES: SD EWL DELETE ENTRIES: SD EWL IS PATIENT ON LIST ENTRIES: SD GET SCHDULING REQUEST TYPES XPI1: NO XPZ1: NO VERSION (c): 6.0 ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND ACTION: SEND XPO1: NO TO TO TO TO TO TO TO TO TO TO TO TO TO TO TO TO TO TO TO TO TO TO TO TO TO TO TO TO SITE SITE SITE SITE SITE SITE SITE SITE SITE SITE SITE SITE SITE SITE SITE SITE SITE SITE SITE SITE SITE SITE SITE SITE SITE SITE SITE SITE OPTION Menu Options NUMBER: 13981 MENU TEXT: SD - SCHEDULING RPC API CREATOR: THOMPSON,ANDREW RPC: SD APPOINTMENT MAKE RPC: SD GET CLINIC AVAILABILITY RPC: SD APPOINTMENT CHECK-OUT RPC: SD APPOINTMENT CANCEL RPC: SD APPOINTMENT CHECK-IN RPC: SD APPOINTMENT CHECK-OUT DEL RPC: SD APPOINTMENT LIST BY NAME RPC: SD APPOINTMENT MAKE UNSCH RPC: SD APPOINTMENT NOSHOW RPC: SD EWL DELETE RPC: SD EWL DISPOSITION RPC: SD EWL IS PATIENT ON LIST RPC: SD EWL LIST NAME: SD API TYPE: Broker (Client/Server) TIMESTAMP OF PRIMARY MENU: 62810,50214 RPC: SD EWL NEW RPC: SD EWL UPDATE RPC: SD GET APPOINTMENT TYPE RPC: SD GET CLINIC DETAILS RPC: SD GET CLINICS BY NAME RPC: SD GET ELIGIBILITY DETAILS RPC: SD GET FIRST AVAILABLE APPT RPC: SD GET PATIENT APPOINTMENTS RPC: SD GET PATIENT PENDING APPTS RPC: SD GET SCHDULING REQUEST TYPES RPC: SD HAS PATIENT PENDING APPTS RPC: SD LIST CANCELLATION REASONS RPC: SD VALID CLINIC STOP CODE RPC: SD VALID STOP CODE RPC: SD VERIFY CLINIC ACCESS UPPERCASE MENU TEXT: SD - SCHEDULING RPC API CANCELLATION REASONS LIST FEB 28,2013 18:09 PAGE 1 NUMBER NAME -------------------------------------------------------------------------------1 2 3 4 5 6 7 8 9 10 11 12 13 WEATHER INPATIENT STATUS PATIENT DEATH TRAVEL DIFFICULTY UNABLE TO KEEP APPOINTMENT DEATH IN FAMILY CLINIC STAFFING SCHEDULING CONFLICT/ERROR PATIENT NOT ELIGIBLE APPOINTMENT NO LONGER REQUIRED OTHER TRANSFER OPT CARE TO OTHER VA CLINIC CANCELLED