Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Entry Points |  Interaction Calls |  Used in RPC
Print Page as PDF
Routine: HMPDJ

Package: Enterprise Health Management Platform

Routine: HMPDJ


Information

HMPDJ ;SLC/MKB,ASMR/RRB,CK -- Serve VistA data as JSON via RPC;Aug 29, 2016 20:06:27

Source Information

Source file <HMPDJ.m>

Entry Points

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

Interaction Calls

Name Line Occurrences
Function Call: WRITE
  • Prompt: !,@IDX
  • Line Location: TEST+10

Used in RPC

RPC Name Call Tags
HMP GET PATIENT DATA JSON GET
Info |  Source |  Entry Points |  Interaction Calls |  Used in RPC