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 |  Caller Graph |  Entry Points |  External References |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  Marked Items |  All
Print Page as PDF
Routine: VPRSDAQ

Package: Virtual Patient Record

Routine: VPRSDAQ


Information

VPRSDAQ ;SLC/MKB -- SDA queries ;3/28/19 14:09

Source Information

Source file <VPRSDAQ.m>

Call Graph

Call Graph

Call Graph Total: 22

Package Total Call Graph
VA FileMan 3 ^%DT  $$FIND1^DIC  $$GET1^DIQ  
Virtual Patient Record 3 MDPS1^VPRDJ03  (PTF,SORT)^VPRDJ09  IDT^VPRDVSIT  
Registration 2 $$GETACT^DGPFAPI  ADM^VADPT2  
Text Integration Utility 2 ENCOVER^TIUPP3  LIST^TIUVPR  
Adverse Reaction Tracking 1 (EN1,EN2)^GMRADPT  
Consult Request Tracking 1 OER^GMRCSLM1  
DRG Grouper 1 $$CODEBA^ICDEX  
Functional Independence 1 (LC,PRM)^RMIMRP  
General Medical Record - Vitals 1 EN1^GMRVUT0  
Integrated Billing 1 $$INSUR^IBBAPI  
Kernel 1 $$FMADD^XLFDT  
Lab Service 1 RR^LR7OR1  
Order Entry Results Reporting 1 EN^ORQ1  
Problem List 1 LIST^GMPLUTL2  
Scheduling 1 $$SDAPI^SDAMA301  
Surgery 1 LIST^SROESTV  

Caller Graph

Legends:

Legend of Colors

Package Component Superscript legend

protocol O screenman SM broker B event driver Ed print P extended action Ea limited protocol LP edit E server Se subscriber Su inquire I run routine RR action A

Caller Graph

Caller Graph Total: 1

Package Total Caller Graph
Virtual Patient Record 1 VPRSDA  

Entry Points

Name Comments DBIA/ICR reference
NONORD ; -- Other orders: not Lab, Rad, or Med
HFS ; -- V Health Factors, for Social History
PROBLEMS ; -- Problem List
HFM ; -- V Health Factors, for Family History
RX(ORIFN) ; -- is order really a med? (non-PS order in display group)
APPTS ; -- Appointments
CPT ; -- V CPT (Procedures)
ADVDIR ; -- Adv Directive (alerts)
ALLERGYS ; -- Allergies/Adverse Reactions
HFACTORS ; -- V Health Factors (Health Concerns)
PRF ; -- Patient Record Flags
ORPKG ; -- get list of pkgs to exclude
POV ; -- V POV (Diagnosis)
PTF ; -- PTF DXLS via ^PXRMINDX(45,"ICD","PNI",DFN,"DXLS",ICD,DATE,DA)
DATE(X) ; -- Return internal form of date X
SURGERYS ; -- Surgeries
PXRM ; -- Search PXRM index
CPROCS ; -- Clinical Procedures
DOCUMENT ; -- Text Integration Utilities
ORDERS(DG) ; -- Orders by Display Group
LRMI ; -- LR Microbiology reports [expects LRDFN]
SOCHIST(IEN) ; -- find social history factors
CONSULTS ; -- Consult/Request Tracking
VISITS ; -- Visits
INS ; -- Insurance
EXAMS ; -- V Exams (Physical Exams)
VITALS ; -- GMR Vital Measurements
SCHADMS ; -- Scheduled Admissions
ADM ; -- Admissions (via Visits)
CW ; -- Crisis/Warning notes (alerts)
FIM ; -- Functional Independence Measurements
BB(ORIFN) ; -- return 1 or 0, if order is for Blood Bank
LRAP ; -- LR Anatomic Pathology reports [expects LRDFN]
WVPL ; -- Women's Health Pregnancy Log, for Social History
IMMS ; -- Immunizations

External References

