Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2369070
fix:not able to view case sheet in previous history module
snehar-nd Aug 25, 2025
a0c3ae2
fix:not able to view case sheet in previous history module (#82)
snehar-nd Aug 25, 2025
48e48de
fix: amm-1478 previous visit casesheet keys are not loading issue
snehar-nd Aug 26, 2025
74dceab
AMM-1478- previous visit case sheet fix (#84)
snehar-nd Sep 1, 2025
9133ebb
fix: amm-1806 doctor signature in casesheet
snehar-nd Sep 5, 2025
2fe613b
Merge pull request #89 from PSMRI/sn/release-3.4.1
snehar-nd Sep 9, 2025
f818b51
fix: update pom.xml
snehar-nd Sep 9, 2025
176814a
Merge pull request #90 from PSMRI/sn/release-3.4.1
snehar-nd Sep 9, 2025
ec15d93
fix: amm-1785 issue
snehar-nd Sep 9, 2025
d231efb
Merge pull request #91 from PSMRI/sn/release-3.4.1
snehar-nd Sep 9, 2025
bfe8fa8
Update pom.xml
5Amogh Sep 25, 2025
cea587a
fix: 1859 Signature in casesheet enhancement
snehar-nd Sep 30, 2025
6d83725
fix: resolved coderabit comments
snehar-nd Sep 30, 2025
443a203
fix: resolved coderabit comments
snehar-nd Sep 30, 2025
978efae
Merge branch 'release-3.5.1' into sn/3.5.1
snehar-nd Sep 30, 2025
ed4d52a
Merge pull request #97 from PSMRI/sn/3.5.1
snehar-nd Sep 30, 2025
769e841
fix: removed mandatory for provisional diagnosis for ncdcare and scre…
snehar-nd Oct 6, 2025
24032aa
Merge pull request #98 from PSMRI/nd/3.5.1/sn
snehar-nd Oct 7, 2025
1b0dcc7
fix: provisional diagnosis issue
snehar-nd Oct 9, 2025
67e6aae
Merge pull request #99 from PSMRI/nd/3.5.1/sn
snehar-nd Oct 10, 2025
47e82e7
fix: pnc form was not submitting
snehar-nd Oct 10, 2025
d9de6e3
Merge pull request #100 from PSMRI/nd/3.5.1/sn
snehar-nd Oct 10, 2025
6823f1a
Update pom.xml
snehar-nd Oct 13, 2025
4356891
fix: aam 1895 reports tabular fix
snehar-nd Oct 13, 2025
13caf5c
fix: rovisional diagnosis fix
snehar-nd Oct 13, 2025
2dbe702
Update pom.xml
snehar-nd Oct 13, 2025
16e9340
Merge pull request #102 from PSMRI/nd/3.5.1/sn
snehar-nd Oct 15, 2025
f4980d4
fix: aam-1898 next button not working, along with this fixed data is …
snehar-nd Oct 16, 2025
6d0e069
Merge remote-tracking branch 'origin/nd/3.5.1/sn' into nd/3.5.1/sn
snehar-nd Oct 16, 2025
f223575
Merge pull request #103 from PSMRI/nd/3.5.1/sn
snehar-nd Oct 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.iemr.tm-ui</groupId>
<artifactId>tm-ui</artifactId>
<version>3.4.0</version>
<version>3.4.1</version>
<name>TM-UI</name>
<description>Piramal - tm: Module ui</description>
<packaging>war</packaging>
Expand Down
13 changes: 11 additions & 2 deletions src/app/app-modules/core/services/http-service.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,15 @@ export class HttpServiceService {

constructor(
private _http: HttpClient,
private http: HttpClient,
) {}
private http: HttpClient
)
{
const storedLang = localStorage.getItem('appLanguage');
this.language = storedLang ? JSON.parse(storedLang) : null;

this.appCurrentLanguge = new BehaviorSubject(this.language);
this.currentLangugae$ = this.appCurrentLanguge.asObservable();
}

fetchLanguageSet() {
console.log('Here i come');
Expand All @@ -34,6 +41,8 @@ export class HttpServiceService {
getCurrentLanguage(response: any) {
console.log('here at one', response);
this.language = response;
localStorage.setItem('appLanguage', JSON.stringify(response));

console.log('teste', this.language);
this.appCurrentLanguge.next(response);
console.log('here at two', this.appCurrentLanguge.value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,10 @@ export class GeneralOpdDiagnosisComponent
(<FormGroup>diagnosisArrayList.at(i)).controls[
'viewProvisionalDiagnosisProvided'
].disable();
this.addDiagnosis();

if (diagnosisArrayList.length < savedDiagnosisData.length) {
this.addDiagnosis();
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ <h4>{{ current_language_set?.casesheet?.provisionalDiag }}</h4>
<mat-form-field class="input-full-width" appearance="fill">
<mat-label>{{ current_language_set?.casesheet?.provisionalDiag }}</mat-label>
<input matInput type="text" autocomplete="off" name="viewProvisionalDiagnosisProvided"
formControlName="viewProvisionalDiagnosisProvided" minlength="3" maxlength="100" required #diagnosisInput
formControlName="viewProvisionalDiagnosisProvided" minlength="3" maxlength="100" #diagnosisInput
[matAutocomplete]="autoDiagnosis" (keyup)="onDiagnosisInputKeyup(diagnosisInput.value, i)" />
</mat-form-field>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ export class NcdCareDiagnosisComponent implements OnInit, DoCheck {
(<FormGroup>diagnosisArrayList.at(i)).controls[
'viewProvisionalDiagnosisProvided'
].disable();
this.addDiagnosis();
if (diagnosisArrayList.length < savedDiagnosisData.length) {
this.addDiagnosis();
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h4 *ngIf="!enableProvisionalDiag">
<mat-form-field class="input-full-width" appearance="fill">
<mat-label>{{ current_language_set?.casesheet?.provisionalDiag }}</mat-label>
<input matInput type="text" autocomplete="off" name="viewProvisionalDiagnosisProvided"
formControlName="viewProvisionalDiagnosisProvided" minlength="3" maxlength="100" required #diagnosisInput
formControlName="viewProvisionalDiagnosisProvided" minlength="3" maxlength="100" #diagnosisInput
[matAutocomplete]="autoDiagnosis" (keyup)="onDiagnosisInputKeyup(diagnosisInput.value, i)" />
</mat-form-field>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ export class NcdScreeningDiagnosisComponent
(<FormGroup>diagnosisArrayList.at(i)).controls[
'viewProvisionalDiagnosisProvided'
].disable();
this.addDiagnosis();
if (diagnosisArrayList.length < savedDiagnosisData.length) {
this.addDiagnosis();
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,9 @@ export class PncDiagnosisComponent
.subscribe((res: any) => {
if (res && res.statusCode === 200 && res.data && res.data.diagnosis) {
this.generalDiagnosisForm.patchValue(res.data.diagnosis);
if (res.data.diagnosis.provisionalDiagnosisList) {
if (res.data.diagnosis) {
this.patchDiagnosisDetails(
res.data.diagnosis.provisionalDiagnosisList,
res.data.diagnosis
);
}
}
Expand All @@ -297,6 +297,8 @@ export class PncDiagnosisComponent
this.handleDiagnosisData(diagnosis);
}
handleDiagnosisData(diagnosis: any) {
console.log("provisionalDiagnosisDataList dia", diagnosis.provisionalDiagnosisList);

if (
diagnosis.provisionalDiagnosisList &&
diagnosis.provisionalDiagnosisList.length > 0
Expand All @@ -315,23 +317,31 @@ export class PncDiagnosisComponent
const provisionalDiagnosisList = this.generalDiagnosisForm.controls[
'provisionalDiagnosisList'
] as FormArray;

console.log("provisionalDiagnosisDataList", provisionalDiagnosisDataList);


for (let i = 0; i < provisionalDiagnosisDataList.length; i++) {
provisionalDiagnosisList.at(i).patchValue({
provisionalDiagnosis: provisionalDiagnosisDataList[i].term,
viewProvisionalDiagnosisProvided: provisionalDiagnosisDataList[i].term,
term: provisionalDiagnosisDataList[i].term,
conceptID: provisionalDiagnosisDataList[i].conceptID,
});
(<FormGroup>provisionalDiagnosisList.at(i)).controls[
'viewProvisionalDiagnosisProvided'
].disable();
this.addProvisionalDiagnosis();
}
if (provisionalDiagnosisList.length < provisionalDiagnosisDataList.length)
this.addProvisionalDiagnosis();
}
}

handleConfirmatoryDiagnosisData(confirmatoryDiagnosisDataList: any) {
const confirmatoryDiagnosisList = this.generalDiagnosisForm.controls[
'confirmatoryDiagnosisList'
] as FormArray;
console.log("confirmatoryDiagnosisDataList", confirmatoryDiagnosisDataList);

for (let i = 0; i < confirmatoryDiagnosisDataList.length; i++) {
confirmatoryDiagnosisList.at(i).patchValue({
viewConfirmatoryDiagnosisProvided:
Expand All @@ -342,9 +352,7 @@ export class PncDiagnosisComponent
(<FormGroup>confirmatoryDiagnosisList.at(i)).controls[
'viewConfirmatoryDiagnosisProvided'
].disable();
if (
confirmatoryDiagnosisList.length < confirmatoryDiagnosisDataList.length
)
if (confirmatoryDiagnosisList.length < confirmatoryDiagnosisDataList.length)
this.addConfirmatoryDiagnosis();
}
}
Expand Down Expand Up @@ -448,6 +456,7 @@ export class PncDiagnosisComponent

// Set the nested and top-level fields
diagnosisFormGroup.patchValue({
provisionalDiagnosis: selected?.term || null,
viewProvisionalDiagnosisProvided: selected,
conceptID: selected?.conceptID || null,
term: selected?.term || null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,27 +204,30 @@ export class FindingsComponent implements OnInit, OnDestroy, DoCheck {
}

doctorMasterDataSubscription: any;
getDoctorMasterData() {
getDoctorMasterData() {
this.doctorMasterDataSubscription =
this.masterdataService.nurseMasterData$.subscribe((masterData) => {
if (masterData) {
this.chiefComplaintMaster = masterData.chiefComplaintMaster.slice();
this.chiefComplaintTemporarayList[0] =
this.chiefComplaintMaster.slice();

if (this.caseRecordMode === 'view') {
if (String(this.caseRecordMode) === 'view') {
this.beneficiaryRegID =
this.sessionstorage.getItem('beneficiaryRegID');
this.visitID = this.sessionstorage.getItem('visitID');
this.visitCategory = this.sessionstorage.getItem('visitCategory');

const specialistFlagString =
this.sessionstorage.getItem('specialist_flag');

if (
this.sessionstorage.getItem('referredVisitCode') ===
'undefined' ||
this.sessionstorage.getItem('referredVisitCode') === null
this.sessionstorage.getItem('referredVisitCode') === null ||
this.sessionstorage.getItem('referredVisitCode') === ''
) {

this.getFindingDetails(
this.beneficiaryRegID,
this.visitID,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ <h4 class="norecord">
</tr>
</tbody>
<tbody *ngIf="filteredLabResults?.length > 0">
<ng-container *ngFor="let test of currentLabPagedList; let i = index">
<ng-container *ngFor="let test of filteredLabResults
| paginate: { itemsPerPage: currentLabRowsPerPage, currentPage: currentLabActivePage }; let i = index">

<tr>
<td
[attr.rowspan]="test?.componentList.length + 1"
Expand Down Expand Up @@ -85,17 +87,17 @@ <h4 class="norecord">
vertical-align: middle;
"
>
{{ component?.componentName }}
{{ component?.componentName }}
</td>
<td
style="width: 110px; word-break: normal; vertical-align: middle"
>
{{ component?.testResultValue }}
{{ component?.testResultValue }}
</td>
<td
style="width: 150px; word-break: normal; vertical-align: middle"
>
{{ component?.testResultUnit }}
{{ component?.testResultUnit }}
</td>
<td
style="
Expand All @@ -120,7 +122,7 @@ <h4 class="norecord">
<td colspan="7">
<pagination-controls
class="pull-right"
(pageChanged)="currentLabPageChanged($event)"
(pageChange)="currentLabActivePage = $event"
*ngIf="filteredLabResults.length"
previousText="&lsaquo;"
nextText="&rsaquo;"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,20 +177,19 @@ export class CancerDoctorDiagnosisCaseSheetComponent
return len > 0 ? new Array(len).join('0') + this : this;
}
downloadSign() {
if (this.beneficiaryDetails && this.beneficiaryDetails.tCSpecialistUserID) {
const tCSpecialistUserID = this.beneficiaryDetails.tCSpecialistUserID;
this.doctorService.downloadSign(tCSpecialistUserID).subscribe(
(response) => {
const blob = new Blob([response], { type: response.type });
this.showSign(blob);
},
(err) => {
console.log('error');
},
);
} else {
console.log('No tCSpecialistUserID found');
}
const userId =
this.beneficiaryDetails?.tCSpecialistUserID ??
this.sessionstorage.getItem('userID');

this.doctorService.downloadSign(userId).subscribe(
(response: any) => {
const blob = new Blob([response], { type: response.type });
this.showSign(blob);
},
(err: any) => {
console.error('Error downloading signature:', err);
}
);
}
showSign(blob: any) {
const reader = new FileReader();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { RegistrarService } from 'src/app/app-modules/registrar/shared/services/
import { NurseService, MasterdataService } from '../../../shared/services';
import * as moment from 'moment';
import { SessionStorageService } from 'Common-UI/src/registrar/services/session-storage.service';
import { map, Observable } from 'rxjs';

@Component({
selector: 'app-doctor-diagnosis-case-sheet',
Expand Down Expand Up @@ -100,6 +101,7 @@ export class DoctorDiagnosisCaseSheetComponent
serviceList = '';
referralReasonList = '';
isCovidVaccinationStatusVisible = false;
userName: any;

constructor(
private doctorService: DoctorService,
Expand All @@ -122,17 +124,18 @@ export class DoctorDiagnosisCaseSheetComponent
ngDoCheck() {
this.assignSelectedLanguage();
}

assignSelectedLanguage() {
const getLanguageJson = new SetLanguageComponent(this.httpServiceService);
getLanguageJson.setLanguage();
this.current_language_set = getLanguageJson.currentLanguageObject;
}

ngOnChanges() {

this.ncdScreeningCondition = null;
if (this.casesheetData) {
console.log('cases');
console.log(this.casesheetData);
this.userName = this.casesheetData?.doctorData?.diagnosis?.createdBy;
const temp2 = this.casesheetData.nurseData.covidDetails;
if (this.casesheetData.doctorData.diagnosis.doctorDiagnonsis) {
this.doctorDiagnosis =
Expand Down Expand Up @@ -379,22 +382,30 @@ export class DoctorDiagnosisCaseSheetComponent
const len = String(10).length - String(this).length + 1;
return len > 0 ? new Array(len).join('0') + this : this;
}
downloadSign() {
if (this.beneficiaryDetails && this.beneficiaryDetails.tCSpecialistUserID) {
const tCSpecialistUserID = this.beneficiaryDetails.tCSpecialistUserID;
this.doctorService.downloadSign(tCSpecialistUserID).subscribe(
(response) => {

downloadSign() {
this.getUserId().subscribe((userId) => {
const tcSpecId = this.beneficiaryDetails?.tCSpecialistUserID;
const userIdToUse = tcSpecId && tcSpecId !== 0 ? tcSpecId : userId;
this.doctorService.downloadSign(userIdToUse).subscribe(
(response: any) => {
const blob = new Blob([response], { type: response.type });
this.showSign(blob);
},
(err) => {
console.log('error');
(err: any) => {
console.error('Error downloading signature:', err);
},
);
} else {
console.log('No tCSpecialistUserID found');
}
});

}

getUserId(): Observable<any> {
return this.doctorService
.getUserId(this.userName)
.pipe(map((res: any) => res?.userId || null));
}

showSign(blob: any) {
const reader = new FileReader();
reader.readAsDataURL(blob);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2843,10 +2843,16 @@ export class DoctorService {
}
/* Doctor Signature download */
downloadSign(userID: any) {
return this.http
.get(environment.downloadSignUrl + userID, { responseType: 'blob' })
.pipe(map((res: any) => <Blob>res.blob()));
return this.http.get(environment.downloadSignUrl + userID, {
responseType: 'blob' as 'json',
});
}

/* Get UserID using UserName */
getUserId(userName: any) {
return this.http.get(environment.getUserId + userName);
}

getIDRSDetails(beneficiaryID: string, visitID: string): Observable<any> {
const visitCategory = this.sessionstorage.getItem('visitCategory');
const otherDetails = Object.assign({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1679,6 +1679,11 @@ export class WorkareaComponent
);

const diagForm3 = <FormGroup>diagForm2.controls[0];
if (diagForm3.controls['viewProvisionalDiagnosisProvided'].errors) {
required.push(
this.current_language_set.DiagnosisDetails.provisionaldiagnosis
);
}

if (!diagForm3.controls['viewProvisionalDiagnosisProvided'].errors) {
diagForm2.value.filter((item: any) => {
Expand Down
4 changes: 3 additions & 1 deletion src/environments/environment.ci.ts.template
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const ADMIN_API = '<%= ADMIN_API_BASE %>';
const biologicalScreeningDeviceAPI = `${ADMIN_API}/diagnostics/biologicalScreeningDevice`;
const IOT_API = '<%= IOT_API_BASE %>';
const FHIR_API = '<%= FHIR_API_BASE %>';
const mmuUICasesheet = '<%= TM_API_BASE %>';
const mmuUICasesheet = '<%= TM_UI %>';
const SCHEDULER_UI = '<%= SCHEDULER_UI_BASE %>';
const INVENTORY_UI = '<%= INVENTORY_UI %>';
const IDENTITY_API = `<%= IDENTITY_API_BASE %>`;
Expand Down Expand Up @@ -495,4 +495,6 @@ export const environment = {
siteKey: siteKey,
captchaChallengeURL: captchaChallengeURL,
enableCaptcha: enableCaptcha,

getUserId: `${COMMON_API}user/userName/`,
};
Loading