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

QAPDCK.m

Go to the documentation of this file.
  1. QAPDCK ;557/THM-INPUT TRANSFORM CHECKS [ 03/04/95 6:53 AM ]
  1. ;;2.0;Survey Generator;;Jun 20, 1995
  1. ;
  1. EN1 ;field .015 in 748.26
  1. ;see if question number exists
  1. N %X,%Y,CURNUM S SURVEY=$S($D(SURVEY):SURVEY,1:DA(1))
  1. S CURNUM=$P($G(^QA(748.25,SURVEY,1,DA,0)),U,2) Q:+CURNUM=X ;no change
  1. I $D(^QA(748.25,"E",SURVEY,X)) W !!,*7,"That number already exists.",! H 1 K X Q
  1. ;verifiy the change of question number
  1. I CURNUM]"",CURNUM'=X DO
  1. .W *7,!!,"You are about the change the number of this question.",!,"Is that what you want to do",*7 S %=2 D YN^DICN I %'=1 K X
  1. .W !!
  1. .K %,%Y,CURNUM
  1. Q