MAGV STUDY LOOKUP (3156)    REMOTE PROCEDURE (8994)

Name Value
NAME MAGV STUDY LOOKUP
TAG LOOKUP
ROUTINE MAGVSTDY
RETURN VALUE TYPE SINGLE VALUE
AVAILABILITY RESTRICTED
INACTIVE ACTIVE
APP PROXY ALLOWED Yes
DESCRIPTION
 +---------------------------------------------------------------+
 | a medical device.  As such, it may not be changed in any way. |
 | Modifications to this software may result in an adulterated   |
 | medical device under 21CFR820, the use of which is considered |
 | to be a violation of US Federal Statutes.                     |
 +---------------------------------------------------------------+
 
Looks up the imaging case using the accession number provided by the
calling application.   Obtains patient demographic data, and checks
the data for accuracy. (MAG*3.0*118)
 | Property of the US Government.                                |
 | No permission to copy or redistribute this software is given. |
 | Use of unreleased versions of this software requires the user |
 | to execute a written test agreement with the VistA Imaging    |
 | Development Office of the Department of Veterans Affairs,     |
 | telephone (301) 734-0100.                                     |
 |                                                               |
 | The Food and Drug Administration classifies this software as  |
INPUT PARAMETER
  • CASENUMB
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   16
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    CASENUMB = ACCESSION NUMBER PASSED FROM THE CLIENT.
    
  • IMGSVC
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   3
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    RAD OR CON.  No other entries are allowed.
    
  • PNAMEDCM
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   64
    REQUIRED:   YES
    SEQUENCE NUMBER:   3
    DESCRIPTION:   
    Patient's Name from the DICOM header (0010,0010).
    
  • PIDDCM
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   64
    REQUIRED:   YES
    SEQUENCE NUMBER:   4
    DESCRIPTION:   
    Patient ID from DICOM header (0010,0020).
    
  • PDOBDCM
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   8
    REQUIRED:   YES
    SEQUENCE NUMBER:   5
    DESCRIPTION:   
    Patient's Birth Date from DICOM header (0010,0030).
    
  • PSEXDCM
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   1
    REQUIRED:   YES
    SEQUENCE NUMBER:   6
    DESCRIPTION:   
    Patient's Sex from DICOM header (0010,0040).
    
  • PICNDCM
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   16
    REQUIRED:   NO
    SEQUENCE NUMBER:   7
    DESCRIPTION:   
    Patient's VA Integration Control Number.
    
RETURN PARAMETER DESCRIPTION
           ----From MAGVORDR----  --From PIDCHECK--
    BAD CASE #      RAD & Any RADPTx is null
                    RAD & null Exam Status Pointer
                    RAD & null Exam Status
    NO CASE #       RAD,CON & Exam Status = CANCELLED
                    RAD,CON & null patient demographic file pointer
                    CON     & incomplete consult study
           Error     Success      Error    Success
    "~"-1 -1         0
       -2 Errmsg1    DFN
       -3  ---       SITE ID
       -4  ---       ---------->  n<1      0
       -5  ---       ---------->  Errmsg2  PID OK
 
    Errmsg1____   If_________