SDES2GETREGS ;ALB/TJB - Get registration info JSON format ; Feb 08, 2024
Source file <SDES2GETREGS.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
GETPATINFO(JSON,SDCONTEXT,SDPARAM) | ;return basic reg info/demographics for given patient in JSON format
|
|
VALIDATE(ERRORS,SDCONTEXT,SDPARAM) | ;validate input Parameter
|
|
GETPREREGTIM(DFN) | ;
|
|
GETDEMOGR(SDINFO,SDCONTEXT,SDPARAM) | ;
|
|
SIM(DFN) | ||
ASSIGNADDR(RET,DFN) | ;assign values to be used to build output
|
Name | Field # of Occurrence |
---|---|
$$GET1^DIQ | GETPREREGTIM+5, GETDEMOGR+27, GETDEMOGR+101, GETDEMOGR+102 |
GETS^DIQ | GETDEMOGR+11, GETDEMOGR+14, ASSIGNADDR+11 |
GUIBS5A^DPTLK6 | SIM+3 |
$$START^SCMCMHTC | GETDEMOGR+17 |
$$FMTISO^SDAMUTDT | GETPREREGTIM+5, GETDEMOGR+27, GETDEMOGR+101, GETDEMOGR+102, GETDEMOGR+147 |
BUILDJSON^SDES2JSON | GETPATINFO+7, GETPATINFO+9 |
SENSITIVE^SDES2UTIL | GETDEMOGR+4 |
$$FLAGS^SDES2UTIL1 | GETDEMOGR+51, GETDEMOGR+52 |
$$GETGAF^SDES2UTIL1 | GETDEMOGR+57 |
$$HRN^SDES2UTIL1 | GETDEMOGR+44 |
ETHNLIST^SDES2UTIL1 | GETDEMOGR+7 |
RACELIST^SDES2UTIL1 | GETDEMOGR+6 |
VALPATDFN^SDES2VAL2 | VALIDATE+2 |
VALCONTEXT^SDES2VALCONTEXT | VALIDATE+1 |
$$GETPATICN^SDESINPUTVALUTL | GETDEMOGR+23 |
$$LAST4SSN^SDESINPUTVALUTL | GETDEMOGR+26 |
GETELIGIBILITY^SDESPATSEARCH | GETDEMOGR+144 |
$$OUTPTPR^SDUTL3 | GETDEMOGR+18 |
RPC Name | Call Tags |
---|---|
SDES2 GET PATIENT REGISTRATION | GETPATINFO |
FileNo | Call Tags |
---|---|
^DPT - [#2] | GET1^DIQ, GETS^DIQ |
^DGEN(27.11 - [#27.11] | GETS^DIQ |
^DGS(41.41 - [#41.41] | GET1^DIQ |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^DGS(41.41 - [#41.41] | GETPREREGTIM+3 |
^DIC(5 - [#5] | ASSIGNADDR+21, ASSIGNADDR+37 |
^DPT - [#2] | ASSIGNADDR+4 |
^HL(779.004 - [#779.004] | ASSIGNADDR+23 |
Name | Line Occurrences |
---|---|
$$GETPREREGTIM | GETDEMOGR+36 |
$$SIM | GETDEMOGR+55 |
ASSIGNADDR | GETDEMOGR+19 |
GETDEMOGR | GETPATINFO+8 |
VALIDATE | GETPATINFO+6 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
CAT8GROUPFLG | GETDEMOGR+1~, GETDEMOGR+15*, GETDEMOGR+16*, GETDEMOGR+54 |
DFN | GETPREREGTIM~, GETPREREGTIM+3, GETDEMOGR+1~, GETDEMOGR+2*, GETDEMOGR+4, GETDEMOGR+6, GETDEMOGR+7, GETDEMOGR+17, GETDEMOGR+18, GETDEMOGR+19 , GETDEMOGR+22, GETDEMOGR+23, GETDEMOGR+26, GETDEMOGR+36, GETDEMOGR+44, GETDEMOGR+51, GETDEMOGR+52, GETDEMOGR+55, GETDEMOGR+57, GETDEMOGR+144 , SIM~, SIM+3, ASSIGNADDR~, ASSIGNADDR+3, ASSIGNADDR+4, ASSIGNADDR+11, ASSIGNADDR+12, ASSIGNADDR+13, ASSIGNADDR+14, ASSIGNADDR+15 , ASSIGNADDR+16, ASSIGNADDR+17, ASSIGNADDR+18, ASSIGNADDR+20, ASSIGNADDR+22, ASSIGNADDR+24, ASSIGNADDR+25, ASSIGNADDR+26, ASSIGNADDR+27, ASSIGNADDR+28 , ASSIGNADDR+29, ASSIGNADDR+30, ASSIGNADDR+31, ASSIGNADDR+32, ASSIGNADDR+33, ASSIGNADDR+34, ASSIGNADDR+36, ASSIGNADDR+38, ASSIGNADDR+39, ASSIGNADDR+42 , ASSIGNADDR+43, ASSIGNADDR+44, ASSIGNADDR+45, ASSIGNADDR+46, ASSIGNADDR+47, ASSIGNADDR+50, ASSIGNADDR+51, ASSIGNADDR+52, ASSIGNADDR+53, ASSIGNADDR+54 , ASSIGNADDR+55, ASSIGNADDR+56, ASSIGNADDR+57, ASSIGNADDR+58, ASSIGNADDR+59, ASSIGNADDR+61, ASSIGNADDR+62, ASSIGNADDR+63, ASSIGNADDR+64, ASSIGNADDR+65 , ASSIGNADDR+66, ASSIGNADDR+67, ASSIGNADDR+68, ASSIGNADDR+69, ASSIGNADDR+70 |
DUZ | GETDEMOGR+3 |
ERRORS | GETPATINFO+5~, GETPATINFO+6, GETPATINFO+7, VALIDATE~, VALIDATE+1, VALIDATE+2 |
ETHNLIST | GETDEMOGR+1~, GETDEMOGR+7 |
ETHNLIST("IENS" | GETDEMOGR+30 |
ETHNLIST("NAMES" | GETDEMOGR+31 |
FIELDS | GETDEMOGR+1~, GETDEMOGR+8*, GETDEMOGR+9*, GETDEMOGR+10*, GETDEMOGR+11 |
GAF | GETPATINFO+5~ |
GAFR | GETPATINFO+5~ |
JSON | GETPATINFO~, GETPATINFO+7, GETPATINFO+9 |
MI | SIM+1~, SIM+4*, SIM+5 |
MSG | SIM+1~, SIM+2*, SIM+6*, SIM+7*, SIM+8 |
NOD | SIM+1~, SIM+5*, SIM+6, SIM+7 |
PATIENTLIST | GETDEMOGR+1~, GETDEMOGR+144 |
PATIENTLIST("Patient" | GETDEMOGR+145 |
PATS | SIM+1~, SIM+2*, SIM+7*, SIM+8 |
PCE | GETDEMOGR+1~, GETDEMOGR+13*, GETDEMOGR+14, GETDEMOGR+15, GETDEMOGR+53, GETDEMOGR+56, ASSIGNADDR+2~ |
PCOUNTY | ASSIGNADDR+2~, ASSIGNADDR+8*, ASSIGNADDR+20*, ASSIGNADDR+21 |
PETH | GETPATINFO+5~ |
PETHN | GETPATINFO+5~ |
PRACE | GETPATINFO+5~ |
PRACEN | GETPATINFO+5~ |
PREREGTIM | GETPREREGTIM+1~, GETPREREGTIM+2*, GETPREREGTIM+5*, GETPREREGTIM+6 |
PREREGTIMIEN | GETPREREGTIM+1~, GETPREREGTIM+3*, GETPREREGTIM+4, GETPREREGTIM+5 |
PSTATE | ASSIGNADDR+2~, ASSIGNADDR+17*, ASSIGNADDR+19, ASSIGNADDR+21 |
PTCOUNTY | ASSIGNADDR+2~, ASSIGNADDR+8*, ASSIGNADDR+36*, ASSIGNADDR+37 |
PTSTATE | ASSIGNADDR+30~*, ASSIGNADDR+35, ASSIGNADDR+37 |
RACELIST | GETDEMOGR+1~, GETDEMOGR+6 |
RACELIST("IENS" | GETDEMOGR+28 |
RACELIST("NAMES" | GETDEMOGR+29 |
RET | SIM+1~, SIM+3, ASSIGNADDR~, ASSIGNADDR+7! |
RET( | SIM+4, SIM+5 |
RET("BADADD" | ASSIGNADDR+24* |
RET("HPHONE" | ASSIGNADDR+42* |
RET("K2CITY" | ASSIGNADDR+68* |
RET("K2NAME" | ASSIGNADDR+62* |
RET("K2PHONE" | ASSIGNADDR+64* |
RET("K2REL" | ASSIGNADDR+63* |
RET("K2STATE" | ASSIGNADDR+69* |
RET("K2STREET" | ASSIGNADDR+65* |
RET("K2STREET2" | ASSIGNADDR+66* |
RET("K2STREET3" | ASSIGNADDR+67* |
RET("K2ZIP" | ASSIGNADDR+70* |
RET("KCITY" | ASSIGNADDR+57* |
RET("KNAME" | ASSIGNADDR+51* |
RET("KPHONE" | ASSIGNADDR+53* |
RET("KREL" | ASSIGNADDR+52* |
RET("KSTATE" | ASSIGNADDR+58* |
RET("KSTREET" | ASSIGNADDR+54* |
RET("KSTREET2" | ASSIGNADDR+55* |
RET("KSTREET3" | ASSIGNADDR+56* |
RET("KZIP" | ASSIGNADDR+59* |
RET("NOK" | ASSIGNADDR+50* |
RET("NOK2" | ASSIGNADDR+61* |
RET("OPHONE" | ASSIGNADDR+43* |
RET("PADDRES1" | ASSIGNADDR+12* |
RET("PADDRES2" | ASSIGNADDR+13* |
RET("PADDRES3" | ASSIGNADDR+14* |
RET("PCELL" | ASSIGNADDR+45* |
RET("PCITY" | ASSIGNADDR+16* |
RET("PCOUNTRY" | ASSIGNADDR+22*, ASSIGNADDR+23* |
RET("PCOUNTY" | ASSIGNADDR+8*, ASSIGNADDR+21* |
RET("PEMAIL" | ASSIGNADDR+47* |
RET("PPAGER" | ASSIGNADDR+46* |
RET("PSTATE" | ASSIGNADDR+18* |
RET("PTACTIVE" | ASSIGNADDR+25* |
RET("PTADDRESS1" | ASSIGNADDR+26* |
RET("PTADDRESS2" | ASSIGNADDR+27* |
RET("PTADDRESS3" | ASSIGNADDR+28* |
RET("PTCITY" | ASSIGNADDR+29* |
RET("PTCOUNTRY" | ASSIGNADDR+34* |
RET("PTCOUNTY" | ASSIGNADDR+8*, ASSIGNADDR+37* |
RET("PTEND" | ASSIGNADDR+39* |
RET("PTPHONE" | ASSIGNADDR+44* |
RET("PTSTART" | ASSIGNADDR+38* |
RET("PTSTATE" | ASSIGNADDR+31* |
RET("PTZIP" | ASSIGNADDR+32* |
RET("PTZIP+4" | ASSIGNADDR+33* |
RET("PZIP+4" | ASSIGNADDR+15* |
RETURN | GETPATINFO+5~, GETPATINFO+7*, GETPATINFO+8, GETPATINFO+9 |
RETURN("Patient" | GETPATINFO+7* |
SDCONTEXT | GETPATINFO~, GETPATINFO+6, GETPATINFO+8, VALIDATE~, VALIDATE+1, GETDEMOGR~ |
SDCONTEXT("US | ER DUZ" , GETDEMOGR+3 |
SDD | ASSIGNADDR+1~, ASSIGNADDR+11! |
SDD(2 | ASSIGNADDR+12, ASSIGNADDR+13, ASSIGNADDR+14, ASSIGNADDR+15, ASSIGNADDR+16, ASSIGNADDR+17, ASSIGNADDR+18, ASSIGNADDR+20, ASSIGNADDR+22, ASSIGNADDR+24 , ASSIGNADDR+25, ASSIGNADDR+26, ASSIGNADDR+27, ASSIGNADDR+28, ASSIGNADDR+29, ASSIGNADDR+30, ASSIGNADDR+31, ASSIGNADDR+32, ASSIGNADDR+33, ASSIGNADDR+34 , ASSIGNADDR+36, ASSIGNADDR+38, ASSIGNADDR+39, ASSIGNADDR+42, ASSIGNADDR+43, ASSIGNADDR+44, ASSIGNADDR+45, ASSIGNADDR+46, ASSIGNADDR+47, ASSIGNADDR+50 , ASSIGNADDR+51, ASSIGNADDR+52, ASSIGNADDR+53, ASSIGNADDR+54, ASSIGNADDR+55, ASSIGNADDR+56, ASSIGNADDR+57, ASSIGNADDR+58, ASSIGNADDR+59, ASSIGNADDR+61 , ASSIGNADDR+62, ASSIGNADDR+63, ASSIGNADDR+64, ASSIGNADDR+65, ASSIGNADDR+66, ASSIGNADDR+67, ASSIGNADDR+68, ASSIGNADDR+69, ASSIGNADDR+70 |
SDDEMO | GETPATINFO+5~, GETDEMOGR+1~, GETDEMOGR+19 |
SDDEMO("BADADD" | GETDEMOGR+78 |
SDDEMO("HPHONE" | GETDEMOGR+63 |
SDDEMO("K2CITY" | GETDEMOGR+126 |
SDDEMO("K2NAME" | GETDEMOGR+120 |
SDDEMO("K2PHONE" | GETDEMOGR+122 |
SDDEMO("K2REL" | GETDEMOGR+121 |
SDDEMO("K2STATE" | GETDEMOGR+127 |
SDDEMO("K2STREET" | GETDEMOGR+123 |
SDDEMO("K2STREET2" | GETDEMOGR+124 |
SDDEMO("K2STREET3" | GETDEMOGR+125 |
SDDEMO("K2ZIP" | GETDEMOGR+128 |
SDDEMO("KCITY" | GETDEMOGR+111 |
SDDEMO("KPHONE" | GETDEMOGR+109 |
SDDEMO("KREL" | GETDEMOGR+108 |
SDDEMO("KSTATE" | GETDEMOGR+112 |
SDDEMO("KSTREET" | GETDEMOGR+110 |
SDDEMO("KSTREET2" | GETDEMOGR+114 |
SDDEMO("KSTREET3" | GETDEMOGR+115 |
SDDEMO("KZIP" | GETDEMOGR+113 |
SDDEMO("NOK" | GETDEMOGR+107 |
SDDEMO("OPHONE" | GETDEMOGR+64 |
SDDEMO("PADDRES1" | GETDEMOGR+68 |
SDDEMO("PADDRES2" | GETDEMOGR+69 |
SDDEMO("PADDRES3" | GETDEMOGR+70 |
SDDEMO("PCELL" | GETDEMOGR+61 |
SDDEMO("PCITY" | GETDEMOGR+71 |
SDDEMO("PCOUNTRY" | GETDEMOGR+74 |
SDDEMO("PCOUNTY" | GETDEMOGR+73 |
SDDEMO("PEMAIL" | GETDEMOGR+62 |
SDDEMO("PSTATE" | GETDEMOGR+72 |
SDDEMO("PTADDRESS1" | GETDEMOGR+91 |
SDDEMO("PTADDRESS2" | GETDEMOGR+92 |
SDDEMO("PTADDRESS3" | GETDEMOGR+93 |
SDDEMO("PTCITY" | GETDEMOGR+94 |
SDDEMO("PTCOUNTRY" | GETDEMOGR+98 |
SDDEMO("PTCOUNTY" | GETDEMOGR+100 |
SDDEMO("PTSTATE" | GETDEMOGR+95 |
SDDEMO("PTZIP" | GETDEMOGR+96 |
SDDEMO("PTZIP+4" | GETDEMOGR+97 |
SDDEMO("PZIP+4" | GETDEMOGR+76 |
SDDFN | GETPATINFO+5~ |
SDDOD | GETPATINFO+5~, GETDEMOGR+147*, GETDEMOGR+148 |
SDDUZ | GETDEMOGR+1~, GETDEMOGR+3*, GETDEMOGR+4 |
SDFN | GETDEMOGR+1~, GETDEMOGR+2*, GETDEMOGR+11, GETDEMOGR+13, GETDEMOGR+25, GETDEMOGR+27, GETDEMOGR+32, GETDEMOGR+34, GETDEMOGR+35, GETDEMOGR+41 , GETDEMOGR+42, GETDEMOGR+43, GETDEMOGR+49, GETDEMOGR+50, GETDEMOGR+75, GETDEMOGR+77, GETDEMOGR+82, GETDEMOGR+83, GETDEMOGR+84, GETDEMOGR+85 , GETDEMOGR+86, GETDEMOGR+87, GETDEMOGR+99, GETDEMOGR+101, GETDEMOGR+102, GETDEMOGR+103, GETDEMOGR+116, GETDEMOGR+129, GETDEMOGR+133, GETDEMOGR+134 , GETDEMOGR+135, GETDEMOGR+136, GETDEMOGR+137, GETDEMOGR+138, GETDEMOGR+139, GETDEMOGR+140, GETDEMOGR+141, GETDEMOGR+142, GETDEMOGR+143, GETDEMOGR+147 |
SDI | ASSIGNADDR+1~ |
SDINFO | GETPATINFO+5~, GETDEMOGR~ |
SDINFO("Patient" | GETDEMOGR+22*, GETDEMOGR+23*, GETDEMOGR+25*, GETDEMOGR+26*, GETDEMOGR+27*, GETDEMOGR+28*, GETDEMOGR+29*, GETDEMOGR+30*, GETDEMOGR+31*, GETDEMOGR+32* , GETDEMOGR+33*, GETDEMOGR+34*, GETDEMOGR+35*, GETDEMOGR+36*, GETDEMOGR+40*, GETDEMOGR+41*, GETDEMOGR+42*, GETDEMOGR+43*, GETDEMOGR+44*, GETDEMOGR+45* , GETDEMOGR+49*, GETDEMOGR+50*, GETDEMOGR+51*, GETDEMOGR+52*, GETDEMOGR+53*, GETDEMOGR+54*, GETDEMOGR+55*, GETDEMOGR+56*, GETDEMOGR+57*, GETDEMOGR+61* , GETDEMOGR+62*, GETDEMOGR+63*, GETDEMOGR+64*, GETDEMOGR+68*, GETDEMOGR+69*, GETDEMOGR+70*, GETDEMOGR+71*, GETDEMOGR+72*, GETDEMOGR+73*, GETDEMOGR+74* , GETDEMOGR+75*, GETDEMOGR+76*, GETDEMOGR+77*, GETDEMOGR+78*, GETDEMOGR+82*, GETDEMOGR+83*, GETDEMOGR+84*, GETDEMOGR+85*, GETDEMOGR+86*, GETDEMOGR+87* , GETDEMOGR+91*, GETDEMOGR+92*, GETDEMOGR+93*, GETDEMOGR+94*, GETDEMOGR+95*, GETDEMOGR+96*, GETDEMOGR+97*, GETDEMOGR+98*, GETDEMOGR+99*, GETDEMOGR+100* , GETDEMOGR+101*, GETDEMOGR+102*, GETDEMOGR+103*, GETDEMOGR+107*, GETDEMOGR+108*, GETDEMOGR+109*, GETDEMOGR+110*, GETDEMOGR+111*, GETDEMOGR+112*, GETDEMOGR+113* , GETDEMOGR+114*, GETDEMOGR+115*, GETDEMOGR+116*, GETDEMOGR+120*, GETDEMOGR+121*, GETDEMOGR+122*, GETDEMOGR+123*, GETDEMOGR+124*, GETDEMOGR+125*, GETDEMOGR+126* , GETDEMOGR+127*, GETDEMOGR+128*, GETDEMOGR+129*, GETDEMOGR+133*, GETDEMOGR+134*, GETDEMOGR+135*, GETDEMOGR+136*, GETDEMOGR+137*, GETDEMOGR+138*, GETDEMOGR+139* , GETDEMOGR+140*, GETDEMOGR+141*, GETDEMOGR+142*, GETDEMOGR+143*, GETDEMOGR+145*, GETDEMOGR+148* |
SDM | ASSIGNADDR+1~, ASSIGNADDR+11! |
SDMHP | GETPATINFO+5~, GETDEMOGR+1~, GETDEMOGR+17*, GETDEMOGR+45 |
SDPARAM | GETPATINFO~, GETPATINFO+6, GETPATINFO+8, VALIDATE~, GETDEMOGR~ |
SDPARAM("PATI | ENT IEN" , VALIDATE+2, GETDEMOGR+2 |
SDPATARR | GETPATINFO+5~ |
SDPATARR(2 | GETDEMOGR+13, GETDEMOGR+25, GETDEMOGR+32, GETDEMOGR+34, GETDEMOGR+35, GETDEMOGR+41, GETDEMOGR+42, GETDEMOGR+43, GETDEMOGR+49, GETDEMOGR+50 , GETDEMOGR+75, GETDEMOGR+77, GETDEMOGR+82, GETDEMOGR+83, GETDEMOGR+84, GETDEMOGR+85, GETDEMOGR+86, GETDEMOGR+87, GETDEMOGR+99, GETDEMOGR+103 , GETDEMOGR+116, GETDEMOGR+129, GETDEMOGR+133, GETDEMOGR+134, GETDEMOGR+135, GETDEMOGR+136, GETDEMOGR+137, GETDEMOGR+138, GETDEMOGR+139, GETDEMOGR+140 , GETDEMOGR+141, GETDEMOGR+142, GETDEMOGR+143, GETDEMOGR+147 |
SDPCE | GETDEMOGR+1~ |
SDPCE( | GETDEMOGR+15, GETDEMOGR+53, GETDEMOGR+56 |
SDPCEM | GETDEMOGR+1~ |
SDPCP | GETPATINFO+5~, GETDEMOGR+1~, GETDEMOGR+18*, GETDEMOGR+40 |
SDSECURITY | GETDEMOGR+1~, GETDEMOGR+5*, GETDEMOGR+33 |
SDSENSITIVE | GETDEMOGR+1~, GETDEMOGR+4 |
SDSENSITIVE(1 | GETDEMOGR+5 |
SDSENSITIVE(2 | GETDEMOGR+5 |
SDSENSITIVE(3 | GETDEMOGR+5 |
SDZIP | GETPATINFO+5~ |
SIM | SIM+1~, SIM+2*, SIM+8*, SIM+9 |
U | SIM+6, SIM+7, ASSIGNADDR+21, ASSIGNADDR+37 |