Changeset 460 for cprs/branches/foia-cprs/CPRS-Chart/rReminders.pas
- Timestamp:
- Jul 6, 2008, 8:20:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/foia-cprs/CPRS-Chart/rReminders.pas
r459 r460 40 40 function GetCategoryItems(CatIEN: integer): TStrings; 41 41 function GetAllRemindersAndCategories: TStrings; 42 function VerifyMentalHealthTestComplete(TestName, Answers: string): String; 43 42 44 43 45 implementation … … 140 142 141 143 function GetDialogInfo(IEN: string; RemIEN: boolean): TStrings; 142 Var 143 ver: string; 144 145 begin 146 ver:=sCallV('ORQQPXRM CHECK REM VERSION', []); 147 if pos('2',ver)>0 then 148 begin 144 begin 149 145 if RemIEN then 150 146 CallV('ORQQPXRM REMINDER DIALOG', [IEN, Patient.DFN]) … … 152 148 CallV('PXRM REMINDER DIALOG (TIU)', [IEN, Patient.DFN]); 153 149 Result := RPCBrokerV.Results; 154 end155 else156 begin157 if RemIEN then158 CallV('ORQQPXRM REMINDER DIALOG', [IEN])159 else160 CallV('PXRM REMINDER DIALOG (TIU)', [IEN]);161 Result := RPCBrokerV.Results;162 end;163 150 end; 164 151 … … 422 409 end; 423 410 411 function VerifyMentalHealthTestComplete(TestName, Answers: string): String; 412 413 begin 414 CallV('ORQQPXRM MHV', [Patient.DFN, TestName, Answers]); 415 if RPCBrokerV.Results[0]='2' then 416 begin 417 Result := '2'+ U; 418 EXIT; 419 end; 420 if RPCBrokerV.Results[0] = '1' then 421 begin 422 Result := '1' + U; 423 EXIT; 424 end; 425 if RPCBrokerV.Results[0] = '0' then 426 begin 427 Result := '0' + U + RPCBrokerV.Results[1]; 428 EXIT; 429 end; 430 end; 431 424 432 initialization 425 433
Note:
See TracChangeset
for help on using the changeset viewer.