Ignore:
Timestamp:
May 7, 2015, 12:34:29 PM (9 years ago)
Author:
healthsevak
Message:

Updating the working copy to CPRS version 28

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/trunk/CPRS-Chart/fCover.pas

    r830 r1679  
    5858    lst_3: TORListBox;
    5959    sptFlag: TSplitter;
     60    VA508ComponentAccessibility1: TVA508ComponentAccessibility;
    6061    procedure CoverItemClick(Sender: TObject);
    6162    procedure timPollTimer(Sender: TObject);
     
    136137  RemID    = '50';
    137138
    138   TX_INACTIVE_CODE = 'This problem references an ICD code that is not currently active.' + #13#10 +
     139  TX_INACTIVE_ICODE = 'This problem references an ICD-9-CM code that is not currently active.' + #13#10 +
    139140                     'Please correct this code using the ''Problems'' tab.';
    140   TC_INACTIVE_CODE = 'Inactive ICD code';
     141  TC_INACTIVE_ICODE = 'Inactive ICD-9-CM code';
     142  TX_INACTIVE_SCODE = 'This problem references an SNOMED CT code that is not currently active.' + #13#10 +
     143                     'Please correct this code using the ''Problems'' tab.';
     144  TC_INACTIVE_SCODE = 'Inactive SNOMED CT code';
    141145
    142146var
     
    412416                 i := ItemIndex;
    413417                 if Piece(Items[ItemIndex], U, 13) = '#' then
    414                    InfoBox(TX_INACTIVE_CODE, TC_INACTIVE_CODE, MB_ICONWARNING or MB_OK);
     418                   InfoBox(TX_INACTIVE_ICODE, TC_INACTIVE_ICODE, MB_ICONWARNING or MB_OK)
     419                 else if Piece(Items[ItemIndex], U, 13) = '$' then
     420                   InfoBox(TX_INACTIVE_SCODE, TC_INACTIVE_SCODE, MB_ICONWARNING or MB_OK);
    415421                 ItemIndex := i;
    416422                 ReportBox(DetailGeneric(ItemIEN, ItemID, aDetail), DisplayText[ItemIndex], True);
     423                 lst_1.SetFocus;
    417424               end;
    418425     TAG_ALLG:
     
    421428               begin
    422429                 if ARTPatchInstalled then
    423                    AllergyBox(DetailGeneric(ItemIEN, ItemID, aDetail), DisplayText[ItemIndex], True, ItemIEN)
     430                 begin
     431                   AllergyBox(DetailGeneric(ItemIEN, ItemID, aDetail), DisplayText[ItemIndex], True, ItemIEN);
     432                   lst_2.SetFocus;
     433                   //TDP - Fixed allergy form focus problem
     434                   if (frmARTAllergy <> nil) and frmARTAllergy.Showing then frmARTAllergy.SetFocus;
     435                 end
    424436                 else
     437                 begin   
    425438                   ReportBox(DetailGeneric(ItemIEN, ItemID, aDetail), DisplayText[ItemIndex], True);
     439                   lst_2.SetFocus;
     440                 end;
    426441               end;
    427442     TAG_POST:
    428443             if DisplayText[ItemIndex] = 'Allergies' then
    429                ReportBox(DetailPosting('A'), DisplayText[ItemIndex], True)
     444               begin
     445               ReportBox(DetailPosting('A'), DisplayText[ItemIndex], True);
     446               lst_3.SetFocus;
     447               end
    430448             else if ItemID <> '' then
    431449               begin
    432450                 NotifyOtherApps(NAE_REPORT, 'TIU^' + ItemID);
    433451                 ReportBox(DetailPosting(ItemID), DisplayText[ItemIndex], True);
     452                 lst_3.SetFocus;
    434453               end;
    435454     TAG_MEDS:
    436455             if (ItemID <> '') and (ItemID <> '0') then
     456             begin
    437457               ReportBox(DetailMed(ItemID), DisplayText[ItemIndex], True);
     458               lst_4.SetFocus;
     459             end;
    438460     TAG_RMND:
    439461             if ItemIEN > 0  then
     462             begin
    440463               ReportBox(DetailReminder(ItemIEN), ClinMaintText + ': ' + DisplayText[ItemIndex], True);
     464               lst_5.SetFocus;
     465             end;
    441466     TAG_LABS:
    442467             if (ItemID <> '') and (Piece(ItemID,';',1) <> '0') and (not ContainsAlpha(Piece(ItemID,';',1))) then
     468             begin
    443469               ReportBox(DetailGeneric(ItemIEN, ItemID, aDetail), DisplayText[ItemIndex], True);
     470               lst_6.SetFocus;
     471             end;
    444472     TAG_VITL:
    445473             if ItemID <> '' then
    446474               begin
    447 //                 frmFrame.DLLActive := True;
     475                 //agp prevent double clicking on Vitals which can cause CPRS to shut down when exiting vitals
     476                 TORListBox(Sender).Enabled := false;
    448477                 SelectVitals(Piece(DisplayText[ItemIndex],Char(9),1)); //Char(9) = Tab Character
    449 //                 frmFrame.DLLActive := False;
    450478                 ClearPtData;
     479                 //agp set InitialRemindersLoaded to False only if reminders are still evaluating. This prevent
     480                 //a problem with reminders not finishing the evaluation if the Vital DLL is launch and it prevent
     481                 //an automatic re-evaluation of reminders if reminders are done evaluating.
     482                 if RemindersEvaluatingInBackground = true then  InitialRemindersLoaded := False;
    451483                 DisplayPage;
     484                 TORListBox(Sender).Enabled := True;
     485                 lst_7.SetFocus;
    452486               end;
    453487
    454488     TAG_VSIT:
    455489             if (ItemID <> '') and (ItemID <> '0') then
     490             begin
    456491               ReportBox(DetailGeneric(ItemIEN, ItemID, aDetail), DisplayText[ItemIndex], True);
     492               lst_8.SetFocus;
     493             end
    457494    else
    458495      //don't try to display a detail report
     
    643680    if(RemindersEvaluatingInBackground) then
    644681      lb.Items.Insert(0,'0^Evaluating Reminders...')
    645     else
    646     if(lb.Items.Count = 0) and (RemindersStarted) then
    647       lb.Items.Add(NoDataText(TRUE));
     682    //AGP added code below to change the reminder panel picture if the clock has not stop by this point. CQ
     683    else if(lb.Items.Count = 0) and (RemindersStarted) then
     684      begin
     685        lb.Items.Add(NoDataText(TRUE));
     686        if frmFrame.anmtRemSearch.Visible = true then
     687          begin
     688            frmFrame.anmtRemSearch.Visible := FALSE;
     689            frmFrame.imgReminder.Visible := TRUE;
     690            frmFrame.imgReminder.Picture.Bitmap.LoadFromResourceName(hInstance, 'BMP_REMINDERS_APPLICABLE');
     691            frmFrame.anmtRemSearch.Active := FALSE;
     692          end;
     693      end
     694    else if (lb.Items.Count > 0) and (RemindersStarted) and (frmFrame.anmtRemSearch.Visible = true) then
     695       begin
     696            frmFrame.anmtRemSearch.Visible := FALSE;
     697            frmFrame.imgReminder.Visible := TRUE;
     698            frmFrame.imgReminder.Picture.Bitmap.LoadFromResourceName(hInstance, 'BMP_REMINDERS_DUE');
     699            frmFrame.anmtRemSearch.Active := FALSE;
     700       end;
    648701  end;
    649702end;
     
    778831  NEW_ALLERGY = True;
    779832  ENTERED_IN_ERROR = True;
    780 var
    781   Changed: boolean;
    782 begin
    783   inherited;
    784   Changed := EnterEditAllergy(0, NEW_ALLERGY, not ENTERED_IN_ERROR);
    785   if Changed then UpdateAllergiesList;
     833begin
     834  inherited;
     835  EnterEditAllergy(0, NEW_ALLERGY, not ENTERED_IN_ERROR);
    786836end;
    787837
     
    805855
    806856procedure TfrmCover.popEnteredInErrorClick(Sender: TObject);
    807 var
    808   Changed: boolean;
    809 begin
    810   inherited;
    811   Changed := MarkEnteredInError((popMenuAllergies.PopupComponent as TORListBox).ItemIEN);
    812   if Changed then UpdateAllergiesList;
     857begin
     858  inherited;
     859  MarkEnteredInError((popMenuAllergies.PopupComponent as TORListBox).ItemIEN);
    813860end;
    814861
Note: See TracChangeset for help on using the changeset viewer.