source: FOIAVistA/trunk/r/SPINAL_CORD_DYSFUNCTION-SPN/SPNDEATH.m@ 1154

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

initial load of FOIAVistA 6/30/08 version

File size: 992 bytes
Line 
1SPNDEATH ;SAN/WDE/Main Driver for date of death
2 ;;2.0;Spinal Cord Dysfunction;**14**;01/02/1997
3 ; called from the protocal being released with
4 ;DG patch 273 DG VERSION 5.3
5 ;
6EN ;
7 Q:'$D(DFN)
8 Q:'$D(^SPNL(154,DFN,0))
9 ;Place a check if they are removing the date of death...
10 ;they will be passing some value that you can check.
11 ;If date of death is being deleted from file 2 I will send an
12 ;email to the SCI coordinator.
13 S DIE="^SPNL(154,",DA=DFN,DR=".03///X"
14 D ^DIE
15 K DIE,DA,DR
16 Q
17DELETE ;
18 ;Date of death has been deleted from the patient file
19 ;send a message to the coordinator to update the registry.
20 S SPNTXT(1)="The date of death for "_$$GET1^DIQ(2,DFN_",",.01)_" has"
21 S SPNTXT(2)="been deleted from the patient file."
22 S SPNTXT(3)="The Registration Status needs to be up-dated in the"
23 S SPNTXT(4)="Spinal Cord Registry."
24 S XMSUB="Date of death deleted for "_$$GET1^DIQ(2,DFN_",",.01)
25 S XMTEXT="SPNTXT("
26 S XMY=("G.SPNL SCD COORDINATOR")
27 D ^XMD
28 K SPNTXT,XMY,XMSUB
29 Q
Note: See TracBrowser for help on using the repository browser.