Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: ANRVJ1

ANRVJ1.m

Go to the documentation of this file.
  1. ANRVJ1 ;HOIFO/CED - BR utility ;Jun 13,2006
  1. ;;5.0;BLIND REHABILITATION;**1**;Jun 02, 2006;Build 11
  1. ; This routine contains calls to VistA for
  1. ; use until services are available.
  1. ;
  1. ; Integration Agreements Utilized:
  1. ; GETDFN^MPIF001 #2701
  1. ;
  1. GETDFN ; [Procedure] Return the DFN given a ICN
  1. N DFN
  1. S DFN=VAL1
  1. S @RESULTS@(0)=$$GETDFN^MPIF001(DFN)
  1. Q
  1. ;
  1. GETPAR ; [Procedure] Return external value for parameter
  1. N ENT,PAR,INST,VER
  1. S ENT="SYS"
  1. S PAR=VAL1
  1. S INST=DATA
  1. S VER=$$GET^XPAR(ENT,PAR,INST,"B")
  1. I VER="" S VER="0^NO"
  1. S @RESULTS@(0)=VER
  1. Q
  1. ;
  1. RPC(RESULTS,OPTION,VAL1,DATA) ; [Procedure] Main RPC Entry
  1. S RESULTS=$NA(^TMP($J)) K @RESULTS
  1. D:$T(@OPTION)]"" @OPTION
  1. D:'$D(@RESULTS)
  1. .S @RESULTS@(0)="0^No results returned"
  1. D CLEAN^DILF
  1. Q
  1. ;
  1. SELUSR ; [Procedure] Return a selected user
  1. ; This is being replaced by Kernel
  1. ; IEN is the selected users Internal Entry Number
  1. N IEN
  1. S IEN=VAL1
  1. S @RESULTS@(0)=IEN_U
  1. S @RESULTS@(1)=$$GET1^DIQ(200,IEN_",",.01)_U ; Name
  1. S @RESULTS@(2)=$$GET1^DIQ(200,IEN_",",8)_U ; Title
  1. Q
  1. ;
  1. LISTUS ; [Procedure]Return a user list
  1. ; This is being replaced by Kernel
  1. N I,IEN,Y
  1. D FIND^DIC(200,"","","M",VAL1)
  1. S I=0,Y=""
  1. F S I=$O(^TMP("DILIST",$J,1,I)) Q:'I D
  1. . S IEN=^TMP("DILIST",$J,2,I)
  1. . S @RESULTS@(I)=^TMP("DILIST",$J,2,I)_U_^TMP("DILIST",$J,1,I)_"~"
  1. Q
  1. ;