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

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

initial load of WorldVistAEHR

File size: 1.6 KB
Line 
1DGPMDD1 ;ALB/MRL - FILE 405 'SET' X-REFERENCES; 08 NOV 88 ; 11/5/03 1:24pm
2 ;;5.3;Registration;**156,555**;Aug 13, 1993
3 D FLDS^DGPMDD2 G Q:DGPMDDER I DGPMDD(2)']"" G 14:DGPMDDF=14,Q
4 I "^1^2^3^22^"[("^"_+DGPMDDF_"^"),DGPMDD(3) S ^DGPM("ATT"_+DGPMDD(2),+DGPMDD(1),DA)="",^DGPM("APTT"_+DGPMDD(2),+DGPMDD(3),+DGPMDD(1),DA)="",^DGPM("AMV"_+DGPMDD(2),+DGPMDD(1),+DGPMDD(3),DA)="",^DGPM("ATID"_+DGPMDD(2),+DGPMDD(3),DGPMDDID,DA)=""
5 I DGPMDD(2)=4!(DGPMDD(2)=5) G Q
6 I "^1^3^22^"[("^"_+DGPMDDF_"^"),DGPMDD(3),DGPMDD(2)'=6 S ^DGPM("APID",+DGPMDD(3),DGPMDDID,DA)="",^DGPM("APRD",+DGPMDD(3),+DGPMDD(1),DA)=""
7 I "^1^3^9^22^"[("^"_+DGPMDDF_"^"),DGPMDD(9),DGPMDD(14),DGPMDD(3) S ^DGPM("ATS",+DGPMDD(3),+DGPMDD(14),DGPMDDID,+DGPMDD(9),DA)=""
8 I "^1^3^22^23^"[("^"_+DGPMDDF_"^"),DGPMDD(23) S ^DGPM("ADMMS",+DGPMDD(3),DGPMDDID,DGPMDD(23),DA)=""
914 I "^1^3^14^22^"[("^"_+DGPMDDF_"^"),DGPMDD(14),DGPMDD(2)'=6 S ^DGPM("APMV",+DGPMDD(3),+DGPMDD(14),DGPMDDID,DA)="",^DGPM("APCA",+DGPMDD(3),+DGPMDD(14),+DGPMDD(1),DA)=""
10Q K DGPMDD,DGPMDDF,DGPMDDN,DGPMDDER,DGPMDDID Q
11 ;
12DES ;ATT - ^DGPM("ATT"_Transaction#,Date,DA)=""
13 ;ATID - ^DGPM("ATID"_Transaction type,DFN,Inverse Date,DA)=""
14 ;APID - ^DGPM("APID",Patient,Inverse Date,DA)=""
15 ;APTT - ^DGPM("APTT"_Transaction#,Patient,Date,DA)=""
16 ;APCA - ^DGPM("APCA",Patient,Corresponding Admission,Date,DA)=""
17 ;APMV - ^DGPM("APMV",Patient,Corresponding Admit,Inverse Date,DA)=""
18 ;APRD - ^DGPM("APRD",Patient,Date,DA)=""
19 ;AMV - ^DGPM("AMV"_TT,Date,Patient,DA)=""
20 ;ATS - ^DGPM("ATS",DFN,Corresponding Admission,Inverse Date,Treating Specialty,DA)
21 ;ADMMS - ^DGPM("ADMMS",DFN,Inverse Date,DMMS Episode number,DA)
Note: See TracBrowser for help on using the repository browser.