Name Field # of Occurrence
^%DT ADVDIR+12, DATE+2
$$GETACT^DGPFAPI PRF+2
$$FIND1^DIC ORPKG+3
$$GET1^DIQ RX+2
LIST^GMPLUTL2 PROBLEMS+3
EN1^GMRADPT ALLERGYS+4
EN2^GMRADPT ALLERGYS+3
OER^GMRCSLM1 CONSULTS+2
EN1^GMRVUT0 VITALS+4
$$INSUR^IBBAPI INS+4
$$CODEBA^ICDEX PTF+6
RR^LR7OR1 LRAP+2, LRMI+2
EN^ORQ1 ORDERS+5, NONORD+4
LC^RMIMRP FIM+7
PRM^RMIMRP FIM+2
$$SDAPI^SDAMA301 APPTS+6
LIST^SROESTV SURGERYS+2
ENCOVER^TIUPP3 ADVDIR+2, CW+2
LIST^TIUVPR DOCUMENT+2
ADM^VADPT2 VISITS+8, ADM+6
MDPS1^VPRDJ03 CPROCS+2
PTF^VPRDJ09 PTF+3
SORT^VPRDJ09 PXRM+3, IMMS+3
IDT^VPRDVSIT VISITS+2, ADM+2
$$FMADD^XLFDT WVPL+5

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^DIC(9.4 - [#9.4] FIND1^DIC,  GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^AUPNVSIT - [#9000010] VISITS+6
^AUPNVSIT("AA" VISITS+4, VISITS+5
^AUPNVSIT("AAH" ADM+3, ADM+4
^AUTTHF - [#9999999.64] HFM+3, SOCHIST+1
^DGS(41.1 - [#41.1] SCHADMS+2, SCHADMS+3
^LR - [#63] LRAP+5, LRAP+6, LRMI+4
^OR(100 - [#100] ORDERS+8, ORDERS+9, RX+2, BB+2, NONORD+7, NONORD+8
^ORD(100.98 - [#100.98] ORDERS+2, BB+2, NONORD+2
^PXRMINDX(9000010.23 HFM+2, HFM+4, HFM+5, HFS+2, HFS+3, HFS+4
^TMP("GMRCR" CONSULTS+3, CONSULTS+4, CONSULTS+6!
^TMP("LRRR" LRAP+3, LRAP+4, LRAP+8!, LRMI+3, LRMI+6!
^TMP("MDHSP" CPROCS+3, CPROCS+4*
^TMP("ORR" ORDERS+6, ORDERS+15!, NONORD+5, NONORD+11!
^TMP("TIUPPCV" ADVDIR+5, CW+4
^TMP("VPRGMV" VITALS+9*
^TMP("VPRPX" PXRM+4, PXRM+5, PXRM+6, PXRM+8!, IMMS+4, IMMS+5, IMMS+7!, PTF+4, PTF+5, PTF+6
, PTF+9!
^TMP($J APPTS+7
^UTILITY($J VITALS+5, VITALS+6, VITALS+7, VITALS+9, VITALS+10!
^WV(790.05 - [#790.05] WVPL+2, WVPL+3

Label References

Name Line Occurrences
$$BB ORDERS+13
$$DATE FIM+9
$$RX ORDERS+12
$$SOCHIST HFS+2
ORPKG NONORD+2
PXRM EXAMS+1, HFACTORS+1, CPT+1, POV+1

Naked Globals

Name Field # of Occurrence
^( ADVDIR+5, CW+4, LRAP+4, LRMI+3, ORDERS+6, NONORD+5, CPROCS+3
^(4 ORDERS+9

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
%DT ADVDIR+10~, ADVDIR+12*, DATE+1~, DATE+2*
AD ADVDIR+1~, ADVDIR+5*, ADVDIR+8*, ADVDIR+9, ADVDIR+10, ADVDIR+11, ADVDIR+13, ADVDIR+15*, ADVDIR+16, ADVDIR+17
ADD ADVDIR+10~*
ADM FIM+1~, FIM+9*
BEG VISITS+1~, VISITS+2*, VISITS+3, ADM+1~, ADM+2*, ADM+3
CNT ADVDIR+1~, ADVDIR+13*, ADVDIR+16*, CW+1~, CW+3*, CW+4*
CTR LRAP+1~, LRMI+1~
DA HFM+1~, HFM+5*, HFS+1~, HFS+4*, WVPL+1~, WVPL+2*, WVPL+3, WVPL+5
DATE HFM+1~, HFM+4*, HFM+5, HFS+1~, HFS+3*, HFS+4
>> DFN PROBLEMS+3, VISITS+4, VISITS+5, ADM+3, ADM+4, DOCUMENT+2, ADVDIR+2, CW+2, LRAP+2, LRAP+3
, LRAP+4, LRAP+8, LRMI+2, LRMI+3, LRMI+6, ORDERS+5, NONORD+4, CONSULTS+2, CPROCS+2, SURGERYS+2
, HFM+2, HFM+4, HFM+5, HFS+2, HFS+3, HFS+4, WVPL+2, APPTS+2, APPTS+7, APPTS+8
, SCHADMS+2, INS+4, PRF+2, PRF+5, FIM+3*, FIM+6
DG ORDERS~, ORDERS+2*, ORDERS+4, ORDERS+12, ORDERS+13, BB+1~, BB+2*, BB+3
>> DLIST( PROBLEMS+6*, ALLERGYS+6*, VISITS+9*, ADM+7*, DOCUMENT+5*, ADVDIR+13*, ADVDIR+16*, CW+4*, LRAP+7*, LRMI+5*
, ORDERS+14*, NONORD+10*, CONSULTS+5*, CPROCS+5*, SURGERYS+5*, PXRM+6*, HFM+5*, HFS+4*, IMMS+6*, VITALS+8*
, APPTS+8*, SCHADMS+6*, INS+5*, PRF+5*, PTF+7*, FIM+10*
>> DLIST(1 WVPL+5*
>> DMAX PROBLEMS+4, ALLERGYS+6, VISITS+4, ADM+3, DOCUMENT+4, LRAP+2, LRMI+2, ORDERS+6, NONORD+5, CONSULTS+3
, CPROCS+2, CPROCS+3, SURGERYS+2, PXRM+4, PXRM+5, HFM+2, HFM+4, HFM+5, HFS+2, HFS+3
, HFS+4, IMMS+4, IMMS+5, VITALS+3, VITALS+5, APPTS+7, SCHADMS+2, PTF+4, PTF+5, FIM+8
>> DSTOP PROBLEMS+5, VISITS+2, ADM+2, DOCUMENT+2, LRAP+2, LRMI+2, ORDERS+5, NONORD+4, CONSULTS+2, CPROCS+2
, SURGERYS+2, PXRM+2, HFM+4, HFS+3, IMMS+2, VITALS+3, APPTS+2, SCHADMS+4, PTF+2, FIM+9
>> DSTRT PROBLEMS+5, VISITS+2, ADM+2, DOCUMENT+2, LRAP+2, LRMI+2, ORDERS+5, NONORD+4, CONSULTS+2, CPROCS+2
, SURGERYS+2, PXRM+2, HFM+4, HFS+3, IMMS+2, VITALS+3, APPTS+2, SCHADMS+4, PTF+2, FIM+9
DT WVPL+5, INS+2
END VISITS+1~, VISITS+2*, VISITS+4, ADM+1~, ADM+2*, ADM+3
>> FILTER("status" PROBLEMS+2, INS+2
FNUM EXAMS+1~*, HFACTORS+1~*, CPT+1~*, POV+1~*, IMMS+1~, IMMS+2*
GMRA ALLERGYS+1~, ALLERGYS+2*
>> GMRAL ALLERGYS+5
>> GMRAL( ALLERGYS+6
GMRCDA CONSULTS+1~
GMRCGRP CONSULTS+1~
GMRCSEX CONSULTS+1~
GMRVSTR VITALS+1~, VITALS+2*
GMRVSTR(0 VITALS+3*
I ADVDIR+1~, ADVDIR+5*, ADVDIR+8*, ADVDIR+15*, CW+1~, CW+3*, CW+4*, CPROCS+1~, CPROCS+3*, CPROCS+4
, INS+1~, INS+5*, PRF+1~, PRF+3*, PRF+4, PRF+5
ID PROBLEMS+1~, ALLERGYS+1~, ALLERGYS+6*, VISITS+1~, VISITS+5*, VISITS+6, VISITS+9, ADM+1~, ADM+4*, ADM+7
, CPROCS+1~, PXRM+1~, PXRM+5*, PXRM+6, IMMS+1~, IMMS+5*, IMMS+6, VITALS+1~, VITALS+7*, VITALS+8
, VITALS+9, PTF+1~, PTF+5*, PTF+6, PTF+7
IDT VISITS+1~, VISITS+3*, VISITS+4*, VISITS+5, VISITS+7, ADM+1~, ADM+3*, ADM+4, ADM+5, LRAP+1~
, LRAP+4*, LRAP+5, LRAP+6, LRAP+7, LRMI+1~, LRMI+3*, LRMI+4, LRMI+5
IEN SOCHIST~, SOCHIST+1, PRF+1~, PRF+4*, PRF+5
ITEM HFM+1~, HFM+2*, HFM+3, HFM+4, HFM+5, HFS+1~, HFS+2*, HFS+3, HFS+4
>> LRDFN LRAP+5, LRAP+6, LRAP+7, LRMI+4, LRMI+5
NMSP ORPKG+1~, ORPKG+2*, ORPKG+3
NUM INS+1~, INS+4*, PRF+1~, PRF+2*
NXT ADVDIR+1~, ADVDIR+8*, ADVDIR+12*, ADVDIR+13*, ADVDIR+16, ADVDIR+17*
ORDER ORDERS+1~, ORDERS+6*, ORDERS+7, ORDERS+8, ORDERS+9*, ORDERS+12, ORDERS+13, ORDERS+14, NONORD+1~, NONORD+5*
, NONORD+6, NONORD+7, NONORD+8, NONORD+10
ORDG ORDERS+1~, ORDERS+2*, ORDERS+5, NONORD+1~, NONORD+2*, NONORD+4
ORIFN RX~, RX+2, BB~, BB+2
ORIGVIEW ORDERS+1~, ORDERS+4*, NONORD+1~, NONORD+3*
ORKID ORDERS+1~, ORDERS+4*, ORDERS+5
ORLIST ORDERS+1~, ORDERS+6, NONORD+1~, NONORD+5
ORPKG NONORD+1~
ORPKG( NONORD+9, ORPKG+4*
P80 PTF+1~, PTF+6*, PTF+7
PKG RX+1~, RX+2*, RX+3
RMIMTIME FIM+1~
STS ADVDIR+1~, ADVDIR+8*, ADVDIR+10*, ADVDIR+13, ADVDIR+15*, ADVDIR+16
SUB LRAP+1~, LRAP+3*, LRAP+4, LRAP+5, LRAP+6, LRAP+7
TITLE CONSULTS+1~
TIUD ADVDIR+1~
TIUD( ADVDIR+5*, ADVDIR+8, ADVDIR+15
TIUD("" ADVDIR+8
TIUD(0 ADVDIR+6
U PROBLEMS+5, VISITS+6, ADVDIR+5, ADVDIR+9, ADVDIR+10, ADVDIR+13, ADVDIR+16, ADVDIR+17, CW+4, LRAP+6
, LRMI+4, ORDERS+7, ORDERS+10, ORDERS+11, RX+2, BB+2, NONORD+6, NONORD+7, NONORD+8, CPROCS+3
, CPROCS+4, CPROCS+5, PXRM+6, HFM+3, HFM+5, HFS+4, SOCHIST+1, WVPL+5, VITALS+3, SCHADMS+4
, SCHADMS+5, PTF+6, PTF+7, FIM+6, FIM+9
VADMVT VISITS+1~, VISITS+6, ADM+1~, ADM+6, ADM+7
VAERR VISITS+1~, ADM+1~
VAINDT VISITS+1~, VISITS+7*, ADM+1~, ADM+5*
VPRA SCHADMS+1~, SCHADMS+2*, SCHADMS+3, SCHADMS+6
VPRCNT FIM+1~, FIM+4*, FIM+8, FIM+10*
VPRDT APPTS+1~, APPTS+6*, APPTS+7*, APPTS+8, INS+1~, INS+2*, INS+3*, INS+4
>> VPRF( PRF+3, PRF+4
>> VPRF("IDX" PRF+5*
VPRI DOCUMENT+1~, DOCUMENT+3*, DOCUMENT+4*, DOCUMENT+5, ORDERS+1~, ORDERS+6*, NONORD+1~, NONORD+5*
VPRIDT PXRM+1~, PXRM+4*, PXRM+5, PXRM+6, IMMS+1~, IMMS+4*, IMMS+5, VITALS+1~, VITALS+5*, VITALS+6
, VITALS+7, VITALS+9, PTF+1~, PTF+4*, PTF+5, PTF+6
>> VPRINS INS+6*
VPRN PROBLEMS+1~, PROBLEMS+4*, PROBLEMS+5, PROBLEMS+6, ALLERGYS+1~, ALLERGYS+2*, ALLERGYS+6*, VISITS+1~, VISITS+3*, VISITS+4
, VISITS+9*, ADM+1~*, ADM+3, ADM+7*, DOCUMENT+1~, DOCUMENT+3*, DOCUMENT+4, DOCUMENT+5*, LRAP+1~*, LRAP+7*
, LRMI+1~*, LRMI+5*, ORDERS+1~, ORDERS+5*, ORDERS+6, ORDERS+14*, NONORD+1~, NONORD+4*, NONORD+5, NONORD+10*
, CONSULTS+1~, CONSULTS+2*, CONSULTS+3*, CONSULTS+4, CONSULTS+5, CPROCS+1~*, CPROCS+3, CPROCS+5*, SURGERYS+1~, SURGERYS+3*
, SURGERYS+4, SURGERYS+5, PXRM+1~, PXRM+2*, PXRM+4, PXRM+5, PXRM+6*, HFM+1~*, HFM+2, HFM+4
, HFM+5*, HFS+1~*, HFS+2, HFS+3, HFS+4*, IMMS+1~, IMMS+2*, IMMS+4, IMMS+5, IMMS+6*
, VITALS+1~, VITALS+4*, VITALS+5, VITALS+8*, APPTS+1~, APPTS+6*, APPTS+7, APPTS+8*, SCHADMS+1~*, SCHADMS+2
, SCHADMS+6*, PTF+1~, PTF+2*, PTF+4, PTF+5, PTF+7*, FIM+1~, FIM+6*, FIM+7, FIM+8*
, FIM+9, FIM+10
VPRNUM APPTS+1~, APPTS+6*
VPRPROB PROBLEMS+1~, PROBLEMS+3
VPRPROB( PROBLEMS+4, PROBLEMS+5, PROBLEMS+6
VPRS FIM+1~, FIM+5*, FIM+6
>> VPRSITE FIM+2
>> VPRSITE( FIM+5, FIM+6
>> VPRSITE(1 FIM+2
VPRSTART PXRM+1~, PXRM+2*, IMMS+1~, IMMS+2*, PTF+1~, PTF+2*
VPRSTOP PXRM+1~, PXRM+2*, IMMS+1~, IMMS+2*, PTF+1~, PTF+2*
VPRSTS PROBLEMS+1~, PROBLEMS+2*, PROBLEMS+3, INS+1~, INS+2*, INS+3, INS+4
VPRTYP VITALS+1~, VITALS+6*, VITALS+7, VITALS+9
VPRX CONSULTS+1~, CONSULTS+4*, CONSULTS+5, CPROCS+1~, CPROCS+3*, CPROCS+4, CPROCS+5, APPTS+1~, APPTS+6, SCHADMS+3*
, SCHADMS+4, SCHADMS+5, INS+1~, INS+4
VPRX("FLDS" APPTS+3*
VPRX("IBBAPI" INS+5, INS+6
VPRX("SORT" APPTS+3*
VPRX(1 APPTS+2*
VPRX(3 APPTS+5*
VPRX(4 APPTS+2*
VPRY DOCUMENT+1~, DOCUMENT+2, DOCUMENT+4, DOCUMENT+6, SURGERYS+1~, SURGERYS+2, SURGERYS+3, SURGERYS+4, SURGERYS+5, SURGERYS+6
, FIM+1~, FIM+7
VPRY( FIM+8, FIM+9, FIM+10
VPRY(1 FIM+7
X PROBLEMS+1~, PROBLEMS+5*, ADVDIR+10~, ADVDIR+11*, ADVDIR+12, CW+1~, CW+4*, RX+1~, RX+2*, BB+1~
, BB+2*, NONORD+1~, NONORD+8*, NONORD+9, ORPKG+1~, ORPKG+3*, ORPKG+4, HFM+1~, HFM+3*, SOCHIST+1~*
, SOCHIST+2, SCHADMS+4*, PTF+1~, PTF+6*, PTF+7, DATE~, DATE+2
X0 WVPL+1~, WVPL+3*, WVPL+5
X3 ORDERS+1~, ORDERS+9*, ORDERS+10, ORDERS+11
X4 ORDERS+1~, ORDERS+9*, ORDERS+10
Y ADVDIR+10~, ADVDIR+12, RX+1~*, RX+3*, RX+4, BB+1~*, BB+3*, BB+4, DATE+1~, DATE+2*
, DATE+3

Marked Items

Name Field # of Occurrence
$T(EN2^GMRADPT ALLERGYS+3
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables |  Marked Items |  All