Changeset 460 for cprs/branches/foia-cprs/CPRS-Chart/fCover.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/fCover.pas
r459 r460 101 101 procedure NotifyOrder(OrderAction: Integer; AnOrder: TOrder); override; {REV} 102 102 procedure UpdateAllergiesList; 103 procedure UpdateVAAButton; 103 104 end; 104 105 105 106 var 106 107 frmCover: TfrmCover; 108 VAAFlag: TStringList; 109 MHVFlag: TStringList; 110 VAA_DFN: string; 111 PtIsVAA: boolean; 112 PtIsMHV: boolean; 107 113 108 114 const … … 114 120 {$R *.DFM} 115 121 116 uses ORNet, ORFn, fRptBox, fVitals, fvit, fFrame, uCore, TRPCB, uConst, 117 uReminders, rReminders, fARTAllgy, uOrPtf, fPatientFlagMulti, rODAllergy ;122 uses ORNet, ORFn, fRptBox, fVitals, fvit, fFrame, uCore, TRPCB, uConst, uInit, 123 uReminders, rReminders, fARTAllgy, uOrPtf, fPatientFlagMulti, rODAllergy, rMisc; 118 124 119 125 const … … 436 442 if ItemID <> '' then 437 443 begin 438 SelectVitals(Font.Size); 439 StatusText('Searching for recent vitals...'); 440 with frmCover do 441 for i := ComponentCount - 1 downto 0 do 442 begin 443 if Components[i] is TORListBox then 444 begin 445 case Components[i].Tag of 446 70: ListVitals((Components[i] as TORListBox).Items); 447 end; 448 end; 449 end; 450 StatusText(''); 444 frmFrame.VitalsDLLActive := True; 445 SelectVitals(Piece(DisplayText[ItemIndex],Char(9),1)); //Char(9) = Tab Character 446 frmFrame.VitalsDLLActive := False; 447 ClearPtData; 448 DisplayPage; 451 449 end; 452 450 … … 457 455 //don't try to display a detail report 458 456 end; 459 ItemIndex := -1; 457 if uInit.TimedOut then // Fix for CQ: 8011 458 Abort 459 else 460 ItemIndex := -1; 460 461 end; 461 462 end; … … 612 613 begin 613 614 lb.Clear; 614 615 repeat616 i := ActiveReminders.IndexOfPiece('1',U,6,i);617 if(i >= 0) then615 //i := -1; 616 //AGP Change 26.8 this changes allowed Reminders to display on the coversheet 617 //even if they had an error on evaluation 618 for i := 0 to ActiveReminders.Count-1 do 618 619 begin 619 tmp := ActiveReminders[i]; 620 SetPiece(tmp, U, 3, FormatFMDateTimeStr('mmm dd,yy', Piece(tmp, U, 3))); 621 lb.Items.Add(tmp); 620 if Piece(ActiveReminders.Strings[i],U,6)='1' then 621 begin 622 tmp := ActiveReminders[i]; 623 SetPiece(tmp, U, 3, FormatFMDateTimeStr('mmm dd,yy', Piece(tmp, U, 3))); 624 lb.Items.Add(tmp); 625 end; 626 if Piece(ActiveReminders.Strings[i],U,6)='3' then 627 begin 628 tmp := ActiveReminders[i]; 629 SetPiece(tmp, U, 3, 'Error'); 630 lb.Items.Add(tmp); 631 end; 632 if Piece(ActiveReminders.Strings[i],U,6)='4' then 633 begin 634 tmp := ActiveReminders[i]; 635 SetPiece(tmp, U, 3, 'CNBD'); 636 lb.Items.Add(tmp); 637 end; 622 638 end; 623 until(i < 0);639 //AGP End Change for 26.8 624 640 if(RemindersEvaluatingInBackground) then 625 641 lb.Items.Insert(0,'0^Evaluating Reminders...') … … 745 761 var 746 762 AListBox: TORListBox; 763 x: string; 747 764 begin 748 765 inherited; 749 766 AListBox := (popMenuAllergies.PopupComponent as TORListBox); 750 popEditAllergy.Enabled := AListBox.ItemIEN > 0;751 popEnteredInError.Enabled := AListBox.ItemIEN > 0;767 popEditAllergy.Enabled := (AListBox.ItemIEN > 0) and IsARTClinicalUser(x); 768 popEnteredInError.Enabled := (AListBox.ItemIEN > 0) and IsARTClinicalUser(x); 752 769 popNKA.Enabled := (AListBox.Items.Count = 1) and 753 770 (Piece(AListBox.Items[0], U, 2) = NO_ASSESSMENT); 771 //and IsARTClinicalUser(x); v26.12 772 popNewAllergy.Enabled := True; //IsARTClinicalUser(x); v26.12 754 773 end; 755 774 … … 867 886 end; 868 887 888 procedure TfrmCover.UpdateVAAButton; 889 const 890 MHVLabelOrigTop = 3; 891 PtInsLabelOrigTop = 27; 892 //var 893 // PtIsVAA: boolean; 894 // PtIsMHV: boolean; 895 896 begin 897 //VAA & MHV 898 PtIsVAA := false; 899 PtIsMHV := false; 900 901 VAAFlag := TStringList.Create; 902 MHVFlag := TStringList.Create; 903 VAA_DFN := Patient.DFN; 904 tCallV(VAAFlag, 'ORVAA VAA', [VAA_DFN]); 905 tCallV(MHVFlag, 'ORWMHV MHV', [VAA_DFN]); 906 907 if VAAFlag[0] <> '0' then 908 begin 909 PtIsVAA := true; 910 911 with frmFrame do 912 begin 913 laVAA2.Caption := Piece(VAAFlag[0], '^', 0); 914 laVAA2.Hint := Piece(VAAFlag[0], '^', 2); //CQ7626 was piece '6' 915 end; 916 end 917 else 918 begin 919 with frmFrame do 920 begin 921 laVAA2.Caption := #0; 922 laVAA2.Hint := 'No active insurance'; //CQ7626 added this line 923 end; 924 end; 925 926 //MHV flag 927 if MHVFlag[0] <> '0' then 928 begin 929 PtIsMHV := true; 930 931 with frmFrame do 932 begin 933 laMHV.Caption := Piece(MHVFlag[0], '^', 1); 934 laMHV.Hint := Piece(MHVFlag[0], '^', 2); 935 936 if VAAFlag[0] = '0' then 937 laMHV.Caption := 'MHV'; 938 end; 939 end 940 else 941 begin 942 with frmFrame do 943 begin 944 laMHV.Caption := #0; 945 laMHV.Hint := 'No MyHealthyVet data'; //CQ7626 added this line 946 end; 947 end; 948 949 with frmFrame do 950 begin 951 //Modified this 'with' section for CQ7783 952 paVAA.Hide; //Start by hiding it. Show it only if one of the conditions below is true, else it stays invisible. 953 paVAA.Height := pnlPrimaryCare.Height; 954 955 if ((PtIsVAA and PtIsMHV)) then //CQ7411 - this line 956 begin 957 laMHV.Top := paVAA.Top; 958 laMHV.Width := paVAA.Width - 1; 959 laMHV.Height := (paVAA.ClientHeight div 2) - 1; 960 laMHV.Visible := true; 961 962 laVAA2.Top := laMHV.Top + laMHV.Height + 1; 963 laVAA2.Width := paVAA.Width - 1; 964 laVAA2.Height := (paVAA.ClientHeight div 2); 965 laVAA2.Visible := true; 966 967 paVAA.Show; 968 end 969 else 970 if ((PtIsMHV and (not PtIsVAA))) then 971 begin 972 laMHV.Top := paVAA.Top; 973 paVAA.Height := pnlPrimaryCare.Height; 974 laMHV.Height := paVAA.ClientHeight - 1; 975 laMHV.Visible := true; 976 laVAA2.Visible := false; 977 paVAA.Show; 978 end 979 else 980 if ((PtIsVAA and (not PtIsMHV))) then 981 begin 982 laVAA2.Top := paVAA.Top; 983 paVAA.Height := pnlPrimaryCare.Height-2; 984 laVAA2.Height := paVAA.ClientHeight - 1; 985 laVAA2.Visible := true; 986 laMHV.Visible := false; 987 988 paVAA.Show; 989 end; 990 end; //with 991 //end VAA & MHV 992 end; 993 994 initialization 995 996 finalization 997 if Assigned(fCover.VAAFlag) then fCover.VAAFlag.Free; //VAA 998 869 999 end. 870 1000
Note:
See TracChangeset
for help on using the changeset viewer.