Skip to content

Commit

Permalink
Merge pull request #52 from helenKaryamsetty/develop
Browse files Browse the repository at this point in the history
Abdm facility and version 3 changes
  • Loading branch information
devikasuresh20 authored Dec 16, 2024
2 parents 027fefd + 86bd579 commit 35863b2
Show file tree
Hide file tree
Showing 10 changed files with 121 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Common-UI
Submodule Common-UI updated 70 files
+0 −0 src/registrar/abha-components/abha-enter-mobile-otp-component/abha-enter-mobile-otp-component.component.css
+35 −0 src/registrar/abha-components/abha-enter-mobile-otp-component/abha-enter-mobile-otp-component.component.html
+21 −0 ...registrar/abha-components/abha-enter-mobile-otp-component/abha-enter-mobile-otp-component.component.spec.ts
+111 −0 src/registrar/abha-components/abha-enter-mobile-otp-component/abha-enter-mobile-otp-component.component.ts
+15 −33 src/registrar/abha-components/abha-enter-otp-component/abha-enter-otp-component.component.css
+85 −0 src/registrar/abha-components/abha-enter-otp-component/abha-enter-otp-component.component.html
+21 −0 src/registrar/abha-components/abha-enter-otp-component/abha-enter-otp-component.component.spec.ts
+252 −0 src/registrar/abha-components/abha-enter-otp-component/abha-enter-otp-component.component.ts
+107 −0 ...registrar/abha-components/abha-generation-success-component/abha-generation-success-component.component.css
+102 −0 ...egistrar/abha-components/abha-generation-success-component/abha-generation-success-component.component.html
+21 −0 ...strar/abha-components/abha-generation-success-component/abha-generation-success-component.component.spec.ts
+125 −0 src/registrar/abha-components/abha-generation-success-component/abha-generation-success-component.component.ts
+0 −0 src/registrar/abha-components/abha-mobile-component/abha-mobile-component.component.css
+48 −0 src/registrar/abha-components/abha-mobile-component/abha-mobile-component.component.html
+21 −0 src/registrar/abha-components/abha-mobile-component/abha-mobile-component.component.spec.ts
+123 −0 src/registrar/abha-components/abha-mobile-component/abha-mobile-component.component.ts
+107 −0 src/registrar/abha-components/abha-verify-success-component/abha-verify-success-component.component.css
+59 −0 src/registrar/abha-components/abha-verify-success-component/abha-verify-success-component.component.html
+21 −0 src/registrar/abha-components/abha-verify-success-component/abha-verify-success-component.component.spec.ts
+80 −0 src/registrar/abha-components/abha-verify-success-component/abha-verify-success-component.component.ts
+0 −0 src/registrar/abha-components/biometric-authentication/biometric-authentication.component.css
+0 −10 src/registrar/abha-components/biometric-authentication/biometric-authentication.component.html
+0 −0 src/registrar/abha-components/biometric-authentication/biometric-authentication.component.spec.ts
+82 −0 src/registrar/abha-components/biometric-authentication/biometric-authentication.component.ts
+96 −0 src/registrar/abha-components/display-abha-card/display-abha-card.component.css
+21 −0 src/registrar/abha-components/display-abha-card/display-abha-card.component.html
+21 −0 src/registrar/abha-components/display-abha-card/display-abha-card.component.spec.ts
+89 −0 src/registrar/abha-components/display-abha-card/display-abha-card.component.ts
+7 −3 src/registrar/abha-components/download-search-abha/download-search-abha.component.css
+76 −0 src/registrar/abha-components/download-search-abha/download-search-abha.component.html
+21 −0 src/registrar/abha-components/download-search-abha/download-search-abha.component.spec.ts
+208 −0 src/registrar/abha-components/download-search-abha/download-search-abha.component.ts
+0 −5 src/registrar/abha-components/generate-abha-component/generate-abha-component.component.css
+61 −0 src/registrar/abha-components/generate-abha-component/generate-abha-component.component.html
+4 −7 src/registrar/abha-components/generate-abha-component/generate-abha-component.component.spec.ts
+138 −0 src/registrar/abha-components/generate-abha-component/generate-abha-component.component.ts
+0 −0 src/registrar/abha-components/health-id-display-modal/health-id-display-modal.component.css
+0 −0 src/registrar/abha-components/health-id-display-modal/health-id-display-modal.component.html
+0 −0 src/registrar/abha-components/health-id-display-modal/health-id-display-modal.component.spec.ts
+13 −106 src/registrar/abha-components/health-id-display-modal/health-id-display-modal.component.ts
+0 −236 src/registrar/biometric-authentication/biometric-authentication.component.ts
+0 −34 src/registrar/generate-abha-component/auth-method.html
+0 −61 src/registrar/generate-abha-component/generate-abha-component.component.html
+0 −166 src/registrar/generate-abha-component/generate-abha-component.component.ts
+0 −99 src/registrar/generate-mobile-otp-generation/generate-mobile-otp-generation.component.html
+0 −45 src/registrar/generate-mobile-otp-generation/generate-mobile-otp-generation.component.spec.ts
+0 −228 src/registrar/generate-mobile-otp-generation/generate-mobile-otp-generation.component.ts
+0 −141 src/registrar/health-id-otp-generation/health-id-otp-generation.component.html
+0 −45 src/registrar/health-id-otp-generation/health-id-otp-generation.component.spec.ts
+0 −637 src/registrar/health-id-otp-generation/health-id-otp-generation.component.ts
+0 −75 src/registrar/health-id-otp-generation/health-id-otp-succespopup.html
+0 −153 src/registrar/health-id-validatepopup/health-id-validatepopup.component.html
+0 −21 src/registrar/health-id-validatepopup/health-id-validatepopup.component.spec.ts
+0 −534 src/registrar/health-id-validatepopup/health-id-validatepopup.component.ts
+17 −20 src/registrar/registration.module.ts
+1 −2 src/registrar/registration/abha-information/abha-information.component.html
+15 −13 src/registrar/registration/abha-information/abha-information.component.ts
+37 −1 src/registrar/registration/location-information/location-information.component.ts
+1 −1 src/registrar/registration/registration.component.html
+108 −49 src/registrar/registration/registration.component.ts
+1 −1 src/registrar/search/search.component.ts
+2 −1 src/registrar/services/rddevice.service.ts
+42 −0 src/registrar/services/registrar.service.ts
+0 −103 src/registrar/set-password-for-abha/set-password-for-abha.component.html
+0 −45 src/registrar/set-password-for-abha/set-password-for-abha.component.spec.ts
+0 −143 src/registrar/set-password-for-abha/set-password-for-abha.component.ts
+0 −45 src/registrar/view-health-id-card/view-health-id-card.component.css
+0 −35 src/registrar/view-health-id-card/view-health-id-card.component.html
+0 −45 src/registrar/view-health-id-card/view-health-id-card.component.spec.ts
+0 −144 src/registrar/view-health-id-card/view-health-id-card.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ <h3 [ngClass]="['title', status]">
</h3>
<div class="message">{{ message }}</div>
<div class="action">
<button class="full-width-login button-ok" mat-dialog-close cdkFocusInitial>
<button
class="full-width-login button-ok"
(click)="dialogRef.close(true)"
mat-dialog-close
cdkFocusInitial
>
{{ btnOkText }}
</button>
</div>
Expand Down
60 changes: 59 additions & 1 deletion src/app/app-modules/nurse-doctor/workarea/workarea.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ import {
import { CanComponentDeactivate } from '../../core/services/can-deactivate-guard.service';
import { SpecialistLoginComponent } from '../../core/components/specialist-login/specialist-login.component';
import { IdrsscoreService } from '../shared/services/idrsscore.service';
import { RegistrarService } from '../../registrar/shared/services/registrar.service';
import { Observable, Subscription, of } from 'rxjs';
import { HttpServiceService } from '../../core/services/http-service.service';
import { MatSnackBar, MatSnackBarRef } from '@angular/material/snack-bar';
Expand All @@ -59,6 +58,7 @@ import { environment } from 'src/environments/environment';
import { HealthIdDisplayModalComponent } from '../../core/components/health-id-display-modal/health-id-display-modal.component';
import { OpenPreviousVisitDetailsComponent } from '../../core/components/open-previous-visit-details/open-previous-visit-details.component';
import { SchedulerComponent } from '../scheduler/scheduler.component';
import { RegistrarService } from 'Common-UI/src/registrar/services/registrar.service';

@Component({
selector: 'app-workarea',
Expand Down Expand Up @@ -178,6 +178,8 @@ export class WorkareaComponent
isDoctorUpdate = false;
isDoctorSave = false;
serviceType: any;
abdmFacilityId = null;
abdmFacilityName = null;
ngOnInit() {
this.enableUpdateButtonInVitals = false;
this.enableCovidVaccinationSaveButton = false;
Expand Down Expand Up @@ -3221,6 +3223,7 @@ export class WorkareaComponent
}
/* Fetch health ID detaiuls to link the visit */
getHealthIDDetails(successResponseFromAPI: any) {
this.getMappedAbdmFacility();
this.confirmationService
.confirm(
'info',
Expand All @@ -3237,6 +3240,61 @@ export class WorkareaComponent
}
});
}

getMappedAbdmFacility() {
const locationData: any = localStorage.getItem('loginDataResponse');
const jsonLoccationData = JSON.parse(locationData);
let workLocationId: any;
if (jsonLoccationData?.previlegeObj[0]?.roles) {
const roles = jsonLoccationData?.previlegeObj[0]?.roles;
roles.find((item: any) => {
item.RoleName.toLowerCase() === 'doctor';
workLocationId = item.workingLocationID;
});
}
console.log('workLocationId', workLocationId);
this.registrarService.getMappedFacility(workLocationId).subscribe(
(res: any) => {
if (res.statusCode === 200 && res.data !== null) {
const data = res.data;
if (data.abdmFacilityID && data.abdmFacilityName) {
this.abdmFacilityId = data.abdmFacilityID;
this.abdmFacilityName = data.abdmFacilityName;
this.saveAbdmFacilityForVisit();
}
} else {
this.confirmationService.confirm(res.errorMessage, 'info');
this.abdmFacilityId = null;
this.abdmFacilityName = null;
this.saveAbdmFacilityForVisit();
}
},
(err: any) => {
this.confirmationService.alert(err.errorMessage, 'error');
this.saveAbdmFacilityForVisit();
},
);
}

saveAbdmFacilityForVisit() {
const reqObj = {
visitCode: localStorage.getItem('visitCode'),
abdmFacilityId: this.abdmFacilityId,
};
this.registrarService.saveAbdmFacilityForVisit(reqObj).subscribe(
(res: any) => {
if (res.statusCode === 200) {
console.log('Abdm saved successfully');
} else {
this.confirmationService.alert(res.errorMessage, 'error');
}
},
(err: any) => {
this.confirmationService.alert(err.errorMessage, 'error');
},
);
}

fetchHealthIDDetailsOnConfirmation() {
const data = {
beneficiaryID: this.beneficiary.beneficiaryID,
Expand Down
5 changes: 4 additions & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ import { RegistrarModule } from './app-modules/registrar/registrar.module';
import { NgFor } from '@angular/common';
import { AudioRecordingService } from './app-modules/nurse-doctor/shared/services/audio-recording.service';
import { SharedModule } from './app-modules/core/components/shared/shared.module';
import { RegistrarService } from 'Common-UI/src/registrar/services/registrar.service';
import { RegistrationModule } from 'Common-UI/src/registrar/registration.module';

@NgModule({
declarations: [
Expand Down Expand Up @@ -58,10 +60,10 @@ import { SharedModule } from './app-modules/core/components/shared/shared.module
MatTooltipModule,
MatFormFieldModule,
NgFor,
RegistrarModule,
CoreModule.forRoot(),
BrowserAnimationsModule,
SharedModule,
RegistrationModule,
],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
providers: [
Expand All @@ -74,6 +76,7 @@ import { SharedModule } from './app-modules/core/components/shared/shared.module
useClass: HttpInterceptorService,
multi: true,
},
RegistrarService,
],
bootstrap: [AppComponent],
})
Expand Down
17 changes: 16 additions & 1 deletion src/assets/Assamese.json
Original file line number Diff line number Diff line change
Expand Up @@ -1712,6 +1712,21 @@
"beneficaryConsent":"Beneficiary Consent",
"consentFormText": "To provide you with better service, we would,request your personal information. The information that you will providewill be kept confidential and will only be used for research and analysis.",
"mobile":"Mobile",
"noRecordsFound":"No Records Found"
"noRecordsFound":"No Records Found",
"enterMobileNumberToBeLinkedWithAbha": "Enter Phone number to be linked with ABHA",
"doYouWantToVerifyMobileOtpForAbha": "Your provided mobile number is not linked with Aadhaar, Do you want to verify it?",
"abhaCardAlreadyExists": "ABHA already exists for the Aadhaar Number",
"enterABHANumberOrAadhar": "Enter Aadhaar Number Or ABHA Number Or ABHA Address",
"enterABHANumberOrMobile": "Enter Mobile Number Or ABHA Number Or ABHA Address",
"enterCorrectAuthIdForAuthMode": "Please Enter correct Authentication ID for choosen AuthMode",
"abhaAddressFound" : "ABHA Address Found:",
"searchAndDownloadAbha": "Search and Download ABHA",
"abhaSearchMode": "ABHA Search Mode*",
"verifyAbha": "Verify ABHA",
"issueInAbhaCard": "Issue in printing ABHA Card",
"fileUploadedSuccessfully": "File Uploaded successfully",
"verifyMobileOtp": "Verify Mobile OTP",
"enterMobileOtp": "Enter Mobile OTP",
"verify": "Verify"
}
}
18 changes: 16 additions & 2 deletions src/assets/English.json
Original file line number Diff line number Diff line change
Expand Up @@ -1719,8 +1719,22 @@
"beneficaryConsent":"Beneficiary Consent",
"consentFormText": "To provide you with better service, we would,request your personal information. The information that you will providewill be kept confidential and will only be used for research and analysis.",
"mobile":"Mobile",
"noRecordsFound":"No Records Found"

