HMPWB2 ;;ASMR/PJH/JD - WRITEBACK DEMOGRAPHICS/VITALS TO VISTA;Nov 13, 2015@16:42:53
Source file <HMPWB2.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 |
Package | Total | Caller Graph |
---|---|---|
Enterprise Health Management Platform | 3 | HMP WRITEBACK VITAL HMP WRITEBACK VITAL EIE HMPWB |
Name | Comments | DBIA/ICR reference |
---|---|---|
DEMOG(RSLT,IEN,DFN,DATA) | ;File demographic data - WIP not part of PSI 6
|
|
VMADD(RSLT,IEN,DFN,DATA) | ;Add vital measurement
|
|
VMERR(RSLT,DATA) | ;Mark vital measurement entered in error
|
|
GMV1(DFN,ID,SEQ,TOT) | ; -- vital/measurement ^UTILITY($J,"GMRVD",HMPIDT,HMPTYP,ID)
; Note: this code is a copy of GMV1^HMPDJ02 with addition of header |
|
FINDVM(DFN) | ;Get most recent vital measurement for this patient
|
|
COUNTVM(DFN,IEN,SEQ) | ;Count vitals for this patient
|
|
CHECK | ;Check for valid parameters
|
|
EXTRACT(GLOB) | ; Move ^TMP("HMPF",$J) into string format
|
RPC Name | Call Tags |
---|---|
HMP WRITEBACK VITAL | VMADD |
HMP WRITEBACK VITAL EIE | VMERR |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^GMR(120.5 - [#120.5] | FINDVM+1, COUNTVM+2, COUNTVM+4, CHECK+6, CHECK+8, CHECK+10 |
^TMP("HMP" | DEMOG+29, VMADD+33, VMERR+27, VMERR+31*, VMERR+32, VMERR+39*, VMERR+40 |
^TMP("HMPF" | GMV1+18, EXTRACT+4, EXTRACT+5, EXTRACT+6, EXTRACT+7, EXTRACT+8, EXTRACT+11, EXTRACT+12, EXTRACT+13, EXTRACT+14 , EXTRACT+16, EXTRACT+17, EXTRACT+18, EXTRACT+20, EXTRACT+23 |
^TMP("HMPVIT" | VMADD+47*, VMADD+49, VMERR+51*, VMERR+53 |
^TMP("VITAL" | GMV1+8!, GMV1+9*, GMV1+10, GMV1+14 |
Name | Line Occurrences |
---|---|
$$COUNTVM | VMADD+41, VMERR+45 |
$$EXTRACT | DEMOG+32, VMADD+46, VMERR+50 |
$$FINDVM | VMADD+39 |
CHECK | VMERR+28 |
GMV1 | VMADD+43, VMERR+47 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
ARRAY | GMV1+2~ |
DATA | DEMOG~, VMADD~, VMADD+32, VMADD+34, VMERR~, VMERR+29, CHECK+1*, CHECK+2, CHECK+6*, CHECK+7 |
DATA("data" | DEMOG+25 |
DFN | DEMOG~, DEMOG+22, DEMOG+25, VMADD~, VMERR+45, VMERR+47, GMV1~, GMV1+6, GMV1+13, GMV1+16 , FINDVM~, FINDVM+1, COUNTVM~, COUNTVM+2, CHECK+7* |
FAC | GMV1+2~ |
FILTER | GMV1+2~, GMV1+7 |
FILTER("domain" | GMV1+5* |
FILTER("id" | GMV1+3* |
FILTER("noHead" | GMV1+4* |
FILTER("patientId" | GMV1+6* |
GLOB | EXTRACT~ |
GMRIEN | VMADD+31~, VMADD+39*, VMADD+41, VMADD+43, VMERR+24~, VMERR+45, VMERR+47, GMV1+13, CHECK+2*, CHECK+3 , CHECK+6, CHECK+8, CHECK+10 |
GMRRSN | VMERR+24~, CHECK+7*, CHECK+9 |
HIGH | GMV1+2~ |
HMP | DEMOG+24~, DEMOG+29*, DEMOG+32, DEMOG+34, VMADD+31~, VMADD+33*, VMADD+46, VMADD+51, VMERR+24~, VMERR+27* , VMERR+50, VMERR+55 |
HMPDFN | VMADD+26~, VMADD+35*, VMADD+39, VMADD+41, VMADD+43 |
HMPE | GMV1+2~, GMV1+14*, GMV1+15 |
HMPFCNT | GMV1+2~, GMV1+12*, GMV1+16 |
HMPFND | EXTRACT+1~, EXTRACT+2*, EXTRACT+21* |
HMPI | DEMOG+24~, DEMOG+29*, VMADD+31~, VMADD+33*, VMERR+24~, VMERR+27* |
HMPODT | VMADD+31~, VMADD+32* |
HMPSTOP | VMERR+24~, VMERR+26*, VMERR+34, VMERR+38*, VMERR+43, CHECK+3*, CHECK+8*, CHECK+9*, CHECK+10*, EXTRACT+1~ , EXTRACT+2*, EXTRACT+4, EXTRACT+9* |
HMPUID | GMV1+2~, GMV1+13*, GMV1+16 |
HMPVEIE | VMADD+26~, VMADD+27*, VMERR+24~, VMERR+26* |
HMPY | GMV1+2~ |
I | GMV1+2~, EXTRACT+3*, EXTRACT+4*, EXTRACT+5, EXTRACT+6, EXTRACT+7, EXTRACT+8, EXTRACT+11, EXTRACT+12, EXTRACT+13 , EXTRACT+14, EXTRACT+16, EXTRACT+17, EXTRACT+18, EXTRACT+20, EXTRACT+23* |
ID | GMV1~, GMV1+3 |
IEN | DEMOG~, VMADD~, VMADD+29, COUNTVM~, COUNTVM+6 |
INVAR | DEMOG+24~, DEMOG+25*, DEMOG+27, VMADD+31~, VMADD+34*, VMADD+35, VMADD+37, VMERR+24~, VMERR+29*, VMERR+36 , VMERR+37 |
J | GMV1+2~, EXTRACT+3*, EXTRACT+5*, EXTRACT+6, EXTRACT+7, EXTRACT+8, EXTRACT+11, EXTRACT+12, EXTRACT+13, EXTRACT+14 , EXTRACT+16, EXTRACT+17*, EXTRACT+18, EXTRACT+20 |
L | EXTRACT+1~ |
LOC | GMV1+2~ |
LOW | GMV1+2~ |
MRES | GMV1+2~ |
MUNT | GMV1+2~ |
OUTVAR | DEMOG+24~, DEMOG+27, VMADD+31~, VMADD+37, VMERR+24~, VMERR+36 |
OUTVAR(0 | DEMOG+27, VMADD+37 |
PCE | EXTRACT+1~ |
RSLT | DEMOG~, DEMOG+22*, DEMOG+27*, DEMOG+32*, VMADD~, VMADD+29*, VMADD+34*, VMADD+37*, VMADD+39*, VMADD+45! , VMADD+46*, VMADD+47, VMADD+48!, VMADD+49*, VMERR~, VMERR+32*, VMERR+40*, VMERR+49!, VMERR+50*, VMERR+51 , VMERR+52!, VMERR+53*, GMV1+7, GMV1+9, GMV1+10*, GMV1+17!, GMV1+18*, EXTRACT+2*, EXTRACT+26 |
RSLT( | EXTRACT+8*, EXTRACT+16*, EXTRACT+20* |
RSLT(1 | VMERR+30, VMERR+31, VMERR+33!, VMERR+39, VMERR+41! |
SEQ | VMADD+31~, VMADD+41, VMADD+43, VMERR+45, VMERR+47, GMV1~, COUNTVM~, COUNTVM+1*, COUNTVM+6* |
STMPTM | GMV1+2~, GMV1+15*, GMV1+16 |
SUB | COUNTVM+1~*, COUNTVM+2*, COUNTVM+4, COUNTVM+6 |
TOT | VMADD+31~, VMADD+41*, VMADD+43, VMERR+45*, VMERR+47, GMV1~, COUNTVM+1~*, COUNTVM+6*, COUNTVM+8 |
TYPE | GMV1+2~ |
U | DEMOG+25, VMADD+34, VMADD+35, COUNTVM+4, CHECK+2, CHECK+6, CHECK+7 |
VIT | GMV1+2~ |
VMADD | VMADD+26~, VMADD+27*, COUNTVM+4 |
VMERR | VMERR+24~, VMERR+25* |
X | GMV1+2~, EXTRACT+2*, EXTRACT+8, EXTRACT+15*, EXTRACT+16, EXTRACT+19*, EXTRACT+20 |
X0 | GMV1+2~ |
Y | GMV1+2~ |