Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Entry Points |  FileMan Files Accessed Via FileMan Db Call
Print Page as PDF
Routine: PSJPDAPP

Package: Inpatient Medications

Routine: PSJPDAPP


Information

PSJPDAPP ;BIR/MHA - SEND APPOINTMENTS TO PADE ;11/27/15

Source Information

Source file <PSJPDAPP.m>

Entry Points

Name Comments DBIA/ICR reference
EN ;
APPT ;
ALLCLN ;
CLARR ;
PV19 ;
GETPSARS(PSYSIN,DFNIN,FILTER) ; Return Send Area for all clinic orders for patient DFN
; OUTPUT: ^TMP($J,"PSJCLSA",PSYSIN,PDIVIN,"CL",CLINICIEN,SENDAREAIEN)=PCLSAS
; ^TMP($J,"PSJCLSA",PSYSIN,PDIVIN,"SA",SENDAREAIEN,CLINICIEN)=PCLSAS
; PCLSAS=Send Area Name^PADE System^Division^Clinic Name^Source of Send Area value
; INPUT
; PSYSIN (required) - PADE System IEN from File #58.7
; FILTER (optional) - 0: No filter
; 1: INCLUDE CLINIC IN BG JOB required (set to YES).
; 2: RE-SEND ORDERS AT CHECK-IN required (set to YES)
; 3: Both INCLUDE CLINIC IN BG JOB and RE-SEND ORDERS AT CHECK-IN required (set to YES)
GETDSARS(PSYSIN,PDIVIN,FILTER) ; Return Send Area for all clinics in Division PDIVIN
; OUTPUT: ^TMP($J,"PSJCLSA",PSYSIN,PDIVIN,"CL",CLINICIEN,SENDAREAIEN)=PCLSAS
; ^TMP($J,"PSJCLSA",PSYSIN,PDIVIN,"SA",SENDAREAIEN,CLINICIEN)=PCLSAS
; PCLSAS=Send Area Name^PADE System^Division^Clinic Name^Source of Send Area value
; INPUT
; PSYSIN (required) - PADE System IEN from File #58.7
; PDIVIN (required) - PADE Division from File #58.7
; FILTER (optional) - 0: No filter
; 1: INCLUDE CLINIC IN BG JOB required (set to YES).
; 2: RE-SEND ORDERS AT CHECK-IN required (set to YES)
; 3: Both INCLUDE CLINIC IN BG JOB and RE-SEND ORDERS AT CHECK-IN required (set to YES)
TMPSA(PSYSIN,PDIVIN,CLIN,FILTER) ; Build ^TMP( for clinic CLIN
GETSAR(PSYSIN,PDIVIN,PCLININ,FILTER) ; Return Send Area for clinic PCLIN
; PSYS - PADE system from PADE SYSTEM SETUP (#58.7)
; PDIV - Division from PADE SYSTEM SETUP (#58.7) (pointer to MEDICAL CENTER DIVISION #40.8)
; PSNDAR - Send Area from PADE SYSTEM SETUP (58.7) associated with the lowest (most specific/granular) clinic parameter
KILLTMP ; Clean up ^TMP($J,"PSJCLSA")

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^SC - [#44] GET1^DIQ
55.01 GET1^DIQ
55.06 GET1^DIQ
Info |  Source |  Entry Points |  FileMan Files Accessed Via FileMan Db Call