"noRecordsFound":"No Records Found",
"enterMobileNumberToBeLinkedWithAbha": "Enter Phone number to be linked with ABHA",
"doYouWantToVerifyMobileOtpForAbha": "Your provided mobile number is not linked with Aadhaar, Do you want to verify it?",
"abhaCardAlreadyExists": "ABHA already exists for the Aadhaar Number",
"enterABHANumberOrAadhar": "Enter Aadhaar Number Or ABHA Number Or ABHA Address",
"enterABHANumberOrMobile": "Enter Mobile Number Or ABHA Number Or ABHA Address",
"enterCorrectAuthIdForAuthMode": "Please Enter correct Authentication ID for choosen AuthMode",
"abhaAddressFound" : "ABHA Address Found:",
"searchAndDownloadAbha": "Search and Download ABHA",
"abhaSearchMode": "ABHA Search Mode*",
"verifyAbha": "Verify ABHA",
"issueInAbhaCard": "Issue in printing ABHA Card",
"fileUploadedSuccessfully": "File Uploaded successfully",
"verifyMobileOtp": "Verify Mobile OTP",
"enterMobileOtp": "Enter Mobile OTP",
"verify": "Verify"
}

}
18 changes: 16 additions & 2 deletions src/assets/Hindi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,21 @@
"beneficaryConsent":"Beneficiary Consent",
"consentFormText": "To provide you with better service, we would,request your personal information. The information that you will providewill be kept confidential and will only be used for research and analysis.",
"mobile":"Mobile",
"noRecordsFound":"No Records Found"

