Changeset 1679 for cprs/trunk/CPRS-Chart/rCore.pas
- Timestamp:
- May 7, 2015, 12:34:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/rCore.pas
r830 r1679 56 56 Location: string; 57 57 RoomBed: string; 58 //ADD VWPT BELOW FOR HRN59 HRN : string;60 AltHRN :string;61 58 end; 62 59 … … 81 78 PrimaryProvider: string; 82 79 Attending: string; 83 //ADD VWPT BELOW FOR HRN AltHRN 84 HRN : string; 85 AltHRN : string; 80 Associate: string; 86 81 end; 87 82 … … 153 148 function SubSetOfProviders(const StartFrom: string; Direction: Integer): TStrings; 154 149 function SubSetOfCosigners(const StartFrom: string; Direction: Integer; Date: TFMDateTime; 155 A DocType: integer; ATitle: integer): TStrings;150 ATitle: integer; ADocType: integer): TStrings; 156 151 procedure ListClinicTop(Dest: TStrings); 157 152 function SubSetOfClinics(const StartFrom: string; Direction: Integer): TStrings; … … 175 170 procedure KillRPLPtList(RPLJobNumber: string); 176 171 177 // VWPT ADDITIONS FOR ENHANCED PATIENT LOOKUP178 procedure ListPtByOther (Dest: Tstrings; const othertext: string ;caption :string);//:string; radbutton:Tobject);179 procedure ListPtByTimson (Dest: Tstrings; const othertext: string);180 //end VWPT181 182 172 { Patient specific calls } 183 173 … … 225 215 function FormatSSN(const x: string): string; 226 216 { 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 217 begin 237 218 if Length(x) > 8 238 219 then Result := Copy(x,1,3) + '-' + Copy(x,4,2) + '-' + Copy(x,6,Length(x)) … … 626 607 627 608 function SubSetOfCosigners(const StartFrom: string; Direction: Integer; Date: TFMDateTime; 628 A DocType: integer; ATitle: integer): TStrings;609 ATitle: integer; ADocType: integer): TStrings; 629 610 { returns a pointer to a list of cosigners (for use in a long list box) - The return value is 630 611 a pointer to RPCBrokerV.Results, so the data must be used BEFORE the next broker call! } 631 612 begin 632 613 if ATitle > 0 then ADocType := 0; 633 // CQ #17218 - Correcting order of parameters for this call 634 // 614 // CQ #17218 - Correcting order of parameters for this call - jcs 615 //CallV('ORWU2 COSIGNER', [StartFrom, Direction, Date, ATitle, ADocType]); 635 616 CallV('ORWU2 COSIGNER', [StartFrom, Direction, Date, ADocType, ATitle]); 636 617 … … 816 797 end; 817 798 818 // VWPT ADDITIONS FOR ENHANCED PATIENT LOOKUP819 procedure ListPtByOther (Dest: Tstrings; const othertext: string;caption:string );//:string; radbutton:Tobject);820 var821 i: Integer;822 x,Afieldname: string;823 begin824 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 var834 i: Integer;835 x,Afieldname: string;836 begin837 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 ADDITIONS847 848 799 procedure ListPtByLast5(Dest: TStrings; const Last5: string); 849 800 var … … 1059 1010 1060 1011 function 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] } 1064 1014 var 1065 1015 x: string; … … 1088 1038 Location := Piece(x, U, 6); // Inpatient Location 1089 1039 RoomBed := Piece(x, U, 7); // Inpatient Room-Bed 1090 // VWPT ADD HRN1091 HRN := Piece(x, U, 9);1092 AltHRN := Piece(x, U, 10);1093 1040 end; 1094 1041 end; … … 1136 1083 { selects the patient (updates DISV, calls Pt Select actions) & returns key fields 1137 1084 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] } 1141 1086 var 1142 1087 x: string; … … 1161 1106 ServiceConnected := Piece(x, U, 12) = '1'; 1162 1107 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);1166 1108 end; 1167 1109 x := sCallV('ORWPT1 PRCARE', [DFN]); … … 1173 1115 begin 1174 1116 Attending := Piece(x, U, 3); 1117 Associate := Piece(x, U, 4); 1175 1118 x := sCallV('ORWPT INPLOC', [DFN]); 1176 1119 WardService := Piece(x, U, 3);
Note:
See TracChangeset
for help on using the changeset viewer.