Ignore:
Timestamp:
May 7, 2015, 12:34:29 PM (9 years ago)
Author:
healthsevak
Message:

Updating the working copy to CPRS version 28

File:
1 edited

Legend:

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

    r830 r1679  
    5656    Location: string;
    5757    RoomBed: string;
    58     //ADD VWPT BELOW FOR HRN
    59     HRN : string;
    60     AltHRN :string;
    6158  end;
    6259
     
    8178    PrimaryProvider: string;
    8279    Attending: string;
    83     //ADD VWPT BELOW FOR HRN AltHRN
    84     HRN : string;
    85     AltHRN : string;
     80    Associate: string;
    8681  end;
    8782
     
    153148function SubSetOfProviders(const StartFrom: string; Direction: Integer): TStrings;
    154149function SubSetOfCosigners(const StartFrom: string; Direction: Integer; Date: TFMDateTime;
    155   ADocType: integer; ATitle: integer): TStrings;
     150  ATitle: integer; ADocType: integer): TStrings;
    156151procedure ListClinicTop(Dest: TStrings);
    157152function SubSetOfClinics(const StartFrom: string; Direction: Integer): TStrings;
     
    175170procedure KillRPLPtList(RPLJobNumber: string);
    176171
    177 // VWPT ADDITIONS FOR ENHANCED PATIENT LOOKUP
    178 procedure ListPtByOther (Dest: Tstrings; const othertext: string ;caption :string);//:string; radbutton:Tobject);
    179 procedure ListPtByTimson (Dest: Tstrings; const othertext: string);
    180 //end VWPT
    181 
    182172{ Patient specific calls }
    183173
     
    225215function FormatSSN(const x: string): string;
    226216{ places the dashes in a social security number }
    227 //vwpt code 4/17/0  see below
    228 var
    229 
    230   i:Integer;
    231 //end vwpt
    232 begin
    233 //vwpt code to prevent extra dashes 4/17/07
    234   Result := x;
    235   ///take out for i := 1 to Length(x) do if (x[i] in ['-'..'-']) then Exit;
    236   //end vwpt
     217begin
    237218  if Length(x) > 8
    238219    then Result := Copy(x,1,3) + '-' + Copy(x,4,2) + '-' + Copy(x,6,Length(x))
     
    626607
    627608function SubSetOfCosigners(const StartFrom: string; Direction: Integer; Date: TFMDateTime;
    628   ADocType: integer; ATitle: integer): TStrings;
     609  ATitle: integer; ADocType: integer): TStrings;
    629610{ returns a pointer to a list of cosigners (for use in a long list box) -  The return value is
    630611  a pointer to RPCBrokerV.Results, so the data must be used BEFORE the next broker call! }
    631612begin
    632613  if ATitle > 0 then ADocType := 0;
    633   // CQ #17218 - Correcting order of parameters for this call
    634   //  CallV('ORWU2 COSIGNER', [StartFrom, Direction, Date, ATitle, ADocType]);
     614  // CQ #17218 - Correcting order of parameters for this call - jcs
     615  //CallV('ORWU2 COSIGNER', [StartFrom, Direction, Date, ATitle, ADocType]);
    635616  CallV('ORWU2 COSIGNER', [StartFrom, Direction, Date, ADocType, ATitle]);
    636617
     
    816797end;
    817798
    818 // VWPT ADDITIONS FOR ENHANCED PATIENT LOOKUP
    819 procedure ListPtByOther (Dest: Tstrings; const othertext: string;caption:string );//:string; radbutton:Tobject);
    820 var
    821   i: Integer;
    822   x,Afieldname: string;
    823 begin
    824 
    825    CallV('ORWPT OTHER-RADIOBUTTONS',[othertext, caption]);
    826   //SortByPiece(TStringList(RPCBrokerV.Results), U, 2);
    827   MixedCaseList(RPCBrokerV.Results);
    828   Dest.Assign(RPCBrokerV.Results);
    829 end;
    830 
    831 procedure ListPtByTimson (Dest: Tstrings; const othertext: string);//
    832 
    833 var
    834   i: Integer;
    835   x,Afieldname: string;
    836 begin
    837 
    838   CallV('ORWPT ENHANCED PATLOOKUP',[othertext]);
    839   //SortByPiece(TStringList(RPCBrokerV.Results), U, 2);
    840   MixedCaseList(RPCBrokerV.Results);
    841   Dest.Assign(RPCBrokerV.Results);
    842 end;
    843 
    844 
    845 
    846 //END VWPT ADDITIONS
    847 
    848799procedure ListPtByLast5(Dest: TStrings; const Last5: string);
    849800var
     
    10591010
    10601011function GetPtIDInfo(const DFN: string): TPtIDInfo;  //*DFN*
    1061 //VWPT ADD HRN   ,ALT HRN (FUTURE)
    1062 //  Pieces: SSN[1]^DOB[2]^SEX[3]^VET[4]^SC%[5]^WARD[6]^RM-BED[7]^NAME[8]^HRN[9]^ALTHRN[10] }
    1063  // Pieces: SSN[1]^DOB[2]^SEX[3]^VET[4]^SC%[5]^WARD[6]^RM-BED[7]^NAME[8] }
     1012{ returns the identifiers displayed upon patient selection
     1013  Pieces: SSN[1]^DOB[2]^SEX[3]^VET[4]^SC%[5]^WARD[6]^RM-BED[7]^NAME[8] }
    10641014var
    10651015  x: string;
     
    10881038    Location := Piece(x, U, 6);                                         // Inpatient Location
    10891039    RoomBed  := Piece(x, U, 7);                                         // Inpatient Room-Bed
    1090     // VWPT ADD HRN
    1091     HRN :=   Piece(x, U, 9);
    1092     AltHRN := Piece(x, U, 10);
    10931040  end;
    10941041end;
     
    11361083{ selects the patient (updates DISV, calls Pt Select actions) & returns key fields
    11371084  Pieces: NAME[1]^SEX[2]^DOB[3]^SSN[4]^LOCIEN[5]^LOCNAME[6]^ROOMBED[7]^CWAD[8]^SENSITIVE[9]^
    1138   //VWPT add HRN and ALTERNATE HRN used with PID hl7 segments
    1139   ADMITTIME[10]^CONVERTED[11]^SVCONN[12]^SC%[13]^ICN[14]^Age[15]^TreatSpec[16]^HRN[17]^AltHRN[18] }
    1140  //  BEFORE THIS VWPT WAS         ADMITTIME[10]^CONVERTED[11]^SVCONN[12]^SC%[13]^ICN[14]^Age[15]^TreatSpec[16] }
     1085          ADMITTIME[10]^CONVERTED[11]^SVCONN[12]^SC%[13]^ICN[14]^Age[15]^TreatSpec[16] }
    11411086var
    11421087  x: string;
     
    11611106    ServiceConnected := Piece(x, U, 12) = '1';
    11621107    SCPercent := StrToIntDef(Piece(x, U, 13), 0);
    1163     //VWPT ADD HRN   AltHRN (future)
    1164     HRN := Piece(x, U, 17);
    1165     AltHRN := Piece(x, U, 18);
    11661108  end;
    11671109  x := sCallV('ORWPT1 PRCARE', [DFN]);
     
    11731115      begin
    11741116        Attending := Piece(x, U, 3);
     1117        Associate := Piece(x, U, 4);
    11751118        x := sCallV('ORWPT INPLOC', [DFN]);
    11761119        WardService := Piece(x, U, 3);
Note: See TracChangeset for help on using the changeset viewer.