SDESHASHCLIN ;ALB/LAB,MGD,BWF - VISTA SCHEDULING RPCS HASH CLINIC ;Nov 14, 2022
Source file <SDESHASHCLIN.m>
Package | Total | Call Graph |
---|---|---|
Scheduling | 4 | ($$FMTISO,$$ISOTFM)^SDAMUTDT BUILDJSON^SDESBUILDJSON ERRLOG^SDESJSON ($$CHAR4,$$EASVALIDATE,$$TIMEZONEDATA)^SDESUTIL |
Kernel | 2 | $$NOW^XLFDT ($$LSHAN,$$SHAN)^XLFSHAN |
VA FileMan | 2 | FILE^DIE ($$GET1,GETS)^DIQ |
Name | Comments | DBIA/ICR reference |
---|---|---|
HASHALL | ;hash all clinics this will be a jobbed option: SDES HASH ALL CLINICS
|
|
GETALLHASHCLIN(JSONRETURN,ISODATE,SDEAS) | ;get all get clinic's hash value
|
|
VALIDATEDATE(ERRORS,ISODATE) | ;validate incoming date, convert to FileMan Format
|
|
BUILDRETURN(HASHREC,ISODATE) | ;build json return
|
|
GETCLINHASH(JSONRETURN,CLIN,SDEAS) | ;return back the current stored hash for clinic
|
|
VALIDATEEAS(ERRORS,EAS) | ;
|
|
GETHASHONECLINIC(JSONRETURN,CLIN) | ;hash one clinic, do not store new hash
|
|
VALIDATECLIN(ERRORS,CLIN) | ;validate passed in clinic
|
|
BUILDONERETURN(HASHREC,CLIN) | ; builds json for given clinic
|
|
UPDTHASHONECLIN(JSONRETURN,CLIN,SDEAS) | ;Create hash and update file, returns back hash for clinic
|
|
BLDCLNREC(SDCLNJSON,SDCLNIEN,TMPCNT) | ;Get Clinic data
|
|
SETTOTMP(SDCLNJSON,TMPCNT) | ;
|
|
COMBINE(SDCLNJSON,TMPCNT) | ;
|
Name | Field # of Occurrence |
---|---|
FILE^DIE | HASHALL+10, UPDTHASHONECLIN+9 |
$$GET1^DIQ | HASHALL+4, BUILDRETURN+5, BUILDRETURN+6, BUILDRETURN+11, BUILDRETURN+12, GETCLINHASH+5, GETCLINHASH+7, GETCLINHASH+8, BUILDONERETURN+1, UPDTHASHONECLIN+10 , UPDTHASHONECLIN+12 |
GETS^DIQ | BLDCLNREC+4, BLDCLNREC+51, BLDCLNREC+59, BLDCLNREC+68, BLDCLNREC+77 |
$$FMTISO^SDAMUTDT | BUILDRETURN+9, GETCLINHASH+5, GETHASHONECLINIC+6, BUILDONERETURN+2, UPDTHASHONECLIN+10 |
$$ISOTFM^SDAMUTDT | VALIDATEDATE+2 |
BUILDJSON^SDESBUILDJSON | GETALLHASHCLIN+10, GETCLINHASH+11, GETHASHONECLINIC+12, UPDTHASHONECLIN+16, BLDCLNREC+82 |
ERRLOG^SDESJSON | VALIDATEDATE+3, VALIDATEEAS+3, VALIDATECLIN+1, VALIDATECLIN+2 |
$$CHAR4^SDESUTIL | BLDCLNREC+45 |
$$EASVALIDATE^SDESUTIL | VALIDATEEAS+2 |
$$TIMEZONEDATA^SDESUTIL | BLDCLNREC+39 |
$$NOW^XLFDT | HASHALL+9, UPDTHASHONECLIN+8 |
$$LSHAN^XLFSHAN | HASHALL+8, UPDTHASHONECLIN+7 |
$$SHAN^XLFSHAN | GETHASHONECLINIC+8, BUILDONERETURN+4 |
RPC Name | Call Tags |
---|---|
SDES GET ALL CLINIC HASHES | GETALLHASHCLIN |
SDES GET CLINIC STORED HASH | GETCLINHASH |
SDES UPDATE CLINIC HASH | UPDTHASHONECLIN |
FileNo | Call Tags |
---|---|
^SC - [#44] | GET1^DIQ, GETS^DIQ |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^SC - [#44] | HASHALL+3, BUILDRETURN+4, VALIDATECLIN+2 |
^TMP($J | HASHALL+11!, GETHASHONECLINIC+9!, UPDTHASHONECLIN+13!, SETTOTMP+1!, SETTOTMP+5, SETTOTMP+11*, COMBINE+2, COMBINE+4* |
Name | Line Occurrences |
---|---|
BLDCLNREC | HASHALL+7, GETHASHONECLINIC+4, UPDTHASHONECLIN+6 |
BUILDONERETURN | GETHASHONECLINIC+5 |
BUILDRETURN | GETALLHASHCLIN+7 |
COMBINE | SETTOTMP+5 |
SETTOTMP | BLDCLNREC+83 |
VALIDATECLIN | GETCLINHASH+2, GETHASHONECLINIC+2, UPDTHASHONECLIN+3 |
VALIDATEDATE | GETALLHASHCLIN+4 |
VALIDATEEAS | GETALLHASHCLIN+5, GETCLINHASH+3, UPDTHASHONECLIN+4 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
CHAR4 | BLDCLNREC+44~, BLDCLNREC+45*, BLDCLNREC+46 |
CLIN | HASHALL+2*, HASHALL+3*, HASHALL+4, HASHALL+7, HASHALL+8, HASHALL+9, BUILDRETURN+1~, BUILDRETURN+3*, BUILDRETURN+4*, BUILDRETURN+5 , BUILDRETURN+6, BUILDRETURN+9, BUILDRETURN+10, BUILDRETURN+11, BUILDRETURN+12, GETCLINHASH~, GETCLINHASH+2, GETCLINHASH+5, GETCLINHASH+6, GETCLINHASH+7 , GETCLINHASH+8, GETHASHONECLINIC~, GETHASHONECLINIC+2, GETHASHONECLINIC+4, GETHASHONECLINIC+5, GETHASHONECLINIC+6, GETHASHONECLINIC+7, VALIDATECLIN~, VALIDATECLIN+1, VALIDATECLIN+2 , BUILDONERETURN~, BUILDONERETURN+1, BUILDONERETURN+2, BUILDONERETURN+3, UPDTHASHONECLIN~, UPDTHASHONECLIN+3, UPDTHASHONECLIN+6, UPDTHASHONECLIN+7, UPDTHASHONECLIN+8, UPDTHASHONECLIN+10 , UPDTHASHONECLIN+11, UPDTHASHONECLIN+12 |
CLINIC | HASHALL+1~ |
CLINICHASHDATE | BUILDRETURN+1~, BUILDRETURN+6*, BUILDRETURN+7, BUILDRETURN+9, GETHASHONECLINIC+6, BUILDONERETURN+1*, BUILDONERETURN+2 |
CLINRET | HASHALL+5!, HASHALL+7, GETHASHONECLINIC+4, UPDTHASHONECLIN+6 |
CLINRET(1 | GETHASHONECLINIC+8, BUILDONERETURN+4 |
CLNCNT | BUILDRETURN+1~, BUILDRETURN+2*, BUILDRETURN+8*, BUILDRETURN+9, BUILDRETURN+10, BUILDRETURN+11, BUILDRETURN+12 |
CNT | HASHALL+1~, HASHALL+2*, HASHALL+6* |
CURLEN | COMBINE+1~, COMBINE+2*, COMBINE+3 |
EAS | VALIDATEEAS~, VALIDATEEAS+1*, VALIDATEEAS+2*, VALIDATEEAS+3 |
END | SETTOTMP+2~, SETTOTMP+6*, SETTOTMP+7*, SETTOTMP+8 |
ERRORS | VALIDATEDATE~, VALIDATEDATE+3, VALIDATEEAS~, VALIDATEEAS+3, VALIDATECLIN~, VALIDATECLIN+1, VALIDATECLIN+2 |
EXTEND | SETTOTMP+2~, SETTOTMP+10*, SETTOTMP+11 |
EXTRA | COMBINE+1~, COMBINE+3*, COMBINE+4, COMBINE+5 |
FDA | HASHALL+1~, HASHALL+10!, UPDTHASHONECLIN+1~, UPDTHASHONECLIN+9! |
FDA(44 | HASHALL+8*, HASHALL+9*, UPDTHASHONECLIN+7*, UPDTHASHONECLIN+8* |
FDAERR | HASHALL+1~, UPDTHASHONECLIN+1~ |
HASHREC | GETALLHASHCLIN+3~, GETALLHASHCLIN+7, GETALLHASHCLIN+9*, GETALLHASHCLIN+10, BUILDRETURN~, GETCLINHASH+1~, GETCLINHASH+10*, GETCLINHASH+11, GETHASHONECLINIC+1~, GETHASHONECLINIC+5 , GETHASHONECLINIC+11*, GETHASHONECLINIC+12, BUILDONERETURN~, UPDTHASHONECLIN+1~, UPDTHASHONECLIN+15*, UPDTHASHONECLIN+16 |
HASHREC("Clinic" | BUILDRETURN+9*, BUILDRETURN+10*, BUILDRETURN+11*, BUILDRETURN+12*, GETCLINHASH+5*, GETCLINHASH+6*, GETCLINHASH+7*, GETCLINHASH+8*, GETHASHONECLINIC+6*, GETHASHONECLINIC+7* , GETHASHONECLINIC+8*, BUILDONERETURN+2*, BUILDONERETURN+3*, BUILDONERETURN+4*, UPDTHASHONECLIN+10*, UPDTHASHONECLIN+11*, UPDTHASHONECLIN+12* |
I | SETTOTMP+2~, SETTOTMP+8*, SETTOTMP+9, SETTOTMP+10, SETTOTMP+12 |
IEN | SETTOTMP+2~, SETTOTMP+3*, SETTOTMP+4*, SETTOTMP+6, SETTOTMP+11, COMBINE+4, COMBINE+5 |
ISODATE | GETALLHASHCLIN~, GETALLHASHCLIN+4, GETALLHASHCLIN+7, VALIDATEDATE~, VALIDATEDATE+1*, VALIDATEDATE+2*, VALIDATEDATE+3, BUILDRETURN~, BUILDRETURN+7 |
JSONRETURN | GETALLHASHCLIN~, GETALLHASHCLIN+10, GETCLINHASH~, GETCLINHASH+11, GETHASHONECLINIC~, GETHASHONECLINIC+12, UPDTHASHONECLIN~, UPDTHASHONECLIN+16 |
LISTOFHASH | HASHALL+1~ |
SDC | BLDCLNREC+2~, BLDCLNREC+48*, BLDCLNREC+53*, BLDCLNREC+54, BLDCLNREC+56*, BLDCLNREC+61*, BLDCLNREC+62, BLDCLNREC+63, BLDCLNREC+65*, BLDCLNREC+70* , BLDCLNREC+71, BLDCLNREC+72, BLDCLNREC+74*, BLDCLNREC+79*, BLDCLNREC+80, BLDCLNREC+81 |
SDCLNIEN | BLDCLNREC~, BLDCLNREC+4, BLDCLNREC+5, BLDCLNREC+6, BLDCLNREC+7, BLDCLNREC+8, BLDCLNREC+9, BLDCLNREC+10, BLDCLNREC+11, BLDCLNREC+12 , BLDCLNREC+13, BLDCLNREC+14, BLDCLNREC+15, BLDCLNREC+16, BLDCLNREC+17, BLDCLNREC+18, BLDCLNREC+19, BLDCLNREC+20, BLDCLNREC+21, BLDCLNREC+22 , BLDCLNREC+23, BLDCLNREC+24, BLDCLNREC+25, BLDCLNREC+26, BLDCLNREC+27, BLDCLNREC+28, BLDCLNREC+29, BLDCLNREC+30, BLDCLNREC+31, BLDCLNREC+32 , BLDCLNREC+33, BLDCLNREC+34, BLDCLNREC+35, BLDCLNREC+36, BLDCLNREC+37, BLDCLNREC+38, BLDCLNREC+39, BLDCLNREC+41, BLDCLNREC+42, BLDCLNREC+45 , BLDCLNREC+51, BLDCLNREC+59, BLDCLNREC+68, BLDCLNREC+77 |
SDCLNJSON | BLDCLNREC~, BLDCLNREC+82, BLDCLNREC+83, SETTOTMP~, SETTOTMP+5, COMBINE~ |
SDCLNJSON( | SETTOTMP+4, SETTOTMP+6, SETTOTMP+11, COMBINE+4, COMBINE+5* |
SDCLNSREC | BLDCLNREC+2~, BLDCLNREC+82 |
SDCLNSREC("Clinic" | BLDCLNREC+5*, BLDCLNREC+6*, BLDCLNREC+7*, BLDCLNREC+8*, BLDCLNREC+9*, BLDCLNREC+10*, BLDCLNREC+11*, BLDCLNREC+12*, BLDCLNREC+13*, BLDCLNREC+14* , BLDCLNREC+15*, BLDCLNREC+16*, BLDCLNREC+17*, BLDCLNREC+18*, BLDCLNREC+19*, BLDCLNREC+20*, BLDCLNREC+21*, BLDCLNREC+22*, BLDCLNREC+23*, BLDCLNREC+24* , BLDCLNREC+25*, BLDCLNREC+26*, BLDCLNREC+27*, BLDCLNREC+28*, BLDCLNREC+29*, BLDCLNREC+30*, BLDCLNREC+31*, BLDCLNREC+32*, BLDCLNREC+33*, BLDCLNREC+34* , BLDCLNREC+35*, BLDCLNREC+36*, BLDCLNREC+37*, BLDCLNREC+38*, BLDCLNREC+40*, BLDCLNREC+41*, BLDCLNREC+42*, BLDCLNREC+46*, BLDCLNREC+54*, BLDCLNREC+62* , BLDCLNREC+63*, BLDCLNREC+71*, BLDCLNREC+72*, BLDCLNREC+80*, BLDCLNREC+81* |
SDDATA | BLDCLNREC+2~, BLDCLNREC+50!, BLDCLNREC+58!, BLDCLNREC+67!, BLDCLNREC+76! |
SDDATA( | BLDCLNREC+52, BLDCLNREC+54, BLDCLNREC+60, BLDCLNREC+62, BLDCLNREC+63, BLDCLNREC+69, BLDCLNREC+71, BLDCLNREC+72, BLDCLNREC+78, BLDCLNREC+80 , BLDCLNREC+81 |
SDDATA(44 | BLDCLNREC+6, BLDCLNREC+7, BLDCLNREC+8, BLDCLNREC+9, BLDCLNREC+10, BLDCLNREC+11, BLDCLNREC+12, BLDCLNREC+13, BLDCLNREC+14, BLDCLNREC+15 , BLDCLNREC+16, BLDCLNREC+17, BLDCLNREC+18, BLDCLNREC+19, BLDCLNREC+20, BLDCLNREC+21, BLDCLNREC+22, BLDCLNREC+23, BLDCLNREC+24, BLDCLNREC+25 , BLDCLNREC+26, BLDCLNREC+27, BLDCLNREC+28, BLDCLNREC+29, BLDCLNREC+30, BLDCLNREC+31, BLDCLNREC+32, BLDCLNREC+33, BLDCLNREC+34, BLDCLNREC+35 , BLDCLNREC+36, BLDCLNREC+37, BLDCLNREC+38, BLDCLNREC+41, BLDCLNREC+42, BLDCLNREC+45 |
SDEAS | GETALLHASHCLIN~, GETALLHASHCLIN+5, GETCLINHASH~, GETCLINHASH+3, UPDTHASHONECLIN~, UPDTHASHONECLIN+4 |
SDFIELDS | BLDCLNREC+2~, BLDCLNREC+3*, BLDCLNREC+4, BLDCLNREC+49*, BLDCLNREC+51, BLDCLNREC+57*, BLDCLNREC+59, BLDCLNREC+66*, BLDCLNREC+68, BLDCLNREC+75* , BLDCLNREC+77 |
SDHASERROR | GETALLHASHCLIN+3~, GETALLHASHCLIN+4, GETALLHASHCLIN+5, GETALLHASHCLIN+6, GETALLHASHCLIN+8, GETALLHASHCLIN+9, GETCLINHASH+1~, GETCLINHASH+2, GETCLINHASH+3, GETCLINHASH+4 , GETCLINHASH+9, GETCLINHASH+10, GETHASHONECLINIC+1~, GETHASHONECLINIC+2, GETHASHONECLINIC+3, GETHASHONECLINIC+10, GETHASHONECLINIC+11, UPDTHASHONECLIN+1~, UPDTHASHONECLIN+3, UPDTHASHONECLIN+4 , UPDTHASHONECLIN+5, UPDTHASHONECLIN+14, UPDTHASHONECLIN+15 |
SDMSG | BLDCLNREC+2~, BLDCLNREC+50!, BLDCLNREC+58!, BLDCLNREC+67!, BLDCLNREC+76! |
SDX | BLDCLNREC+2~, BLDCLNREC+48*, BLDCLNREC+52*, BLDCLNREC+54, BLDCLNREC+56*, BLDCLNREC+60*, BLDCLNREC+62, BLDCLNREC+63, BLDCLNREC+65*, BLDCLNREC+69* , BLDCLNREC+71, BLDCLNREC+72, BLDCLNREC+74*, BLDCLNREC+78*, BLDCLNREC+80, BLDCLNREC+81 |
START | SETTOTMP+2~, SETTOTMP+9*, SETTOTMP+11, SETTOTMP+12* |
TIMEZONE | BLDCLNREC+2~, BLDCLNREC+39*, BLDCLNREC+40 |
TMPCNT | HASHALL+1~, HASHALL+6*, HASHALL+7, HASHALL+8, UPDTHASHONECLIN+1~, UPDTHASHONECLIN+2*, UPDTHASHONECLIN+6, UPDTHASHONECLIN+7, BLDCLNREC~, BLDCLNREC+83 , SETTOTMP~, SETTOTMP+3*, SETTOTMP+5, SETTOTMP+11*, COMBINE~, COMBINE+2, COMBINE+4 |
U | VALIDATEEAS+3, BLDCLNREC+39 |
X | HASHALL+5! |