Changeset 829 for cprs/trunk/CPRS-Chart/BA
- Timestamp:
- Jul 7, 2010, 4:31:10 PM (14 years ago)
- Location:
- cprs/trunk/CPRS-Chart/BA
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/BA/UBAConst.pas
r456 r829 30 30 MILITARY_SEXUAL_TRAUMA = 'MST'; 31 31 COMBAT_VETERAN = 'CV'; 32 SHIPBOARD_HAZARD_DEFENSE= 'SHD'; 32 33 33 34 MAX_DX = 4; -
cprs/trunk/CPRS-Chart/BA/UBACore.pas
r456 r829 112 112 end; 113 113 114 BAOrderList.Assign(holdOrderList); //assign signable orders to BAOrderList for further processing114 FastAssign(holdOrderList, BAOrderList); //assign signable orders to BAOrderList for further processing 115 115 holdOrderList.Clear; // CQ5025 116 116 117 117 //call with passList determine if LRMP 118 118 if rpcOrderRequiresDx(passList) then 119 BAOrderList.Assign(updatedBAOrderList);119 FastAssign(updatedBAOrderList, BAOrderList); 120 120 121 121 // check of all orders dx columns are flagged with N/A..... … … 165 165 end 166 166 else 167 updatedList.Assign(pList);167 FastAssign(pList, updatedList); 168 168 169 169 // call returns boolean, orders is billable=1 or nonbillable=0 or discontinued = 0 … … 213 213 on EListError do 214 214 begin 215 {$ifdef debug}Show Message('EListError in UBACore.IsOrderBillable()');{$endif}215 {$ifdef debug}Show508Message('EListError in UBACore.IsOrderBillable()');{$endif} 216 216 raise; 217 217 end; … … 334 334 begin 335 335 // Verify Patient is Insured 336 // OR Switch = 2 ask questions for all patients. 336 337 if rpcIsPatientInsured(pPatientDFN) then 337 338 BILLING_AWARE := TRUE; … … 407 408 on EListError do 408 409 begin 409 {$ifdef debug}Show Message('EListError in UBACore.rpcSaveBillingDxEntered()');{$endif}410 {$ifdef debug}Show508Message('EListError in UBACore.rpcSaveBillingDxEntered()');{$endif} 410 411 raise; 411 412 end; … … 419 420 procedure rpcGetSC4Orders; 420 421 begin 422 // ****** RPC Logic returning SC/TF codes for COPAY ******** 423 // if (CIDC is ON) and (PatientInsured is True) then 424 // return SC/TF for OutPatient Meds, Labs, Prosthetics, Imaging. 425 // else 426 // return SC/TF for Outpatient Meds only. 421 427 RPCBrokerV.Param[0].PType := literal; 422 428 RPCBrokerV.Param[0].Value := Patient.DFN; … … 434 440 uDxLst.Clear; 435 441 tCallV(tmplst, 'ORWDBA2 GETDUDC', [ProviderIEN, PatientIEN]); 436 UBACore.UDxLst.Assign(tmplst);442 FastAssign(tmplst, UBACore.UDxLst); 437 443 tmplst.clear; 438 444 end; … … 511 517 function rpcIsPatientInsured(pPatientDFN: string):boolean; 512 518 begin 513 Result := (sCallV('ORWDBA7 ISWITCH',[pPatientDFN]) = '1');519 Result := (sCallV('ORWDBA7 ISWITCH',[pPatientDFN]) > '0'); 514 520 515 521 end; … … 552 558 on EListError do 553 559 begin 554 {$ifdef debug}Show Message('EListError in UBACore.OrdersHaveDx()');{$endif}560 {$ifdef debug}Show508Message('EListError in UBACore.OrdersHaveDx()');{$endif} 555 561 raise; 556 562 end; … … 634 640 UBAGlobals.MST := Copy(x,5,1); 635 641 UBAGlobals.HNC := Copy(x,6,1); 636 UBAGlobals.CV := Copy(x,7,1); 642 UBAGlobals.CV := Copy(x,7,1); 643 UBAGlobals.SHD := Copy(x,8,1); 637 644 end; 638 645 … … 693 700 UBAGlobals.HNC := 'C'; 694 701 702 if UBAGlobals.SHD <> 'N' then 703 if StrPos(PChar(strTFactors),PChar(SHIPBOARD_HAZARD_DEFENSE)) <> nil then 704 UBAGlobals.SHD := 'C'; 705 695 706 // Build Treatment Factor List to be passed to fOrdersSign form 696 strFlagsOut := (SC + AO + IR + EC + MST + HNC + CV );707 strFlagsOut := (SC + AO + IR + EC + MST + HNC + CV + SHD); 697 708 UBAGlobals.BAFlagsOUT.Add(IDX + '^' + strFlagsOut ); 698 709 end; … … 724 735 on EListError do 725 736 begin 726 {$ifdef debug}Show Message('EListError in UBACore.AddProviderPatientDaysDx()');{$endif}737 {$ifdef debug}Show508Message('EListError in UBACore.AddProviderPatientDaysDx()');{$endif} 727 738 raise; 728 739 end; … … 751 762 on EListError do 752 763 begin 753 {$ifdef debug}Show Message('EListError in UBACore.OrderRequiresSCEI()');{$endif}764 {$ifdef debug}Show508Message('EListError in UBACore.OrderRequiresSCEI()');{$endif} 754 765 raise; 755 766 end; … … 875 886 on EListError do 876 887 begin 877 {$ifdef debug}Show Message('EListError in UBACore.CompleteUnsignedBillingInfo()');{$endif}888 {$ifdef debug}Show508Message('EListError in UBACore.CompleteUnsignedBillingInfo()');{$endif} 878 889 raise; 879 890 end; … … 898 909 on EListError do 899 910 begin 900 {$ifdef debug}Show Message('EListError in UBACore.GetUnsignedOrderFlags()');{$endif}911 {$ifdef debug}Show508Message('EListError in UBACore.GetUnsignedOrderFlags()');{$endif} 901 912 raise; 902 913 end; … … 972 983 if piece(x,U,1) = COMBAT_VETERAN then 973 984 begin 974 if piece(x,U,2) = '1' then 975 UBAGlobals.BAFactorsRec.FBAFactorCV := Piece(x,U,3) 976 else 977 UBAGlobals.BAFactorsRec.FBAFactorCV := (UBAGlobals.BAFactorsRec.FBAFactorCV + CRLF + Piece(x,U,3) ); 978 end; 979 end; 985 if piece(x,U,2) = '1' then 986 UBAGlobals.BAFactorsRec.FBAFactorCV := Piece(x,U,3) 987 else 988 UBAGlobals.BAFactorsRec.FBAFactorCV := (UBAGlobals.BAFactorsRec.FBAFactorCV + CRLF + Piece(x,U,3) ); 989 end 990 else 991 if piece(x,U,1) = SHIPBOARD_HAZARD_DEFENSE then 992 begin 993 if piece(x,U,2) = '1' then 994 UBAGlobals.BAFactorsRec.FBAFactorSHAD := Piece(x,U,3) 995 else 996 UBAGlobals.BAFactorsRec.FBAFactorSHAD := (UBAGlobals.BAFactorsRec.FBAFactorSHAD + CRLF + Piece(x,U,3) ); 997 end; 998 end; 980 999 except 981 1000 on EListError do 982 1001 begin 983 {$ifdef debug}Show Message('EListError in UBACore.BuileTFHintRec()');{$endif}1002 {$ifdef debug}Show508Message('EListError in UBACore.BuileTFHintRec()');{$endif} 984 1003 raise; 985 1004 end; … … 1047 1066 on EListError do 1048 1067 begin 1049 {$ifdef debug}Show Message('EListError in UBACore.ClearSelectedORdersDiagnoses()');{$endif}1068 {$ifdef debug}Show508Message('EListError in UBACore.ClearSelectedORdersDiagnoses()');{$endif} 1050 1069 raise; 1051 1070 end; … … 1133 1152 on EListError do 1134 1153 begin 1135 {$ifdef debug}Show Message('EListError in UBACore.LoadConsultOrderRec()');{$endif}1154 {$ifdef debug}Show508Message('EListError in UBACore.LoadConsultOrderRec()');{$endif} 1136 1155 raise; 1137 1156 end; … … 1153 1172 with thisRetVal do 1154 1173 begin 1155 FBAOrderID := pOrderID;1174 FBAOrderID := pOrderID; 1156 1175 FBAEligible := pEligible; 1157 1176 FBATFactors := pTFactors; … … 1166 1185 tmpOrderList: TStringList; 1167 1186 begin 1168 orderList := TStringList.Create;1187 orderList := TStringList.Create; 1169 1188 tmpOrderList := TStringList.Create; 1170 1189 orderList.Clear; … … 1241 1260 strTFactors := pPLFactors; // value selected from problem list 1242 1261 strFlagsOut := ''; // flags updated with selected values from problem list 1243 x := strFlagsAsIs;1244 Result := '';1262 x := strFlagsAsIs; 1263 Result := ''; 1245 1264 1246 1265 UBAGlobals.SC := Copy(x,1,1); … … 1250 1269 UBAGlobals.MST := Copy(x,5,1); 1251 1270 UBAGlobals.HNC := Copy(x,6,1); 1252 UBAGlobals.CV := Copy(x,7,1); // load factors to global vars; 1271 UBAGlobals.CV := Copy(x,7,1); // load factors to global vars; 1272 UBAGlobals.SHD := Copy(x,8,1); 1253 1273 1254 1274 if UBAGlobals.SC <> 'N' then … … 1284 1304 UBAGlobals.CV := 'C'; 1285 1305 1306 if UBAGlobals.SHD <> 'N' then 1307 if StrPos(PChar(strTFactors),PChar(SHIPBOARD_HAZARD_DEFENSE)) <> nil then 1308 UBAGlobals.SHD := 'C'; 1309 1286 1310 strFlagsOut := (UBAGlobals.SC + UBAGlobals.AO + UBAGlobals.IR + 1287 1311 UBAGlobals.EC + UBAGlobals.MST + UBAGlobals.HNC + 1288 UBAGlobals.CV );1312 UBAGlobals.CV + UBAGlobals.SHD); 1289 1313 Result := strFlagsOut; 1290 1314 end; … … 1385 1409 holdList := TStringList.Create; 1386 1410 holdList.Clear; 1387 holdList.Assign(UBAGlobals.BACopiedOrderFlags);1411 FastAssign(UBAGlobals.BACopiedOrderFlags, holdList); 1388 1412 UBAGlobals.BACopiedOrderFlags.Clear; 1389 1413 for i := 0 to holdList.Count-1 do … … 1412 1436 holdList := TStringList.Create; 1413 1437 holdList.Clear; 1414 holdList.Assign(UBAGlobals.BAConsultPLFlags);1438 FastAssign(UBAGlobals.BAConsultPLFlags, holdList); 1415 1439 UBAGlobals.BAConsultPLFlags.Clear; 1416 1440 for i := 0 to holdList.Count-1 do -
cprs/trunk/CPRS-Chart/BA/UBAGlobals.pas
r456 r829 31 31 PtHNC:boolean; 32 32 PtMST:boolean; 33 PtSHAD:boolean; 33 34 constructor Create(Alist:TStringList); 34 35 function GetGMPDFN(dfn:string;name:String):string; … … 111 112 FBAFactorHNC : string; 112 113 FBAFactorCV : string; 114 FBAFactorSHAD : string; 113 115 end; 114 116 … … 131 133 CB_HNC :string; 132 134 CB_CV :string; 135 CB_SHAD :string; 133 136 end; 134 137 … … 205 208 TFactors : string; 206 209 SC,AO,IR : string; 207 MST,HNC,CV, EC: string;210 MST,HNC,CV,SHD,EC : string; 208 211 PLFactorsIndexes : TStringList; 209 212 BAHoldPrimaryDx : string; // used to verify primart dx has been changed. 210 213 BAPrimaryDxChanged: boolean; 211 // OrdersReqDxLst : TStringList; // List of selected Orders flagged collect DX Y/N212 214 NonBillableOrderList : TStringList; // contains reference to those selected orders that are non billable 213 215 OrderListSCEI : TSTringList; // OrderID Exists SCEI are required. … … 220 222 BAFWarningShown: boolean; // flag used to determine if Inactive ICD Code has been shown. 221 223 BAPersonalDX: boolean; 222 // BAConsultOrdersRequireDx: TStringList; //orderid - if orderid exists - consult order that requires dx...223 224 BADeltedOrders: TStringList; 224 225 225 226 implementation 226 227 227 uses fBALocalDiagnoses, fOrdersSign, fReview, uCore, rCore, rPCE,uPCE, UBAConst, UBAMessages, UBACore; 228 uses fBALocalDiagnoses, fOrdersSign, fReview, uCore, rCore, rPCE,uPCE, UBAConst, UBAMessages, UBACore, 229 VAUtils; 228 230 229 231 procedure RemoveOrderFromDxList(thisOrderID: string); … … 390 392 on EListError do 391 393 begin 392 {$ifdef debug}ShowM essage('EListError in UBAGlobals.PutBADxListForOrder()');{$endif}394 {$ifdef debug}ShowMsg('EListError in UBAGlobals.PutBADxListForOrder()');{$endif} 393 395 raise; 394 396 end; … … 489 491 on EListError do 490 492 begin 491 {$ifdef debug}ShowM essage('EListError in UBAGlobals.AllSelectedDxBlank() - F_ORDERS_SIGN');{$endif}493 {$ifdef debug}ShowMsg('EListError in UBAGlobals.AllSelectedDxBlank() - F_ORDERS_SIGN');{$endif} 492 494 raise; 493 495 end; … … 506 508 on EListError do 507 509 begin 508 {$ifdef debug}ShowM essage('EListError in UBAGlobals.AllSelectedDxBlank() - F_REVIEW');{$endif}510 {$ifdef debug}ShowMsg('EListError in UBAGlobals.AllSelectedDxBlank() - F_REVIEW');{$endif} 509 511 raise; 510 512 end; … … 534 536 on EListError do 535 537 begin 536 {$ifdef debug}ShowM essage('EListError in UBAGlobals.GetDxNodeIndex()');{$endif}538 {$ifdef debug}ShowMsg('EListError in UBAGlobals.GetDxNodeIndex()');{$endif} 537 539 raise; 538 540 end; … … 565 567 on EListError do 566 568 begin 567 {$ifdef debug}ShowM essage('EListError in UBAGlobals.DiagnosesMatch()');{$endif}569 {$ifdef debug}ShowMsg('EListError in UBAGlobals.DiagnosesMatch()');{$endif} 568 570 raise; 569 571 end; … … 588 590 on EListError do 589 591 begin 590 {$ifdef debug}ShowM essage('EListError in UBAGlobals.CountSelectedOrders() - F_ORDERS_SIGN');{$endif}592 {$ifdef debug}ShowMsg('EListError in UBAGlobals.CountSelectedOrders() - F_ORDERS_SIGN');{$endif} 591 593 raise; 592 594 end; … … 601 603 on EListError do 602 604 begin 603 {$ifdef debug}ShowM essage('EListError in UBAGlobals.CountSelectedOrders() - F_REVIEW');{$endif}605 {$ifdef debug}ShowMsg('EListError in UBAGlobals.CountSelectedOrders() - F_REVIEW');{$endif} 604 606 raise; 605 607 end; … … 643 645 on EListError do 644 646 begin 645 {$ifdef debug}ShowM essage('EListError in UBAGlobals.CompareOrderDx() - F_ORDERS_SIGN');{$endif}647 {$ifdef debug}ShowMsg('EListError in UBAGlobals.CompareOrderDx() - F_ORDERS_SIGN');{$endif} 646 648 raise; 647 649 end; … … 659 661 on EListError do 660 662 begin 661 {$ifdef debug}ShowM essage('EListError in UBAGlobals.CompareOrderDx() - F_REVIEW');{$endif}663 {$ifdef debug}ShowMsg('EListError in UBAGlobals.CompareOrderDx() - F_REVIEW');{$endif} 662 664 raise; 663 665 end; … … 704 706 on EListError do 705 707 begin 706 {$ifdef debug}ShowM essage('EListError in UBAGlobals.CompareOrderDx() - F_ORDERS_SIGN');{$endif}708 {$ifdef debug}ShowMsg('EListError in UBAGlobals.CompareOrderDx() - F_ORDERS_SIGN');{$endif} 707 709 raise; 708 710 end; … … 736 738 on EListError do 737 739 begin 738 {$ifdef debug}ShowM essage('EListError in UBAGlobals.CompareOrderDx() - F_REVIEW');{$endif}740 {$ifdef debug}ShowMsg('EListError in UBAGlobals.CompareOrderDx() - F_REVIEW');{$endif} 739 741 raise; 740 742 end; … … 858 860 on EListError do 859 861 begin 860 {$ifdef debug}ShowM essage('EListError in UBAGlobals.SetBADxListForOrder()');{$endif}862 {$ifdef debug}ShowMsg('EListError in UBAGlobals.SetBADxListForOrder()');{$endif} 861 863 raise; 862 864 end; … … 890 892 on EListError do 891 893 begin 892 {$ifdef debug}ShowM essage('EListError in UBAGlobals.SecondaryDxFull()');{$endif}894 {$ifdef debug}ShowMsg('EListError in UBAGlobals.SecondaryDxFull()');{$endif} 893 895 raise; 894 896 end; … … 923 925 on EListError do 924 926 begin 925 {$ifdef debug}ShowM essage('EListError in UBAGlobals.AddSecondaryDx()');{$endif}927 {$ifdef debug}ShowMsg('EListError in UBAGlobals.AddSecondaryDx()');{$endif} 926 928 raise; 927 929 end; … … 1068 1070 7: PtHNC := (AList[i] = '1'); 1069 1071 8: PtMST := (AList[i] = '1'); 1072 9: PtSHAD := (AList[i] = '1'); 1070 1073 end; 1071 1074 end; … … 1078 1081 procedure TBAPLPt.LoadPatientParams(AList:TstringList); 1079 1082 begin 1080 AList.Assign(rpcInitPt(Patient.DFN));1083 FastAssign(rpcInitPt(Patient.DFN), AList); 1081 1084 BAPLPt := TBAPLPt.create(Alist); 1082 1085 end; … … 1111 1114 on EListError do 1112 1115 begin 1113 {$ifdef debug}ShowM essage('EListError in UBAGlobals.tempDxNodeExists()');{$endif}1116 {$ifdef debug}ShowMsg('EListError in UBAGlobals.tempDxNodeExists()');{$endif} 1114 1117 raise; 1115 1118 end; … … 1159 1162 BANurseConsultOrders := TStringList.Create; 1160 1163 BADeltedOrders := TStringList.Create; 1161 // BAConsultOrdersRequireDx := TStringList.Create;1162 1164 BAConsultDxList.Clear; 1163 1165 NonBillableOrderList.Clear; … … 1175 1177 BANurseConsultOrders.Clear; 1176 1178 BADeltedOrders.Clear; 1177 //BAConsultOrdersRequireDx.Clear; 1178 1179 1179 1180 end. 1180 1181 -
cprs/trunk/CPRS-Chart/BA/fBALocalDiagnoses.dfm
r456 r829 1 object frmBALocalDiagnoses: TfrmBALocalDiagnoses 2 Left = 192 3 Top = 61 4 Width = 620 5 Height = 544 1 inherited frmBALocalDiagnoses: TfrmBALocalDiagnoses 2 Left = 272 3 Top = 142 6 4 Caption = 'Assign Diagnoses to Order(s)' 7 Color = clBtnFace 8 Font.Charset = DEFAULT_CHARSET 9 Font.Color = clWindowText 10 Font.Height = -11 11 Font.Name = 'MS Sans Serif' 12 Font.Style = [] 13 KeyPreview = True 5 ClientHeight = 517 6 ClientWidth = 612 14 7 OldCreateOrder = False 15 8 Position = poScreenCenter … … 17 10 OnActivate = FormActivate 18 11 OnCreate = FormCreate 19 On Destroy = FormDestroy12 OnKeyPress = FormKeyPress 20 13 OnShow = FormShow 14 ExplicitWidth = 620 15 ExplicitHeight = 551 21 16 PixelsPerInch = 96 22 17 TextHeight = 13 23 object pnlTop: TPanel 18 object pnlTop: TPanel [0] 24 19 Left = 0 25 20 Top = 0 … … 33 28 96) 34 29 object lbOrders: TListBox 35 Left = 730 Left = 8 36 31 Top = 25 37 Width = 59932 Width = 602 38 33 Height = 69 39 34 Anchors = [akLeft, akTop, akRight, akBottom] 40 35 IntegralHeight = True 41 36 ItemHeight = 13 42 TabOrder = 237 TabOrder = 1 43 38 OnMouseMove = lbOrdersMouseMove 44 39 end 45 object ORStaticText1: TORStaticText46 Left = 21640 object lblPatientName: TStaticText 41 Left = 8 47 42 Top = 8 48 Width = 16949 Height = 1450 AutoSize = False51 Caption = 'Selected Orders'52 TabOrder = 153 TabStop = True54 OnEnter = ORStaticText1Enter55 OnExit = ORStaticText1Exit56 end57 object lblPatientName: TStaticText58 Left = 1159 Top = 960 43 Width = 76 61 44 Height = 17 … … 68 51 ParentFont = False 69 52 TabOrder = 0 70 TabStop = True 71 end 72 end 73 object pnlMain: TPanel 53 end 54 end 55 object pnlMain: TPanel [1] 74 56 Left = 0 75 57 Top = 96 … … 78 60 Align = alClient 79 61 TabOrder = 1 62 object lblDiagSect: TLabel 63 Left = 9 64 Top = 1 65 Width = 241 66 Height = 17 67 AutoSize = False 68 Caption = 'Diagnosis Section' 69 end 70 object lblDiagCodes: TLabel 71 Left = 253 72 Top = 1 73 Width = 353 74 Height = 17 75 AutoSize = False 76 Caption = 'Diagnosis Codes' 77 end 80 78 object lbSections: TORListBox 81 79 Left = 9 82 Top = 1 680 Top = 14 83 81 Width = 238 84 Height = 201 85 Style = lbOwnerDrawVariable 82 Height = 199 86 83 IntegralHeight = True 87 84 ItemHeight = 13 … … 95 92 LongList = False 96 93 Pieces = '3' 97 CheckEntireLine = True98 94 end 99 95 object btnOther: TButton … … 107 103 end 108 104 object lbDiagnosis: TORListBox 109 Left = 2 48105 Left = 253 110 106 Top = 16 111 107 Width = 353 … … 122 118 Pieces = '1,2,3' 123 119 end 124 object ORStaticText2: TORStaticText 125 Left = 8 126 Top = 1 127 Width = 241 128 Height = 17 129 AutoSize = False 130 BevelKind = bkFlat 131 Caption = 'Diagnosis Section' 132 TabOrder = 0 133 TabStop = True 134 OnEnter = ORStaticText1Enter 135 OnExit = ORStaticText1Exit 136 end 137 object ORStaticText3: TORStaticText 138 Left = 248 139 Top = 1 140 Width = 353 141 Height = 17 142 AutoSize = False 143 BevelKind = bkFlat 144 Caption = 'Diagnosis Codes' 145 TabOrder = 3 146 TabStop = True 147 OnEnter = ORStaticText1Enter 148 OnExit = ORStaticText1Exit 149 end 150 end 151 object pnlBottom: TORAutoPanel 120 end 121 object pnlBottom: TORAutoPanel [2] 152 122 Left = 0 153 123 Top = 355 … … 159 129 612 160 130 162) 161 object lvDxGrid: TListView162 Left = 12163 Top = 19164 Width = 445165 Height = 85166 Color = clInfoBk167 Columns = <168 item169 Caption = 'Add To PL/PD'170 Width = 85171 end172 item173 Caption = 'Primary'174 MinWidth = 65175 Width = 65176 end177 item178 Caption = 'Diagnosis for Selected Orders'179 MinWidth = 275180 Width = 290181 end>182 Ctl3D = False183 HideSelection = False184 MultiSelect = True185 ReadOnly = True186 RowSelect = True187 TabOrder = 1188 ViewStyle = vsReport189 OnClick = lvDxGridClick190 OnKeyDown = lvDxGridKeyDown191 OnKeyUp = lvDxGridKeyUp192 end193 131 object cbAddToPDList: TCheckBox 194 132 Left = 459 … … 197 135 Height = 17 198 136 Caption = 'Add to Personal Dx List' 199 TabOrder = 3137 TabOrder = 2 200 138 OnClick = cbAddToPDListClick 201 139 end … … 207 145 Anchors = [akLeft, akTop, akRight, akBottom] 208 146 Caption = 'Add To Problem List' 209 TabOrder = 2147 TabOrder = 0 210 148 OnClick = cbAddToPLClick 211 149 end … … 216 154 Height = 19 217 155 Caption = '&Primary' 218 TabOrder = 4156 TabOrder = 3 219 157 OnClick = btnPrimaryClick 220 158 end … … 225 163 Height = 19 226 164 Caption = '&Remove' 227 TabOrder = 5165 TabOrder = 4 228 166 OnClick = btnRemoveClick 229 167 end … … 234 172 Height = 18 235 173 Caption = '&Select All' 236 TabOrder = 6174 TabOrder = 5 237 175 OnClick = btnSelectAllClick 238 176 end … … 243 181 Height = 21 244 182 Caption = '&OK' 245 TabOrder = 7183 TabOrder = 6 246 184 OnClick = buOKClick 247 185 end … … 252 190 Height = 21 253 191 Caption = '&Cancel' 254 TabOrder = 8192 TabOrder = 7 255 193 OnClick = buCancelClick 256 194 end 257 object ORStaticText4: TORStaticText 258 Left = 14 259 Top = 3 260 Width = 219 261 Height = 14 262 AutoSize = False 195 object gbProvDiag: TGroupBox 196 Left = 8 197 Top = 0 198 Width = 449 199 Height = 105 263 200 Caption = 'Provisional Diagnosis' 264 TabOrder = 0 265 TabStop = True 266 OnEnter = ORStaticText1Enter 267 OnExit = ORStaticText1Exit 268 end 201 TabOrder = 1 202 object lvDxGrid: TListView 203 Left = 2 204 Top = 15 205 Width = 445 206 Height = 88 207 Align = alClient 208 Color = clInfoBk 209 Columns = < 210 item 211 Caption = 'Add To PL/PD' 212 Width = 85 213 end 214 item 215 Caption = 'Primary' 216 MinWidth = 65 217 Width = 65 218 end 219 item 220 Caption = 'Diagnosis for Selected Orders' 221 MinWidth = 275 222 Width = 290 223 end> 224 Ctl3D = False 225 HideSelection = False 226 MultiSelect = True 227 ReadOnly = True 228 RowSelect = True 229 TabOrder = 0 230 ViewStyle = vsReport 231 OnClick = lvDxGridClick 232 OnKeyDown = lvDxGridKeyDown 233 OnKeyUp = lvDxGridKeyUp 234 end 235 end 236 end 237 inherited amgrMain: TVA508AccessibilityManager 238 Data = ( 239 ( 240 'Component = pnlTop' 241 'Status = stsDefault') 242 ( 243 'Component = lbOrders' 244 'Status = stsDefault') 245 ( 246 'Component = lblPatientName' 247 'Status = stsDefault') 248 ( 249 'Component = pnlMain' 250 'Status = stsDefault') 251 ( 252 'Component = lbSections' 253 'Label = lblDiagSect' 254 'Status = stsOK') 255 ( 256 'Component = btnOther' 257 'Status = stsDefault') 258 ( 259 'Component = lbDiagnosis' 260 'Label = lblDiagCodes' 261 'Status = stsOK') 262 ( 263 'Component = pnlBottom' 264 'Status = stsDefault') 265 ( 266 'Component = cbAddToPDList' 267 'Status = stsDefault') 268 ( 269 'Component = cbAddToPL' 270 'Status = stsDefault') 271 ( 272 'Component = btnPrimary' 273 'Status = stsDefault') 274 ( 275 'Component = btnRemove' 276 'Status = stsDefault') 277 ( 278 'Component = btnSelectAll' 279 'Status = stsDefault') 280 ( 281 'Component = buOK' 282 'Status = stsDefault') 283 ( 284 'Component = buCancel' 285 'Status = stsDefault') 286 ( 287 'Component = gbProvDiag' 288 'Status = stsDefault') 289 ( 290 'Component = lvDxGrid' 291 'Status = stsDefault') 292 ( 293 'Component = frmBALocalDiagnoses' 294 'Status = stsDefault')) 269 295 end 270 296 end -
cprs/trunk/CPRS-Chart/BA/fBALocalDiagnoses.pas
r456 r829 7 7 Dialogs, fAutoSz, StdCtrls, ORCtrls, ExtCtrls,fPCELex, uConsults, ORFn, 8 8 rPCE,DBCtrls, DB, DBClient, uPCE, fEncounterFrame, ComCtrls, Grids, UBAGlobals, 9 Buttons, Menus, UBACore, UCore ;9 Buttons, Menus, UBACore, UCore, VA508AccessibilityManager; 10 10 11 11 type … … 23 23 lbSections: TORListBox; 24 24 pnlBottom: TORAutoPanel; 25 lvDxGrid: TListView;26 25 cbAddToPDList: TCheckBox; 27 26 cbAddToPL: TCheckBox; … … 33 32 btnOther: TButton; 34 33 lbDiagnosis: TORListBox; 35 ORStaticText1: TORStaticText; 36 ORStaticText2: TORStaticText; 37 ORStaticText3: TORStaticText; 38 ORStaticText4: TORStaticText; 34 lblDiagSect: TLabel; 35 lblDiagCodes: TLabel; 39 36 lblPatientName: TStaticText; 37 gbProvDiag: TGroupBox; 38 lvDxGrid: TListView; 40 39 procedure buOKClick(Sender: TObject); 41 40 procedure buCancelClick(Sender: TObject); … … 65 64 procedure lbOrdersMouseMove(Sender: TObject; Shift: TShiftState; X, 66 65 Y: Integer); 67 procedure ORStaticText1Enter(Sender: TObject); 68 procedure ORStaticText1Exit(Sender: TObject); 69 procedure ORStaticText3Enter(Sender: TObject); 70 procedure ORStaticText3Exit(Sender: TObject); 66 procedure FormKeyPress(Sender: TObject; var Key: Char); 71 67 72 68 private … … 105 101 function PersonalListDxFound(pDxCode:string):boolean; 106 102 procedure ReSetCheckBoxStatus(pDxCode:String); 103 procedure DeleteSelectedDx; 104 function IsCtrlDown: boolean; 107 105 108 106 public … … 110 108 procedure Enter(theCaller: smallint; pOrderIDList: TStringList); 111 109 procedure LoadTempRec(var thisRec: TBADxRecord; thisOrderID: string); 110 112 111 end; 113 112 … … 137 136 138 137 uses rCore, rODMeds, rODBase, rOrders, fRptBox, fODMedOIFA, 139 uAccessibleStringGrid,ORNet, fProbs, fOrdersSign, UBAConst,140 UBAMessages, fReview, uSignItems, fODConsult, fFrame ;138 ORNet, fProbs, fOrdersSign, UBAConst, 139 UBAMessages, fReview, uSignItems, fODConsult, fFrame, VAUtils; 141 140 142 141 var … … 176 175 end; 177 176 177 procedure TfrmBALocalDiagnoses.FormKeyPress(Sender: TObject; var Key: Char); 178 begin 179 inherited; 180 if frmBALocalDiagnoses.IsCtrlDown then 181 begin 182 if ( Key = #10 ) then 183 frmBALocalDiagnoses.buOK.Click; 184 end; 185 186 end; 187 178 188 procedure TfrmBALocalDiagnoses.ListDiagnosisSections(Dest: TStrings); 179 189 { return section names in format: ListIndex^SectionName (sections begin with '^') } … … 195 205 ECFDiagnosis := TStringList.Create; 196 206 uProblems := TStringList.Create; 197 lblPatientName.Caption := Patient.Name ;207 lblPatientName.Caption := Patient.Name + ' Selected Orders'; 198 208 DeselectGridItems; 199 209 … … 501 511 begin 502 512 a := Piece(BADiagnosis[j], U, 2) + U + Piece(BADiagnosis[j], U, 1) + U + ' ' + Piece(BADiagnosis[j], U, 3) ; 503 if a = '' then showmessage('found nothing');513 if a = '' then ShowMsg('found nothing'); 504 514 lbDiagnosis.Items.Add(a); 505 515 end; … … 578 588 inherited; 579 589 deleteDX := True; 580 lvDxGrid.DeleteSelected;590 frmBALocalDiagnoses.DeleteSelectedDX; 581 591 ClearAndDisableCBoxes; 582 592 DeselectGridItems; 583 593 EnsurePrimary; 584 594 deleteDX := False; 585 595 // if all dx's removed, clear out displaycode 586 596 if lvDxGrid.items.Count = 0 then FODConsult.displayDXCode := ''; 587 597 end; … … 627 637 begin 628 638 DeselectGridItems; 629 ShowM essage(BA_MAX_DX); //** max 4 diagnoses per order639 ShowMsg(BA_MAX_DX); //** max 4 diagnoses per order 630 640 end; 631 641 end; … … 812 822 NewList.Clear; 813 823 // ** Add Diagnosis to Problem List if flagged with 'Add' in First Col. 814 with lvDxGrid do824 with frmBALocalDiagnoses.lvDxGrid do 815 825 begin 816 826 for i := 0 to Items.Count-1 do … … 861 871 i : integer; 862 872 tempStr1,tempStr2, tempStr3: string; 863 tempFactor1 ,x: string;873 tempFactor1: string; 864 874 tempStrList: TStringList; 865 875 begin … … 877 887 tempFactor1 := ''; 878 888 879 if lvDxGrid.Items.Count > 0 then880 with lvDxGrid do889 if frmBALocalDiagnoses.lvDxGrid.Items.Count > 0 then 890 with frmBALocalDiagnoses.lvDxGrid do 881 891 begin 882 892 for i := 0 to Items.Count-1 do 883 893 begin 884 x := lvDxGrid.Items[i].Subitems[0];885 x := lvDxGrid.Items[i].Subitems[1];886 x:= lvDxGrid.Items[i].Subitems[0] + '^' + lvDxGrid.Items[i].Subitems[1];894 // x := lvDxGrid.Items[i].Subitems[0]; 895 // x := lvDxGrid.Items[i].Subitems[1]; 896 // x:= lvDxGrid.Items[i].Subitems[0] + '^' + lvDxGrid.Items[i].Subitems[1]; 887 897 tempStrList.Add(lvDxGrid.Items[i].Subitems[0] + '^' + lvDxGrid.Items[i].Subitems[1]); 888 898 end; … … 1121 1131 on EListError do 1122 1132 begin 1123 {$ifdef debug}Show Message('EListError in frmBALocalDiagnoses.ListSelectedOrders()');{$endif}1133 {$ifdef debug}Show508Message('EListError in frmBALocalDiagnoses.ListSelectedOrders()');{$endif} 1124 1134 raise; 1125 1135 end; … … 1148 1158 on EListError do 1149 1159 begin 1150 {$ifdef debug}Show Message('EListError in frmBALocalDiagnoses.AddDiagnosisToPersonalDiagnosesListClick()');{$endif}1160 {$ifdef debug}Show508Message('EListError in frmBALocalDiagnoses.AddDiagnosisToPersonalDiagnosesListClick()');{$endif} 1151 1161 raise; 1152 1162 end; … … 1156 1166 if UBACore.rpcAddToPersonalDxList(User.DUZ,selectedList) then 1157 1167 begin 1158 ShowM essage(UBAMessages.BA_PERSONAL_LIST_UPDATED);1168 ShowMsg(UBAMessages.BA_PERSONAL_LIST_UPDATED); 1159 1169 LoadEncounterForm; 1160 1170 Refresh; … … 1179 1189 if UBACore.rpcAddToPersonalDxList(User.DUZ,selectedList) then 1180 1190 begin 1181 ShowM essage(UBAMessages.BA_PERSONAL_LIST_UPDATED);1191 ShowMsg(UBAMessages.BA_PERSONAL_LIST_UPDATED); 1182 1192 LoadEncounterForm; 1183 1193 Refresh; … … 1267 1277 (Control as TListBox).Canvas.TextOut(Rect.Left+2, Rect.Top+1, (Control as 1268 1278 TListBox).Items[Index]); {** display the text } 1279 1269 1280 end; 1270 1281 … … 1526 1537 end; 1527 1538 1528 procedure TfrmBALocalDiagnoses.ORStaticText1Enter(Sender: TObject);1529 begin1530 inherited;1531 (Sender as TORStaticText).Font.Style := [fsBold];1532 end;1533 1534 procedure TfrmBALocalDiagnoses.ORStaticText1Exit(Sender: TObject);1535 begin1536 inherited;1537 (Sender as TORStaticText).Font.Style := [];1538 end;1539 1540 procedure TfrmBALocalDiagnoses.ORStaticText3Enter(Sender: TObject);1541 begin1542 inherited;1543 (Sender as TORStaticText).Font.Style := [fsBold];1544 end;1545 1546 procedure TfrmBALocalDiagnoses.ORStaticText3Exit(Sender: TObject);1547 begin1548 inherited;1549 (Sender as TORStaticText).Font.Style := [];1550 end;1551 1552 1539 procedure TfrmBALocalDiagnoses.ResetCheckBoxStatus(pDxCode:string); 1553 1540 begin … … 1556 1543 if Not PersonalListDxFound(pDxCode) then 1557 1544 cbAddToPDList.Enabled := True; 1558 1559 1560 end; 1545 end; 1546 1547 procedure TfrmBALocalDiagnoses.DeleteSelectedDx; 1548 var 1549 I: Integer; 1550 begin 1551 frmBALocalDiagnoses.lvDxGrid.Items.BeginUpdate; 1552 try 1553 for I := frmBALocalDiagnoses.lvDxGrid.Items.Count - 1 downto 0 do 1554 if frmBALocalDiagnoses.lvDxGrid.Items[I].Selected then 1555 frmBALocalDiagnoses.lvdxGrid.Items[I].delete; 1556 finally 1557 lvDxGrid.Items.EndUpdate; 1558 end; 1559 1560 end; 1561 1562 function TfrmBALocalDiagnoses.IsCtrlDown: boolean; 1563 var 1564 State: TKeyboardState; 1565 begin { isCtrlDown } 1566 GetKeyboardState(State); 1567 Result := ((State[VK_CONTROL] and 128)<>0); // Ctrl-button 1568 end; { isCtrlDown } 1569 1570 1561 1571 1562 1572 -
cprs/trunk/CPRS-Chart/BA/fBAOptionsDiagnoses.dfm
r456 r829 2 2 Left = 231 3 3 Top = 183 4 Width = 7475 Height = 5576 4 Caption = 'Personal Diagnoses List' 5 ClientHeight = 530 6 ClientWidth = 739 7 7 Constraints.MinHeight = 100 8 8 Constraints.MinWidth = 200 … … 10 10 OnCreate = FormCreate 11 11 OnShow = FormShow 12 ExplicitWidth = 747 13 ExplicitHeight = 557 12 14 PixelsPerInch = 96 13 15 TextHeight = 13 14 object Panel1: TPanel 16 object Panel1: TPanel [0] 15 17 Left = 0 16 18 Top = 0 … … 34 36 Width = -3 35 37 Height = 463 36 Cursor = crHSplit37 38 end 38 39 object Splitter2: TSplitter … … 41 42 Width = 7 42 43 Height = 463 43 Cursor = crHSplit44 44 end 45 45 object Splitter3: TSplitter … … 48 48 Width = 1 49 49 Height = 463 50 Cursor = crHSplit51 50 end 52 51 object Splitter5: TSplitter … … 55 54 Width = 2 56 55 Height = 463 57 Cursor = crHSplit58 56 end 59 57 object pnlBottom: TPanel … … 142 140 Width = 168 143 141 Height = 17 144 DragReorder = False145 142 Sections = < 146 143 item … … 190 187 Width = 201 191 188 Height = 17 192 DragReorder = False193 189 Sections = < 194 190 item … … 233 229 Width = 257 234 230 Height = 17 235 DragReorder = False236 231 Sections = < 237 232 item … … 310 305 end 311 306 end 307 inherited amgrMain: TVA508AccessibilityManager 308 Data = ( 309 ( 310 'Component = Panel1' 311 'Status = stsDefault') 312 ( 313 'Component = Panel2' 314 'Status = stsDefault') 315 ( 316 'Component = pnlBottom' 317 'Status = stsDefault') 318 ( 319 'Component = btnOther' 320 'Status = stsDefault') 321 ( 322 'Component = btnOK' 323 'Status = stsDefault') 324 ( 325 'Component = Button1' 326 'Status = stsDefault') 327 ( 328 'Component = Panel3' 329 'Status = stsDefault') 330 ( 331 'Component = lbSections' 332 'Status = stsDefault') 333 ( 334 'Component = hdrCntlDxSections' 335 'Status = stsDefault') 336 ( 337 'Component = Panel4' 338 'Status = stsDefault') 339 ( 340 'Component = lbDiagnosis' 341 'Status = stsDefault') 342 ( 343 'Component = hdrCntlDxAdd' 344 'Status = stsDefault') 345 ( 346 'Component = Panel5' 347 'Status = stsDefault') 348 ( 349 'Component = lbPersonalDx' 350 'Status = stsDefault') 351 ( 352 'Component = hdrCntlDx' 353 'Status = stsDefault') 354 ( 355 'Component = pnlTop' 356 'Status = stsDefault') 357 ( 358 'Component = StaticText3' 359 'Status = stsDefault') 360 ( 361 'Component = Panel7' 362 'Status = stsDefault') 363 ( 364 'Component = btnAdd' 365 'Status = stsDefault') 366 ( 367 'Component = btnDelete' 368 'Status = stsDefault') 369 ( 370 'Component = frmBAOptionsDiagnoses' 371 'Status = stsDefault')) 372 end 312 373 end -
cprs/trunk/CPRS-Chart/BA/fBAOptionsDiagnoses.pas
r456 r829 7 7 Dialogs, fAutoSz, StdCtrls, ORCtrls, ExtCtrls, ORFn, UCore, RCore, ORNet, 8 8 UBAGlobals, fPCELex, rPCE, Buttons, UBACore, UBAMessages, UBAConst, 9 ComCtrls ;9 ComCtrls, VA508AccessibilityManager; 10 10 11 11 type
Note:
See TracChangeset
for help on using the changeset viewer.