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/Encounter/rPCE.pas

    r456 r829  
    4242    HNCAllow: Boolean;        // prompt for Head or Neck Cancer
    4343    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
    4648  end;
    4749
     
    149151                                             ANoteIEN: integer): string;
    150152function IsUserAProvider(AUser: Int64; ADate: TFMDateTime): boolean;
     153function IsUserAUSRProvider(AUser: Int64; ADate: TFMDateTime): boolean;
    151154function IsCancelOrNoShow(ANote: integer): boolean;
    152155function IsNonCountClinic(ALocation: integer): boolean;
     
    242245  end;
    243246  CallV('ORWPCE LEX', [x, CodeSys, ADate]);
    244   Dest.Assign(RPCBrokerV.Results);
     247  FastAssign(RPCBrokerV.Results, Dest);
    245248end;
    246249
     
    405408    uVTypeLastDate := EncDt;
    406409  end;
    407   Dest.Assign(uVTypeForLoc);
     410  FastAssign(uVTypeForLoc, Dest);
    408411end;
    409412
     
    10721075    CVAllow  := Piece(Piece(x, ';', 7), U, 1) = '1';
    10731076    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';
    10741079  end;
    10751080end;
     
    10791084begin
    10801085  CallV('ORWPCE SCDIS', [Patient.DFN]);
    1081   Dest.Assign(RPCBrokerV.Results);
     1086  FastAssign(RPCBrokerV.Results, Dest);
    10821087end;
    10831088
     
    10881093  else
    10891094    CallV('ORWPCE PCE4NOTE', [ANoteIEN]);
    1090   Dest.Assign(RPCBrokerV.Results);
     1095  FastAssign(RPCBrokerV.Results, Dest);
    10911096end;
    10921097
     
    11551160        end;
    11561161      end;
    1157       uHasCPT.AddStrings(RPCBrokerV.Results);
     1162      FastAddStrings(RPCBrokerV.Results, uHasCPT);
    11581163    end;
    11591164  end;
     
    12191224    begin
    12201225      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
    12221232      else
    12231233        tCallV(TmpSL,RPC,[idx]);
     
    12441254      end;
    12451255    end;
    1246     Dest.Assign(TmpSL);
     1256    FastAssign(TmpSL, Dest);
    12471257  finally
    12481258    TmpSL.Free;
     
    14541464end;
    14551465
     1466function IsUserAUSRProvider(AUser: Int64; ADate: TFMDateTime): boolean;
     1467begin
     1468  Result := (sCallV('TIU IS USER A USR PROVIDER', [AUser, ADate]) = '1');
     1469end;
     1470
    14561471//function HNCOK: boolean;
    14571472//begin
Note: See TracChangeset for help on using the changeset viewer.