Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Call Graph |  Entry Points |  External References |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables  | All
Print Page as PDF
Routine: SDESCLNSEARCH

Package: Scheduling

Routine: SDESCLNSEARCH


Information

SDESCLNSEARCH ;ALB/MGD,BWF - CLINIC NAME SEARCH AND LIMITED DATA RETURN ;JUL 7, 2023

Source Information

Source file <SDESCLNSEARCH.m>

Call Graph

Call Graph

Call Graph Total: 6

Package Total Call Graph
Scheduling 4 $$ISOTFM^SDAMUTDT  BUILDJSON^SDESBUILDJSON  ERRLOG^SDESJSON  $$INACTIVE^SDESUTIL  
VA FileMan 2 FIND^DIC  ($$GET1,GETS)^DIQ  

Entry Points

Name Comments DBIA/ICR reference
SEARCHCLIN(JSONRETURN,SEARCHSTRING,STATION,DATE) ;Search for clinics and provide return of matches and limited date in JSON STRING
; INPUT
; SEARCHSTRING (Req) = free text string that represents the recall clinic name that will be searched
; STATION (Opt) = Station Number: If present, the search would be limited to matching clinics at the given institution.
; If absent, the search would take place across all divisions/institutions. Example values: 534, 534GB
; DATE (Opt) = Date in ISO 8601 format to use for Clinic Status verification. If not passed in, default to DT.
; OUTPUT - JSONRETURN
; List of Recall Clinics from the RECALL REMINDERS (#403.5) file with the following data.
; Field List:
; 1. Clinic IEN
; 2. Clinic name
; 3. Patient friendly name
; 4. Default provider IEN
; 5. Default Provider name
; 6. Default Provider SECID
; 7. Stop code IEN
; 8. Stop code NAME
; 9. Stop code AMIS
; 10. Credit stop code IEN
; 11. Credit stop code name
; 12. Credit stop code AMIS
; 13. Status (Active or Inactive) If not passed in, default to DT
; 14. Non-count (Y or N)
VALIDATEINPUT(ERRORLIST,SEARCHSTRING,STATION,DATE) ; 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
; STATION = Station Number
; returns 0 or 1
; 0 = no validation errors
; 1 = validation errors
GETCLINICLIST(SEARCHSTRING,STATION,DATE,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
; STATION = Station Number
; DATE = Fileman Date to use for Clinic Status verification
; 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(CLINICIEN,CLINCNT,CLINICLIST) ;Build return array with recall reminder clinic data
; input - CLINICIEN = IEN of clinic in #44
; CLINICLIST = passed by reference, represents the array of recall clinics and associated data that will be returned to the client
; output - CLINICLIST = recall clinic array and their associated data to be sent back to the client
WRONGDIVISION(CLINICIEN,STATION) ;
; Screen out Clinics that don't match passed in Station Number

External References

Name Field # of Occurrence
FIND^DIC VALIDATEINPUT+15, GETCLINICLIST+9
$$GET1^DIQ BUILDRETURN+18, BUILDRETURN+21, BUILDRETURN+27, BUILDRETURN+28, BUILDRETURN+29, BUILDRETURN+30, BUILDRETURN+33, WRONGDIVISION+3, WRONGDIVISION+4, WRONGDIVISION+5
GETS^DIQ BUILDRETURN+7
$$ISOTFM^SDAMUTDT VALIDATEINPUT+20
BUILDJSON^SDESBUILDJSON SEARCHCLIN+29, SEARCHCLIN+31
ERRLOG^SDESJSON VALIDATEINPUT+11, VALIDATEINPUT+13, VALIDATEINPUT+18, VALIDATEINPUT+21
$$INACTIVE^SDESUTIL GETCLINICLIST+13, BUILDRETURN+23

Used in RPC

RPC Name Call Tags
SDES SEARCH CLINIC ATTRIBUTES SEARCHCLIN

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^VA(200 - [#200] GET1^DIQ
^DIC(4 - [#4] FIND^DIC,  GET1^DIQ
^DIC(40.7 - [#40.7] GET1^DIQ
^DG(40.8 - [#40.8] GET1^DIQ
^SC - [#44] FIND^DIC,  GET1^DIQ,  GETS^DIQ
44.1 GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^SC - [#44] BUILDRETURN+26

Label References

Name Line Occurrences
$$VALIDATEINPUT SEARCHCLIN+28
$$WRONGDIVISION GETCLINICLIST+12
BUILDRETURN GETCLINICLIST+15
GETCLINICLIST SEARCHCLIN+30

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
CLINCNT GETCLINICLIST+6~, GETCLINICLIST+8*, GETCLINICLIST+14*, GETCLINICLIST+15, GETCLINICLIST+16, BUILDRETURN~, BUILDRETURN+8, BUILDRETURN+9, BUILDRETURN+10, BUILDRETURN+11
, BUILDRETURN+13, BUILDRETURN+14, BUILDRETURN+15, BUILDRETURN+16, BUILDRETURN+17, BUILDRETURN+18, BUILDRETURN+19, BUILDRETURN+20, BUILDRETURN+21, BUILDRETURN+22
, BUILDRETURN+24, BUILDRETURN+32, BUILDRETURN+33, BUILDRETURN+34, BUILDRETURN+36, BUILDRETURN+37, BUILDRETURN+38, BUILDRETURN+40
CLINICIEN GETCLINICLIST+11*, GETCLINICLIST+12, GETCLINICLIST+13, GETCLINICLIST+15, BUILDRETURN~, BUILDRETURN+7, BUILDRETURN+8, BUILDRETURN+9, BUILDRETURN+10, BUILDRETURN+11
, BUILDRETURN+16, BUILDRETURN+17, BUILDRETURN+18, BUILDRETURN+19, BUILDRETURN+20, BUILDRETURN+21, BUILDRETURN+22, BUILDRETURN+23, BUILDRETURN+26, BUILDRETURN+27
, BUILDRETURN+30, WRONGDIVISION~, WRONGDIVISION+3
CLINICLIST SEARCHCLIN+24~, SEARCHCLIN+30, SEARCHCLIN+31, GETCLINICLIST~, GETCLINICLIST+7!, GETCLINICLIST+15, BUILDRETURN~
CLINICLIST("Clinic" GETCLINICLIST+16*, BUILDRETURN+8*, BUILDRETURN+9*, BUILDRETURN+10*, BUILDRETURN+11*, BUILDRETURN+13*, BUILDRETURN+14*, BUILDRETURN+15*, BUILDRETURN+16*, BUILDRETURN+17*
, BUILDRETURN+18*, BUILDRETURN+19*, BUILDRETURN+20*, BUILDRETURN+21*, BUILDRETURN+22*, BUILDRETURN+24*, BUILDRETURN+32*, BUILDRETURN+33*, BUILDRETURN+34*, BUILDRETURN+36*
, BUILDRETURN+37*, BUILDRETURN+38*, BUILDRETURN+40*
CLINPROVIDER BUILDRETURN+5~, BUILDRETURN+26*, BUILDRETURN+27, BUILDRETURN+30
DATE SEARCHCLIN~, SEARCHCLIN+26*, SEARCHCLIN+28, SEARCHCLIN+30, VALIDATEINPUT~, VALIDATEINPUT+19*, VALIDATEINPUT+20*, VALIDATEINPUT+21, GETCLINICLIST~, GETCLINICLIST+13
, BUILDRETURN+23
DEFAULTPROVIDER BUILDRETURN+5~, BUILDRETURN+30*, BUILDRETURN+31
DIVISION WRONGDIVISION+2~, WRONGDIVISION+3*, WRONGDIVISION+4
DT VALIDATEINPUT+19
ERROREXISTS SEARCHCLIN+24~, SEARCHCLIN+27*, SEARCHCLIN+28*, SEARCHCLIN+29
ERRORLIST SEARCHCLIN+24~, SEARCHCLIN+28, SEARCHCLIN+29, VALIDATEINPUT~, VALIDATEINPUT+11, VALIDATEINPUT+13, VALIDATEINPUT+18, VALIDATEINPUT+21
ERRORLIST("Clinic" SEARCHCLIN+29*
INACTIVEONDATE VALIDATEINPUT+7~, VALIDATEINPUT+8*
INSTIEN WRONGDIVISION+2~, WRONGDIVISION+4*, WRONGDIVISION+5
JSONRETURN SEARCHCLIN~, SEARCHCLIN+25!, SEARCHCLIN+29, SEARCHCLIN+31
NOMATCHFOUND VALIDATEINPUT+7~, VALIDATEINPUT+8*, VALIDATEINPUT+14, VALIDATEINPUT+17*
PROVIDERID BUILDRETURN+5~, BUILDRETURN+27*, BUILDRETURN+28, BUILDRETURN+29, BUILDRETURN+32, BUILDRETURN+33, BUILDRETURN+37
PROVIDERNAME BUILDRETURN+5~, BUILDRETURN+28*, BUILDRETURN+36
PROVIDERSECID BUILDRETURN+5~, BUILDRETURN+29*, BUILDRETURN+34, BUILDRETURN+38
PRVCNT BUILDRETURN+5~, BUILDRETURN+25*, BUILDRETURN+35*, BUILDRETURN+36, BUILDRETURN+37, BUILDRETURN+38
RESULTS GETCLINICLIST+6~
RESULTS("DILIST" VALIDATEINPUT+16, GETCLINICLIST+10, GETCLINICLIST+11
SDDATA BUILDRETURN+5~
SDDATA(44 BUILDRETURN+8, BUILDRETURN+10, BUILDRETURN+11, BUILDRETURN+16, BUILDRETURN+17, BUILDRETURN+18, BUILDRETURN+19, BUILDRETURN+20, BUILDRETURN+21, BUILDRETURN+22
SDFIELDS BUILDRETURN+5~, BUILDRETURN+6*, BUILDRETURN+7
SEARCHSTRING SEARCHCLIN~, SEARCHCLIN+26*, SEARCHCLIN+28, SEARCHCLIN+30, VALIDATEINPUT~, VALIDATEINPUT+9*, VALIDATEINPUT+10, GETCLINICLIST~, GETCLINICLIST+9
STATION SEARCHCLIN~, SEARCHCLIN+26*, SEARCHCLIN+28, SEARCHCLIN+30, VALIDATEINPUT~, VALIDATEINPUT+12, VALIDATEINPUT+14, VALIDATEINPUT+15, GETCLINICLIST~, GETCLINICLIST+12
, WRONGDIVISION~, WRONGDIVISION+6
STATIONID WRONGDIVISION+2~, WRONGDIVISION+5*, WRONGDIVISION+6
STATUS BUILDRETURN+5~, BUILDRETURN+23*, BUILDRETURN+24
SUB3 GETCLINICLIST+6~, GETCLINICLIST+8*, GETCLINICLIST+10*, GETCLINICLIST+11
Info |  Source |  Call Graph |  Entry Points |  External References |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables  | All