Ignore:
Timestamp:
Jul 7, 2010, 4:31:10 PM (14 years ago)
Author:
Kevin Toppenberg
Message:

Upgrade to version 27

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/trunk/CPRS-Chart/Orders/rODAllergy.pas

    r456 r829  
    55interface
    66
    7 uses SysUtils, Classes, ORNet, ORFn, rCore, uCore, TRPCB, dialogs, rMisc ;
     7uses SysUtils, Classes, ORNet, ORFn, rCore, uCore, TRPCB, dialogs, rMisc,fNotes ;
    88
    99type
     
    7171function EnableErrorComments: boolean;
    7272function IsARTClinicalUser(var AMessage: string): boolean;
     73function GetAllergyTitleText: string;
    7374
    7475implementation
     
    169170  i: integer;
    170171begin
     172
    171173  with RPCBrokerV, EditRec do
    172174    begin
     
    215217                    Mult['"GMRAERRCMTS",' + IntToStr(i+1)] := Strings[i];
    216218                end;
     219
    217220            end ;
    218221          with ChartMarked do if Count > 0 then
     
    241244            end;
    242245        end;
    243       CallBroker;
    244       Result := Results[0];
    245     end;
     246        CallBroker;
     247        Result := Results[0];
     248        // Include "Allergy Entered in Error" items require signature list.
     249        //cq-8002  -piece 2 is Allergy Entered in Error (IEN)
     250       // code added allowing v27 GUI changes to continue if M change is not released prior.
     251       //cq-14842 -  add observed/drug allergies to the fReview/fSignOrders forms for signature.
     252       if Length(Piece(Result,'^',2))> 0 then
     253         Changes.Add(10, Piece(Result,'^',2), GetAllergyTitleText, '', 1)
     254       else
     255          exit;
     256        end;
    246257end;
    247258
     
    363374end;
    364375
     376function GetAllergyTitleText: string;
     377begin
     378    Result := FormatFMDateTime('mmm dd,yy', MakeFMDateTime(floatToStr(FMToday))) +
     379              '  ' + 'Adverse React/Allergy' + ', ' + Encounter.LocationName + ', ' + User.Name;
     380end;
     381
    365382end.
Note: See TracChangeset for help on using the changeset viewer.