Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Entry Points |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call
Print Page as PDF
Routine: SDES2SRCHCLNBYSC

Package: Scheduling

Routine: SDES2SRCHCLNBYSC


Information

SDES2SRCHCLNBYSC ;ALB/JAS - SDES2 SEARCH CLIN BY STOP CODE ;JUL 19, 2024

Source Information

Source file <SDES2SRCHCLNBYSC.m>

Entry Points

Name Comments DBIA/ICR reference
SEARCHCLIN(SDRETURN,SDCONTEXT,SDSEARCH) ;Search for clinics
; The SDCONTEXT array is controlled by the Acheron application and its fields are
; needed for the storage of the required auditing information.
VALSRCHFLDS(SDERRORS,SDSEARCH) ; validate incoming search parameters
; Input - SDERRORS = passed in by reference, represents the errors that could be generated when validating the search string
; STATION = Station Number for Division
; STARTING STOP CODE = Stop Code to search against or beginning of a Stop Code range, if ENDING STOP CODE is defined
; ENDING STOP CODE = The last Stop Code in a range to search against
GETCLINICLIST(CLINLIST,SDSEARCH) ; pull matching clinics using the first input parameter passed in by the RPC
; Input -
; SDSEARCH = Search array values, including Station Number and/or Stop Code (Stop Code range)
; CLINLIST = passed in by reference; represents the temp global that will be returned as output
; Output - CLINLIST = Temp global with list of clinic names and clinic IENs.
BUILDRETURN(SDCLINICIEN,SDCLINCNT,CLINLIST,SDDATETIME) ;Build return array with clinic data
; input - SDCLINICIEN = IEN of clinic in #44
; CLINLIST = passed by reference, represents the temp global of clinics and associated data that will be returned
; output - CLINLIST = clinic temp global and their associated data to be sent back to the client
WRONGDIVISION(SDCLINICIEN,STATION) ;
; Screen out Clinics that don't match passed in Station Number
WRONGSTOPCODE(SDCLINICIEN,STOPCODESTART,STOPCODEEND) ;
; Screen out Clinics that don't match the passed in Stop Codes

Used in RPC

RPC Name Call Tags
SDES2 SEARCH CLIN BY STOP CODE SEARCHCLIN

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^VA(200 - [#200] GET1^DIQ
^DIC(40.7 - [#40.7] GET1^DIQ
^DG(40.8 - [#40.8] GET1^DIQ
^SC - [#44] GET1^DIQ,  GETS^DIQ
44.03 GET1^DIQ
44.1 GET1^DIQ
Info |  Source |  Entry Points |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call