"noRecordsFound":"No Records Found",
"enterMobileNumberToBeLinkedWithAbha": "Enter Phone number to be linked with ABHA",
"doYouWantToVerifyMobileOtpForAbha": "Your provided mobile number is not linked with Aadhaar, Do you want to verify it?",
"abhaCardAlreadyExists": "ABHA already exists for the Aadhaar Number",
"enterABHANumberOrAadhar": "Enter Aadhaar Number Or ABHA Number Or ABHA Address",
"enterABHANumberOrMobile": "Enter Mobile Number Or ABHA Number Or ABHA Address",
"enterCorrectAuthIdForAuthMode": "Please Enter correct Authentication ID for choosen AuthMode",
"abhaAddressFound" : "ABHA Address Found:",
"searchAndDownloadAbha": "Search and Download ABHA",
"abhaSearchMode": "ABHA Search Mode*",
"verifyAbha": "Verify ABHA",
"issueInAbhaCard": "Issue in printing ABHA Card",
"fileUploadedSuccessfully": "File Uploaded successfully",
"verifyMobileOtp": "Verify Mobile OTP",
"enterMobileOtp": "Enter Mobile OTP",
"verify": "Verify"
}
}
2 changes: 1 addition & 1 deletion src/environments/environment.dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const environment = {
RBSTest: `RBS Test`,
visualAcuityTest: `Visual Acuity Test`,
haemoglobinTest: `Haemoglobin Test`,
abhaExtension: `@abdm`,
abhaExtension: `@sbx`,
parentAPI: `${TM_API}`,

INVENTORY_URL: `${inventoryUI_IP}/inventory/#/redirin?`,
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.development.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const environment = {
RBSTest: `RBS Test`,
visualAcuityTest: `Visual Acuity Test`,
haemoglobinTest: `Haemoglobin Test`,
abhaExtension: `@abdm`,
abhaExtension: `@sbx`,
parentAPI: `${TM_API}`,

INVENTORY_URL: `${inventoryUI_IP}/inventory/#/redirin?`,
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const environment = {
RBSTest: `RBS Test`,
visualAcuityTest: `Visual Acuity Test`,
haemoglobinTest: `Hemoglobin Test`,
abhaExtension: `@abdm`,
abhaExtension: `@sbx`,

parentAPI: `${TM_API}`,

Expand Down

0 comments on commit 35863b2

Please sign in to comment.