Last change
on this file since 1240 was 613, checked in by George Lilly, 15 years ago |
initial load of WorldVistAEHR
|
File size:
589 bytes
|
Rev | Line | |
---|
[613] | 1 | QAPDCK ;557/THM-INPUT TRANSFORM CHECKS [ 03/04/95 6:53 AM ]
|
---|
| 2 | ;;2.0;Survey Generator;;Jun 20, 1995
|
---|
| 3 | ;
|
---|
| 4 | EN1 ;field .015 in 748.26
|
---|
| 5 | ;see if question number exists
|
---|
| 6 | N %X,%Y,CURNUM S SURVEY=$S($D(SURVEY):SURVEY,1:DA(1))
|
---|
| 7 | S CURNUM=$P($G(^QA(748.25,SURVEY,1,DA,0)),U,2) Q:+CURNUM=X ;no change
|
---|
| 8 | I $D(^QA(748.25,"E",SURVEY,X)) W !!,*7,"That number already exists.",! H 1 K X Q
|
---|
| 9 | ;verifiy the change of question number
|
---|
| 10 | I CURNUM]"",CURNUM'=X DO
|
---|
| 11 | .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
|
---|
| 12 | .W !!
|
---|
| 13 | .K %,%Y,CURNUM
|
---|
| 14 | Q
|
---|
Note:
See
TracBrowser
for help on using the repository browser.