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ACAC,MACAC,IACAC,MACAC,KACAC,KACAC,KACAC,KACAC,KACAC,MACAC,KACAC,MACAC,MACAC,MACAC,MACAC,MACAC,MACAC,KAGAvB,KACAC,KACAC,KACAC,IACAC,MACAC,KACAC,MACAC,MACAC,IACAC,MACAC,KACAC,KACAC,KACAC,KACAC,KACAC,MACAC,KACAC,MACAC,MACAC,MACAC,MACAC,MACAC,MACAC,uBCrEF,MAAOC,EAET5jB,YAAoB6jB,EAA0C5jB,GAA1CE,uBAA0CA,cAC1DA,KAAKqB,YAAcrB,KAAK0jB,gBAAgB1gB,UAC5C,CACA2gB,UAAUC,EAA2BhjB,GACjCgjB,SAAUA,EAAQC,MAAM,CACpB/Q,QAAS,IAAIC,KAAY,CACrB,eAAiB,mBACjB+Q,cAAiB,UAAY9jB,KAAKqB,gBAGnCT,EAAKmjB,OAAOH,GAAS1b,QAAM8b,MAAI,OACrCC,IACD,GAAIA,aAAeC,KAAmB,CACpC,GAAmB,MAAfD,EAAIE,OACP,OAEDnkB,KAAK0jB,gBAAgB/gB,MAAM3C,KAAKF,OAAOkC,QAG7C,EArBSyhB,EAAsB,oCAAtBA,GAAsBpf,uBAAtBof,EAAsB,wBAAtBA,EAAsBnf,QAAtBmf,EAAsB,YC+ClB,IAAIxjB,OAAShB,QA2DxB,MAAOmlB,KAAS,oCAATA,EAAS,EAATA,EAAS,sBAATA,EAASC,WAFR7C,MAED4C,EAAS,2BAHT,CAACzR,EAAmB,CAAC2R,QAASC,KAAmBC,SAAUf,EAAwBgB,OAAO,GAAMC,MAASC,SAnBlHC,MACAhE,EACAiE,MACA7C,EACA8C,MACAC,MACAC,MACA5C,IACAQ,KACAX,KACAgD,KACAC,KACAC,MACAhD,KACAiD,KACAC,MACAC,eACAC,SCrGAtmB,EACFumB,SAGFC,QAAyBC,gBAAgBtB,GACtCuB,MAAM1B,GAAO1O,QAAQlO,MAAM4c","names":["environment","clientId","issuer","redirectUri","scopes","pkce","HomeComponent","selectors","i0","Constants","roleMap","OktaAuthService","constructor","router","toastr","this","OktaAuth","CLIENT_ID","ISSUER","LOGIN_REDIRECT_URI","$isAuthenticated","Observable","observer","toaster","isAuthenticated","then","val","next","_this","oktaAuth","tokenManager","get","isUserAuthorized","action","groups","getTokensSync","accessToken","claims","Groups","undefined","role","pages","includes","getUser","errorName","URLSearchParams","_this2","url","successResponse","name","toString","failureResponse","AuthApiError","warning","timeOut","onHidden","subscribe","clear","login","revokeAccessToken","revokeRefreshToken","_this3","closeSession","getToken","getAccessToken","originalUrl","sessionStorage","setItem","token","getWithRedirect","handleAuthentication","tokenContainer","_this4","parseFromUrl","add","tokens","idToken","getItem","navigateByUrl","logout","_this5","signOut","postLogoutRedirectUri","LOGOUT_REDIRECT_URI","core","factory","CallbackComponent","okta","ngOnInit","ChangePasswordComponent","ForgotPasswordComponent","LoginComponent","navigate","UserProfileComponent","PharmacyData","PharmacyGridData","PharmacyGridDataMapper","mapToModel","json","pharmacyGridData","pharmacyDataMapper","PharmacyDataMapper","pharmacyData","ResponseData","map","item","PharmacyID","PharmacyId","PharmacyName","IsEnabled","EffectiveDate","TermDate","PetEnabled","BillingGroup","BillingRegion","PharmacyCRUDModel","PharmacyStoreGridData","PharmacyStoreGridDataMapper","pharmacyStoreGridData","NPIs","PharmacyLookupDataMapper","pharmacyLookupData","pharmacyStoreGridDataMapper","PharmacyEndpointURL","OktaMckClientId","AuthType","OktaAuthURL","OktaClientId","OktaClientSecret","BasicUserName","BasicPassword","FuncsService","error","throwError","Errors","ErrorMessage","PharmacyService","http","globalFunc","getPharmacyGrid","pharmacySearchModel","data","JSON","stringify","post","pipe","take","pharmacyGridDataMapper","catchError","getPharmacyDetails","pharmacyModel","pharmacyLookupDataMapper","savePharmacy","updatePharmacy","put","savePharmacyStores","deletePharmacyStore","httpOptions","body","delete","MatspinnerComponent","PharmacySearchComponent","applyFilter","event","dataSource","filter","target","value","trim","toLowerCase","paginator","firstPage","pharmacyService","id","LoadData","res","MatTableDataSource","isLoading","sort","pharmacyFilter","KeyboardEvent","bubbles","input","nativeElement","dispatchEvent","MatPaginator","MatSort","ctx","PharmacyAddComponent","Date","minTermDate","setDate","getDate","createFormControls","createForm","userName","localStorage","FormControl","Validators","toDateString","form","FormGroup","errorMessageForPharmacyName","pharmacyform","hasError","errorMessageForEffectiveDate","errorMessageForTermDate","errorMessageForEndpointURL","errorMessageForBillingGroup","errorMessageForBillingRegion","clearDuplicateValidation","setErrors","duplicate","updateValueAndValidity","dateValidation","effectiveDate","parse","termDate","clearValidation","setHours","markAsTouched","onDateInputkeyup","onDateSelect","targetElement","onUseOkta","useOkta","setValue","submitForm","valid","getPharmacyModel","ResponseStatus","success","ResponseMessage","formatDate","UpdatedBy","onClickCancel","onBillingGroupChange","leadingZeros","length","onBillingRegionChange","PharmacyStoreModel","PharmacyStoreComponent","dialog","NPI","errorMessageForPharmacyNpi","invalid_npi","pharmacyStoreModel","pharmacyNPIs","split","closeAll","invalid_npi_length","MAT_DIALOG_DATA","PharmacyUpdateComponent","route","modalService","paramMap","params","pharmacyId","loadPharmacyDetails","div","document","getElementById","classList","remove","ngOnDestroy","errorMessageForIsEnabled","invalidTermDateError","initialEffectiveDate","enabledValidation","showNPIPopup","open","width","afterClosed","result","pharmacyLookupRequest","setFormValues","npis","x","join","minEffectiveDate","deleteNPI","npi","content","ariaLabelledBy","reason","onEnabledChange","PharmacyViewComponent","TransactionData","Pagination","TransactionGridData","TransactionGridDataMapper","TransactionDataMapper","TransactionDataPaginationMapper","transactionGridData","transactionData","transactionDataMapper","pagination","PageNumber","PageSize","TotalItems","TotalPages","RequestID","MessageID","RelatesToMessageID","PharmacyNPI","PharmacyNpi","Species","IsPet","PatientLastName","PatientDOB","RequestDate","MessageType","Initiator","TransactionSearchModel","TransactionService","getTransactionGrid","transactionSearchModel","headers","HttpHeaders","transactionGridDataMapper","getPharmacyVendors","getTransactionSummaryHeader","TransactionSearchComponent","enableSearch","transactionPagesize","transactionPageNumber","filteredOptions","PharmacyVendor","valueChanges","startWith","_filter","LoadSpecies","LoadStatus","LoadVendors","transactionservice","datePipe","MessageId","RelatesToMessageId","BeginDate","EndDate","BeginDateTime","hour","minute","PatientDateOfBirth","EndDateTime","getHours","getMinutes","Status","getTransactionModel","startDate","endDate","StartDate","transform","pharmacyVendor","vendorList","find","showHideFilter","showFilter","console","log","LoadTransactionsGrid","clearTable","onPageEvent","pageSize","pageIndex","filterValue","option","displayTextForVendor","vendor","speciesList","SpeciesId","SpeciesName","statusList","StatusId","StatusName","errorMessageForMessageId","transactionform","errorMessageForRelatesToMessageId","errorMessageForPharmacyLastname","errorMessageForPatientDOB","errorMessageForBeginDate","errorMessageForEndDate","element","begintime","endtime","beginDate","setMinutes","isNaN","matDatepickerParse","minDate","onTimeChange","elementName","onDobDateSelect","disableSection","closest","className","required","section","checkForValueInSection","section2","disable","enable","section1","onInputkeyup","validatePatientLastNameAndDob","currentTarget","invalid","patientLastName","patientDob","regex","RegExp","test","pattern","maxlength","mandatory","today","futuredateerror","onVendorChange","source","_elementRef","onStatusChange","onSpeciesChange","hasValue","novalue","clearSearch","onClickTransactionId","initiator","TransactionDetailComponent","TransactionViewComponent","TransactionFlowComponent","TransactionResultData","TransactionSummaryData","TransactionResponseData","TransactionErrorData","FileNode","RESPONSE_TREE_DATA","REQUEST_TREE_DATA","TransactionSummaryComponent","dataChange","responseData","responseDataChange","transactionService","BehaviorSubject","_","nodeData","type","node","children","window","nestedTreeControl","NestedTreeControl","_getChildren","nestedDataSource","MatTreeNestedDataSource","responseNestedTreeControl","_getResponseChildren","responseNestedDataSource","loadTransactionSummaryHeader","RequestData","transactionRequestData","RequestJson","requestTabTitle","requestJsonObject","requestDataObject","buildRequestFileTree","jsonArray","forEach","ResponseJson","jObject","ResponseTitle","ResponseDate","push","responseDataObject","buildResponseFileTree","obj","isExpand","Object","keys","reduce","accumulator","key","filename","markedForDelete","expand","collapse","concat","expandorcollapse","text","filterNodes","Array","of","dataObject","initialNodes","filteredtree","markNodeForRemoval","filteredNodes","removeNodes","tree","index","toLocaleLowerCase","descendants","getDescendants","hasOwnProperty","isRootNode","expandorcollapseResponse","responseFilterNodes","responseInitialNodes","markResponseNodeForRemoval","responseFilteredNodes","removeResponseNodes","applyResponseFilter","buildResponseTitle","nodeValue","titleElements","tableCell","keyValue","showHideDetails","showDetails","PermissionAddComponent","PermissionSearchComponent","PermissionViewComponent","RoleAddComponent","RoleSearchComponent","RoleViewComponent","RolePermissionsComponent","UserAddComponent","UserSearchComponent","UserViewComponent","UserRolesComponent","OktaAuthGuard","canActivate","state","LogoutComponent","UnAuthorizedComponent","routes","path","component","redirectTo","pathMatch","AppRoutingModule","RouterModule","FooterComponent","getFullYear","SidenavComponent","page","ToolbarComponent","EventEmitter","usr","emit","toggle","handleLogout","AppComponent","leftOpened","events","NavigationEnd","urlParams","errorDescr","e","isLogout","MaterialModule","MatButtonModule","MatCardModule","MatFormFieldModule","MatInputModule","MatToolbarModule","MatIconModule","MatSidenavModule","MatMenuModule","MatDividerModule","MatListModule","MatExpansionModule","MatTableModule","MatPaginatorModule","MatSortModule","MatDialogModule","MatTooltipModule","MatDatepickerModule","MatNativeDateModule","MatButtonToggleModule","MatGridListModule","MatSlideToggleModule","MatProgressSpinnerModule","MatTabsModule","MatRadioModule","AccessTokenInterceptor","oktaAuthService","intercept","request","clone","Authorization","handle","tap","err","HttpErrorResponse","status","AppModule","bootstrap","provide","HTTP_INTERCEPTORS","useClass","multi","DatePipe","imports","BrowserModule","BrowserAnimationsModule","NgbModule","MatSelectModule","MatCheckboxModule","HttpClientModule","FormsModule","MatAutocompleteModule","ReactiveFormsModule","NgbTimepicker","ToastrModule","MatTreeModule","enableProdMode","__NgCli_bootstrap_1","bootstrapModule","catch"],"sourceRoot":"webpack:///","sources":["./src/environments/environment.qa.ts","./src/app/shared/components/home/home.component.ts","./src/app/shared/components/home/home.component.html","./src/assets/Constants.ts","./src/app/services/auth.service.ts","./src/app/core/callback/callback.component.ts","./src/app/features/authentication/change-password/change-password.component.ts","./src/app/features/authentication/change-password/change-password.component.html","./src/app/features/authentication/forgot-password/forgot-password.component.ts","./src/app/features/authentication/forgot-password/forgot-password.component.html","./src/app/features/authentication/login/login.component.ts","./src/app/features/authentication/login/login.component.html","./src/app/features/authentication/user-profile/user-profile.component.ts","./src/app/features/authentication/user-profile/user-profile.component.html","./src/app/features/DTO/pharmacy.ts","./src/app/features/DTO/pharmacy-crud.ts","./src/app/services/funcs.service.ts","./src/app/services/pharmacyservice.ts","./src/app/shared/components/matspinner/matspinner.component.ts","./src/app/shared/components/matspinner/matspinner.component.html","./src/app/features/pharmacy/pharmacy-search/pharmacy-search.component.html","./src/app/features/pharmacy/pharmacy-search/pharmacy-search.component.ts","./src/app/features/pharmacy/pharmacy-add/pharmacy-add.component.html","./src/app/features/pharmacy/pharmacy-add/pharmacy-add.component.ts","./src/app/features/DTO/pharmacy-store-crud.ts","./src/app/features/pharmacy/pharmacy-store/pharmacy-store.component.html","./src/app/features/pharmacy/pharmacy-store/pharmacy-store.component.ts","./src/app/features/pharmacy/pharmacy-update/pharmacy-update.component.html","./src/app/features/pharmacy/pharmacy-update/pharmacy-update.component.ts","./src/app/features/pharmacy/pharmacy-view/pharmacy-view.component.ts","./src/app/features/pharmacy/pharmacy-view/pharmacy-view.component.html","./src/app/features/DTO/transaction.ts","./src/app/features/DTO/transaction-search-model.ts","./src/app/services/transactionservice.ts","./src/app/features/transaction/transaction-search/transaction-search.component.html","./src/app/features/transaction/transaction-search/transaction-search.component.ts","./src/app/features/transaction/transaction-detail/transaction-detail.component.ts","./src/app/features/transaction/transaction-detail/transaction-detail.component.html","./src/app/features/transaction/transaction-view/transaction-view.component.ts","./src/app/features/transaction/transaction-view/transaction-view.component.html","./src/app/features/transaction/transaction-flow/transaction-flow.component.ts","./src/app/features/transaction/transaction-flow/transaction-flow.component.html","./src/app/features/DTO/transaction-summary.ts","./src/app/features/transaction/transaction-summary/transaction-summary.component.html","./src/app/features/transaction/transaction-summary/transaction-summary.component.ts","./src/app/features/user-management/permission/permission-add/permission-add.component.ts","./src/app/features/user-management/permission/permission-add/permission-add.component.html","./src/app/features/user-management/permission/permission-search/permission-search.component.ts","./src/app/features/user-management/permission/permission-view/permission-view.component.ts","./src/app/features/user-management/permission/permission-view/permission-view.component.html","./src/app/features/user-management/role/role-add/role-add.component.ts","./src/app/features/user-management/role/role-add/role-add.component.html","./src/app/features/user-management/role/role-search/role-search.component.ts","./src/app/features/user-management/role/role-search/role-search.component.html","./src/app/features/user-management/role/role-view/role-view.component.ts","./src/app/features/user-management/role/role-view/role-view.component.html","./src/app/features/user-management/role/role-permissions/role-permissions.component.ts","./src/app/features/user-management/role/role-permissions/role-permissions.component.html","./src/app/features/user-management/user/user-add/user-add.component.ts","./src/app/features/user-management/user/user-add/user-add.component.html","./src/app/features/user-management/user/user-search/user-search.component.ts","./src/app/features/user-management/user/user-search/user-search.component.html","./src/app/features/user-management/user/user-view/user-view.component.ts","./src/app/features/user-management/user/user-view/user-view.component.html","./src/app/features/user-management/user/user-roles/user-roles.component.ts","./src/app/features/user-management/user/user-roles/user-roles.component.html","./src/app/core/guards/auth.guard.ts","./src/app/core/logout/logout.component.ts","./src/app/core/logout/logout.component.html","./src/app/shared/components/unauthorized/unauthorized.component.ts","./src/app/shared/components/unauthorized/unauthorized.component.html","./src/app/app-routing.module.ts","./src/app/shared/components/footer/footer.component.ts","./src/app/shared/components/footer/footer.component.html","./src/app/shared/components/sidenav/sidenav.component.html","./src/app/shared/components/sidenav/sidenav.component.ts","./src/app/shared/components/toolbar/toolbar.component.ts","./src/app/shared/components/toolbar/toolbar.component.html","./src/app/app.component.ts","./src/app/app.component.html","./src/app/shared/material/material.module.ts","./src/app/core/guards/access-token-interceptor.ts","./src/app/app.module.ts","./src/main.ts"],"sourcesContent":["export const environment = {\n production: 'false',\n appBaseHref: '/',\n oidc: {\n clientId: '0oa6ae7hzjl2rwvbd4h7',\n issuer: 'https://relayhealth.okta.com/oauth2/aus6a5udb3NjX8qza4h7',\n redirectUri: 'login/callback',\n scopes: ['openid'],\n pkce: false\n },\n resourceServer: {\n messagesUrl: ''\n },\n transactionListUrl: 'https://rxorders-transaction-list-cpv54avpjq-uk.a.run.app',\n transactionLookupUrl:'https://rxorders-transaction-lookup-cpv54avpjq-uk.a.run.app',\n pharmacyCrudUrl:'https://rxorders-pharmacy-crud-cpv54avpjq-uk.a.run.app',\n pharmacyListUrl:'https://rxorders-pharmacy-list-cpv54avpjq-uk.a.run.app',\n pharmacyLookupUrl:'https://rxorders-pharmacy-lookup-cpv54avpjq-uk.a.run.app',\n pharmacyStoresCrudUrl:'https://rxorders-pharmacy-stores-crud-cpv54avpjq-uk.a.run.app'\n };\n ","import { Component } from '@angular/core';\nimport { Input } from '@angular/core';\n\n@Component({\n selector: 'app-home',\n templateUrl: './home.component.html',\n styleUrls: ['./home.component.css']\n})\nexport class HomeComponent {\n @Input() sidenav: any;\n}\n\n","
\n \n \n The information\n contained herein is proprietary and may only be used in connection with\n CoverMyMeds
services for internal review and analysis of claims submitted.  It\n may not be reproduced in any manner
or used for any other purposes.\n
\n
","import { FormControl, FormGroup, Validators } from '@angular/forms';\nexport abstract class Constants {\n static readonly roleMap: any = {\n \"RXORDERS-VELA-IMPLEMENTATION\":[\"Pharmacy\"],\n \"RXORDERS-VELA-SUPPORT\":[\"Transaction\"],\n \"RXORDERS-VELA-ADMIN\":[\"*\"]\n }\n}","import { Observable, Observer } from 'rxjs';\nimport { ToastrService } from 'ngx-toastr';\nimport { Injectable } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { OktaAuth,\n AccessToken,\n IDToken,\n UserClaims,\n TokenParams,\n AuthApiError} from '@okta/okta-auth-js';\nimport { environment } from 'src/environments/environment';\nimport { Constants } from './../../assets/Constants';\n\n@Injectable({ providedIn: 'root' })\nexport class OktaAuthService {\n\n CLIENT_ID = environment.oidc.clientId;\n ISSUER = environment.oidc.issuer;\n LOGIN_REDIRECT_URI = environment.oidc.redirectUri;\n LOGOUT_REDIRECT_URI = '/home';\n\n oktaAuth = new OktaAuth({\n clientId: this.CLIENT_ID,\n issuer: this.ISSUER,\n redirectUri: this.LOGIN_REDIRECT_URI,\n pkce: environment.oidc.pkce\n });\n \n $isAuthenticated: Observable;\n private observer?: Observer;\n private toaster!: ToastrService;\n constructor(private router: Router, private toastr:ToastrService ) {\n this.$isAuthenticated = new Observable((observer: Observer) => {\n this.observer = observer;\n this.toaster = toastr;\n this.isAuthenticated().then(val => {\n observer.next(val);\n });\n });\n }\n\n async isAuthenticated() {\n // Checks if there is a current accessToken in the TokenManger. \n return !!(await this.oktaAuth.tokenManager.get('accessToken'));\n }\n isUserAuthorized(action:string):boolean { \n let token= this.oktaAuth.tokenManager.getTokensSync();\n let groups:any=token?.accessToken?.claims?.['Groups']\n if(groups==undefined)\n {\n return true;\n }\n for (let role of groups) {\n let pages=Constants.roleMap[role]\n if((pages !=undefined) && (pages.includes(action)|| pages.includes(\"*\")))\n {\n return true;\n }\n \n }\n return false;\n }\n async getUser(){\n const urlParams = new URLSearchParams(this.router.url);\n const errorName = urlParams.get('error');\n\n if (this.router.url !== '/logout') \n if (await this.isAuthenticated() && (errorName == \"\" || errorName == undefined || errorName == null)) {\n return await this.oktaAuth.getUser().then(\n successResponse => {\n return successResponse.name!.toString();\n },\n failureResponse => {\n if(failureResponse instanceof AuthApiError) {\n this.toaster.warning(\"You have expired or wrong access token and it's requried re-authenticated. This page will be redirect to Okta Login Page in few seconds\", \n \"Wrong Token\",\n { \n timeOut: 4000\n }).onHidden.subscribe(() => { \n this.toastr.clear();\n this.login('/home');\n });\n }});\n }\n return '';\n }\n\n async revokeAccessToken() {\n this.oktaAuth.revokeRefreshToken();\n this.oktaAuth.revokeAccessToken();\n return this.oktaAuth.closeSession();\n }\n public getToken() {\n if (this.isAuthenticated()) {\n return this.oktaAuth.getAccessToken();\n }\n return '';\n }\n\n login(originalUrl: string) {\n // Save current URL before redirect\n sessionStorage.setItem('okta-app-url', originalUrl || this.router.url);\n\n // Launches the login redirect.\n this.oktaAuth.token.getWithRedirect({\n scopes: ['openid', 'email', 'profile']\n });\n }\n\n async handleAuthentication() {\n const tokenContainer = await this.oktaAuth.token.parseFromUrl();\n this.oktaAuth.tokenManager.add('idToken', tokenContainer.tokens.idToken as IDToken);\n this.oktaAuth.tokenManager.add('accessToken', tokenContainer.tokens.accessToken as AccessToken);\n \n if (await this.isAuthenticated()) {\n this.observer?.next(true);\n }\n\n // Retrieve the saved URL and navigate back\n const url = sessionStorage.getItem('okta-app-url') as string;\n this.router.navigateByUrl(url);\n }\n\n async logout() {\n await this.oktaAuth.signOut({\n postLogoutRedirectUri: this.LOGOUT_REDIRECT_URI\n });\n }\n\n}\n","import { Component, OnInit } from '@angular/core';\nimport { OktaAuthService } from 'src/app/services/auth.service';\n\n@Component({\n selector: 'app-callback',\n templateUrl: './callback.component.html'\n})\nexport class CallbackComponent implements OnInit {\n\n constructor(private okta: OktaAuthService) {}\n\n ngOnInit(): void {\n // Handles the response from Okta and parses tokens\n this.okta.handleAuthentication();\n }\n}","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-change-password',\n templateUrl: './change-password.component.html',\n styleUrls: ['./change-password.component.css']\n})\nexport class ChangePasswordComponent {\n\n}\n","

change-password works!

\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-forgot-password',\n templateUrl: './forgot-password.component.html',\n styleUrls: ['./forgot-password.component.css']\n})\nexport class ForgotPasswordComponent {\n\n}\n","

forgot-password works!

\n","import { Component } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { OktaAuthService } from 'src/app/services/auth.service';\n\n@Component({\n selector: 'app-login',\n templateUrl: './login.component.html',\n styleUrls: ['./login.component.css']\n})\nexport class LoginComponent {\n\n constructor(private okta: OktaAuthService, private router: Router) {}\n\n async ngOnInit()\n { \n const authenticated = await this.okta.isAuthenticated();\n if (authenticated) { \n this.router.navigate(['/','home']);\n return true; \n }\n \n // Redirect to login flow.\n this.okta.login('/home');\n return false;\n \n }\n\n // handleLogIn() {\n // localStorage.setItem('token', '123');\n // this.route.navigate(['/home']);\n // }\n}\n","
\n
\n
\n \n

\n

\n
\n \n \n \n \n user\n \n
\n
\n
\n \n
\n
\n
\n
","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-user-profile',\n templateUrl: './user-profile.component.html',\n styleUrls: ['./user-profile.component.css']\n})\nexport class UserProfileComponent {\n\n}\n","

user-profile works!

\n","export class PharmacyData {\n public PharmacyID: String;\n public PharmacyName: String;\n public IsEnabled: String;\n public EffectiveDate: String;\n public TermDate: String;\n public PetEnabled: String;\n public PharmacyEndpointUrl: String;\n public AuthType: String;\n public AuthUrl: String;\n public UserName: String;\n public Password: String;\n public ClientId:String;\n public ClientSecret:String;\n public MckClientId:String;\n public BillingGroup:String;\n public BillingRegion:String;\n public UpdateDate:String;\n public UpdatedBy:String;\n}\n\nexport class PharmacyGridData{\n public TotalNumberOfRecords :number;\n public pharmacyData :PharmacyData[];\n}\n\nexport class PharmacyGridDataMapper{\n mapToModel(json: any): PharmacyGridData {\n let pharmacyGridData: PharmacyGridData = null;\n let pharmacyDataMapper= new PharmacyDataMapper();\n if (json) {\n pharmacyGridData = new PharmacyGridData();\n pharmacyGridData.pharmacyData = json.ResponseData.map((item:any)=>pharmacyDataMapper.mapToModel(item));\n }\n return pharmacyGridData;\n }\n}\n\nlet pharmacyData: PharmacyData;\nexport class PharmacyDataMapper {\n mapToModel(json: any): PharmacyData {\n if (json) {\n pharmacyData = new PharmacyData();\n pharmacyData.PharmacyID = json.PharmacyId;\n pharmacyData.PharmacyName = json.PharmacyName;\n pharmacyData.IsEnabled = json.IsEnabled;\n pharmacyData.EffectiveDate = json.EffectiveDate;\n pharmacyData.TermDate = json.TermDate;\n pharmacyData.PetEnabled = json.PetEnabled;\n pharmacyData.BillingGroup=json.BillingGroup;\n pharmacyData.BillingRegion=json.BillingRegion;\n }\n return pharmacyData;\n }\n}\n","export class PharmacyCRUDModel {\n public PharmacyId: string;\n public PharmacyName: string;\n public EffectiveDate: string;\n public TermDate: string;\n public IsEnabled: string;\n public PetEnabled: string;\n public BillingGroup:string;\n public BillingRegion:string;\n public PharmacyEndpointURL: string;\n public OktaMckClientId:string;\n public AuthType: string;\n public OktaAuthURL: string;\n public OktaClientId: string;\n public OktaClientSecret: string;\n public BasicUserName: string;\n public BasicPassword: string;\n public UpdateDate:string;\n public UpdatedBy:string;\n public NPIs:PharmacyStoreGridData;\n}\nexport class PharmacyStoreCRUDModel {\n public NPI: String;\n}\nexport class PharmacyStoreGridData{\n public TotalNumberOfRecords :number;\n public NPIs :PharmacyCRUDModel[];\n\n }\n export class PharmacyStoreGridDataMapper{\n mapToModel(json: any): PharmacyStoreGridData {\n let pharmacyStoreGridData: PharmacyStoreGridData = null;\n if (json) {\n pharmacyStoreGridData = new PharmacyStoreGridData();\n pharmacyStoreGridData.NPIs = json;\n }\n return pharmacyStoreGridData;\n }\n }\n\nexport class PharmacyCRUDResultModel {\n public Errors: Array;\n public ResponseData: string;\n public ResponseMessage: string;\n public ResponseStatus: string;\n}\n\nexport class ErrorListItem {\n public ErrorCode: number;\n public ErrorMessage: string;\n}\n\nexport class PharmacyLookupDataMapper\n{\n mapToModel(json: any): PharmacyCRUDModel {\n let pharmacyLookupData: PharmacyCRUDModel = null;\n let pharmacyStoreGridDataMapper=new PharmacyStoreGridDataMapper();\n if (json && json.ResponseData) {\n pharmacyLookupData = new PharmacyCRUDModel();\n pharmacyLookupData.PharmacyId=json.ResponseData.PharmacyId;\n pharmacyLookupData.PharmacyName=json.ResponseData.PharmacyName;\n pharmacyLookupData.EffectiveDate=json.ResponseData.EffectiveDate;\n pharmacyLookupData.TermDate=json.ResponseData.TermDate;\n pharmacyLookupData.IsEnabled=json.ResponseData.IsEnabled;\n pharmacyLookupData.PetEnabled=json.ResponseData.PetEnabled;\n pharmacyLookupData.BillingGroup=json.ResponseData.BillingGroup;\n pharmacyLookupData.BillingRegion=json.ResponseData.BillingRegion;\n pharmacyLookupData.PharmacyEndpointURL=json.ResponseData.PharmacyEndpointURL;\n pharmacyLookupData.OktaMckClientId=json.ResponseData.OktaMckClientId;\n pharmacyLookupData.AuthType=json.ResponseData.AuthType;\n pharmacyLookupData.OktaAuthURL=json.ResponseData.OktaAuthURL;\n pharmacyLookupData.OktaClientId=json.ResponseData.OktaClientId;\n pharmacyLookupData.OktaClientSecret=json.ResponseData.OktaClientSecret;\n pharmacyLookupData.BasicUserName=json.ResponseData.BasicUserName;\n pharmacyLookupData.BasicPassword=json.ResponseData.BasicPassword;\n pharmacyLookupData.NPIs=pharmacyStoreGridDataMapper.mapToModel(json.ResponseData.NPIs)\n }\n return pharmacyLookupData;\n }\n}\n","import { Injectable } from '@angular/core';\nimport { throwError } from 'rxjs';\nimport { HttpErrorResponse } from '@angular/common/http';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class FuncsService {\n\n constructor() { }\n\n // Handle Errors\n error(error: HttpErrorResponse) {\n return throwError(() => {\n if(error?.error?.Errors){\n return error?.error?.Errors[0]?.ErrorMessage;\n }\n else{\n return \"Internal Server Error - Please contact admin\";\n }\n });\n }\n}\n","import { Injectable } from '@angular/core';\nimport { catchError, map, take } from 'rxjs/operators';\nimport {\n HttpClient,\n HttpHeaders,\n} from '@angular/common/http';\nimport { PharmacyData,PharmacyGridDataMapper } from '../features/DTO/pharmacy';\nimport { PharmacySearchModel } from '../features/DTO/pharmacy-search';\nimport { PharmacyCRUDModel, PharmacyCRUDResultModel,PharmacyLookupDataMapper } from '../features/DTO/pharmacy-crud';\nimport { FuncsService } from '../services/funcs.service';\nimport { PharmacyStoreModel,PharmacyStoreResultModel } from '../features/DTO/pharmacy-store-crud';\nimport { environment } from 'src/environments/environment';\n@Injectable({\n providedIn: 'root'\n })\n\n export class PharmacyService {\n private pharmacyGridDataMapper = new PharmacyGridDataMapper();\n private pharmacyLookupDataMapper = new PharmacyLookupDataMapper();\n constructor(private http: HttpClient, private globalFunc:FuncsService) { \n\n }\n getPharmacyGrid(pharmacySearchModel:PharmacySearchModel) {\n let data:any=JSON.stringify(pharmacySearchModel);\n return this.http.post>(environment.pharmacyListUrl,data)\n .pipe(take(1), map((data: any) => this.pharmacyGridDataMapper.mapToModel(data)))\n .pipe(catchError(this.globalFunc.error));\n }\n\n getPharmacyDetails(pharmacyModel:PharmacyCRUDModel) {\n let data:any=JSON.stringify(pharmacyModel);\n return this.http.post(environment.pharmacyLookupUrl,data)\n .pipe(take(1), map((data: any) => this.pharmacyLookupDataMapper.mapToModel(data)))\n .pipe(catchError(this.globalFunc.error));\n }\n\n savePharmacy(pharmacyModel:PharmacyCRUDModel) {\n let data:any=JSON.stringify(pharmacyModel);\n return this.http.post(environment.pharmacyCrudUrl,data)\n .pipe(catchError(this.globalFunc.error));\n }\n\n updatePharmacy(pharmacyModel:PharmacyCRUDModel) {\n let data:any=JSON.stringify(pharmacyModel);\n return this.http.put(environment.pharmacyCrudUrl,data)\n .pipe(catchError(this.globalFunc.error));\n }\n\n savePharmacyStores(pharmacyModel:PharmacyStoreModel) {\n let data:any=JSON.stringify(pharmacyModel);\n return this.http.post(environment.pharmacyStoresCrudUrl,data)\n .pipe(catchError(this.globalFunc.error));\n }\n\n deletePharmacyStore(pharmacyModel:PharmacyStoreModel) {\n let data:any=JSON.stringify(pharmacyModel);\n const httpOptions = {\n body: data\n };\n return this.http.delete(environment.pharmacyStoresCrudUrl,httpOptions)\n .pipe(catchError(this.globalFunc.error));\n }\n }\n ","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-matspinner',\n templateUrl: './matspinner.component.html',\n styleUrls: ['./matspinner.component.css']\n})\nexport class MatspinnerComponent {\n\n}\n","
\n
\n \n \n
\n
","\n \n \n Pharmacy Search\n \n \n
\n \n\n Search\n \n\n\n
\n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n\n \n \n \n \n
Pharmacy Id {{row.PharmacyID}}\n Pharmacy Name \n {{row.PharmacyName}} Is Enabled {{row.IsEnabled}} Effective Date {{row.EffectiveDate}} Termination Date {{row.TermDate}} Pet Enabled {{row.PetEnabled}} Billing Group {{row.BillingGroup}} Billing Region {{row.BillingRegion}} Edit\n \n
No data matching the filter \"{{input.value}}\"
\n\n \n \n
\n
\n
","import { OnInit, Component, ViewChild, ElementRef } from '@angular/core';\nimport { MatPaginator } from '@angular/material/paginator';\nimport { MatSort } from '@angular/material/sort';\nimport { MatTableDataSource } from '@angular/material/table';\nimport { PharmacyGridData } from '../../DTO/pharmacy';\nimport { PharmacySearchModel } from '../../DTO/pharmacy-search';\nimport { PharmacyService } from 'src/app/services/pharmacyservice';\nimport { ToastrService } from 'ngx-toastr';\nimport { Router } from '@angular/router';\n\n@Component({\n selector: 'app-pharmacy-search',\n templateUrl: './pharmacy-search.component.html',\n styleUrls: ['./pharmacy-search.component.css']\n})\nexport class PharmacySearchComponent implements OnInit {\n\n displayedColumns: string[] = ['PharmacyID', 'PharmacyName', 'IsEnabled', 'EffectiveDate', 'TermDate', 'PetEnabled', 'BillingGroup', 'BillingRegion', 'edit'];\n dataSource: any;\n private pharmacyGridData?: PharmacyGridData;\n private pharmacySearchModel?: PharmacySearchModel ={ PharmacyName :'',EffectiveDate:'',TermDate:'',PetEnabled:'' };\n isLoading: boolean = true;\n pageSizeOptions:any;\n pharmacyFilter:string='';\n @ViewChild(MatPaginator) paginator: MatPaginator;\n @ViewChild(MatSort) sort: MatSort;\n @ViewChild('input') input :ElementRef;\n\n applyFilter(event: Event) {\n const filterValue = (event.target as HTMLInputElement).value;\n this.dataSource.filter = filterValue.trim().toLowerCase();\n if (this.dataSource.paginator) {\n this.dataSource.paginator.firstPage();\n }\n }\n\nconstructor(private pharmacyService: PharmacyService, private toastr:ToastrService,\n private router: Router) {\n\n}\nngOnInit(): void {\n this.LoadData();\n}\n\nLoadData() {\n this.pharmacyService.getPharmacyGrid(this.pharmacySearchModel).subscribe(res => {\n this.pharmacyGridData = res;\n this.dataSource = new MatTableDataSource(this.pharmacyGridData.pharmacyData);\n this.isLoading = false;\n this.dataSource.paginator = this.paginator;\n this.dataSource.sort = this.sort;\n this.dataSource.filter = this.pharmacyFilter.trim().toLowerCase();\n let event = new KeyboardEvent('keyup',{'bubbles':true});\n this.input.nativeElement.dispatchEvent(event);\n },(error: any)=>{\n this.isLoading=false;\n this.toastr.error(error);\n });\n}\n\npublic redirectToEdit = (id: string) => {\n this.router.navigate(['updatepharmacy/', id]);\n}\n}\n","\n \n \n Add Pharmacy\n \n \n \n
\n
\n
\n
\n
\n *\n
\n
\n \n \n {{errorMessageForPharmacyName}}\n \n
\n
\n \n
\n
\n \n \n {{errorMessageForBillingGroup}}\n \n
\n
\n
\n
\n \n
\n
\n \n \n {{errorMessageForBillingRegion}}\n \n
\n
\n *\n
\n
\n \n \n \n \n {{errorMessageForEffectiveDate}}\n \n
\n \n
\n
\n
\n \n
\n
\n \n \n \n \n {{errorMessageForTermDate}}\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n BASIC\n OKTA\n \n
\n
\n
\n
\n *\n
\n
\n \n \n {{errorMessageForEndpointURL}}\n \n
\n
\n \n
\n
\n \n \n \n
\n
\n \n
\n
\n \n
\n
\n \n \n \n
\n
\n \n
\n
\n \n \n \n
\n
\n
\n
\n \n
\n
\n \n \n \n
\n
\n \n
\n
\n \n \n \n
\n
\n
\n
\n \n
\n
\n \n \n \n
\n
\n
\n
\n
\n \n \n
\n
\n
\n
\n
\n
\n
\n
","import { OnInit, Component } from '@angular/core';\nimport { FormControl, FormGroup, Validators } from '@angular/forms';\nimport { Router } from '@angular/router';\nimport { PharmacyService } from '../../../services/pharmacyservice';\nimport { ToastrService } from 'ngx-toastr';\nimport { PharmacyCRUDModel } from '../../DTO/pharmacy-crud';\nimport { formatDate } from \"@angular/common\";\n\n@Component({\n selector: 'app-pharmacy-add',\n templateUrl: './pharmacy-add.component.html',\n styleUrls: ['./pharmacy-add.component.css']\n})\nexport class PharmacyAddComponent implements OnInit {\n isLoading: boolean = false;\n form: FormGroup;\n PharmacyId: FormControl;\n PharmacyName: FormControl;\n EffectiveDate: FormControl;\n TermDate: FormControl;\n IsEnabled: FormControl;\n PetEnabled: FormControl;\n BillingGroup: FormControl;\n BillingRegion: FormControl;\n PharmacyEndpointURL: FormControl;\n OktaMckClientId: FormControl;\n AuthType: FormControl;\n OktaAuthURL: FormControl;\n OktaClientId: FormControl;\n OktaClientSecret: FormControl;\n BasicUserName: FormControl;\n BasicPassword: FormControl;\n pharmacyModel: PharmacyCRUDModel;\n useOkta:boolean=false;\n userName: string='';\n minEffectiveDate:Date=new Date();\n minTermDate:Date=new Date();\n\n constructor(private pharmacyService: PharmacyService, private toastr:ToastrService,\n private router: Router) {\n \n }\n\n ngOnInit() {\n this.minTermDate.setDate(new Date().getDate()+1);\n this.createFormControls();\n this.createForm();\n this.userName = localStorage.getItem(\"loggedName\");\n }\n \n createFormControls() {\n this.PharmacyId = new FormControl();\n this.PharmacyName = new FormControl('', [Validators.required, Validators.maxLength(50)]);\n this.EffectiveDate = new FormControl(new Date(new Date().toDateString()), Validators.required);\n this.TermDate = new FormControl();\n this.IsEnabled = new FormControl();\n this.PetEnabled = new FormControl(false);\n this.BillingGroup = new FormControl('', [Validators.maxLength(4),Validators.pattern(\"[0-9]+$\")]);\n this.BillingRegion = new FormControl('', [Validators.maxLength(2),Validators.pattern(\"[0-9]+$\")]);\n this.PharmacyEndpointURL = new FormControl('', [Validators.required]);\n this.OktaMckClientId = new FormControl();\n this.AuthType = new FormControl('BASIC');\n this.OktaAuthURL = new FormControl();\n this.OktaClientId = new FormControl();\n this.OktaClientSecret = new FormControl();\n this.BasicUserName = new FormControl();\n this.BasicPassword = new FormControl();\n }\n\n createForm() {\n this.form = new FormGroup({\n PharmacyId: this.PharmacyId,\n PharmacyName: this.PharmacyName,\n EffectiveDate: this.EffectiveDate,\n TermDate: this.TermDate,\n IsEnabled: this.IsEnabled,\n PetEnabled: this.PetEnabled,\n BillingGroup: this.BillingGroup,\n BillingRegion: this.BillingRegion,\n PharmacyEndpointURL: this.PharmacyEndpointURL,\n OktaMckClientId: this.OktaMckClientId,\n AuthType: this.AuthType,\n OktaAuthURL: this.OktaAuthURL,\n OktaClientId: this.OktaClientId,\n OktaClientSecret: this.OktaClientSecret,\n BasicUserName: this.BasicUserName,\n BasicPassword: this.BasicPassword\n });\n }\n\n get errorMessageForPharmacyName(): string {\n const pharmacyform: FormControl = (this.form.get('PharmacyName') as FormControl);\n return pharmacyform.hasError('required') ?\n 'Pharmacy name is required' :\n pharmacyform.hasError('maxlength') ?\n 'Max length is 50 characters' :\n pharmacyform.hasError('duplicate') ?\n 'Pharmacy name already exist' :\"\" \n }\n\n get errorMessageForEffectiveDate():string{\n const pharmacyform: FormControl = (this.form.get('EffectiveDate') as FormControl);\n return pharmacyform.hasError('matDatepickerParse') ?\n 'Invalid date' :\n pharmacyform.hasError('required') ?\n 'Activation date is required' :\n pharmacyform.hasError('date error') ?\n 'Activation date should be less than deactivation date': \n pharmacyform.hasError('min date') ?\n 'Activation date should be greater than equal to today date':\"\"\n }\n\n get errorMessageForTermDate():string{\n const pharmacyform: FormControl = (this.form.get('TermDate') as FormControl);\n return pharmacyform.hasError('matDatepickerParse') ?\n 'Invalid date' :\n pharmacyform.hasError('date error') ?\n 'Deactivation date should be greater than activation date':\"\"\n }\n\n get errorMessageForEndpointURL():string{\n const pharmacyform: FormControl = (this.form.get('PharmacyEndpointURL') as FormControl);\n return pharmacyform.hasError('required') ?\n 'Endpoint url is required' :\"\"\n }\n\n get errorMessageForBillingGroup(): string {\n const pharmacyform: FormControl = (this.form.get('BillingGroup') as FormControl);\n return pharmacyform.hasError('maxlength') ?\n 'Max length is 4 characters' :\n pharmacyform.hasError('pattern') ?\n 'Please enter only numeric values' :\"\" \n }\n\n get errorMessageForBillingRegion(): string {\n const pharmacyform: FormControl = (this.form.get('BillingRegion') as FormControl);\n return pharmacyform.hasError('maxlength') ?\n 'Max length is 2 characters' :\n pharmacyform.hasError('pattern') ?\n 'Please enter only numeric values' :\"\" \n }\n\n clearDuplicateValidation(){\n this.PharmacyName.setErrors({'duplicate': null});\n this.PharmacyName.updateValueAndValidity();\n }\n\n dateValidation()\n {\n let effectiveDate=new Date(Date.parse(this.form.get('EffectiveDate')?.value))\n let termDate=new Date(Date.parse(this.form.get('TermDate')?.value))\n this.clearValidation();\n if(effectiveDate=termDate)\n {\n this.EffectiveDate.setErrors({'date error': true});\n this.TermDate.setErrors({'date error': true});\n this.form.get('EffectiveDate')?.markAsTouched();\n this.form.get('TermDate')?.markAsTouched();\n }\n }\n\n clearValidation(){\n this.EffectiveDate.setErrors({'date error': null});\n this.EffectiveDate.setErrors({'min date': null});\n this.TermDate.setErrors({'date error': null});\n this.EffectiveDate.updateValueAndValidity();\n this.TermDate.updateValueAndValidity();\n }\n\n onDateInputkeyup(event:any)\n {\n this.form.get('EffectiveDate')?.markAsTouched();\n this.form.get('TermDate')?.markAsTouched();\n this.dateValidation();\n }\n\n onDateSelect(event:any){\n if(event.targetElement.name==\"EffectiveDate\"){\n this.minTermDate.setDate(new Date(Date.parse(this.form.get('EffectiveDate')?.value)).getDate()+1);\n }\n this.dateValidation();\n }\n\n onUseOkta(event: any){\n if(event.value!='BASIC'){\n this.useOkta=true;\n this.form.get('OktaAuthURL')?.setValue(\"\");\n this.form.get('OktaClientId')?.setValue(\"\");\n this.form.get('OktaClientSecret')?.setValue(\"\");\n }\n else{\n this.useOkta=false;\n this.form.get('BasicUserName')?.setValue(\"\");\n this.form.get('BasicPassword')?.setValue(\"\");\n }\n }\n\n submitForm(){\n if (this.form.valid) {\n this.isLoading = true;\n this.getPharmacyModel();\n if((this.OktaMckClientId.value??\"\")==\"\" || \n (((this.BasicUserName.value??\"\")==\"\" || (this.BasicPassword.value??\"\")==\"\") &&\n ((this.OktaAuthURL.value??\"\")==\"\" || (this.OktaClientId.value??\"\")==\"\" || (this.OktaClientSecret.value??\"\")==\"\"))){\n this.toastr.warning('Pharmacy connection details not available for all fields');\n }\n this.pharmacyService.savePharmacy(this.pharmacyModel).subscribe(res => {\n this.isLoading = false;\n if(res.ResponseStatus=='1'){\n this.toastr.success('Pharmacy saved successfully');\n this.router.navigate(['searchpharmacy']);\n }\n else if(res.ResponseStatus=='0' && res.ResponseMessage!=''){\n this.toastr.error(res.ResponseMessage);\n }\n },(error: any)=>{\n this.isLoading=false;\n if(error=='PharmacyDuplicate'){\n this.PharmacyName.setErrors({'duplicate': true});\n this.form.get('PharmacyName')?.markAsTouched();\n }\n else{\n this.toastr.error(error);\n }\n });\n }\n }\n\n getPharmacyModel(){\n this.pharmacyModel=new PharmacyCRUDModel();\n this.pharmacyModel.PharmacyName = this.form.get('PharmacyName')?.value;\n this.pharmacyModel.EffectiveDate =formatDate(this.form.get('EffectiveDate')?.value, 'yyyy-MM-dd', 'en-US');\n if(this.form.get('TermDate')?.value!=null){\n this.pharmacyModel.TermDate =formatDate(this.form.get('TermDate')?.value, 'yyyy-MM-dd', 'en-US');\n }\n this.pharmacyModel.IsEnabled = '1';\n this.pharmacyModel.PetEnabled = this.form.get('PetEnabled')?.value==true?\"1\":\"0\";\n this.pharmacyModel.BillingGroup = this.form.get('BillingGroup')?.value;\n this.pharmacyModel.BillingRegion = this.form.get('BillingRegion')?.value;\n this.pharmacyModel.PharmacyEndpointURL = this.form.get('PharmacyEndpointURL')?.value;\n this.pharmacyModel.OktaMckClientId = this.form.get('OktaMckClientId')?.value;\n this.pharmacyModel.AuthType = this.form.get('AuthType')?.value;\n this.pharmacyModel.OktaAuthURL = this.form.get('OktaAuthURL')?.value;\n this.pharmacyModel.OktaClientId = this.form.get('OktaClientId')?.value;\n this.pharmacyModel.OktaClientSecret = this.form.get('OktaClientSecret')?.value;\n this.pharmacyModel.BasicUserName = this.form.get('BasicUserName')?.value;\n this.pharmacyModel.BasicPassword = this.form.get('BasicPassword')?.value;\n this.pharmacyModel.UpdatedBy=this.userName;\n }\n\n onClickCancel(){\n this.router.navigate(['searchpharmacy']);\n }\n\n onBillingGroupChange(event:any){\n let leadingZeros = \"\";\n if (event.target.value.length==1){\n leadingZeros = \"000\";\n }\n else if (event.target.value.length==2){\n leadingZeros = \"00\";\n }\n else if (event.target.value.length==3){\n leadingZeros = \"0\";\n }\n this.form.get('BillingGroup')?.setValue(leadingZeros+this.form.get('BillingGroup')?.value);\n }\n\n onBillingRegionChange(event:any){\n if (event.target.value.length==1){\n this.form.get('BillingRegion')?.setValue(\"0\"+this.form.get('BillingRegion')?.value);\n }\n }\n}\n\n","export class PharmacyStoreModel {\n public PharmacyId: string;\n public NPI: string;\n public UpdatedBy: string;\n public NPIs: string;\n}\n\nexport class PharmacyStoreResultModel {\n public Errors: Array;\n public ResponseData: string;\n public ResponseMessage: string;\n public ResponseStatus: boolean;\n}\n \nexport class ErrorListItem {\n public ErrorCode: number;\n public ErrorMessage: string;\n}","
\n \n \n Add NPI\n \n \n
\n
\n
\n
\n
\n Enter NPI by clicking enter key\n \n NPI\n \n {{errorMessageForPharmacyNpi}}\n \n
\n
\n
\n \n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n","import { Component,Inject } from '@angular/core';\nimport { FormControl, FormGroup, Validators } from '@angular/forms';\nimport { PharmacyService } from '../../../services/pharmacyservice';\nimport { ToastrService } from 'ngx-toastr';\nimport { PharmacyStoreModel } from '../../DTO/pharmacy-store-crud';\nimport { MatDialog, MAT_DIALOG_DATA } from '@angular/material/dialog';\n@Component({\n selector: 'app-pharmacy-store',\n templateUrl: './pharmacy-store.component.html',\n styleUrls: ['./pharmacy-store.component.css']\n})\nexport class PharmacyStoreComponent {\n form: FormGroup;\n NPI: FormControl;\n isLoading: boolean = false;\n userName: string='';\n pharmacyStoreModel= new PharmacyStoreModel();\n constructor(private pharmacyService: PharmacyService, private toastr:ToastrService,\n @Inject(MAT_DIALOG_DATA) public pharmacyModel: any, public dialog: MatDialog) {\n \n }\n\n ngOnInit() {\n this.createFormControls();\n this.createForm();\n this.userName = localStorage.getItem(\"loggedName\");\n this.NPI.setValue(this.pharmacyModel.NPI);\n }\n createFormControls() {\n this.NPI = new FormControl('', [Validators.required]);\n }\n\n createForm() {\n this.form = new FormGroup({\n NPI: this.NPI,\n });\n }\n\n get errorMessageForPharmacyNpi(): string {\n const pharmacyform: FormControl = (this.form.get('NPI') as FormControl);\n return pharmacyform.hasError('required') ?\n 'NPI is required' :\n pharmacyform.hasError('invalid_npi') ?\n 'Please enter only numeric values' :\n pharmacyform.hasError('invalid_npi_length') ?\n 'Length of NPI should be 10 characters' :\n pharmacyform.hasError('duplicate') ?\n 'NPI already exist' : \"\" \n }\n\n clearDuplicateValidation(){\n this.NPI.setErrors({'duplicate': null});\n this.NPI.updateValueAndValidity();\n this.NPI.setErrors({'invalid_npi': null});\n this.NPI.updateValueAndValidity();\n }\n\n submitForm(){\n if (this.form.valid) {\n this.isLoading = true;\n this.pharmacyStoreModel.PharmacyId=this.pharmacyModel.PharmacyId;\n this.pharmacyStoreModel.UpdatedBy=this.userName;\n let pharmacyNPIs = this.form.get('NPI')?.value;\n //remove empty string from string array\n this.pharmacyStoreModel.NPIs = pharmacyNPIs.split(\"\\n\").filter((item:any)=>item);\n this.pharmacyService.savePharmacyStores(this.pharmacyStoreModel).subscribe(res => {\n this.isLoading = false;\n if(res.ResponseStatus==true){\n this.dialog.closeAll();\n this.toastr.success('Pharmacy store saved successfully');\n }\n else if(res.ResponseMessage=='InvalidPharmacyNPI'){\n this.NPI.setErrors({'invalid_npi': true});\n this.form.get('NPI')?.markAsTouched();\n }\n else if(res.ResponseMessage=='InvalidPharmacyNPILength'){\n this.NPI.setErrors({'invalid_npi_length': true});\n this.form.get('NPI')?.markAsTouched();\n }\n else if(res.ResponseStatus==false && res.ResponseMessage!=''){\n this.toastr.error(res.ResponseMessage);\n }\n },(error: any)=>{\n this.isLoading=false;\n if(error=='Duplicate Pharmacy NPI.'){\n this.NPI.setErrors({'duplicate': true});\n this.form.get('NPI')?.markAsTouched();\n }\n else{\n this.toastr.error(error);\n }\n });\n }\n }\n}\n\n","\n \n \n Update Pharmacy\n \n \n \n \n
\n
\n
\n
\n
\n *\n
\n
\n \n \n {{errorMessageForPharmacyName}}\n \n
\n
\n \n
\n
\n \n \n {{errorMessageForBillingGroup}}\n \n
\n
\n
\n
\n \n
\n
\n \n \n {{errorMessageForBillingRegion}}\n \n
\n \n
\n \n
\n
\n \n
\n
\n
\n
\n *\n
\n
\n \n \n \n \n {{errorMessageForEffectiveDate}}\n \n
\n \n
\n \n
\n
\n \n {{errorMessageForIsEnabled}}\n \n
\n
\n
\n
\n \n
\n
\n \n \n \n \n {{errorMessageForTermDate}}\n \n
\n
\n \n
\n
\n \n
\n
\n \n BASIC\n OKTA\n \n
\n
\n
\n
\n *\n
\n
\n \n \n {{errorMessageForEndpointURL}}\n \n
\n
\n \n
\n
\n \n \n \n
\n
\n \n
\n
\n \n
\n
\n \n \n \n
\n
\n \n
\n
\n \n \n \n
\n
\n
\n
\n \n
\n
\n \n \n \n
\n
\n \n
\n
\n \n \n \n
\n
\n
\n
\n \n
\n
\n \n \n \n
\n
\n
\n
\n
\n \n \n
\n
\n
\n
\n
\n
\n
\n NPIs\n
\n
\n
\n \n \n \n
\n
\n \n
\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
NPI {{row.NPI}}\n Delete\n \n
No data matching the filter \"{{input.value}}\"
\n \n \n \n \n\n
\n

Are you sure you would like to delete this NPI - {{ npi}}?

\n
\n
\n \n \n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
","import { OnInit, Component, ViewChild, ElementRef, OnDestroy } from '@angular/core';\nimport { MatPaginator } from '@angular/material/paginator';\nimport { MatSort } from '@angular/material/sort';\nimport { MatTableDataSource } from '@angular/material/table';\nimport { FormControl, FormGroup, Validators } from '@angular/forms';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { PharmacyService } from '../../../services/pharmacyservice';\nimport { ToastrService } from 'ngx-toastr';\nimport { MatDialog } from '@angular/material/dialog';\nimport { PharmacyStoreComponent } from '../pharmacy-store/pharmacy-store.component';\nimport { PharmacyCRUDModel } from '../../DTO/pharmacy-crud';\nimport { PharmacyStoreModel } from '../../DTO/pharmacy-store-crud';\nimport { PharmacySearchModel } from '../../DTO/pharmacy-search';\nimport { formatDate } from \"@angular/common\";\nimport { NgbModal } from '@ng-bootstrap/ng-bootstrap';\n\n@Component({\n selector: 'app-pharmacy-update',\n templateUrl: './pharmacy-update.component.html',\n styleUrls: ['./pharmacy-update.component.css']\n})\nexport class PharmacyUpdateComponent implements OnInit {\n isLoading: boolean = false;\n form: FormGroup;\n PharmacyId: FormControl;\n PharmacyName: FormControl;\n EffectiveDate: FormControl;\n TermDate: FormControl;\n IsEnabled: FormControl;\n PetEnabled: FormControl;\n BillingGroup: FormControl;\n BillingRegion: FormControl;\n PharmacyEndpointURL: FormControl;\n OktaMckClientId: FormControl;\n AuthType: FormControl;\n OktaAuthURL: FormControl;\n OktaClientId: FormControl;\n OktaClientSecret: FormControl;\n BasicUserName: FormControl;\n BasicPassword: FormControl;\n pharmacyModel= new PharmacyCRUDModel();\n pharmacyFilter:string='';\n pharmacyId:string='';\n @ViewChild(MatPaginator) paginator: MatPaginator;\n @ViewChild(MatSort) sort: MatSort;\n @ViewChild('input') input :ElementRef;\n useOkta:boolean=false;\n displayedColumns: string[] = ['NPI', 'delete'];\n dataSource: any;\n userName: string='';\n minEffectiveDate:Date;\n minTermDate:Date=new Date();\n pharmacyStoreModel= new PharmacyStoreModel();\n npi:string='';\n invalidTermDateError='';\n initialEffectiveDate:Date;\n private pharmacyNPIModel?: PharmacySearchModel ={ PharmacyName :'',EffectiveDate:'',TermDate:'',PetEnabled:'' };\n constructor(private pharmacyService: PharmacyService, private toastr:ToastrService,\n public dialog: MatDialog,private router: Router, private route: ActivatedRoute,\n private modalService: NgbModal) {\n this.route.paramMap.subscribe((params) => {\n this.pharmacyId = params.get('id');\n });\n }\n\n ngOnInit() {\n this.minTermDate.setDate(new Date().getDate()+1);\n this.createFormControls();\n this.createForm();\n this.loadPharmacyDetails();\n this.userName = localStorage.getItem(\"loggedName\");\n let div=document.getElementById('mat_sidenav_content') as HTMLDivElement;\n div.classList.remove(\"custom-content-default\");\n div.classList.add(\"custom-content-update-pharmacy\");\n }\n\n ngOnDestroy() {\n let div=document.getElementById('mat_sidenav_content') as HTMLDivElement;\n div.classList.remove(\"custom-content-update-pharmacy\");\n div.classList.add(\"custom-content-default\");\n }\n \n createFormControls() {\n this.PharmacyId = new FormControl();\n this.PharmacyName = new FormControl('', [Validators.required, Validators.maxLength(50)]);\n this.EffectiveDate = new FormControl(new Date(new Date().toDateString()), Validators.required);\n this.TermDate = new FormControl();\n this.IsEnabled = new FormControl();\n this.PetEnabled = new FormControl(false);\n this.BillingGroup = new FormControl('', [Validators.maxLength(4),Validators.pattern(\"[0-9]+$\")]);\n this.BillingRegion = new FormControl('', [Validators.maxLength(2),Validators.pattern(\"[0-9]+$\")]);\n this.PharmacyEndpointURL = new FormControl('', [Validators.required]);\n this.OktaMckClientId = new FormControl();\n this.AuthType = new FormControl();\n this.OktaAuthURL = new FormControl();\n this.OktaClientId = new FormControl();\n this.OktaClientSecret = new FormControl();\n this.BasicUserName = new FormControl();\n this.BasicPassword = new FormControl();\n }\n\n createForm() {\n this.form = new FormGroup({\n PharmacyId: this.PharmacyId,\n PharmacyName: this.PharmacyName,\n EffectiveDate: this.EffectiveDate,\n TermDate: this.TermDate,\n IsEnabled: this.IsEnabled,\n PetEnabled: this.PetEnabled,\n BillingGroup: this.BillingGroup,\n BillingRegion: this.BillingRegion,\n PharmacyEndpointURL: this.PharmacyEndpointURL,\n OktaMckClientId: this.OktaMckClientId,\n AuthType: this.AuthType,\n OktaAuthURL: this.OktaAuthURL,\n OktaClientId: this.OktaClientId,\n OktaClientSecret: this.OktaClientSecret,\n BasicUserName: this.BasicUserName,\n BasicPassword: this.BasicPassword\n });\n }\n\n get errorMessageForPharmacyName(): string {\n const pharmacyform: FormControl = (this.form.get('PharmacyName') as FormControl);\n return pharmacyform.hasError('required') ?\n 'Pharmacy name is required' :\n pharmacyform.hasError('maxlength') ?\n 'Max length is 50 characters' :\n pharmacyform.hasError('duplicate') ?\n 'Pharmacy name already exist' :\"\" \n }\n\n get errorMessageForEffectiveDate():string{\n const pharmacyform: FormControl = (this.form.get('EffectiveDate') as FormControl);\n return pharmacyform.hasError('matDatepickerParse') ?\n 'Invalid date' :\n pharmacyform.hasError('required') ?\n 'Activation date is required' :\n pharmacyform.hasError('date error') ?\n 'Activation date should be less than deactivation date': \n pharmacyform.hasError('min date') ?\n 'Activation date should be greater than equal to initial activation date':\"\"\n }\n\n get errorMessageForTermDate():string{\n const pharmacyform: FormControl = (this.form.get('TermDate') as FormControl);\n return pharmacyform.hasError('matDatepickerParse') ?\n 'Invalid date' :\n pharmacyform.hasError('date error') ?\n 'Deactivation date should be greater than activation date':\"\"\n }\n\n get errorMessageForEndpointURL():string{\n const pharmacyform: FormControl = (this.form.get('PharmacyEndpointURL') as FormControl);\n return pharmacyform.hasError('required') ?\n 'Endpoint url is required' :\"\"\n }\n\n get errorMessageForBillingGroup(): string {\n const pharmacyform: FormControl = (this.form.get('BillingGroup') as FormControl);\n return pharmacyform.hasError('maxlength') ?\n 'Max length is 4 characters' :\n pharmacyform.hasError('pattern') ?\n 'Please enter only numeric values' :\"\" \n }\n\n get errorMessageForBillingRegion(): string {\n const pharmacyform: FormControl = (this.form.get('BillingRegion') as FormControl);\n return pharmacyform.hasError('maxlength') ?\n 'Max length is 2 characters' :\n pharmacyform.hasError('pattern') ?\n 'Please enter only numeric values' :\"\" \n }\n\n get errorMessageForIsEnabled(): string {\n const pharmacyform: FormControl = (this.form.get('IsEnabled') as FormControl);\n return pharmacyform.hasError('invalid-termdate') ?\n this.invalidTermDateError :\"\" \n }\n\n clearDuplicateValidation(){\n this.PharmacyName.setErrors({'duplicate': null});\n this.PharmacyName.updateValueAndValidity();\n }\n\n dateValidation(targetElement:any)\n {\n let effectiveDate=new Date(Date.parse(this.form.get('EffectiveDate')?.value))\n let termDate=new Date(Date.parse(this.form.get('TermDate')?.value))\n this.clearValidation();\n //if(targetElement==\"EffectiveDate\"){\n // this.EffectiveDate.setErrors({'min date': null})\n // this.EffectiveDate.updateValueAndValidity();\n // if(effectiveDate=termDate)\n {\n this.EffectiveDate.setErrors({'date error': true});\n this.TermDate.setErrors({'date error': true});\n this.form.get('EffectiveDate')?.markAsTouched();\n this.form.get('TermDate')?.markAsTouched();\n }\n }\n\n clearValidation(){\n this.EffectiveDate.setErrors({'min date': null})\n this.EffectiveDate.setErrors({'date error': null});\n this.TermDate.setErrors({'date error': null});\n this.EffectiveDate.updateValueAndValidity();\n this.TermDate.updateValueAndValidity();\n }\n\n onDateInputkeyup(event:any)\n {\n this.form.get('EffectiveDate')?.markAsTouched();\n this.form.get('TermDate')?.markAsTouched();\n this.dateValidation(event.targetElement.name);\n if(event.targetElement.name==\"TermDate\"){\n this.enabledValidation();\n }\n }\n\n onDateSelect(event:any){\n if(event.targetElement.name==\"EffectiveDate\"){\n this.minTermDate.setDate(new Date(Date.parse(this.form.get('EffectiveDate')?.value)).getDate()+1);\n }\n else{\n this.enabledValidation();\n }\n this.dateValidation(event.targetElement.name);\n }\n\n applyFilter(event: Event) {\n const filterValue = (event.target as HTMLInputElement).value;\n this.dataSource.filter = filterValue.trim().toLowerCase();\n\n if (this.dataSource.paginator) {\n this.dataSource.paginator.firstPage();\n }\n }\n\n onUseOkta(event: any){\n if(event.value!='BASIC'){\n this.useOkta=true;\n this.form.get('OktaAuthURL')?.setValue(\"\");\n this.form.get('OktaClientId')?.setValue(\"\");\n this.form.get('OktaClientSecret')?.setValue(\"\");\n }\n else{\n this.useOkta=false;\n this.form.get('BasicUserName')?.setValue(\"\");\n this.form.get('BasicPassword')?.setValue(\"\");\n }\n }\n\n submitForm(){\n if (this.form.valid) {\n this.isLoading = true;\n this.getPharmacyModel();\n if((this.OktaMckClientId.value??\"\")==\"\" || \n (((this.BasicUserName.value??\"\")==\"\" || (this.BasicPassword.value??\"\")==\"\") &&\n ((this.OktaAuthURL.value??\"\")==\"\" || (this.OktaClientId.value??\"\")==\"\" || (this.OktaClientSecret.value??\"\")==\"\"))){\n this.toastr.warning('Pharmacy connection details not available for all fields');\n }\n this.pharmacyService.updatePharmacy(this.pharmacyModel).subscribe(res => {\n this.isLoading = false;\n if(res.ResponseStatus=='1'){\n this.toastr.success('Pharmacy updated successfully');\n }\n else if(res.ResponseStatus=='0' && res.ResponseMessage!=''){\n this.toastr.error(res.ResponseMessage);\n }\n },(error: any)=>{\n this.isLoading=false;\n if(error=='PharmacyDuplicate'){\n this.PharmacyName.setErrors({'duplicate': true});\n this.form.get('PharmacyName')?.markAsTouched();\n }\n else{\n this.toastr.error(error);\n }\n });\n }\n }\n\n getPharmacyModel(){\n this.pharmacyModel=new PharmacyCRUDModel();\n this.pharmacyModel.PharmacyId = this.pharmacyId;\n this.pharmacyModel.PharmacyName = this.form.get('PharmacyName')?.value;\n this.pharmacyModel.EffectiveDate =formatDate(this.form.get('EffectiveDate')?.value, 'yyyy-MM-dd', 'en-US');\n if(this.form.get('TermDate')?.value!=null){\n this.pharmacyModel.TermDate =formatDate(this.form.get('TermDate')?.value, 'yyyy-MM-dd', 'en-US');\n }\n else{\n this.pharmacyModel.TermDate =null;\n }\n this.pharmacyModel.IsEnabled = this.form.get('IsEnabled')?.value==true?\"1\":\"0\";\n this.pharmacyModel.PetEnabled = this.form.get('PetEnabled')?.value==true?\"1\":\"0\";\n this.pharmacyModel.BillingGroup = this.form.get('BillingGroup')?.value;\n this.pharmacyModel.BillingRegion = this.form.get('BillingRegion')?.value;\n this.pharmacyModel.PharmacyEndpointURL = this.form.get('PharmacyEndpointURL')?.value;\n this.pharmacyModel.OktaMckClientId = this.form.get('OktaMckClientId')?.value;\n this.pharmacyModel.AuthType = this.form.get('AuthType')?.value;\n if(this.pharmacyModel.AuthType==\"OKTA\") {\n this.pharmacyModel.OktaAuthURL = this.form.get('OktaAuthURL')?.value;\n this.pharmacyModel.OktaClientId = this.form.get('OktaClientId')?.value;\n this.pharmacyModel.OktaClientSecret = this.form.get('OktaClientSecret')?.value;\n }\n else {\n this.pharmacyModel.BasicUserName = this.form.get('BasicUserName')?.value;\n this.pharmacyModel.BasicPassword = this.form.get('BasicPassword')?.value;\n }\n this.pharmacyModel.UpdatedBy=this.userName;\n }\n\n showNPIPopup(){\n this.pharmacyStoreModel.PharmacyId=this.pharmacyId;\n const dialogRef = this.dialog.open(PharmacyStoreComponent, {\n width: '30%',\n data: this.pharmacyStoreModel\n });\n\n dialogRef.afterClosed().subscribe(result => {\n this.loadPharmacyDetails();\n });\n }\n onClickCancel(){\n this.router.navigate(['searchpharmacy']);\n }\n\n loadPharmacyDetails(){\n this.isLoading=true;\n this.pharmacyModel.PharmacyId = this.pharmacyId;\n let pharmacyLookupRequest= new PharmacyCRUDModel();\n pharmacyLookupRequest.PharmacyId = this.pharmacyId;\n this.pharmacyService.getPharmacyDetails(pharmacyLookupRequest).subscribe(res=>{\n this.pharmacyModel = res;\n this.setFormValues();\n let npis:any=res.NPIs?.NPIs;\n this.dataSource = new MatTableDataSource(npis);\n this.isLoading = false;\n this.dataSource.paginator = this.paginator;\n this.dataSource.sort = this.sort;\n this.dataSource.filter = this.pharmacyFilter.trim().toLowerCase();\n let event = new KeyboardEvent('keyup',{'bubbles':true});\n this.input.nativeElement.dispatchEvent(event);\n this.isLoading=false;\n this.pharmacyStoreModel.NPI = npis.map((x:any)=>x.NPI).join(\"\\n\");\n },(error: any)=>{\n this.isLoading=false;\n this.toastr.error(error);\n });\n }\n\n setFormValues() {\n this.PharmacyId.setValue(this.pharmacyModel.PharmacyId);\n this.PharmacyName.setValue(this.pharmacyModel.PharmacyName);\n this.minEffectiveDate = (new Date(Date.parse(this.pharmacyModel.EffectiveDate)));\n this.initialEffectiveDate=new Date(Date.parse(this.pharmacyModel.EffectiveDate));\n this.EffectiveDate.setValue(new Date(Date.parse(this.pharmacyModel.EffectiveDate)));\n this.minTermDate = (new Date(Date.parse(this.form.get('EffectiveDate')?.value)));\n this.minTermDate.setDate(this.minTermDate.getDate()+1);\n if (this.pharmacyModel.TermDate) {\n this.TermDate.setValue(new Date(Date.parse(this.pharmacyModel.TermDate)));\n }\n else {\n this.TermDate.setValue(null);\n }\n this.IsEnabled.setValue(this.pharmacyModel.IsEnabled=='1'?true:false);\n this.PetEnabled.setValue(this.pharmacyModel.PetEnabled=='1'?true:false);\n this.BillingGroup.setValue(this.pharmacyModel.BillingGroup);\n this.BillingRegion.setValue(this.pharmacyModel.BillingRegion);\n this.PharmacyEndpointURL.setValue(this.pharmacyModel.PharmacyEndpointURL);\n this.OktaMckClientId.setValue(this.pharmacyModel.OktaMckClientId);\n this.AuthType.setValue(this.pharmacyModel.AuthType);\n if(this.pharmacyModel.AuthType=='OKTA'){\n this.useOkta=true;\n }\n this.OktaAuthURL.setValue(this.pharmacyModel.OktaAuthURL);\n this.OktaClientId.setValue(this.pharmacyModel.OktaClientId);\n this.OktaClientSecret.setValue(this.pharmacyModel.OktaClientSecret);\n this.BasicUserName.setValue(this.pharmacyModel.BasicUserName);\n this.BasicPassword.setValue(this.pharmacyModel.BasicPassword);\n }\n\n deleteNPI(npi:string){\n this.isLoading=true;\n this.pharmacyStoreModel.NPI = npi;\n this.pharmacyService.deletePharmacyStore(this.pharmacyStoreModel).subscribe(res=>{\n this.isLoading = false;\n if(res.ResponseStatus==true){\n this.loadPharmacyDetails();\n this.toastr.success('Pharmacy store deleted successfully');\n }\n else if(res.ResponseStatus==false && res.ResponseMessage!=''){\n this.toastr.error(res.ResponseMessage);\n }\n },(error: any)=>{\n this.isLoading=false;\n this.toastr.error(error);\n });\n }\n\n open(content: any, npi: any) {\n this.npi =npi;\n this.modalService.open(content, { ariaLabelledBy: 'modal-basic-title' }).result.then((result) => {\n if (result === 'yes') {\n this.deleteNPI(npi);\n }\n }, (reason) => {\n });\n }\n\n onEnabledChange(event:any){\n this.enabledValidation();\n }\n\n enabledValidation(){\n let termDate=new Date(Date.parse(this.form.get('TermDate')?.value))\n this.IsEnabled.setErrors({'invalid-termdate': null});\n this.IsEnabled.updateValueAndValidity();\n if(this.form.get('IsEnabled')?.value && this.form.get('TermDate')?.value!=null && termDate<=new Date(new Date().setHours(0,0,0,0))){\n this.invalidTermDateError=\"Deactivation date should be greater than today\";\n this.IsEnabled.setErrors({'invalid-termdate': true});\n this.form.get('IsEnabled')?.markAsTouched();\n }\n else if (!this.form.get('IsEnabled')?.value && (this.form.get('TermDate')?.value==null ||\n termDate>new Date(new Date().setHours(0,0,0,0)))){\n this.invalidTermDateError=\"Deactivation date should not be empty or greater than today\";\n this.IsEnabled.setErrors({'invalid-termdate': true});\n this.form.get('IsEnabled')?.markAsTouched();\n }\n }\n\n onBillingGroupChange(event:any){\n let leadingZeros = \"\";\n if (event.target.value.length==1){\n leadingZeros = \"000\";\n }\n else if (event.target.value.length==2){\n leadingZeros = \"00\";\n }\n else if (event.target.value.length==3){\n leadingZeros = \"0\";\n }\n this.form.get('BillingGroup')?.setValue(leadingZeros+this.form.get('BillingGroup')?.value);\n }\n\n onBillingRegionChange(event:any){\n if (event.target.value.length==1){\n this.form.get('BillingRegion')?.setValue(\"0\"+this.form.get('BillingRegion')?.value);\n }\n }\n}\n\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-pharmacy-view',\n templateUrl: './pharmacy-view.component.html',\n styleUrls: ['./pharmacy-view.component.css']\n})\nexport class PharmacyViewComponent {\n\n}\n","

pharmacy-view works!

\n","import { formatDate } from \"@angular/common\";\n\nexport class TransactionData {\n public RequestID!: string;\n public MessageID!: string;\n public RelatesToMessageID!: string;\n public PharmacyName!: String;\n public PharmacyNPI!: String;\n public MessageType!: String;\n public Species!: String;\n public ResponseStatus!: String;\n public PatientLastName!: String;\n public PatientDOB!: Date;\n public RequestDate!: Date;\n public Initiator!:String;\n}\nexport class Pagination{\n public PageNumber!:number;\n public PageSize!:number;\n public TotalItems!:number;\n public TotalPages!:number;\n}\nexport class TransactionGridData{\n public TotalNumberOfRecords!: number;\n public transactionData!: TransactionData[];\n public pagination: Pagination = new Pagination;\n\n }\n export class TransactionGridDataMapper{\n private transactionDataMapper =new TransactionDataMapper();\n private paginationMapper =new TransactionDataPaginationMapper();\n mapToModel(json: any): TransactionGridData {\n let transactionGridData=new TransactionGridData();\n \n if (json) {\n transactionGridData = new TransactionGridData();\n transactionGridData.transactionData = json.ResponseData.map((item:any)=>this.transactionDataMapper.mapToModel(item));\n if(json.Pagination!=null)\n {\n transactionGridData.pagination.PageNumber=json.Pagination.PageNumber;\n transactionGridData.pagination.PageSize=json.Pagination.PageSize;\n transactionGridData.pagination.TotalItems=json.Pagination.TotalItems;\n transactionGridData.pagination.TotalPages=json.Pagination.TotalPages;\n }\n }\n return transactionGridData;\n }\n }\nlet transactionData: TransactionData;\nexport class TransactionDataMapper {\n mapToModel(json: any): TransactionData {\n \n if (json) {\n transactionData = new TransactionData();\n transactionData.RequestID = json.RequestID;\n transactionData.MessageID = json.MessageID;\n transactionData.RelatesToMessageID = json.RelatesToMessageID;\n transactionData.PharmacyName = json.PharmacyName;\n transactionData.PharmacyNPI = json.PharmacyNpi;\n transactionData.ResponseStatus = json.ResponseStatus;\n transactionData.Species = json.IsPet==\"False\" || json.IsPet==\"false\"?\"Human\":\"Pet\";\n transactionData.PatientLastName = json.PatientLastName;\n transactionData.PatientDOB = json.PatientDOB;\n transactionData.RequestDate = json.RequestDate;\n transactionData.MessageType = json.MessageType;\n transactionData.Initiator=json.Initiator;\n }\n return transactionData;\n }\n}\nlet pagination: Pagination;\nexport class TransactionDataPaginationMapper {\n mapToModel(json: any): Pagination {\n \n if (json) {\n pagination = new Pagination();\n pagination.PageNumber = json.PageNumber;\n pagination.PageSize = json.PageSize;\n pagination.TotalItems = json.TotalItems;\n pagination.TotalPages = json.TotalPages;\n }\n return pagination;\n }\n}","import { Time } from \"@angular/common\";\n\nexport class TransactionSearchModel {\n public MessageId!: string;\n public RelatesToMessageId!: string;\n public PharmacyVendor!: any;\n public PharmacyName!: any;\n public PharmacyNpi!: String;\n public ResponseStatus!: String;\n public IsPet!: any;\n public PatientLastName!: String;\n public PatientDOB!: any;\n public StartDate!: String;\n public EndDate!: String;\n public BeginDateTime!:String\n public EndDateTime!:String\n public PageNumber!:number\n public PageSize!:number\n}","import { Injectable } from '@angular/core';\nimport { Observable, BehaviorSubject, from } from 'rxjs';\nimport { catchError, map, take } from 'rxjs/operators';\nimport {\n HttpClient,\n HttpHeaders,\n HttpErrorResponse,\n} from '@angular/common/http';\nimport { TransactionData, TransactionDataMapper, TransactionGridData, TransactionGridDataMapper } from '../features/DTO/transaction';\nimport { TransactionSearchModel } from '../features/DTO/transaction-search-model';\nimport { TransactionSummaryData, TransactionSummaryDataMapper,TransactionResultData } from '../features/DTO/transaction-summary';\nimport { FuncsService } from '../services/funcs.service';\nimport { environment } from 'src/environments/environment';\n@Injectable({\n providedIn: 'root'\n })\n\n export class TransactionService {\n private transactionDataMapper = new TransactionDataMapper();\n private transactionGridDataMapper = new TransactionGridDataMapper();\n constructor(private http: HttpClient, private globalFunc:FuncsService) { \n\n }\n getTransactionGrid(transactionSearchModel:TransactionSearchModel) {\n \n let data:any=JSON.stringify(transactionSearchModel);\n const httpOptions = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n })\n };\n return this.http.post(environment.transactionListUrl,data,httpOptions)\n .pipe(take(1), map((data: any) => this.transactionGridDataMapper?.mapToModel(data)))\n .pipe(catchError(this.globalFunc.error));\n \n }\n \n getPharmacyVendors():Observable {\n let result:any\n const httpOptions = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n })\n };\n return this.http.post(environment.pharmacyListUrl,{},httpOptions);\n }\n\n getTransactionSummaryHeader(input: any) {\n const httpOptions = {\n headers: new HttpHeaders({\n 'Content-Type': 'application/json'\n })};\n\n return this.http.post(environment.transactionLookupUrl,input,httpOptions)\n .pipe(catchError(this.globalFunc.error));\n }\n\n \n }\n ","\n \n Transaction Search\n \n\n\n\n \n
\n
\n
\n \n \n \n
\n \n
\n \n
\n\n \n \n \n \n \n\n \n \n\n\n\n\n \n\n
\n\n \n \n \n\n\n\n\n \n \n \n\n\n\n\n\n \n \n \n \n \n \n \n \n \n \n\n
\n \n \n \n\n\n \n \n \n \n \n \n
Message ID\n \n\n \n\n\n {{errorMessageForMessageId}}\n\nRelates to Message ID\n \n \n\n\n {{errorMessageForRelatesToMessageId}}\n\n
Search by Pharmacy Chain/Vendor\n\n \n \n \n {{vendor.PharmacyName}} \n \n Invalid pharmacy/vendor entered\n\nSearch by Pharmacy NPI\n\n \n\n\n {{errorMessageForPharmacyNpi}}\n\n
Search by Status\n\n \n \n \n \n {{status.StatusName}} \n \n\nSearch by Type\n\n \n \n \n {{species.SpeciesName}} \n \n\n
Search by Patient Last Name\n \n \n \n \n {{errorMessageForPharmacyLastname}}\n \n Search by Patient Date of Birth\n \n \n \n \n \n {{errorMessageForPatientDOB}}\n \n
Begin Date\n \n \n \n \n \n {{errorMessageForBeginDate}}\n \n \n \n End Date\n \n \n \n \n \n {{errorMessageForEndDate}}\n \n \n \n
\n
\n \n \n
\n
\n
\n
\n
\n\n Filter\n \n\n
\n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Message ID {{element.MessageID}} Relates To Message ID {{element.RelatesToMessageID}} Pharmacy Name {{element.PharmacyName}} Patient Last Name {{element.PatientLastName}} Patient DOB {{element.PatientDOB}} Species {{element.Species}} Message Type {{element.MessageType}} Transaction Date and Time {{element.RequestDate}} Transaction Status {{element.ResponseStatus}}
\n \n\n
\n
","import { Component, ViewChild } from '@angular/core';\nimport { TransactionService } from 'src/app/services/transactionservice';\nimport { TransactionData, TransactionGridData } from '../../DTO/transaction';\nimport { TransactionSearchModel } from '../../DTO/transaction-search-model';\nimport { FormControl,FormGroup,Validators } from '@angular/forms';\nimport { Observable, map, startWith } from 'rxjs';\nimport { MatTableDataSource } from '@angular/material/table';\nimport { MatPaginator } from '@angular/material/paginator';\nimport { MatSort } from '@angular/material/sort';\nimport { Router } from '@angular/router';\nimport { formatDate, DatePipe } from \"@angular/common\";\nimport { ToastrService } from 'ngx-toastr';\n\n@Component({\n selector: 'app-transaction-search',\n templateUrl: './transaction-search.component.html',\n styleUrls: ['./transaction-search.component.css'],\n})\nexport class TransactionSearchComponent {\n section1=[\"MessageId\",\"RelatesToMessageId\"];\n section2=[\"PharmacyNpi\",\"PatientLastName\",\"PatientDateOfBirth\",\"Species\",\"Status\",\"PharmacyVendor\",\"BeginDate\", \"BeginDateTime\", \"EndDate\", \"EndDateTime\"];\n showError:boolean=false;\n enableSearch:boolean=false;\n form!: FormGroup;\n today = new Date();\n MessageId!: FormControl;\n RelatesToMessageId!: FormControl;\n PharmacyNpi!: FormControl;\n Status!: FormControl;\n Species!: FormControl;\n PatientLastName!: FormControl;\n PatientDateOfBirth!: FormControl;\n BeginDate!: FormControl;\n EndDate!: FormControl;\n BeginDateTime!:FormControl\n EndDateTime!:FormControl\n PharmacyVendor!:FormControl;\n\n\n dataSource:any;\n vendorList:any;\n speciesList:any;\n statusList:any;\n displayedColumns: any[] = ['MessageID', 'RelatesToMessageID','PharmacyName','PatientLastName','PatientDOB','Species','MessageType','RequestDate','ResponseStatus'];\n transactionSearchModel=new TransactionSearchModel();\n transactionGridData=new TransactionGridData();\n transactionData = new TransactionData();\n minDate=new Date(new Date().setDate(new Date().getDate()-60))\n filteredOptions: Observable | undefined;\n\n pageSizeOptions:any=[10,20,30,100];\n transactionFilter:string='';\n transactionPagesize:number =10;\n transactionPageNumber:number =1;\n\nshowFilter:string=\"Hide Filter\"\n\n @ViewChild(MatPaginator)\n paginator!: MatPaginator;\n @ViewChild(MatSort)\n sort!: MatSort;\n length:number | undefined;\n isLoading: boolean=false;\n ngOnInit(): void {\n this.enableSearch=false;\n this.createFormControls();\n this.createForm();\n this.transactionPagesize=10;\n this.transactionPageNumber=1;\n //this.LoadData();\n this.filteredOptions = this.PharmacyVendor.valueChanges.pipe(\n startWith(''),\n map(value => this._filter(value || '')),\n );\n this.LoadSpecies();\n this.LoadStatus();\n this.LoadVendors();\n this.enableSearch=true;\n }\n\n constructor(private transactionservice: TransactionService,private router: Router,private toastr:ToastrService,\n private datePipe: DatePipe) {\n\n }\n \n createFormControls() {\n this.MessageId = new FormControl('', [Validators.maxLength(35),Validators.pattern(\"^[A-Za-z0-9]+$\")]);\n this.RelatesToMessageId = new FormControl('', [Validators.maxLength(35),Validators.pattern(\"^[A-Za-z0-9]+$\")]);\n this.PharmacyNpi = new FormControl('', [Validators.maxLength(15),Validators.pattern(\"[0-9]+$\")]);\n this.PatientLastName = new FormControl('', [Validators.maxLength(35),Validators.pattern(\"^[A-Za-z0-9]+$\")]);\n this.BeginDate = new FormControl(new Date());\n this.EndDate = new FormControl(new Date());\n this.BeginDateTime = new FormControl({ hour: 0, minute: 1});\n this.PatientDateOfBirth= new FormControl();\n this.EndDateTime = new FormControl({ hour: new Date().getHours(), minute: new Date().getMinutes()});\n this.Species = new FormControl('All');\n this.Status = new FormControl();\n this.PharmacyVendor=new FormControl();\n \n }\n createForm() {\n this.form = new FormGroup({\n MessageId: this.MessageId,\n RelatesToMessageId: this.RelatesToMessageId,\n PharmacyNpi: this.PharmacyNpi,\n PatientLastName: this.PatientLastName,\n BeginDate: this.BeginDate,\n EndDate: this.EndDate,\n BeginDateTime: this.BeginDateTime,\n EndDateTime: this.EndDateTime,\n Species: this.Species,\n Status: this.Status,\n PatientDateOfBirth:this.PatientDateOfBirth,\n PharmacyVendor:this.PharmacyVendor\n });\n }\n getTransactionModel()\n {\n this.transactionSearchModel=new TransactionSearchModel();\n this.transactionSearchModel.MessageId = this.form.get('MessageId')?.value;\n this.transactionSearchModel.RelatesToMessageId = this.form.get('RelatesToMessageId')?.value;\n this.transactionSearchModel.PharmacyNpi = this.form.get('PharmacyNpi')?.value;\n this.transactionSearchModel.PatientLastName = this.form.get('PatientLastName')?.value;\n this.transactionSearchModel.PatientDOB =this.form.get('PatientDateOfBirth')?.value==null?null:formatDate(this.form.get('PatientDateOfBirth')?.value, 'yyyy-MM-dd', 'en-US');\n if(this.transactionSearchModel.MessageId || this.transactionSearchModel.RelatesToMessageId){\n let startDate= new Date();\n startDate.setDate(startDate.getDate()-60);\n let endDate= new Date();\n this.transactionSearchModel.StartDate =this.datePipe.transform(startDate, 'yyyy-MM-dd');\n this.transactionSearchModel.EndDate = this.datePipe.transform(endDate, 'yyyy-MM-dd');\n }\n else\n {\n this.transactionSearchModel.StartDate =formatDate(this.form.get('BeginDate')?.value, 'yyyy-MM-dd', 'en-US');\n this.transactionSearchModel.EndDate = formatDate(this.form.get('EndDate')?.value, 'yyyy-MM-dd', 'en-US');\n }\n this.transactionSearchModel.BeginDateTime = this.form.get('BeginDateTime')?.value;\n this.transactionSearchModel.EndDateTime = this.form.get('EndDateTime')?.value;\n if(this.form.get('PharmacyVendor')?.value!=null && this.form.get('PharmacyVendor')?.value[\"PharmacyId\"]==undefined)\n {\n let pharmacyVendor=this.vendorList.find((x: { PharmacyName: any; })=>x.PharmacyName.toLowerCase()==this.form.get('PharmacyVendor')?.value.toLowerCase());\n this.form.get('PharmacyVendor')?.setValue(pharmacyVendor!=undefined && pharmacyVendor !=null?pharmacyVendor:null);\n }\n this.transactionSearchModel.PharmacyVendor = this.form.get('PharmacyVendor')?.value;//this.vendorData;\n this.transactionSearchModel.PharmacyName=this.transactionSearchModel.PharmacyVendor!=null?this.transactionSearchModel.PharmacyVendor.PharmacyName:null;\n this.transactionSearchModel.IsPet = this.form.get('Species')?.value=='All' || this.form.get('Species')?.value==null?null: this.form.get('Species')?.value==\"Pet Only\"?\"1\":\"0\";\n this.transactionSearchModel.ResponseStatus = this.form.get('Status')?.value;\n }\n showHideFilter()\n {\n if(this.showFilter==\"Hide Filter\")\n {\nthis.showFilter=\"Show Filter\"\n }\n else{\n this.showFilter=\"Hide Filter\"\n }\n }\n submitForm() {\n if (this.form.valid) {\n this.isLoading = true;\n this.getTransactionModel();\n \n console.log(this.transactionSearchModel)\n\n this.LoadTransactionsGrid(false);\n }\n }\n\nprivate LoadTransactionsGrid(clearTable:boolean)\n{\n if(clearTable)\n {\n this.transactionGridData=new TransactionGridData();\n this.length=0;\n if (this.dataSource!=undefined && this.dataSource.paginator) {\n this.dataSource.paginator.firstPage();\n }\n this.dataSource=null;\n //this.pageSizeOptions=\"[10,20,30,100]\";\n }\n else{\n this.transactionSearchModel.PageNumber=this.transactionPageNumber;\n this.transactionSearchModel.PageSize=this.transactionPagesize;\n this.transactionservice.getTransactionGrid(this.transactionSearchModel)\n .subscribe(res => {\n this.transactionGridData = res;\n this.dataSource = new MatTableDataSource(this.transactionGridData.transactionData);\n \n this.isLoading = false;\n //this.dataSource.paginator = this.paginator;\n this.dataSource.sort = this.sort;\n \n this.length=res.pagination.TotalItems;\n //this.dataSource.filter = this.requestorFilter.trim().toLowerCase();\n },(error: any)=>{\n this.isLoading=false;\n this.toastr.error(error);\n });\n }\n}\nonPageEvent(event:any){\n if(this.dataSource!=null){\n this.transactionPagesize=event.pageSize;\n this.transactionPageNumber=event.pageIndex+1;\n this.LoadTransactionsGrid(false);\n }\n}\n\n private _filter(value: any): string[] {\n const filterValue = value!=undefined && value!=\"\" && value[\"PharmacyName\"]!=undefined? value[\"PharmacyName\"].toLowerCase():value.toLowerCase();\nif(this.vendorList!=undefined)\n{\n return this.vendorList.filter((option: any) => option[\"PharmacyName\"].toLowerCase().includes(filterValue));\n}\nelse{\n return [];\n}\n }\n displayTextForVendor(vendor:any)\n {\n return vendor!=undefined && vendor!=''?vendor.PharmacyName:\"\";\n }\n applyFilter(event: Event) {\n const filterValue = (event.target as HTMLInputElement).value;\n this.dataSource.filter = filterValue.trim().toLowerCase();\n\n if (this.dataSource.paginator) {\n this.dataSource.paginator.firstPage();\n }\n }\n LoadVendors()\n {\n this.transactionservice.getPharmacyVendors().subscribe((res) => {\n \n this.vendorList = res[\"ResponseData\"];\n this.filteredOptions = this.PharmacyVendor.valueChanges.pipe(\n startWith(''),\n map(value => this._filter(value || '')),\n );\n });\n\n }\n LoadSpecies(){\n this.speciesList=[\n // {\n // \"SpeciesId\":null,\"SpeciesName\":\"None\"\n // },\n {\n \"SpeciesId\":\"S001\",\"SpeciesName\":\"Pet Only\"\n },\n {\n \"SpeciesId\":\"S002\",\"SpeciesName\":\"Human Only\"\n },\n {\n \"SpeciesId\":\"null\",\"SpeciesName\":\"All\"\n }\n ]\n }\n LoadStatus(){\n this.statusList=[\n {\n \"StatusId\":null,\"StatusName\":\"None\"\n },\n {\n \"StatusId\":\"ST001\",\"StatusName\":\"Verify\"\n },\n {\n \"StatusId\":\"ST002\",\"StatusName\":\"Error\"\n },\n {\n \"StatusId\":\"ST003\",\"StatusName\":\"PharmacyAck\"\n },\n {\n \"StatusId\":\"ST004\",\"StatusName\":\"Ack\"\n },\n {\n \"StatusId\":\"ST005\",\"StatusName\":\"Success\"\n },\n {\n \"StatusId\":\"ST006\",\"StatusName\":\"PharmacyError\"\n },\n {\n \"StatusId\":\"ST007\",\"StatusName\":\"Received\"\n },\n {\n \"StatusId\":\"ST008\",\"StatusName\":\"EhrAck\"\n }\n ]\n }\n \n get errorMessageForMessageId(): string {\n const transactionform: FormControl = (this.form.get('MessageId') as FormControl);\n return transactionform.hasError('required') ?\n 'Required error message' :\n transactionform.hasError('maxlength') ?\n 'Max length is 35 characters' : \n transactionform.hasError('pattern') ?\n 'Please enter only alphanumeric values':\"\"\n }\n get errorMessageForRelatesToMessageId(): string {\n const transactionform: FormControl = (this.form.get('RelatesToMessageId') as FormControl);\n return transactionform.hasError('required') ?\n 'Required error message' :\n transactionform.hasError('maxlength') ?\n 'Max length is 35 characters' : \n transactionform.hasError('pattern') ?\n 'Please enter only alphanumeric values':\"\"\n}\nget errorMessageForPharmacyNpi(): string {\n const transactionform: FormControl = (this.form.get('PharmacyNpi') as FormControl);\n return transactionform.hasError('required') ?\n 'Required error message' :\n transactionform.hasError('maxlength') ?\n 'Max length is 15 characters' : \n transactionform.hasError('pattern') ?\n 'Please enter only numeric values':\"\"\n}\nget errorMessageForPharmacyLastname(): string {\n const transactionform: FormControl = (this.form.get('PatientLastName') as FormControl);\n return transactionform.hasError('required') ?\n 'Patient Last Name is mandatory' :\n transactionform.hasError('maxlength') ?\n 'Max length is 35 characters' : \n transactionform.hasError('pattern') ?\n 'Please enter only alphanumeric values':\"\";\n}\nget errorMessageForPatientDOB():string{\n const transactionform: FormControl = (this.form.get('PatientDateOfBirth') as FormControl);\n return transactionform.hasError('matDatepickerParse') ?\n 'Invalid date' :\n transactionform.hasError('mandatory') ?\n 'Patient Date Of Birth is mandatory':transactionform.hasError('futuredateerror')?\n \"Future date is not allowed\":\"\"\n}\nget errorMessageForBeginDate():string{\n const transactionform: FormControl = (this.form.get('BeginDate') as FormControl);\n return transactionform.hasError('matDatepickerParse') ?\n 'Invalid date' :\n transactionform.hasError('date error') ?\n 'Begin date should be less than end date':\n transactionform.hasError('beginmindate error') ?\n 'Dates should be prior to 60 days from current date':\"\"\n}\nget errorMessageForEndDate():string{\n const transactionform: FormControl = (this.form.get('EndDate') as FormControl);\n return transactionform.hasError('matDatepickerParse') ?\n 'Invalid date' :\n transactionform.hasError('date error') ?\n 'End date should be greater than Begin date':\n transactionform.hasError('endmindate error') ?\n 'Dates should be prior to 60 days from current date':\"\"\n}\n\ndateValidation(element:string)\n{\n let begintime=this.form.get('BeginDateTime')?.value;\n let endtime=this.form.get('EndDateTime')?.value;\n let beginDate=new Date(Date.parse(this.form.get('BeginDate')?.value))\n let endDate=new Date(Date.parse(this.form.get('EndDate')?.value))\n //let beginDate=new Date(this.form.get('BeginDate')?.value);\n //let endDate=new Date(this.form.get('EndDate')?.value);\n beginDate.setHours(begintime[\"hour\"])\n beginDate.setMinutes(begintime[\"minute\"])\n this.form.get('BeginDate')?.setValue(!isNaN(beginDate.getHours())?beginDate:null);\n endDate.setHours(endtime[\"hour\"])\n endDate.setMinutes(endtime[\"minute\"])\n this.form.get('EndDate')?.setValue(!isNaN(endDate.getHours())?endDate:null);\n \n if(element=='BeginDate')\n {\n if (this.form.get('BeginDate')?.value!=null && isNaN(beginDate.getHours())) {\n this.BeginDate.setErrors({'matDatepickerParse': true});\n this.form.get('BeginDate')?.markAsTouched();\n return;\n \n }\n if(beginDateendDate))\n {\n this.BeginDate.setErrors({'date error': true});\n this.EndDate.setErrors({'date error': true});\n this.form.get('BeginDate')?.markAsTouched();\n this.form.get('EndDate')?.markAsTouched();\n }\n else{\n this.BeginDate.setErrors(null);\n this.EndDate.setErrors(null);\n \n }\n}\nonDateSelect(event:any){\n this.dateValidation(event.targetElement.name);\n}\nonTimeChange(elementName:string)\n{\n this.dateValidation(elementName);\n}\nonDobDateSelect(event:any){\n this.disableSection(event.targetElement.closest('tbody').className);\n if(this.form.get('PatientDateOfBirth')?.value!=''\n && this.form.get('PatientDateOfBirth')?.value!=null && this.form.get('PatientDateOfBirth')?.value!=undefined\n && (this.form.get('PatientLastName')?.value==''\n || this.form.get('PatientLastName')?.value==null || this.form.get('PatientLastName')?.value==undefined))\n {\n this.form.get('PatientLastName')?.setErrors({'required': true});\n this.form.get('PatientLastName')?.markAsTouched();\n }\n else{\n if(!this.form.get('PatientLastName')?.hasError)\n {\n this.form.get('PatientLastName')?.setErrors(null);\n }\n }\n}\ndisableSection(section:string)\n{\n if(section==\"section1\")\n {\n \n if(this.checkForValueInSection(\"section1\"))\n {\n for(let element of this.section2){\n this.form.get(element)?.disable()\n }\n }\n else{\n for(let element of this.section2){\n this.form.get(element)?.enable()\n }\n }\n }\n else if(section==\"section2\")\n {\n if(this.checkForValueInSection(\"section2\"))\n {\n for(let element of this.section1){\n this.form.get(element)?.disable()\n }\n \n }\n else{\n for(let element of this.section1){\n this.form.get(element)?.enable()\n }\n \n }\n }\n}\nonDateInputkeyup(event:any)\n{\n // if(event.currentTarget.name==\"BeginDate\")\n // {\n // let beginDate=new Date(Date.parse(this.form.get('BeginDate')?.value))\n // //let beginDate=this.form.get('BeginDate')?.value\n // if(!beginDate)\n // {\n // this.form.get('BeginDate')?.setErrors({'matDatepickerParse': true});\n this.form.get('BeginDate')?.markAsTouched();\n // }\n // else{\n // this.form.get('BeginDate')?.setErrors(null);\n // }\n // }\n // else{\n this.form.get('EndDate')?.markAsTouched();\n // }\n}\n\nonInputkeyup(event:any)\n{\n this.disableSection(event.target.closest('tbody').className);\n this.validatePatientLastNameAndDob(event);\n if(event.currentTarget.name==\"MessageId\" || event.currentTarget.name==\"RelatesToMessageId\")\n {\n this.form.get('Species').setValue(\"All\");\n }\n if(event.currentTarget.name==\"PharmacyVendor\")\n {\n if(this.form.get('PharmacyVendor')?.value!=null && this.form.get('PharmacyVendor')?.value!='')\n {\n let pharmacyVendor=this.vendorList.find((x: { PharmacyName: any; })=>x.PharmacyName.toLowerCase()==this.form.get('PharmacyVendor')?.value.toLowerCase());\n //this.form.get('PharmacyVendor')?.setValue(pharmacyVendor!=undefined && pharmacyVendor !=null?pharmacyVendor:null);\n if(pharmacyVendor==undefined)\n {\n this.form.get('PharmacyVendor')?.setErrors({'invalid': true});\n }\n else{\n this.form.get('PharmacyVendor')?.setErrors(null);\n }\n }\n else{\n this.form.get('PharmacyVendor')?.setErrors(null);\n }\n }\n}\nvalidatePatientLastNameAndDob(event:any)\n{\n // let patientLastName=this.form.get('PatientLastName')?.value;\n // let patientDob=this.form.get('PatientDateOfBirth')?.value;\n let patientLastName=this.PatientLastName.value;\n let patientDob=this.PatientDateOfBirth.value;\n if(event.currentTarget.name==\"PatientLastName\")\n {\n let regex=new RegExp('^[A-Za-z0-9]+$')\n if(patientLastName.length>0 && !regex.test(patientLastName))\n {\n this.form.get('PatientLastName')?.setErrors({'pattern': true});\n return;\n }\n else if(patientLastName.length>35)\n {\n this.form.get('PatientLastName')?.setErrors({'maxlength': true});\n return;\n }\n if(patientLastName!=''&& patientDob==null )\n {\n this.form.get('PatientDateOfBirth')?.setErrors({'mandatory': true});\n this.form.get('PatientDateOfBirth')?.markAsTouched();\n }\n else{\n // if(!this.form.get('PatientDateOfBirth')?.hasError)\n // {\n this.form.get('PatientDateOfBirth')?.setErrors(null);\n //}\n }\n if(patientLastName=='' && patientDob!=null )\n {\n this.form.get('PatientLastName')?.setErrors({'required': true});\n }\n else{\n if(!this.form.get('PatientLastName')?.hasError)\n {\n this.form.get('PatientLastName')?.setErrors(null);\n }\n }\n}\nif(event.currentTarget.name==\"PatientDateOfBirth\")\n {\n let patientDOB=new Date(Date.parse(this.form.get('PatientDateOfBirth')?.value))\n\n if(patientDOB>this.today)\n {\n this.form.get('PatientDateOfBirth')?.setErrors({'futuredateerror': true});\n return;\n }\n if(this.PatientDateOfBirth.hasError('matDatepickerParse'))\n {\n this.form.get('PatientDateOfBirth')?.setErrors({'matDatepickerParse': true});\n return;\n }\n if(patientLastName==''&& patientDob!=null )\n {\n this.form.get('PatientLastName')?.setErrors({'required': true});\n this.form.get('PatientLastName')?.markAsTouched();\n }\n else{\n // if(!this.form.get('PatientLastName')?.hasError)\n // {\n this.form.get('PatientLastName')?.setErrors(null);\n //}\n }\n if(patientLastName!='' && patientDob==null )\n {\n this.form.get('PatientDateOfBirth')?.setErrors({'mandatory': true});\n }\n else{\n this.form.get('PatientDateOfBirth')?.setErrors(null);\n }\n}\n}\nonVendorChange(event:any)\n{\n this.disableSection(event.source._elementRef.nativeElement.closest('tbody').className);\n}\nonStatusChange(event:any)\n{\n this.disableSection(event.source._elementRef.nativeElement.closest('tbody').className);\n}\nonSpeciesChange(event:any)\n{\n this.disableSection(event.source._elementRef.nativeElement.closest('tbody').className);\n}\n\ncheckForValueInSection(section:string)\n{\n let hasValue=false;\n if(section==\"section1\")\n {\n for(let element of this.section1){\n \n if(this.form.get(element)?.value!=undefined && this.form.get(element)?.value!=''\n && this.form.get(element)?.value!=null)\n {\n hasValue=true;\n this.enableSearch=true;\n break;\n }\n else{\n this.enableSearch=true;\n }\n } \n }\n else if(section==\"section2\")\n {\n let novalue=false;\n for(let element of this.section2.filter(x=>x!=\"Species\")){\n if(this.form.get(element)?.value!=undefined && this.form.get(element)?.value!=''\n && this.form.get(element)?.value!=null)\n {\n novalue=false;\n hasValue=true;\n this.enableSearch=true;\n break;\n } \n else{\n novalue=true;\n this.enableSearch=false;\n }\n }\n if(novalue && this.form.get(\"Species\")?.value=='All')\n {\n this.enableSearch=true;\n hasValue=false;\n }\n else if(novalue && this.form.get(\"Species\")?.value!='All')\n {\n this.enableSearch=true;\n hasValue=true;\n }\n }\n \n return hasValue;\n}\nclearSearch()\n{\n this.ngOnInit();\n this.LoadTransactionsGrid(true);\n}\nonClickTransactionId(id:string,initiator:string)\n{\n this.router.navigate(['summarytransaction', id,initiator]);\n}\n}\n\n","import { Component } from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\n\n@Component({\n selector: 'app-transaction-detail',\n templateUrl: './transaction-detail.component.html',\n styleUrls: ['./transaction-detail.component.css']\n})\nexport class TransactionDetailComponent {\n MessageID: any;\n\n\n constructor(private route: ActivatedRoute, \n private router: Router) {\n this.route.paramMap.subscribe((params) => {\n this.MessageID = params.get('id')!=\"\"?params.get('id'):\"\";\n });\n \n }\n \n}\n","

transaction-detail works!

\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-transaction-view',\n templateUrl: './transaction-view.component.html',\n styleUrls: ['./transaction-view.component.css']\n})\nexport class TransactionViewComponent {\n\n}\n","

transaction-view works!

\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-transaction-flow',\n templateUrl: './transaction-flow.component.html',\n styleUrls: ['./transaction-flow.component.css']\n})\nexport class TransactionFlowComponent {\n\n}\n","

transaction-flow works!

\n","import { formatDate } from \"@angular/common\";\n\nexport class TransactionResultData {\n public Errors: Array;\n public ResponseData: TransactionSummaryData;\n public ResponseMessage: string;\n public ResponseStatus: boolean;\n}\n\nexport class ErrorListItem {\n public ErrorCode: number;\n public ErrorMessage: string;\n}\n\nexport class TransactionSummaryData {\n public RequestID: string;\n public Initiator: string;\n public MessageID: string;\n public RelatesToMessageID: string;\n public RelatesToRequestId: string;\n public MessageType: String;\n public PharmacyName: String;\n public PharmacyNPI: String;\n public ResponseStatus: String;\n public IsPet: String;\n public Species: String;\n public PatientLastName: String;\n public PatientDOB: String;\n public RequestDate: String;\n public RequestData: string;\n public RequestJson: string;\n public ResponseData: Array;\n public ErrorData: Array;\n}\n\nexport class TransactionResponseData{\n public PartDay: string;\n public ResponseId: string;\n public RequestId: string;\n public MessageId: string;\n public RelatesToMessageId: string;\n public MessageType: string;\n public IsPet: string;\n public ResponseStatus: string;\n public EndPoint: string;\n public ResponseData: string;\n public ResponseJson: string;\n public ResponseDate: string;\n}\n\nexport class TransactionErrorData {\n public RequestId: string;\n public ErrorCode: string;\n public ErrorMsg: string;\n public ErrorDate: string;\n}\n\nexport class TransactionSummaryDataMapper {\n mapToModel(json: any): TransactionResultData {\n let transactionResultData:TransactionResultData=new TransactionResultData();\n return transactionResultData;\n }\n}","\n \n \n Transaction Summary\n \n
\n \n
\n \n \n \n \n
\n \n
\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n
\n
\n \n
\n \n
\n \n
\n
\n \n
\n
\n \n
\n
\n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n \n
\n \n \n \n \n \n \n  \n \n \n  \n \n \n \n \n
\n
  • \n \n {{node.filename}}  :  {{node.type}}\n
  • \n
    \n
    \n \n \n
  • \n
    \n \n {{node.filename}}\n
    \n
      \n \n
    \n
  • \n
    \n
    \n
    \n
    \n \n \n \n \n \n \n  \n \n \n  \n \n \n \n \n
    \n
  • \n \n {{node.filename}}  :  {{node.type}}\n
  • \n
    \n
    \n
    \n \n
  • \n
    \n \n
    {{node.filename}}
    \n
    \n
    \n
      \n \n
    \n
  • \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n\n ","import { Component, OnInit } from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { TransactionResultData, TransactionSummaryData, \n TransactionResponseData, TransactionErrorData } from '../../DTO/transaction-summary';\nimport { TransactionService } from '../../../services/transactionservice';\nimport { ToastrService } from 'ngx-toastr';\n\nimport { CollectionViewer, DataSource, SelectionChange } from '@angular/cdk/collections';\nimport { FlatTreeControl, NestedTreeControl } from '@angular/cdk/tree';\nimport { Injectable } from '@angular/core';\nimport { MatTreeNestedDataSource } from '@angular/material/tree';\nimport { BehaviorSubject } from 'rxjs';\n\n//Request tree view\nexport class FileNode {\n children: FileNode[] | undefined;\n filename: any;\n type: any;\n markedForDelete:boolean=false;\n isRootNode:boolean=false;\n}\nlet RESPONSE_TREE_DATA=\"\";\nlet REQUEST_TREE_DATA=\"\";\n// Request tree view\n@Component({\n selector: 'app-transaction-summary',\n templateUrl: './transaction-summary.component.html',\n styleUrls: ['./transaction-summary.component.css']\n})\nexport class TransactionSummaryComponent implements OnInit {\n MessageID: any;\n\n //request tree view\n dataChange = new BehaviorSubject([]);\n filteredNodes:FileNode[]=[]\n initialNodes:FileNode[]=[]\n get data(): FileNode[] { return this.dataChange.value; }\n nestedTreeControl: NestedTreeControl;\n nestedDataSource: MatTreeNestedDataSource;\n //request tree view\n\n //response tree view\n responseDataChange = new BehaviorSubject([]);\n responseFilteredNodes:FileNode[]=[]\n responseInitialNodes:FileNode[]=[]\n get responseData(): FileNode[] { return this.responseDataChange.value; }\n responseNestedTreeControl: NestedTreeControl;\n responseNestedDataSource: MatTreeNestedDataSource;\n //response tree view\n\n isLoading: boolean = true;\n showDetails:string;\n requestTabTitle:String=\"\";\n input=new TransactionSummaryData();\n public transactionResultData: TransactionResultData = new TransactionResultData();\n public transactionRequestData: TransactionSummaryData = new TransactionSummaryData();\n public transactionResponseData: TransactionResponseData = new TransactionResponseData();\n public transactionErrorData: TransactionErrorData = new TransactionErrorData();\n\n constructor(private route: ActivatedRoute,private router: Router,\n private transactionService: TransactionService, private toastr:ToastrService) {\n this.route.paramMap.subscribe((params) => {\n this.input.RequestID = params.get('id');\n this.input.Initiator = params.get('initiator');\n });\n\n //request treeview\n this.nestedTreeControl = new NestedTreeControl(this._getChildren);\n this.nestedDataSource = new MatTreeNestedDataSource(); \n this.dataChange.subscribe(data => this.nestedDataSource.data = data);\n //request treeview\n\n //response treeview\n this.responseNestedTreeControl = new NestedTreeControl(this._getResponseChildren);\n this.responseNestedDataSource = new MatTreeNestedDataSource(); \n this.responseDataChange.subscribe(data => this.responseNestedDataSource.data = data);\n //response treeview\n }\n\n ngOnInit(): void {\n this.loadTransactionSummaryHeader();\n }\n //request treeview\n hasNestedChild = (_: number, nodeData: FileNode) => !nodeData.type;\n private _getChildren = (node: FileNode) => node.children;\n //request treeview\n\n //response treeview\n hasResponseNestedChild = (_: number, nodeData: FileNode) => !nodeData.type;\n private _getResponseChildren = (node: FileNode) => node.children;\n //response treeview\n loadTransactionSummaryHeader(){\n this.transactionService.getTransactionSummaryHeader(this.input).subscribe(res=>{\n try {\n if(res.ResponseStatus==true && res.ResponseData.RequestData){\n this.transactionRequestData=res.ResponseData;\n //Request treeview\n if(res.ResponseData.RequestJson!=null && res.ResponseData.RequestJson!='')\n {\n this.requestTabTitle=res.ResponseData.MessageType!=''?res.ResponseData.MessageType:'Request';\n let requestJsonObject=JSON.parse(res.ResponseData.RequestJson)\n REQUEST_TREE_DATA=JSON.stringify(requestJsonObject);\n //Request treeview\n const requestDataObject = JSON.parse(REQUEST_TREE_DATA);\n const data = this.buildRequestFileTree(requestDataObject,true);\n this.dataChange.next(data);\n }\n //Response treeview\n var jsonArray: string[]=[];\n res.ResponseData.ResponseData.forEach(element => {\n if(element.ResponseJson !=null && element.ResponseJson!='')\n {\n let jObject=JSON.parse(element.ResponseJson)\n jObject['ResponseTitle']=\"Response Status=\"+element.ResponseStatus+\"|\"+\"Message Id=\"+element.MessageId+\"|\"+\n \"Relates To Message Id=\"+element.RelatesToMessageId+\"|\"+\"Message Type=\"+element.MessageType+\n \"|\"+\"Response Date=\"+element.ResponseDate;\n jsonArray.push(jObject)\n }\n });\n if(jsonArray.length>0)\n { \n RESPONSE_TREE_DATA=JSON.stringify(jsonArray);\n const responseDataObject = JSON.parse(RESPONSE_TREE_DATA);\n const data = this.buildResponseFileTree(responseDataObject,false);\n this.responseDataChange.next(data);\n }\n //Response treeview\n }\n else if(res.ResponseStatus==false&& res.ResponseMessage!=''){\n this.toastr.error(res.ResponseMessage);\n }\n this.isLoading=false;\n }\n catch(error:any){\n this.isLoading=false;\n this.toastr.error('Invalid Request/Response data');\n }\n },(error: any)=>{\n this.isLoading=false;\n this.toastr.error(error);\n });\n \n }\n\n //request treeview\n buildRequestFileTree(obj: any,isExpand:boolean): FileNode[] {\n return Object.keys(obj).reduce((accumulator, key) => {\n const value = obj[key];\n const node = new FileNode();\n node.filename = key;\n \n if (value != null) {\n if (typeof value === 'object') {\n node.children = this.buildRequestFileTree(value,isExpand);\n } else {\n if(value==null || value=='')\n {\n node.markedForDelete=true;\n }\n node.type = value;\n }\n }\n if(isExpand)\n {\n this.nestedTreeControl.expand(node);\n }\n else{\n this.nestedTreeControl.collapse(node);\n }\n return accumulator.concat(node);\n \n }, []);\n }\n\n expandorcollapse(val:string){\n let text=document.getElementById('filternodeId') as HTMLInputElement;\n this.filterNodes(text?.value,val==\"expand\"?true:false)\n }\n\n filterNodes(val:string,isExpand:boolean){\n const data=REQUEST_TREE_DATA;\n const usersJson: any[] = Array.of(REQUEST_TREE_DATA);\n const dataObject = JSON.parse(REQUEST_TREE_DATA);\n this.initialNodes=this.buildRequestFileTree(dataObject,isExpand);\n let filteredtree=this.markNodeForRemoval(this.initialNodes,val,isExpand);\n this.filteredNodes=this.removeNodes(filteredtree);\n this.dataChange.next(this.filteredNodes);\n this.nestedDataSource = new MatTreeNestedDataSource();\n this.dataChange.subscribe(data => this.nestedDataSource.data = data);\n }\n\n applyFilter(event:any){\n this.filterNodes(event.currentTarget?.value,true)\n }\n\n markNodeForRemoval(tree: FileNode[],val:string,isExpand:boolean): FileNode[] {\n for (let index = 0; index {\n element.markedForDelete=false;\n });\n }\n if(descendants.filter(x=>!x.markedForDelete).length>0)\n {\n node.markedForDelete=false\n }\n else{\n node.markedForDelete=true;\n }\n const parentCanBeEliminated = this.removeNodes(node.children)\n }\n }\n return tree;\n }\n //request treeview\n\n //response treeview\n buildResponseFileTree(obj: any,isExpand:boolean): FileNode[] { \n return Object.keys(obj).reduce((accumulator, key) => {\n const value = obj[key];\n const node = new FileNode();\n node.filename = key;\n if(value.hasOwnProperty('ResponseTitle'))\n {\n node.filename = value.ResponseTitle;\n node.isRootNode=true;\n }\n if(key==\"ResponseTitle\")\n {\n node.markedForDelete=true;\n }\n \n if (value != null) {\n if (typeof value === 'object') {\n node.children = this.buildResponseFileTree(value,isExpand);\n } else {\n if(value==null || value=='')\n {\n node.markedForDelete=true;\n }\n node.type = value;\n }\n }\n if(isExpand)\n {\n this.responseNestedTreeControl.expand(node);\n }\n else{\n this.responseNestedTreeControl.collapse(node);\n }\n return accumulator.concat(node);\n \n }, []);\n }\n\n expandorcollapseResponse(val:string){\n let text=document.getElementById('responseFilternodeId') as HTMLInputElement;\n this.responseFilterNodes(text?.value,val==\"expand\"?true:false)\n }\n\n responseFilterNodes(val:string,isExpand:boolean){\n const dataObject = JSON.parse(RESPONSE_TREE_DATA);\n this.responseInitialNodes=this.buildResponseFileTree(dataObject,isExpand);\n let filteredtree=this.markResponseNodeForRemoval(this.responseInitialNodes,val,isExpand);\n this.responseFilteredNodes=this.removeResponseNodes(filteredtree);\n this.responseDataChange.next(this.responseFilteredNodes);\n this.responseNestedDataSource = new MatTreeNestedDataSource();\n this.responseDataChange.subscribe(data => this.responseNestedDataSource.data = data);\n }\n\n applyResponseFilter(event:any){\n this.responseFilterNodes(event.currentTarget?.value,true)\n }\n\n markResponseNodeForRemoval(tree: FileNode[],val:string,isExpand:boolean): FileNode[] {\n for (let index = 0; index {\n element.markedForDelete=false;\n });\n }\n if(descendants.filter(x=>!x.markedForDelete).length>0)\n {\n node.markedForDelete=false\n }\n else{\n node.markedForDelete=true;\n }\n const parentCanBeEliminated = this.removeResponseNodes(node.children)\n }\n }\n return tree;\n }\n\n buildResponseTitle(nodeValue:string)\n {\n let titleElements=nodeValue.split(\"|\");\n let tableCell='';\n titleElements.forEach(element => {\n let keyValue=element.split(\"=\");\n let key=\"\"+keyValue[0]+\"\";\n let value=\"\";\n if(keyValue[1]!=undefined)\n {\n value=\" : \"+element.split(\"=\")[1]+\"\";\n }\n tableCell=tableCell.concat(\"\"+key+value+\"\");\n });\n return \"\"+tableCell+\"

    \"\n }\n //request treeview\n public redirectToDetails = (id: string) => {\n window.open('summarytransaction/'+id+'/'+this.input.Initiator);\n }\n\n showHideDetails()\n {\n if(this.showDetails==\"Hide Details\")\n {\n this.showDetails=\"Show Details\"\n }\n else{\n this.showDetails=\"Hide Details\"\n }\n }\n}\n\n\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-permission-role-user-add',\n templateUrl: './permission-add.component.html',\n styleUrls: ['./permission-add.component.css']\n})\nexport class PermissionAddComponent {\n\n}\n","

    add works!

    \n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-permission-role-user-search',\n templateUrl: './permission-search.component.html',\n styleUrls: ['./permission-search.component.css']\n})\nexport class PermissionSearchComponent {\n\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-permission-role-user-view',\n templateUrl: './permission-view.component.html',\n styleUrls: ['./permission-view.component.css']\n})\nexport class PermissionViewComponent {\n\n}\n","

    view works!

    \n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-permission-role-user-add',\n templateUrl: './role-add.component.html',\n styleUrls: ['./role-add.component.css']\n})\nexport class RoleAddComponent {\n\n}\n","

    add works!

    \n","import { Component } from '@angular/core';\nimport {MatFormFieldModule} from '@angular/material/form-field';\n\n@Component({\n selector: 'app-permission-role-user-search',\n templateUrl: './role-search.component.html',\n styleUrls: ['./role-search.component.css']\n})\nexport class RoleSearchComponent {\n\n}\n","\n group\n \n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-permission-role-user-view',\n templateUrl: './role-view.component.html',\n styleUrls: ['./role-view.component.css']\n})\nexport class RoleViewComponent {\n\n}\n","

    view works!

    \n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-role-permissions',\n templateUrl: './role-permissions.component.html',\n styleUrls: ['./role-permissions.component.css']\n})\nexport class RolePermissionsComponent {\n\n}\n","\n admin_panel_settings\n \n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-permission-role-user-add',\n templateUrl: './user-add.component.html',\n styleUrls: ['./user-add.component.css']\n})\nexport class UserAddComponent {\n\n}\n","

    add works!

    \n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-permission-role-user-search',\n templateUrl: './user-search.component.html',\n styleUrls: ['./user-search.component.css']\n})\nexport class UserSearchComponent {\n\n}\n","\n manage_accounts\n \n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-permission-role-user-view',\n templateUrl: './user-view.component.html',\n styleUrls: ['./user-view.component.css']\n})\nexport class UserViewComponent {\n\n}\n","

    view works!

    \n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-user-roles',\n templateUrl: './user-roles.component.html',\n styleUrls: ['./user-roles.component.css']\n})\nexport class UserRolesComponent {\n\n}\n","\n record_voice_over\n \n","import { Injectable } from '@angular/core';\nimport { Router, CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';\nimport { ToastrService } from 'ngx-toastr';\nimport { OktaAuthService } from 'src/app/services/auth.service';\n\n\n@Injectable({providedIn: 'root'})\nexport class OktaAuthGuard implements CanActivate {\n constructor(private okta: OktaAuthService, private router: Router,private toastr:ToastrService) {}\n\n async canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) {\n const authenticated = await this.okta.isAuthenticated();\n // const authorized=this.okta.isUserAuthorized(state.url.replace(\"/\",\"\"))\n if (authenticated) { \n \n return true; \n }\n this.okta.login(state.url);\n return false;\n }\n}","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-logout',\n templateUrl: './logout.component.html',\n styleUrls: ['./logout.component.css']\n})\nexport class LogoutComponent {\n\n}\n","
    \n \n \n
    ","import { Component } from '@angular/core';\nimport { Input } from '@angular/core';\n\n@Component({\n selector: 'app-unauthorized',\n templateUrl: './unauthorized.component.html',\n styleUrls: ['./unauthorized.component.css']\n})\nexport class UnAuthorizedComponent {\n @Input() sidenav: any;\n}\n\n","
    \n \n

    \n You are not authorized to view this page. Please contact admin

    \n
    \n
    ","import { NgModule } from '@angular/core';\nimport { RouterModule, Routes } from '@angular/router';\nimport { HomeComponent } from './shared/components/home/home.component'\nimport { CallbackComponent } from './core/callback/callback.component';\nimport { ChangePasswordComponent } from './features/authentication/change-password/change-password.component';\nimport { ForgotPasswordComponent } from './features/authentication/forgot-password/forgot-password.component';\nimport { LoginComponent } from './features/authentication/login/login.component';\nimport { UserProfileComponent } from './features/authentication/user-profile/user-profile.component';\nimport { PharmacySearchComponent } from './features/pharmacy/pharmacy-search/pharmacy-search.component';\nimport { PharmacyAddComponent } from './features/pharmacy/pharmacy-add/pharmacy-add.component';\nimport { PharmacyUpdateComponent } from './features/pharmacy/pharmacy-update/pharmacy-update.component';\nimport { PharmacyViewComponent } from './features/pharmacy/pharmacy-view/pharmacy-view.component';\nimport { TransactionSearchComponent } from './features/transaction/transaction-search/transaction-search.component';\nimport { TransactionDetailComponent } from './features/transaction/transaction-detail/transaction-detail.component';\nimport { TransactionViewComponent } from './features/transaction/transaction-view/transaction-view.component';\nimport { TransactionFlowComponent } from './features/transaction/transaction-flow/transaction-flow.component';\nimport { TransactionSummaryComponent } from './features/transaction/transaction-summary/transaction-summary.component';\nimport { PermissionAddComponent } from './features/user-management/permission/permission-add/permission-add.component';\nimport { PermissionSearchComponent } from './features/user-management/permission/permission-search/permission-search.component';\nimport { PermissionViewComponent } from './features/user-management/permission/permission-view/permission-view.component';\nimport { RoleAddComponent } from './features/user-management/role/role-add/role-add.component';\nimport { RoleSearchComponent } from './features/user-management/role/role-search/role-search.component';\nimport { RoleViewComponent } from './features/user-management/role/role-view/role-view.component';\nimport { RolePermissionsComponent } from './features/user-management/role/role-permissions/role-permissions.component';\nimport { UserAddComponent } from './features/user-management/user/user-add/user-add.component';\nimport { UserSearchComponent } from './features/user-management/user/user-search/user-search.component';\nimport { UserViewComponent } from './features/user-management/user/user-view/user-view.component';\nimport { UserRolesComponent } from './features/user-management/user/user-roles/user-roles.component';\nimport { OktaAuthGuard } from './core/guards/auth.guard';\nimport { LogoutComponent } from './core/logout/logout.component';\nimport { UnAuthorizedComponent } from './shared/components/unauthorized/unauthorized.component'\n\nconst routes: Routes = [\n { path: 'login', component: LoginComponent },\n { path: 'logout', component: LogoutComponent },\n { path: '', redirectTo: 'login', pathMatch: 'full' },\n { path: 'home', component: HomeComponent },\n { path: 'unauthorized', component: UnAuthorizedComponent },\n { path: 'login/callback', component: CallbackComponent },\n { path: 'changepassword', component: ChangePasswordComponent, canActivate: [OktaAuthGuard] },\n { path: 'forgotpassword', component: ForgotPasswordComponent },\n { path: 'userprofile', component: UserProfileComponent, canActivate: [OktaAuthGuard] },\n { path: 'addpharmacy', component: PharmacyAddComponent, canActivate: [OktaAuthGuard] },\n { path: 'updatepharmacy/:id', component: PharmacyUpdateComponent, canActivate: [OktaAuthGuard] },\n { path: 'searchpharmacy', component: PharmacySearchComponent, canActivate: [OktaAuthGuard] },\n { path: 'viewpharmacy', component: PharmacyViewComponent, canActivate: [OktaAuthGuard] },\n { path: 'searchtransaction', component: TransactionSearchComponent, canActivate: [OktaAuthGuard] },\n { path: 'detailtransaction/:id', component: TransactionDetailComponent },\n { path: 'viewtransaction', component: TransactionViewComponent },\n { path: 'flowtransaction', component: TransactionFlowComponent, canActivate: [OktaAuthGuard] },\n { path: 'summarytransaction/:id/:initiator', component: TransactionSummaryComponent }, \n { path: 'addpermission', component: PermissionAddComponent, canActivate: [OktaAuthGuard] },\n { path: 'searchpermission', component: PermissionSearchComponent, canActivate: [OktaAuthGuard] },\n { path: 'viewpermission', component: PermissionViewComponent, canActivate: [OktaAuthGuard] },\n { path: 'addrole', component: RoleAddComponent, canActivate: [OktaAuthGuard] },\n { path: 'searchrole', component: RoleSearchComponent, canActivate: [OktaAuthGuard] },\n { path: 'viewrole', component: RoleViewComponent, canActivate: [OktaAuthGuard] },\n { path: 'rolepermissions', component: RolePermissionsComponent, canActivate: [OktaAuthGuard] },\n { path: 'adduser', component: UserAddComponent, canActivate: [OktaAuthGuard] },\n { path: 'searchuser', component: UserSearchComponent, canActivate: [OktaAuthGuard] },\n { path: 'viewuser', component: UserViewComponent, canActivate: [OktaAuthGuard] },\n { path: 'userroles', component: UserRolesComponent, canActivate: [OktaAuthGuard] }\n];\n\n@NgModule({\n imports: [RouterModule.forRoot(routes)],\n exports: [RouterModule]\n})\nexport class AppRoutingModule { }","import { Component } from '@angular/core';\n\n@Component({\n selector: 'app-footer',\n templateUrl: './footer.component.html',\n styleUrls: ['./footer.component.css']\n})\nexport class FooterComponent {\n currentYear = new Date().getFullYear();\n}\n","\n Copyright © {{currentYear}}\n \n \n","\n \n \n
    \n dashboard\n RxOrders\n
    \n \n \n Transaction\n \n \n \n \n search\n \n Transaction Search\n \n \n \n \n \n Pharmacy\n \n \n \n \n search\n \n Pharmacy Search\n \n \n \n medical_services\n \n Add Pharmacy\n \n \n \n \n \n User Managment\n \n \n \n \n manage_accounts\n \n \n Users\n \n \n \n group\n \n Roles\n \n \n \n record_voice_over\n \n User Roles\n \n \n \n admin_panel_settings\n \n Role Security\n \n \n \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n
    ","import { Component, Input } from '@angular/core';\nimport { OktaAuthService } from 'src/app/services/auth.service';\n\n@Component({\n selector: 'app-sidenav',\n templateUrl: './sidenav.component.html',\n styleUrls: ['./sidenav.component.css']\n})\nexport class SidenavComponent {\n\n @Input() opened = false;\n constructor(private okta: OktaAuthService) { }\n\n\n ngOnInit() { }\n isUserAuthorized(page:string)\n {\n return this.okta.isUserAuthorized(page)\n }\n}","import { Component, EventEmitter, Output } from '@angular/core';\nimport { Router } from '@angular/router';\nimport { OktaAuthService } from 'src/app/services/auth.service';\n\n@Component({\n selector: 'app-toolbar',\n templateUrl: './toolbar.component.html',\n styleUrls: ['./toolbar.component.css']\n})\nexport class ToolbarComponent {\n\n @Output() toggle: EventEmitter = new EventEmitter();\n isAuthenticated: boolean = false;\n public userName:string | undefined;\n constructor(private route: Router, public oktaAuth: OktaAuthService ) { \n\n }\n\n ngOnInit() {\n this.oktaAuth.$isAuthenticated.subscribe(val => {\n this.isAuthenticated = val;\n if(val)\n this.oktaAuth.getUser().then(usr=> {\n this.userName = usr ? usr : \"\";\n localStorage.setItem(\"loggedName\",this.userName);\n });\n });\n }\n\n emit() {\n this.toggle.emit(null);\n }\n\n public handleLogout() {\n localStorage.clear();\n this.oktaAuth.revokeAccessToken();\n this.route.navigate(['/logout']);\n }\n}\n","\n \n \n \n \n Welcome {{userName}}\n \n \n \n \n \n \n","import { Component } from '@angular/core';\nimport { OktaAuthService } from './services/auth.service';\nimport { NavigationEnd, Router } from '@angular/router';\nimport { ToastrService } from 'ngx-toastr';\n\n\n@Component({\n selector: 'app-root',\n templateUrl: './app.component.html',\n styleUrls: ['./app.component.css']\n})\nexport class AppComponent {\n title = 'rxorders-support-ui';\n\n leftOpened = false;\n isLogout: boolean = false;\n toggle() {\n this.leftOpened = !this.leftOpened;\n }\n constructor(public oktaAuth: OktaAuthService,router: Router,private toastr:ToastrService){\n router.events.subscribe(event => {\n if (event instanceof NavigationEnd) { \n const urlParams = new URLSearchParams(event.url);\n const errorName = urlParams.get('error');\n const errorDescr = urlParams.get('error_description');\n\n if(errorName !== undefined && errorName !== \"\" && errorName !== null)\n {\n this.toastr.error(errorDescr + ' This page will be redirect to Okta Login Page in few seconds.'\n , errorName\n , {\n timeOut: 6000\n }).onHidden.subscribe(() => {\n //navigate to error message.\n this.toastr.clear();\n this.handleLogout();\n //router.navigate(['/logout']);\n });\n }\n }});\n\n router.events.subscribe((e) => {\n if (e instanceof NavigationEnd) {\n if(e.url == \"/logout\")\n this.isLogout = true;\n else\n this.isLogout = false;\n }\n });\n }\n async handleLogout() {\n localStorage.clear();\n await this.oktaAuth.logout();\n }\n}","\n\n","import { NgModule } from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatCardModule } from '@angular/material/card';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatToolbarModule } from '@angular/material/toolbar';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatSidenavModule } from '@angular/material/sidenav';\nimport { MatMenuModule } from '@angular/material/menu';\nimport { MatDividerModule } from '@angular/material/divider';\nimport { MatListModule } from '@angular/material/list';\nimport { MatExpansionModule } from '@angular/material/expansion';\nimport { MatTableModule } from '@angular/material/table';\nimport { MatPaginatorModule } from '@angular/material/paginator';\nimport { MatSortModule } from '@angular/material/sort';\nimport { MatDialogModule } from '@angular/material/dialog';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatDatepickerModule } from '@angular/material/datepicker';\nimport { MatNativeDateModule } from '@angular/material/core';\nimport { MatButtonToggleModule } from '@angular/material/button-toggle';\nimport { MatGridListModule } from '@angular/material/grid-list';\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\nimport {MatProgressSpinnerModule} from '@angular/material/progress-spinner';\nimport {MatTabsModule} from '@angular/material/tabs';\nimport {MatRadioButton, MatRadioModule} from '@angular/material/radio';\n\n@NgModule({\n imports: [\n MatButtonModule,\n MatCardModule,\n MatFormFieldModule,\n MatInputModule,\n MatToolbarModule,\n MatIconModule,\n MatSidenavModule,\n MatMenuModule,\n MatDividerModule,\n MatListModule,\n MatExpansionModule,\n MatTableModule,\n MatPaginatorModule,\n MatSortModule,\n MatDialogModule,\n MatTooltipModule,\n MatDatepickerModule,\n MatNativeDateModule,\n MatButtonToggleModule,\n MatGridListModule,\n MatSlideToggleModule,\n MatProgressSpinnerModule,\n MatTabsModule,\n MatRadioModule\n ],\n exports: [\n MatButtonModule,\n MatCardModule,\n MatFormFieldModule,\n MatInputModule,\n MatToolbarModule,\n MatIconModule,\n MatSidenavModule,\n MatMenuModule,\n MatDividerModule,\n MatListModule,\n MatExpansionModule,\n MatTableModule,\n MatPaginatorModule,\n MatSortModule,\n MatDialogModule,\n MatTooltipModule,\n MatDatepickerModule,\n MatNativeDateModule,\n MatButtonToggleModule,\n MatGridListModule,\n MatSlideToggleModule,\n MatProgressSpinnerModule,\n MatTabsModule,\n MatRadioModule\n ]\n})\nexport class MaterialModule { }","import { Injectable } from '@angular/core';\nimport { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpHeaders, HttpErrorResponse } from '@angular/common/http';\nimport { Observable } from 'rxjs';\nimport {tap} from 'rxjs/operators';\nimport { OktaAuthService } from 'src/app/services/auth.service';\nimport {Router} from '@angular/router';\n\n@Injectable()\nexport class AccessTokenInterceptor implements HttpInterceptor {\n accessToken:string;\n constructor(private oktaAuthService: OktaAuthService, private router: Router) {\n this.accessToken = this.oktaAuthService.getToken();\n }\n intercept(request: HttpRequest, next: HttpHandler): Observable> {\n request = request.clone({\n headers: new HttpHeaders({\n 'Content-Type': 'application/json',\n 'Authorization': 'Bearer ' + this.accessToken\n })\n })\n return next.handle(request).pipe( tap(() => {},\n (err: any) => {\n if (err instanceof HttpErrorResponse) {\n if (err.status !== 401) {\n return;\n }\n this.oktaAuthService.login(this.router.url);\n }\n }));\n }\n}\n","import { NgModule } from '@angular/core';\nimport { DatePipe } from '@angular/common';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { AppRoutingModule } from './app-routing.module';\nimport { AppComponent } from './app.component';\nimport { NgbModule, NgbTimepicker } from '@ng-bootstrap/ng-bootstrap';\nimport { BrowserAnimationsModule } from '@angular/platform-browser/animations';\nimport { MaterialModule } from './shared/material/material.module';\nimport { ToolbarComponent } from './shared/components/toolbar/toolbar.component';\nimport { SidenavComponent } from './shared/components/sidenav/sidenav.component';\nimport { FooterComponent } from './shared/components/footer/footer.component';\nimport { LoginComponent } from './features/authentication/login/login.component';\nimport { ChangePasswordComponent } from './features/authentication/change-password/change-password.component';\nimport { ForgotPasswordComponent } from './features/authentication/forgot-password/forgot-password.component';\nimport { UserProfileComponent } from './features/authentication/user-profile/user-profile.component';\nimport { HomeComponent } from './shared/components/home/home.component';\nimport { PharmacySearchComponent } from './features/pharmacy/pharmacy-search/pharmacy-search.component';\nimport { PharmacyAddComponent } from './features/pharmacy/pharmacy-add/pharmacy-add.component';\nimport { PharmacyViewComponent } from './features/pharmacy/pharmacy-view/pharmacy-view.component';\nimport { TransactionSearchComponent } from './features/transaction/transaction-search/transaction-search.component';\nimport { TransactionDetailComponent } from './features/transaction/transaction-detail/transaction-detail.component';\nimport { TransactionViewComponent } from './features/transaction/transaction-view/transaction-view.component';\nimport { TransactionSummaryComponent } from './features/transaction/transaction-summary/transaction-summary.component';\nimport { TransactionFlowComponent } from './features/transaction/transaction-flow/transaction-flow.component';\nimport { RoleAddComponent } from './features/user-management/role/role-add/role-add.component';\nimport { RolePermissionsComponent } from './features/user-management/role/role-permissions/role-permissions.component';\nimport { RoleSearchComponent } from './features/user-management/role/role-search/role-search.component';\nimport { RoleViewComponent } from './features/user-management/role/role-view/role-view.component';\nimport { UserAddComponent } from './features/user-management/user/user-add/user-add.component';\nimport { UserRolesComponent } from './features/user-management/user/user-roles/user-roles.component';\nimport { UserSearchComponent } from './features/user-management/user/user-search/user-search.component';\nimport { UserViewComponent } from './features/user-management/user/user-view/user-view.component';\nimport { PermissionAddComponent } from './features/user-management/permission/permission-add/permission-add.component';\nimport { PermissionSearchComponent } from './features/user-management/permission/permission-search/permission-search.component';\nimport { PermissionViewComponent } from './features/user-management/permission/permission-view/permission-view.component';\nimport { MatSelectModule } from '@angular/material/select';\nimport { MatCheckboxModule } from '@angular/material/checkbox';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatTableModule } from '@angular/material/table';\nimport {MatButtonModule} from '@angular/material/button';\nimport { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';\nimport { FormControl,FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport {MatAutocompleteModule} from '@angular/material/autocomplete';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatspinnerComponent } from './shared/components/matspinner/matspinner.component';\nimport { ToastrModule } from 'ngx-toastr';\nimport { OktaAuth } from '@okta/okta-auth-js';\nimport { OktaAuthModule } from '@okta/okta-angular';\nimport { environment } from 'src/environments/environment';\nimport { AccessTokenInterceptor } from './core/guards/access-token-interceptor';\nimport { TransactionService } from './services/transactionservice';\nimport { MatTreeModule } from '@angular/material/tree';\nimport { UnAuthorizedComponent } from './shared/components/unauthorized/unauthorized.component';\nimport { PharmacyStoreComponent } from './features/pharmacy/pharmacy-store/pharmacy-store.component';\nimport { PharmacyUpdateComponent } from './features/pharmacy/pharmacy-update/pharmacy-update.component';\nconst oktaAuth = new OktaAuth(environment.oidc);\n@NgModule({\n declarations: [\n AppComponent,\n HomeComponent,\n FooterComponent,\n SidenavComponent,\n ToolbarComponent,\n PharmacyAddComponent,\n TransactionSearchComponent,\n TransactionDetailComponent,\n LoginComponent,\n ChangePasswordComponent,\n ForgotPasswordComponent,\n UserProfileComponent,\n PharmacyViewComponent,\n TransactionViewComponent,\n TransactionSummaryComponent,\n TransactionFlowComponent,\n UserSearchComponent,\n UserAddComponent,\n UserViewComponent,\n UserRolesComponent,\n RolePermissionsComponent,\n PharmacySearchComponent,\n RoleAddComponent,\n RoleSearchComponent,\n RoleViewComponent,\n PermissionAddComponent,\n PermissionSearchComponent,\n PermissionViewComponent,\n MatspinnerComponent,\n UnAuthorizedComponent,\n PharmacyStoreComponent,\n PharmacyUpdateComponent\n ],\n imports: [\n BrowserModule,\n AppRoutingModule,\n BrowserAnimationsModule,\n MaterialModule,\n NgbModule,\n MatSelectModule,\n MatCheckboxModule,\n MatInputModule,\n MatTableModule,\n MatButtonModule,\n HttpClientModule,\n FormsModule,\n MatAutocompleteModule,\n MatFormFieldModule,\n ReactiveFormsModule,\n NgbTimepicker,\n ToastrModule.forRoot(),\n MatTreeModule\n ],\n providers: [TransactionService,{provide: HTTP_INTERCEPTORS, useClass: AccessTokenInterceptor, multi: true},DatePipe],\n bootstrap: [AppComponent]\n})\nexport class AppModule { }","/// \n\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\nimport { environment } from './environments/environment';\n\nimport { AppModule } from './app/app.module';\nimport { enableProdMode } from '@angular/core';\n\nif (environment.production) {\n enableProdMode();\n}\n\nplatformBrowserDynamic().bootstrapModule(AppModule)\n .catch(err => console.error(err));"],"x_google_ignoreList":[]}