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

GMPLP27I.m

Go to the documentation of this file.
  1. GMPLP27I ;SLC/JVS - Create cross-references. ;10/08/2004
  1. ;;2.0;Problem List;**27**;Aug 25, 1994
  1. ;
  1. Q
  1. ;===============================================================
  1. CPROB ;Create cross-reference for Problem List.
  1. N IND,MSG,NAME,RESULT,XREF
  1. D BMES^XPDUTL("Creating Problem List cross-reference.")
  1. S XREF("FILE")=9000011
  1. S XREF("ROOT FILE")=9000011
  1. S XREF("WHOLE KILL")="K ^PXRMINDX(9000011)"
  1. S XREF("TYPE")="MU"
  1. S XREF("SHORT DESCR")="Clinical Reminders index for ICD9 lookup."
  1. S XREF("DESCR",1)="This cross-reference builds two indexes, one for finding"
  1. S XREF("DESCR",2)="all patients with a particular ICD9 code and one for"
  1. S XREF("DESCR",3)="finding all the ICD9 codes 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(9000011,""ISPP"",ICD9,STATUS,PRIORITY,DFN,DLM,DAS)"
  1. S XREF("DESCR",6)=" ^PXRMINDX(9000011,""PSPI"",DFN,STATUS,PRIORITY,ICD9,DLM,DAS)"
  1. S XREF("DESCR",8)="respectively."
  1. S XREF("DESCR",9)=" "
  1. S XREF("DESCR",10)="STATUS can be ""A"" for active or ""I"" for inactive."
  1. S XREF("DESCR",11)="PRIORITY can be ""A"" for acute or ""C"" for chronic. If"
  1. S XREF("DESCR",12)="PRIORITY is missing then a ""U"" will be stored in the index."
  1. S XREF("DESCR",13)="For Problems whose PRIORITY is ""C"" Clinical Reminders uses"
  1. S XREF("DESCR",14)="today's date for the date of the Problem. In all other"
  1. S XREF("DESCR",15)="cases Clinical Reminders uses DLM where DLM is the date last modified."
  1. S XREF("DESCR",16)="When Problems are ""removed"" then CONDITION is set"
  1. S XREF("DESCR",17)="to ""H"" for hidden. Hidden Problems are not indexed."
  1. S XREF("DESCR",18)="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("VAL",1)=.01
  1. S XREF("VAL",1,"SUBSCRIPT")=1
  1. S XREF("VAL",2)=.02
  1. S XREF("VAL",2,"SUBSCRIPT")=2
  1. S XREF("VAL",3)=.03
  1. S XREF("VAL",3,"SUBSCRIPT")=3
  1. S XREF("VAL",4)=.12
  1. S XREF("VAL",4,"SUBSCRIPT")=4
  1. S XREF("VAL",5)=1.14
  1. S XREF("VAL",6)=1.02
  1. ;
  1. S XREF("NAME")="ACR"
  1. S XREF("SET")="D SPROB^GMPLPXRM(.X,.DA)"
  1. S XREF("KILL")="D KPROB^GMPLPXRM(.X,.DA)"
  1. S XREF("WHOLE KILL")="K ^PXRMINDX(9000011)"
  1. D CREIXN^DDMOD(.XREF,"k",.RESULT,"","MSG")
  1. I RESULT="" D DCERRMSG^PXRMP12I(.MSG,.XREF)
  1. Q