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: SDES2CLNSEARCH

Package: Scheduling

Routine: SDES2CLNSEARCH


Information

SDES2CLNSEARCH ;ALB/MGD,BWF,JAS,JDJ,JAS,TJB - CLINIC NAME SEARCH AND LIMITED DATA RETURN ;JAN 10, 2025

Source Information

Source file <SDES2CLNSEARCH.m>

Entry Points

Name Comments DBIA/ICR reference
SEARCHCLIN(SDRETURN,SDCONTEXT,SDCLINIC) ;Search for clinics and provide return of matches and limited date in JSON STRING
; The SDCONTEXT array is controlled by the Acheron application and its fields are
; needed for the storage of the required auditing information.
VALCLINIC(SDERRORS,SDCLINIC,SDVALIDDATA) ; validate incoming clinic parameters
; Input - SDERRORS = passed in by reference, represents the errors that could be generated when validating the search string
; SDSEARCHSTRING = represents the name or partial name of the Clinic
; SDSTATION = Station Number
; SDDATETIME (Opt) = Date in ISO 8601 format to use for Clinic Status verification. If not passed in, default to DT.
; SDRETURNACTIVE ? Boolean: 1:Return active and inactive clinics, 0:Return only active clinics
GETCLINICLIST(SDVALIDDATA,SDCLINICLIST) ; pull matching clinics using the first input parameter passed in by the RPC
; Input - SEARCHSTRING = string that represents the name of the clinic
; SDSTATION = Station Number
; SDDATETIME = Date/Time in FileMan format to use for Clinic Status verification
; SDRETURNACTIVE ? Boolean: 1:Return active and inactive clinics, 0:Return only active clinics
; SDCLINICLIST = passed in by reference; represents the array that will be returned as output
; Output - SDCLINICLIST = list of clinic names, clinic IENs and the associated IENs.
BUILDRETURN(SDCLINICIEN,SDCLINCNT,SDCLINICLIST,SDDATETIME) ;Build return array with reminder clinic data
; input - SDCLINICIEN = IEN of clinic in #44
; SDCLINICLIST = passed by reference, represents the array of clinics and associated data that will be returned to the client
; output - SDCLINICLIST = clinic array 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

Used in RPC

RPC Name Call Tags
SDES2 SEARCH CLINIC ATTRIBUTES SEARCHCLIN

FileMan Files Accessed Via FileMan Db Call

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