Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: PSSPI89

PSSPI89.m

Go to the documentation of this file.
  1. PSSPI89 ; BIR/PKR - Init for PSS*1.0*89. ;10/12/2004
  1. ;;1.0;PHARMACY DATA MANAGEMENT;**89**;9/30/97
  1. ;
  1. Q
  1. ;===============================================================
  1. CNVA ;Create non-VA med cross-reference in Pharmacy Patient file.
  1. N IND,MSG,NAME,RESULT,XREF
  1. D BMES^XPDUTL("Creating Pharmacy Patient non-VA med cross-reference.")
  1. S XREF("FILE")=55
  1. S XREF("WHOLE KILL")="K ^PXRMINDX(""55NVA"")"
  1. S XREF("TYPE")="MU"
  1. S XREF("SHORT DESCR")="Clinical Reminders index."
  1. S XREF("DESCR",1)="This cross-reference builds two indexes, one for finding"
  1. S XREF("DESCR",2)="all patients with a pharmacy orderable item and one for"
  1. S XREF("DESCR",3)="finding all the pharmacy orderable items a patient has. The indexes are"
  1. S XREF("DESCR",4)="stored in the Clinical Reminders index global as:"
  1. S XREF("DESCR",5)=" ^PXRMINDX(""55NVA"",""IP"",POI,DFN,START DATE,STOP DATE,DAS)"
  1. S XREF("DESCR",6)=" ^PXRMINDX(""55NVA"",""PI"",DFN,POI,START DATE,STOP DATE,DAS)"
  1. S XREF("DESCR",8)="respectively. POI is the pharmacy orderable item."
  1. S XREF("DESCR",9)="If there is no START DATE then the DOCUMENTED DATE is used in its place."
  1. S XREF("DESCR",10)="For all the details, see the Clinical Reminders Index Technical Guide/Programmer's Manual."
  1. S XREF("USE")="ACTION"
  1. S XREF("EXECUTION")="R"
  1. S XREF("ACTIVITY")="IR"
  1. S XREF("ROOT FILE")=55.05
  1. S XREF("NAME")="ACRNVA"
  1. S XREF("SET")="D SNVA^PSOPXRMU(.X,.DA)"
  1. S XREF("KILL")="D KNVA^PSOPXRMU(.X,.DA)"
  1. S XREF("VAL",1)=.01
  1. S XREF("VAL",1,"SUBSCRIPT")=1
  1. S XREF("VAL",2)=11
  1. S XREF("VAL",2,"SUBSCRIPT")=2
  1. S XREF("VAL",3)=8
  1. S XREF("VAL",4)=6
  1. D CREIXN^DDMOD(.XREF,"k",.RESULT,"","MSG")
  1. I RESULT="" D DCERRMSG^PXRMP12I(.MSG,.XREF)
  1. Q
  1. ;
  1. ;===============================================================
  1. CPSPA ;Create cross-references for Pharmacy Patient.
  1. N IND,MSG,NAME,RESULT,XREF
  1. D BMES^XPDUTL("Creating Pharmacy Patient cross-references.")
  1. S XREF("FILE")=55
  1. S XREF("SET CONDITION")="S X=$$PATCH^XPDUTL(""PXRM*1.5*12"")"
  1. S XREF("KILL CONDITION")="S X=$$PATCH^XPDUTL(""PXRM*1.5*12"")"
  1. S XREF("WHOLE KILL")="K ^PXRMINDX(55)"
  1. S XREF("TYPE")="MU"
  1. S XREF("SHORT DESCR")="Clinical Reminders index."
  1. S XREF("DESCR",1)="This cross-reference builds two indexes, one for finding"
  1. S XREF("DESCR",2)="all patients with a particular drug and one for"
  1. S XREF("DESCR",3)="finding all the drugs a patient has. The indexes are"
  1. S XREF("DESCR",4)="stored in the Clinical Reminders index global as:"
  1. S XREF("DESCR",5)=" ^PXRMINDX(55,""IP"",DRUG,DFN,START,STOP,DAS)"
  1. S XREF("DESCR",6)=" ^PXRMINDX(55,""PI"",DFN,DRUG,START,STOP,DAS)"
  1. S XREF("DESCR",8)="respectively. START is the start date and STOP is the stop date."
  1. S XREF("DESCR",9)="For all the details, see the Clinical Reminders Index Technical Guide/Programmer's Manual."
  1. S XREF("USE")="ACTION"
  1. S XREF("EXECUTION")="R"
  1. S XREF("ACTIVITY")="IR"
  1. ;
  1. ;Unit Dose
  1. S XREF("ROOT FILE")=55.06
  1. S XREF("NAME")="ACRUD"
  1. S XREF("SET")="D SPSPA^PSJXRFS(.X,.DA,""UD"")"
  1. S XREF("KILL")="D KPSPA^PSJXRFK(.X,.DA,""UD"")"
  1. S XREF("VAL",1)=10
  1. S XREF("VAL",1,"SUBSCRIPT")=1
  1. S XREF("VAL",2)=34
  1. S XREF("VAL",2,"SUBSCRIPT")=2
  1. D CREIXN^DDMOD(.XREF,"k",.RESULT,"","MSG")
  1. I RESULT="",$T(DCERRMSG^PXRMP12I) D DCERRMSG^PXRMP12I(.MSG,.XREF)
  1. ;
  1. ;IV node
  1. S XREF("ROOT FILE")=55.01
  1. S XREF("NAME")="ACRIV"
  1. S XREF("SET")="D SPSPA^PSJXRFS(.X,.DA,""IV"")"
  1. S XREF("KILL")="D KPSPA^PSJXRFK(.X,.DA,""IV"")"
  1. S XREF("VAL",1)=.02
  1. S XREF("VAL",1,"SUBSCRIPT")=1
  1. S XREF("VAL",2)=.03
  1. S XREF("VAL",2,"SUBSCRIPT")=2
  1. D CREIXN^DDMOD(.XREF,"k",.RESULT,"","MSG")
  1. I RESULT="",$T(DCERRMSG^PXRMP12I) D DCERRMSG^PXRMP12I(.MSG,.XREF)
  1. Q
  1. ;
  1. ;===================================================
  1. POST ;Post-init
  1. D CNVA
  1. D CPSPA
  1. Q
  1. ;