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

ACDAUTO2.m

Go to the documentation of this file.
  1. ACDAUTO2 ;IHS/ADC/EDE/KML - update 'CS' entries duplicated from an original;
  1. ;;4.1;CHEMICAL DEPENDENCY MIS;;MAY 11, 1998
  1. ;;
  1. EN ;EP
  1. ;//ACDDIC
  1. ;
  1. ;Check for 'adding additional client services'
  1. Q:$G(DR)'="[ACD 1 (ACS)]"
  1. Q:'$G(ACDVISP)
  1. ;
  1. ;Check for original or duplicate
  1. Q:$P($G(^ACDVIS(ACDVISP,0)),U,9)
  1. ;
  1. ;List duplicates for user to see.
  1. F ACDUP=0:0 S ACDUP=$O(^ACDVIS("ADUP",ACDVISP,ACDUP)) Q:'ACDUP D
  1. .S ACDUP(ACDUP)=""
  1. Q:'$O(ACDUP(0))
  1. W !!,"The following visits were duplicated from this original visit."
  1. F ACDUP=0:0 S ACDUP=$O(ACDUP(ACDUP)) Q:'ACDUP W !,ACDUP
  1. W !!,*7,*7,"Shall I update them now with any changes you just made to",!,"the original visit?",!!
  1. S DIR(0)="S^1:YES;2:NO" D ^DIR