Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
1bae0c4
Update version in pom.xml to 3.4.0
5Amogh Jul 21, 2025
6b4ee4e
Update pom.xml
5Amogh Jul 21, 2025
772ee84
fix: amm-1655 (#71)
snehar-nd Jul 29, 2025
11b80e7
fix: amm-1668 beneficiary details addition
5Amogh Jul 30, 2025
40c4725
Merge pull request #72 from PSMRI/amogh-3.4
5Amogh Jul 31, 2025
511d78f
fix: amm-1755
5Amogh Jul 31, 2025
1354eed
Merge pull request #73 from PSMRI/amogh-3.4
5Amogh Jul 31, 2025
6aafc83
fix: changed build version to 3.4.0 (#77)
snehar-nd Aug 19, 2025
066574c
Sn/release3.4 (#78)
snehar-nd Aug 19, 2025
ec4d310
fix: inventory-ui url fix (#79)
snehar-nd Aug 22, 2025
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
9713717
fix: Amm-626 assamese language conversion fix (#83)
snehar-nd Sep 1, 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
86f00b6
feat: amm-1337 Feedback module integration and 1668 removal of PII fr…
5Amogh Sep 12, 2025
a4790c9
Merge pull request #92 from PSMRI/AMM-1337
5Amogh Sep 18, 2025
f45420c
Update pom.xml
5Amogh Sep 25, 2025
d8c3efa
Update pom.xml
5Amogh Sep 25, 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
b7480d3
Merge pull request #96 from PSMRI/sn/3.5.1
5Amogh 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
af16acb
fix: 1899 signature enhancement
snehar-nd Oct 30, 2025
5762852
fix: 1899 added signexist apiendpoint for env
snehar-nd Oct 30, 2025
83cc0d8
fix: signature case sheet fix
snehar-nd Nov 4, 2025
700fc7e
fix: signature case sheet fix and revisit date was not able to access
snehar-nd Nov 4, 2025
bc6d3c3
fix: remove userId from payload
vanitha1822 Nov 18, 2025
5d254bc
fix: version update in pom.xml
vanitha1822 Nov 18, 2025
27d27ef
Merge pull request #108 from PSMRI/nd/vs/wasa_1922
vanitha1822 Nov 19, 2025
49aaf94
Merge pull request #109 from PSMRI/release-3.4.0
5Amogh Dec 3, 2025
2a03237
Merge pull request #110 from PSMRI/release-3.4.1
5Amogh Dec 3, 2025
436b1f7
Merge branch 'release-3.6.0' into release-3.6.1
5Amogh Dec 3, 2025
dbf80a7
Merge pull request #111 from PSMRI/release-3.6.1
5Amogh Dec 3, 2025
17a6ec6
Merge branch 'release-3.6.0' into release-3.8.0
5Amogh Dec 3, 2025
7599727
Merge pull request #112 from PSMRI/release-3.8.0
5Amogh Dec 3, 2025
32157d1
Merge branch 'release-3.6.0' into release-3.5.0
5Amogh Dec 3, 2025
79fa27a
Merge pull request #113 from PSMRI/release-3.5.0
5Amogh Dec 3, 2025
db78b3e
fix: amm-1931 handling session expiry
snehar-nd Dec 8, 2025
494858e
fix: amm-1931 handling session expiry
snehar-nd Dec 8, 2025
8665b58
Merge pull request #114 from PSMRI/sn/wasa
snehar-nd Dec 9, 2025
9868246
fix: amm-2001 btn-close for feedback
5Amogh Dec 10, 2025
31c945e
Merge pull request #115 from PSMRI/amm-2001
snehar-nd Dec 10, 2025
a7a3ef9
Merge branch 'release-3.6.0' into nd/3.5.1/sn
snehar-nd Dec 11, 2025
d5ec325
Merge pull request #107 from PSMRI/nd/3.5.1/sn
snehar-nd Dec 12, 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 Common-UI
Submodule Common-UI updated 34 files
+307 −0 matomo-documentation.md
+220 −0 matomo-local-setup.md
+ src/assets/images/tracking-high-level-diagram.png
+37 −0 src/feedback/feedback-routing.module.ts
+48 −0 src/feedback/feedback.module.ts
+72 −0 src/feedback/pages/feedback-public-page/feedback-public-page-component.ts
+63 −0 src/feedback/services/feedback.service.ts
+135 −0 src/feedback/shared/feedback-dialog/feedback-dialog.component.html
+72 −0 src/feedback/shared/feedback-dialog/feedback-dialog.component.scss
+185 −0 src/feedback/shared/feedback-dialog/feedback-dialog.component.ts
+1 −0 src/public-api.ts
+1 −1 ...egistrar/abha-components/abha-generation-success-component/abha-generation-success-component.component.html
+1 −1 src/registrar/abha-components/abha-verify-success-component/abha-verify-success-component.component.html
+1 −1 src/registrar/abha-components/download-search-abha/download-search-abha.component.html
+1 −1 src/registrar/abha-components/download-search-abha/download-search-abha.component.ts
+1 −1 src/registrar/abha-components/generate-abha-component/generate-abha-component.component.ts
+2 −2 src/registrar/abha-components/health-id-display-modal/health-id-display-modal.component.html
+4 −3 src/registrar/registration/abha-information/abha-information.component.html
+10 −2 src/registrar/registration/abha-information/abha-information.component.ts
+21 −18 src/registrar/registration/location-information/location-information.component.html
+44 −17 src/registrar/registration/location-information/location-information.component.ts
+6 −1 src/registrar/registration/personal-information/personal-information.component.html
+12 −20 src/registrar/registration/personal-information/personal-information.component.ts
+3 −2 src/registrar/registration/registration.component.ts
+94 −120 src/registrar/search-dialog/search-dialog.component.html
+154 −33 src/registrar/search-dialog/search-dialog.component.ts
+2 −2 src/registrar/search/search.component.ts
+6 −0 src/tracking/index.ts
+110 −0 src/tracking/lib/amrit-tracking.service.ts
+192 −0 src/tracking/lib/ga-tracking.service.ts
+150 −0 src/tracking/lib/matomo-tracking.service.ts
+11 −0 src/tracking/lib/tracking-provider.ts
+36 −0 src/tracking/lib/tracking.module.ts
+25 −0 src/tracking/lib/tracking.tokens.ts
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.6.0</version>
<name>TM-UI</name>
<description>Piramal - tm: Module ui</description>
<packaging>war</packaging>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<footer class="footer container-fluid">
<div class="row">
<div class="col-4 text-left">
<div class="col-3 text-left">
<span
class="footer-text"
*ngIf="currentLanguageSet === null || currentLanguageSet === undefined"
Expand All @@ -12,7 +12,7 @@
>{{ currentLanguageSet?.coreComponents?.poweredByWipro }}</span
>
</div>
<div class="col-4 text-center">
<div class="col-3 text-center">
<p
class="footer-text"
*ngIf="currentLanguageSet === null || currentLanguageSet === undefined"
Expand All @@ -26,7 +26,21 @@
{{ year }} © {{ currentLanguageSet?.coreComponents?.pSMRI }}
</p>
</div>
<div class="col-4 text-end">
<div
class="col-3 text-end"
style="cursor: pointer"
[routerLink]="['/feedback']"
[queryParams]="{ sl: 'TM' }"
role="link"
>
<mat-icon style="vertical-align: top; font-size: medium; margin-right: 2%"
>mail</mat-icon
>
<span class="footer-text"
>{{ currentLanguageSet?.platform_feedback?.feedback ?? "Feedback" }}
</span>
</div>
<div class="col-3 text-end">
<p class="footer-text">
<span
class="footer-text"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,15 @@ export class AppHeaderComponent implements OnInit {

logout() {
this.auth.logout().subscribe((res) => {
this.router.navigate(['/login']).then((result) => {
if (result) {
this.changeLanguage('English');
this.sessionstorage.clear();
sessionStorage.clear();
}
});
this.router
.navigate(['/feedback'], { queryParams: { sl: 'TM' } })
.then((result) => {
if (result) {
this.changeLanguage('English');
this.sessionstorage.clear();
sessionStorage.clear();
}
});
});
}
rolenavigation() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,6 @@
<tr style="color: #595959; font-size: 14px">
<td>{{ beneficiary?.beneficiaryName }}</td>
</tr>
<ng-container *ngIf="beneficiary?.fatherName">
<tr style="font-size: 14px; color: #000000">
<th id="fatherName">
{{ current_language_set?.bendetails?.fatherName }}:
</th>
</tr>
<tr style="color: #595959; font-size: 14px">
<td>{{ beneficiary?.fatherName }}</td>
</tr>
</ng-container>
<ng-container *ngIf="beneficiary?.lastName">
<tr style="font-size: 14px; color: #000000">
<th id="lastName">
{{ current_language_set?.bendetails?.lastName }}:
</th>
</tr>
<tr style="color: #595959; font-size: 14px">
<td>{{ beneficiary?.lastName }}</td>
</tr>
</ng-container>
<ng-container *ngIf="beneficiary?.preferredPhoneNum">
<tr style="font-size: 14px; color: #000000">
<th id="phoneNo">{{ current_language_set?.bendetails?.phoneNo }}:</th>
</tr>
<tr style="color: #595959; font-size: 14px">
<td>{{ beneficiary?.preferredPhoneNum }}</td>
</tr>
</ng-container>
<tr style="font-size: 14px; color: #000000">
<th id="gender">
{{ current_language_set?.bendetails?.gender }} /
Expand Down
1 change: 1 addition & 0 deletions src/app/app-modules/core/core.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ import { SharedModule } from './components/shared/shared.module';
WebcamModule,
MatTableModule,
SharedModule,
RouterModule,
],
declarations: [
CommonDialogComponent,
Expand Down
55 changes: 44 additions & 11 deletions src/app/app-modules/core/services/http-interceptor.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,32 @@
): Observable<HttpEvent<any>> {
const key: any = sessionStorage.getItem('key');
let modifiedReq = req;
if (req.body instanceof FormData) {
modifiedReq = req.clone({
headers: req.headers.set('Authorization', key || ''),
});
const isPlatformFeedback =
req.url && req.url.toLowerCase().includes('/platform-feedback');

if (isPlatformFeedback) {
// For platform-feedback: remove Authorization and force JSON content-type
const headers = req.headers
.delete('Authorization')
.set('Content-Type', 'application/json');
modifiedReq = req.clone({ headers });
} else {
if (key !== undefined && key !== null) {
if (req.body instanceof FormData) {
modifiedReq = req.clone({
headers: req.headers
.set('Authorization', key)
.set('Content-Type', 'application/json'),
headers: req.headers.set('Authorization', key || ''),
});
} else {
modifiedReq = req.clone({
headers: req.headers.set('Authorization', ''),
});
if (key !== undefined && key !== null) {
modifiedReq = req.clone({
headers: req.headers
.set('Authorization', key)
.set('Content-Type', 'application/json'),
});
} else {
modifiedReq = req.clone({
headers: req.headers.set('Authorization', ''),
});
}
}
}
return next.handle(modifiedReq).pipe(
Expand All @@ -73,11 +84,33 @@
catchError((error: HttpErrorResponse) => {
console.error(error);
this.spinnerService.setLoading(false);

if(error.status === 401){

Check failure on line 88 in src/app/app-modules/core/services/http-interceptor.service.ts

View workflow job for this annotation

GitHub Actions / lint-and-audit / lint-and-audit

Replace `(error.status·===·401)` with `·(error.status·===·401)·`
this.sessionstorage.clear();
this.confirmationService.alert(this.currentLanguageSet.sessionExpiredPleaseLogin, 'error');

Check failure on line 90 in src/app/app-modules/core/services/http-interceptor.service.ts

View workflow job for this annotation

GitHub Actions / lint-and-audit / lint-and-audit

Replace `this.currentLanguageSet.sessionExpiredPleaseLogin,·'error'` with `⏎············this.currentLanguageSet.sessionExpiredPleaseLogin,⏎············'error',⏎··········`
setTimeout(() => this.router.navigate(['/login']), 0);
} else if (error.status === 403) {
this.confirmationService.alert(
this.currentLanguageSet.accessDenied,
'error',
);
} else if (error.status === 500) {
this.confirmationService.alert(
this.currentLanguageSet.internaleServerError,
'error',
);
} else {
this.confirmationService.alert(
error.message || this.currentLanguageSet.somethingWentWrong,
'error',
);
}
return throwError(error.error);
}),
);
}

Check failure on line 111 in src/app/app-modules/core/services/http-interceptor.service.ts

View workflow job for this annotation

GitHub Actions / lint-and-audit / lint-and-audit

Delete `⏎`


private onSuccess(url: string, response: any): void {
if (this.timerRef) clearTimeout(this.timerRef);

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 @@

constructor(
private _http: HttpClient,
private http: HttpClient,
) {}
private http: HttpClient

Check failure on line 24 in src/app/app-modules/core/services/http-service.service.ts

View workflow job for this annotation

GitHub Actions / lint-and-audit / lint-and-audit

Insert `,`
)

Check failure on line 25 in src/app/app-modules/core/services/http-service.service.ts

View workflow job for this annotation

GitHub Actions / lint-and-audit / lint-and-audit

Delete `·⏎·`
{
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 @@
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 @@ -64,7 +64,7 @@
private doctorService: DoctorService,
private confirmationService: ConfirmationService,
readonly sessionstorage: SessionStorageService,
private masterdataService: MasterdataService

Check failure on line 67 in src/app/app-modules/nurse-doctor/case-record/general-case-record/diagnosis/general-opd-diagnosis/general-opd-diagnosis.component.ts

View workflow job for this annotation

GitHub Actions / lint-and-audit / lint-and-audit

Insert `,`
) {}

ngOnInit() {
Expand Down Expand Up @@ -189,7 +189,10 @@
(<FormGroup>diagnosisArrayList.at(i)).controls[
'viewProvisionalDiagnosisProvided'
].disable();
this.addDiagnosis();

if (diagnosisArrayList.length < savedDiagnosisData.length) {
this.addDiagnosis();
}
}
}
}
Expand Down Expand Up @@ -272,7 +275,7 @@
onDiagnosisSelected(selected: any, index: number) {
// this.patientQuickConsultForm.get(['provisionalDiagnosisList', index])?.setValue(selected);
const diagnosisFormArray = this.generalDiagnosisForm.get(
'provisionalDiagnosisList'

Check failure on line 278 in src/app/app-modules/nurse-doctor/case-record/general-case-record/diagnosis/general-opd-diagnosis/general-opd-diagnosis.component.ts

View workflow job for this annotation

GitHub Actions / lint-and-audit / lint-and-audit

Insert `,`
) as FormArray;
const diagnosisFormGroup = diagnosisFormArray.at(index) as FormGroup;

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 @@ -61,7 +61,7 @@
enableNCDCondition = false;
suggestedDiagnosisList: any = [];


Check failure on line 64 in src/app/app-modules/nurse-doctor/case-record/general-case-record/diagnosis/ncd-care-diagnosis/ncd-care-diagnosis.component.ts

View workflow job for this annotation

GitHub Actions / lint-and-audit / lint-and-audit

Delete `⏎`
constructor(
private fb: FormBuilder,
private masterdataService: MasterdataService,
Expand Down Expand Up @@ -181,7 +181,9 @@
(<FormGroup>diagnosisArrayList.at(i)).controls[
'viewProvisionalDiagnosisProvided'
].disable();
this.addDiagnosis();
if (diagnosisArrayList.length < savedDiagnosisData.length) {
this.addDiagnosis();
}
}
}
}
Expand Down Expand Up @@ -288,7 +290,7 @@
onDiagnosisSelected(selected: any, index: number) {
// this.patientQuickConsultForm.get(['provisionalDiagnosisList', index])?.setValue(selected);
const diagnosisFormArray = this.generalDiagnosisForm.get(
'provisionalDiagnosisList'

Check failure on line 293 in src/app/app-modules/nurse-doctor/case-record/general-case-record/diagnosis/ncd-care-diagnosis/ncd-care-diagnosis.component.ts

View workflow job for this annotation

GitHub Actions / lint-and-audit / lint-and-audit

Insert `,`
) as FormArray;
const diagnosisFormGroup = diagnosisFormArray.at(index) as FormGroup;

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 @@ -73,7 +73,7 @@
private idrsScoreService: IdrsscoreService,
private nurseService: NurseService,
readonly sessionstorage: SessionStorageService,
private masterdataService: MasterdataService

Check failure on line 76 in src/app/app-modules/nurse-doctor/case-record/general-case-record/diagnosis/ncd-screening-diagnosis/ncd-screening-diagnosis.component.ts

View workflow job for this annotation

GitHub Actions / lint-and-audit / lint-and-audit

Insert `,`
) {}

ngOnInit() {
Expand Down Expand Up @@ -220,7 +220,9 @@
(<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);

Comment on lines +300 to +301
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Remove debug console.log statements.

Multiple debug logging statements are present at lines 300, 321, and 343. These should be removed before merging to main, as they clutter the console and may expose diagnostic data in production.

🔎 Suggested fix

Remove lines 300-301:

   handleDiagnosisData(diagnosis: any) {
-        console.log("provisionalDiagnosisDataList dia", diagnosis.provisionalDiagnosisList);
-
     if (

Remove lines 320-323:

   handleProvisionalDiagnosisData(provisionalDiagnosisDataList: any) {
     const provisionalDiagnosisList = this.generalDiagnosisForm.controls[
       'provisionalDiagnosisList'
     ] as FormArray;
-
-    console.log("provisionalDiagnosisDataList", provisionalDiagnosisDataList);
-    
-
     for (let i = 0; i < provisionalDiagnosisDataList.length; i++) {

Remove lines 343-344:

     const confirmatoryDiagnosisList = this.generalDiagnosisForm.controls[
       'confirmatoryDiagnosisList'
     ] as FormArray;
-        console.log("confirmatoryDiagnosisDataList", confirmatoryDiagnosisDataList);
-
     for (let i = 0; i < confirmatoryDiagnosisDataList.length; i++) {

Also applies to: 321-323, 343-344

🤖 Prompt for AI Agents
In
@src/app/app-modules/nurse-doctor/case-record/general-case-record/diagnosis/pnc-diagnosis/pnc-diagnosis.component.ts
around lines 300 - 301, Remove the debug console.log statements from
PncDiagnosisComponent: delete the console.log calls that print
"provisionalDiagnosisDataList dia" (logging diagnosis.provisionalDiagnosisList),
the subsequent console.log that prints provisionalDiagnosisList, and the
console.log that prints provisionalDiagnosisData; ensure these are removed from
pnc-diagnosis.component.ts (inside the PncDiagnosisComponent
methods/initialization code) and run a grep for any remaining console.* usages
in that file to avoid leaving other debug logs.

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
Loading
Loading