DDEGET ;SPFO/RAM,MKB - Entity GET Handler ;1/26/23 10:37
Source file <DDEGET.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 |
| Name | Comments | DBIA/ICR reference |
|---|---|---|
| EN(ENTITY,ID,FILTER,MAX,FORMAT,TARGET,ERROR) | ; -- Return [list of] data entities
; where ENTITY = ien or name of desired Entity #1.5 ; ID = single item ID to return [opt] ; MAX = maximum number of items to return [opt] ; FORMAT = 0:JSON (default) or 1:XML [opt] ; TARGET = closed array reference to return data [opt] ; ERROR = closed array reference for error msgs [opt] ; FILTER[(#)] = search values, if using FIND^DIC [opt] ; FILTER("from") = starting search value, for LIST^DIC [opt] ; FILTER("partial") = partial search value, for LIST^DIC [opt] ; FILTER("start") = start date.time of search, for Query [opt] ; FILTER("stop") = stop date.time of search, for Query [opt] ; FILTER("patient") = DFN or DFN;ICN [opt] ; FILTER("init") = initial value for array subscript [opt] |
|
| A | ; parse & validate input parameters
|
|
| B | ; extract data
|
|
| ENQ | ;exit
|
|
| DIC(ENT) | ; -- FIND/LIST^DIC, returns DLIST(#)=id for query ;p24
; ID should be null, or iens for sub-file search (",###,") |
|
| PRE(ENT) | ; -- pre-processing logic
|
|
| POST(ENT) | ; -- post-processing logic
|
|
| ERROR(MSG) | ; -- return error MSG
|
|
| VALID(PAT) | ; -- return 1 or 0, if valid PATient #2 ien
|
|
| SYS() | ; -- return hashed system name
|
| Name | Line Occurrences (* Changed, ! Killed) |
|---|---|
| ^DDE - [#1.5] | A+3, A+5, B+1, DIC+3, PRE+2, POST+2 |
| ^DDE("B" | A+2 |
| ^DIC - [#1] | DIC+11 |
| ^DPT - [#2] | VALID+4, VALID+6, VALID+7 |
| ^TMP("DDE GET" | EN+18 |
| ^TMP("DDERR" | EN+20 |
| Name | Field # of Occurrence |
|---|---|
| ^(0 | DIC+3 |
| ^(5.1 | DIC+3 |
| >> | Not killed explicitly |
| * | Changed |
| ! | Killed |
| ~ | Newed |
| Name | Field # of Occurrence |
|---|---|
| DDEI | EN+15~, EN+19*, B+14*, B+15 |
| DDELIST | EN+15~ |
| DDELIST("DILIST" | DIC+11, DIC+13 |
| DDEN | EN+15~, B+9*, B+11 |
| DDEQUIT | EN+15~, A+25 |
| DDER | EN+15~, EN+20*, ENQ+1, ERROR+1, ERROR+2 |
| DDEX | EN+15~, B+12*, B+14 |
| DDEY | EN+15~, EN+18*, EN+19, B+14, B+15, ENQ+1 |
| DDEZ | EN+15~, B+12, B+13 |
| DDVAL | DIC+2~, DIC+6*, DIC+8*, DIC+9, DIC+10 |
| DDVAL( | DIC+7* |
| DDVAL(0 | DIC+8 |
| DFN | EN+16~, A+16*, A+17*, A+18*, A+19 |
| DFORM | EN+15~, A+22*, A+23*, B+2, B+4 |
| DLIST | EN+15~, DIC+11* |
| DLIST( | B+9, B+11, DIC+13* |
| DLIST(1 | B+3* |
| DMAX | EN+15~, A+13*, DIC+9, DIC+10 |
| DSTOP | EN+15~, A+9*, A+10, A+11*, A+12* |
| DSTRT | EN+15~, A+8*, A+10, A+11* |
| DSYS | EN+15~, EN+22* |
| DT | EN+21* |
| DTYPE | EN+15~, A+2*, A+3, A+5, A+6, A+25, B+1, B+7, B+12, B+17 |
| ENT | DIC~, DIC+3, PRE~, PRE+2, POST~, POST+2 |
| ENTITY | EN~, A+1, A+2, A+3 |
| ERROR | EN~, EN+20, ENQ+1* |
| FILE | EN+16~, A+5*, A+6, A+18, DIC+2, DIC+9, DIC+10, DIC+11 |
| FILTER | EN~, DIC+5, DIC+6 |
| FILTER( | DIC+7 |
| FILTER("from" | DIC+4 |
| FILTER("id" | A+15 |
| FILTER("init" | EN+19 |
| FILTER("notag" | B+2 |
| FILTER("partial" | DIC+4 |
| FILTER("patient" | A+16 |
| FILTER("start" | A+8 |
| FILTER("stop" | A+9 |
| FORMAT | EN~, A+22 |
| FROM | DIC+2~, DIC+4*, DIC+10 |
| I | DIC+2~, DIC+7~*, DIC+13*, ERROR+1~*, ERROR+2* |
| ICN | EN+16~, A+16*, A+17 |
| ID | EN~, EN+22*, A+15*, A+18, B+3, B+11*, B+12, DIC+9, DIC+10, DIC+13 |
| LIST | EN+16~, B+2*, B+4*, B+12 |
| MAX | EN~, A+13 |
| MSG | ERROR~, ERROR+2 |
| PART | DIC+2~, DIC+4*, DIC+10 |
| PAT | VALID~, VALID+1*, VALID+3, VALID+4, VALID+6, VALID+7 |
| QUERY | EN+16~, B+1*, B+6 |
| SCR | DIC+2~, DIC+3*, DIC+9, DIC+10 |
| TARGET | EN~, EN+18, ENQ+1* |
| U | A+5, B+13, DIC+3, VALID+6 |
| VAL | DIC+2~, DIC+3*, DIC+5, DIC+8 |
| X | A+11~*, PRE+1~, PRE+2*, POST+1~, POST+2* |
| XREF | DIC+2~, DIC+3*, DIC+9, DIC+10 |
| Name | Field # of Occurrence |
|---|---|
| $T(@(4) | B+6 |