Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,9 @@ export class DoctorDiagnosisCaseSheetComponent
].join('/');
}

this.downloadSign();
if (this.casesheetData?.BeneficiaryData?.doctorSignatureFlag) {
this.downloadSign();
}
this.getVaccinationTypeAndDoseMaster();
}
}
Expand Down
17 changes: 17 additions & 0 deletions src/app/app-modules/nurse-doctor/shared/services/doctor.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ export class DoctorService {
otherDetails: any,
tcRequest: any,
isSpecialist: any,
doctorSignatureFlag: any,
) {
const serviceLineDetails: any =
this.sessionstorage.getItem('serviceLineDetails');
Expand Down Expand Up @@ -232,6 +233,7 @@ export class DoctorService {
createdBy: this.sessionstorage.getItem('userName'),
tcRequest: tcRequest,
isSpecialist: isSpecialist,
doctorSignatureFlag: doctorSignatureFlag,
};

console.log(
Expand Down Expand Up @@ -350,6 +352,7 @@ export class DoctorService {
consultationData: any,
tcRequest: any,
isSpecialist: any,
doctorSignatureFlag: any,
) {
const serviceLineDetails: any =
this.sessionstorage.getItem('serviceLineDetails');
Expand Down Expand Up @@ -377,6 +380,7 @@ export class DoctorService {
{},
consultationData.quickConsultation,
temp,
{ doctorSignatureFlag: doctorSignatureFlag },
);

console.log('qc', JSON.stringify(quickConsultation, null, 4));
Expand Down Expand Up @@ -541,6 +545,7 @@ export class DoctorService {
otherDetails: any,
tcRequest: any,
isSpecialist: any,
doctorSignatureFlag: any,
) {
const serviceLineDetails: any =
this.sessionstorage.getItem('serviceLineDetails');
Expand Down Expand Up @@ -593,6 +598,7 @@ export class DoctorService {
createdBy: this.sessionstorage.getItem('userName'),
tcRequest: tcRequest,
isSpecialist: isSpecialist,
doctorSignatureFlag: doctorSignatureFlag,
};

console.log(
Expand Down Expand Up @@ -682,6 +688,7 @@ export class DoctorService {
otherDetails: any,
tcRequest: any,
isSpecialist: any,
doctorSignatureFlag: any,
) {
const serviceLineDetails: any =
this.sessionstorage.getItem('serviceLineDetails');
Expand Down Expand Up @@ -744,6 +751,7 @@ export class DoctorService {
createdBy: this.sessionstorage.getItem('userName'),
tcRequest: tcRequest,
isSpecialist: isSpecialist,
doctorSignatureFlag: doctorSignatureFlag,
};

console.log(
Expand All @@ -770,6 +778,7 @@ export class DoctorService {
otherDetails: any,
tcRequest: any,
isSpecialist: any,
doctorSignatureFlag: any,
) {
const serviceLineDetails: any =
this.sessionstorage.getItem('serviceLineDetails');
Expand Down Expand Up @@ -824,6 +833,7 @@ export class DoctorService {
createdBy: this.sessionstorage.getItem('userName'),
tcRequest: tcRequest,
isSpecialist: isSpecialist,
doctorSignatureFlag: doctorSignatureFlag,
};

console.log(
Expand Down Expand Up @@ -2358,6 +2368,7 @@ export class DoctorService {
otherDetails: any,
tcRequest: any,
isSpecialist: any,
doctorSignatureFlag: any,
) {
const serviceLineDetails: any =
this.sessionstorage.getItem('serviceLineDetails');
Expand Down Expand Up @@ -2409,6 +2420,7 @@ export class DoctorService {
createdBy: this.sessionstorage.getItem('userName'),
tcRequest: tcRequest,
isSpecialist: isSpecialist,
doctorSignatureFlag: doctorSignatureFlag,
};

console.log(
Expand Down Expand Up @@ -2655,6 +2667,7 @@ export class DoctorService {
visitCategory: any,
otherDetails: any,
tcRequest: any,
doctorSignatureFlag: any,
): Observable<any> {
const serviceLineDetails: any =
this.sessionstorage.getItem('serviceLineDetails');
Expand Down Expand Up @@ -2718,6 +2731,7 @@ export class DoctorService {
createdBy: this.sessionstorage.getItem('userName'),
tcRequest: tcRequest,
isSpecialist: otherDetails.isSpecialist,
doctorSignatureFlag: doctorSignatureFlag,
};

console.log(
Expand Down Expand Up @@ -3973,4 +3987,7 @@ export class DoctorService {
getAssessmentDet(assessmentId: any) {
return this.http.get(environment.getAssessmentUrl + '/' + assessmentId);
}
checkUsersignatureExist(userID: any) {
return this.http.get(environment.checkUsersignExistUrl + userID);
}
}
17 changes: 17 additions & 0 deletions src/app/app-modules/nurse-doctor/workarea/workarea.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ export class WorkareaComponent
patientQuickConsultForm!: FormGroup;
abdmFacilityId: any;
abdmFacilityName: any;
doctorSignatureFlag = false;

constructor(
private router: Router,
Expand Down Expand Up @@ -329,6 +330,13 @@ export class WorkareaComponent
this.enableUpdateButtonOnDoctorInteraction();
this.enableUpdateButtonFamilyPlanning();
this.enableUpdateButtonBirthImmunizationHistory();
this.doctorService
.checkUsersignatureExist(this.sessionstorage.getItem('userID'))
.subscribe((res: any) => {
if (res.statusCode === 200 && res.data !== null) {
this.doctorSignatureFlag = res.data.signStatus;
}
});
}
setVitalsUpdateButtonValue() {
this.enableVitalsButtonSubscription =
Expand Down Expand Up @@ -1718,6 +1726,7 @@ export class WorkareaComponent
temp,
this.schedulerData,
this.isSpecialist,
this.doctorSignatureFlag,
)
.subscribe(
(res: any) => {
Expand Down Expand Up @@ -1927,6 +1936,7 @@ export class WorkareaComponent
visitCategory,
otherDetails,
this.schedulerData,
this.doctorSignatureFlag,
)
.subscribe(
(res: any) => {
Expand Down Expand Up @@ -2169,6 +2179,7 @@ export class WorkareaComponent
visitCategory,
otherDetails,
this.schedulerData,
this.doctorSignatureFlag,
)
.subscribe(
(res: any) => {
Expand Down Expand Up @@ -3736,6 +3747,7 @@ export class WorkareaComponent
providerServiceMapID: this.sessionstorage.getItem('providerServiceID'),
createdBy: this.sessionstorage.getItem('userName'),
isSpecialist: this.isSpecialist,
doctorSignatureFlag: this.doctorSignatureFlag,
};

const valid = this.checkQuickConsultDoctorData(this.patientMedicalForm);
Expand Down Expand Up @@ -3795,6 +3807,7 @@ export class WorkareaComponent
{ quickConsultation: patientQuickConsultFormValue },
this.schedulerData,
this.isSpecialist,
this.doctorSignatureFlag,
)
.subscribe(
(res: any) => {
Expand Down Expand Up @@ -4022,6 +4035,7 @@ export class WorkareaComponent
temp,
this.schedulerData,
this.isSpecialist,
this.doctorSignatureFlag,
)
.subscribe(
(res: any) => {
Expand Down Expand Up @@ -4230,6 +4244,7 @@ export class WorkareaComponent
temp,
this.schedulerData,
this.isSpecialist,
this.doctorSignatureFlag,
)
.subscribe(
(res: any) => {
Expand Down Expand Up @@ -4525,6 +4540,7 @@ export class WorkareaComponent
temp,
this.schedulerData,
this.isSpecialist,
this.doctorSignatureFlag,
)
.subscribe(
(res: any) => {
Expand Down Expand Up @@ -4567,6 +4583,7 @@ export class WorkareaComponent
temp,
this.schedulerData,
this.isSpecialist,
this.doctorSignatureFlag,
)
.subscribe(
(res: any) => {
Expand Down
1 change: 1 addition & 0 deletions src/environments/environment.ci.ts.template
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@ export const environment = {
dhisURL:dhisURL,
elasticSearchUrl: `${HWC_API}registrar/quickSearchES`,
advanceElasticSearchUrl: `${HWC_API}registrar/advancedSearchES`,
checkUsersignExistUrl: `${ADMIN_API}signature1/signexist/`,

};

1 change: 1 addition & 0 deletions src/environments/environment.dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ export const environment = {
enableCHOReportBtn: enableCHOReportBtn,
dhisURL: dhisURL,
getUserId: `${COMMON_API}user/userName/`,
checkUsersignExistUrl: `${ADMIN_API}signature1/signexist/`,
elasticSearchUrl: `${HWC_API}registrar/quickSearchES`,
advanceElasticSearchUrl: `${HWC_API}registrar/advancedSearchES`,
};
1 change: 1 addition & 0 deletions src/environments/environment.development.ts
Original file line number Diff line number Diff line change
Expand Up @@ -578,4 +578,5 @@ export const environment = {
enableCHOReportBtn: enableCHOReportBtn,
dhisURL: dhisURL,
elasticSearchUrl: `${HWC_API}registrar/quickSearchES`,
checkUsersignExistUrl: `${ADMIN_API}signature1/signexist/`,
};
1 change: 1 addition & 0 deletions src/environments/environment.local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -577,4 +577,5 @@ export const environment = {
dhisURL: dhisURL,
elasticSearchUrl: `${HWC_API}registrar/quickSearchES`,
advanceElasticSearchUrl: `${HWC_API}registrar/advancedSearchES`,
checkUsersignExistUrl: `${ADMIN_API}signature1/signexist/`,
};
1 change: 1 addition & 0 deletions src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -578,4 +578,5 @@ export const environment = {
enableCHOReportBtn: enableCHOReportBtn,
dhisURL: dhisURL,
elasticSearchUrl: `${HWC_API}registrar/quickSearchES`,
checkUsersignExistUrl: `${ADMIN_API}signature1/signexist/`,
};
1 change: 1 addition & 0 deletions src/environments/environment.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -578,4 +578,5 @@ export const environment = {
enableCHOReportBtn: enableCHOReportBtn,
dhisURL: dhisURL,
elasticSearchUrl: `${HWC_API}registrar/quickSearchES`,
checkUsersignExistUrl: `${ADMIN_API}signature1/signexist/`,
};