source: WorldVistAEHR/trunk/r/SPINAL_CORD_DYSFUNCTION-SPN/SPNDDXFR.m@ 1686

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

initial load of WorldVistAEHR

File size: 1.1 KB
Line 
1SPNDDXFR ;SD/CM- UPDATES REG STATUS BASED ON DEATH STATUS; 4-29-99
2 ;;2.0;Spinal Cord Dysfunction;**11**;01/02/97
3 ;
4DOD ; Called by Mumps x-ref ASPN when editing Date of Death (file 2).
5 S U="^"
6SET Q:'$D(X)
7 Q:'$D(^SPNL(154,DA))
8 I $P($G(^DPT(DA,.35)),U,1)'="",(X'="") S $P(^SPNL(154,DA,0),U,3)="X" S DIK="^SPNL(154,",DIK(1)=".03" D EN^DIK
9SENDMM ;
10 I $P($G(^DPT(DA,.35)),U,1)="" D ALIVE
11 G EXIT
12ALIVE ;
13 S SPNARR(1)=" ******** Patient NOT Deceased ********"
14 S SPNARR(2)=" "
15 S SPNARR(3)="This is to alert you that a patient marked as 'deceased'"
16 S SPNARR(4)="in the PATIENT file has been corrected to 'NOT deceased'."
17 S SPNARR(5)="Please check this patient's record in the SCD Registry to"
18 S SPNARR(6)="ensure the Registration Status field is updated."
19 S SPNARR(7)=" "
20 S SPNARR(8)="Patient's name is ----> "_$P(^DPT(DA,0),U,1)
21 S SPNARR(9)="Patient's SSN is ----> "_$P(^DPT(DA,0),U,9)
22 S XMSUB="UPDATE REGISTRATION STATUS - SCI PATIENT"
23 S XMDUZ="SCD REGISTRY"
24MSG ;
25 S XMTEXT="SPNARR("
26 S XMY("G.SPNL SCD COORDINATOR")=""
27SEND ;
28 D ^XMD
29 Q
30EXIT ;
31 K SPNARR,DIK,XMDUZ,XMSUB,XMTEXT,XMY
32 Q
Note: See TracBrowser for help on using the repository browser.