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 |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables  | All
Print Page as PDF
Routine: VIABEFR

Package: VistA Integration Adapter

Routine: VIABEFR


Information

VIABEFR ;AAC/JMC - VIA EFR RPCs ;05/17/2016

Source Information

Source file <VIABEFR.m>

Call Graph

Call Graph

Call Graph Total: 4

Package Total Call Graph
VA FileMan 3 NOW^%DTC  FIELD^DID  $$GET1^DIQ  
Kernel 1 $$UP^XLFSTR  

Caller Graph

Legends:

Legend of Colors

Package Component Superscript legend

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

Caller Graph

Caller Graph Total: 1

Package Total Caller Graph
VistA Integration Adapter 1 VIAB EFR  

Entry Points

Name Comments DBIA/ICR reference
EN(RESULT,VIA) ; entry point for RPC
PARSE(VIA) ; -- array parsing to parameters and initializing variables
TMP ; -- temporary environment variables sets until kernel tools arrives
LAB671 ; -- returns a list of lab identifiers from RESEARCH File #67.1
; Builds the ^TMP("VIABEFR",$J) array
; ^TMP("VIABEFR",$J,1)="[Data"] or if there is an error ^TMP("VIABEFR",$J,1)="[Errors"]
; ^TMP("VIABEFR",$J,n)=67.1:IEN^.01 NAME^9 IDENTIFIER^63 LABORATORY REFERENCE
; where n is a numeric value starting from 2
IDS ; -- return lab results for list of identifiers
LAB6304 ; -- Using the LAB IEN from File #67.1, get data from LAB DATA File #63.04
; Builds ^TMP("VIABEFR",$J,n)=list of standard fields returned by the RPC. n is a numeric value.
; ^TMP("VIABEFR",$J,n+1)=63:04:IEN^.01 DATE/TIME SPECIMEN TAKEN^.06 ACCESSION^.03 DATE REPORT COMPLETED
; ^TMP("VIABEFR",$J,n+2)=4 CREATININE
; ^TMP("VIABEFR",$J,n+3)=31 COPPER
; ^TMP("VIABEFR",$J,n+4)=32 ZINC
; ^TMP("VIABEFR",$J,n+5)=33 ARSENIC
; ^TMP("VIABEFR",$J,n+6)=35 LEAD (SK)
; ^TMP("VIABEFR",$J,n+7)=101 CADMIUM
; ^TMP("VIABEFR",$J,n+8)=106 CHROMIUM
; ^TMP("VIABEFR",$J,n+9)=108 COBALT
; ^TMP("VIABEFR",$J,n+10)=116 MANGANESE (SK)
; ^TMP("VIABEFR",$J,n+11)=205 ALUMINUM
; ^TMP("VIABEFR",$J,n+12)=322 NICKEL (SK)
; ^TMP("VIABEFR",$J,n+13)=750 IRON
; ^TMP("VIABEFR",$J,n+14)=797 VOLUME
; ^TMP("VIABEFR",$J,n+15)=840 ELAPSED TIME
; VIAEFLDS - custom fields passed in as input parameter and returned by the RPC are stored after the standard fields.
; ^TMP("VIABEFR",$J,n+16)=TESTNAME;NUMBER^RESULT
STMP ;set ^TMP("VIAEFR"
STRTFRM() ; find where to start File 67.1 search
SETFRM ; entry to start list.
DTCHK ;check/set date
KVAR ;Clean-up

External References

Name Field # of Occurrence
NOW^%DTC TMP+3
FIELD^DID STMP+2
$$GET1^DIQ LAB671+17, LAB671+18, IDS+6, IDS+7, LAB6304+27
$$UP^XLFSTR STMP+2

Used in RPC

RPC Name Call Tags
VIAB EFR EN

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
63.04 FIELD^DID,  GET1^DIQ
^LRT(67.1 - [#67.1] GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^LR - [#63] LAB6304+23, STMP+3
^LRT(67.1 - [#67.1] LAB671+15, LAB671+16, IDS+4, IDS+5, STRTFRM+3, STRTFRM+4
^TMP("VIABEFR" LAB671+7!, LAB671+9*, LAB671+12*, LAB671+13*, LAB671+22, IDS+11, LAB6304+24*, LAB6304+29*, STMP+4*, SETFRM+1*
SETFRM+2*

Label References

Name Line Occurrences
$$STRTFRM LAB671+11
DTCHK EN+3
IDS LAB671+10
KVAR EN+5
LAB6304 LAB671+20, IDS+9
LAB671 EN+4
PARSE EN+1
SETFRM LAB6304+23
STMP LAB6304+31, LAB6304+33
TMP EN+2

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
DT TMP+3*
DTIME TMP+2*
DUZ TMP+1, TMP+2*
DUZ(0 TMP+2*
F671 LAB6304+20~, LAB6304+21*, LAB6304+24*
FLD LAB6304+20~, LAB6304+26*, LAB6304+27, LAB6304+31*, LAB6304+33*, STMP+2, STMP+3, STMP+4
FLDNM STMP+1~, STMP+2*, STMP+4
I PARSE+9~, IDS+1~, IDS+3*
IENS LAB671+6~, LAB671+16*, LAB671+17, LAB671+18, LAB671+19, IDS+5*, IDS+6, IDS+7, IDS+8, SETFRM+2
IFLDS PARSE+9~
IVDT LAB6304+20~, LAB6304+22*, LAB6304+23*, LAB6304+27, LAB6304+29, STMP+3, SETFRM+2
J LAB6304+20~, LAB6304+26*, LAB6304+31*, LAB6304+33*
LRIEN LAB671+6~, LAB671+17*, LAB671+19, IDS+6*, IDS+8, LAB6304+23, LAB6304+27, STMP+3, SETFRM+2
QFLG LAB671+6~, LAB671+8*, LAB671+15, LAB671+16, IDS+4, IDS+5, LAB6304+23*
RESULT EN~, LAB671+13!*, LAB671+21!, LAB671+22*, IDS+10!, IDS+11*
SFLDS PARSE+9~
STR STRTFRM+1~, STRTFRM+2*, STRTFRM+3, STRTFRM+4*
STR671 LAB671+6~, LAB671+19*, IDS+8*, LAB6304+24
U TMP+2*, LAB671+18, LAB671+19, IDS+7, IDS+8, STRTFRM+2, STRTFRM+4, SETFRM+2
VIA EN~, EN+1, PARSE~
VIA("EDATE" PARSE+16
VIA("FIELDS" PARSE+10
VIA("FROM" PARSE+13
VIA("IDS" PARSE+17
VIA("MAX" PARSE+11
VIA("SDATE" PARSE+15
VIA671 LAB671+6~, LAB671+18*, LAB671+19, IDS+7*, IDS+8, SETFRM+2
VIABFRM PARSE+14*, LAB6304+22, KVAR+1!
VIAC LAB671+6~, LAB671+8*, LAB6304+24*, LAB6304+29*, STMP+4*, SETFRM+1*, SETFRM+2*
VIACNT LAB671+6~, LAB671+8*, LAB6304+23, LAB6304+24*, LAB6304+25*
VIAEDT PARSE+16*, LAB6304+23, DTCHK+1*, DTCHK+2*, DTCHK+3*, DTCHK+4*, KVAR+1!
VIAEFLDS LAB6304+20~, LAB6304+22*, LAB6304+33
VIAFIELDS PARSE+10*, LAB6304+22, KVAR+1!
VIAFROM PARSE+13*, PARSE+14, LAB671+11*, LAB671+14, STRTFRM+2, STRTFRM+3*, STRTFRM+4*, KVAR+1!
VIAID IDS+1~
VIAID( IDS+3*, IDS+4
VIAIDS PARSE+17*, LAB671+10, IDS+3, KVAR+1!
VIALB STMP+5!
VIALB("LABEL" STMP+2
VIAMAX PARSE+11*, PARSE+12*, LAB6304+23, KVAR+1!
VIASDT PARSE+15*, LAB6304+22, DTCHK+1*, DTCHK+3*, DTCHK+4*, KVAR+1!
VIASFLDS LAB6304+20~, LAB6304+21*, LAB6304+26
VIASFLDS1 LAB6304+20~, LAB6304+21*, LAB6304+31
VIASTR LAB6304+20~, LAB6304+27*, LAB6304+28, STMP+1~, STMP+3*, STMP+4
VIAVAL LAB6304+20~, LAB6304+25*, LAB6304+28*, LAB6304+29
X PARSE+9~, TMP+3, IDS+1~, LAB6304+20~, DTCHK+1*, DTCHK+4*, KVAR+1!
XREF LAB671+6~, LAB671+14*, LAB671+15*, LAB671+16, IDS+4*, IDS+5
Y IDS+1~, IDS+3*, KVAR+1!
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables  | All