SDES2CLNSEARCH ;ALB/MGD,BWF,JAS,JDJ - CLINIC NAME SEARCH AND LIMITED DATA RETURN ;AUG 13, 2024
Source file <SDES2CLNSEARCH.m>
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 |
Name | Field # of Occurrence |
---|---|
$$GET1^DIQ | BUILDRETURN+21, BUILDRETURN+26, BUILDRETURN+33, BUILDRETURN+34, BUILDRETURN+35, BUILDRETURN+36, BUILDRETURN+39, WRONGDIVISION+3, WRONGDIVISION+4, WRONGDIVISION+5 |
GETS^DIQ | BUILDRETURN+7 |
$$ACTIVPRV^PXAPI | BUILDRETURN+41, BUILDRETURN+46 |
$$ISOTFM^SDAMUTDT | VALCLINIC+23 |
BUILDJSON^SDES2JSON | SEARCHCLIN+41, SEARCHCLIN+44 |
$$INACTIVE^SDES2UTIL | GETCLINICLIST+34 |
VALBOOLEAN^SDES2UTIL1 | VALCLINIC+29 |
VALSTATIONNUM^SDES2VAL4 | VALCLINIC+18 |
VALCONTEXT^SDES2VALCONTEXT | SEARCHCLIN+40 |
BUILDJSON^SDESBUILDJSON | SEARCHCLIN+47 |
ERRLOG^SDESJSON | VALCLINIC+13, VALCLINIC+24 |
$$INACTIVE^SDESUTIL | BUILDRETURN+28 |
RPC Name | Call Tags |
---|---|
SDES2 SEARCH CLINIC ATTRIBUTES | SEARCHCLIN |
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 |
^SC - [#44] | GET1^DIQ, GETS^DIQ |
44.1 | GET1^DIQ |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^SC - [#44] | GETCLINICLIST+18, GETCLINICLIST+27, BUILDRETURN+32 |
^SC("B" | GETCLINICLIST+15, GETCLINICLIST+17 |
^SC("C" | GETCLINICLIST+23, GETCLINICLIST+26 |
Name | Line Occurrences |
---|---|
$$WRONGDIVISION | GETCLINICLIST+33 |
BUILDRETURN | GETCLINICLIST+36 |
GETCLINICLIST | SEARCHCLIN+46 |
VALCLINIC | SEARCHCLIN+43 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
DT | VALCLINIC+21 |
SDCLINCNT | GETCLINICLIST+7~, GETCLINICLIST+31*, GETCLINICLIST+35*, GETCLINICLIST+36, GETCLINICLIST+37, BUILDRETURN~, BUILDRETURN+8, BUILDRETURN+9, BUILDRETURN+10, BUILDRETURN+11 , BUILDRETURN+12, BUILDRETURN+13, BUILDRETURN+15, BUILDRETURN+16, BUILDRETURN+17, BUILDRETURN+18, BUILDRETURN+19, BUILDRETURN+20, BUILDRETURN+21, BUILDRETURN+22 , BUILDRETURN+23, BUILDRETURN+24, BUILDRETURN+25, BUILDRETURN+26, BUILDRETURN+27, BUILDRETURN+29, BUILDRETURN+30, BUILDRETURN+38, BUILDRETURN+39, BUILDRETURN+40 , BUILDRETURN+41, BUILDRETURN+43, BUILDRETURN+44, BUILDRETURN+45, BUILDRETURN+46, BUILDRETURN+48 |
SDCLINIC | SEARCHCLIN~, SEARCHCLIN+43, VALCLINIC~ |
SDCLINIC("DATETIME" | VALCLINIC+17 |
SDCLINIC("RETURNACTIVE" | VALCLINIC+27 |
SDCLINIC("SEARCHSTRING" | VALCLINIC+11 |
SDCLINIC("STATION" | VALCLINIC+16 |
SDCLINICIEN | BUILDRETURN~, BUILDRETURN+7, BUILDRETURN+8, BUILDRETURN+9, BUILDRETURN+10, BUILDRETURN+11, BUILDRETURN+12, BUILDRETURN+13, BUILDRETURN+19, BUILDRETURN+20 , BUILDRETURN+21, BUILDRETURN+22, BUILDRETURN+23, BUILDRETURN+24, BUILDRETURN+25, BUILDRETURN+26, BUILDRETURN+27, BUILDRETURN+28, BUILDRETURN+30, BUILDRETURN+32 , BUILDRETURN+33, BUILDRETURN+36, WRONGDIVISION~, WRONGDIVISION+3 |
SDCLINICLIST | SEARCHCLIN+37~, SEARCHCLIN+46, SEARCHCLIN+47, GETCLINICLIST~, GETCLINICLIST+12!, GETCLINICLIST+36, BUILDRETURN~ |
SDCLINICLIST("Clinic" | GETCLINICLIST+37*, BUILDRETURN+8*, BUILDRETURN+9*, BUILDRETURN+10*, BUILDRETURN+11*, BUILDRETURN+12*, BUILDRETURN+13*, BUILDRETURN+15*, BUILDRETURN+16*, BUILDRETURN+17* , BUILDRETURN+18*, BUILDRETURN+19*, BUILDRETURN+20*, BUILDRETURN+21*, BUILDRETURN+22*, BUILDRETURN+23*, BUILDRETURN+24*, BUILDRETURN+25*, BUILDRETURN+26*, BUILDRETURN+27* , BUILDRETURN+29*, BUILDRETURN+30*, BUILDRETURN+38*, BUILDRETURN+39*, BUILDRETURN+40*, BUILDRETURN+41*, BUILDRETURN+43*, BUILDRETURN+44*, BUILDRETURN+45*, BUILDRETURN+46* , BUILDRETURN+48* |
SDCLINPROVIDER | BUILDRETURN+5~, BUILDRETURN+32*, BUILDRETURN+33, BUILDRETURN+36 |
SDCNT | GETCLINICLIST+7~, GETCLINICLIST+13*, GETCLINICLIST+19*, GETCLINICLIST+28* |
SDCONTEXT | SEARCHCLIN~, SEARCHCLIN+40 |
SDDATA | BUILDRETURN+5~ |
SDDATA(44 | BUILDRETURN+8, BUILDRETURN+9, BUILDRETURN+10, BUILDRETURN+12, BUILDRETURN+13, BUILDRETURN+19, BUILDRETURN+20, BUILDRETURN+21, BUILDRETURN+22, BUILDRETURN+23 , BUILDRETURN+24, BUILDRETURN+25, BUILDRETURN+26, BUILDRETURN+27, BUILDRETURN+30 |
SDDATE | SEARCHCLIN+38~ |
SDDATETIME | SEARCHCLIN+38~, VALCLINIC+17*, VALCLINIC+18, VALCLINIC+21*, VALCLINIC+22, VALCLINIC+23*, VALCLINIC+24, VALCLINIC+25, GETCLINICLIST+10*, GETCLINICLIST+34 , GETCLINICLIST+36, BUILDRETURN~, BUILDRETURN+28, BUILDRETURN+41, BUILDRETURN+46 |
SDDEFAULTPROV | BUILDRETURN+5~, BUILDRETURN+36*, BUILDRETURN+37 |
SDDIVISION | WRONGDIVISION+2~, WRONGDIVISION+3*, WRONGDIVISION+4 |
SDERRORS | SEARCHCLIN+37~, SEARCHCLIN+40, SEARCHCLIN+41, SEARCHCLIN+43, SEARCHCLIN+44, VALCLINIC~, VALCLINIC+13, VALCLINIC+18, VALCLINIC+24, VALCLINIC+29 |
SDFIELDS | BUILDRETURN+5~, BUILDRETURN+6*, BUILDRETURN+7 |
SDINDX | GETCLINICLIST+7~, GETCLINICLIST+17*, GETCLINICLIST+18, GETCLINICLIST+20, GETCLINICLIST+25*, GETCLINICLIST+26*, GETCLINICLIST+27, GETCLINICLIST+29, GETCLINICLIST+31*, GETCLINICLIST+32* , GETCLINICLIST+33, GETCLINICLIST+34, GETCLINICLIST+36 |
SDINSTIEN | WRONGDIVISION+2~, WRONGDIVISION+4*, WRONGDIVISION+5 |
SDJSONERRORS | SEARCHCLIN+37~, SEARCHCLIN+41*, SEARCHCLIN+44* |
SDJSONERRORS("Clinic" | SEARCHCLIN+41*, SEARCHCLIN+44* |
SDLINICLIST | SEARCHCLIN+37~ |
SDNAMEINDX | GETCLINICLIST+7~, GETCLINICLIST+13*, GETCLINICLIST+15*, GETCLINICLIST+16, GETCLINICLIST+17, GETCLINICLIST+22*, GETCLINICLIST+23*, GETCLINICLIST+24, GETCLINICLIST+26 |
SDPROVIDERID | BUILDRETURN+5~, BUILDRETURN+33*, BUILDRETURN+34, BUILDRETURN+35, BUILDRETURN+38, BUILDRETURN+39, BUILDRETURN+41, BUILDRETURN+44, BUILDRETURN+46 |
SDPROVIDERNAME | BUILDRETURN+5~, BUILDRETURN+34*, BUILDRETURN+43 |
SDPROVIDERSECID | BUILDRETURN+5~, BUILDRETURN+35*, BUILDRETURN+40, BUILDRETURN+45 |
SDPRVCNT | BUILDRETURN+5~, BUILDRETURN+31*, BUILDRETURN+42*, BUILDRETURN+43, BUILDRETURN+44, BUILDRETURN+45, BUILDRETURN+46 |
SDRESULTS | GETCLINICLIST+7~, GETCLINICLIST+12! |
SDRESULTS( | GETCLINICLIST+20*, GETCLINICLIST+29*, GETCLINICLIST+32 |
SDRETURN | SEARCHCLIN~, SEARCHCLIN+41, SEARCHCLIN+44, SEARCHCLIN+47 |
SDRETURNACTIVE | SEARCHCLIN+38~, VALCLINIC+27*, VALCLINIC+28*, VALCLINIC+29, VALCLINIC+30, GETCLINICLIST+11*, GETCLINICLIST+33, GETCLINICLIST+34 |
SDSEARCHSTRING | SEARCHCLIN+38~, VALCLINIC+11*, VALCLINIC+12*, VALCLINIC+13, VALCLINIC+14, GETCLINICLIST+8*, GETCLINICLIST+16, GETCLINICLIST+24 |
SDSTATION | SEARCHCLIN+38~, VALCLINIC+16*, VALCLINIC+18, VALCLINIC+19, GETCLINICLIST+9*, GETCLINICLIST+33 |
SDVALIDDATA | SEARCHCLIN+37~, SEARCHCLIN+43, SEARCHCLIN+46, VALCLINIC~, GETCLINICLIST~ |
SDVALIDDATA("DATETIME" | VALCLINIC+25*, GETCLINICLIST+10 |
SDVALIDDATA("RETURNACTIVE" | VALCLINIC+30*, GETCLINICLIST+11 |
SDVALIDDATA("SEARCHSTRING" | VALCLINIC+14*, GETCLINICLIST+8 |
SDVALIDDATA("STATION" | VALCLINIC+19*, GETCLINICLIST+9 |
STATION | WRONGDIVISION~, WRONGDIVISION+6 |
STATIONID | WRONGDIVISION+2~, WRONGDIVISION+5*, WRONGDIVISION+6 |
STATUS | BUILDRETURN+5~, BUILDRETURN+28*, BUILDRETURN+29 |
SUB3 | GETCLINICLIST+7~ |