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

APSPCVRX.m

Go to the documentation of this file.
  1. APSPCVRX ; IHS/DSD/ENM - CREATE APSP PRIMARY CARE VISIT ENTRY ; [ 09/03/97 1:30 PM ]
  1. ;;6.0;IHS PHARMACY MODIFICATIONS;;09/03/97
  1. ;
  1. ;------------------------------------------------------------------
  1. START ;
  1. D ASK ; Ask if a Primary Care Visit
  1. D:%=1 DIE ; If answer yes, make entry in file
  1. END D EOJ ; Clean up of variables
  1. Q
  1. ;------------------------------------------------------------------
  1. ;
  1. ASK ; Ask if primary care visit
  1. S %=2
  1. W !,"Is this a Primary Care Visit"
  1. D YN^DICN
  1. I %=0 W !!,"Enter a 'Y' if you are acting as the primary care provider and using independentjudgement in dealing with the patient.",! G ASK
  1. Q
  1. ;
  1. DIE ; Make entry in APSP PRIMARY CARE VISIT file
  1. S DIC(0)="QEML",DIC="^APSPQA(32.6,",X=DT
  1. D FILE^DICN
  1. I Y="-1" G DIEX
  1. S DA=+Y,DIE=DIC K DIC,X,Y
  1. S DR=".02////"_AUPNPAT_";.03////"_DUZ_";.04"
  1. I $P(%APSITE,U,15)'="Y" S DR=DR_";1100"
  1. D ^DIE
  1. DIEX ;
  1. Q
  1. ;
  1. EOJ ; Clean up variables
  1. K DIE,DIC,DR,X,Y,%,%Y,DA
  1. Q