MAGV GET PAT ORDERS (3125)    REMOTE PROCEDURE (8994)

Name Value
NAME MAGV GET PAT ORDERS
TAG GETORD
ROUTINE MAGVIM02
RETURN VALUE TYPE ARRAY
AVAILABILITY RESTRICTED
INACTIVE ACTIVE
WORD WRAP ON FALSE
VERSION .9
DESCRIPTION
Returns an array of CONsult or RADiology orders for an input
ENTERPRISE PATIENT IDENTIFIER.
INPUT PARAMETER
  • ENTERPRISE PATIENT ID
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   999
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    ENTERPRISE PATIENT ID.
    
  • PATIENT ID TYPE
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   1
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    Single character per ID TYPE field (#.03) of the
    IMAGING PATIENT REFERENCE file (#2005.6).
    
  • PATIENT ID ASSIGNING AUTHORITY
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   1
    REQUIRED:   YES
    SEQUENCE NUMBER:   3
    DESCRIPTION:   
    Single character per ASSIGNING AUTHORITY field (#.02) of the
    IMAGING PATIENT REFERENCE file (#2005.6).
    
  • PATIENT ID CREATING ENTITY
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   30
    REQUIRED:   NO
    SEQUENCE NUMBER:   4
    DESCRIPTION:   
    Free text per CREATING ENTITY field (#.04) of the IMAGING PATIENT REFERENCE file (#2005.6).
    
  • ORDER TYPE
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   3
    REQUIRED:   YES
    SEQUENCE NUMBER:   5
    DESCRIPTION:   
    Free text as "CON" for Consult Orders, "RAD" for Radiology Orders.
    
  • ORDER DATE FILTER START
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   8
    REQUIRED:   YES
    SEQUENCE NUMBER:   6
    DESCRIPTION:   
    A date formatted as MMDDYYYY.
    
  • ORDER DATE FILTER END
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   8
    REQUIRED:   YES
    SEQUENCE NUMBER:   7
    DESCRIPTION:   
    A date formatted as MMDDYYYY.
    
RETURN PARAMETER DESCRIPTION
On error, returns "-1" followed by an error message. Else returns the number of orders returned, followed by arrayed exam data.
    -08 Exam_Status
    -09 Procedure_ID (File #71 for "RAD", File #123 for "CON")
    -10 Procedure_Name
    -11 Exam Case Number
    -12 Exam IEN
    -13 Order IEN (RAD only)
    -14 Exam IEN(2) (RAD only)
    -15 Ordering Physician (RAD only)
    -16 Ordering Location IEN (RAD only)
    -17 Procedure Modifiers
 
    -18 Credit Method (RAD only)
    -19 Study Instance UID (RAD only)
 "|"-01 Order_Type={"CON","RAD"}
    -02 Patient_DFN
    -03 Order_Date
    -04 Order_Reason
    -05 RAD/NUC_MED_PROCEDURE_LOCATION
    -06 Exam_Date
    -07 Exam_Accession_Number