Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Call Graph |  Entry Points |  External References |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables  | All
Print Page as PDF
Routine: HMPDJ2

Package: Enterprise Health Management Platform

Routine: HMPDJ2


Information

HMPDJ2 ;SLC/MKB,ASMR/RRB,CK - HMP Object RPCs;May 15, 2016 14:15

Source Information

Source file <HMPDJ2.m>

Call Graph

Call Graph

Call Graph Total: 9

Package Total Call Graph
Enterprise Health Management Platform 6 GTQ^HMPDJ  HMP1^HMPDJ02  POSTX^HMPEVNT  (DECODE,ENCODE)^HMPJSON  $$FMTHL7^HMPSTMP  ($$SYS,SETERROR)^HMPUTILS  
Kernel 2 $$NOW^XLFDT  $$LOW^XLFSTR  
VA FileMan 1 ^DIK  

Entry Points

Name Comments DBIA/ICR reference
GET(HMP,FILTER) ; -- Return search results as JSON in @HMP@(n)
; RPC = HMP GET OBJECT
GQ ;build return JSON
DEL(HMP,HMPID) ; -- Delete object HMPID from ^HMP(800000.11)
; RPC = HMP DELETE OBJECT
PUT(HMP,TYPE,JSON) ; -- Save/update JSON OBJECT in ^HMP(800000.11), return UID if successful
; RPC = HMP PUT OBJECT
PTQ ; add item count and terminating characters
NEW1(UID) ; -- create new entry in ^HMP(800000.11) from PAT,TYPE,HMPSYS
; Return UID & DA, or ERR
NEW ; -- create new entry in ^HMP(800000.11) from PAT,TYPE,HMPSYS
; Return UID & DA, or ERR
NEXTIFN() ; -- Returns next available IFN
ERR(X,VAL) ; -- return error message
HL7NOW() ; -- Return current time in HL7 format

External References

Name Field # of Occurrence
^DIK DEL+6
GTQ^HMPDJ GQ+1
HMP1^HMPDJ02 GET+19, GET+21
POSTX^HMPEVNT PTQ+3
DECODE^HMPJSON PUT+4
ENCODE^HMPJSON PUT+12, PUT+23, PUT+28
$$FMTHL7^HMPSTMP HL7NOW+1
$$SYS^HMPUTILS PUT+17
SETERROR^HMPUTILS PUT+11, PUT+27
$$NOW^XLFDT HL7NOW+1
$$LOW^XLFSTR GET+6

Used in RPC

RPC Name Call Tags
HMP DELETE OBJECT DEL
HMP GET OBJECT GET
HMP PUT OBJECT PUT

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^HMP(800000.11 - [#800000.11] Classic Fileman Calls

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^HMP(800000.11 - [#800000.11] GET+18, GET+21, DEL+5, PUT+18, PUT+33!, PUT+34*, PUT+35*, NEW1+7*, NEW1+8*, NEW1+9*
NEW+7*, NEW+8*, NEW+9*, NEXTIFN+2, NEXTIFN+4, NEXTIFN+5, NEXTIFN+6*, NEXTIFN+7
^TMP("HMP" GET+3
^TMP($J GET+14!

Label References

Name Line Occurrences
$$ERR DEL+4, DEL+5, PUT+18, NEW1+3, NEW1+5, NEW+3, NEW+5
$$HL7NOW PTQ+2
$$NEXTIFN NEW1+5, NEW+5
GQ GET+17, GET+20
NEW PUT+21
PTQ DEL+4, DEL+5, DEL+8, PUT+18, PUT+20

Naked Globals

Name Field # of Occurrence
^(1 PUT+33*

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
ACTION DEL+3~, DEL+7*, PUT+3~, PTQ+3
ARRAY PUT+3~, PUT+9!, PUT+14, PUT+27
ARRAY("uid" PUT+17, PUT+22*
CNT PUT+3~, PUT+33*, PUT+34*, PUT+35
DA DEL+3~, DEL+5*, PUT+3~, PUT+18*, PUT+33, PUT+34, PUT+35, PTQ+3, NEW1+5*, NEW1+6
, NEW1+7, NEW1+8, NEW1+9, NEW+5*, NEW+6, NEW+7, NEW+8, NEW+9, NEXTIFN+1~, NEXTIFN+6*
, NEXTIFN+8
DIK DEL+3~, DEL+6*
>> DILOCKTM NEXTIFN+2
ERR DEL+3~, DEL+4*, DEL+5*, PUT+3~, PUT+18*, PUT+20, PUT+21, PTQ+1, NEW1+3*, NEW1+5*
NEW+3*, NEW+5*
ERRARRY GET+11~
ERRDOM GET+11~, GET+13*
ERRMSG GET+11~, GET+13*
ERRPAT GET+11~
FILTER GET~
FILTER("collection" GET+6
FILTER("id" GET+8
FILTER("max" GET+7
HDR NEXTIFN+1~, NEXTIFN+4*, NEXTIFN+6*
HMP GET~, GET+3*, DEL~, PUT~, PTQ+1*, PTQ+2*
HMP( PUT+13*, PUT+29*
HMP(1 PUT+14*, PUT+30*
HMP(2 PUT+15*, PUT+31*
HMPERR GET+2~, GET+20*, PUT+3~, PUT+8, PUT+11, PUT+12!, PUT+20, PUT+24, PUT+27, PUT+28!
HMPI GET+2~, GET+3*
HMPID GET+2~, GET+8*, GET+17, GET+18, DEL~, DEL+4
HMPMAX GET+2~, GET+7*
HMPSYS PUT+3~, PUT+17*, NEW1+6, NEW+6
HMPTMP PUT+9~, PUT+11, PUT+25~, PUT+27
HMPTXT PUT+9~, PUT+11, PUT+25~, PUT+27
HMPTXT(1 PUT+10*, PUT+26*
I PUT+3~, PUT+34*, NEXTIFN+1~, NEXTIFN+4*, NEXTIFN+5*, NEXTIFN+6
IEN GET+2~, GET+18*, GET+19, GET+21*
JSON PUT~, PUT+11, PUT+22!, PUT+25!, PUT+30
JSON( PUT+34
MSG ERR+1~*, ERR+2*, ERR+3*, ERR+4*, ERR+5*, ERR+6*, ERR+7
TOTAL NEXTIFN+1~, NEXTIFN+4*, NEXTIFN+6
TYPE GET+2~, GET+6*, GET+13, GET+20, GET+21, DEL+3~, DEL+7*, PUT~, PTQ+3, NEW1+2*
, NEW1+3, NEW1+6, NEW1+7, NEW1+9, NEW+2*, NEW+3, NEW+6, NEW+7, NEW+9
U PUT+35, NEW1+7, NEW+7, NEXTIFN+4, NEXTIFN+6
UID DEL+3~, DEL+4*, DEL+5, DEL+7, PUT+3~, PUT+17*, PUT+18, PUT+20, PUT+22, PTQ+2
, NEW1~, NEW1+6*, NEW1+7, NEW1+8, NEW+6*, NEW+7, NEW+8
VAL ERR~, ERR+2, ERR+3, ERR+4
X PUT+3~, ERR~, ERR+2, ERR+3, ERR+4, ERR+5, ERR+6
Info |  Source |  Call Graph |  Entry Points |  External References |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables  | All