source: WorldVistAEHR/trunk/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGMTEO.m@ 1087

Last change on this file since 1087 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 2.6 KB
Line 
1DGMTEO ;ALB/RMO,CAW,LD,TDM - Other Means Test Edit Options ; 8/2/02 11:14am
2 ;;5.3;Registration;**33,45,182,456**;Aug 13, 1993
3 ;
4ADJ ;Entry point to adjudicate a means test
5 N PADISP
6 S DIC="^DPT(",DIC(0)="AEMQ"
7 I DGMTYPT=1 S DIC("S")="I $P(^(0),U,14)=2"
8 I DGMTYPT=2 S DIC("S")="I $D(^DGMT(408.31,""AID"",DGMTYPT,+Y))"
9 W ! D ^DIC K DIC G ADJQ:Y<0 S DFN=+Y
10 S DGMTI=+$$LST^DGMTU(DFN,"",DGMTYPT),DGMTS=$P($G(^DGMT(408.31,DGMTI,0)),"^",3)
11 I "^2^11^"'[("^"_DGMTS_"^") W !?3,*7,"Last means test is not PENDING ADJUDICATION." G ADJ
12 ;
13 S PADISP=$$PA^DGMTUTL(DGMTI) S:PADISP="" PADISP="UNKNOWN"
14 W !!,"=============================================="
15 W !,?3,"Patient pending adjudication for ",PADISP,"."
16 W !,"=============================================="
17 ;
18 S DGMTACT="ADJ" D PRIOR^DGMTEVT
19 S DA=DGMTI,DIE="^DGMT(408.31,",DR="[DGMT ENTER/EDIT ADJUDICATION]" W ! D ^DIE K DA,DIE,DR
20 D AFTER^DGMTEVT S DGMTINF=0 D EN^DGMTEVT
21 ;
22 ;Update the TEST-DETERMINED STATUS field (#2.03) in the Annual Means
23 ;TEST file (#408.31) when adjudicating a means test.
24 D SAVESTAT^DGMTU4(DGMTI)
25 G ADJ
26ADJQ K DFN,DGMTA,DGMTACT,DGMTI,DGMTINF,DGMTP,DGMTS,DGMTYPT,Y
27 Q
28 ;
29COM ;Entry point to complete a required means test
30 S DIC="^DPT(",DIC(0)="AEMQ",DIC("S")="I $P(^(0),U,14)=1" W ! D ^DIC K DIC G COMQ:Y<0 S DFN=+Y
31 S DGMTI=+$$LST^DGMTU(DFN),DGMT0=$G(^DGMT(408.31,DGMTI,0)),DGMTDT=$P(DGMT0,"^")
32 I $P(DGMT0,"^",3)'=1 W !?3,*7,"Last means test is not REQUIRED." G COM
33 S DGMTYPT=1,DGMTACT="COM",DGMTROU="COM^DGMTEO" G EN^DGMTSC
34COMQ K DFN,DGMT0,DGMTACT,DGMTDT,DGMTI,DGMTROU,DGMTYPT,Y
35 Q
36 ;
37CAT ;Entry point to change a patient's means test category
38 ;
39 ;no longer allowed to do this - instead, must enter a hardship or
40 ;net-worth adjudication
41 Q
42 ;
43 S DIC="^DPT(",DIC(0)="AEMQ",DIC("S")="I ""^1^3^""'[(U_$P(^(0),U,14)_U)" W ! D ^DIC K DIC G CATQ:Y<0 S DFN=+Y
44 S DGMTI=+$$LST^DGMTU(DFN),DGMTS=$P($G(^DGMT(408.31,DGMTI,0)),"^",3)
45 I 'DGMTS W !?3,*7,"No means test to change." G CAT
46 S DGMTACT="CAT" D PRIOR^DGMTEVT
47 I $G(DGMTP) D
48 .W !!,"MEANS TEST DATE: ",$$DATE^DGMTOREQ($P(DGMTP,U)),?44,"SOURCE OF TEST: ",$$SR^DGMTAUD1(DGMTP),!
49 .I $P($G(^DG(408.34,+$P(DGMTP,U,23),0)),U)="VAMC",($P($G(^DG(408.32,+$P(DGMTP,U,3),0)),U)="CATEGORY A") D
50 ..F I=1:1 S J=$P($T(CATTXT+I),";;",2) Q:J="END" W !,J
51 S DA=DGMTI,DIE="^DGMT(408.31,",DR="[DGMT ENTER/EDIT CATEGORY]" W ! D ^DIE K DA,DIE,DR
52 S DGMTYPT=1 D AFTER^DGMTEVT S DGMTINF=0 D EN^DGMTEVT,CATQ G CAT
53CATQ K DFN,DGMTA,DGMTACT,DGMTDT,DGMTI,DGMTINF,DGMTP,DGMTS,DGMTYPT,I,J,Y
54 Q
55CATTXT ;
56 ;;NOTE: VAMC Category A means tests can be changed to another
57 ;; category by editing the patient's means test data through
58 ;; the 'Edit an Existing Means Test' option ONLY.
59 ;;END
Note: See TracBrowser for help on using the repository browser.