HMPDJ ;SLC/MKB,ASMR/RRB,CK -- Serve VistA data as JSON via RPC;Aug 29, 2016 20:06:27
Source file <HMPDJ.m>
| Name | Comments | DBIA/ICR reference | 
|---|---|---|
| GET(HMP,FILTER) | ; -- Return search results as JSON in @HMP@(n)
 ; RPC = HMP GET PATIENT DATA JSON ; where FILTER("patientId") = DFN or DFN;ICN ; FILTER("domain") = name of desired data type (see HMPDJ0) ; FILTER("text") = boolean, to include document text [opt] ; FILTER("start") = start date.time of search [opt] ; FILTER("stop") = stop date.time of search [opt] ; FILTER("max") = maximum number of items to return [opt] ; FILTER("id") = single item id to return [opt] ; FILTER("uid") = single record uid to return [opt] ; FILTER("noHead") = flag, to omit header and commas [opt]  | 
|
| GTQ | ; add item count and terminating characters
 | 
|
| SEPUID(FILTER) | ; -- separate uid into FILTER pieces
 | 
|
| SYS() | ; -- return system info for JSON header
 | 
|
| BUILDERR(RESULT,DFN) | ; -- build error array
 | 
|
| TAG(X) | ; -- Return linetag in HMPDJ0 routine for clinical domain X
 | 
|
| ALL() | ; -- return string for all types of data
 | 
|
| ERR(X,VAL) | ; -- return error message
 | 
|
| HL7NOW() | ; -- Return current time in HL7 format
 | 
|
| ADD(ITEM,COLL) | ; -- add ITEM to results
 | 
|
| TEST(DFN,TYPE,ID,TEXT,IN) | ; -- test GET, write results to screen
 | 
| Name | Line Occurrences | 
|---|---|
| Function Call: WRITE | 
  | 
| RPC Name | Call Tags | 
|---|---|
| HMP GET PATIENT DATA JSON | GET |