Changeset 460 for cprs/branches/foia-cprs/CPRS-Chart/Consults
- Timestamp:
- Jul 6, 2008, 8:20:14 PM (17 years ago)
- Location:
- cprs/branches/foia-cprs/CPRS-Chart/Consults
- Files:
-
- 1 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/foia-cprs/CPRS-Chart/Consults/fConsultAct.dfm
r459 r460 107 107 TabOrder = 3 108 108 OnNeedData = NewPersonNeedData 109 CharsNeedMatch = 1 109 110 end 110 111 object cboUrgency: TORComboBox … … 129 130 SynonymChars = '<>' 130 131 TabOrder = 2 132 CharsNeedMatch = 1 131 133 end 132 134 object treService: TORTreeView … … 167 169 OnKeyPause = cboServiceSelect 168 170 OnMouseClick = cboServiceSelect 171 CharsNeedMatch = 1 169 172 end 170 173 end … … 352 355 TabStop = True 353 356 OnNeedData = NewPersonNeedData 357 CharsNeedMatch = 1 354 358 end 355 359 end -
cprs/branches/foia-cprs/CPRS-Chart/Consults/fConsultAct.pas
r459 r460 465 465 FUrgency := cboUrgency.ItemIEN ; 466 466 if (FActionType = CN_ACT_SIGFIND) or (FActionType = CN_ACT_ADMIN_COMPLETE) then 467 FSigFind := Copy(grpSigFindings.Items[grpSigFindings.ItemIndex], 1,1);467 FSigFind := Copy(grpSigFindings.Items[grpSigFindings.ItemIndex],2,1); 468 468 LimitEditWidth(memComments, 74); 469 469 FComments := memComments.Lines ; -
cprs/branches/foia-cprs/CPRS-Chart/Consults/fConsults.dfm
r459 r460 1 1 inherited frmConsults: TfrmConsults 2 Left = 3273 Top = 1 694 Width = 6602 Left = 247 3 Top = 174 4 Width = 723 5 5 Height = 467 6 6 HelpContext = 6000 … … 15 15 inherited shpPageBottom: TShape 16 16 Top = 416 17 Width = 65217 Width = 715 18 18 end 19 19 inherited sptHorz: TSplitter … … 25 25 inherited pnlRight: TPanel [2] 26 26 Left = 85 27 Width = 56727 Width = 630 28 28 Height = 416 29 29 OnResize = pnlRightResize … … 31 31 Left = 0 32 32 Top = 350 33 Width = 56733 Width = 630 34 34 Height = 4 35 35 Cursor = crVSplit … … 39 39 Left = 0 40 40 Top = 0 41 Width = 56741 Width = 630 42 42 Height = 350 43 43 Align = alClient … … 48 48 Left = 0 49 49 Top = 0 50 Width = 56750 Width = 630 51 51 Height = 19 52 52 Align = alTop … … 68 68 Left = 0 69 69 Top = 19 70 Width = 56770 Width = 630 71 71 Height = 331 72 72 Align = alClient … … 97 97 Left = 0 98 98 Top = 354 99 Width = 56799 Width = 630 100 100 Height = 62 101 101 Align = alBottom … … 107 107 Left = 0 108 108 Top = 0 109 Width = 567109 Width = 630 110 110 Height = 350 111 111 Align = alClient … … 117 117 Left = 0 118 118 Top = 67 119 Width = 567119 Width = 630 120 120 Height = 283 121 121 Align = alClient … … 137 137 Left = 0 138 138 Top = 0 139 Width = 567139 Width = 630 140 140 Height = 67 141 141 Align = alTop … … 144 144 OnResize = pnlFieldsResize 145 145 DesignSize = ( 146 567146 630 147 147 67) 148 148 object bvlNewTitle: TBevel … … 166 166 end 167 167 object lblAuthor: TStaticText 168 Left = 339168 Left = 402 169 169 Top = 6 170 170 Width = 152 … … 189 189 end 190 190 object lblCosigner: TStaticText 191 Left = 244191 Left = 307 192 192 Top = 21 193 193 Width = 243 … … 232 232 end 233 233 object cmdChange: TButton 234 Left = 493234 Left = 556 235 235 Top = 6 236 236 Width = 58 … … 245 245 Left = 48 246 246 Top = 40 247 Width = 5 03247 Width = 566 248 248 Height = 21 249 249 Hint = 'Subject is limited to a maximum of 80 characters.' … … 435 435 Height = 142 436 436 Align = alClient 437 Color = clWhite438 437 HideSelection = False 439 438 Indent = 15 … … 675 674 end 676 675 end 676 object mnuViewInformation: TMenuItem 677 Caption = 'Information' 678 OnClick = mnuViewInformationClick 679 object mnuViewDemo: TMenuItem 680 Tag = 1 681 Caption = 'De&mographics...' 682 OnClick = ViewInfo 683 end 684 object mnuViewVisits: TMenuItem 685 Tag = 2 686 Caption = 'Visits/Pr&ovider...' 687 OnClick = ViewInfo 688 end 689 object mnuViewPrimaryCare: TMenuItem 690 Tag = 3 691 Caption = 'Primary &Care...' 692 OnClick = ViewInfo 693 end 694 object mnuViewMyHealtheVet: TMenuItem 695 Tag = 4 696 Caption = 'MyHealthe&Vet...' 697 OnClick = ViewInfo 698 end 699 object mnuInsurance: TMenuItem 700 Tag = 5 701 Caption = '&Insurance...' 702 OnClick = ViewInfo 703 end 704 object mnuViewFlags: TMenuItem 705 Tag = 6 706 Caption = '&Flags...' 707 OnClick = ViewInfo 708 end 709 object mnuViewRemoteData: TMenuItem 710 Tag = 7 711 Caption = 'Remote &Data...' 712 OnClick = ViewInfo 713 end 714 object mnuViewReminders: TMenuItem 715 Tag = 8 716 Caption = '&Reminders...' 717 Enabled = False 718 OnClick = ViewInfo 719 end 720 object mnuViewPostings: TMenuItem 721 Tag = 9 722 Caption = '&Postings...' 723 OnClick = ViewInfo 724 end 725 end 677 726 object Z3: TMenuItem 678 727 Caption = '-' -
cprs/branches/foia-cprs/CPRS-Chart/Consults/fConsults.pas
r459 r460 162 162 popNoteMemoInsTemplate: TMenuItem; 163 163 popNoteMemoEncounter: TMenuItem; 164 mnuViewInformation: TMenuItem; 165 mnuViewDemo: TMenuItem; 166 mnuViewVisits: TMenuItem; 167 mnuViewPrimaryCare: TMenuItem; 168 mnuViewMyHealtheVet: TMenuItem; 169 mnuInsurance: TMenuItem; 170 mnuViewFlags: TMenuItem; 171 mnuViewReminders: TMenuItem; 172 mnuViewRemoteData: TMenuItem; 173 mnuViewPostings: TMenuItem; 164 174 procedure mnuChartTabClick(Sender: TObject); 165 175 procedure lstConsultsClick(Sender: TObject); … … 267 277 procedure FormMouseMove(Sender: TObject; Shift: TShiftState; X, 268 278 Y: Integer); 279 procedure ViewInfo(Sender: TObject); 280 procedure mnuViewInformationClick(Sender: TObject); 269 281 private 270 282 FEditingIndex: Integer; // TIU index of document being currently edited … … 296 308 procedure frmDrawerPnlEncounterButtonExit(Sender: TObject); 297 309 procedure frmDrawerEdtSearchExit(Sender: TObject); 298 procedure DoAutoSave ;310 procedure DoAutoSave(Suppress: integer = 1); 299 311 function GetTitleText(AnIndex: Integer): string; 300 312 //function MakeTitleText(IsAddendum: Boolean = False): string; … … 870 882 lstNotesClick(Self); // will make pnlWrite visible 871 883 if timAutoSave.Interval <> 0 then EnableAutosave := TRUE; 872 873 if txtSubject.Visible then 874 txtSubject.SetFocus 875 else 876 memResults.SetFocus; 884 if txtSubject.Visible then txtSubject.SetFocus else memResults.SetFocus; 877 885 end 878 886 else // CreatedNote.ErrorText <> '' … … 947 955 else HaveRequired := True; 948 956 // lock the consult request if there is a consult 949 if FEditNote.PkgIEN > 0 then HaveRequired := LockConsultRequest(FEditNote.PkgIEN); 957 if HaveRequired and (FEditNote.PkgIEN > 0) then 958 HaveRequired := LockConsultRequest(FEditNote.PkgIEN); 950 959 if HaveRequired then 951 960 begin … … 1529 1538 CompleteConsult(IS_ID_CHILD, 0, UseClinProcTitles); 1530 1539 end 1531 else if NoteIEN = -1 then Exit ;1540 else if NoteIEN = -1 then Exit 1532 1541 end; 1533 1542 … … 2003 2012 procedure TfrmConsults.SaveSignItem(const ItemID, ESCode: string); 2004 2013 { saves and optionally signs a progress note or addendum } 2014 const 2015 SIG_COSIGN = 'COSIGNATURE'; 2016 SIG_SIGN = 'SIGNATURE'; 2005 2017 var 2006 2018 AnIndex, IEN, i: Integer; 2007 2019 Saved, ContinueSign: Boolean; {*RAB* 8/26/99} 2008 SignSts: TActionRec;2020 ActionSts, SignSts: TActionRec; 2009 2021 APCEObject: TPCEData; 2010 2022 OK: boolean; … … 2012 2024 tmpNode: TORTreeNode; 2013 2025 ErrMsg: string; 2026 ActionType, SignTitle: string; 2014 2027 begin 2015 2028 AnIndex := -1; … … 2039 2052 if Length(ESCode) > 0 then 2040 2053 begin 2041 (* if LacksClinProcFieldsForSignature(IEN, ErrMsg) then 2042 begin 2043 InfoBox(ErrMsg, TC_CLIN_PROC, MB_OK); 2044 ContinueSign := False; 2045 end 2046 else ContinueSign := True; 2047 if not LastSaveClean(IEN) and 2048 (InfoBox(TX_ABSAVE, TC_ABSAVE, MB_YESNO or MB_DEFBUTTON2) <> IDYES) 2049 then ContinueSign := False; 2050 //else ContinueSign := True;*) 2051 if LacksClinProcFieldsForSignature(IEN, ErrMsg) then 2054 if CosignDocument(IEN) then 2055 begin 2056 SignTitle := TX_COSIGN; 2057 ActionType := SIG_COSIGN; 2058 end else 2059 begin 2060 SignTitle := TX_SIGN; 2061 ActionType := SIG_SIGN; 2062 end; 2063 ActOnDocument(ActionSts, IEN, ActionType); 2064 if not ActionSts.Success then 2065 begin 2066 InfoBox(ActionSts.Reason, TX_IN_AUTH, MB_OK); 2067 ContinueSign := False; 2068 end 2069 else if LacksClinProcFieldsForSignature(IEN, ErrMsg) then 2052 2070 begin 2053 2071 InfoBox(ErrMsg, TC_CLIN_PROC, MB_OK); … … 2063 2081 then ContinueSign := False 2064 2082 else ContinueSign := True; 2065 2066 2083 if ContinueSign then 2067 2084 begin … … 2753 2770 begin 2754 2771 inherited; 2755 DoAutoSave ;2772 DoAutoSave(0); 2756 2773 timAutoSave.Enabled := False; 2757 2774 try 2758 2775 SpellCheckForControl(memResults); 2759 2776 finally 2777 FChanged := True; 2778 DoAutoSave(0); 2760 2779 timAutoSave.Enabled := True; 2761 2780 end; … … 2765 2784 begin 2766 2785 inherited; 2767 DoAutoSave ;2786 DoAutoSave(0); 2768 2787 timAutoSave.Enabled := False; 2769 2788 try 2770 2789 GrammarCheckForControl(memResults); 2771 2790 finally 2791 FChanged := True; 2792 DoAutoSave(0); 2772 2793 timAutoSave.Enabled := True; 2773 2794 end; … … 2985 3006 SigAction: integer; 2986 3007 SavedDocID, SavedCsltID: string; 3008 ARefDate: TFMDateTime; 2987 3009 begin 2988 3010 inherited; … … 3017 3039 end; 3018 3040 3019 if not LockConsultRequestAndNote(lstNotes.ItemIEN) then Exit; 3020 Exclusions := GetCurrentSigners(lstNotes.ItemIEN); 3021 SelectAdditionalSigners(Font.Size, lstNotes.ItemIEN, SigAction, Exclusions, SignerList, CT_CONSULTS); 3041 with lstNotes do 3042 begin 3043 if not LockConsultRequestAndNote(ItemIEN) then Exit; 3044 Exclusions := GetCurrentSigners(ItemIEN); 3045 ARefDate := StrToFloat(Piece(Items[ItemIndex], U, 3)); 3046 SelectAdditionalSigners(Font.Size, ItemIEN, SigAction, Exclusions, SignerList, CT_CONSULTS, ARefDate); 3047 end; 3022 3048 with SignerList do 3023 3049 begin … … 3556 3582 begin 3557 3583 if Title > 0 then CurTitle := Title else CurTitle := DocType; 3558 if AskCosignerForTitle(CurTitle, Author ) and (Cosigner <= 0) then Result := True;3584 if AskCosignerForTitle(CurTitle, Author, DateTime) and (Cosigner <= 0) then Result := True; 3559 3585 end; 3560 3586 end; … … 3572 3598 ErrMsg := TX_NO_AUTHOR; 3573 3599 end; 3574 if AskCosignerForTitle(Title, Author ) and (Cosigner = 0) then3600 if AskCosignerForTitle(Title, Author, DateTime) and (Cosigner = 0) then 3575 3601 begin 3576 3602 Result := True; … … 3665 3691 end; 3666 3692 3667 procedure TfrmConsults.DoAutoSave ;3693 procedure TfrmConsults.DoAutoSave(Suppress: integer = 1); 3668 3694 var 3669 3695 ErrMsg: string; … … 3672 3698 begin 3673 3699 StatusText('Autosaving note...'); 3674 //PutTextOnly(ErrMsg, mem NewNote.Lines, lstNotes.GetIEN(EditingIndex));3700 //PutTextOnly(ErrMsg, memResults.Lines, lstNotes.GetIEN(EditingIndex)); 3675 3701 timAutoSave.Enabled := False; 3676 3702 try 3677 SetText(ErrMsg, memResults.Lines, lstNotes.GetIEN(EditingIndex), 1);3703 SetText(ErrMsg, memResults.Lines, lstNotes.GetIEN(EditingIndex), Suppress); 3678 3704 finally 3679 3705 timAutoSave.Enabled := True; … … 4682 4708 (Screen.ActiveControl = txtSubject) or 4683 4709 (Screen.ActiveControl = memResults) then 4684 //frmFrame.pnlPatient.SetFocus //COMMENTED OUT FOR CQ6498 4685 memResults.SetFocus //ADDED THIS LINE FOR CQ6498 4710 begin 4711 //frmFrame.pnlPatient.SetFocus //COMMENTED OUT FOR CQ6498 4712 if memResults.CanFocus then 4713 memResults.SetFocus //ADDED THIS LINE FOR CQ6498 4714 else 4715 memConsult.SetFocus; 4716 end 4686 4717 else 4687 4718 if (Screen.ActiveControl = tvConsults) then … … 4729 4760 {Below is a fix for ClearQuest Defect HDS0000948, Kind of Kloogy I looked 4730 4761 and looked for side effects and a better solution and this was the best!} 4731 frmDrawers.Hide; 4762 if (EditingIndex = -1) or (lstNotes.ItemIndex <> EditingIndex) then 4763 frmDrawers.Hide; 4732 4764 {This TStaticText I am looking for doesn't have a Name! So 4733 4765 I have to loop through the panel's controls and disable the TStaticText.} … … 4768 4800 end; 4769 4801 4802 procedure TfrmConsults.ViewInfo(Sender: TObject); 4803 begin 4804 inherited; 4805 frmFrame.ViewInfo(Sender); 4806 end; 4807 4808 procedure TfrmConsults.mnuViewInformationClick(Sender: TObject); 4809 begin 4810 inherited; 4811 mnuViewDemo.Enabled := frmFrame.pnlPatient.Enabled; 4812 mnuViewVisits.Enabled := frmFrame.pnlVisit.Enabled; 4813 mnuViewPrimaryCare.Enabled := frmFrame.pnlPrimaryCare.Enabled; 4814 mnuViewMyHealtheVet.Enabled := not (Copy(frmFrame.laMHV.Hint, 1, 2) = 'No'); 4815 mnuInsurance.Enabled := not (Copy(frmFrame.laVAA2.Hint, 1, 2) = 'No'); 4816 mnuViewFlags.Enabled := frmFrame.lblFlag.Enabled; 4817 mnuViewRemoteData.Enabled := frmFrame.lblCirn.Enabled; 4818 mnuViewReminders.Enabled := frmFrame.pnlReminders.Enabled; 4819 mnuViewPostings.Enabled := frmFrame.pnlPostings.Enabled; 4820 end; 4821 4770 4822 initialization 4771 4823 uPCEEdit := TPCEData.Create; -
cprs/branches/foia-cprs/CPRS-Chart/Consults/fEditConsult.dfm
r459 r460 1 1 object frmEditCslt: TfrmEditCslt 2 2 Tag = 110 3 Left = 1194 Top = 943 Left = 409 4 Top = 225 5 5 Width = 569 6 6 Height = 367 … … 174 174 SynonymChars = '<>' 175 175 TabOrder = 0 176 CharsNeedMatch = 1 176 177 end 177 178 object cboUrgency: TORComboBox … … 197 198 TabOrder = 1 198 199 OnChange = ControlChange 200 CharsNeedMatch = 1 199 201 end 200 202 object radInpatient: TRadioButton … … 239 241 TabOrder = 7 240 242 OnChange = ControlChange 243 CharsNeedMatch = 1 241 244 end 242 245 object txtProvDiag: TCaptionEdit … … 246 249 Height = 21 247 250 Anchors = [akLeft, akTop, akRight] 251 MaxLength = 180 248 252 ParentShowHint = False 249 253 PopupMenu = mnuPopProvDx … … 277 281 OnChange = ControlChange 278 282 OnNeedData = txtAttnNeedData 283 CharsNeedMatch = 1 279 284 end 280 285 object cboCategory: TORComboBox … … 298 303 TabOrder = 14 299 304 Visible = False 305 CharsNeedMatch = 1 300 306 end 301 307 object cmdAccept: TButton -
cprs/branches/foia-cprs/CPRS-Chart/Consults/fEditProc.dfm
r459 r460 18 18 Position = poScreenCenter 19 19 DesignSize = ( 20 5 4521 289)20 561 21 308) 22 22 PixelsPerInch = 96 23 23 TextHeight = 13 … … 166 166 TabOrder = 2 167 167 OnChange = ControlChange 168 CharsNeedMatch = 1 168 169 end 169 170 object radInpatient: TRadioButton … … 208 209 TabOrder = 6 209 210 OnChange = ControlChange 211 CharsNeedMatch = 1 210 212 end 211 213 object txtProvDiag: TCaptionEdit … … 215 217 Height = 21 216 218 Anchors = [akLeft, akTop, akRight] 219 MaxLength = 180 217 220 ParentShowHint = False 218 221 PopupMenu = mnuPopProvDx … … 246 249 OnChange = ControlChange 247 250 OnNeedData = txtAttnNeedData 251 CharsNeedMatch = 1 248 252 end 249 253 object cboProc: TORComboBox … … 277 281 OnChange = cboProcSelect 278 282 OnNeedData = cboProcNeedData 283 CharsNeedMatch = 1 279 284 end 280 285 object cboCategory: TORComboBox … … 299 304 Visible = False 300 305 OnChange = ControlChange 306 CharsNeedMatch = 1 301 307 end 302 308 object cboService: TORComboBox … … 329 335 TabOrder = 1 330 336 OnChange = ControlChange 337 CharsNeedMatch = 1 331 338 end 332 339 object memComment: TRichEdit -
cprs/branches/foia-cprs/CPRS-Chart/Consults/fODConsult.dfm
r459 r460 1 1 inherited frmODCslt: TfrmODCslt 2 2 Tag = 110 3 Left = 377 4 Top = 11 5 Width = 536 6 Height = 321 7 HorzScrollBar.Range = 528 8 HorzScrollBar.Visible = True 9 VertScrollBar.Range = 294 10 VertScrollBar.Visible = True 11 AutoScroll = False 3 Left = 430 4 Top = 203 5 Width = 606 6 Height = 376 7 HorzScrollBar.Range = 590 8 VertScrollBar.Range = 340 12 9 Caption = 'Order a Consult' 10 Constraints.MinHeight = 376 11 Constraints.MinWidth = 606 13 12 Font.Charset = ANSI_CHARSET 14 13 PixelsPerInch = 96 … … 23 22 object pnlReason: TPanel [1] 24 23 Left = 3 25 Top = 1 1726 Width = 5 1627 Height = 13 228 Anchors = [akLeft, akTop, akRight , akBottom]24 Top = 154 25 Width = 585 26 Height = 135 27 Anchors = [akLeft, akTop, akRight] 29 28 BevelOuter = bvNone 30 29 TabOrder = 11 … … 32 31 Left = 0 33 32 Top = 0 34 Width = 5 1633 Width = 585 35 34 Height = 13 36 35 Align = alTop … … 40 39 Left = 0 41 40 Top = 13 42 Width = 5 1643 Height = 1 1941 Width = 585 42 Height = 122 44 43 Align = alClient 45 44 Font.Charset = ANSI_CHARSET … … 48 47 Font.Name = 'Courier New' 49 48 Font.Style = [] 49 Constraints.MinHeight = 40 50 50 ParentFont = False 51 51 PopupMenu = popReason … … 61 61 end 62 62 object lblUrgency: TStaticText [2] 63 Left = 23963 Left = 309 64 64 Top = 2 65 65 Width = 44 … … 70 70 end 71 71 object lblPlace: TStaticText [3] 72 Left = 38472 Left = 454 73 73 Top = 43 74 74 Width = 104 … … 79 79 end 80 80 object lblAttn: TStaticText [4] 81 Left = 38481 Left = 454 82 82 Top = 2 83 83 Width = 46 … … 88 88 end 89 89 object lblProvDiag: TStaticText [5] 90 Left = 23990 Left = 309 91 91 Top = 81 92 92 Width = 104 … … 98 98 inherited memOrder: TCaptionMemo 99 99 Left = 3 100 Top = 255 101 Width = 347 102 Height = 36 103 Anchors = [akLeft, akRight, akBottom] 100 Top = 305 101 Width = 417 102 Height = 41 104 103 Lines.Strings = ( 105 104 'The order text...' … … 110 109 end 111 110 inherited cmdAccept: TButton 112 Left = 357 113 Top = 265 114 Anchors = [akRight, akBottom] 111 Left = 427 112 Top = 315 115 113 TabOrder = 12 116 114 end 117 115 inherited cmdQuit: TButton 118 Left = 453119 Top = 265116 Left = 531 117 Top = 315 120 118 Width = 61 121 Anchors = [akRight, akBottom]122 119 TabOrder = 13 123 120 end 124 121 inherited pnlMessage: TPanel 125 Left = 61126 Top = 2 45127 Width = 277122 Left = 13 123 Top = 295 124 Width = 377 128 125 Anchors = [akLeft, akRight, akBottom] 129 126 TabOrder = 14 130 127 inherited memMessage: TRichEdit 131 Width = 2 27128 Width = 292 132 129 end 133 130 end … … 135 132 Left = 0 136 133 Top = 16 137 Width = 2 04138 Height = 73134 Width = 274 135 Height = 113 139 136 Anchors = [akLeft, akTop, akRight] 140 137 Style = orcsSimple … … 156 153 OnChange = ControlChange 157 154 OnClick = cboServiceSelect 155 OnExit = cboServiceExit 158 156 OnKeyDown = cboServiceKeyDown 159 157 OnKeyUp = cboServiceKeyUp … … 161 159 end 162 160 object cboUrgency: TORComboBox 163 Left = 239161 Left = 309 164 162 Top = 16 165 163 Width = 133 … … 187 185 end 188 186 object cboPlace: TORComboBox 189 Left = 384187 Left = 454 190 188 Top = 56 191 189 Width = 136 … … 212 210 end 213 211 object txtProvDiag: TCaptionEdit 214 Left = 239212 Left = 309 215 213 Top = 94 216 214 Width = 231 217 215 Height = 21 218 216 Anchors = [akTop, akRight] 217 MaxLength = 180 219 218 ParentShowHint = False 220 219 PopupMenu = mnuPopProvDx … … 225 224 end 226 225 object txtAttn: TORComboBox 227 Left = 384226 Left = 454 228 227 Top = 16 229 228 Width = 136 … … 252 251 object treService: TORTreeView 253 252 Left = 0 254 Top = 3 7255 Width = 2 28256 Height = 2 01253 Top = 38 254 Width = 298 255 Height = 220 257 256 Anchors = [akLeft, akTop, akRight, akBottom] 258 257 Font.Charset = DEFAULT_CHARSET … … 299 298 end 300 299 object pnlServiceTreeButton: TKeyClickPanel 301 Left = 2 04300 Left = 274 302 301 Top = 14 303 Width = 2 5304 Height = 2 4302 Width = 26 303 Height = 26 305 304 Hint = 'View services/specialties hierarchically' 306 305 Anchors = [akTop, akRight] 307 306 BevelOuter = bvNone 307 BevelWidth = 2 308 308 Caption = 'View services/specialties hierarchically' 309 Font.Charset = ANSI_CHARSET 310 Font.Color = clBtnFace 311 Font.Height = -11 312 Font.Name = 'MS Sans Serif' 313 Font.Style = [] 314 ParentFont = False 309 315 TabOrder = 2 310 316 TabStop = True … … 313 319 OnExit = pnlServiceTreeButtonExit 314 320 object btnServiceTree: TSpeedButton 315 Left = 1316 Top = 1317 Width = 2 3321 Left = 2 322 Top = 2 323 Width = 22 318 324 Height = 22 319 325 Glyph.Data = { … … 360 366 FFFFFFFFFFFFFFFFFFFF00FB00FF0404040404FFFFFFFFFFFFFF070007FFFFFF 361 367 FFFFFFFFFFFFFFFFFFFF} 368 Margin = 0 362 369 OnClick = btnServiceTreeClick 363 370 end 364 371 end 365 372 object cmdLexSearch: TButton 366 Left = 473367 Top = 9 6373 Left = 543 374 Top = 94 368 375 Width = 49 369 Height = 17376 Height = 21 370 377 Anchors = [akTop, akRight] 371 378 Caption = 'Lexicon' … … 374 381 end 375 382 object gbInptOpt: TGroupBox 376 Left = 239383 Left = 309 377 384 Top = 35 378 385 Width = 140 … … 401 408 end 402 409 object btnDiagnosis: TButton 403 Left = 473410 Left = 543 404 411 Top = 95 405 Width = 52412 Width = 49 406 413 Height = 20 407 414 Anchors = [akTop, akRight] … … 421 428 OnPopup = popReasonPopup 422 429 Left = 411 423 Top = 1 69430 Top = 188 424 431 object popReasonCut: TMenuItem 425 432 Caption = 'Cu&t' -
cprs/branches/foia-cprs/CPRS-Chart/Consults/fODConsult.pas
r459 r460 85 85 procedure btnDiagnosisClick(Sender: TObject); 86 86 procedure cmdQuitClick(Sender: TObject); 87 procedure FormClose(Sender: TObject; var Action: TCloseAction); 87 88 88 89 private … … 97 98 procedure SetupReasonForRequest(OrderAction: integer); 98 99 procedure GetProvDxandValidateCode(AResponses: TResponses); 99 function 100 function ShowPrerequisites: boolean; 100 101 procedure DoSetFontSize(FontSize: integer); 101 102 procedure SetUpQuickOrderDX; … … 106 107 procedure Validate(var AnErrMsg: string); override; 107 108 function DefaultReasonForRequest(Service: string; Resolve: Boolean): TStrings; 109 108 110 public 109 111 procedure SetupDialog(OrderAction: Integer; const ID: string); override; … … 123 125 uses 124 126 rODBase, rConsults, uCore, uConsults, rCore, fConsults, fPCELex, rPCE, fPreReq, 125 ORClasses, clipbrd, uTemplates ;127 ORClasses, clipbrd, uTemplates, fFrame, uODBase; 126 128 127 129 var … … 131 133 BADxUpdated: boolean; 132 134 quickCode: string; 133 135 134 136 135 137 … … 153 155 procedure TfrmODCslt.FormCreate(Sender: TObject); 154 156 begin 157 frmFrame.pnlVisit.Enabled := false; 155 158 AutoSizeDisabled := True; 156 159 inherited; … … 223 226 cboService.Enabled := True; 224 227 cboService.Font.Color := clWindowText; 228 cboService.Height := 25 + (7 * cboService.ItemHeight); 225 229 btnServiceTree.Enabled := True; 230 pnlServiceTreeButton.Enabled := True; 226 231 ActiveControl := cboService; 227 232 SetProvDiagPromptingMode; … … 271 276 cboService.Font.Color := clGrayText; 272 277 btnServiceTree.Enabled := False; 278 pnlServiceTreeButton.Enabled := False; 273 279 if (OrderAction in [ORDER_COPY, ORDER_QUICK]) and (not ShowPrerequisites) then 274 280 begin … … 286 292 begin 287 293 if QuickList.Count > 0 then BuildQuickTree(QuickList, '0', nil) ; 288 //SvcList.Assign(LoadServiceList(CN_SVC_LIST_ORD)) ;289 294 SvcList.Assign(LoadServiceListWithSynonyms(CN_SVC_LIST_ORD)); {RV} 290 295 AList.Assign(SvcList); … … 512 517 cboService.Font.Color := clGrayText; 513 518 btnServiceTree.Enabled := False; 519 pnlServiceTreeButton.Enabled := False; 514 520 Changing := False; 515 521 end; … … 645 651 begin 646 652 inherited; 647 648 //if NOT BILLING_AWARE then 649 if treService.Selected <> nil then 650 LastNode := treService.Selected.AbsoluteIndex; 653 if treService.Selected <> nil then 654 LastNode := treService.Selected.AbsoluteIndex; 651 655 652 656 if BILLING_AWARE and CIDCOkToSave then … … 657 661 begin 658 662 uBACore.CompleteConsultOrderRec(uBAGlobals.BAOrderID,UBAGlobals.BAConsultDxList); 659 // if ProvDx.Reqd = 'R' then UBAGlobals.BAConsultOrdersRequireDx.Add(uBAGlobals.BAOrderID); //allow special handling of non cidc consults that require dx .660 663 uBAGlobals.BAConsultDxList.Clear; 661 664 end; … … 743 746 Font.Color := clGrayText; 744 747 btnServiceTree.Enabled := False; 748 pnlServiceTreeButton.Enabled := False; 745 749 Changing := False; 746 750 with Responses do if QuickOrder > 0 then … … 945 949 with ProvDx do if (Reqd = '') or (PromptMode = '') then Exit; 946 950 if ProvDx.Reqd = 'R' then 947 lblProvDiag.Caption := TX_PROVDX_REQD 951 begin 952 lblProvDiag.Caption := TX_PROVDX_REQD; 953 if (BILLING_AWARE) and (ProvDx.PromptMode[1] = '') then btnDiagnosis.Enabled := True; 954 end 948 955 else 949 956 lblProvDiag.Caption := TX_PROVDX_OPT; … … 1066 1073 Result := False; 1067 1074 AbortOrder := True; 1068 //cmdQuitClick(Self); 1069 end 1075 end 1070 1076 else Result := True; 1071 1077 end; … … 1076 1082 end; 1077 1083 1078 ////////// NOTE THIS FUNCTION IS NO LONGER ASSIGNED TO OnExit EVENT1079 ///////// Calling this with enter making a selection had serious errors1080 ///////// No ill effect can be seen for not calling it.1081 1084 procedure TfrmODCslt.cboServiceExit(Sender: TObject); 1082 1085 begin … … 1086 1089 if cboService.ItemID = FLastServiceID then Exit; 1087 1090 cboServiceSelect(cboService); 1088 cboService.SetFocus; 1091 // CQ #7490, following line commented out v26.24 (RV) 1092 // CQ #9610 and 10074 - uncommented and "if" added v26.54 (RV) 1093 if cboService.Enabled then cboService.SetFocus; 1089 1094 PostMessage(Handle, WM_NEXTDLGCTL, 0, 0); 1090 1095 end; … … 1141 1146 TmpSL: TStringList; 1142 1147 DocInfo: string; 1143 1144 begin 1148 x: string; 1149 HasObjects: boolean; 1150 begin 1151 Resolve := FALSE ; // override value passed in - resolve on client - PSI-05-093 1145 1152 DocInfo := ''; 1146 1153 TmpSL := TStringList.Create; … … 1148 1155 Result := GetDefaultReasonForRequest(Service + CSLT_PTR, Resolve); 1149 1156 TmpSL.Assign(Result); 1157 x := TmpSL.Text; 1158 ExpandOrderObjects(x, HasObjects); 1159 TmpSL.Text := x; 1160 Responses.OrderContainsObjects := HasObjects; 1150 1161 ExecuteTemplateOrBoilerPlate(TmpSL, cboService.ItemIEN , ltConsult, nil, 'Reason for Request: ' + cboService.DisplayText[cboService.ItemIndex], DocInfo); 1162 if TmpSL.Text <> x then Responses.OrderContainsObjects := False; 1151 1163 Result.Assign(TmpSL); 1152 1164 finally … … 1284 1296 //Except when Enter or Space is pressed. VK_LBUTTON activates OnClick in TORComboBoxes 1285 1297 FcboServiceKeyDownStopClick := false; 1286 if (Key <> VK_RETURN) and (Key <> VK_SPACE) and (Key <> VK_LBUTTON) then1298 if (Key <> VK_RETURN) {and (Key <> VK_SPACE)} and (Key <> VK_LBUTTON) then //comment on this line is fix for CQ6789 1287 1299 FcboServiceKeyDownStopClick := True 1288 1300 else … … 1333 1345 end; 1334 1346 end; 1347 1335 1348 ProvDx.CodeInactive := False; 1336 1349 end; … … 1387 1400 end; 1388 1401 1402 procedure TfrmODCslt.FormClose(Sender: TObject; var Action: TCloseAction); 1403 begin 1404 inherited; 1405 frmFrame.pnlVisit.Enabled := true; 1406 end; 1407 1389 1408 end. 1390 1409 -
cprs/branches/foia-cprs/CPRS-Chart/Consults/fODProc.dfm
r459 r460 1 1 inherited frmODProc: TfrmODProc 2 2 Tag = 112 3 Left = 2 624 Top = 1 915 Width = 5 316 Height = 3 223 Left = 208 4 Top = 188 5 Width = 543 6 Height = 393 7 7 HorzScrollBar.Range = 523 8 HorzScrollBar.Visible = True9 8 VertScrollBar.Range = 295 10 VertScrollBar.Visible = True11 AutoScroll = False12 9 Caption = 'Order a Procedure' 10 Constraints.MinHeight = 393 11 Constraints.MinWidth = 543 13 12 PixelsPerInch = 96 14 13 TextHeight = 13 … … 31 30 WordWrap = False 32 31 end 33 object lblUrgency: TStaticText [2] 34 Left = 237 32 object lblReason: TLabel [2] 33 Left = 4 34 Top = 103 35 Width = 95 36 Height = 13 37 Caption = 'Reason for Request' 38 end 39 object lblUrgency: TStaticText [3] 40 Left = 249 35 41 Top = 4 36 42 Width = 44 … … 40 46 TabOrder = 15 41 47 end 42 object lblPlace: TStaticText [ 3]43 Left = 3 8448 object lblPlace: TStaticText [4] 49 Left = 396 44 50 Top = 43 45 51 Width = 104 … … 49 55 TabOrder = 16 50 56 end 51 object lblAttn: TStaticText [ 4]52 Left = 3 8457 object lblAttn: TStaticText [5] 58 Left = 396 53 59 Top = 4 54 60 Width = 46 … … 58 64 TabOrder = 17 59 65 end 60 object lblProvDiag: TStaticText [ 5]61 Left = 2 3766 object lblProvDiag: TStaticText [6] 67 Left = 249 62 68 Top = 81 63 69 Width = 104 … … 67 73 TabOrder = 18 68 74 end 69 object pnlReason: TPanel [ 6]75 object pnlReason: TPanel [7] 70 76 Left = 0 71 Top = 9972 Width = 52 173 Height = 1 5477 Top = 120 78 Width = 528 79 Height = 192 74 80 Anchors = [akLeft, akTop, akRight, akBottom] 75 81 BevelOuter = bvNone 76 82 TabOrder = 9 77 DesignSize = (78 52179 154)80 object lblReason: TLabel81 Left = 482 Top = 983 Width = 9584 Height = 1385 Caption = 'Reason for Request'86 end87 83 object memReason: TCaptionRichEdit 88 84 Left = 0 89 Top = 2490 Width = 52 191 Height = 1 3092 A nchors = [akLeft, akTop, akRight, akBottom]85 Top = 0 86 Width = 528 87 Height = 192 88 Align = alClient 93 89 Font.Charset = DEFAULT_CHARSET 94 90 Font.Color = clWindowText … … 96 92 Font.Name = 'Courier New' 97 93 Font.Style = [] 94 Constraints.MinHeight = 40 98 95 ParentFont = False 99 96 PopupMenu = popReason … … 110 107 end 111 108 inherited memOrder: TCaptionMemo 112 Left = 4113 Top = 258114 Width = 3 61115 Height = 36116 Anchors = [akLeft, akRight , akBottom]109 Left = 0 110 Top = 321 111 Width = 380 112 Height = 41 113 Anchors = [akLeft, akRight] 117 114 Lines.Strings = ( 118 115 'The order text...' … … 123 120 TabOrder = 1 124 121 end 125 object cboUrgency: TORComboBox [ 8]126 Left = 2 37122 object cboUrgency: TORComboBox [9] 123 Left = 249 127 124 Top = 17 128 125 Width = 133 … … 148 145 CharsNeedMatch = 1 149 146 end 150 object cboPlace: TORComboBox [ 9]151 Left = 3 84147 object cboPlace: TORComboBox [10] 148 Left = 396 152 149 Top = 56 153 150 Width = 133 … … 173 170 CharsNeedMatch = 1 174 171 end 175 object txtProvDiag: TCaptionEdit [10] 176 Left = 237 172 object txtAttn: TORComboBox [11] 173 Left = 396 174 Top = 17 175 Width = 133 176 Height = 21 177 Anchors = [akTop, akRight] 178 Style = orcsDropDown 179 AutoSelect = True 180 Caption = 'Attention' 181 Color = clWindow 182 DropDownCount = 8 183 ItemHeight = 13 184 ItemTipColor = clWindow 185 ItemTipEnable = True 186 ListItemsOnly = True 187 LongList = True 188 LookupPiece = 2 189 MaxLength = 0 190 Pieces = '2,3' 191 Sorted = False 192 SynonymChars = '<>' 193 TabOrder = 3 194 OnChange = ControlChange 195 OnNeedData = txtAttnNeedData 196 CharsNeedMatch = 1 197 end 198 object cboProc: TORComboBox [12] 199 Left = 4 200 Top = 17 201 Width = 227 202 Height = 21 203 Anchors = [akLeft, akTop, akRight] 204 Style = orcsDropDown 205 AutoSelect = True 206 Caption = 'Procedure' 207 Color = clWindow 208 DropDownCount = 8 209 ItemHeight = 13 210 ItemTipColor = clWindow 211 ItemTipEnable = True 212 ListItemsOnly = True 213 LongList = True 214 LookupPiece = 0 215 MaxLength = 0 216 Pieces = '2' 217 Sorted = False 218 SynonymChars = '<>' 219 TabOrder = 0 220 OnChange = cboProcSelect 221 OnNeedData = cboProcNeedData 222 CharsNeedMatch = 1 223 end 224 object cboCategory: TORComboBox [13] 225 Left = 516 226 Top = 10 227 Width = 3 228 Height = 21 229 Style = orcsDropDown 230 AutoSelect = True 231 Color = clWindow 232 DropDownCount = 8 233 ItemHeight = 13 234 ItemTipColor = clWindow 235 ItemTipEnable = True 236 ListItemsOnly = False 237 LongList = False 238 LookupPiece = 0 239 MaxLength = 0 240 Sorted = False 241 SynonymChars = '<>' 242 TabOrder = 13 243 Visible = False 244 OnChange = ControlChange 245 CharsNeedMatch = 1 246 end 247 object cboService: TORComboBox [14] 248 Left = 4 249 Top = 58 250 Width = 227 251 Height = 21 252 Anchors = [akLeft, akTop, akRight] 253 Style = orcsDropDown 254 AutoSelect = True 255 Caption = 'Service to perform this procedure' 256 Color = clWindow 257 DropDownCount = 8 258 Enabled = False 259 ItemHeight = 13 260 ItemTipColor = clWindow 261 ItemTipEnable = True 262 ListItemsOnly = False 263 LongList = False 264 LookupPiece = 0 265 MaxLength = 0 266 Pieces = '2' 267 Sorted = False 268 SynonymChars = '<>' 269 TabOrder = 4 270 OnChange = cboServiceChange 271 CharsNeedMatch = 1 272 end 273 inherited cmdAccept: TButton 274 Left = 387 275 Top = 339 276 Anchors = [akRight, akBottom] 277 TabOrder = 10 278 end 279 inherited cmdQuit: TButton 280 Left = 469 281 Top = 339 282 Width = 64 283 Anchors = [akRight, akBottom] 284 TabOrder = 11 285 end 286 inherited pnlMessage: TPanel 287 Left = 50 288 Top = 320 289 Width = 316 290 Anchors = [akLeft, akRight, akBottom] 291 TabOrder = 12 292 inherited memMessage: TRichEdit 293 Width = 254 294 end 295 end 296 object cmdLexSearch: TButton 297 Left = 486 298 Top = 93 299 Width = 49 300 Height = 21 301 Anchors = [akTop, akRight] 302 Caption = 'Lexicon' 303 TabOrder = 8 304 OnClick = cmdLexSearchClick 305 end 306 object gbInptOpt: TGroupBox 307 Left = 249 308 Top = 36 309 Width = 140 310 Height = 45 311 Anchors = [akTop, akRight] 312 Caption = 'Patient will be seen as an:' 313 TabOrder = 5 314 object radInpatient: TRadioButton 315 Left = 3 316 Top = 20 317 Width = 61 318 Height = 17 319 Caption = '&Inpatient' 320 TabOrder = 0 321 OnClick = radInpatientClick 322 end 323 object radOutpatient: TRadioButton 324 Left = 67 325 Top = 20 326 Width = 71 327 Height = 17 328 Caption = '&Outpatient' 329 TabOrder = 1 330 OnClick = radOutpatientClick 331 end 332 end 333 object txtProvDiag: TCaptionEdit 334 Left = 249 177 335 Top = 93 178 336 Width = 234 179 337 Height = 21 180 338 Anchors = [akTop, akRight] 339 MaxLength = 180 181 340 ParentShowHint = False 182 341 PopupMenu = mnuPopProvDx … … 185 344 OnChange = txtProvDiagChange 186 345 Caption = 'Provisional Diagnosis' 187 end188 object txtAttn: TORComboBox [11]189 Left = 384190 Top = 17191 Width = 133192 Height = 21193 Anchors = [akTop, akRight]194 Style = orcsDropDown195 AutoSelect = True196 Caption = 'Attention'197 Color = clWindow198 DropDownCount = 8199 ItemHeight = 13200 ItemTipColor = clWindow201 ItemTipEnable = True202 ListItemsOnly = True203 LongList = True204 LookupPiece = 2205 MaxLength = 0206 Pieces = '2,3'207 Sorted = False208 SynonymChars = '<>'209 TabOrder = 3210 OnChange = ControlChange211 OnNeedData = txtAttnNeedData212 CharsNeedMatch = 1213 end214 object cboProc: TORComboBox [12]215 Left = 4216 Top = 17217 Width = 215218 Height = 21219 Anchors = [akLeft, akTop, akRight]220 Style = orcsDropDown221 AutoSelect = True222 Caption = 'Procedure'223 Color = clWindow224 DropDownCount = 8225 ItemHeight = 13226 ItemTipColor = clWindow227 ItemTipEnable = True228 ListItemsOnly = True229 LongList = True230 LookupPiece = 0231 MaxLength = 0232 Pieces = '2'233 Sorted = False234 SynonymChars = '<>'235 TabOrder = 0236 OnChange = cboProcSelect237 OnNeedData = cboProcNeedData238 CharsNeedMatch = 1239 end240 object cboCategory: TORComboBox [13]241 Left = 516242 Top = 10243 Width = 3244 Height = 21245 Style = orcsDropDown246 AutoSelect = True247 Color = clWindow248 DropDownCount = 8249 ItemHeight = 13250 ItemTipColor = clWindow251 ItemTipEnable = True252 ListItemsOnly = False253 LongList = False254 LookupPiece = 0255 MaxLength = 0256 Sorted = False257 SynonymChars = '<>'258 TabOrder = 13259 Visible = False260 OnChange = ControlChange261 CharsNeedMatch = 1262 end263 object cboService: TORComboBox [14]264 Left = 4265 Top = 58266 Width = 215267 Height = 21268 Anchors = [akLeft, akTop, akRight]269 Style = orcsDropDown270 AutoSelect = True271 Caption = 'Service to perform this procedure'272 Color = clWindow273 DropDownCount = 8274 Enabled = False275 ItemHeight = 13276 ItemTipColor = clWindow277 ItemTipEnable = True278 ListItemsOnly = False279 LongList = False280 LookupPiece = 0281 MaxLength = 0282 Pieces = '2'283 Sorted = False284 SynonymChars = '<>'285 TabOrder = 4286 OnChange = cboServiceChange287 CharsNeedMatch = 1288 end289 inherited cmdAccept: TButton290 Left = 369291 Top = 268292 Anchors = [akRight, akBottom]293 TabOrder = 10294 end295 inherited cmdQuit: TButton296 Left = 457297 Top = 268298 Width = 64299 Anchors = [akRight, akBottom]300 TabOrder = 11301 end302 inherited pnlMessage: TPanel303 Left = 50304 Top = 249305 Width = 304306 Anchors = [akLeft, akRight, akBottom]307 TabOrder = 12308 inherited memMessage: TRichEdit309 Width = 254310 end311 end312 object cmdLexSearch: TButton313 Left = 474314 Top = 93315 Width = 49316 Height = 21317 Anchors = [akTop, akRight]318 Caption = 'Lexicon'319 TabOrder = 8320 OnClick = cmdLexSearchClick321 end322 object gbInptOpt: TGroupBox323 Left = 237324 Top = 36325 Width = 140326 Height = 45327 Anchors = [akTop, akRight]328 Caption = 'Patient will be seen as an:'329 TabOrder = 5330 DesignSize = (331 140332 45)333 object radInpatient: TRadioButton334 Left = 3335 Top = 20336 Width = 61337 Height = 17338 Anchors = [akTop, akRight]339 Caption = '&Inpatient'340 TabOrder = 0341 OnClick = radInpatientClick342 end343 object radOutpatient: TRadioButton344 Left = 67345 Top = 20346 Width = 71347 Height = 17348 Anchors = [akTop, akRight]349 Caption = '&Outpatient'350 TabOrder = 1351 OnClick = radOutpatientClick352 end353 346 end 354 347 object mnuPopProvDx: TPopupMenu -
cprs/branches/foia-cprs/CPRS-Chart/Consults/fODProc.pas
r459 r460 12 12 cboUrgency: TORComboBox; 13 13 cboPlace: TORComboBox; 14 txtProvDiag: TCaptionEdit;15 14 txtAttn: TORComboBox; 16 15 lblProc: TLabel; … … 34 33 pnlReason: TPanel; 35 34 memReason: TCaptionRichEdit; 36 lblReason: TLabel;37 35 gbInptOpt: TGroupBox; 38 36 radInpatient: TRadioButton; 39 37 radOutpatient: TRadioButton; 38 txtProvDiag: TCaptionEdit; 39 lblReason: TLabel; 40 40 procedure FormCreate(Sender: TObject); 41 41 procedure txtAttnNeedData(Sender: TObject; const StartFrom: String; … … 63 63 Shift: TShiftState); 64 64 procedure memReasonKeyPress(Sender: TObject; var Key: Char); 65 procedure FormResize(Sender: TObject); 66 procedure FormClose(Sender: TObject; var Action: TCloseAction); 65 67 private 66 68 FLastProcID: string; … … 88 90 uses 89 91 rODBase, rConsults, uCore, uConsults, rCore, fConsults, fPCELex, rPCE, ORClasses, 90 clipbrd, fPreReq, uTemplates, uAccessibleRichEdit ;92 clipbrd, fPreReq, uTemplates, uAccessibleRichEdit, fFrame, uODBase; 91 93 92 94 var … … 109 111 procedure TfrmODProc.FormCreate(Sender: TObject); 110 112 begin 113 frmFrame.pnlVisit.Enabled := false; 111 114 AutoSizeDisabled := True; 112 115 inherited; … … 709 712 TmpSL: TStringList; 710 713 DocInfo: string; 711 begin 714 x: string; 715 HasObjects: boolean; 716 begin 717 Resolve := FALSE ; // override value passed in - resolve on client - PSI-05-093 712 718 DocInfo := ''; 713 719 TmpSL := TStringList.Create; … … 715 721 Result := GetDefaultReasonForRequest(Piece(cboProc.Items[cboProc.ItemIndex], U, 4), Resolve); 716 722 TmpSL.Assign(Result); 723 x := TmpSL.Text; 724 ExpandOrderObjects(x, HasObjects); 725 TmpSL.Text := x; 726 Responses.OrderContainsObjects := HasObjects; 717 727 ExecuteTemplateOrBoilerPlate(TmpSL, StrToIntDef(piece(piece(cboProc.Items[cboProc.ItemIndex],U,4),';',1),0), 718 728 ltProcedure, nil, 'Reason for Request: ' + cboProc.DisplayText[cboProc.ItemIndex], DocInfo); 729 if TmpSL.Text <> x then Responses.OrderContainsObjects := False; 719 730 Result.Assign(TmpSL); 720 731 finally … … 805 816 end; 806 817 818 procedure TfrmODProc.FormResize(Sender: TObject); 819 begin 820 inherited; 821 memOrder.Top := PnlReason.Top + PnlReason.Height + 5; 822 823 end; 824 825 procedure TfrmODProc.FormClose(Sender: TObject; var Action: TCloseAction); 826 begin 827 inherited; 828 frmFrame.pnlVisit.Enabled := true; 829 end; 830 807 831 end. 808 832 -
cprs/branches/foia-cprs/CPRS-Chart/Consults/fPreReq.dfm
r459 r460 12 12 Font.Name = 'MS Sans Serif' 13 13 Font.Style = [] 14 FormStyle = fsStayOnTop15 14 OldCreateOrder = True 16 15 Position = poScreenCenter -
cprs/branches/foia-cprs/CPRS-Chart/Consults/rConsults.pas
r459 r460 4 4 5 5 uses SysUtils, Classes, ORNet, ORFn, rCore, uCore, TRPCB, dialogs, uConsults, rTIU, uTIU; 6 7 type 8 9 TUnresolvedConsults = record 10 UnresolvedConsultsExist: boolean; 11 ShowNagScreen: boolean; 12 end; 6 13 7 14 {Consult Titles } … … 32 39 function GetFormattedSF513(AConsult: Integer; ChartCopy: string): TStrings; 33 40 function UnresolvedConsultsExist: boolean; 41 procedure GetUnresolvedConsultsInfo; 34 42 35 43 {list box fillers} … … 97 105 uClinProcClass: integer; 98 106 uClinProcTitles: TClinProcTitles; 107 uUnresolvedConsults: TUnresolvedConsults; 99 108 100 109 implementation … … 602 611 end; 603 612 613 procedure GetUnresolvedConsultsInfo; 614 var 615 x: string; 616 begin 617 x := sCallV('ORQQCN UNRESOLVED', [Patient.DFN]); 618 with uUnresolvedConsults do 619 begin 620 UnresolvedConsultsExist := (Piece(x, U, 1) = '1'); 621 ShowNagScreen := (Piece(x, U, 2) = '1'); 622 end; 623 end; 624 604 625 function ConsultMessage(AnIEN: Integer): string; 605 626 begin
Note:
See TracChangeset
for help on using the changeset viewer.