Changeset 1679 for cprs/trunk/CPRS-Chart/fProbEdt.pas
- Timestamp:
- May 7, 2015, 12:34:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/fProbEdt.pas
r830 r1679 100 100 procedure GetNewComments(Reason:char); 101 101 function OkToQuit:boolean; 102 procedure ShowServiceCombo; 103 procedure ShowClinicLocationCombo; 102 104 protected 103 105 procedure CreateParams(var Params: TCreateParams); override; … … 150 152 begin 151 153 frmProblems.lblProbList.caption := frmProblems.pnlRight.Caption ; 154 frmProblems.wgProbData.TabStop := True; //CQ #15531 part (c) [CPRS v28.1] {TC}. 155 //correct JAWS from reading the 'Edit Problem' caption of the wgProbData captionlistbx. 156 if AnsiCompareText(frmProblems.wgProbData.Caption, 'Edit Problem')=0 then 157 frmProblems.wgProbData.Caption := frmProblems.lblProbList.caption; 152 158 close; 153 159 end … … 163 169 begin 164 170 frmProblems.lblProbList.caption := frmProblems.pnlRight.Caption ; 171 frmProblems.wgProbData.TabStop := True; //CQ #15531 part (c) [CPRS v28.1] {TC}. 172 //correct JAWS from reading the 'Edit Problem' caption of the wgProbData captionlistbx. 173 if AnsiCompareText(frmProblems.wgProbData.Caption, 'Edit Problem')=0 then 174 frmProblems.wgProbData.Caption := frmProblems.lblProbList.caption; 165 175 FCanQuit := True; 166 176 close; … … 325 335 cbProv.InitLongList(ProbRec.RespProvider.extern) ; 326 336 if (ProbRec.RespProvider.intern <> '') and (StrToInt64Def(ProbRec.RespProvider.intern, 0) > 0) then 327 cbProv.SelectByIEN(StrToInt64(ProbRec.RespProvider.intern)) 337 cbProv.SelectByIEN(StrToInt64(ProbRec.RespProvider.intern)); 328 338 329 339 if UpperCase(Reason) = 'A' then … … 331 341 if Encounter.Inpatient then 332 342 begin 333 cbLoc.visible:=false; 334 cbServ.Visible:=true; 335 lblLoc.caption:='Service:'; 343 ShowServiceCombo(); 336 344 cbServ.InitLongList(''); 337 345 end 338 346 else 339 347 begin 340 cbLoc.visible:=true; 341 cbServ.Visible:=false; 342 lblLoc.caption:='Clinic:'; 343 cbLoc.InitLongList(Encounter.LocationName) ; 348 ShowClinicLocationCombo(); 349 cbLoc.InitLongList(Encounter.LocationName); 344 350 cbLoc.SelectByIEN(Encounter.Location); 345 351 end; … … 349 355 if (ProbRec.Service.DHCPField = '^') and (ProbRec.Clinic.DHCPField <> '^') then 350 356 begin 351 cbLoc.visible:=true; 352 cbServ.Visible:=false; 353 lblLoc.caption:='Clinic:'; 354 cbLoc.InitLongList(ProbRec.Clinic.Extern) ; 355 cbLoc.SelectByID(ProbRec.Clinic.Intern) ; 357 ShowClinicLocationCombo(); 358 cbLoc.InitLongList(ProbRec.Clinic.Extern); 359 cbLoc.SelectByID(ProbRec.Clinic.Intern); 356 360 end 357 361 else if (ProbRec.Clinic.DHCPField = '^') and (ProbRec.Service.DHCPField <> '^') then 358 362 begin 359 cbLoc.visible:=false; 360 cbServ.Visible:=true; 361 lblLoc.caption:='Service:'; 362 cbServ.InitLongList(ProbRec.Service.Extern) ; 363 cbServ.SelectByID(ProbRec.Service.Intern) ; 363 ShowServiceCombo(); 364 cbServ.InitLongList(ProbRec.Service.Extern); 365 cbServ.SelectByID(ProbRec.Service.Intern); 364 366 end 365 367 else … … 367 369 if Encounter.Inpatient then 368 370 begin 369 cbLoc.visible:=false; 370 cbServ.Visible:=true; 371 lblLoc.caption:='Service:'; 371 ShowServiceCombo(); 372 372 cbServ.InitLongList(''); 373 373 end 374 374 else 375 375 begin 376 cbLoc.visible:=true; 377 cbServ.Visible:=false; 378 lblLoc.caption:='Clinic:'; 379 cbLoc.InitLongList('') ; 376 ShowClinicLocationCombo(); 377 cbLoc.InitLongList(''); 380 378 end; 381 379 end; … … 383 381 cbLoc.Caption := lblLoc.Caption; 384 382 385 if Pos(Reason,'E,C') > 0 then ShowComments;383 ShowComments; 386 384 if ProbRec.CmtIsXHTML then 387 385 begin … … 465 463 procedure TfrmdlgProb.bbFileClick(Sender: TObject); 466 464 const 467 TX_INACTIVE_ CODE = 'This problem references an inactive ICDcode.' + #13#10 +465 TX_INACTIVE_ICODE = 'This problem references an inactive ICD-9-CM code.' + #13#10 + 468 466 'The code must be updated using the ''Change''' + #13#10 + 469 467 'button before it can be saved'; 470 TC_INACTIVE_ CODE = 'InactiveCode';468 TC_INACTIVE_ICODE = 'Inactive ICD-9-CM Code'; 471 469 var 472 470 AList: TstringList; … … 474 472 i: integer; 475 473 begin 474 frmProblems.wgProbData.TabStop := True; //CQ #15531 part (c) [CPRS v28.1] {TC}. 476 475 if (Reason <> 'R') and (Reason <> 'r') then 477 476 if (rgStatus.itemindex=-1) or (cbProv.itemindex=-1) then … … 483 482 if not IsActiveICDCode(ProbRec.Diagnosis.extern) then 484 483 begin 485 InfoBox(TX_INACTIVE_ CODE, TC_INACTIVE_CODE, MB_ICONWARNING or MB_OK);484 InfoBox(TX_INACTIVE_ICODE, TC_INACTIVE_ICODE, MB_ICONWARNING or MB_OK); 486 485 exit; 487 486 end; … … 719 718 alist.add('NEW' + v + '1.12' + v + '0' + u + 'NO'); {RAD} 720 719 alist.add('NEW' + v + '1.13' + v + '0' + u + 'NO'); {ENV} 721 alist.add('NEW' + v + '1.14' + v + '0' + u + 'NO'); {SHD} 722 alist.add('NEW' + v + '1.15' + v + ''); 720 alist.add('NEW' + v + '1.14' + v + ''); {Priority: 'A', 'C', or ''} 721 alist.add('NEW' + v + '1.15' + v + '0' + u + 'NO'); {HNC} 722 alist.add('NEW' + v + '1.16' + v + '0' + u + 'NO'); {MST} 723 alist.add('NEW' + v + '1.17' + v + '0' + u + 'NO'); {CV} 724 alist.add('NEW' + v + '1.18' + v + '0' + u + 'NO'); {SHAD} 723 725 end; 724 726 … … 731 733 procedure Msg(msg: string); 732 734 begin 733 InfoBox('Dates must be in format m/d/y or m/d or y, or T+d or T-d' + 735 // CQ #16123 - Modified error text to clarify proper date formats - JCS 736 InfoBox('Dates must be in format m/d/yy, m/d/yyyy, m/d, m/yyyy, yyyy, T+d or T-d' + 734 737 #13#10 + msg + ' is formatted improperly.' + 735 738 #13#10 + ' Please check the other dates as well.', … … 904 907 end; 905 908 909 procedure TfrmdlgProb.ShowClinicLocationCombo; 910 begin 911 cbLoc.visible := true; 912 cbServ.Visible := false; 913 lblLoc.caption := 'Clinic:'; 914 end; 915 916 procedure TfrmdlgProb.ShowServiceCombo; 917 begin 918 cbLoc.visible := false; 919 cbServ.Visible := true; 920 lblLoc.caption := 'Service:'; 921 end; 922 906 923 { base form procedures (shared by all ordering dialogs) } 907 924 … … 966 983 if PLProblem='' then exit ; 967 984 newprob := PLProblem ; 985 968 986 if frmProblems.HighlightDuplicate(NewProb, Piece(newprob, U, 2) + #13#10#13#10 + 969 987 'This problem would be a duplicate.'+#13#10 + … … 975 993 {ien^.01^icd^icdifn - see SetDefaultProblem} 976 994 {Set new problem properties} 977 ProbRec.Problem.DHCPtoKeyVal(Piece(NewProb,u,1) + u + Piece(NewProb,u,2)) ; {1.01}978 ProbRec.Diagnosis.DHCPtoKeyVal(Piece(NewProb,u,4) + u + Piece(NewProb,u,3)) ; {.01}979 ProbRec.Narrative.DHCPtoKeyVal(u + Piece(NewProb,u,2)); {.05}995 ProbRec.Problem.DHCPtoKeyVal(Piece(NewProb,u,1) + u + Piece(NewProb,u,2)) ; {1.01} 996 ProbRec.Diagnosis.DHCPtoKeyVal(Piece(NewProb,u,4) + u + Piece(NewProb,u,3)) ; {.01} 997 ProbRec.Narrative.DHCPtoKeyVal(u + Piece(NewProb,u,2)); {.05} 980 998 981 999 {mark it as changed}
Note:
See TracChangeset
for help on using the changeset viewer.