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

PXBGSC.m

Go to the documentation of this file.
  1. PXBGSC ;SLC/PKR - Get the V Standard Codes before data. ;08/29/2016
  1. ;;1.0;PCE PATIENT CARE ENCOUNTER;**211**;Aug 12, 1996;Build 454
  1. ;
  1. SC(VISIT,SCIENLST) ;--Gather the entries in the V Standard Codes file
  1. N CODE,CODESYS,DA,DIC,DIQ,DR,IEN,PLIEN
  1. N SOURC,TEMP
  1. ;
  1. ;Looking at PXBGHF and PXAIHF there is a lot of data built in
  1. ;PXBGHF that is never used in PXAIHF. The main thing it does is to
  1. ;return a list of IENs to PXAIHF. We do the same thing here for SC.
  1. I '$D(^AUPNVSC("AD",VISIT)) Q
  1. S IEN=0
  1. F S IEN=$O(^AUPNVSC("AD",VISIT,IEN)) Q:IEN'>0 D
  1. . S TEMP=^AUPNVSC(IEN,0)
  1. . S CODE=$P(TEMP,U,1)
  1. . S CODESYS=$P(TEMP,U,5)
  1. . S SCIENLST(CODE,CODESYS,IEN)=""
  1. Q
  1. ;
  1. ;WHAT DOES THIS DO?
  1. ;D PL^PXBGPL(PATIENT)
  1. Q
  1. ;