source: WorldVistAEHR/trunk/r/OUTPATIENT_PHARMACY-PSO-APSP-HUIP/PSOPOST9.m@ 1639

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

initial load of WorldVistAEHR

File size: 2.3 KB
RevLine 
[613]1PSOPOST9 ;BIR/MR-Reminders Index Post-Install Routine ;10/12/2004
2 ;;7.0;OUTPATIENT PHARMACY;**118**;DEC 1997
3 ;Reference to PXRMP12I supported by DBIA 3736
4 ;
5CPSRX ;Create cross-references for Prescription file.
6 N IND,MSG,NAME,RESULT,XREF
7 D MES^XPDUTL("Creating Prescription file cross-references...")
8 S XREF("FILE")=52
9 S XREF("WHOLE KILL")="Q"
10 S XREF("TYPE")="MU"
11 S XREF("SHORT DESCR")="Clinical Reminders index."
12 S XREF("DESCR",1)="This cross-reference builds two indexes, one for finding"
13 S XREF("DESCR",2)="all patients with a particular drug and one for"
14 S XREF("DESCR",3)="finding all the drugs a patient has. The indexes are"
15 S XREF("DESCR",4)="stored in the Clinical Reminders index global as:"
16 S XREF("DESCR",5)=" ^PXRMINDX(52,""IP"",DRUG,DFN,START DATE,STOP DATE,DAS)"
17 S XREF("DESCR",6)=" ^PXRMINDX(52,""PI"",DFN,DRUG,START DATE,STOP DATE,DAS)"
18 S XREF("DESCR",8)="respectively. START DATE is the RELEASE DATE and STOP DATE is"
19 S XREF("DESCR",9)="calculated by adding the DAYS SUPPLY to the RELEASE DATE."
20 S XREF("DESCR",10)="For all the details, see the Clinical Reminders Index Technical Guide/Programmer's Manual."
21 S XREF("USE")="ACTION"
22 S XREF("EXECUTION")="F"
23 S XREF("ACTIVITY")="IR"
24 ;
25 ;Original node
26 S XREF("ROOT FILE")=52
27 S XREF("NAME")="ACRO"
28 S XREF("SET")="D SKIDX^PSOPXRMU(.X,.DA,""O"",""S"")"
29 S XREF("KILL")="D SKIDX^PSOPXRMU(.X,.DA,""O"",""K"")"
30 S XREF("VAL",1)=8
31 S XREF("VAL",1,"SUBSCRIPT")=1
32 S XREF("VAL",2)=31
33 S XREF("VAL",2,"SUBSCRIPT")=2
34 D CREIXN^DDMOD(.XREF,"k",.RESULT,"","MSG")
35 I RESULT="" D DCERRMSG^PXRMP12I(.MSG,.XREF)
36 ;
37 ;Refill node
38 S XREF("ROOT FILE")=52.1
39 S XREF("NAME")="ACRR"
40 S XREF("SET")="D SKIDX^PSOPXRMU(.X,.DA,""R"",""S"")"
41 S XREF("KILL")="D SKIDX^PSOPXRMU(.X,.DA,""R"",""K"")"
42 S XREF("VAL",1)=1.1
43 S XREF("VAL",1,"SUBSCRIPT")=1
44 S XREF("VAL",2)=17
45 S XREF("VAL",2,"SUBSCRIPT")=2
46 D CREIXN^DDMOD(.XREF,"k",.RESULT,"","MSG")
47 I RESULT="" D DCERRMSG^PXRMP12I(.MSG,.XREF)
48 ;
49 ;Partial node
50 S XREF("ROOT FILE")=52.2
51 S XREF("NAME")="ACRP"
52 S XREF("SET")="D SKIDX^PSOPXRMU(.X,.DA,""P"",""S"")"
53 S XREF("KILL")="D SKIDX^PSOPXRMU(.X,.DA,""P"",""K"")"
54 S XREF("VAL",1)=.041
55 S XREF("VAL",1,"SUBSCRIPT")=1
56 S XREF("VAL",2)=8
57 S XREF("VAL",2,"SUBSCRIPT")=2
58 D CREIXN^DDMOD(.XREF,"k",.RESULT,"","MSG")
59 I RESULT="" D DCERRMSG^PXRMP12I(.MSG,.XREF)
60 D MES^XPDUTL("OK!")
61 Q
62 ;
Note: See TracBrowser for help on using the repository browser.