1 | QAMC25 ;HISC/DAD-CONDITION: PATIENT GROUP ;9/28/92 13:13
|
---|
2 | ;;1.0;Clinical Monitoring System;;09/13/1993
|
---|
3 | EN1 ; *** CONDITION CODE
|
---|
4 | S QAMGRP=$S($D(^QA(743,QAMD0,"COND",QAMD1,"P1"))#2:+^("P1"),1:0)
|
---|
5 | F QAMDFN=0:0 S QAMDFN=$O(^QA(743.5,QAMGRP,"GRP","AB",QAMDFN)) Q:QAMDFN'>0 D
|
---|
6 | . S ^UTILITY($J,"QAM CONDITION",QAMD1,QAMDFN)=""
|
---|
7 | . S ^UTILITY($J,"QAM CONDITION",QAMD1,QAMDFN,QAMTODAY)=QAMDFN
|
---|
8 | . Q
|
---|
9 | Q
|
---|
10 | ;
|
---|
11 | EN2 ; *** PARAMETER CODE
|
---|
12 | K DIC,DIR,DIRUT S DIC=743.5,DIC(0)="EMNQZ",DIC("A")="PATIENT GROUP: ",DIC("B")=$S($D(^QA(743,QAMD0,"COND",QAMD1,"P1"))#2:$P(^("P1"),"^",2),1:""),DIC("S")="I $P(^(0),""^"",2)=2" K:DIC("B")="" DIC("B")
|
---|
13 | S DIR("?")="Enter the PATIENT GROUP you wish to monitor."
|
---|
14 | S QAMPARAM="P1" D EN2^QAMUTL1 I $D(DIRUT) S Y=-1 G Y
|
---|
15 | S:Y]"" ^QA(743,QAMD0,"COND",QAMD1,"P1")=+Y_"^"_Y(0,0)
|
---|
16 | ;
|
---|
17 | EXIT K Y
|
---|
18 | K QAMPARAM
|
---|
19 | Y Q
|
---|