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 |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables  | All
Print Page as PDF
Routine: NHINVLRO

Package: National Health Information Network

Routine: NHINVLRO


Information

NHINVLRO ;SLC/MKB -- Laboratory extract by order/panel

Source Information

Source file <NHINVLRO.m>

Call Graph

Call Graph

Call Graph Total: 4

Package Total Call Graph
Kernel 1 ($$NS,$$STA)^XUAF4  
Lab Service 1 RR^LR7OR1  
National Health Information Network 1 ($$ESC,$$FAC,$$STRING,$$VUID)^NHINV  
VA FileMan 1 ($$GET1,GETS)^DIQ  

Entry Points

Name Comments DBIA/ICR reference
EN(DFN,BEG,END,MAX,ID) ; -- find patient's lab results
SORT ; -- return NHLRO(PANEL) = CPRS order# ^ panel/test name ^ Lab Order string
; NHLRO(PANEL,NHI) = result node
EXPAND(TEST,ARAY) ;Expand a lab test panel [LR7OU1]
EX(TST) ;
ACC(NUM,ODT,SN) ; -- Return 1 or 0, if Specimen entry matches accession
CH(X0) ; -- return a Chemistry result as:
; id^test^result^interpretation^units^low^high^loinc^vuid
; Expects X0=^TMP("LRRR",$J,DFN,"CH",NHIDT,NHI),LRDFN
LOINC(TEST,SPEC) ; -- Look up LOINC code, if not mapped
MI(X0) ; -- return a Microbiology result as:
; id^test^result^interpretation^units
; Expects X0=^TMP("LRRR",$J,DFN,"MI",NHIDT,NHI)
XML(LAB) ; -- Return result as XML in @NHIN@(#)
LOOP() ; -- build sub-items string from NAMES and X
ADD(X) ; -- Add a line @NHIN@(n)=X

External References

Name Field # of Occurrence
$$GET1^DIQ EN+28, SORT+13, ACC+3, CH+8, LOINC+6
GETS^DIQ EN+26, LOINC+4
RR^LR7OR1 EN+8, EN+11
$$ESC^NHINV XML+12, XML+13, LOOP+2
$$FAC^NHINV EN+31
$$STRING^NHINV EN+36
$$VUID^NHINV CH+10
$$NS^XUAF4 EN+30
$$STA^XUAF4 EN+30

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
60.01 GET1^DIQ
^LAB(61 - [#61] GET1^DIQ,  GETS^DIQ
64.01 GETS^DIQ
^LRO(68 - [#68] GET1^DIQ
^LAB(95.3 - [#95.3] GET1^DIQ

Global Variables Directly Accessed

Name Line Occurrences  (* Changed,  ! Killed)
^DPT - [#2] EN+4
^LAB(60 - [#60] SORT+17, EX+2, EX+4, CH+5, LOINC+3
^LR - [#63] EN+23, CH+4
^LRO(69 - [#69] SORT+6, SORT+8, SORT+10, ACC+2
^TMP("LRRR" EN+5!, EN+13, EN+14, EN+36, EN+38!, SORT+3, SORT+20

Label References

Name Line Occurrences
$$CH EN+34
$$LOINC CH+9
$$LOOP XML+9, XML+14
$$MI EN+35
ADD XML+2, XML+3, XML+5, XML+9, XML+10, XML+15
EX EXPAND+4, EX+4
EXPAND SORT+15
SORT EN+16
XML EN+37

Naked Globals

Name Field # of Occurrence
^( EN+14, SORT+3, SORT+20, EX+4, ACC+2
^("N" EN+36
^(0 EX+2

Local Variables

Legend:

>> Not killed explicitly
* Changed
! Killed
~ Newed

Name Field # of Occurrence
ARAY EXPAND~, EXPAND+5*
ATT XML+1~, XML+3*, XML+4, XML+5, XML+6, XML+8, XML+9, XML+10, XML+11, XML+12
, XML+13, XML+14
BEG EN~, EN+3*, EN+10*, EN+11
CMMT EN+1~, EN+18!, EN+36*
DFN EN~, EN+2*, EN+4, EN+5, EN+8, EN+11, EN+13, EN+14, EN+36, EN+38
SORT+3, SORT+20
END EN~, EN+3*, EN+10*, EN+11
I SORT+2~, SORT+16*, XML+1~, XML+8*, XML+9
ID EN~, EN+8, EN+9, EN+10, EN+19, SORT+7, SORT+9
IENS EN+25~*, EN+26, EN+27, LOINC+1~, LOINC+5*
INARAY EXPAND+3~, EXPAND+5
INARAY( EX+3*
J EX+1~, EX+4*, XML+1~
LAB XML~
LAB( XML+3, XML+4, XML+8, XML+9, XML+11
LAM LOINC+1~, LOINC+3*, LOINC+4
LOINC CH+3~, CH+8*, CH+9*, CH+10
LR0 EN+1~, EN+23*, EN+24, EN+29
LRDFN EN+1~, EN+4*, EN+23, CH+4
MAX EN~, EN+3*, EN+11
NAMES XML+1~, XML+6*, XML+7*, XML+14*, LOOP+2
NHI EN+1~, EN+32*, EN+33, EN+34, EN+35, SORT+3*, SORT+20*, SORT+21, SORT+22, CH+4
, CH+6, MI+4
NHIDT EN+1~, EN+14*, EN+22, EN+23, EN+36, SORT+3, SORT+4, SORT+18, SORT+20, CH+4
, CH+6, MI+4
NHIN LOINC+1~, ADD+2
NHIN( LOINC+5
>> NHINI ADD+1*, ADD+2
>> NHINTOTL XML+2*
NHITM EN+1~, EN+18!, EN+37
NHITM("collected" EN+22*
NHITM("comment" EN+36*
NHITM("facility" EN+30*, EN+31*
NHITM("groupName" EN+29*
NHITM("id" EN+20*
NHITM("order" EN+20*
NHITM("resulted" EN+24*
NHITM("sample" EN+28*
NHITM("specimen" EN+27*
NHITM("status" EN+21*
NHITM("type" EN+21*
NHITM("value" EN+34*, EN+35*
NHLRO SORT+2!, SORT+18
NHLRO( EN+17, EN+18, EN+32, EN+33, SORT+17*, SORT+22*
NHLRO(0 SORT+18*, SORT+21*
NHLRT SORT+2~, SORT+6
NHLRT( SORT+16*, SORT+21, SORT+22
NHSUB EN+1~, EN+4*, EN+10*, EN+11, EN+13*, EN+14, EN+15, EN+21, EN+23, EN+34
, EN+35, EN+36, SORT+3, SORT+18
NHT EN+1~, EN+17*, EN+18, EN+32, EN+33
NHY EN+25~, SORT+2~, SORT+15!
NHY( SORT+16
NHY(61 EN+27
NODE CH+3~, CH+4*, CH+8
NUM SORT+2~, SORT+4*, SORT+12, SORT+13, ACC~, ACC+3
ODT SORT+2~, SORT+4*, SORT+6, SORT+8, SORT+10, SORT+17, ACC~, ACC+2
ORD SORT+2~, SORT+4*, SORT+6, SORT+17
P XML+1~, LOOP+1~, LOOP+2*
SN SORT+2~, SORT+6*, SORT+7, SORT+8, SORT+10, SORT+17, ACC~, ACC+2
SPEC LOINC~, LOINC+2*, LOINC+4, LOINC+6
STR LOOP+1~*, LOOP+2*, LOOP+3
SUB EX+1~, EX+2*, EX+3
T SORT+2~, SORT+8*, SORT+9, SORT+10, SORT+17, SORT+22*, ACC+1~, ACC+2*
T0 SORT+2~, SORT+10*, SORT+12, SORT+13, SORT+15, SORT+16, SORT+17, ACC+1~, ACC+2*, ACC+3
TAG XML+1~, LOOP+1~, LOOP+2*
TEST EXPAND~, EXPAND+4, LOINC~, LOINC+2*, LOINC+3, LOINC+6
TST EX~, EX+2, EX+3, EX+4
U EN+19, EN+20, EN+24, EN+27, EN+29, EN+30, SORT+4, SORT+12, SORT+13, SORT+17
, ACC+3, CH+5, CH+6, CH+7, CH+8, CH+9, CH+10, LOINC+3, MI+4, LOOP+2
X EN+1~, EN+18*, EN+19, EN+20, EN+24*, EN+25, EN+28, EN+29*, EN+30, EN+31
, EN+33*, EN+34, EN+35, EX+1~, EX+4*, CH+3~, CH+5*, CH+6, CH+7*, CH+8*
, CH+9*, XML+1~, XML+9*, XML+11*, XML+12, XML+13, XML+14, LOOP+2, ADD~, ADD+2
X0 SORT+2~, SORT+3*, SORT+4, SORT+20*, SORT+21, SORT+22, CH~, CH+5, CH+6, CH+7
, CH+9, MI~, MI+4
Y ACC+1~*, ACC+3*, ACC+4, CH+3~, CH+6*, CH+7*, CH+10*, CH+11, LOINC+1~*, LOINC+5*
, LOINC+6*, LOINC+7, MI+3~*, MI+4*, MI+5, XML+1~, XML+3, XML+4*, XML+9*, XML+11*
, XML+12*, XML+13*, XML+14*
Info |  Source |  Call Graph |  Entry Points |  External References |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Naked Globals |  Local Variables  | All