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

APSPOST6.m

Go to the documentation of this file.
  1. APSPOST6 ; IHS/DSD/ENM - OUTPATIENT PHARMACY FILE 50 MAINTENANCE ; [ 09/03/97 1:30 PM ]
  1. ;;6.0;IHS PHARMACY MODIFICATIONS;;09/03/97
  1. ;This program will stuff the VA Drug Class Code in field 2 of the
  1. ;zero node if data exist in the 6th piece of the "ND" node
  1. EP ;
  1. D START
  1. K APSPE,APSPDC,^TMP("PSOP-CLASS"),DIK,DA
  1. Q
  1. START S APSPE=0
  1. I $D(^TMP("PSOP-CLASS")) S APSPE=^TMP("PSOP-CLASS")-1
  1. ;
  1. F S APSPE=$O(^PSDRUG(APSPE)) Q:'APSPE S APSPDC=$P($G(^PSDRUG(APSPE,"ND")),"^",6) D
  1. .S ^TMP("PSOP-CLASS")=APSPE
  1. .I APSPDC="" S $P(^PSDRUG(APSPE,0),"^",2)="" Q
  1. .S $P(^PSDRUG(APSPE,0),"^",2)=$P($G(^PS(50.605,APSPDC,0)),"^")
  1. .S DIK="^PSDRUG(",DA=APSPE,DIK(1)="2^AC^APCC" D EN^DIK
  1. Q