Ignore:
Timestamp:
Jul 6, 2008, 8:20:14 PM (16 years ago)
Author:
Kevin Toppenberg
Message:

Uploading from OR_30_258

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/foia-cprs/CPRS-Chart/rReminders.pas

    r459 r460  
    4040function GetCategoryItems(CatIEN: integer): TStrings;
    4141function GetAllRemindersAndCategories: TStrings;
     42function VerifyMentalHealthTestComplete(TestName, Answers: string): String;
     43
    4244
    4345implementation
     
    140142
    141143function 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
     144begin
    149145     if RemIEN then
    150146        CallV('ORQQPXRM REMINDER DIALOG', [IEN, Patient.DFN])
     
    152148        CallV('PXRM REMINDER DIALOG (TIU)', [IEN, Patient.DFN]);
    153149     Result := RPCBrokerV.Results;
    154      end
    155   else
    156       begin
    157       if RemIEN then
    158         CallV('ORQQPXRM REMINDER DIALOG', [IEN])
    159      else
    160         CallV('PXRM REMINDER DIALOG (TIU)', [IEN]);
    161      Result := RPCBrokerV.Results;
    162   end;
    163150end;
    164151
     
    422409end;
    423410
     411function VerifyMentalHealthTestComplete(TestName, Answers: string): String;
     412
     413begin
     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;
     430end;
     431
    424432initialization
    425433
Note: See TracChangeset for help on using the changeset viewer.