Changeset 829 for cprs/trunk/CPRS-Chart/Encounter
- Timestamp:
- Jul 7, 2010, 4:31:10 PM (14 years ago)
- Location:
- cprs/trunk/CPRS-Chart/Encounter
- Files:
-
- 42 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/Encounter/fDiagnoses.dfm
r456 r829 5 5 PixelsPerInch = 96 6 6 TextHeight = 13 7 object lblAdd2PL: TLabel [0]8 Left = 5559 Top = 25510 Width = 5311 Height = 2612 Caption = 'Add to Problem list'13 WordWrap = True14 end15 7 inherited lblSection: TLabel 16 8 Width = 89 17 9 Caption = 'Diagnoses Section' 10 ExplicitWidth = 89 18 11 end 19 12 inherited btnOK: TBitBtn … … 26 19 Width = 523 27 20 TabOrder = 1 21 ExplicitWidth = 523 28 22 inherited lbGrid: TORListBox 29 23 Tag = 20 30 24 Width = 523 31 25 Pieces = '1,2,3' 26 ExplicitWidth = 523 32 27 end 33 28 inherited hcGrid: THeaderControl … … 52 47 Width = 110 53 48 end> 49 ExplicitWidth = 523 54 50 end 55 51 end 56 52 inherited edtComment: TCaptionEdit 57 53 TabOrder = 3 54 end 55 object cmdDiagPrimary: TButton [8] 56 Left = 536 57 Top = 306 58 Width = 75 59 Height = 21 60 Caption = 'Primary' 61 Enabled = False 62 TabOrder = 5 63 OnClick = cmdDiagPrimaryClick 64 end 65 object ckbDiagProb: TCheckBox [9] 66 Left = 535 67 Top = 258 68 Width = 76 69 Height = 38 70 Caption = 'Add to Problem list' 71 TabOrder = 4 72 WordWrap = True 73 OnClick = ckbDiagProbClicked 58 74 end 59 75 inherited btnRemove: TButton … … 64 80 TabOrder = 2 65 81 TabStop = True 82 ExplicitLeft = 454 66 83 end 67 84 inherited pnlMain: TPanel … … 72 89 IntegralHeight = True 73 90 Pieces = '2,3,4,5' 91 ExplicitHeight = 196 74 92 end 75 93 inherited pnlLeft: TPanel … … 85 103 end 86 104 end 87 object cmdDiagPrimary: TButton 88 Left = 536 89 Top = 306 90 Width = 75 91 Height = 21 92 Caption = 'Primary' 93 Enabled = False 94 TabOrder = 5 95 OnClick = cmdDiagPrimaryClick 96 end 97 object ckbDiagProb: TCheckBox 98 Left = 536 99 Top = 262 100 Width = 13 101 Height = 13 102 Caption = 'Add to Problem list' 103 TabOrder = 4 104 OnClick = ckbDiagProbClicked 105 inherited amgrMain: TVA508AccessibilityManager 106 Data = ( 107 ( 108 'Component = cmdDiagPrimary' 109 'Status = stsDefault') 110 ( 111 'Component = ckbDiagProb' 112 'Status = stsDefault') 113 ( 114 'Component = edtComment' 115 'Label = lblComment' 116 'Status = stsOK') 117 ( 118 'Component = btnRemove' 119 'Status = stsDefault') 120 ( 121 'Component = btnSelectAll' 122 'Status = stsDefault') 123 ( 124 'Component = pnlMain' 125 'Status = stsDefault') 126 ( 127 'Component = lbxSection' 128 'Label = lblList' 129 'Status = stsOK') 130 ( 131 'Component = pnlLeft' 132 'Status = stsDefault') 133 ( 134 'Component = lbSection' 135 'Label = lblSection' 136 'Status = stsOK') 137 ( 138 'Component = btnOther' 139 'Status = stsDefault') 140 ( 141 'Component = pnlGrid' 142 'Status = stsDefault') 143 ( 144 'Component = lbGrid' 145 'Status = stsDefault') 146 ( 147 'Component = hcGrid' 148 'Status = stsDefault') 149 ( 150 'Component = btnOK' 151 'Status = stsDefault') 152 ( 153 'Component = btnCancel' 154 'Status = stsDefault') 155 ( 156 'Component = frmDiagnoses' 157 'Status = stsDefault')) 105 158 end 106 159 end -
cprs/trunk/CPRS-Chart/Encounter/fDiagnoses.pas
r456 r829 6 6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 7 7 fPCEBase, StdCtrls, CheckLst, ORCtrls, ORNet, ExtCtrls, Buttons, uPCE, rPCE, ORFn, 8 ComCtrls, fPCEBaseMain, UBAGlobals, UBAConst, UCore ;8 ComCtrls, fPCEBaseMain, UBAGlobals, UBAConst, UCore, VA508AccessibilityManager; 9 9 10 10 type … … 12 12 cmdDiagPrimary: TButton; 13 13 ckbDiagProb: TCheckBox; 14 lblAdd2PL: TLabel;15 14 procedure cmdDiagPrimaryClick(Sender: TObject); 16 15 procedure ckbDiagProbClicked(Sender: TObject); … … 49 48 50 49 uses 51 fEncounterFrame, uConst, UBACore ;50 fEncounterFrame, uConst, UBACore, VA508AccessibilityRouter; 52 51 53 52 procedure TfrmDiagnoses.EnsurePrimaryDiag; … … 153 152 PLItemCount := PLItemCount + 1; 154 153 OK := OK and (PLItemCount < lbGrid.SelCount); 155 lblAdd2PL.Enabled := OK;156 154 ckbDiagProb.Enabled := OK; 157 155 if(OK) then … … 182 180 begin 183 181 inherited; 182 if lbxSection.width = 0 then Exit; 184 183 FSectionTabs[0] := -(lbxSection.width - LBCheckWidthSpace - (8*MainFontWidth) - ScrollBarWidth); 185 184 FSectionTabs[1] := -FSectionTabs[0]+2; … … 257 256 end; 258 257 258 initialization 259 SpecifyFormIsNotADialog(TfrmDiagnoses); 260 259 261 end. -
cprs/trunk/CPRS-Chart/Encounter/fEncVitals.dfm
r456 r829 3 3 Top = 210 4 4 Caption = 'Vitals' 5 KeyPreview = True6 5 OnActivate = FormActivate 7 On Destroy = FormDestroy8 OnKeyDown = FormKeyDown9 OnResize = FormResize6 OnShow = FormShow 7 ExplicitWidth = 632 8 ExplicitHeight = 427 10 9 PixelsPerInch = 96 11 10 TextHeight = 13 … … 15 14 Width = 624 16 15 Height = 368 17 Hint = 'To sort, click on column headers|'18 16 Align = alClient 19 17 Columns = <> … … 35 33 Align = alBottom 36 34 BevelOuter = bvNone 37 TabOrder = 5 35 TabOrder = 4 36 object btnEnterVitals: TButton 37 Left = 8 38 Top = 6 39 Width = 75 40 Height = 21 41 Caption = 'Enter Vitals' 42 TabOrder = 0 43 OnClick = btnEnterVitalsClick 44 end 45 object btnOKkludge: TButton 46 Left = 434 47 Top = 6 48 Width = 75 49 Height = 21 50 Caption = 'OK' 51 TabOrder = 1 52 OnClick = btnOKClick 53 end 54 object btnCancelkludge: TButton 55 Left = 522 56 Top = 6 57 Width = 75 58 Height = 21 59 Caption = 'Cancel' 60 TabOrder = 2 61 OnClick = btnCancelClick 62 end 38 63 end 39 64 inherited btnOK: TBitBtn 40 Left = 444 41 Top = 377 42 TabOrder = 3 65 Left = 208 66 Top = 374 67 Caption = 'OK No Show' 68 TabOrder = 2 69 Visible = False 70 ExplicitLeft = 208 71 ExplicitTop = 374 43 72 end 44 73 inherited btnCancel: TBitBtn 45 Left = 524 46 Top = 377 47 TabOrder = 4 74 Left = 289 75 Top = 374 76 Caption = 'Cancel No Show' 77 TabOrder = 3 78 Visible = False 79 ExplicitLeft = 289 80 ExplicitTop = 374 48 81 end 49 object pnlmain: TPanel 82 object pnlmain: TPanel [4] 50 83 Left = 28 51 84 Top = 24 … … 443 476 end 444 477 end 445 object btnEnterVitals: TButton 446 Left = 8 447 Top = 377 448 Width = 75 449 Height = 21 450 Caption = 'Enter Vitals' 451 TabOrder = 2 452 OnClick = btnEnterVitalsClick 478 inherited amgrMain: TVA508AccessibilityManager 479 Data = ( 480 ( 481 'Component = lvVitals' 482 'Status = stsDefault') 483 ( 484 'Component = pnlBottom' 485 'Status = stsDefault') 486 ( 487 'Component = btnEnterVitals' 488 'Status = stsDefault') 489 ( 490 'Component = btnOKkludge' 491 'Status = stsDefault') 492 ( 493 'Component = btnCancelkludge' 494 'Status = stsDefault') 495 ( 496 'Component = pnlmain' 497 'Status = stsDefault') 498 ( 499 'Component = lblDate' 500 'Status = stsDefault') 501 ( 502 'Component = lblDateBP' 503 'Status = stsDefault') 504 ( 505 'Component = lblDateTemp' 506 'Status = stsDefault') 507 ( 508 'Component = lblDateResp' 509 'Status = stsDefault') 510 ( 511 'Component = lblDatePulse' 512 'Status = stsDefault') 513 ( 514 'Component = lblDateHeight' 515 'Status = stsDefault') 516 ( 517 'Component = lblDateWeight' 518 'Status = stsDefault') 519 ( 520 'Component = lblLstMeas' 521 'Status = stsDefault') 522 ( 523 'Component = lbllastBP' 524 'Status = stsDefault') 525 ( 526 'Component = lblLastTemp' 527 'Status = stsDefault') 528 ( 529 'Component = lblLastResp' 530 'Status = stsDefault') 531 ( 532 'Component = lblLastPulse' 533 'Status = stsDefault') 534 ( 535 'Component = lblLastHeight' 536 'Status = stsDefault') 537 ( 538 'Component = lblLastWeight' 539 'Status = stsDefault') 540 ( 541 'Component = lblVital' 542 'Status = stsDefault') 543 ( 544 'Component = lblVitBP' 545 'Status = stsDefault') 546 ( 547 'Component = lnlVitTemp' 548 'Status = stsDefault') 549 ( 550 'Component = lblVitResp' 551 'Status = stsDefault') 552 ( 553 'Component = lblVitPulse' 554 'Status = stsDefault') 555 ( 556 'Component = lblVitHeight' 557 'Status = stsDefault') 558 ( 559 'Component = lblVitWeight' 560 'Status = stsDefault') 561 ( 562 'Component = lblVitPain' 563 'Status = stsDefault') 564 ( 565 'Component = lblLastPain' 566 'Status = stsDefault') 567 ( 568 'Component = lblDatePain' 569 'Status = stsDefault') 570 ( 571 'Component = txtMeasBP' 572 'Status = stsDefault') 573 ( 574 'Component = cboTemp' 575 'Status = stsDefault') 576 ( 577 'Component = txtMeasTemp' 578 'Status = stsDefault') 579 ( 580 'Component = txtMeasResp' 581 'Status = stsDefault') 582 ( 583 'Component = cboHeight' 584 'Status = stsDefault') 585 ( 586 'Component = txtMeasWt' 587 'Status = stsDefault') 588 ( 589 'Component = cboWeight' 590 'Status = stsDefault') 591 ( 592 'Component = txtMeasDate' 593 'Status = stsDefault') 594 ( 595 'Component = cboPain' 596 'Status = stsDefault') 597 ( 598 'Component = txtMeasPulse' 599 'Status = stsDefault') 600 ( 601 'Component = txtMeasHt' 602 'Status = stsDefault') 603 ( 604 'Component = btnOK' 605 'Status = stsDefault') 606 ( 607 'Component = btnCancel' 608 'Status = stsDefault') 609 ( 610 'Component = frmEncVitals' 611 'Status = stsDefault')) 453 612 end 454 613 end -
cprs/trunk/CPRS-Chart/Encounter/fEncVitals.pas
r456 r829 6 6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 7 7 fPCEBase, ORDtTm, StdCtrls, ORCtrls, ExtCtrls, Buttons, fAutoSz, ORFn, 8 rvitals, ComCtrls, ORNet, uVitals 9 , TRPCB // Vitals Lite 2004-05-21 =========================================== 10 ; 11 {== Vitals Lite 2004-05-21 ===================================================} 12 type 13 TGMV_GetInputPanel = function( 14 var anApp: TApplication; 15 aB: TRPCBroker; 16 aP, // Patient DFN 17 aL, // Hospitals IEN 18 aSig, // Application signature 19 aTemplate // Vitals Input template 20 : String; 21 aNow // Input Date/Time 22 :TDateTime):TCustomForm; 23 {== Vitals Lite 2004-05-21 ===================================================} 8 rvitals, ComCtrls, ORNet, uVitals, VAUtils, TRPCB, VA508AccessibilityManager; 24 9 25 10 type … … 63 48 txtMeasHt: TCaptionEdit; 64 49 pnlBottom: TPanel; 50 lvVitals: TCaptionListView; 65 51 btnEnterVitals: TButton; 66 lvVitals: TCaptionListView; 52 btnOKkludge: TButton; 53 btnCancelkludge: TButton; 67 54 procedure SetVitPointer(Sender: TObject); 68 55 procedure txtMeasBPExit(Sender: TObject); … … 87 74 procedure txtMeasHtExit(Sender: TObject); 88 75 procedure txtMeasWtExit(Sender: TObject); 89 procedure FormKeyDown(Sender: TObject; var Key: Word;90 Shift: TShiftState);91 76 procedure btnEnterVitalsClick(Sender: TObject); //vitals lite 92 77 private … … 120 105 fEncounterFrame, uInit 121 106 // , fGMV_InputTemp // Vitals Lite 2004-05-21 122 ;107 , VA508AccessibilityRouter; 123 108 124 109 const … … 418 403 419 404 {== Vitals Lite 2004-05-21 ===================================================} 420 FreeLibrary(VitalsDLLHandle); 405 if VitalsDLLHandle <> 0 then 406 begin 407 FreeLibrary(VitalsDLLHandle); 408 VitalsDLLHandle := 0; 409 end; 421 410 {== Vitals Lite 2004-05-21 ===================================================} 422 411 inherited; … … 448 437 GMV_LibName :='GMV_VitalsViewEnter.dll'; 449 438 GMV_LibName := GetProgramFilesPath + SHARE_DIR + GMV_LibName; 450 VitalsDLLHandle := LoadLibrary(PChar(GMV_LibName)); 439 if VitalsDLLHandle = 0 then 440 VitalsDLLHandle := LoadLibrary(PChar(GMV_LibName)); 451 441 if VitalsDLLHandle = 0 then // No Handle found 452 442 MessageDLG('Can''t find library "'+GMV_LibName+'".',mtError,[mbok],0) … … 555 545 txtMeasWt.text := ''; 556 546 cboPain.text := ''; 557 end;558 559 procedure TfrmEncVitals.FormKeyDown(Sender: TObject; var Key: Word;560 Shift: TShiftState);561 begin562 {capture return key press if on the vital screen}563 begin564 inherited;565 if (ActiveCtrl.tag in VitalDateTagSet)then566 begin567 if Key = VK_RETURN then568 begin569 Key := 0;570 if (ActiveCtrl.Tag = TAG_VITPAIN) then571 ChangeFocus(btnOK)572 else573 begin574 GetParentForm(Self).Perform(WM_NEXTDLGCTL,0,0);575 SetVitPointer(Sender);576 end;577 end;578 end;579 end;580 547 end; 581 548 … … 636 603 end 637 604 else 638 MessageDLG(' Can notfind function "'+GMV_FName+'".',mtError,[mbok],0);605 MessageDLG('Unable to find function "'+GMV_FName+'".',mtError,[mbok],0); 639 606 @VLPtVitals := nil; 640 607 LoadVitalsList; … … 652 619 if assigned(VLPtVitals) then 653 620 begin 654 frmFrame.VitalsDLLActive := True; // need this flag for CCOW (RV)621 // frmFrame.DLLActive := True; // need this flag for CCOW (RV) 655 622 VitalsList := VLPtVitals(RPCBrokerV,Patient.DFN,U,false); 656 623 if assigned(VitalsList) then … … 660 627 MessageDLG('Can''t find function "'+GMV_FName+'".',mtError,[mbok],0); 661 628 @VLPtVitals := nil; 662 frmFrame.VitalsDLLActive := False; // need this flag for CCOW (RV)629 // frmFrame.DLLActive := False; // need this flag for CCOW (RV) 663 630 end; 664 631 //End Vitals Lite 665 632 633 initialization 634 SpecifyFormIsNotADialog(TfrmEncVitals); 635 666 636 end. -
cprs/trunk/CPRS-Chart/Encounter/fEncounterFrame.dfm
r456 r829 1 objectfrmEncounterFrame: TfrmEncounterFrame1 inherited frmEncounterFrame: TfrmEncounterFrame 2 2 Left = 290 3 3 Top = 108 4 Width = 6405 Height = 4516 4 Caption = 'Encounter Frame' 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 = [] 5 ClientHeight = 424 6 ClientWidth = 632 13 7 FormStyle = fsMDIForm 14 KeyPreview = True15 8 OldCreateOrder = True 16 9 Position = poScreenCenter … … 20 13 OnCreate = FormCreate 21 14 OnDestroy = FormDestroy 22 OnKeyDown = FormKeyDown23 15 OnResize = FormResize 16 OnShow = FormShow 17 ExplicitLeft = 290 18 ExplicitTop = 108 19 ExplicitWidth = 640 20 ExplicitHeight = 458 24 21 PixelsPerInch = 96 25 22 TextHeight = 13 26 object Bevel1: TBevel 23 object Bevel1: TBevel [0] 27 24 Left = 0 28 25 Top = 0 … … 31 28 Align = alTop 32 29 end 33 object StatusBar1: TStatusBar 30 object StatusBar1: TStatusBar [1] 34 31 Left = 0 35 Top = 4 1732 Top = 424 36 33 Width = 632 37 34 Height = 0 38 35 Panels = <> 39 SimplePanel = False40 36 end 41 object pnlPage: TPanel 37 object pnlPage: TPanel [2] 42 38 Left = 0 43 39 Top = 24 44 40 Width = 632 45 Height = 39341 Height = 400 46 42 Align = alClient 47 43 BevelOuter = bvNone … … 54 50 TabOrder = 1 55 51 end 56 object TabControl: TTabControl 52 object TabControl: TTabControl [3] 57 53 Left = 0 58 54 Top = 2 … … 63 59 OnChange = TabControlChange 64 60 OnChanging = TabControlChanging 65 OnExit = TabControlExit 61 OnEnter = TabControlEnter 62 end 63 inherited amgrMain: TVA508AccessibilityManager 64 Data = ( 65 ( 66 'Component = StatusBar1' 67 'Status = stsDefault') 68 ( 69 'Component = pnlPage' 70 'Status = stsDefault') 71 ( 72 'Component = TabControl' 73 'Status = stsDefault') 74 ( 75 'Component = frmEncounterFrame' 76 'Status = stsDefault')) 66 77 end 67 78 end -
cprs/trunk/CPRS-Chart/Encounter/fEncounterFrame.pas
r456 r829 7 7 Tabs, ComCtrls, ExtCtrls, Menus, StdCtrls, Buttons, fPCEBase, 8 8 fVisitType, fDiagnoses, fProcedure, fImmunization, fSkinTest, fPatientEd, 9 fHealthFactor, fExam, uPCE, rPCE, rTIU, ORCtrls, ORFn, fEncVitals,rvitals; 9 fHealthFactor, fExam, uPCE, rPCE, rTIU, ORCtrls, ORFn, fEncVitals, rvitals, fBase508Form, 10 VA508AccessibilityManager; 10 11 11 12 const … … 56 57 57 58 type 58 TfrmEncounterFrame = class(T Form)59 TfrmEncounterFrame = class(TfrmBase508Form) 59 60 StatusBar1: TStatusBar; 60 61 pnlPage: TPanel; … … 72 73 procedure TabControlChanging(Sender: TObject; 73 74 var AllowChange: Boolean); 74 procedure TabControlExit(Sender: TObject);75 75 procedure FormKeyDown(Sender: TObject; var Key: Word; 76 76 Shift: TShiftState); … … 78 78 procedure FormCanResize(Sender: TObject; var NewWidth, 79 79 NewHeight: Integer; var Resize: Boolean); 80 procedure FormShow(Sender: TObject); 81 procedure TabControlEnter(Sender: TObject); 80 82 81 83 private … … 88 90 //in the frame. They must be available at compile time 89 91 FLastPage: TfrmPCEBase; 92 FGiveMultiTabMessage: boolean; 90 93 procedure CreateChildForms(Sender: TObject; Location: integer); 91 94 procedure SynchPCEData; … … 124 127 uCore, 125 128 fGAF, uConst, 126 rCore, fPCEProvider, rMisc ;129 rCore, fPCEProvider, rMisc, VA508AccessibilityRouter, VAUtils; 127 130 128 131 {$R *.DFM} … … 549 552 FAbort := TRUE; 550 553 SetFormFonts; 554 FGiveMultiTabMessage := ScreenReaderSystemActive; 551 555 end; 552 556 … … 582 586 if (Storemessage <> 'True') then 583 587 begin 584 showmessage(storemessage);588 ShowMsg(storemessage); 585 589 // exit; 586 590 end; … … 680 684 if (sender as tTabControl).tabindex = -1 then exit; 681 685 686 if TabControl.CanFocus and Assigned(FLastPage) and not TabControl.Focused then 687 TabControl.SetFocus; //CQ: 14845 688 682 689 for i := CT_FIRST to CT_LAST do 683 690 begin … … 688 695 PageIDToForm(i).show; 689 696 SwitchToPage(PageIDToForm(i)); 697 Exit; 690 698 end; 691 699 end; … … 736 744 end; 737 745 738 procedure TfrmEncounterFrame.TabControlExit(Sender: TObject); 739 var 740 i: integer; 741 begin 742 //Keep the focus on the active page 743 if (sender as tTabControl).tabindex = -1 then exit; 744 745 for i := CT_FIRST to CT_LAST do 746 begin 747 with Formlist do 748 with sender as tTabControl do 749 if Tabindex = IndexOf(PageIdToTab(i)) then 750 begin 751 PageIDToForm(i).FocusFirstControl; 752 end; 746 procedure TfrmEncounterFrame.TabControlEnter(Sender: TObject); 747 begin 748 if FGiveMultiTabMessage then // CQ#15483 749 begin 750 FGiveMultiTabMessage := FALSE; 751 GetScreenReader.Speak('Multi tab form'); 753 752 end; 754 753 end; … … 759 758 CanChange: boolean; 760 759 begin 760 inherited; 761 761 if (Key = VK_ESCAPE) then 762 762 begin … … 788 788 end; 789 789 end; 790 if FLastPage = frmEncVitals then791 frmEncVitals.FormKeyDown(Sender, Key, Shift);792 790 end; 793 791 … … 836 834 end; 837 835 836 procedure TfrmEncounterFrame.FormShow(Sender: TObject); 837 begin 838 inherited; 839 if TabControl.CanFocus then 840 TabControl.SetFocus; 841 end; 842 838 843 end. -
cprs/trunk/CPRS-Chart/Encounter/fExam.dfm
r456 r829 3 3 Top = 223 4 4 Caption = 'Encounter Examinations' 5 ExplicitLeft = 509 6 ExplicitTop = 223 5 7 PixelsPerInch = 96 6 8 TextHeight = 13 … … 15 17 Width = 65 16 18 Caption = 'Exam Section' 19 ExplicitWidth = 65 17 20 end 18 21 inherited btnOK: TBitBtn … … 47 50 TabOrder = 3 48 51 end 52 object cboExamResults: TORComboBox [9] 53 Tag = 60 54 Left = 490 55 Top = 280 56 Width = 121 57 Height = 21 58 Style = orcsDropDown 59 AutoSelect = True 60 Caption = 'Results' 61 Color = clWindow 62 DropDownCount = 8 63 Enabled = False 64 ItemHeight = 13 65 ItemTipColor = clWindow 66 ItemTipEnable = True 67 ListItemsOnly = False 68 LongList = False 69 LookupPiece = 0 70 MaxLength = 0 71 Pieces = '2' 72 Sorted = False 73 SynonymChars = '<>' 74 TabOrder = 4 75 OnChange = cboExamResultsChange 76 CharsNeedMatch = 1 77 end 49 78 inherited btnRemove: TButton 50 79 TabOrder = 5 … … 71 100 end 72 101 end 73 object cboExamResults: TORComboBox 74 Tag = 60 75 Left = 490 76 Top = 280 77 Width = 121 78 Height = 21 79 Style = orcsDropDown 80 AutoSelect = True 81 Caption = 'Results' 82 Color = clWindow 83 DropDownCount = 8 84 Enabled = False 85 ItemHeight = 13 86 ItemTipColor = clWindow 87 ItemTipEnable = True 88 ListItemsOnly = False 89 LongList = False 90 MaxLength = 0 91 Pieces = '2' 92 Sorted = False 93 SynonymChars = '<>' 94 TabOrder = 4 95 OnChange = cboExamResultsChange 102 inherited amgrMain: TVA508AccessibilityManager 103 Data = ( 104 ( 105 'Component = cboExamResults' 106 'Label = lblExamResults' 107 'Status = stsOK') 108 ( 109 'Component = edtComment' 110 'Label = lblComment' 111 'Status = stsOK') 112 ( 113 'Component = btnRemove' 114 'Status = stsDefault') 115 ( 116 'Component = btnSelectAll' 117 'Status = stsDefault') 118 ( 119 'Component = pnlMain' 120 'Status = stsDefault') 121 ( 122 'Component = lbxSection' 123 'Label = lblList' 124 'Status = stsOK') 125 ( 126 'Component = pnlLeft' 127 'Status = stsDefault') 128 ( 129 'Component = lbSection' 130 'Label = lblSection' 131 'Status = stsOK') 132 ( 133 'Component = btnOther' 134 'Status = stsDefault') 135 ( 136 'Component = pnlGrid' 137 'Status = stsDefault') 138 ( 139 'Component = lbGrid' 140 'Status = stsDefault') 141 ( 142 'Component = hcGrid' 143 'Status = stsDefault') 144 ( 145 'Component = btnOK' 146 'Status = stsDefault') 147 ( 148 'Component = btnCancel' 149 'Status = stsDefault') 150 ( 151 'Component = frmExams' 152 'Status = stsDefault')) 96 153 end 97 154 end -
cprs/trunk/CPRS-Chart/Encounter/fExam.pas
r456 r829 6 6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 7 7 fPCEBase, StdCtrls, ORCtrls, CheckLst, ExtCtrls, Buttons, uPCE, rPCE, ORFn, 8 fPCELex, fPCEOther, ComCtrls, fPCEBaseMain ;8 fPCELex, fPCEOther, ComCtrls, fPCEBaseMain, VA508AccessibilityManager; 9 9 10 10 type … … 29 29 30 30 uses 31 fEncounterFrame ;31 fEncounterFrame, VA508AccessibilityRouter; 32 32 33 33 procedure TfrmExams.cboExamResultsChange(Sender: TObject); … … 114 114 end; 115 115 116 initialization 117 SpecifyFormIsNotADialog(TfrmExams); 118 116 119 end. 117 120 -
cprs/trunk/CPRS-Chart/Encounter/fGAF.dfm
r456 r829 5 5 Caption = 'frmGAF' 6 6 OnActivate = FormActivate 7 ExplicitLeft = 8 8 ExplicitTop = 8 7 9 PixelsPerInch = 96 8 10 TextHeight = 13 … … 34 36 Height = 13 35 37 Align = alTop 38 ExplicitWidth = 3 36 39 end 37 40 object Spacer2: TLabel [4] … … 41 44 Height = 13 42 45 Align = alTop 46 ExplicitWidth = 3 43 47 end 44 48 object lblGAF: TStaticText [5] … … 88 92 Align = alTop 89 93 TabOrder = 0 94 ExplicitLeft = 0 95 ExplicitTop = 35 96 ExplicitWidth = 624 90 97 inherited lbGrid: TORListBox 91 98 Width = 624 … … 94 101 Caption = 'Most recent Global Assessment of Functioning (GAF) scores' 95 102 Pieces = '1,2,3,4' 103 ExplicitWidth = 624 96 104 end 97 105 inherited hcGrid: THeaderControl … … 122 130 Width = 60 123 131 end> 132 ExplicitWidth = 624 124 133 end 125 134 end 126 object edtScore: TCaptionEdit 135 object edtScore: TCaptionEdit [10] 127 136 Left = 226 128 137 Top = 171 … … 134 143 Caption = 'Score' 135 144 end 136 object udScore: TUpDown 145 object udScore: TUpDown [11] 137 146 Left = 259 138 147 Top = 171 … … 140 149 Height = 21 141 150 Associate = edtScore 142 Min = 0143 Position = 0144 151 TabOrder = 2 145 Wrap = False 146 end 147 object dteGAF: TORDateBox 152 end 153 object dteGAF: TORDateBox [12] 148 154 Left = 226 149 155 Top = 202 … … 156 162 Caption = 'Date Determined:' 157 163 end 158 object cboGAFProvider: TORComboBox 164 object cboGAFProvider: TORComboBox [13] 159 165 Left = 226 160 166 Top = 233 … … 179 185 OnExit = cboGAFProviderExit 180 186 OnNeedData = cboGAFProviderNeedData 181 end 182 object btnURL: TButton 187 CharsNeedMatch = 1 188 end 189 object btnURL: TButton [14] 183 190 Left = 3 184 191 Top = 376 … … 192 199 OnClick = btnURLClick 193 200 end 201 inherited amgrMain: TVA508AccessibilityManager 202 Data = ( 203 ( 204 'Component = lblGAF' 205 'Status = stsDefault') 206 ( 207 'Component = lblEntry' 208 'Status = stsDefault') 209 ( 210 'Component = edtScore' 211 'Status = stsDefault') 212 ( 213 'Component = udScore' 214 'Status = stsDefault') 215 ( 216 'Component = dteGAF' 217 'Status = stsDefault') 218 ( 219 'Component = cboGAFProvider' 220 'Status = stsDefault') 221 ( 222 'Component = btnURL' 223 'Status = stsDefault') 224 ( 225 'Component = pnlGrid' 226 'Status = stsDefault') 227 ( 228 'Component = lbGrid' 229 'Status = stsDefault') 230 ( 231 'Component = hcGrid' 232 'Status = stsDefault') 233 ( 234 'Component = btnOK' 235 'Status = stsDefault') 236 ( 237 'Component = btnCancel' 238 'Status = stsDefault') 239 ( 240 'Component = frmGAF' 241 'Status = stsDefault')) 242 end 194 243 end -
cprs/trunk/CPRS-Chart/Encounter/fGAF.pas
r456 r829 6 6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 7 7 fPCEBase, StdCtrls, Buttons, ExtCtrls, Grids, ORFn, ORNet, ORCtrls, 8 ORDtTm, ComCtrls, fPCEBaseGrid, Menus ;8 ORDtTm, ComCtrls, fPCEBaseGrid, Menus, VA508AccessibilityManager; 9 9 10 10 type … … 47 47 implementation 48 48 49 uses rPCE, rCore, uCore, uPCE, fEncounterFrame ;49 uses rPCE, rCore, uCore, uPCE, fEncounterFrame, VA508AccessibilityRouter; 50 50 51 51 {$R *.DFM} … … 202 202 FTabName := CT_GAFNm; 203 203 btnURL.Visible := (User.WebAccess and (GAFURL <> '')); 204 end; 204 FormActivate(Sender); 205 end; 206 207 initialization 208 SpecifyFormIsNotADialog(TfrmGAF); 205 209 206 210 end. -
cprs/trunk/CPRS-Chart/Encounter/fHFSearch.dfm
r456 r829 2 2 Left = 286 3 3 Top = 248 4 Width = 3635 Height = 4176 4 Caption = 'Other Health Factors' 5 ClientHeight = 390 6 ClientWidth = 355 7 7 Position = poScreenCenter 8 8 OnCreate = FormCreate 9 ExplicitWidth = 363 10 ExplicitHeight = 417 9 11 PixelsPerInch = 96 10 12 TextHeight = 13 11 object splMain: TSplitter 13 object splMain: TSplitter [0] 12 14 Left = 0 13 15 Top = 131 … … 17 19 Align = alTop 18 20 end 19 object lblCat: TLabel 21 object lblCat: TLabel [1] 20 22 Left = 0 21 23 Top = 0 … … 24 26 Align = alTop 25 27 Caption = 'Category:' 28 ExplicitWidth = 45 26 29 end 27 object cbxSearch: TORComboBox 30 object cbxSearch: TORComboBox [2] 28 31 Left = 0 29 32 Top = 13 … … 41 44 ListItemsOnly = True 42 45 LongList = False 46 LookupPiece = 0 43 47 MaxLength = 0 44 48 Pieces = '2' … … 49 53 OnChange = cbxSearchChange 50 54 OnDblClick = tvSearchDblClick 55 CharsNeedMatch = 1 51 56 end 52 object tvSearch: TORTreeView 57 object tvSearch: TORTreeView [3] 53 58 Left = 0 54 59 Top = 134 … … 57 62 Align = alClient 58 63 HideSelection = False 64 Images = dmodShared.imgTemplates 59 65 Indent = 23 60 66 ReadOnly = True 61 StateImages = dmodShared.imgTemplates62 67 TabOrder = 1 63 68 OnChange = tvSearchChange … … 67 72 OnGetImageIndex = tvSearchGetImageIndex 68 73 OnGetSelectedIndex = tvSearchGetImageIndex 69 Caption = ' Other Health Factors'74 Caption = 'Health Factors Category' 70 75 NodePiece = 2 76 ExplicitTop = 137 71 77 end 72 object pnlBottom: TPanel 78 object pnlBottom: TPanel [4] 73 79 Left = 0 74 80 Top = 363 … … 78 84 BevelOuter = bvNone 79 85 TabOrder = 2 86 DesignSize = ( 87 355 88 27) 80 89 object btnOK: TButton 81 90 Left = 196 … … 102 111 end 103 112 end 113 inherited amgrMain: TVA508AccessibilityManager 114 Left = 176 115 Data = ( 116 ( 117 'Component = cbxSearch' 118 'Status = stsDefault') 119 ( 120 'Component = tvSearch' 121 'Status = stsDefault') 122 ( 123 'Component = pnlBottom' 124 'Status = stsDefault') 125 ( 126 'Component = btnOK' 127 'Status = stsDefault') 128 ( 129 'Component = btnCancel' 130 'Status = stsDefault') 131 ( 132 'Component = frmHFSearch' 133 'Status = stsDefault')) 134 end 135 object imgListHFtvSearch: TVA508ImageListLabeler 136 Components = < 137 item 138 Component = tvSearch 139 end> 140 Labels = <> 141 RemoteLabeler = dmodShared.imgLblHealthFactorLabels 142 Left = 224 143 end 104 144 end -
cprs/trunk/CPRS-Chart/Encounter/fHFSearch.pas
r456 r829 5 5 uses 6 6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 7 fAutoSz, ORFn, StdCtrls, ComCtrls, ORCtrls, ExtCtrls; 7 fAutoSz, ORFn, StdCtrls, ComCtrls, ORCtrls, ExtCtrls, 8 VA508AccessibilityManager, VA508ImageListLabeler; 8 9 9 10 type … … 16 17 splMain: TSplitter; 17 18 lblCat: TLabel; 19 imgListHFtvSearch: TVA508ImageListLabeler; 18 20 procedure FormCreate(Sender: TObject); 19 21 procedure btnOKClick(Sender: TObject); … … 115 117 HFList: TStringList; 116 118 i: integer; 117 Node :TORTreeNode;119 Node, Child :TORTreeNode; 118 120 CAT: string; 119 121 … … 135 137 begin 136 138 StringData := HFList[i]; 137 StateIndex := 2; 139 ImageIndex := 2; 140 SelectedIndex := 2; 138 141 end; 139 142 end; … … 151 154 Node := TORTreeNode(Node.GetNextSibling); 152 155 end; 153 TORTreeNode(tvSearch.Items.AddChild(Node, '')).StringData := Pieces(HFList[i],U,1,2); 156 Child := TORTreeNode(tvSearch.Items.AddChild(Node, '')); 157 Child.StringData := Pieces(HFList[i],U,1,2); 158 Child.ImageIndex := -1; 159 Child.StateIndex := -1; 154 160 end; 155 161 end; … … 181 187 begin 182 188 if(Node.Expanded) then 183 Node. StateIndex := 3189 Node.ImageIndex := 3 184 190 else 185 Node.StateIndex := 2; 186 end; 191 Node.ImageIndex := 2; 192 end 193 else 194 Node.ImageIndex := -1; 195 Node.SelectedIndex := Node.ImageIndex; 187 196 // tvSearch.Invalidate; 188 197 end; -
cprs/trunk/CPRS-Chart/Encounter/fHealthFactor.dfm
r456 r829 3 3 Top = 205 4 4 Caption = 'Health Factor page' 5 ExplicitLeft = 374 6 ExplicitTop = 205 5 7 PixelsPerInch = 96 6 8 TextHeight = 13 … … 15 17 Width = 103 16 18 Caption = 'Health Factor Section' 19 ExplicitWidth = 103 17 20 end 18 21 inherited btnOK: TBitBtn … … 49 52 TabOrder = 3 50 53 end 51 inherited btnRemove: TButton 52 TabOrder = 5 53 end 54 inherited btnSelectAll: TButton 55 TabOrder = 2 56 TabStop = True 57 end 58 inherited pnlMain: TPanel 59 TabOrder = 0 60 inherited lbxSection: TORListBox 61 Tag = 70 62 end 63 inherited pnlLeft: TPanel 64 inherited lbSection: TORListBox 65 Tag = 70 66 TabOrder = 0 67 Caption = 'Health Factor Section' 68 end 69 inherited btnOther: TButton 70 Tag = 23 71 Caption = 'Other Health Factor...' 72 TabOrder = 1 73 end 74 end 75 end 76 object cboHealthLevel: TORComboBox 54 object cboHealthLevel: TORComboBox [9] 77 55 Tag = 50 78 56 Left = 490 … … 100 78 CharsNeedMatch = 1 101 79 end 80 inherited btnRemove: TButton 81 TabOrder = 5 82 end 83 inherited btnSelectAll: TButton 84 TabOrder = 2 85 TabStop = True 86 end 87 inherited pnlMain: TPanel 88 TabOrder = 0 89 inherited lbxSection: TORListBox 90 Tag = 70 91 ExplicitLeft = 210 92 end 93 inherited pnlLeft: TPanel 94 inherited lbSection: TORListBox 95 Tag = 70 96 TabOrder = 0 97 Caption = 'Health Factor Section' 98 end 99 inherited btnOther: TButton 100 Tag = 23 101 Caption = 'Other Health Factor...' 102 TabOrder = 1 103 end 104 end 105 end 106 inherited amgrMain: TVA508AccessibilityManager 107 Data = ( 108 ( 109 'Component = cboHealthLevel' 110 'Label = lblHealthLevel' 111 'Status = stsOK') 112 ( 113 'Component = edtComment' 114 'Label = lblComment' 115 'Status = stsOK') 116 ( 117 'Component = btnRemove' 118 'Status = stsDefault') 119 ( 120 'Component = btnSelectAll' 121 'Status = stsDefault') 122 ( 123 'Component = pnlMain' 124 'Status = stsDefault') 125 ( 126 'Component = lbxSection' 127 'Label = lblList' 128 'Status = stsOK') 129 ( 130 'Component = pnlLeft' 131 'Status = stsDefault') 132 ( 133 'Component = lbSection' 134 'Label = lblSection' 135 'Status = stsOK') 136 ( 137 'Component = btnOther' 138 'Status = stsDefault') 139 ( 140 'Component = pnlGrid' 141 'Status = stsDefault') 142 ( 143 'Component = lbGrid' 144 'Status = stsDefault') 145 ( 146 'Component = hcGrid' 147 'Status = stsDefault') 148 ( 149 'Component = btnOK' 150 'Status = stsDefault') 151 ( 152 'Component = btnCancel' 153 'Status = stsDefault') 154 ( 155 'Component = frmHealthFactors' 156 'Status = stsDefault')) 157 end 102 158 end -
cprs/trunk/CPRS-Chart/Encounter/fHealthFactor.pas
r456 r829 6 6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 7 7 fPCEBase, StdCtrls, ORCtrls, CheckLst, ExtCtrls, Buttons, uPCE, rPCE, ORFn, 8 fPCELex, fPCEOther, ComCtrls, fPCEBaseMain ;8 fPCELex, fPCEOther, ComCtrls, fPCEBaseMain, VA508AccessibilityManager; 9 9 10 10 type … … 30 30 31 31 uses 32 fEncounterFrame ;32 fEncounterFrame, VA508AccessibilityRouter; 33 33 34 34 procedure tfrmHealthFactors.cboHealthLevelChange(Sender: TObject); … … 115 115 end; 116 116 117 initialization 118 SpecifyFormIsNotADialog(TfrmHealthFactors); 119 117 120 end. -
cprs/trunk/CPRS-Chart/Encounter/fImmunization.dfm
r456 r829 3 3 Top = 169 4 4 Caption = 'Encouner Immunization' 5 ExplicitLeft = 373 6 ExplicitTop = 169 5 7 PixelsPerInch = 96 6 8 TextHeight = 13 … … 22 24 Width = 100 23 25 Caption = 'Immunization Section' 26 ExplicitWidth = 100 24 27 end 25 28 object lblContra: TLabel [6] … … 75 78 TabOrder = 3 76 79 end 77 inherited btnRemove: TButton 78 TabOrder = 7 79 end 80 inherited btnSelectAll: TButton 81 TabOrder = 2 82 TabStop = True 83 end 84 inherited pnlMain: TPanel 85 TabOrder = 0 86 inherited lbxSection: TORListBox 87 Tag = 40 88 end 89 inherited pnlLeft: TPanel 90 inherited lbSection: TORListBox 91 Tag = 40 92 TabOrder = 0 93 Caption = 'Immunization Section' 94 end 95 inherited btnOther: TButton 96 Tag = 20 97 Caption = 'Other Immunization...' 98 TabOrder = 1 99 end 100 end 101 end 102 object cboImmReaction: TORComboBox 80 object cboImmReaction: TORComboBox [11] 103 81 Tag = 20 104 82 Left = 490 … … 117 95 ListItemsOnly = False 118 96 LongList = False 97 LookupPiece = 0 119 98 MaxLength = 0 120 99 Pieces = '2' … … 123 102 TabOrder = 5 124 103 OnChange = cboImmReactionChange 125 end 126 object cboImmSeries: TORComboBox 104 CharsNeedMatch = 1 105 end 106 object cboImmSeries: TORComboBox [12] 127 107 Tag = 10 128 108 Left = 490 … … 141 121 ListItemsOnly = False 142 122 LongList = False 123 LookupPiece = 0 143 124 MaxLength = 0 144 125 Pieces = '2' … … 147 128 TabOrder = 4 148 129 OnChange = cboImmSeriesChange 149 end 150 object ckbContra: TCheckBox 130 CharsNeedMatch = 1 131 end 132 object ckbContra: TCheckBox [13] 151 133 Left = 490 152 134 Top = 319 … … 157 139 OnClick = ckbContraClick 158 140 end 141 inherited btnRemove: TButton 142 TabOrder = 7 143 end 144 inherited btnSelectAll: TButton 145 TabOrder = 2 146 TabStop = True 147 end 148 inherited pnlMain: TPanel 149 TabOrder = 0 150 inherited lbxSection: TORListBox 151 Tag = 40 152 end 153 inherited pnlLeft: TPanel 154 inherited lbSection: TORListBox 155 Tag = 40 156 TabOrder = 0 157 Caption = 'Immunization Section' 158 end 159 inherited btnOther: TButton 160 Tag = 20 161 Caption = 'Other Immunization...' 162 TabOrder = 1 163 end 164 end 165 end 166 inherited amgrMain: TVA508AccessibilityManager 167 Data = ( 168 ( 169 'Component = cboImmReaction' 170 'Label = lblReaction' 171 'Status = stsOK') 172 ( 173 'Component = cboImmSeries' 174 'Label = lblSeries' 175 'Status = stsOK') 176 ( 177 'Component = ckbContra' 178 'Status = stsDefault') 179 ( 180 'Component = edtComment' 181 'Label = lblComment' 182 'Status = stsOK') 183 ( 184 'Component = btnRemove' 185 'Status = stsDefault') 186 ( 187 'Component = btnSelectAll' 188 'Status = stsDefault') 189 ( 190 'Component = pnlMain' 191 'Status = stsDefault') 192 ( 193 'Component = lbxSection' 194 'Label = lblList' 195 'Status = stsOK') 196 ( 197 'Component = pnlLeft' 198 'Status = stsDefault') 199 ( 200 'Component = lbSection' 201 'Label = lblSection' 202 'Status = stsOK') 203 ( 204 'Component = btnOther' 205 'Status = stsDefault') 206 ( 207 'Component = pnlGrid' 208 'Status = stsDefault') 209 ( 210 'Component = lbGrid' 211 'Status = stsDefault') 212 ( 213 'Component = hcGrid' 214 'Status = stsDefault') 215 ( 216 'Component = btnOK' 217 'Status = stsDefault') 218 ( 219 'Component = btnCancel' 220 'Status = stsDefault') 221 ( 222 'Component = frmImmunizations' 223 'Status = stsDefault')) 224 end 159 225 end -
cprs/trunk/CPRS-Chart/Encounter/fImmunization.pas
r456 r829 6 6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 7 7 fPCEBase, StdCtrls, ORCtrls, CheckLst, ExtCtrls, Buttons, uPCE, rPCE, ORFn, 8 fPCELex, fPCEOther, ComCtrls, fPCEBaseMain ;8 fPCELex, fPCEOther, ComCtrls, fPCEBaseMain, VA508AccessibilityManager; 9 9 10 10 type … … 37 37 38 38 uses 39 fEncounterFrame ;39 fEncounterFrame, VA508AccessibilityRouter; 40 40 41 41 procedure TfrmImmunizations.cboImmSeriesChange(Sender: TObject); … … 178 178 end; 179 179 180 initialization 181 SpecifyFormIsNotADialog(TfrmImmunizations); 182 180 183 end. 181 -
cprs/trunk/CPRS-Chart/Encounter/fPCEBase.dfm
r456 r829 1 objectfrmPCEBase: TfrmPCEBase1 inherited frmPCEBase: TfrmPCEBase 2 2 Left = 194 3 3 Top = 170 4 AutoScroll = False5 4 Caption = 'Basic Page' 6 5 ClientHeight = 400 7 6 ClientWidth = 624 8 Color = clBtnFace9 Font.Charset = DEFAULT_CHARSET10 Font.Color = clWindowText11 Font.Height = -1112 Font.Name = 'MS Sans Serif'13 Font.Style = []14 OldCreateOrder = True15 7 OnClose = FormClose 16 8 OnCreate = FormCreate 17 OnShow = FormShow 9 ExplicitWidth = 320 10 ExplicitHeight = 240 18 11 DesignSize = ( 19 12 624 … … 21 14 PixelsPerInch = 96 22 15 TextHeight = 13 23 object btnOK: TBitBtn 16 object btnOK: TBitBtn [0] 24 17 Left = 467 25 18 Top = 376 … … 27 20 Height = 21 28 21 Anchors = [akRight, akBottom] 29 Caption = ' OK'22 Caption = '&OK' 30 23 ModalResult = 1 31 24 TabOrder = 0 … … 33 26 NumGlyphs = 2 34 27 end 35 object btnCancel: TBitBtn 28 object btnCancel: TBitBtn [1] 36 29 Left = 547 37 30 Top = 376 … … 39 32 Height = 21 40 33 Anchors = [akRight, akBottom] 41 Caption = ' Cancel'34 Caption = '&Cancel' 42 35 ModalResult = 2 43 36 TabOrder = 1 … … 45 38 NumGlyphs = 2 46 39 end 40 inherited amgrMain: TVA508AccessibilityManager 41 Data = ( 42 ( 43 'Component = btnOK' 44 'Status = stsDefault') 45 ( 46 'Component = btnCancel' 47 'Status = stsDefault') 48 ( 49 'Component = frmPCEBase' 50 'Status = stsDefault')) 51 end 47 52 end -
cprs/trunk/CPRS-Chart/Encounter/fPCEBase.pas
r456 r829 17 17 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, uConst, 18 18 StdCtrls, fAutoSz, Buttons, ORCtrls, ORFn, uPCE, ORDtTm, Checklst, 19 ComCtrls ;19 ComCtrls, VA508AccessibilityManager, fBase508Form; 20 20 21 21 type … … 27 27 procedure btnOKClick(Sender: TObject); virtual; 28 28 procedure FormClose(Sender: TObject; var Action: TCloseAction); 29 procedure FormShow(Sender: TObject);30 29 private 31 30 FDisplayCount: Integer; // number of times page displayed … … 71 70 72 71 uses 73 fEncounterFrame ;72 fEncounterFrame, VA508AccessibilityRouter; 74 73 75 74 … … 368 367 end; 369 368 370 procedure TfrmPCEBase.FormShow(Sender: TObject); 371 begin 372 inherited; 373 FocusFirstControl; 374 end; 369 initialization 370 SpecifyFormIsNotADialog(TfrmPCEBase); 371 375 372 376 373 end. -
cprs/trunk/CPRS-Chart/Encounter/fPCEBaseGrid.dfm
r456 r829 1 1 inherited frmPCEBaseGrid: TfrmPCEBaseGrid 2 Left = 2003 Top = 3032 Left = 128 3 Top = 192 4 4 Caption = 'frmPCEBaseGrid' 5 ExplicitLeft = 128 6 ExplicitTop = 192 5 7 PixelsPerInch = 96 6 8 TextHeight = 13 7 object pnlGrid: TPanel 9 object pnlGrid: TPanel [2] 8 10 Left = 6 9 11 Top = 238 … … 11 13 Height = 87 12 14 BevelOuter = bvNone 13 Caption = 'pnlGrid'14 15 TabOrder = 2 15 16 OnResize = pnlGridResize … … 34 35 Width = 451 35 36 Height = 17 36 DragReorder = False37 37 Sections = < 38 38 item … … 47 47 end 48 48 end 49 inherited amgrMain: TVA508AccessibilityManager 50 Data = ( 51 ( 52 'Component = pnlGrid' 53 'Status = stsDefault') 54 ( 55 'Component = lbGrid' 56 'Status = stsDefault') 57 ( 58 'Component = hcGrid' 59 'Status = stsDefault') 60 ( 61 'Component = btnOK' 62 'Status = stsDefault') 63 ( 64 'Component = btnCancel' 65 'Status = stsDefault') 66 ( 67 'Component = frmPCEBaseGrid' 68 'Status = stsDefault')) 69 end 49 70 end -
cprs/trunk/CPRS-Chart/Encounter/fPCEBaseGrid.pas
r456 r829 5 5 uses 6 6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 7 fPCEBase, ComCtrls, StdCtrls, ORCtrls, ExtCtrls, Buttons, ORFn; 7 fPCEBase, ComCtrls, StdCtrls, ORCtrls, ExtCtrls, Buttons, ORFn, 8 VA508AccessibilityManager; 8 9 9 10 type … … 38 39 implementation 39 40 41 uses 42 VA2006Utils, VA508AccessibilityRouter; 43 40 44 {$R *.DFM} 41 45 … … 46 50 begin 47 51 inherited; 48 lbGrid.Color := ReadOnlyColor; 49 lbGrid.ItemTipColor := ReadOnlyColor; 52 FixHeaderControlDelphi2006Bug(hcGrid); 50 53 FSectionGap := 15; 51 54 SyncGridHeader(TRUE); … … 223 226 end; 224 227 228 initialization 229 SpecifyFormIsNotADialog(TfrmPCEBaseGrid); 230 225 231 end. -
cprs/trunk/CPRS-Chart/Encounter/fPCEBaseMain.dfm
r456 r829 3 3 Top = 166 4 4 Caption = 'frmPCEBaseMain' 5 OnDestroy = FormDestroy6 OnResize = FormResize5 ExplicitWidth = 320 6 ExplicitHeight = 240 7 7 PixelsPerInch = 96 8 8 TextHeight = 13 … … 37 37 Left = 464 38 38 TabOrder = 1 39 ExplicitLeft = 464 39 40 end 40 41 inherited btnCancel: TBitBtn 41 42 Left = 544 42 43 TabOrder = 2 44 ExplicitLeft = 544 43 45 end 44 46 inherited pnlGrid: TPanel 45 47 Width = 475 46 48 TabOrder = 0 49 ExplicitWidth = 475 47 50 inherited lbGrid: TORListBox 48 51 Width = 475 49 52 MultiSelect = True 50 53 OnClick = lbGridSelect 54 OnExit = lbGridExit 51 55 OnChange = lbGridSelect 52 56 CheckEntireLine = True 57 ExplicitWidth = 475 53 58 end 54 59 inherited hcGrid: THeaderControl 55 60 Width = 475 56 end 57 end 58 object edtComment: TCaptionEdit 61 ExplicitWidth = 475 62 end 63 end 64 object edtComment: TCaptionEdit [7] 59 65 Left = 6 60 66 Top = 343 … … 67 73 Caption = 'Comments' 68 74 end 69 object btnRemove: TButton 75 object btnRemove: TButton [8] 70 76 Left = 536 71 77 Top = 343 … … 76 82 OnClick = btnRemoveClick 77 83 end 78 object btnSelectAll: TButton 84 object btnSelectAll: TButton [9] 79 85 Left = 406 80 86 Top = 326 … … 86 92 OnClick = btnSelectAllClick 87 93 end 88 object pnlMain: TPanel 94 object pnlMain: TPanel [10] 89 95 Left = 6 90 96 Top = 20 … … 97 103 Left = 204 98 104 Top = 0 99 Width = 3100 105 Height = 204 101 Cursor = crHSplit102 106 OnMoved = splLeftMoved 103 107 end … … 115 119 TabOrder = 1 116 120 OnClick = clbListClick 121 OnExit = lbxSectionExit 117 122 OnMouseDown = clbListMouseDown 118 123 Caption = 'Section Name' … … 147 152 TabOrder = 1 148 153 OnClick = lbSectionClick 154 OnExit = lbSectionExit 149 155 Caption = 'Section' 150 156 ItemTipColor = clWindow … … 152 158 Pieces = '3' 153 159 CheckEntireLine = True 160 ExplicitLeft = -3 161 ExplicitTop = -2 154 162 end 155 163 object btnOther: TButton … … 162 170 TabOrder = 0 163 171 OnClick = btnOtherClick 172 OnExit = btnOtherExit 164 173 end 165 174 end 166 175 end 176 inherited amgrMain: TVA508AccessibilityManager 177 Left = 24 178 Top = 24 179 Data = ( 180 ( 181 'Component = edtComment' 182 'Label = lblComment' 183 'Status = stsOK') 184 ( 185 'Component = btnRemove' 186 'Status = stsDefault') 187 ( 188 'Component = btnSelectAll' 189 'Status = stsDefault') 190 ( 191 'Component = pnlMain' 192 'Status = stsDefault') 193 ( 194 'Component = lbxSection' 195 'Label = lblList' 196 'Status = stsOK') 197 ( 198 'Component = pnlLeft' 199 'Status = stsDefault') 200 ( 201 'Component = lbSection' 202 'Label = lblSection' 203 'Status = stsOK') 204 ( 205 'Component = btnOther' 206 'Status = stsDefault') 207 ( 208 'Component = pnlGrid' 209 'Status = stsDefault') 210 ( 211 'Component = lbGrid' 212 'Status = stsDefault') 213 ( 214 'Component = hcGrid' 215 'Status = stsDefault') 216 ( 217 'Component = btnOK' 218 'Status = stsDefault') 219 ( 220 'Component = btnCancel' 221 'Status = stsDefault') 222 ( 223 'Component = frmPCEBaseMain' 224 'Status = stsDefault')) 225 end 167 226 end -
cprs/trunk/CPRS-Chart/Encounter/fPCEBaseMain.pas
r456 r829 1 1 unit fPCEBaseMain; 2 {Warning: The tab order has been changed in the OnExit event of several controls. 3 To change the tab order of lbSection, lbxSection, and btnOther you must do it programatically.} 2 4 3 5 interface … … 6 8 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 7 9 fPCEBaseGrid, ComCtrls, StdCtrls, ORCtrls, ExtCtrls, Buttons, rPCE, uPCE, 8 CheckLst, ORFn ;10 CheckLst, ORFn, VA508AccessibilityManager; 9 11 10 12 type … … 41 43 procedure splLeftMoved(Sender: TObject); 42 44 procedure edtCommentKeyPress(Sender: TObject; var Key: Char); 45 procedure lbSectionExit(Sender: TObject); 46 procedure btnOtherExit(Sender: TObject); 47 procedure lbxSectionExit(Sender: TObject); 48 procedure lbGridExit(Sender: TObject); 49 procedure FormCreate(Sender: TObject); 43 50 private 44 51 FCommentItem: integer; 45 52 FCommentChanged: boolean; 46 53 FUpdateCount: integer; 54 FSectionPopulated: boolean; 47 55 //FUpdatingGrid: boolean; moved to 'protected' so frmDiagnoses can see it (RV) 48 56 protected … … 77 85 implementation 78 86 79 uses fPCELex, fPCEOther, fEncounterFrame, fHFSearch; 87 uses fPCELex, fPCEOther, fEncounterFrame, fHFSearch, VA508AccessibilityRouter, 88 ORCtrlsVA508Compatibility, fBase508Form; 80 89 81 90 {$R *.DFM} 91 92 type 93 TLBSectionManager = class(TORListBox508Manager) 94 public 95 function GetItemInstructions(Component: TWinControl): string; override; 96 function GetState(Component: TWinControl): string; override; 97 end; 82 98 83 99 procedure TfrmPCEBaseMain.lbSectionClick(Sender: TObject); … … 87 103 FPCEListCodesProc(lbxSection.Items, lbSection.ItemIEN); 88 104 CheckOffEntries; 105 FSectionPopulated := TRUE; 106 end; 107 108 procedure TfrmPCEBaseMain.lbSectionExit(Sender: TObject); 109 begin 110 inherited; 111 if TabIsPressed then 112 if lbxSection.CanFocus then 113 lbxSection.SetFocus; 89 114 end; 90 115 … … 102 127 try 103 128 SaveGridSelected; 104 tmpList.Assign(lbGrid.Items);129 FastAssign(lbGrid.Items, tmpList); 105 130 for i := 0 to lbGrid.Items.Count-1 do 106 131 begin … … 109 134 tmpList.Objects[i] := lbGrid.Items.Objects[i]; 110 135 end; 111 lbGrid.Items.Assign(tmpList); 136 //FastAssign(tmpList,lbGrid.Items); //cq: 13228 Causin a/v errors. 137 lbGrid.Items.Assign(tmpList); //cq: 13228 112 138 RestoreGridSelected; 113 139 SyncGridData; … … 155 181 end; 156 182 183 procedure TfrmPCEBaseMain.btnOtherExit(Sender: TObject); 184 begin 185 inherited; 186 if TabIsPressed then begin 187 if lbGrid.CanFocus then 188 lbGrid.SetFocus 189 end 190 else if ShiftTabIsPressed then 191 if lbxSection.CanFocus then 192 lbxSection.SetFocus; 193 end; 194 157 195 procedure TfrmPCEBaseMain.edtCommentExit(Sender: TObject); 158 196 begin … … 240 278 end; 241 279 280 procedure TfrmPCEBaseMain.lbGridExit(Sender: TObject); 281 begin 282 inherited; 283 if ShiftTabIsPressed then 284 if btnOther.CanFocus then 285 btnOther.SetFocus; 286 end; 287 242 288 procedure TfrmPCEBaseMain.lbGridSelect(Sender: TObject); 243 289 begin … … 245 291 // clbList.ItemIndex := -1; 246 292 UpdateControls; 293 end; 294 295 procedure TfrmPCEBaseMain.FormCreate(Sender: TObject); 296 begin 297 inherited FormCreate(Sender); 298 lbxSection.HideSelection := TRUE; 299 amgrMain.ComponentManager[lbSection] := TLBSectionManager.Create; 247 300 end; 248 301 … … 413 466 end; 414 467 468 procedure TfrmPCEBaseMain.lbxSectionExit(Sender: TObject); 469 begin 470 inherited; 471 if TabIsPressed then begin 472 if btnOther.CanFocus then 473 btnOther.SetFocus 474 end 475 else if ShiftTabIsPressed then 476 if lbSection.CanFocus then 477 lbSection.SetFocus; 478 end; 479 415 480 procedure TfrmPCEBaseMain.UpdateTabPos; 416 481 begin … … 503 568 end; 504 569 570 { TLBSectionManager } 571 572 function TLBSectionManager.GetItemInstructions(Component: TWinControl): string; 573 var 574 lb : TORListBox; 575 idx: integer; 576 begin 577 lb := TORListBox(Component); 578 idx := lb.ItemIndex; 579 if (idx >= 0) and lb.Selected[idx] then 580 Result := 'Press space bar to populate ' + 581 TfrmPCEBaseMain(Component.Owner).FTabName + ' section' 582 else 583 result := inherited GetItemInstructions(Component); 584 end; 585 586 function TLBSectionManager.GetState(Component: TWinControl): string; 587 var 588 frm: TfrmPCEBaseMain; 589 begin 590 Result := ''; 591 frm := TfrmPCEBaseMain(Component.Owner); 592 if frm.FSectionPopulated then 593 begin 594 frm.FSectionPopulated := FALSE; 595 Result := frm.FTabName + ' section populated with ' + 596 inttostr(frm.lbxSection.Count) + ' items'; 597 end; 598 end; 599 600 initialization 601 SpecifyFormIsNotADialog(TfrmPCEBaseMain); 602 505 603 end. -
cprs/trunk/CPRS-Chart/Encounter/fPCEEdit.dfm
r456 r829 1 objectfrmPCEEdit: TfrmPCEEdit1 inherited frmPCEEdit: TfrmPCEEdit 2 2 Left = 214 3 3 Top = 107 … … 6 6 ClientHeight = 128 7 7 ClientWidth = 543 8 Color = clBtnFace9 Font.Charset = DEFAULT_CHARSET10 Font.Color = clWindowText11 Font.Height = -1112 Font.Name = 'MS Sans Serif'13 Font.Style = []14 OldCreateOrder = False15 8 Position = poScreenCenter 16 9 OnCreate = FormCreate … … 20 13 PixelsPerInch = 96 21 14 TextHeight = 13 22 object Label1: TStaticText 15 object Label1: TStaticText [0] 23 16 Left = 0 24 17 Top = 0 … … 35 28 ParentFont = False 36 29 TabOrder = 5 30 ExplicitWidth = 201 37 31 end 38 object lblNew: TMemo 32 object lblNew: TMemo [1] 39 33 Left = 136 40 34 Top = 32 … … 48 42 TabOrder = 3 49 43 end 50 object lblNote: TMemo 44 object lblNote: TMemo [2] 51 45 Left = 136 52 46 Top = 73 … … 60 54 TabOrder = 4 61 55 end 62 object btnNew: TButton 56 object btnNew: TButton [3] 63 57 Left = 8 64 58 Top = 28 … … 69 63 TabOrder = 0 70 64 end 71 object btnNote: TButton 65 object btnNote: TButton [4] 72 66 Left = 8 73 67 Top = 69 … … 78 72 TabOrder = 1 79 73 end 80 object btnCancel: TButton 74 object btnCancel: TButton [5] 81 75 Left = 465 82 76 Top = 104 … … 89 83 TabOrder = 2 90 84 end 85 inherited amgrMain: TVA508AccessibilityManager 86 Data = ( 87 ( 88 'Component = Label1' 89 'Status = stsDefault') 90 ( 91 'Component = lblNew' 92 'Status = stsDefault') 93 ( 94 'Component = lblNote' 95 'Status = stsDefault') 96 ( 97 'Component = btnNew' 98 'Status = stsDefault') 99 ( 100 'Component = btnNote' 101 'Status = stsDefault') 102 ( 103 'Component = btnCancel' 104 'Status = stsDefault') 105 ( 106 'Component = frmPCEEdit' 107 'Status = stsDefault')) 108 end 91 109 end -
cprs/trunk/CPRS-Chart/Encounter/fPCEEdit.pas
r456 r829 5 5 uses 6 6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 7 StdCtrls, ORFn, uPCE ;7 StdCtrls, ORFn, uPCE, fBase508Form, VA508AccessibilityManager; 8 8 9 9 type 10 TfrmPCEEdit = class(T Form)10 TfrmPCEEdit = class(TfrmBase508Form) 11 11 btnNew: TButton; 12 12 btnNote: TButton; -
cprs/trunk/CPRS-Chart/Encounter/fPCELex.dfm
r456 r829 5 5 BorderStyle = bsDialog 6 6 Caption = 'Lookup Other Diagnosis' 7 ClientHeight = 275 8 ClientWidth = 429 7 9 Position = poScreenCenter 8 10 OnCreate = FormCreate 11 ExplicitWidth = 320 12 ExplicitHeight = 240 9 13 PixelsPerInch = 96 10 14 TextHeight = 13 11 object lblSearch: TLabel 15 object lblSearch: TLabel [0] 12 16 Left = 6 13 17 Top = 16 … … 16 20 Caption = 'Search for Diagnosis' 17 21 end 18 object lblSelect: TLabel 22 object lblSelect: TLabel [1] 19 23 Left = 6 20 24 Top = 67 … … 24 28 Visible = False 25 29 end 26 object txtSearch: TCaptionEdit 30 object txtSearch: TCaptionEdit [2] 27 31 Left = 6 28 32 Top = 30 … … 33 37 Caption = 'Search for Diagnosis' 34 38 end 35 object cmdSearch: TButton 39 object cmdSearch: TButton [3] 36 40 Left = 346 37 41 Top = 30 … … 43 47 OnClick = cmdSearchClick 44 48 end 45 object cmdOK: TButton 49 object cmdOK: TButton [4] 46 50 Left = 263 47 51 Top = 245 … … 52 56 OnClick = cmdOKClick 53 57 end 54 object cmdCancel: TButton 58 object cmdCancel: TButton [5] 55 59 Left = 346 56 60 Top = 245 … … 62 66 OnClick = cmdCancelClick 63 67 end 64 object lstSelect: TORListBox 68 object lstSelect: TORListBox [6] 65 69 Left = 6 66 70 Top = 81 … … 78 82 Pieces = '2' 79 83 end 84 inherited amgrMain: TVA508AccessibilityManager 85 Data = ( 86 ( 87 'Component = txtSearch' 88 'Status = stsDefault') 89 ( 90 'Component = cmdSearch' 91 'Status = stsDefault') 92 ( 93 'Component = cmdOK' 94 'Status = stsDefault') 95 ( 96 'Component = cmdCancel' 97 'Status = stsDefault') 98 ( 99 'Component = lstSelect' 100 'Status = stsDefault') 101 ( 102 'Component = frmPCELex' 103 'Status = stsDefault')) 104 end 80 105 end -
cprs/trunk/CPRS-Chart/Encounter/fPCELex.pas
r456 r829 5 5 uses 6 6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 7 fAutoSz, StdCtrls, ORFn, ORCtrls ;7 fAutoSz, StdCtrls, ORFn, ORCtrls, VA508AccessibilityManager; 8 8 9 9 type -
cprs/trunk/CPRS-Chart/Encounter/fPCEOther.dfm
r456 r829 1 objectfrmPCEOther: TfrmPCEOther1 inherited frmPCEOther: TfrmPCEOther 2 2 Left = 451 3 3 Top = 201 4 Width = 2795 Height = 3406 4 ActiveControl = cboOther 7 5 Caption = 'OtherItems' 8 Color = clBtnFace 9 Font.Charset = DEFAULT_CHARSET 10 Font.Color = clWindowText 11 Font.Height = -11 12 Font.Name = 'MS Sans Serif' 13 Font.Style = [] 14 OldCreateOrder = True 6 ClientHeight = 313 7 ClientWidth = 271 15 8 Position = poScreenCenter 16 9 OnCreate = FormCreate 10 ExplicitWidth = 279 11 ExplicitHeight = 340 17 12 PixelsPerInch = 96 18 13 TextHeight = 13 19 object cmdCancel: TButton 14 object cmdCancel: TButton [0] 20 15 Left = 190 21 16 Top = 287 … … 27 22 OnClick = cmdCancelClick 28 23 end 29 object cmdOK: TButton 24 object cmdOK: TButton [1] 30 25 Left = 110 31 26 Top = 287 … … 37 32 OnClick = cmdOKClick 38 33 end 39 object cboOther: TORComboBox 34 object cboOther: TORComboBox [2] 40 35 Left = 8 41 36 Top = 8 … … 52 47 ListItemsOnly = False 53 48 LongList = False 49 LookupPiece = 0 54 50 MaxLength = 0 55 51 Pieces = '2' … … 59 55 OnChange = cboOtherChange 60 56 OnDblClick = cboOtherDblClick 57 CharsNeedMatch = 1 58 end 59 inherited amgrMain: TVA508AccessibilityManager 60 Data = ( 61 ( 62 'Component = cmdCancel' 63 'Status = stsDefault') 64 ( 65 'Component = cmdOK' 66 'Status = stsDefault') 67 ( 68 'Component = cboOther' 69 'Status = stsDefault') 70 ( 71 'Component = frmPCEOther' 72 'Status = stsDefault')) 61 73 end 62 74 end -
cprs/trunk/CPRS-Chart/Encounter/fPCEOther.pas
r456 r829 5 5 uses 6 6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 7 fAutoSz, ORFn, ORCtrls, StdCtrls ;7 fAutoSz, ORFn, ORCtrls, StdCtrls, VA508AccessibilityManager; 8 8 9 9 type -
cprs/trunk/CPRS-Chart/Encounter/fPCEProvider.dfm
r456 r829 1 objectfrmPCEProvider: TfrmPCEProvider1 inherited frmPCEProvider: TfrmPCEProvider 2 2 Left = 192 3 3 Top = 104 … … 7 7 ClientHeight = 254 8 8 ClientWidth = 317 9 Color = clBtnFace10 Font.Charset = DEFAULT_CHARSET11 Font.Color = clWindowText12 Font.Height = -1113 Font.Name = 'MS Sans Serif'14 Font.Style = []15 OldCreateOrder = False16 9 Position = poScreenCenter 17 10 OnCreate = FormCreate 18 11 PixelsPerInch = 96 19 12 TextHeight = 13 20 object Spacer1: TLabel 13 object Spacer1: TLabel [0] 21 14 Left = 0 22 15 Top = 0 … … 24 17 Height = 13 25 18 Align = alTop 19 ExplicitWidth = 3 26 20 end 27 object lblMsg: TMemo 21 object lblMsg: TMemo [1] 28 22 Left = 0 29 23 Top = 13 … … 46 40 TabOrder = 4 47 41 end 48 object cboPrimary: TORComboBox 42 object cboPrimary: TORComboBox [2] 49 43 Left = 6 50 44 Top = 69 … … 73 67 CharsNeedMatch = 1 74 68 end 75 object btnYes: TButton 69 object btnYes: TButton [3] 76 70 Left = 158 77 71 Top = 40 … … 83 77 TabOrder = 1 84 78 end 85 object btnNo: TButton 79 object btnNo: TButton [4] 86 80 Left = 238 87 81 Top = 40 … … 93 87 TabOrder = 2 94 88 end 95 object btnSelect: TButton 89 object btnSelect: TButton [5] 96 90 Left = 6 97 91 Top = 40 … … 102 96 OnClick = btnSelectClick 103 97 end 98 inherited amgrMain: TVA508AccessibilityManager 99 Data = ( 100 ( 101 'Component = lblMsg' 102 'Status = stsDefault') 103 ( 104 'Component = cboPrimary' 105 'Status = stsDefault') 106 ( 107 'Component = btnYes' 108 'Status = stsDefault') 109 ( 110 'Component = btnNo' 111 'Status = stsDefault') 112 ( 113 'Component = btnSelect' 114 'Status = stsDefault') 115 ( 116 'Component = frmPCEProvider' 117 'Status = stsDefault')) 118 end 104 119 end -
cprs/trunk/CPRS-Chart/Encounter/fPCEProvider.pas
r456 r829 5 5 uses 6 6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 7 StdCtrls, ORCtrls, ExtCtrls, uPCE, ORFn; 7 StdCtrls, ORCtrls, ExtCtrls, uPCE, ORFn, fBase508Form, 8 VA508AccessibilityManager; 8 9 9 10 type 10 TfrmPCEProvider = class(T Form)11 TfrmPCEProvider = class(TfrmBase508Form) 11 12 cboPrimary: TORComboBox; 12 13 lblMsg: TMemo; -
cprs/trunk/CPRS-Chart/Encounter/fPatientEd.dfm
r456 r829 3 3 Top = 267 4 4 Caption = 'Patient Education' 5 ExplicitLeft = 275 6 ExplicitTop = 267 5 7 PixelsPerInch = 96 6 8 TextHeight = 13 … … 15 17 Width = 123 16 18 Caption = 'Patient Education Section' 19 ExplicitWidth = 123 17 20 end 18 21 inherited btnOK: TBitBtn … … 48 51 TabOrder = 3 49 52 end 53 object cboPatUnderstanding: TORComboBox [9] 54 Tag = 40 55 Left = 490 56 Top = 280 57 Width = 121 58 Height = 21 59 Style = orcsDropDown 60 AutoSelect = True 61 Caption = 'Level Of Understanding' 62 Color = clWindow 63 DropDownCount = 8 64 Enabled = False 65 ItemHeight = 13 66 ItemTipColor = clWindow 67 ItemTipEnable = True 68 ListItemsOnly = False 69 LongList = False 70 LookupPiece = 0 71 MaxLength = 0 72 Pieces = '2' 73 Sorted = False 74 SynonymChars = '<>' 75 TabOrder = 4 76 OnChange = cboPatUnderstandingChange 77 CharsNeedMatch = 1 78 end 50 79 inherited btnRemove: TButton 51 80 TabOrder = 5 … … 73 102 end 74 103 end 75 object cboPatUnderstanding: TORComboBox 76 Tag = 40 77 Left = 490 78 Top = 280 79 Width = 121 80 Height = 21 81 Style = orcsDropDown 82 AutoSelect = True 83 Caption = 'Level Of Understanding' 84 Color = clWindow 85 DropDownCount = 8 86 Enabled = False 87 ItemHeight = 13 88 ItemTipColor = clWindow 89 ItemTipEnable = True 90 ListItemsOnly = False 91 LongList = False 92 MaxLength = 0 93 Pieces = '2' 94 Sorted = False 95 SynonymChars = '<>' 96 TabOrder = 4 97 OnChange = cboPatUnderstandingChange 104 inherited amgrMain: TVA508AccessibilityManager 105 Data = ( 106 ( 107 'Component = cboPatUnderstanding' 108 'Status = stsDefault') 109 ( 110 'Component = edtComment' 111 'Label = lblComment' 112 'Status = stsOK') 113 ( 114 'Component = btnRemove' 115 'Status = stsDefault') 116 ( 117 'Component = btnSelectAll' 118 'Status = stsDefault') 119 ( 120 'Component = pnlMain' 121 'Status = stsDefault') 122 ( 123 'Component = lbxSection' 124 'Label = lblList' 125 'Status = stsOK') 126 ( 127 'Component = pnlLeft' 128 'Status = stsDefault') 129 ( 130 'Component = lbSection' 131 'Label = lblSection' 132 'Status = stsOK') 133 ( 134 'Component = btnOther' 135 'Status = stsDefault') 136 ( 137 'Component = pnlGrid' 138 'Status = stsDefault') 139 ( 140 'Component = lbGrid' 141 'Status = stsDefault') 142 ( 143 'Component = hcGrid' 144 'Status = stsDefault') 145 ( 146 'Component = btnOK' 147 'Status = stsDefault') 148 ( 149 'Component = btnCancel' 150 'Status = stsDefault') 151 ( 152 'Component = frmPatientEd' 153 'Status = stsDefault')) 98 154 end 99 155 end -
cprs/trunk/CPRS-Chart/Encounter/fPatientEd.pas
r456 r829 6 6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 7 7 fPCEBase, StdCtrls, ORCtrls, CheckLst, ExtCtrls, Buttons, uPCE, rPCE, ORFn, 8 fPCELex, fPCEOther, ComCtrls, fPCEBaseMain ;8 fPCELex, fPCEOther, ComCtrls, fPCEBaseMain, VA508AccessibilityManager; 9 9 10 10 type … … 29 29 30 30 uses 31 fEncounterFrame ;31 fEncounterFrame, VA508AccessibilityRouter; 32 32 33 33 {/////////////////////////////////////////////////////////////////////////////// … … 121 121 end; 122 122 123 initialization 124 SpecifyFormIsNotADialog(TfrmPatientEd); 125 123 126 end. -
cprs/trunk/CPRS-Chart/Encounter/fProcedure.dfm
r456 r829 1 1 inherited frmProcedures: TfrmProcedures 2 Left = 2953 Top = 2122 Left = 548 3 Top = 172 4 4 Caption = 'Encounter Procedure' 5 ExplicitWidth = 632 6 ExplicitHeight = 427 5 7 PixelsPerInch = 96 6 8 TextHeight = 13 … … 15 17 Width = 88 16 18 Caption = 'Procedure Section' 19 ExplicitWidth = 88 17 20 end 18 21 inherited lblList: TLabel 19 22 Left = 154 23 ExplicitLeft = 154 20 24 end 21 25 inherited bvlMain: TBevel … … 23 27 Width = 537 24 28 Height = 166 29 ExplicitTop = 232 30 ExplicitWidth = 537 31 ExplicitHeight = 166 25 32 end 26 33 object lblMod: TLabel [5] … … 45 52 Top = 344 46 53 TabOrder = 8 54 ExplicitLeft = 544 55 ExplicitTop = 344 47 56 end 48 57 inherited btnCancel: TBitBtn 49 58 Top = 371 50 59 TabOrder = 9 60 ExplicitTop = 371 51 61 end 52 62 inherited pnlGrid: TPanel 53 63 Width = 523 54 64 TabOrder = 1 65 ExplicitWidth = 523 55 66 inherited lbGrid: TORListBox 56 67 Tag = 30 … … 58 69 Caption = 'Selected Procedures' 59 70 Pieces = '1,2' 71 ExplicitWidth = 523 60 72 end 61 73 inherited hcGrid: THeaderControl … … 74 86 Width = 112 75 87 end> 88 ExplicitWidth = 523 76 89 end 77 90 end … … 79 92 TabOrder = 2 80 93 end 81 inherited btnRemove: TButton 82 Left = 454 83 Top = 371 84 TabOrder = 7 85 end 86 inherited btnSelectAll: TButton 87 Left = 374 88 Top = 371 89 Height = 21 90 TabOrder = 6 91 TabStop = True 92 end 93 inherited pnlMain: TPanel 94 TabOrder = 0 95 inherited splLeft: TSplitter 96 Left = 145 97 end 98 object splRight: TSplitter [1] 99 Left = 349 100 Top = 0 101 Width = 3 102 Height = 204 103 Cursor = crHSplit 104 Align = alRight 105 OnMoved = splRightMoved 106 end 107 inherited lbxSection: TORListBox 108 Tag = 30 109 Left = 148 110 Width = 201 111 ItemHeight = 14 112 Pieces = '2,3' 113 end 114 inherited pnlLeft: TPanel 115 Width = 145 116 inherited lbSection: TORListBox 117 Tag = 30 118 Width = 145 119 TabOrder = 0 120 end 121 inherited btnOther: TButton 122 Tag = 13 123 Left = 3 124 Caption = 'Other Procedure...' 125 TabOrder = 1 126 end 127 end 128 object lbMods: TORListBox 129 Left = 352 130 Top = 0 131 Width = 260 132 Height = 204 133 Style = lbOwnerDrawFixed 134 Align = alRight 135 Font.Charset = DEFAULT_CHARSET 136 Font.Color = clWindowText 137 Font.Height = -11 138 Font.Name = 'MS Sans Serif' 139 Font.Style = [] 140 ItemHeight = 14 141 ParentFont = False 142 ParentShowHint = False 143 ShowHint = True 144 TabOrder = 2 145 Caption = 'Modifiers' 146 ItemTipColor = clWindow 147 LongList = False 148 Pieces = '2,3' 149 TabPosInPixels = True 150 CheckBoxes = True 151 CheckEntireLine = True 152 OnClickCheck = lbModsClickCheck 153 end 154 end 155 object spnProcQty: TUpDown 94 object spnProcQty: TUpDown [11] 156 95 Left = 348 157 96 Top = 371 … … 162 101 Position = 1 163 102 TabOrder = 5 164 Wrap = False 165 end 166 object txtProcQty: TCaptionEdit 103 end 104 object txtProcQty: TCaptionEdit [12] 167 105 Left = 288 168 106 Top = 371 … … 175 113 Caption = 'Quantity' 176 114 end 177 object cboProvider: TORComboBox 115 object cboProvider: TORComboBox [13] 178 116 Left = 56 179 117 Top = 371 … … 199 137 OnChange = cboProviderChange 200 138 OnNeedData = cboProviderNeedData 139 CharsNeedMatch = 1 140 end 141 inherited btnRemove: TButton 142 Left = 454 143 Top = 371 144 TabOrder = 7 145 ExplicitLeft = 454 146 ExplicitTop = 371 147 end 148 inherited btnSelectAll: TButton 149 Left = 374 150 Top = 371 151 Height = 21 152 TabOrder = 6 153 TabStop = True 154 ExplicitLeft = 374 155 ExplicitTop = 371 156 ExplicitHeight = 21 157 end 158 inherited pnlMain: TPanel 159 TabOrder = 0 160 inherited splLeft: TSplitter 161 Left = 145 162 ExplicitLeft = 145 163 end 164 object splRight: TSplitter [1] 165 Left = 349 166 Top = 0 167 Height = 204 168 Align = alRight 169 OnMoved = splRightMoved 170 end 171 inherited lbxSection: TORListBox 172 Tag = 30 173 Left = 148 174 Width = 201 175 ItemHeight = 14 176 Pieces = '2,3' 177 ExplicitLeft = 148 178 ExplicitWidth = 201 179 end 180 inherited pnlLeft: TPanel 181 Width = 145 182 ExplicitWidth = 145 183 inherited lbSection: TORListBox 184 Tag = 30 185 Width = 145 186 TabOrder = 0 187 ExplicitWidth = 145 188 end 189 inherited btnOther: TButton 190 Tag = 13 191 Left = 3 192 Caption = 'Other Procedure...' 193 TabOrder = 1 194 ExplicitLeft = 3 195 end 196 end 197 object lbMods: TORListBox 198 Left = 352 199 Top = 0 200 Width = 260 201 Height = 204 202 Style = lbOwnerDrawFixed 203 Align = alRight 204 Font.Charset = DEFAULT_CHARSET 205 Font.Color = clWindowText 206 Font.Height = -11 207 Font.Name = 'MS Sans Serif' 208 Font.Style = [] 209 ItemHeight = 14 210 ParentFont = False 211 ParentShowHint = False 212 ShowHint = True 213 TabOrder = 2 214 OnExit = lbModsExit 215 Caption = 'Modifiers' 216 ItemTipColor = clWindow 217 LongList = False 218 Pieces = '2,3' 219 TabPosInPixels = True 220 CheckBoxes = True 221 CheckEntireLine = True 222 OnClickCheck = lbModsClickCheck 223 end 224 end 225 inherited amgrMain: TVA508AccessibilityManager 226 Data = ( 227 ( 228 'Component = lbMods' 229 'Label = lblMod' 230 'Status = stsOK') 231 ( 232 'Component = spnProcQty' 233 'Status = stsDefault') 234 ( 235 'Component = txtProcQty' 236 'Status = stsDefault') 237 ( 238 'Component = cboProvider' 239 'Status = stsDefault') 240 ( 241 'Component = edtComment' 242 'Label = lblComment' 243 'Status = stsOK') 244 ( 245 'Component = btnRemove' 246 'Status = stsDefault') 247 ( 248 'Component = btnSelectAll' 249 'Status = stsDefault') 250 ( 251 'Component = pnlMain' 252 'Status = stsDefault') 253 ( 254 'Component = lbxSection' 255 'Label = lblList' 256 'Status = stsOK') 257 ( 258 'Component = pnlLeft' 259 'Status = stsDefault') 260 ( 261 'Component = lbSection' 262 'Label = lblSection' 263 'Status = stsOK') 264 ( 265 'Component = btnOther' 266 'Status = stsDefault') 267 ( 268 'Component = pnlGrid' 269 'Status = stsDefault') 270 ( 271 'Component = lbGrid' 272 'Status = stsDefault') 273 ( 274 'Component = hcGrid' 275 'Status = stsDefault') 276 ( 277 'Component = btnOK' 278 'Status = stsDefault') 279 ( 280 'Component = btnCancel' 281 'Status = stsDefault') 282 ( 283 'Component = frmProcedures' 284 'Status = stsDefault')) 201 285 end 202 286 end -
cprs/trunk/CPRS-Chart/Encounter/fProcedure.pas
r456 r829 1 1 unit fProcedure; 2 {Warning: The tab order has been changed in the OnExit event of several controls. 3 To change the tab order of lbSection, lbxSection, lbMods, and btnOther you must do it programatically.} 2 4 3 5 interface … … 6 8 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 7 9 fPCEBase, StdCtrls, ComCtrls, CheckLst, ORCtrls, ExtCtrls, Buttons, uPCE, rPCE, ORFn, 8 fPCELex, fPCEOther, fPCEBaseGrid, fPCEBaseMain ;10 fPCELex, fPCEOther, fPCEBaseGrid, fPCEBaseMain, VA508AccessibilityManager; 9 11 10 12 type … … 33 35 Direction, InsertAt: Integer); 34 36 procedure cboProviderChange(Sender: TObject); 37 procedure lbxSectionExit(Sender: TObject); 38 procedure lbModsExit(Sender: TObject); 39 procedure btnOtherExit(Sender: TObject); 35 40 private 36 41 FCheckingCode: boolean; … … 38 43 FLastCPTCodes: string; 39 44 FModsReadOnly: boolean; 45 FProviderChanging: boolean; 40 46 FModsROChecked: string; 41 47 function MissingProvider: boolean; … … 58 64 59 65 uses 60 fEncounterFrame, uConst, rCore ;66 fEncounterFrame, uConst, rCore, VA508AccessibilityRouter; 61 67 62 68 const … … 88 94 if(lbGrid.Selected[i]) then 89 95 TPCEProc(lbGrid.Items.Objects[i]).Provider := cboProvider.ItemIEN; 90 GridChanged; 96 FProviderChanging := TRUE; // CQ 11707 97 try 98 GridChanged; 99 finally 100 FProviderChanging := FALSE; 101 end; 91 102 end; 92 103 end; … … 102 113 FSectionTabCount := 1; 103 114 FormResize(Self); 115 lbMods.HideSelection := TRUE; 104 116 end; 105 117 … … 170 182 txtProcQty.Text := ''; 171 183 end; 172 if(SameProv) then 173 cboProvider.SetExactByIEN(Prov, ExternalName(Prov, 200)) 174 else 175 cboProvider.SetExactByIEN(uProviders.PCEProvider, uProviders.PCEProviderName); 176 //cboProvider.ItemIndex := -1; v22.8 - RV 184 if not FProviderChanging then // CQ 11707 185 begin 186 if(SameProv) then 187 cboProvider.SetExactByIEN(Prov, ExternalName(Prov, 200)) 188 else 189 cboProvider.SetExactByIEN(uProviders.PCEProvider, uProviders.PCEProviderName); 190 //cboProvider.ItemIndex := -1; v22.8 - RV 191 end; 177 192 end 178 193 else … … 418 433 end; 419 434 435 procedure TfrmProcedures.lbModsExit(Sender: TObject); 436 begin 437 inherited; 438 if TabIsPressed then 439 if btnOther.CanFocus then 440 btnOther.SetFocus; 441 end; 442 420 443 procedure TfrmProcedures.lbSectionClick(Sender: TObject); 421 444 begin … … 434 457 inherited; 435 458 Sync2Grid; 459 lbxSection.Selected[Index] := True; 436 460 if(lbxSection.ItemIndex >= 0) and (lbxSection.ItemIndex = Index) and 437 461 (lbxSection.Checked[Index]) then 438 462 begin 439 UpdateModifierList(lbxSection.Items, Index); 440 lbxSection.Checked[Index] := TRUE; 463 UpdateModifierList(lbxSection.Items, Index); // CQ#16439 464 lbxSection.Checked[Index] := TRUE; 441 465 for i := 0 to lbGrid.Items.Count-1 do 442 466 begin … … 456 480 Modifiers := Piece(lbxSection.Items[lbxSection.ItemIndex], U, 4); 457 481 GridChanged; 482 lbxSection.Selected[Index] := True; // CQ#15493 458 483 exit; 459 484 end; … … 466 491 end; 467 492 493 procedure TfrmProcedures.lbxSectionExit(Sender: TObject); 494 begin 495 if TabIsPressed then begin 496 if lbMods.CanFocus then 497 lbMods.SetFocus; 498 end 499 else if ShiftTabIsPressed then 500 if lbSection.CanFocus then 501 lbSection.SetFocus; 502 end; 503 468 504 procedure TfrmProcedures.btnOtherClick(Sender: TObject); 469 505 begin … … 471 507 Sync2Grid; 472 508 ShowModifiers; 509 end; 510 511 procedure TfrmProcedures.btnOtherExit(Sender: TObject); 512 begin 513 if TabIsPressed then begin 514 if lbGrid.CanFocus then 515 lbGrid.SetFocus; 516 end 517 else if ShiftTabIsPressed then 518 if lbMods.CanFocus then 519 lbMods.SetFocus; 473 520 end; 474 521 … … 537 584 end; 538 585 586 initialization 587 SpecifyFormIsNotADialog(TfrmProcedures); 588 539 589 end. -
cprs/trunk/CPRS-Chart/Encounter/fSkinTest.dfm
r456 r829 3 3 Top = 163 4 4 Caption = 'Encounter Skin Test form' 5 ExplicitLeft = 213 6 ExplicitTop = 163 5 7 PixelsPerInch = 96 6 8 TextHeight = 13 … … 38 40 Width = 84 39 41 Caption = 'Skin Test Section' 42 ExplicitWidth = 84 40 43 end 41 44 inherited btnOK: TBitBtn … … 76 79 TabOrder = 3 77 80 end 81 object UpDnReading: TUpDown [12] 82 Left = 531 83 Top = 304 84 Width = 15 85 Height = 21 86 Associate = EdtReading 87 Max = 40 88 TabOrder = 6 89 OnChanging = UpDnReadingChanging 90 end 91 object EdtReading: TCaptionEdit [13] 92 Left = 490 93 Top = 304 94 Width = 41 95 Height = 21 96 Enabled = False 97 TabOrder = 5 98 Text = '0' 99 OnChange = EdtReadingChange 100 Caption = 'Reading' 101 end 102 object edtDtRead: TCaptionEdit [14] 103 Left = 104 104 Top = 376 105 Width = 97 106 Height = 21 107 TabOrder = 8 108 Text = 'edtDtRead' 109 Visible = False 110 Caption = 'Date Read' 111 end 112 object edtDTGiven: TCaptionEdit [15] 113 Left = 280 114 Top = 376 115 Width = 81 116 Height = 21 117 TabOrder = 9 118 Text = 'edtDTGiven' 119 Visible = False 120 Caption = 'Date Given' 121 end 122 object cboSkinResults: TORComboBox [16] 123 Tag = 30 124 Left = 490 125 Top = 260 126 Width = 121 127 Height = 21 128 Style = orcsDropDown 129 AutoSelect = True 130 Caption = 'Results' 131 Color = clWindow 132 DropDownCount = 8 133 Enabled = False 134 ItemHeight = 13 135 ItemTipColor = clWindow 136 ItemTipEnable = True 137 ListItemsOnly = False 138 LongList = False 139 LookupPiece = 0 140 MaxLength = 0 141 Pieces = '2' 142 Sorted = False 143 SynonymChars = '<>' 144 TabOrder = 4 145 OnChange = cboSkinResultsChange 146 CharsNeedMatch = 1 147 end 78 148 inherited btnRemove: TButton 79 149 TabOrder = 7 … … 101 171 end 102 172 end 103 object UpDnReading: TUpDown 104 Left = 531 105 Top = 304 106 Width = 15 107 Height = 21 108 Associate = EdtReading 109 Min = 0 110 Max = 40 111 Position = 0 112 TabOrder = 6 113 Wrap = False 114 OnChanging = UpDnReadingChanging 115 end 116 object EdtReading: TCaptionEdit 117 Left = 490 118 Top = 304 119 Width = 41 120 Height = 21 121 Enabled = False 122 TabOrder = 5 123 Text = '0' 124 OnChange = EdtReadingChange 125 Caption = 'Reading' 126 end 127 object edtDtRead: TCaptionEdit 128 Left = 104 129 Top = 376 130 Width = 97 131 Height = 21 132 TabOrder = 8 133 Text = 'edtDtRead' 134 Visible = False 135 Caption = 'Date Read' 136 end 137 object edtDTGiven: TCaptionEdit 138 Left = 280 139 Top = 376 140 Width = 81 141 Height = 21 142 TabOrder = 9 143 Text = 'edtDTGiven' 144 Visible = False 145 Caption = 'Date Given' 146 end 147 object cboSkinResults: TORComboBox 148 Tag = 30 149 Left = 490 150 Top = 260 151 Width = 121 152 Height = 21 153 Style = orcsDropDown 154 AutoSelect = True 155 Caption = 'Results' 156 Color = clWindow 157 DropDownCount = 8 158 Enabled = False 159 ItemHeight = 13 160 ItemTipColor = clWindow 161 ItemTipEnable = True 162 ListItemsOnly = False 163 LongList = False 164 MaxLength = 0 165 Pieces = '2' 166 Sorted = False 167 SynonymChars = '<>' 168 TabOrder = 4 169 OnChange = cboSkinResultsChange 173 inherited amgrMain: TVA508AccessibilityManager 174 Data = ( 175 ( 176 'Component = UpDnReading' 177 'Status = stsDefault') 178 ( 179 'Component = EdtReading' 180 'Label = lblReading' 181 'Status = stsOK') 182 ( 183 'Component = edtDtRead' 184 'Label = lblDTRead' 185 'Status = stsOK') 186 ( 187 'Component = edtDTGiven' 188 'Label = lblDTGiven' 189 'Status = stsOK') 190 ( 191 'Component = cboSkinResults' 192 'Label = lblSkinResults' 193 'Status = stsOK') 194 ( 195 'Component = edtComment' 196 'Label = lblComment' 197 'Status = stsOK') 198 ( 199 'Component = btnRemove' 200 'Status = stsDefault') 201 ( 202 'Component = btnSelectAll' 203 'Status = stsDefault') 204 ( 205 'Component = pnlMain' 206 'Status = stsDefault') 207 ( 208 'Component = lbxSection' 209 'Label = lblList' 210 'Status = stsOK') 211 ( 212 'Component = pnlLeft' 213 'Status = stsDefault') 214 ( 215 'Component = lbSection' 216 'Label = lblSection' 217 'Status = stsOK') 218 ( 219 'Component = btnOther' 220 'Status = stsDefault') 221 ( 222 'Component = pnlGrid' 223 'Status = stsDefault') 224 ( 225 'Component = lbGrid' 226 'Status = stsDefault') 227 ( 228 'Component = hcGrid' 229 'Status = stsDefault') 230 ( 231 'Component = btnOK' 232 'Status = stsDefault') 233 ( 234 'Component = btnCancel' 235 'Status = stsDefault') 236 ( 237 'Component = frmSkinTests' 238 'Status = stsDefault')) 170 239 end 171 240 end -
cprs/trunk/CPRS-Chart/Encounter/fSkinTest.pas
r456 r829 6 6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 7 7 fPCEBase, ORCtrls, StdCtrls, ComCtrls, CheckLst, ExtCtrls, Buttons, uPCE, rPCE, ORFn, 8 fPCELex, fPCEOther, rCore, fPCEBaseMain ;8 fPCELex, fPCEOther, rCore, fPCEBaseMain, VA508AccessibilityManager; 9 9 10 10 type … … 41 41 42 42 uses 43 fEncounterFrame ;43 fEncounterFrame, VA508AccessibilityRouter; 44 44 45 45 procedure TfrmSkinTests.cboSkinResultsChange(Sender: TObject); … … 137 137 else 138 138 begin 139 Show message('If the reading is over 9, the results are required to be positive.');139 Show508Message('If the reading is over 9, the results are required to be positive.'); 140 140 cboSkinResults.SelectById('P'); 141 141 end; … … 245 245 end; 246 246 247 initialization 248 SpecifyFormIsNotADialog(TfrmSkinTests); 249 247 250 end. 248 251 -
cprs/trunk/CPRS-Chart/Encounter/fVisitType.dfm
r456 r829 1 1 inherited frmVisitType: TfrmVisitType 2 Left = 255 3 Top = 186 2 Left = 260 4 3 Caption = 'Encounter VisitType' 5 ClientWidth = 620 4 ClientHeight = 438 5 ClientWidth = 592 6 Constraints.MinHeight = 465 7 Constraints.MinWidth = 600 6 8 OnCloseQuery = FormCloseQuery 7 OnResize = FormResize 9 ExplicitLeft = 260 10 ExplicitWidth = 600 11 ExplicitHeight = 472 8 12 PixelsPerInch = 96 9 13 TextHeight = 13 10 object lblVType: TLabel [0]11 Left = 15012 Top = 613 Width = 6714 Height = 1315 Caption = 'Section Name'14 inherited btnOK: TBitBtn 15 Left = 436 16 Top = 414 17 TabOrder = 3 18 ExplicitLeft = 474 19 ExplicitTop = 459 16 20 end 17 object lblSCDisplay: TLabel [1] 18 Left = 6 19 Top = 123 20 Width = 186 21 Height = 13 22 Caption = 'Service Connection && Rated Disabilities' 23 end 24 object lblVTypeSection: TLabel [2] 25 Left = 6 26 Top = 6 27 Width = 58 28 Height = 13 29 Caption = 'Type of Visit' 30 end 31 object lblCurrentProv: TLabel [3] 32 Left = 277 33 Top = 249 34 Width = 165 35 Height = 13 36 Caption = 'Current providers for this encounter' 37 end 38 object lblProvider: TLabel [4] 39 Left = 6 40 Top = 249 41 Width = 89 42 Height = 13 43 Caption = 'Available providers' 44 end 45 object lblMod: TLabel [5] 46 Left = 358 47 Top = 6 48 Width = 42 49 Height = 13 50 Hint = 'Modifiers' 51 Caption = 'Modifiers' 52 ParentShowHint = False 53 ShowHint = True 54 end 55 inherited btnOK: TBitBtn 56 Left = 463 57 Top = 377 58 TabOrder = 8 59 end 60 inherited btnCancel: TBitBtn 61 Left = 543 62 Top = 377 63 TabOrder = 9 64 end 65 object pnlMain: TPanel 66 Left = 2 67 Top = 19 68 Width = 615 69 Height = 92 21 object pnlTop: TPanel [1] 22 Left = 0 23 Top = 0 24 Width = 592 25 Height = 105 26 Align = alTop 70 27 BevelOuter = bvNone 71 28 TabOrder = 0 29 ExplicitWidth = 630 72 30 object splLeft: TSplitter 73 31 Left = 145 74 32 Top = 0 75 Width = 376 Height = 9277 Cursor = crHSplit78 OnMoved = splLeftMoved33 Height = 105 34 ExplicitLeft = 154 35 ExplicitTop = 7 36 ExplicitHeight = 145 79 37 end 80 38 object splRight: TSplitter 81 Left = 352 82 Top = 0 83 Width = 3 84 Height = 92 85 Cursor = crHSplit 86 Align = alRight 87 OnMoved = splRightMoved 39 Left = 361 40 Top = 0 41 Height = 105 42 ExplicitLeft = 634 88 43 end 89 44 object pnlLeft: TPanel … … 91 46 Top = 0 92 47 Width = 145 93 Height = 9248 Height = 105 94 49 Align = alLeft 95 50 BevelOuter = bvNone 96 51 TabOrder = 0 52 ExplicitHeight = 145 53 object lblVTypeSection: TLabel 54 Left = 0 55 Top = 0 56 Width = 145 57 Height = 13 58 Align = alTop 59 Caption = 'Type of Visit' 60 ExplicitWidth = 58 61 end 97 62 object lstVTypeSection: TORListBox 98 63 Tag = 10 99 64 Left = 0 100 Top = 065 Top = 13 101 66 Width = 145 102 67 Height = 92 103 Align = al Top68 Align = alClient 104 69 ItemHeight = 13 105 70 ParentShowHint = False … … 114 79 end 115 80 end 116 object lbxVisits: TORListBox 117 Tag = 10 81 object pnlModifiers: TPanel 82 Left = 364 83 Top = 0 84 Width = 228 85 Height = 105 86 Align = alClient 87 BevelOuter = bvNone 88 TabOrder = 2 89 ExplicitLeft = 431 90 ExplicitWidth = 199 91 ExplicitHeight = 145 92 object lblMod: TLabel 93 Left = 0 94 Top = 0 95 Width = 228 96 Height = 13 97 Hint = 'Modifiers' 98 Align = alTop 99 Caption = 'Modifiers' 100 ParentShowHint = False 101 ShowHint = True 102 ExplicitWidth = 42 103 end 104 object lbMods: TORListBox 105 Left = 0 106 Top = 13 107 Width = 228 108 Height = 92 109 Style = lbOwnerDrawFixed 110 Align = alClient 111 Font.Charset = DEFAULT_CHARSET 112 Font.Color = clWindowText 113 Font.Height = -11 114 Font.Name = 'MS Sans Serif' 115 Font.Style = [] 116 ItemHeight = 14 117 ParentFont = False 118 ParentShowHint = False 119 ShowHint = True 120 TabOrder = 0 121 Caption = 'Modifiers' 122 ItemTipColor = clWindow 123 LongList = False 124 Pieces = '2,3' 125 TabPosInPixels = True 126 CheckBoxes = True 127 CheckEntireLine = True 128 OnClickCheck = lbModsClickCheck 129 ExplicitWidth = 199 130 ExplicitHeight = 132 131 end 132 end 133 object pnlSection: TPanel 118 134 Left = 148 119 135 Top = 0 120 Width = 204 121 Height = 92 122 Style = lbOwnerDrawFixed 136 Width = 213 137 Height = 105 138 Align = alLeft 139 BevelOuter = bvNone 140 Caption = 'pnlSection' 141 TabOrder = 1 142 object lblVType: TLabel 143 Left = 0 144 Top = 0 145 Width = 213 146 Height = 13 147 Align = alTop 148 Caption = 'Section Name' 149 ExplicitWidth = 67 150 end 151 object lbxVisits: TORListBox 152 Tag = 10 153 Left = 0 154 Top = 13 155 Width = 213 156 Height = 92 157 Style = lbOwnerDrawFixed 158 Align = alClient 159 ItemHeight = 16 160 ParentShowHint = False 161 ShowHint = True 162 TabOrder = 0 163 OnClick = lbxVisitsClick 164 Caption = 'Section Name' 165 ItemTipColor = clWindow 166 LongList = False 167 Pieces = '3,4,5' 168 TabPosInPixels = True 169 CheckBoxes = True 170 CheckEntireLine = True 171 OnClickCheck = lbxVisitsClickCheck 172 ExplicitLeft = -3 173 ExplicitTop = 7 174 ExplicitWidth = 281 175 end 176 end 177 end 178 object pnlMiddle: TPanel [2] 179 Left = 0 180 Top = 105 181 Width = 592 182 Height = 164 183 Align = alTop 184 BevelOuter = bvNone 185 TabOrder = 1 186 ExplicitTop = 145 187 ExplicitWidth = 630 188 inline fraVisitRelated: TfraVisitRelated 189 Left = 384 190 Top = 0 191 Width = 208 192 Height = 164 193 Align = alRight 194 TabOrder = 1 195 ExplicitLeft = 384 196 ExplicitWidth = 208 197 ExplicitHeight = 164 198 inherited gbVisitRelatedTo: TGroupBox 199 Width = 208 200 Height = 164 201 ExplicitWidth = 208 202 ExplicitHeight = 164 203 inherited chkMSTYes: TCheckBox 204 Top = 127 205 ExplicitTop = 127 206 end 207 inherited chkMSTNo: TCheckBox 208 Top = 127 209 ExplicitTop = 127 210 end 211 inherited chkHNCYes: TCheckBox 212 Top = 143 213 ExplicitTop = 143 214 end 215 inherited chkHNCNo: TCheckBox 216 Top = 142 217 Width = 150 218 Height = 18 219 Caption = 'Head and/or Neck Cancer No' 220 ExplicitTop = 142 221 ExplicitWidth = 150 222 ExplicitHeight = 18 223 end 224 end 225 end 226 object pnlSC: TPanel 227 Left = 0 228 Top = 0 229 Width = 384 230 Height = 164 123 231 Align = alClient 124 ItemHeight = 16 125 ParentShowHint = False 126 ShowHint = True 232 BevelOuter = bvNone 233 TabOrder = 0 234 ExplicitWidth = 422 235 object lblSCDisplay: TLabel 236 Left = 0 237 Top = 0 238 Width = 384 239 Height = 13 240 Align = alTop 241 Caption = 'Service Connection && Rated Disabilities' 242 ExplicitWidth = 186 243 end 244 object memSCDisplay: TCaptionMemo 245 Left = 0 246 Top = 13 247 Width = 384 248 Height = 151 249 Align = alClient 250 Color = clBtnFace 251 Lines.Strings = ( 252 '') 253 ReadOnly = True 254 ScrollBars = ssVertical 255 TabOrder = 0 256 OnEnter = memSCDisplayEnter 257 Caption = 'Service Connection && Rated Disabilities' 258 end 259 end 260 end 261 object pnlBottom: TPanel [3] 262 Left = 0 263 Top = 269 264 Width = 592 265 Height = 141 266 Align = alTop 267 BevelOuter = bvNone 268 TabOrder = 2 269 ExplicitTop = 309 270 ExplicitWidth = 630 271 object btnAdd: TButton 272 Left = 260 273 Top = 35 274 Width = 75 275 Height = 21 276 Caption = 'Add' 127 277 TabOrder = 1 128 OnClick = lbxVisitsClick 129 Caption = 'Section Name' 130 ItemTipColor = clWindow 131 LongList = False 132 Pieces = '3,4,5' 133 TabPosInPixels = True 134 CheckBoxes = True 135 CheckEntireLine = True 136 OnClickCheck = lbxVisitsClickCheck 137 end 138 object lbMods: TORListBox 139 Left = 355 140 Top = 0 141 Width = 260 142 Height = 92 143 Style = lbOwnerDrawFixed 278 OnClick = btnAddClick 279 end 280 object btnDelete: TButton 281 Left = 260 282 Top = 72 283 Width = 75 284 Height = 21 285 Caption = 'Remove' 286 TabOrder = 2 287 OnClick = btnDeleteClick 288 end 289 object btnPrimary: TButton 290 Left = 260 291 Top = 112 292 Width = 75 293 Height = 21 294 Caption = 'Primary' 295 TabOrder = 3 296 OnClick = btnPrimaryClick 297 end 298 object pnlBottomLeft: TPanel 299 Left = 0 300 Top = 0 301 Width = 240 302 Height = 141 303 Align = alLeft 304 BevelOuter = bvNone 305 TabOrder = 0 306 object lblProvider: TLabel 307 Left = 0 308 Top = 0 309 Width = 240 310 Height = 13 311 Align = alTop 312 Caption = 'Available providers' 313 ExplicitWidth = 89 314 end 315 object cboPtProvider: TORComboBox 316 Left = 0 317 Top = 13 318 Width = 240 319 Height = 128 320 Style = orcsSimple 321 Align = alClient 322 AutoSelect = True 323 Caption = 'Available providers' 324 Color = clWindow 325 DropDownCount = 8 326 ItemHeight = 13 327 ItemTipColor = clWindow 328 ItemTipEnable = True 329 ListItemsOnly = True 330 LongList = True 331 LookupPiece = 2 332 MaxLength = 0 333 Pieces = '2,3' 334 Sorted = False 335 SynonymChars = '<>' 336 TabOrder = 0 337 CheckEntireLine = True 338 OnChange = cboPtProviderChange 339 OnDblClick = cboPtProviderDblClick 340 OnNeedData = cboPtProviderNeedData 341 CharsNeedMatch = 1 342 ExplicitWidth = 260 343 end 344 end 345 object pnlBottomRight: TPanel 346 Left = 352 347 Top = 0 348 Width = 240 349 Height = 141 144 350 Align = alRight 145 Font.Charset = DEFAULT_CHARSET 146 Font.Color = clWindowText 147 Font.Height = -11 148 Font.Name = 'MS Sans Serif' 149 Font.Style = [] 150 ItemHeight = 14 151 ParentFont = False 152 ParentShowHint = False 153 ShowHint = True 154 TabOrder = 2 155 Caption = 'Modifiers' 156 ItemTipColor = clWindow 157 LongList = False 158 Pieces = '2,3' 159 TabPosInPixels = True 160 CheckBoxes = True 161 CheckEntireLine = True 162 OnClickCheck = lbModsClickCheck 351 BevelOuter = bvNone 352 TabOrder = 4 353 object lblCurrentProv: TLabel 354 Left = 0 355 Top = 0 356 Width = 240 357 Height = 13 358 Align = alTop 359 Caption = 'Current providers for this encounter' 360 ExplicitWidth = 165 361 end 362 object lbProviders: TORListBox 363 Left = 0 364 Top = 13 365 Width = 240 366 Height = 128 367 Align = alClient 368 ItemHeight = 13 369 ParentShowHint = False 370 ShowHint = True 371 TabOrder = 0 372 OnDblClick = lbProvidersDblClick 373 Caption = 'Current providers for this encounter' 374 ItemTipColor = clWindow 375 LongList = False 376 Pieces = '2' 377 OnChange = lbProvidersChange 378 CheckEntireLine = True 379 ExplicitTop = 11 380 ExplicitWidth = 220 381 end 163 382 end 164 383 end 165 object memSCDisplay: TCaptionMemo 166 Left = 6 167 Top = 137 168 Width = 411 169 Height = 107 170 Color = clBtnFace 171 Lines.Strings = ( 172 '') 173 ScrollBars = ssVertical 174 TabOrder = 1 175 Caption = 'Service Connection && Rated Disabilities' 384 inherited btnCancel: TBitBtn 385 Left = 517 386 Top = 414 387 TabOrder = 4 388 ExplicitLeft = 555 389 ExplicitTop = 459 176 390 end 177 object lbProviders: TORListBox 178 Left = 277 179 Top = 265 180 Width = 183 181 Height = 126 182 ItemHeight = 13 183 ParentShowHint = False 184 ShowHint = True 185 TabOrder = 7 186 OnDblClick = lbProvidersDblClick 187 Caption = 'Current providers for this encounter' 188 ItemTipColor = clWindow 189 LongList = False 190 Pieces = '2' 191 OnChange = lbProvidersChange 192 CheckEntireLine = True 193 end 194 object cboPtProvider: TORComboBox 195 Left = 6 196 Top = 265 197 Width = 183 198 Height = 126 199 Style = orcsSimple 200 AutoSelect = True 201 Caption = 'Available providers' 202 Color = clWindow 203 DropDownCount = 8 204 ItemHeight = 13 205 ItemTipColor = clWindow 206 ItemTipEnable = True 207 ListItemsOnly = True 208 LongList = True 209 LookupPiece = 2 210 MaxLength = 0 211 Pieces = '2,3' 212 Sorted = False 213 SynonymChars = '<>' 214 TabOrder = 3 215 TabStop = True 216 CheckEntireLine = True 217 OnChange = cboPtProviderChange 218 OnDblClick = cboPtProviderDblClick 219 OnNeedData = cboPtProviderNeedData 220 end 221 object btnAdd: TButton 222 Left = 196 223 Top = 275 224 Width = 75 225 Height = 21 226 Caption = 'Add' 227 TabOrder = 4 228 OnClick = btnAddClick 229 end 230 object btnDelete: TButton 231 Left = 196 232 Top = 307 233 Width = 75 234 Height = 21 235 Caption = 'Remove' 236 TabOrder = 5 237 OnClick = btnDeleteClick 238 end 239 object btnPrimary: TButton 240 Left = 196 241 Top = 355 242 Width = 75 243 Height = 21 244 Caption = 'Primary' 245 TabOrder = 6 246 OnClick = btnPrimaryClick 247 end 248 inline fraVisitRelated: TfraVisitRelated 249 Left = 426 250 Top = 112 251 Width = 192 252 Height = 137 253 TabOrder = 2 391 inherited amgrMain: TVA508AccessibilityManager 392 Left = 8 393 Top = 24 394 Data = ( 395 ( 396 'Component = btnOK' 397 'Status = stsDefault') 398 ( 399 'Component = btnCancel' 400 'Status = stsDefault') 401 ( 402 'Component = frmVisitType' 403 'Status = stsDefault') 404 ( 405 'Component = pnlTop' 406 'Status = stsDefault') 407 ( 408 'Component = pnlLeft' 409 'Status = stsDefault') 410 ( 411 'Component = lstVTypeSection' 412 'Label = lblVTypeSection' 413 'Status = stsOK') 414 ( 415 'Component = pnlMiddle' 416 'Status = stsDefault') 417 ( 418 'Component = fraVisitRelated' 419 'Status = stsDefault') 420 ( 421 'Component = fraVisitRelated.gbVisitRelatedTo' 422 'Status = stsDefault') 423 ( 424 'Component = fraVisitRelated.chkSCYes' 425 'Status = stsDefault') 426 ( 427 'Component = fraVisitRelated.chkAOYes' 428 'Status = stsDefault') 429 ( 430 'Component = fraVisitRelated.chkIRYes' 431 'Status = stsDefault') 432 ( 433 'Component = fraVisitRelated.chkECYes' 434 'Status = stsDefault') 435 ( 436 'Component = fraVisitRelated.chkMSTYes' 437 'Status = stsDefault') 438 ( 439 'Component = fraVisitRelated.chkMSTNo' 440 'Status = stsDefault') 441 ( 442 'Component = fraVisitRelated.chkECNo' 443 'Status = stsDefault') 444 ( 445 'Component = fraVisitRelated.chkIRNo' 446 'Status = stsDefault') 447 ( 448 'Component = fraVisitRelated.chkAONo' 449 'Status = stsDefault') 450 ( 451 'Component = fraVisitRelated.chkSCNo' 452 'Status = stsDefault') 453 ( 454 'Component = fraVisitRelated.chkHNCYes' 455 'Status = stsDefault') 456 ( 457 'Component = fraVisitRelated.chkHNCNo' 458 'Status = stsDefault') 459 ( 460 'Component = fraVisitRelated.chkCVYes' 461 'Status = stsDefault') 462 ( 463 'Component = fraVisitRelated.chkCVNo' 464 'Status = stsDefault') 465 ( 466 'Component = fraVisitRelated.chkSHDYes' 467 'Status = stsDefault') 468 ( 469 'Component = fraVisitRelated.chkSHDNo' 470 'Status = stsDefault') 471 ( 472 'Component = fraVisitRelated.lblSCNo' 473 'Status = stsDefault') 474 ( 475 'Component = fraVisitRelated.lblSCYes' 476 'Status = stsDefault') 477 ( 478 'Component = pnlSC' 479 'Status = stsDefault') 480 ( 481 'Component = memSCDisplay' 482 'Label = lblSCDisplay' 483 'Status = stsOK') 484 ( 485 'Component = pnlBottom' 486 'Status = stsDefault') 487 ( 488 'Component = btnAdd' 489 'Status = stsDefault') 490 ( 491 'Component = btnDelete' 492 'Status = stsDefault') 493 ( 494 'Component = btnPrimary' 495 'Status = stsDefault') 496 ( 497 'Component = pnlBottomLeft' 498 'Status = stsDefault') 499 ( 500 'Component = cboPtProvider' 501 'Label = lblProvider' 502 'Status = stsOK') 503 ( 504 'Component = pnlBottomRight' 505 'Status = stsDefault') 506 ( 507 'Component = lbProviders' 508 'Label = lblCurrentProv' 509 'Status = stsOK') 510 ( 511 'Component = pnlModifiers' 512 'Status = stsDefault') 513 ( 514 'Component = lbMods' 515 'Label = lblMod' 516 'Status = stsOK') 517 ( 518 'Component = pnlSection' 519 'Status = stsDefault') 520 ( 521 'Component = lbxVisits' 522 'Label = lblVType' 523 'Status = stsOK')) 254 524 end 255 525 end -
cprs/trunk/CPRS-Chart/Encounter/fVisitType.pas
r456 r829 6 6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 7 7 fPCEBase, StdCtrls, CheckLst, ORCtrls, ExtCtrls, Buttons, uPCE, rPCE, ORFn, rCore, 8 ComCtrls, mVisitRelated ;8 ComCtrls, mVisitRelated, VA508AccessibilityManager; 9 9 10 10 type 11 11 TfrmVisitType = class(TfrmPCEBase) 12 lblVType: TLabel; 12 pnlTop: TPanel; 13 splLeft: TSplitter; 14 splRight: TSplitter; 15 pnlLeft: TPanel; 16 lstVTypeSection: TORListBox; 17 pnlMiddle: TPanel; 18 fraVisitRelated: TfraVisitRelated; 19 pnlSC: TPanel; 13 20 lblSCDisplay: TLabel; 14 lblVTypeSection: TLabel;15 21 memSCDisplay: TCaptionMemo; 16 lbProviders: TORListBox; 17 lblCurrentProv: TLabel; 18 cboPtProvider: TORComboBox; 19 lblProvider: TLabel; 22 pnlBottom: TPanel; 20 23 btnAdd: TButton; 21 24 btnDelete: TButton; 22 25 btnPrimary: TButton; 23 fraVisitRelated: TfraVisitRelated; 24 lstVTypeSection: TORListBox; 25 lbxVisits: TORListBox; 26 pnlBottomLeft: TPanel; 27 lblProvider: TLabel; 28 cboPtProvider: TORComboBox; 29 pnlBottomRight: TPanel; 30 lbProviders: TORListBox; 31 lblCurrentProv: TLabel; 32 lblVTypeSection: TLabel; 33 pnlModifiers: TPanel; 26 34 lbMods: TORListBox; 27 35 lblMod: TLabel; 28 pnl Main: TPanel;29 pnlLeft: TPanel;30 splLeft: TSplitter;36 pnlSection: TPanel; 37 lbxVisits: TORListBox; 38 lblVType: TLabel; 31 39 procedure lstVTypeSectionClick(Sender: TObject); 32 40 procedure FormCloseQuery(Sender: TObject; var CanClose: Boolean); … … 43 51 procedure FormResize(Sender: TObject); 44 52 procedure lbxVisitsClickCheck(Sender: TObject; Index: Integer); 45 procedure splLeftMoved(Sender: TObject);46 procedure splRightMoved(Sender: TObject);47 53 procedure lbModsClickCheck(Sender: TObject; Index: Integer); 48 54 procedure lbxVisitsClick(Sender: TObject); 55 procedure memSCDisplayEnter(Sender: TObject); 49 56 protected 50 57 FSplitterMove: boolean; … … 76 83 77 84 uses 78 fEncounterFrame, uCore, uConst ;85 fEncounterFrame, uCore, uConst, VA508AccessibilityRouter; 79 86 80 87 const … … 198 205 RefreshProviders; 199 206 FLastMods := uEncPCEData.VisitType.Modifiers; 207 fraVisitRelated.TabStop := FALSE; 200 208 end; 201 209 … … 325 333 v, i: integer; 326 334 s: string; 335 padding, size: integer; 336 btnOffset: integer; 327 337 begin 328 338 if FSplitterMove then 329 339 FSplitterMove := FALSE 330 340 else 331 begin 332 inherited; 333 FSectionTabs[0] := -(lbxVisits.width - LBCheckWidthSpace - MainFontWidth - ScrollBarWidth); 334 FSectionTabs[1] := -(lbxVisits.width - (6*MainFontWidth) - ScrollBarWidth); 335 if(FSectionTabs[0] <= FSectionTabs[1]) then FSectionTabs[0] := FSectionTabs[1]+2; 336 lbxVisits.TabPositions := SectionString; 337 v := (lbMods.width - LBCheckWidthSpace - (4*MainFontWidth) - ScrollBarWidth); 338 s := ''; 339 for i := 1 to 20 do 340 begin 341 if s <> '' then s := s + ','; 342 s := s + inttostr(v); 343 if(v<0) then 344 dec(v,32) 345 else 346 inc(v,32); 347 end; 348 lbMods.TabPositions := s; 349 end; 341 begin 342 // inherited; 343 FSectionTabs[0] := -(lbxVisits.width - LBCheckWidthSpace - MainFontWidth - ScrollBarWidth); 344 FSectionTabs[1] := -(lbxVisits.width - (6*MainFontWidth) - ScrollBarWidth); 345 if(FSectionTabs[0] <= FSectionTabs[1]) then FSectionTabs[0] := FSectionTabs[1]+2; 346 lbxVisits.TabPositions := SectionString; 347 v := (lbMods.width - LBCheckWidthSpace - (4*MainFontWidth) - ScrollBarWidth); 348 s := ''; 349 for i := 1 to 20 do 350 begin 351 if s <> '' then s := s + ','; 352 s := s + inttostr(v); 353 if(v<0) then 354 dec(v,32) 355 else 356 inc(v,32); 357 end; 358 lbMods.TabPositions := s; 359 end; 360 btnOffset := btnAdd.Width div 7; 361 padding := btnAdd.Width + (btnOffset * 2); 362 size := (ClientWidth - padding) div 2; 363 pnlBottomLeft.Width := size; 364 pnlBottomRight.Width := size; 365 btnAdd.Left := size + btnOffset; 366 btnDelete.Left := size + btnOffset; 367 btnPrimary.Left := size + btnOffset; 368 btnOK.top := ClientHeight - btnOK.Height - 4; 369 btnCancel.top := btnOK.Top; 370 btnCancel.Left := ClientWidth - btnCancel.Width - 4; 371 btnOK.Left := btnCancel.Left - btnOK.Width - 4; 372 size := ClientHeight - btnOK.Height - pnlMiddle.Height - pnlBottom.Height - 8; 373 pnlTop.Height := size; 350 374 end; 351 375 … … 479 503 end; 480 504 481 procedure TfrmVisitType.splLeftMoved(Sender: TObject);482 begin483 inherited;484 lblVType.Left := lbxVisits.Left + pnlMain.Left;485 FSplitterMove := TRUE;486 FormResize(Sender);487 end;488 489 procedure TfrmVisitType.splRightMoved(Sender: TObject);490 begin491 inherited;492 lblMod.Left := lbMods.Left + pnlMain.Left;493 FSplitterMove := TRUE;494 FormResize(Sender);495 end;496 497 505 procedure TfrmVisitType.lbModsClickCheck(Sender: TObject; Index: Integer); 498 506 var … … 527 535 end; 528 536 537 procedure TfrmVisitType.memSCDisplayEnter(Sender: TObject); 538 begin 539 inherited; 540 memSCDisplay.SelStart := 0; 541 end; 542 529 543 initialization 544 SpecifyFormIsNotADialog(TfrmVisitType); 545 530 546 //frmVisitType.CreateProviderList; 531 547 -
cprs/trunk/CPRS-Chart/Encounter/mVisitRelated.dfm
r456 r829 2 2 Left = 0 3 3 Top = 0 4 Width = 1925 Height = 1 364 Width = 206 5 Height = 172 6 6 TabOrder = 0 7 object bvlSCFrame: TBevel7 object gbVisitRelatedTo: TGroupBox 8 8 Left = 0 9 Top = 1410 Width = 19111 Height = 11912 Shape = bsFrame13 end14 object lblSCYes: TStaticText15 Left = 316 9 Top = 0 17 Width = 22 18 Height = 13 19 AutoSize = False 20 Caption = 'Yes' 21 TabOrder = 14 22 end 23 object lblSCNo: TStaticText 24 Left = 26 25 Top = 0 26 Width = 18 27 Height = 13 28 AutoSize = False 29 Caption = 'No' 30 TabOrder = 15 31 end 32 object lblSCSelect: TStaticText 33 Left = 44 34 Top = 0 35 Width = 131 36 Height = 13 37 Alignment = taCenter 38 AutoSize = False 10 Width = 206 11 Height = 172 12 Align = alClient 39 13 Caption = 'Visit Related To' 40 TabOrder = 1641 end42 object chkSCYes: TCheckBox43 Tag = 144 Left = 645 Top = 1746 Width = 1647 Height = 1748 14 TabOrder = 0 49 OnClick = chkClick 50 end 51 object chkAOYes: TCheckBox 52 Tag = 2 53 Left = 6 54 Top = 49 55 Width = 16 56 Height = 17 57 TabOrder = 4 58 OnClick = chkClick 59 end 60 object chkIRYes: TCheckBox 61 Tag = 3 62 Left = 6 63 Top = 65 64 Width = 16 65 Height = 17 66 TabOrder = 6 67 OnClick = chkClick 68 end 69 object chkECYes: TCheckBox 70 Tag = 4 71 Left = 6 72 Top = 81 73 Width = 16 74 Height = 17 75 TabOrder = 8 76 OnClick = chkClick 77 end 78 object chkMSTYes: TCheckBox 79 Tag = 5 80 Left = 6 81 Top = 97 82 Width = 16 83 Height = 17 84 TabOrder = 10 85 OnClick = chkClick 86 end 87 object chkMSTNo: TCheckBox 88 Tag = 15 89 Left = 26 90 Top = 97 91 Width = 160 92 Height = 17 93 Caption = 'MST' 94 TabOrder = 11 95 OnClick = chkClick 96 end 97 object chkECNo: TCheckBox 98 Tag = 14 99 Left = 26 100 Top = 81 101 Width = 160 102 Height = 17 103 Caption = 'Environmental Contaminants' 104 TabOrder = 9 105 OnClick = chkClick 106 end 107 object chkIRNo: TCheckBox 108 Tag = 13 109 Left = 26 110 Top = 65 111 Width = 160 112 Height = 17 113 Caption = 'Ionizing Radiation Exposure' 114 TabOrder = 7 115 OnClick = chkClick 116 end 117 object chkAONo: TCheckBox 118 Tag = 12 119 Left = 26 120 Top = 49 121 Width = 160 122 Height = 17 123 Caption = 'Agent Orange Exposure' 124 TabOrder = 5 125 OnClick = chkClick 126 end 127 object chkSCNo: TCheckBox 128 Tag = 11 129 Left = 26 130 Top = 17 131 Width = 160 132 Height = 17 133 Caption = 'Service Connected Condition' 134 TabOrder = 1 135 OnClick = chkClick 136 end 137 object chkHNCYes: TCheckBox 138 Tag = 6 139 Left = 6 140 Top = 113 141 Width = 16 142 Height = 17 143 TabOrder = 12 144 OnClick = chkClick 145 end 146 object chkHNCNo: TCheckBox 147 Tag = 16 148 Left = 26 149 Top = 113 150 Width = 160 151 Height = 17 152 Caption = 'Head and/or Neck Cancer' 153 TabOrder = 13 154 OnClick = chkClick 155 end 156 object chkCVYes: TCheckBox 157 Tag = 7 158 Left = 6 159 Top = 33 160 Width = 16 161 Height = 17 162 TabOrder = 2 163 OnClick = chkClick 164 end 165 object chkCVNo: TCheckBox 166 Tag = 17 167 Left = 26 168 Top = 33 169 Width = 160 170 Height = 17 171 Caption = 'Combat Vet (Combat Related)' 172 TabOrder = 3 173 OnClick = chkClick 15 object chkSCYes: TCheckBox 16 Tag = 1 17 Left = 7 18 Top = 33 19 Width = 14 20 Height = 17 21 Caption = 'Service Connected Condition Yes' 22 TabOrder = 0 23 OnClick = chkClick 24 end 25 object chkAOYes: TCheckBox 26 Tag = 2 27 Left = 7 28 Top = 65 29 Width = 14 30 Height = 17 31 Caption = 'Agent Orange Exposure Yes' 32 TabOrder = 4 33 OnClick = chkClick 34 end 35 object chkIRYes: TCheckBox 36 Tag = 3 37 Left = 7 38 Top = 81 39 Width = 14 40 Height = 17 41 Caption = 'Ionizing Radiation Exposure Yes' 42 TabOrder = 6 43 OnClick = chkClick 44 end 45 object chkECYes: TCheckBox 46 Tag = 4 47 Left = 7 48 Top = 97 49 Width = 14 50 Height = 17 51 Caption = 'Southwest Asia Conditions Yes' 52 TabOrder = 8 53 OnClick = chkClick 54 end 55 object chkMSTYes: TCheckBox 56 Tag = 5 57 Left = 7 58 Top = 129 59 Width = 14 60 Height = 17 61 Caption = 'MST Yes' 62 TabOrder = 12 63 OnClick = chkClick 64 end 65 object chkMSTNo: TCheckBox 66 Tag = 15 67 Left = 27 68 Top = 129 69 Width = 40 70 Height = 17 71 Caption = 'MST No' 72 TabOrder = 13 73 OnClick = chkClick 74 end 75 object chkECNo: TCheckBox 76 Tag = 14 77 Left = 27 78 Top = 97 79 Width = 148 80 Height = 17 81 Caption = 'Southwest Asia Conditions No' 82 TabOrder = 9 83 OnClick = chkClick 84 end 85 object chkIRNo: TCheckBox 86 Tag = 13 87 Left = 27 88 Top = 81 89 Width = 154 90 Height = 17 91 Caption = 'Ionizing Radiation Exposure No' 92 TabOrder = 7 93 OnClick = chkClick 94 end 95 object chkAONo: TCheckBox 96 Tag = 12 97 Left = 27 98 Top = 65 99 Width = 136 100 Height = 17 101 Caption = 'Agent Orange Exposure No' 102 TabOrder = 5 103 OnClick = chkClick 104 end 105 object chkSCNo: TCheckBox 106 Tag = 11 107 Left = 27 108 Top = 33 109 Width = 158 110 Height = 17 111 Caption = 'Service Connected Condition No' 112 TabOrder = 1 113 OnClick = chkClick 114 end 115 object chkHNCYes: TCheckBox 116 Tag = 6 117 Left = 7 118 Top = 145 119 Width = 14 120 Height = 17 121 Caption = 'Head and/or Neck Cancer Yes' 122 TabOrder = 14 123 OnClick = chkClick 124 end 125 object chkHNCNo: TCheckBox 126 Tag = 16 127 Left = 27 128 Top = 145 129 Width = 144 130 Height = 17 131 Caption = 'Head and/or Neck Cancer No' 132 TabOrder = 15 133 OnClick = chkClick 134 end 135 object chkCVYes: TCheckBox 136 Tag = 7 137 Left = 7 138 Top = 49 139 Width = 14 140 Height = 17 141 Caption = 'Combat Vet (Combat Related) Yes' 142 TabOrder = 2 143 OnClick = chkClick 144 end 145 object chkCVNo: TCheckBox 146 Tag = 17 147 Left = 27 148 Top = 49 149 Width = 165 150 Height = 17 151 Caption = 'Combat Vet (Combat Related) No' 152 TabOrder = 3 153 OnClick = chkClick 154 end 155 object chkSHDYes: TCheckBox 156 Tag = 8 157 Left = 7 158 Top = 112 159 Width = 14 160 Height = 17 161 Caption = 'Shipboard Hazard and Defense Yes' 162 TabOrder = 10 163 OnClick = chkClick 164 end 165 object chkSHDNo: TCheckBox 166 Tag = 18 167 Left = 27 168 Top = 112 169 Width = 168 170 Height = 17 171 Caption = 'Shipboard Hazard and Defense No' 172 TabOrder = 11 173 OnClick = chkClick 174 end 175 object lblSCNo: TStaticText 176 Left = 27 177 Top = 16 178 Width = 18 179 Height = 13 180 AutoSize = False 181 Caption = 'No' 182 TabOrder = 17 183 end 184 object lblSCYes: TStaticText 185 Left = 4 186 Top = 16 187 Width = 22 188 Height = 13 189 AutoSize = False 190 Caption = 'Yes' 191 TabOrder = 16 192 end 174 193 end 175 194 end -
cprs/trunk/CPRS-Chart/Encounter/mVisitRelated.pas
r456 r829 9 9 type 10 10 TfraVisitRelated = class(TFrame) 11 lblSCYes: TStaticText; 12 lblSCNo: TStaticText; 13 lblSCSelect: TStaticText; 14 bvlSCFrame: TBevel; 11 gbVisitRelatedTo: TGroupBox; 15 12 chkSCYes: TCheckBox; 16 13 chkAOYes: TCheckBox; … … 27 24 chkCVYes: TCheckBox; 28 25 chkCVNo: TCheckBox; 26 chkSHDYes: TCheckBox; 27 chkSHDNo: TCheckBox; 28 lblSCNo: TStaticText; 29 lblSCYes: TStaticText; 29 30 procedure chkClick(Sender: TObject); 30 31 private … … 33 34 procedure SetCheckState(CheckYes, CheckNo: TCheckBox; CheckState: Integer); 34 35 function GetCheckState(CheckYes, CheckNo: TCheckBox): Integer; 36 35 37 public 36 38 constructor Create(AOwner: TComponent); override; 37 39 procedure GetRelated(PCEData: TPCEData); overload; 38 40 procedure GetRelated(var ASCRelated, AAORelated, AIRRelated, 39 AECRelated, AMSTRelated, AHNCRelated, ACVRelated : integer); overload;41 AECRelated, AMSTRelated, AHNCRelated, ACVRelated,ASHDRelated: integer); overload; 40 42 procedure InitAllow(SCCond: TSCConditions); 41 43 procedure InitRelated(PCEData: TPCEData); overload; 42 44 procedure InitRelated(const ASCRelated, AAORelated, AIRRelated, 43 AECRelated, AMSTRelated, AHNCRelated, ACVRelated: integer); overload; 45 AECRelated, AMSTRelated, AHNCRelated, ACVRelated,ASHDRelated: integer); overload; 46 44 47 end; 45 48 46 49 implementation 50 51 uses VA508AccessibilityRouter; 47 52 48 53 {$R *.DFM} … … 56 61 TAG_HNCYES = 6; 57 62 TAG_CVYES = 7; 63 TAG_SHDYES = 8; 58 64 TAG_SCNO = 11; 59 65 TAG_AONO = 12; … … 63 69 TAG_HNCNO = 16; 64 70 TAG_CVNO = 17; 71 TAG_SHDNO = 18; 72 65 73 66 74 procedure TfraVisitRelated.chkClick(Sender: TObject); … … 74 82 inherited; 75 83 if Sender is TCheckBox then with TCheckBox(Sender) do case Tag of 76 TAG_SCYES: if Checked then chkSCNo.Checked := False; 77 TAG_AOYES: if Checked then chkAONo.Checked := False; 78 TAG_IRYES: if Checked then chkIRNo.Checked := False; 79 TAG_ECYES: if Checked then chkECNo.Checked := False; 80 TAG_MSTYES: if Checked then chkMSTNo.Checked := False; 81 TAG_HNCYES: if Checked then chkHNCNo.Checked := False; 82 TAG_CVYES: if Checked then chkCVNo.Checked := False; 83 TAG_SCNO: if Checked then chkSCYes.Checked := False; 84 TAG_AONO: if Checked then chkAOYes.Checked := False; 85 TAG_IRNO: if Checked then chkIRYes.Checked := False; 86 TAG_ECNO: if Checked then chkECYes.Checked := False; 87 TAG_MSTNO: if Checked then chkMSTYes.Checked := False; 88 TAG_HNCNO: if Checked then chkHNCYes.Checked := False; 89 TAG_CVNO: if Checked then chkCVYes.Checked := False; 84 TAG_SCYES: if Checked then chkSCNo.Checked := False; 85 TAG_AOYES: if Checked then chkAONo.Checked := False; 86 TAG_IRYES: if Checked then chkIRNo.Checked := False; 87 TAG_ECYES: if Checked then chkECNo.Checked := False; 88 TAG_MSTYES: if Checked then chkMSTNo.Checked := False; 89 TAG_HNCYES: if Checked then chkHNCNo.Checked := False; 90 TAG_CVYES: if Checked then chkCVNo.Checked := False; 91 TAG_SHDYES: if Checked then chkSHDNo.Checked := False; 92 TAG_SCNO: if Checked then chkSCYes.Checked := False; 93 TAG_AONO: if Checked then chkAOYes.Checked := False; 94 TAG_IRNO: if Checked then chkIRYes.Checked := False; 95 TAG_ECNO: if Checked then chkECYes.Checked := False; 96 TAG_MSTNO: if Checked then chkMSTYes.Checked := False; 97 TAG_HNCNO: if Checked then chkHNCYes.Checked := False; 98 TAG_CVNO: if Checked then chkCVYes.Checked := False; 99 TAG_SHDNO: if Checked then chkSHDYes.Checked := False; 90 100 end; 91 101 if chkSCYes.Checked then … … 94 104 DisableCheck(chkIRYes); 95 105 DisableCheck(chkECYes); 106 DisableCheck(chkSHDYes); 96 107 // DisableCheck(chkMSTYes); 97 108 DisableCheck(chkAONo); 98 109 DisableCheck(chkIRNo); 99 110 DisableCheck(chkECNo); 111 DisableCheck(chkSHDNo); 100 112 // DisableCheck(chkMSTNo); 101 113 end else … … 105 117 SetCheckEnable(chkIRYes, chkIRNo, FSCCond.IRAllow); 106 118 SetCheckEnable(chkECYes, chkECNo, FSCCond.ECAllow); 119 SetCheckEnable(chkSHDYEs, chkSHDNo, FSCCond.SHDAllow); 107 120 end; 108 121 SetCheckEnable(chkMSTYes, chkMSTNo, FSCCond.MSTAllow); 109 122 SetCheckEnable(chkHNCYes, chkHNCNo, FSCCond.HNCAllow); 110 SetCheckEnable(chkCVYes, chkCVNo, FSCCond.CVAllow); 111 if chkAOYes.Checked or chkIRYes.Checked or chkECYes.Checked then //or chkMSTYes.Checked then 112 begin 113 chkSCYes.Checked := False; 114 chkSCNo.Checked := True; 123 SetCheckEnable(chkCVYes, chkCVNo, FSCCond.CVAllow); 124 125 if chkAOYes.Checked or chkIRYes.Checked or chkECYes.Checked or chkSHDYes.Checked then //or chkMSTYes.Checked then 126 begin 127 if FSCCond.SCAllow then 128 begin 129 chkSCYes.Checked := False; 130 chkSCNo.Checked := True; 131 end; 115 132 end; 116 133 end; … … 118 135 constructor TfraVisitRelated.Create(AOwner: TComponent); 119 136 begin 120 inherited ;121 137 inherited Create(AOwner); 138 TabStop := FALSE; 122 139 lblSCYes.Height := 13; 123 140 lblSCNo.Height := 13; 124 // chkHNCYes.Visible := HNCOK;125 // chkHNCNo.Visible := HNCOK;126 // if not HNCOK then127 // begin128 // height := height - chkHNCYes.height + 1;129 // bvlSCFrame.height := bvlSCFrame.height - chkHNCYes.height + 1;130 // end;131 141 end; 132 142 … … 147 157 PCEData.HNCRelated := GetCheckState(chkHNCYes, chkHNCNo); 148 158 PCEData.CVRelated := GetCheckState(chkCVYes, chkCVNo); 159 PCEData.SHADRelated := GetCheckState(chkSHDYes, chkSHDNo); 149 160 end; 150 161 151 162 procedure TfraVisitRelated.GetRelated(var ASCRelated, AAORelated, 152 AIRRelated, AECRelated, AMSTRelated, AHNCRelated, ACVRelated : integer);163 AIRRelated, AECRelated, AMSTRelated, AHNCRelated, ACVRelated, ASHDRelated: integer); 153 164 begin 154 165 ASCRelated := GetCheckState(chkSCYes, chkSCNo); … … 159 170 AHNCRelated := GetCheckState(chkHNCYes, chkHNCNo); 160 171 ACVRelated := GetCheckState(chkCVYes, chkCVNo); 172 ASHDRelated := GetCheckState(chkSHDYes, chkSHDNo); 161 173 end; 162 174 … … 173 185 SetCheckEnable(chkHNCYes, chkHNCNo, HNCAllow); 174 186 SetCheckEnable(chkCVYes, chkCVNo, CVAllow); 187 SetCheckEnable(chkSHDYes, chkSHDNo, SHDAllow); 175 188 end; 176 189 end; … … 185 198 SetCheckState(chkHNCYes, chkHNCNo, PCEData.HNCRelated); 186 199 SetCheckState(chkCVYes, chkCVNo, PCEData.CVRelated); 200 SetCheckState(chkSHDYes, chkSHDNo, PCEData.SHADRelated); 201 //HDS00015356: GWOT Default, if Related no specified default to "Yes" 202 // -1=Null, 0=No, 1 = Yes 203 if FSCCond.CVAllow then 204 begin 205 if PCEData.CVRelated = SCC_NA then 206 chkCVYes.Checked := True; 207 end; 187 208 end; 188 209 189 210 procedure TfraVisitRelated.InitRelated(const ASCRelated, AAORelated, AIRRelated, 190 AECRelated, AMSTRelated, AHNCRelated, ACVRelated : integer);211 AECRelated, AMSTRelated, AHNCRelated, ACVRelated, ASHDRelated: integer); 191 212 begin 192 213 SetCheckState(chkSCYes, chkSCNo, ASCRelated); … … 197 218 SetCheckState(chkHNCYes, chkHNCNo, AHNCRelated); 198 219 SetCheckState(chkCVYes, chkCVNo, ACVRelated); 220 SetCheckState(chkSHDYes, chkSHDNo, ASHDRelated); 221 //HDS00015356: GWOT Default, if Related no specified default to "Yes" 222 // -1=Null, 0=No, 1 = Yes 223 if FSCCond.CVAllow then 224 begin 225 if ACVRelated = SCC_NA then 226 chkCVYes.Checked := True; 227 end; 199 228 end; 200 229 … … 226 255 end; 227 256 257 258 initialization 259 SpecifyFormIsNotADialog(TfraVisitRelated); 260 228 261 end. -
cprs/trunk/CPRS-Chart/Encounter/rPCE.pas
r456 r829 42 42 HNCAllow: Boolean; // prompt for Head or Neck Cancer 43 43 HNCDflt: Boolean; // default if prompting Head or Neck Cancer 44 CVAllow: Boolean; // prompt for Combat Veteran Related 45 CVDflt: Boolean; // default if prompting Comabt Veteran 44 CVAllow: Boolean; // prompt for Combat Veteran Related 45 CVDflt: Boolean; // default if prompting Comabt Veteran 46 SHDAllow: Boolean; // prompt for Shipboard Hazard and Defense 47 SHDDflt: Boolean; // default if prompting Shipboard Hazard and Defense 46 48 end; 47 49 … … 149 151 ANoteIEN: integer): string; 150 152 function IsUserAProvider(AUser: Int64; ADate: TFMDateTime): boolean; 153 function IsUserAUSRProvider(AUser: Int64; ADate: TFMDateTime): boolean; 151 154 function IsCancelOrNoShow(ANote: integer): boolean; 152 155 function IsNonCountClinic(ALocation: integer): boolean; … … 242 245 end; 243 246 CallV('ORWPCE LEX', [x, CodeSys, ADate]); 244 Dest.Assign(RPCBrokerV.Results);247 FastAssign(RPCBrokerV.Results, Dest); 245 248 end; 246 249 … … 405 408 uVTypeLastDate := EncDt; 406 409 end; 407 Dest.Assign(uVTypeForLoc);410 FastAssign(uVTypeForLoc, Dest); 408 411 end; 409 412 … … 1072 1075 CVAllow := Piece(Piece(x, ';', 7), U, 1) = '1'; 1073 1076 CVDflt := Piece(Piece(x, ';', 7), U, 2) = '1'; 1077 SHDAllow := Piece(Piece(x, ';', 8), U, 1) = '1'; 1078 SHDDflt := Piece(Piece(x, ';', 8), U, 2) = '1'; 1074 1079 end; 1075 1080 end; … … 1079 1084 begin 1080 1085 CallV('ORWPCE SCDIS', [Patient.DFN]); 1081 Dest.Assign(RPCBrokerV.Results);1086 FastAssign(RPCBrokerV.Results, Dest); 1082 1087 end; 1083 1088 … … 1088 1093 else 1089 1094 CallV('ORWPCE PCE4NOTE', [ANoteIEN]); 1090 Dest.Assign(RPCBrokerV.Results);1095 FastAssign(RPCBrokerV.Results, Dest); 1091 1096 end; 1092 1097 … … 1155 1160 end; 1156 1161 end; 1157 uHasCPT.AddStrings(RPCBrokerV.Results);1162 FastAddStrings(RPCBrokerV.Results, uHasCPT); 1158 1163 end; 1159 1164 end; … … 1219 1224 begin 1220 1225 if idx = 0 then 1221 tCallV(TmpSL,RPC,[nil]) 1226 begin 1227 if (typ = 1) or (typ = 2) then 1228 tCallV(TmpSL,RPC,[uEncPCEData.VisitDateTime]) 1229 else 1230 tCallV(TmpSL,RPC,[nil]); 1231 end 1222 1232 else 1223 1233 tCallV(TmpSL,RPC,[idx]); … … 1244 1254 end; 1245 1255 end; 1246 Dest.Assign(TmpSL);1256 FastAssign(TmpSL, Dest); 1247 1257 finally 1248 1258 TmpSL.Free; … … 1454 1464 end; 1455 1465 1466 function IsUserAUSRProvider(AUser: Int64; ADate: TFMDateTime): boolean; 1467 begin 1468 Result := (sCallV('TIU IS USER A USR PROVIDER', [AUser, ADate]) = '1'); 1469 end; 1470 1456 1471 //function HNCOK: boolean; 1457 1472 //begin -
cprs/trunk/CPRS-Chart/Encounter/uPCE.pas
r456 r829 1 1 unit uPCE; 2 2 3 3 interface 4 4 … … 220 220 FHNCRelated: Integer; // 221 221 FCVRelated: Integer; // 222 FSHADRelated: Integer; // 222 223 FVisitType: TPCEProc; // 223 224 FProviders: TPCEProviderList; … … 248 249 procedure SetHNCRelated(Value: Integer); 249 250 procedure SetCVRelated(Value: Integer); 251 procedure SetSHADRelated(Value: Integer); 250 252 procedure SetEncUseCurr(Value: Boolean); 251 253 function GetHasData: Boolean; … … 286 288 function StrExams: string; 287 289 function StrVisitType(const ASCRelated, AAORelated, AIRRelated, AECRelated, 288 AMSTRelated, AHNCRelated, ACVRelated : Integer): string; overload;290 AMSTRelated, AHNCRelated, ACVRelated, ASHADRelated: Integer): string; overload; 289 291 function StrVisitType: string; overload; 290 292 function StandAlone: boolean; … … 311 313 property HNCRelated: Integer read FHNCRelated write SetHNCRelated; 312 314 property CVRelated: Integer read FCVRelated write SetCVRelated; 315 property SHADRelated: Integer read FSHADRelated write SetSHADRelated; 313 316 property VisitType: TPCEProc read FVisitType write SetVisitType; 314 317 property VisitString: string read GetVisitString; … … 596 599 begin 597 600 Result := PCESetsOfCodes.Add(Hdr); 598 PCESetsOfCodes.AddStrings(TempSL);601 FastAddStrings(TempSL, PCESetsOfCodes); 599 602 end; 600 603 finally … … 618 621 HistLocations.Insert(0,'0'); 619 622 end; 620 List.AddStrings(HistLocations);623 FastAddStrings(HistLocations, List); 621 624 end 622 625 else … … 754 757 begin 755 758 idx := PCESetsOfCodes.Add(Hdr); 756 PCESetsOfCodes.AddStrings(TempSL);759 FastAddStrings(TempSL, PCESetsOfCodes); 757 760 end; 758 761 finally … … 1639 1642 FHNCRelated := SCC_NA; 1640 1643 FCVRelated := SCC_NA; 1644 FSHADRelated := SCC_NA; 1641 1645 FSCChanged := False; 1642 1646 end; … … 1695 1699 FHNCRelated := SCC_NA; 1696 1700 FCVRelated := SCC_NA; 1701 FSHADRelated := SCC_NA; 1697 1702 1698 1703 ClearList(FDiagnoses); … … 2075 2080 if(FileCat = 'E') and (FHistoricalLocation <> '') then 2076 2081 Add('VST^OL^' + FHistoricalLocation); // Outside Location 2077 2078 //Add('PRV^' + IntToStr(FEncProvider)); // Encounter Provider 2079 //Add('PRV^' + IntToStr(UProvider.IEN)); // Encounter Provider 2080 {with FProviders do for i := 0 to Count - 1 do with TPCEProvider(Items[i]) do 2081 begin 2082 PCEList.Add(DelimitedStr); 2083 end;} 2084 PCEList.AddStrings(FProviders); 2085 2082 FastAddStrings(FProviders, PCEList); 2083 2086 2084 if FSCChanged then 2087 2085 begin 2088 if FSCRelated <> SCC_NA then Add('VST^SC^' + IntToStr(FSCRelated));2089 if FAORelated <> SCC_NA then Add('VST^AO^' + IntToStr(FAORelated));2090 if FIRRelated <> SCC_NA then Add('VST^IR^' + IntToStr(FIRRelated));2091 if FECRelated <> SCC_NA then Add('VST^EC^' + IntToStr(FECRelated));2092 if FMSTRelated <> SCC_NA then Add('VST^MST^' + IntToStr(FMSTRelated));2093 // if HNCOK and (FHNCRelated <> SCC_NA) then 2094 if F HNCRelated <> SCC_NA then Add('VST^HNC^' + IntToStr(FHNCRelated));2095 if F CVRelated <> SCC_NA then Add('VST^CV^' + IntToStr(FCVRelated));2086 if FSCRelated <> SCC_NA then Add('VST^SC^' + IntToStr(FSCRelated)); 2087 if FAORelated <> SCC_NA then Add('VST^AO^' + IntToStr(FAORelated)); 2088 if FIRRelated <> SCC_NA then Add('VST^IR^' + IntToStr(FIRRelated)); 2089 if FECRelated <> SCC_NA then Add('VST^EC^' + IntToStr(FECRelated)); 2090 if FMSTRelated <> SCC_NA then Add('VST^MST^' + IntToStr(FMSTRelated)); 2091 if FHNCRelated <> SCC_NA then Add('VST^HNC^'+ IntToStr(FHNCRelated)); 2092 if FCVRelated <> SCC_NA then Add('VST^CV^' + IntToStr(FCVRelated)); 2093 if FSHADRelated <> SCC_NA then Add('VST^SHD^'+ IntToStr(FSHADRelated)); 2096 2094 end; 2097 2095 with FDiagnoses do for i := 0 to Count - 1 do with TPCEDiag(Items[i]) do … … 2266 2264 begin 2267 2265 Result := -1; 2268 // with AList do for i := 0 to Count - 1 do with TPCEItem(Items[i]) do if Match(AnItem) and MatchProvider(AnItem)then2269 2266 with AList do for i := 0 to Count - 1 do with TPCEItem(Items[i]) do if Match(AnItem) and MatchProvider(AnItem)then 2270 // with AList do for i := 0 to Count - 1 do with TPCEItem(Items[i]) do if Match(AnItem) then2271 2267 begin 2272 2268 Result := i; … … 2289 2285 begin 2290 2286 PostItem := TPCEItem(Objects[j]); 2291 // if (PreItem.Match(PostItem) and (PreItem.MatchProvider(PostItem))) then MatchFound := True;2292 2287 if (PreItem.Match(PostItem) and (PreItem.MatchProvider(PostItem))) then MatchFound := True; 2293 // if (PreItem.Match(PostItem)) then MatchFound := True;2294 2288 end; 2295 2289 if not MatchFound then … … 2423 2417 if CurImmunization.Reaction = '' then CurImmunization.Reaction := NoPCEValue; 2424 2418 2425 // if (SrcImmunization.Provider <> CurImmunization.Provider) or2426 2419 if(SrcImmunization.Series <> CurImmunization.Series) or 2427 2420 (SrcImmunization.Reaction <> CurImmunization.Reaction) or … … 2430 2423 (CurImmunization.Comment <> SrcImmunization.Comment)then 2431 2424 begin 2432 // CurImmunization.Provider := SrcImmunization.Provider;2433 2425 CurImmunization.Series := SrcImmunization.Series; 2434 2426 CurImmunization.Reaction := SrcImmunization.Reaction; … … 2465 2457 if CurSkinTest.Results = '' then CurSkinTest.Results := NoPCEValue; 2466 2458 if SrcSkinTest.Results = '' then SrcSkinTest.Results := NoPCEValue; 2467 // if (SrcSkinTest.Provider <> CurSkinTest.Provider) or 2459 2468 2460 if(SrcSkinTest.Results <> CurSkinTest.Results) or 2469 2461 (SrcSkinTest.Reading <> CurSkinTest.Reading) or 2470 (CurSkinTest.Comment <> SrcSkinTest.Comment) then 2471 begin 2472 // CurSkinTest.Provider := SrcSkinTest.Provider; 2462 (CurSkinTest.Comment <> SrcSkinTest.Comment) then 2463 begin 2464 2473 2465 CurSkinTest.Results := SrcSkinTest.Results; 2474 2466 CurSkinTest.Reading := SrcSkinTest.Reading; 2475 CurSkinTest.Comment := SrcSkinTest.Comment; 2467 CurSkinTest.Comment := SrcSkinTest.Comment; 2476 2468 CurSkinTest.FSend := True; 2477 2469 end; … … 2502 2494 if CurPatientEd.level = '' then CurPatientEd.level := NoPCEValue; 2503 2495 if SrcPatientEd.level = '' then SrcPatientEd.level := NoPCEValue; 2504 // if (SrcPatientEd.Provider <> CurPatientEd.Provider) or2505 2496 if(SrcPatientEd.Level <> CurPatientEd.Level) or 2506 2497 (CurPatientEd.Comment <> SrcPatientEd.Comment) then 2507 2498 begin 2508 // CurPatientEd.Provider := SrcPatientEd.Provider;2509 2499 CurPatientEd.Level := SrcPatientEd.Level; 2510 2500 CurPatientEd.Comment := SrcPatientEd.Comment; … … 2539 2529 if CurHealthFactor.level = '' then CurHealthFactor.level := NoPCEValue; 2540 2530 if SrcHealthFactor.level = '' then SrcHealthFactor.level := NoPCEValue; 2541 // if (SrcHealthFactor.Provider <> CurHealthFactor.Provider) or2542 2531 if(SrcHealthFactor.Level <> CurHealthFactor.Level) or 2543 2532 (CurHealthFactor.Comment <> SrcHealthFactor.Comment) then 2544 2533 begin 2545 // CurHealthFactor.Provider := SrcHealthFactor.Provider;2546 2534 CurHealthFactor.Level := SrcHealthFactor.Level; 2547 2535 CurHealthFactor.Comment := SrcHealthFactor.Comment; … … 2578 2566 if CurExam.Results = '' then CurExam.Results := NoPCEValue; 2579 2567 if SrcExam.Results = '' then SrcExam.Results := NoPCEValue; 2580 // if (SrcExam.Provider <> CurExam.Provider) or2581 2568 if(SrcExam.Results <> CurExam.Results) or 2582 2569 (CurExam.Comment <> SrcExam.Comment) then 2583 2570 begin 2584 // CurExam.Provider := SrcExam.Provider;2585 2571 CurExam.Results := SrcExam.Results; 2586 2572 CurExam.Comment := SrcExam.Comment; … … 2683 2669 end; 2684 2670 2671 procedure TPCEData.SetSHADRelated(Value: Integer); 2672 begin 2673 if (Value <> FSHADRelated) then 2674 begin 2675 FSHADRelated := Value; 2676 FSCChanged := True; 2677 end; 2678 end; 2679 2685 2680 procedure TPCEData.SetEncUseCurr(Value: Boolean); 2686 2681 begin … … 2694 2689 FStandAlone := Encounter.StandAlone; 2695 2690 FStandAloneLoaded := TRUE; 2696 //FCPTRequired := Encounter.StandAlone;2697 2691 FEncInpatient := Encounter.Inpatient; 2698 //if FEncInpatient then FCPTRequired := False; 2699 //SetDefaultProvider(FProviders, FEncLocation, FNoteIEN, PersonClassDate); 2692 2700 2693 end else 2701 2694 begin … … 2706 2699 FProviders.PrimaryIdx := -1; 2707 2700 FEncSvcCat := 'A'; 2708 //FCPTRequired := False;2709 2701 FEncInpatient := False; 2710 2702 end; 2711 2703 // 2712 2704 SetRPCEncLocation(FEncLocation); 2713 // SetRPCEncDateTime(FEncDateTime);2714 2705 end; 2715 2706 … … 2798 2789 2799 2790 function TPCEData.StrVisitType(const ASCRelated, AAORelated, AIRRelated, 2800 AECRelated, AMSTRelated, AHNCRelated, ACVRelated : Integer): string;2791 AECRelated, AMSTRelated, AHNCRelated, ACVRelated, ASHADRelated: Integer): string; 2801 2792 { returns as a string the type of encounter (according to CPT) & related contitions treated } 2802 2793 … … 2832 2823 end; 2833 2824 Result := Trim(Result + StrVisitType(FSCRelated, FAORelated, FIRRelated, 2834 FECRelated, FMSTRelated, FHNCRelated, FCVRelated ));2825 FECRelated, FMSTRelated, FHNCRelated, FCVRelated, FSHADRelated)); 2835 2826 end; 2836 2827 … … 2901 2892 Dest.FHNCRelated := FHNCRelated; 2902 2893 Dest.FCVRelated := FCVRelated; 2894 Dest.FSHADRelated := FSHADRelated; 2903 2895 FVisitType.CopyProc(Dest.VisitType); 2904 2896 Dest.FProviders.Assign(FProviders); … … 2928 2920 if(not FutureEncounter(Self)) then 2929 2921 begin 2930 // if(PromptForWorkload(FNoteIEN, FNoteTitle, FEncSvcCat, StandAlone) or CPTRequiredForNote(FNoteIEN)) then2931 2922 if(PromptForWorkload(FNoteIEN, FNoteTitle, FEncSvcCat, StandAlone)) then 2932 2923 begin … … 2959 2950 // if HNCOK and (EC.HNCAllow and (HNCRelated = SCC_NA)) then NeedSC := TRUE; 2960 2951 if(EC.HNCAllow and (HNCRelated = SCC_NA)) then NeedSC := TRUE; 2961 if(EC.CVAllow and (CVRelated = SCC_NA) ) then NeedSC := TRUE;2952 if(EC.CVAllow and (CVRelated = SCC_NA) and (SHADRelated = SCC_NA)) then NeedSC := TRUE; 2962 2953 if(NeedSC) then 2963 2954 Include(Result, ndSC); … … 3274 3265 if(Result) then Result := (FHNCRelated = SCC_NA); 3275 3266 if(Result) then Result := (FCVRelated = SCC_NA); 3267 if(Result) then Result := (FSHADRelated = SCC_NA); 3276 3268 if(Result) then Result := (FDiagnoses.Count = 0); 3277 3269 if(Result) then Result := (FProcedures.Count = 0);
Note:
See TracChangeset
for help on using the changeset viewer.