SDES2PATSEARCH ;ALB/ANU,BLB,BWF - SDES2 PATIENT SEARCH; OCT 13, 2023@02:00
Source file <SDES2PATSEARCH.m>
action | A | extended action | Ea | event driver | Ed | subscriber | Su | protocol | O | limited protocol | LP | run routine | RR | broker | B | edit | E | server | Se | P | screenman | SM | inquire | I |
Package | Total | Caller Graph |
---|---|---|
Scheduling | 2 | SDES2GETPATINFO SDES2GETSTORDPAT |
Name | Comments | DBIA/ICR reference |
---|---|---|
SEARCH(JSONRETURN,SDCONTEXT,PARAMS) | ; SDES2 PATIENT SEARCH
|
|
POPULATEINPUTS(PARAMS,SEARCHSTRING,NUMOFRECORDS,INDEX) | ;
|
|
INDEX(SEARCHSTRING) | ; returns the index to be searched in ^DPT
|
|
BUILDPATIENTLIST(PATIENTLIST,SEARCHSTRING,NUMOFRECORDS,INDEX,SDDUZ) | ;
|
|
POPULATE(PATIENTLIST,DFN,SDDUZ,NUM) | ;
|
|
GETSENSITIVEPAT(PATIENTLIST,DFN,SDDUZ,NUM) | ;
|
|
GETFLAGS(PATIENTLIST,DFN,NUM) | ;
|
|
GETLASTDEMOUPDAT(PATIENTLIST,DFN,NUM) | ; last patient demographic update
|
|
GETELIGIBILITY(PATIENTLIST,DFN,NUM) | ; top level primary code + secondary eligibilities
|
|
GETCONDITIONS(PATIENTLIST,DFN,NUM) | ; service connected conditions
|
|
GETDISABILITIES(PATIENTLIST,DFN,NUM) | ; rated disabilities
|
|
GETICN(DFN) | ; patient ICN
|
|
VALIDATE(ERRORS,NUMOFRECORDS,SEARCHSTRING) | ;
|
|
TRAILINGSPACES(NAME) | ;
|
|
BUILDJSON(JSONRETURN,RETURN) | ;
|
Name | Field # of Occurrence |
---|---|
RDIS^DGRPDB | GETDISABILITIES+3 |
$$GET1^DIQ | POPULATE+19, POPULATE+20, GETLASTDEMOUPDAT+4, GETLASTDEMOUPDAT+5, GETELIGIBILITY+4, GETELIGIBILITY+5, GETELIGIBILITY+9, GETELIGIBILITY+11, GETELIGIBILITY+12, GETCONDITIONS+6 , GETDISABILITIES+9, GETICN+4 |
GETS^DIQ | POPULATE+3 |
$$GETICN^MPIF001 | GETICN+3 |
$$START^SCMCMHTC | POPULATE+14 |
$$FMTISO^SDAMUTDT | POPULATE+6, POPULATE+7, GETLASTDEMOUPDAT+5, GETDISABILITIES+15, GETDISABILITIES+16 |
$$ISOTFM^SDAMUTDT | INDEX+3, INDEX+4 |
BUILDJSON^SDES2JSON | SEARCH+4, SEARCH+9 |
$$GETSUB^SDES2UTIL | BUILDPATIENTLIST+4 |
SENSITIVE^SDES2UTIL | GETSENSITIVEPAT+2 |
VALCONTEXT^SDES2VALCONTEXT | SEARCH+3 |
$$LAST4SSN^SDESINPUTVALUTL | POPULATE+17 |
ERRLOG^SDESJSON | VALIDATE+2, VALIDATE+4 |
GETFLAGS^SDESPATFLAGS | GETFLAGS+2 |
$$NEWGAF^SDUTL2 | POPULATE+18 |
$$OUTPTPR^SDUTL3 | POPULATE+15 |
$$FMDIFF^XLFDT | GETLASTDEMOUPDAT+4 |
DECODE^XLFJSON | GETFLAGS+3 |
ENCODE^XLFJSON | BUILDJSON+2 |
RPC Name | Call Tags |
---|---|
SDES2 PATIENT SEARCH | SEARCH |
FileNo | Call Tags |
---|---|
^DPT - [#2] | GET1^DIQ, GETS^DIQ |
2.0361 | GET1^DIQ |
2.05 | GET1^DIQ |
^DGEN(27.11 - [#27.11] | GET1^DIQ |
^DIC(31 - [#31] | GET1^DIQ |
^DGS(41.41 - [#41.41] | GET1^DIQ |
^DIC(8 - [#8] | GET1^DIQ |
^XTV(8989.3 - [#8989.3] | GET1^DIQ |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^DGPF(26.13 - [#26.13] | POPULATE+24, POPULATE+25 |
^DGS(41.41 - [#41.41] | POPULATE+27, POPULATE+28, GETLASTDEMOUPDAT+3 |
^DPT - [#2] | BUILDPATIENTLIST+7, BUILDPATIENTLIST+9, POPULATE+30, POPULATE+31, POPULATE+33, POPULATE+34, POPULATE+36, POPULATE+37, GETELIGIBILITY+8, GETCONDITIONS+4 |
Name | Line Occurrences |
---|---|
$$GETICN | POPULATE+16 |
$$INDEX | POPULATEINPUTS+3 |
$$TRAILINGSPACES | BUILDPATIENTLIST+3 |
BUILDJSON | SEARCH+14 |
BUILDPATIENTLIST | SEARCH+11 |
GETCONDITIONS | POPULATE+33 |
GETDISABILITIES | POPULATE+36 |
GETELIGIBILITY | POPULATE+30 |
GETFLAGS | POPULATE+24 |
GETLASTDEMOUPDAT | POPULATE+27 |
GETSENSITIVEPAT | POPULATE+22 |
POPULATE | BUILDPATIENTLIST+11 |
POPULATEINPUTS | SEARCH+7 |
VALIDATE | SEARCH+8 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
AECODE | GETDISABILITIES+1~, GETDISABILITIES+12*, GETDISABILITIES+13 |
AFFECTED | GETDISABILITIES+1~, GETDISABILITIES+13*, GETDISABILITIES+14 |
CONDITIONIEN | GETCONDITIONS+1~, GETCONDITIONS+3*, GETCONDITIONS+4*, GETCONDITIONS+6 |
COUNT | GETELIGIBILITY+1~, GETELIGIBILITY+3*, GETELIGIBILITY+4, GETELIGIBILITY+5, GETELIGIBILITY+10*, GETELIGIBILITY+11, GETELIGIBILITY+12, GETCONDITIONS+1~, GETCONDITIONS+3*, GETCONDITIONS+5* , GETCONDITIONS+6, GETDISABILITIES+1~, GETDISABILITIES+7*, GETDISABILITIES+8*, GETDISABILITIES+9, GETDISABILITIES+10, GETDISABILITIES+11, GETDISABILITIES+12, GETDISABILITIES+14, GETDISABILITIES+15 , GETDISABILITIES+16 |
DEMODIFF | GETLASTDEMOUPDAT+1~, GETLASTDEMOUPDAT+4*, GETLASTDEMOUPDAT+6 |
DFN | BUILDPATIENTLIST+1~, BUILDPATIENTLIST+8*, BUILDPATIENTLIST+9*, BUILDPATIENTLIST+11, POPULATE~, POPULATE+3, POPULATE+4, POPULATE+5, POPULATE+6, POPULATE+7 , POPULATE+8, POPULATE+9, POPULATE+10, POPULATE+11, POPULATE+12, POPULATE+13, POPULATE+14, POPULATE+15, POPULATE+16, POPULATE+17 , POPULATE+18, POPULATE+19, POPULATE+20, POPULATE+22, POPULATE+24, POPULATE+25, POPULATE+27, POPULATE+28, POPULATE+30, POPULATE+31 , POPULATE+33, POPULATE+34, POPULATE+36, POPULATE+37, POPULATE+39, POPULATE+40, GETSENSITIVEPAT~, GETSENSITIVEPAT+2, GETFLAGS~, GETFLAGS+2 , GETLASTDEMOUPDAT~, GETLASTDEMOUPDAT+3, GETELIGIBILITY~, GETELIGIBILITY+4, GETELIGIBILITY+5, GETELIGIBILITY+8, GETELIGIBILITY+9, GETELIGIBILITY+11, GETCONDITIONS~, GETCONDITIONS+4 , GETCONDITIONS+6, GETDISABILITIES~, GETDISABILITIES+3, GETICN~, GETICN+3, GETICN+4 |
DT | GETLASTDEMOUPDAT+4 |
DUZ | SEARCH+5 |
ELIGIBILITYIEN | GETELIGIBILITY+1~, GETELIGIBILITY+7*, GETELIGIBILITY+8*, GETELIGIBILITY+9, GETELIGIBILITY+11, GETELIGIBILITY+12 |
ERRORS | SEARCH+1~, SEARCH+3, SEARCH+4, SEARCH+8, SEARCH+9, VALIDATE~, VALIDATE+2, VALIDATE+4 |
ERRORS("Patient" | SEARCH+4*, SEARCH+9* |
FIRSTNAME | TRAILINGSPACES+1~, TRAILINGSPACES+3*, TRAILINGSPACES+7 |
FLAGCOUNT | GETFLAGS+1~, GETFLAGS+4*, GETFLAGS+5*, GETFLAGS+6, GETFLAGS+7, GETFLAGS+8, GETFLAGS+9, GETFLAGS+10, GETFLAGS+11, GETFLAGS+12 , GETFLAGS+13, GETFLAGS+14, GETFLAGS+15, GETFLAGS+17, GETFLAGS+18 |
FLAGS | GETFLAGS+1~ |
FLAGS("Flag" | GETFLAGS+5, GETFLAGS+6, GETFLAGS+7, GETFLAGS+8, GETFLAGS+9, GETFLAGS+10, GETFLAGS+11, GETFLAGS+12, GETFLAGS+13, GETFLAGS+14 , GETFLAGS+15, GETFLAGS+17, GETFLAGS+18 |
ICN | GETICN+1~, GETICN+3*, GETICN+4, GETICN+5 |
INDEX | SEARCH+1~, SEARCH+7, SEARCH+11, POPULATEINPUTS~, POPULATEINPUTS+3*, BUILDPATIENTLIST~, BUILDPATIENTLIST+3, BUILDPATIENTLIST+7, BUILDPATIENTLIST+9 |
JSONERROR | BUILDJSON+1~ |
JSONRETURN | SEARCH~, SEARCH+4, SEARCH+9, SEARCH+14, BUILDJSON~ |
LASTNAME | TRAILINGSPACES+1~, TRAILINGSPACES+4*, TRAILINGSPACES+5, TRAILINGSPACES+6*, TRAILINGSPACES+7 |
MESCNT | GETSENSITIVEPAT+1~, GETSENSITIVEPAT+5*, GETSENSITIVEPAT+7*, GETSENSITIVEPAT+8 |
MESLOOP | GETSENSITIVEPAT+1~, GETSENSITIVEPAT+6*, GETSENSITIVEPAT+8 |
NAME | TRAILINGSPACES~, TRAILINGSPACES+3, TRAILINGSPACES+4, TRAILINGSPACES+7*, TRAILINGSPACES+8 |
NARRATIVECOUNT | GETFLAGS+1~, GETFLAGS+16*, GETFLAGS+17*, GETFLAGS+18 |
NATLOCALFLAGS | GETFLAGS+1~, GETFLAGS+2 |
NUM | BUILDPATIENTLIST+1~, BUILDPATIENTLIST+6*, BUILDPATIENTLIST+7, BUILDPATIENTLIST+9, BUILDPATIENTLIST+10*, BUILDPATIENTLIST+11, POPULATE~, POPULATE+4, POPULATE+5, POPULATE+6 , POPULATE+7, POPULATE+8, POPULATE+9, POPULATE+10, POPULATE+11, POPULATE+12, POPULATE+13, POPULATE+14, POPULATE+15, POPULATE+16 , POPULATE+17, POPULATE+18, POPULATE+19, POPULATE+20, POPULATE+22, POPULATE+24, POPULATE+25, POPULATE+27, POPULATE+28, POPULATE+30 , POPULATE+31, POPULATE+33, POPULATE+34, POPULATE+36, POPULATE+37, POPULATE+39, POPULATE+40, GETSENSITIVEPAT~, GETSENSITIVEPAT+3, GETSENSITIVEPAT+4 , GETSENSITIVEPAT+8, GETSENSITIVEPAT+9, GETFLAGS~, GETFLAGS+6, GETFLAGS+7, GETFLAGS+8, GETFLAGS+9, GETFLAGS+10, GETFLAGS+11, GETFLAGS+12 , GETFLAGS+13, GETFLAGS+14, GETFLAGS+15, GETFLAGS+18, GETLASTDEMOUPDAT~, GETLASTDEMOUPDAT+5, GETLASTDEMOUPDAT+6, GETELIGIBILITY~, GETELIGIBILITY+4, GETELIGIBILITY+5 , GETELIGIBILITY+11, GETELIGIBILITY+12, GETCONDITIONS~, GETCONDITIONS+6, GETDISABILITIES~, GETDISABILITIES+5, GETDISABILITIES+9, GETDISABILITIES+10, GETDISABILITIES+11, GETDISABILITIES+14 , GETDISABILITIES+15, GETDISABILITIES+16 |
NUMOFRECORDS | SEARCH+1~, SEARCH+7, SEARCH+8, SEARCH+11, POPULATEINPUTS~, POPULATEINPUTS+1*, BUILDPATIENTLIST~, BUILDPATIENTLIST+7, BUILDPATIENTLIST+9, VALIDATE~ , VALIDATE+1*, VALIDATE+2 |
PARAMETERS | SEARCH+1~ |
PARAMS | SEARCH~, SEARCH+7, POPULATEINPUTS~ |
PARAMS("NUMOFRECORDS" | POPULATEINPUTS+1 |
PARAMS("SEARCHSTRING" | POPULATEINPUTS+2 |
PATIENTDATA | POPULATE+1~ |
PATIENTDATA(2 | POPULATE+5, POPULATE+6, POPULATE+7, POPULATE+8, POPULATE+9, POPULATE+10, POPULATE+11, POPULATE+12, POPULATE+13, POPULATE+39 , POPULATE+40 |
PATIENTLIST | SEARCH+1~, SEARCH+11, SEARCH+13, SEARCH+14, BUILDPATIENTLIST~, BUILDPATIENTLIST+11, POPULATE~, POPULATE+22, POPULATE+24, POPULATE+27 , POPULATE+30, POPULATE+33, POPULATE+36, GETSENSITIVEPAT~, GETFLAGS~, GETLASTDEMOUPDAT~, GETELIGIBILITY~, GETCONDITIONS~, GETDISABILITIES~ |
PATIENTLIST("Patient" | SEARCH+13*, POPULATE+4*, POPULATE+5*, POPULATE+6*, POPULATE+7*, POPULATE+8*, POPULATE+9*, POPULATE+10*, POPULATE+11*, POPULATE+12* , POPULATE+13*, POPULATE+14*, POPULATE+15*, POPULATE+16*, POPULATE+17*, POPULATE+18*, POPULATE+19*, POPULATE+20*, POPULATE+25*, POPULATE+28* , POPULATE+31*, POPULATE+34*, POPULATE+37*, POPULATE+39*, POPULATE+40*, GETSENSITIVEPAT+3*, GETSENSITIVEPAT+4*, GETSENSITIVEPAT+8*, GETSENSITIVEPAT+9*, GETFLAGS+6* , GETFLAGS+7*, GETFLAGS+8*, GETFLAGS+9*, GETFLAGS+10*, GETFLAGS+11*, GETFLAGS+12*, GETFLAGS+13*, GETFLAGS+14*, GETFLAGS+15*, GETFLAGS+18* , GETLASTDEMOUPDAT+5*, GETLASTDEMOUPDAT+6*, GETELIGIBILITY+4*, GETELIGIBILITY+5*, GETELIGIBILITY+11*, GETELIGIBILITY+12*, GETCONDITIONS+6*, GETDISABILITIES+5*, GETDISABILITIES+9*, GETDISABILITIES+10* , GETDISABILITIES+11*, GETDISABILITIES+14*, GETDISABILITIES+15*, GETDISABILITIES+16*, VALIDATE+4* |
PATIENTNAME | BUILDPATIENTLIST+1~ |
PREREGIEN | GETLASTDEMOUPDAT+1~, GETLASTDEMOUPDAT+3*, GETLASTDEMOUPDAT+4, GETLASTDEMOUPDAT+5 |
RATEDARRAY | GETDISABILITIES+1~, GETDISABILITIES+3, GETDISABILITIES+4 |
RATEDARRAY( | GETDISABILITIES+8, GETDISABILITIES+9, GETDISABILITIES+10, GETDISABILITIES+11, GETDISABILITIES+12, GETDISABILITIES+15, GETDISABILITIES+16 |
RETURN | SEARCH+1~, SEARCH+14*, BUILDJSON~ |
SDCONTEXT | SEARCH~, SEARCH+3 |
SDCONTEXT("US | ER DUZ" , SEARCH+5 |
SDDFN | SEARCH+1~ |
SDDUZ | SEARCH+1~, SEARCH+5*, SEARCH+11, BUILDPATIENTLIST~, BUILDPATIENTLIST+11, POPULATE~, POPULATE+22, GETSENSITIVEPAT~, GETSENSITIVEPAT+2 |
SEARCHCRITERIA | BUILDPATIENTLIST+1~, BUILDPATIENTLIST+4*, BUILDPATIENTLIST+5*, BUILDPATIENTLIST+7*, BUILDPATIENTLIST+9 |
SEARCHSTRING | SEARCH+1~, SEARCH+7, SEARCH+8, SEARCH+11, POPULATEINPUTS~, POPULATEINPUTS+2*, POPULATEINPUTS+3, INDEX~, INDEX+1, INDEX+3 , INDEX+4*, INDEX+6, INDEX+7*, BUILDPATIENTLIST~, BUILDPATIENTLIST+3*, BUILDPATIENTLIST+4, BUILDPATIENTLIST+5, BUILDPATIENTLIST+7, VALIDATE~, VALIDATE+4 |
SENSITIVE | GETSENSITIVEPAT+1~, GETSENSITIVEPAT+2 |
SENSITIVE( | GETSENSITIVEPAT+6, GETSENSITIVEPAT+8 |
SENSITIVE(1 | GETSENSITIVEPAT+3, GETSENSITIVEPAT+4 |
U | POPULATE+14, POPULATE+15 |
VALRET | SEARCH+1~ |