SDESRECCLINSRCH ;ALB/MGD - VISTA SCHEDULING RECALL CLINIC SEARCH RPC; Aug 24, 2022@15:04
Source file <SDESRECCLINSRCH.m>
| Name | Comments | DBIA/ICR reference | 
|---|---|---|
| SEARCHRECALLCLIN(JSONRETURN,SEARCHSTRING) | ;Search for Recall clinics and provide return of matches in JSON STRING
 ; INPUT - SEARCHSTRING = free text string that represents the recall clinic name that will be searched ; OUTPUT - JSONRETURN ; List of Recall Clinics from the RECALL REMINDERS (#403.5) file with the following data. ; Field List: ; (1) Recall Clinic IEN ; (2) Recall Clinic Name ; (3) Recall Reminder IEN  | 
|
| VALIDATEINPUT(ERRORLIST,SEARCHSTRING) | ; validate incoming parameters
 ; input - ERRORLIST = passed in by reference, represents the errors that could be generated when validating the searchstring ; SEARCHSTRING = represents the name or partial name of the Recall Clinic ; returns 0 or 1 ; 0 = no validation errors ; 1 = validation errors  | 
|
| GETPROVLIST(SEARCHSTRING,CLINICLIST) | ; pull matching recall clinics using the first input parameter passed in by the RPC
 ; Input - SEARCHSTRING = string that represents the name of the recall clinic ; CLINICLIST = passed in by reference; represents the array that will be returned as output ; Output - CLINICLIST = list of recall clinic names, clinic IENs and the associated recall reminder IENs.  | 
|
| BUILDRETURN(CLINICLIST,CLINICRETURN) | ;Build return array with recall reminder clinic data
 ; input - CLINICLIST = array of recall clinics ; CLINICRETURN = passed by reference, represents the array of recall clinics and associated data that will be returned to the client ; output - CLINICRETURN = recall clinic array and their associated data to be sent back to the client  | 
| FileNo | Call Tags | 
|---|---|
| ^SD(403.5 - [#403.5] | FIND^DIC | 
| ^SC - [#44] | FIND1^DIC |