DSIC DPT INP INFO BRIEF (1643)    REMOTE PROCEDURE (8994)

Name Value
NAME DSIC DPT INP INFO BRIEF
TAG INQ
ROUTINE DSICDPT
RETURN VALUE TYPE SINGLE VALUE
AVAILABILITY AGREEMENT
DESCRIPTION
This will return certain data related to a patient's current admission.  
The data returned and the order that it is returned is controlled by the 
FLAG parameter.  For more detailed description, see routine INQ^DSICDPT
INPUT PARAMETER
  • DFN
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   15
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    This is a pointer to the PATIENT file.
    
  • FLAG
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   26
    REQUIRED:   NO
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    This is 3 "^"- piece string of single character codes which dictate what 
      ---------  -----------------------------------------
          M      pointer to movement (#405)
          D      external movement date.time
          d      internal (Fileman movement date.time)
          W      external ward location
          P      name of Primary Care Physician
          p      DUZ of Primary Care Physician
       Following only applicable to current movement
          F      pointer to PTF record (#45)
          R      external room-bed
    data will be returned and the order that that data is returned for a 
          A      name of ATTENDING PHYSICIAN
          a      DUZ of ATTENDING PHYSICIAN
          S      external FACILITY TREATING SPECIALTY (#42.4)
          s      internal FACILITY TREATING SPECIALTY (#42.4)
    patient's current admission.
      1st ^-piece - flags related to the current patient movement
      2nd ^-piece - flags related to the admission movement
      3rd ^-piece - flags related to the discharge movement
      Default FLAG = "MDWFPpAa^MD^MD"
     
      Flag Code  Description
    
  • LODGE
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   1
    REQUIRED:   NO
    SEQUENCE NUMBER:   3
    DESCRIPTION:   
    This boolean flag controls whether or not Lodger movements (admissions) 
    should be included in search.  If LODGE = 1 then return lodger 
    movements.  Else exclude them.  Default value is 0, exclude them.
    
RETURN PARAMETER DESCRIPTION
If problems or if the patient is not an inpatient, return -1^message
 
Else return a string, p1^p2^p3^p4^p5^...   where the data returned in 
each piece is controled by the FLAG parameter.