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AAQ,KACR,YAAa,KACb,eAAgB,KAChB,UAAW,KACX,OAAQ,EACR,UAAW,EACX,aAAc,IACd,gBAAiB,IACjB,OAAQ,KACR,UAAW,KACX,UAAW,KACX,aAAc,KACd,UAAW,KACX,aAAc,KACd,UAAW,KACX,aAAc,KACd,UAAW,KACX,aAAc,MAIf,SAASsX,EAAeC,GAEvB,OADIj5B,EAAKk5B,EAAsBD,GACxBE,EAAoBn5B,GAE5B,SAASk5B,EAAsBD,GAC9B,GAAIE,EAAoBC,EAAE1X,EAAKuX,GAK/B,OAAOvX,EAAIuX,GAFV,MAFI17B,EAAI,IAAI87B,MAAM,uBAAyBJ,EAAM,MAC/C1xC,KAAO,mBACHgW,EAIRy7B,EAAepf,KAAO,WACrB,OAAOrY,OAAOqY,KAAK8H,IAEpBsX,EAAeM,QAAUJ,GACzBK,EAAOtlC,QAAU+kC,GACFh5B,GAAK,M,m6BCnSpBu5B,EAAOtlC,QAAUulC,S","sources":["webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/app.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/banners/banners.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/banners/interactive-scenarios-banner/interactive-scenarios-banner.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/banners/interactive-scenarios-banner/interactive-scenarios-banner.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/banners/trial-banner/trial-banner.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/banners/trial-banner/trial-banner.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/content/content.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/content/content.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/content/inter-scenarios-search.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/admin-user-link/admin-user-link.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/admin-user-link/adminUserLink.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/billpad/billpad-modal.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/billpad/billpad-toggle.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/billpad/billpadApi.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/bookmarks/bookmarks-modal.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/bookmarks/bookmarks-toggle.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/bookmarks/bookmarks.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/bulletins/bulletins-daily.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/bulletins/bulletins-read.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/bulletins/bulletins.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/bulletins/bulletins.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/core.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/messages/messages.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/messages/messages.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/messages/read-messages.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/pager/pager.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/toolbox/toolbox.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/training/training-widget.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/training/training.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/training/training.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/utilities/safe-html.pipe.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dcp/article-list.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dcp/article-search-results.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dcp/article-search.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dcp/article-widget.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dcp/article.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dcp/breaking-news.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dcp/dcp.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dcp/latest-headlines.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dcp/latest-issue-widget.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dcp/latest-issue.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dcp/newsletter-article-component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dcp/newsletter-component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dcp/newsletter.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dictionary/dictionary-appendices.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dictionary/dictionary-detail.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dictionary/dictionary-results.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dictionary/dictionary-search.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dictionary/dictionary.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dictionary/dictionary.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/forum/forum.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/forum/forum.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/forum/forum.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/icd10/icd10-alpha-index.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/icd10/icd10-browse-component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/icd10/icd10-browse-tree.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/icd10/icd10-search-slide.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/icd10/icd10-search.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/icd10/icd10-search.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/icd10/icd10.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/icd10/icd10cmBrowseWebService.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/icd10/mappingicd10code.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/icd9/icd9-mapping-modal.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/icd9/icd9-mapping-widget.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/icd9/icd9.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/icd9/icd9Mapping.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/library/library.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/library/library.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/library/library.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/login/eula-modal.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/login/login.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/login/login.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/login/login.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/main.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/manage-users/add-user/add-user.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/manage-users/add-user/add-user.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/manage-users/edit-user/edit-user.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/manage-users/edit-user/edit-user.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/manage-users/filter-users.pipe.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/manage-users/manage-users.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/manage-users/manage-users.models.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/manage-users/manage-users.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/manage-users/manage-users.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/manage-users/membership-grid.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/manage-users/notification.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/manage-users/remove-users/remove-users.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/manage-users/remove-users/remove-users.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/manage-users/sort-users.pipe.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/material.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/pdgm-calculator/pdgm-calculator.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/pdgm-calculator/pdgm-calculator.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/pdgm-calculator/pdgm-calculator.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/profile/profile.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/profile/profile.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/profile/profile.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/recentCodes/recent-codes-sort-order.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/recentCodes/recent-codes-widget.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/recentCodes/recent-codes.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/recentCodes/recent-codes.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/recentCodes/recentCodesApi.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/search-box/hhccSearchAutocomplete.directive.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/search-box/search-box.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/search-box/search-box.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/search-box/searchBox.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/shared/directives/daterangepicker.directive.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/shared/directives/daterangepicker.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/shared/directives/highlight.directive.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/shared/directives/highlight.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/shared/pipes/sortBy.pipe.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/siteContent/siteContent.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/siteContent/siteContent.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/siteContent/tips-modal.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/usage-reporting-charts/individualCharts/users-summary-info.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/usage-reporting-charts/teamCharts/most-searched-codes-chart.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/usage-reporting-charts/teamCharts/most-searched-terms-chart.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/usage-reporting-charts/teamCharts/most-viewed-pages-chart.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/usage-reporting-charts/usage-reporing-charts.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/usage-reporting-charts/usage-reporting-charts.models.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/usage-reporting-charts/usage-reporting-charts.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/usage-reporting-charts/usage-reporting-charts.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/userNotes/filter-notes.pipe.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/userNotes/user-notes-lookback.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/userNotes/user-notes-modal-component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/userNotes/user-notes.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/userNotes/userNotes.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/userNotes/userNotes.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/video/video-widget.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/video/video.component.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/video/video.module.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/video/video.service.ts","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/banners/interactive-scenarios-banner/interactive-scenarios-banner.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/banners/trial-banner/trial-banner.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/content/inter-scenarios-search.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/admin-user-link/admin-user-link.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/billpad/billpad-modal.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/billpad/billpad-toggle.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/bookmarks/bookmarks-modal.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/bookmarks/bookmarks-toggle.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/bulletins/bulletins-daily.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/bulletins/bulletins-read.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/bulletins/bulletins.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/messages/messages.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/messages/read-messages.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/pager/pager.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/toolbox/toolbox.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/training/training-widget.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/core/training/training.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dcp/article-list.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dcp/article-search-results.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dcp/article-search.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dcp/article-widget.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dcp/breaking-news.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dcp/latest-headlines.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dcp/latest-issue-widget.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dcp/latest-issue.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dcp/newsletter-article.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dcp/newsletter.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dictionary/dictionary-appendecies.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dictionary/dictionary-detail.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dictionary/dictionary-results.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/dictionary/dictionary-search.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/forum/forum.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/icd10/icd10-alpha-index.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/icd10/icd10-browse-tree.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/icd10/icd10-browse.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/icd10/icd10-search-slide.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/icd10/icd10-search.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/icd10/mapping-icd10-code.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/icd9/icd9-mapping-modal.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/icd9/icd9-mapping-widget.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/library/library.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/login/eula-modal.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/login/login.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/manage-users/add-user/add-user.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/manage-users/edit-user/edit-user.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/manage-users/manage-users.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/manage-users/membership-grid.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/manage-users/notification.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/manage-users/remove-users/remove-users.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/pdgm-calculator/pdgm-calculator.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/profile/profile.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/recentCodes/recent-codes-widget.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/recentCodes/recent-codes.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/search-box/search-box.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/siteContent/tips-modal.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/usage-reporting-charts/chartsTemplate.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/usage-reporting-charts/individualCharts/individual-chart-templates.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/usage-reporting-charts/usage-reporting-charts.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/userNotes/user-notes-lookback.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/userNotes/user-notes-modal.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/userNotes/user-notes.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/video/video-widget.html","webpack://decisionhealth-codingcenter-webapp/./assets/js/angular/video/video.html","webpack://decisionhealth-codingcenter-webapp/./node_modules/moment/locale|sync|/^/.*$","webpack://decisionhealth-codingcenter-webapp/external var \"jQuery\""],"sourcesContent":["import { HttpClientModule } from \"@angular/common/http\";\nimport { Inject, Injector, NgModule} from '@angular/core';\nimport { createCustomElement } from '@angular/elements';\nimport { BrowserModule } from '@angular/platform-browser';\nimport { FormsModule } from '@angular/forms';\nimport { NgbTypeaheadModule, NgbModalModule } from '@ng-bootstrap/ng-bootstrap';\nimport { CKEditorModule } from '@ckeditor/ckeditor5-angular';\n\nimport { CookieService } from 'ngx-cookie-service';\n\nimport { ContentModule } from './content/content.module';\nimport { BannersModule } from './banners/banners.module';\nimport { LoginModule } from './login/login.module';\nimport { CoreModule } from './core/core.module';\nimport { RecentCodesModule } from './recentCodes/recent-codes.module';\nimport { ForumModule } from './forum/forum.module';\nimport { DcpModule } from './dcp/dcp.module';\nimport { SearchBoxModule } from './search-box/search-box.module';\nimport { Icd10Module } from './icd10/icd10.module';\nimport { VideoModule } from './video/video.module';\nimport { LibraryModule } from './library/library.module';\nimport { UserNotesModule } from './userNotes/userNotes.module';\nimport { SiteContentModule } from './siteContent/siteContent.module';\nimport { PdgmCalculatorModule } from './pdgm-calculator/pdgm-calculator.module';\nimport { ManageUsersModule } from './manage-users/manage-users.module';\nimport { UsageReportingModule } from './usage-reporting-charts/usage-reporting-charts.module';\nimport { DictionaryModule } from \"./dictionary/dictionary.module\";\nimport { ProfileModule } from './profile/profile.module';\nimport { Icd9Module } from \"./icd9/icd9.module\";\n\n\n\nimport { ArticleSearchComponent } from './dcp/article-search.component';\nimport { ArticleSearchResultsComponent } from './dcp/article-search-results.component';\nimport { LatestHeadlinesComponent } from './dcp/latest-headlines.component';\nimport { BreakingNewsComponent } from './dcp/breaking-news.component';\nimport { ArticleWidgetComponent } from './dcp/article-widget.component';\nimport { LatestIssueWidgetComponent } from './dcp/latest-issue-widget.component';\nimport { LatestIssueComponent } from './dcp/latest-issue.component';\nimport { NewsletterArticleComponent } from './dcp/newsletter-article-component';\nimport { AdminUserLinkComponent } from './core/admin-user-link/admin-user-link.component';\nimport { SearchBoxComponent } from './search-box/search-box.component';\nimport { ToolboxComponent } from './core/toolbox/toolbox.component';\nimport { BillpadModalComponent } from './core/billpad/billpad-modal.component';\nimport { UserNotesModalComponent } from './userNotes/user-notes-modal-component';\nimport { BookmarksModalComponent } from './core/bookmarks/bookmarks-modal.component';\nimport { TipsModalComponent } from './siteContent/tips-modal.component';\nimport { TrainingWidgetComponent } from './core/training/training-widget.component';\nimport { TrainingComponent } from './core/training/training.component';\nimport { VideoComponent } from './video/video.component';\nimport { RecentCodesWidgetComponent } from './recentCodes/recent-codes-widget.component';\nimport { BookmarksToggleComponent } from './core/bookmarks/bookmarks-toggle.component';\nimport { BillpadToggleComponent } from './core/billpad/billpad-toggle.component';\nimport { LibraryComponent } from './library/library.component';\nimport { Icd10SearchComponent } from './icd10/icd10-search.component';\nimport { Icd10BrowseComponent } from './icd10/icd10-browse-component';\nimport { ICD9MappingWidgetComponent } from './icd9/icd9-mapping-widget.component';\nimport { UserNotesComponent } from './userNotes/user-notes.component';\nimport { UserNotesLookbackComponent } from './userNotes/user-notes-lookback.component';\nimport { ManageUsersComponent } from './manage-users/manage-users.component';\nimport { ForumComponent } from './forum/forum.component';\nimport { PDGMCalculatorComponent } from './pdgm-calculator/pdgm-calculator.component';\nimport { ProfileComponent } from './profile/profile.component';\n\nimport { UsageReportingChartsComponent } from \"./usage-reporting-charts/usage-reporing-charts.component\";\n\nimport { LoginComponent } from './login/login.component';\nimport { BulletinsDailyComponent } from \"./core/bulletins/bulletins-daily.component\";\nimport { BulletinsComponent } from \"./core/bulletins/bulletins.component\";\nimport { BulletinsReadComponent } from \"./core/bulletins/bulletins-read.component\";\n\nimport { NewsletterComponent } from \"./dcp/newsletter-component\";\nimport { ReadMessagesComponent } from \"./core/messages/read-messages.component\";\n\nimport { ArticleListComponent } from \"./dcp/article-list.component\";\n\nimport { InteractiveScenariosSearchComponent } from \"./content/inter-scenarios-search.component\"\nimport { Icd10SearchSlideComponent } from \"./icd10/icd10-search-slide.component\"\n\nimport { DictionaryDetailComponent } from \"./dictionary/dictionary-detail.component\";\nimport { DictionarySearchComponent } from \"./dictionary/dictionary-search.component\";\nimport { DictionaryAppendicesComponent } from \"./dictionary/dictionary-appendices.component\";\nimport { DictionaryResultsComponent } from \"./dictionary/dictionary-results.component\";\n\nimport { RecentCodesComponent } from \"./recentCodes/recent-codes.component\"\nimport { VideoWidgetComponent } from \"./video/video-widget.component\"\n\nimport { MessagesComponent } from \"./core/messages/messages.component\"\n\n@NgModule({\n imports: [\n BrowserModule,\n CKEditorModule,\n FormsModule,\n HttpClientModule,\n NgbModalModule,\n NgbTypeaheadModule,\n //GoogleChartsModule,\n ContentModule,\n BannersModule,\n LoginModule,\n CoreModule,\n RecentCodesModule,\n ForumModule,\n DcpModule,\n SearchBoxModule,\n Icd10Module,\n VideoModule,\n LibraryModule,\n UserNotesModule,\n SiteContentModule,\n PdgmCalculatorModule,\n ManageUsersModule,\n UsageReportingModule,\n ProfileModule,\n Icd9Module,\n DictionaryModule\n ],\n declarations: [ \n ],\n providers: [\n CookieService\n ],\n entryComponents: [\n \n AdminUserLinkComponent,\n ArticleSearchComponent,\n ArticleWidgetComponent,\n BillpadModalComponent,\n BookmarksModalComponent,\n BookmarksToggleComponent,\n BreakingNewsComponent,\n ForumComponent,\n ICD9MappingWidgetComponent,\n Icd10BrowseComponent,\n Icd10SearchComponent,\n LatestHeadlinesComponent,\n LatestIssueWidgetComponent,\n LibraryComponent,\n LoginComponent,\n ManageUsersComponent,\n NewsletterArticleComponent,\n PDGMCalculatorComponent,\n ProfileComponent,\n RecentCodesWidgetComponent,\n SearchBoxComponent,\n TipsModalComponent,\n ToolboxComponent,\n TrainingComponent,\n TrainingWidgetComponent,\n UsageReportingChartsComponent,\n UserNotesComponent,\n UserNotesLookbackComponent,\n UserNotesModalComponent,\n VideoComponent,\n BulletinsDailyComponent,\n BulletinsReadComponent,\n BulletinsComponent,\n LatestIssueComponent,\n NewsletterComponent,\n ArticleListComponent,\n ArticleSearchResultsComponent,\n InteractiveScenariosSearchComponent,\n Icd10SearchSlideComponent,\n DictionaryDetailComponent,\n DictionarySearchComponent,\n DictionaryAppendicesComponent,\n DictionaryResultsComponent,\n RecentCodesComponent,\n BillpadToggleComponent,\n VideoWidgetComponent,\n MessagesComponent,\n ReadMessagesComponent\n ]\n})\nexport class AppModule {\n constructor(@Inject(Injector) private injector: Injector) { } \n ngDoBootstrap() {\n const loginWidget = createCustomElement(LoginComponent, { injector: this.injector });\n customElements.define('login-widget', loginWidget);\n\n const bookmarksToggleWidget = createCustomElement(BookmarksToggleComponent, { injector: this.injector });\n customElements.define('bookmarks-toggle-widget', bookmarksToggleWidget);\n\n const billpadtogglewidget = createCustomElement(BillpadToggleComponent, { injector: this.injector });\n customElements.define('billpad-toggle-widget', billpadtogglewidget);\n\n const icd9MappingWidget = createCustomElement(ICD9MappingWidgetComponent, { injector: this.injector });\n customElements.define('icd9-mapping-widget', icd9MappingWidget);\n\n const training = createCustomElement(TrainingComponent, { injector: this.injector });\n customElements.define('training-list', training);\n\n const trainingWidget = createCustomElement(TrainingWidgetComponent, { injector: this.injector });\n customElements.define('training-widget', trainingWidget);\n\n const recentCodesWidget = createCustomElement(RecentCodesWidgetComponent, { injector: this.injector });\n customElements.define('recent-codes-widget', recentCodesWidget);\n\n const forumWidget = createCustomElement(ForumComponent, { injector: this.injector });\n customElements.define('forum-widget', forumWidget);\n\n const latestHeadlinesWidget = createCustomElement(LatestHeadlinesComponent, { injector: this.injector });\n customElements.define('latest-headlines', latestHeadlinesWidget);\n\n const adminUserLinkWidget = createCustomElement(AdminUserLinkComponent, { injector: this.injector });\n customElements.define('admin-user-link', adminUserLinkWidget);\n\n const searchBoxWidget = createCustomElement(SearchBoxComponent, { injector: this.injector });\n customElements.define('search-box', searchBoxWidget);\n\n const icd10SearchWidget = createCustomElement(Icd10SearchComponent, { injector: this.injector });\n customElements.define('icd10-search', icd10SearchWidget);\n\n const videoPage = createCustomElement(VideoComponent, { injector: this.injector });\n customElements.define('video-page', videoPage);\n\n const libraryWidget = createCustomElement(LibraryComponent, { injector: this.injector });\n customElements.define('library-widget', libraryWidget);\n\n const userNotesModalWidget = createCustomElement(UserNotesModalComponent, { injector: this.injector });\n customElements.define('user-notes-modal', userNotesModalWidget);\n\n const toolboxWidget = createCustomElement(ToolboxComponent, { injector: this.injector });\n customElements.define('toolbox-widget', toolboxWidget);\n\n const billpadModalWidget = createCustomElement(BillpadModalComponent, { injector: this.injector });\n customElements.define('billpad-modal', billpadModalWidget);\n\n const bookmarksModalWidget = createCustomElement(BookmarksModalComponent, { injector: this.injector });\n customElements.define('bookmarks-modal', bookmarksModalWidget);\n\n const tipsModalWidget = createCustomElement(TipsModalComponent, { injector: this.injector });\n customElements.define('tips-modal', tipsModalWidget);\n\n const pdgmWidget = createCustomElement(PDGMCalculatorComponent, { injector: this.injector });\n customElements.define('pdgm-calculator', pdgmWidget);\n\n const articleSearchWidget = createCustomElement(ArticleSearchComponent, { injector: this.injector });\n customElements.define('article-search', articleSearchWidget);\n\n const newsletterArticleWidget = createCustomElement(NewsletterArticleComponent, { injector: this.injector });\n customElements.define('newsletter-article', newsletterArticleWidget);\n\n const newsletterArticle = createCustomElement(NewsletterComponent, { injector: this.injector });\n customElements.define('newsletter-list', newsletterArticle);\n\n const icd10BrowseWidget = createCustomElement(Icd10BrowseComponent, { injector: this.injector });\n customElements.define('icd10-browse', icd10BrowseWidget);\n\n const userNotesWidget = createCustomElement(UserNotesComponent, { injector: this.injector });\n customElements.define('user-notes-widget', userNotesWidget);\n\n const userNotesLookbackWidget = createCustomElement(UserNotesLookbackComponent, { injector: this.injector });\n customElements.define('user-notes-lookback-widget', userNotesLookbackWidget);\n\n const manageUsersWidget = createCustomElement(ManageUsersComponent, { injector: this.injector });\n customElements.define('manage-users-widget', manageUsersWidget);\n\n const usageReportingChartsWidget = createCustomElement(UsageReportingChartsComponent, { injector: this.injector });\n customElements.define('usage-reporting-charts-widget', usageReportingChartsWidget);\n\n const profileWidget = createCustomElement(ProfileComponent, { injector: this.injector });\n customElements.define('profile-widget', profileWidget);\n\n const latestIssueWidget = createCustomElement(LatestIssueWidgetComponent, { injector: this.injector });\n customElements.define('latest-issue-widget-component', latestIssueWidget);\n\n const articleWidget = createCustomElement(ArticleWidgetComponent, { injector: this.injector });\n customElements.define('article-widget-component', articleWidget);\n\n const bulletinsDaily = createCustomElement(BulletinsDailyComponent, { injector: this.injector });\n customElements.define('bulletins-daily-list', bulletinsDaily);\n\n const bulletins = createCustomElement(BulletinsComponent, { injector: this.injector });\n customElements.define('bulletins-list', bulletins);\n\n const bulletinRead = createCustomElement(BulletinsReadComponent, { injector: this.injector });\n customElements.define('bulletins-details', bulletinRead);\n\n const latestIssue = createCustomElement(LatestIssueComponent, { injector: this.injector });\n customElements.define('latest-issue-component', latestIssue);\n\n const articleList = createCustomElement(ArticleListComponent, { injector: this.injector });\n customElements.define('article-list-component', articleList);\n\n const breakingNews = createCustomElement(BreakingNewsComponent, { injector: this.injector });\n customElements.define('breaking-news-component', breakingNews);\n\n const articleSearchResults = createCustomElement(ArticleSearchResultsComponent, { injector: this.injector });\n customElements.define('article-search-results', articleSearchResults);\n\n const interactiveScenariosSearch = createCustomElement(InteractiveScenariosSearchComponent, { injector: this.injector });\n customElements.define('interactive-scenarios-search', interactiveScenariosSearch);\n\n const icd10SearchSlide = createCustomElement(Icd10SearchSlideComponent, { injector: this.injector });\n customElements.define('icd10-search-slide', icd10SearchSlide);\n\n const dictionaryDetail = createCustomElement(DictionaryDetailComponent, { injector: this.injector });\n customElements.define('dictionary-detail', dictionaryDetail);\n\n const dictionarySearch = createCustomElement(DictionarySearchComponent, { injector: this.injector });\n customElements.define('dictionary-search', dictionarySearch);\n\n const dictionaryAppendices = createCustomElement(DictionaryAppendicesComponent, { injector: this.injector });\n customElements.define('dictionary-appendecies', dictionaryAppendices);\n\n const dictionaryResults = createCustomElement(DictionaryResultsComponent, { injector: this.injector });\n customElements.define('dictionary-results', dictionaryResults);\n\n const recentCodes = createCustomElement(RecentCodesComponent, { injector: this.injector });\n customElements.define('recent-codes', recentCodes);\n\n const videoWidget = createCustomElement(VideoWidgetComponent, { injector: this.injector });\n customElements.define('video-widget', videoWidget);\n\n const messages = createCustomElement(MessagesComponent, { injector: this.injector });\n customElements.define('messages-widget', messages);\n\n const readMessagesComponent = createCustomElement(ReadMessagesComponent, { injector: this.injector });\n customElements.define('read-messages', readMessagesComponent);\n\n \n \n }\n}","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TrialBannerModule } from \"./trial-banner/trial-banner.module\";\nimport { InteractiveScenariosBannerModule } from \"./interactive-scenarios-banner/interactive-scenarios-banner.module\"\n\n@NgModule({\n imports: [\n CommonModule, TrialBannerModule, InteractiveScenariosBannerModule\n ],\n providers: [\n\n ],\n declarations: [\n\n ]\n})\nexport class BannersModule { }\n\n//// Top-level module\n//export default angular.module(\"codingCenterApp.banners\", [\n// TrialBannerModule,\n// InteractiveScenarioBannerModule\n// ])\n// .name;","import { Component, Inject, OnInit } from '@angular/core';\nimport { CookieService } from 'ngx-cookie-service';\nimport interactiveScenariosTemplate from './interactive-scenarios-banner.html';\n\n@Component({\n selector: 'interactive-scenarios-banner',\n template: interactiveScenariosTemplate\n})\nexport class InteractiveScenariosBannerComponent {\n showInteractiveScenariosBanner:boolean = true; \n\n constructor(@Inject(CookieService) private cookies: CookieService) {\n }\n\n ngOnInit() {\n var trialBannerCookie = this.cookies.get(\"ExpertOrAboveBanner\");\n if (trialBannerCookie == \"true\") {\n this.showInteractiveScenariosBanner = true;\n } else {\n this.showInteractiveScenariosBanner = false;\n }\n }\n\n bannerClose() {\n const cookieOptions = {\n path: \"/\",\n secure: false\n };\n this.showInteractiveScenariosBanner = false;\n this.cookies.set(\"ExpertOrAboveBanner\", \"false\", cookieOptions);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { InteractiveScenariosBannerComponent } from \"./interactive-scenarios-banner.component\";\n\n@NgModule({\n imports: [\n CommonModule\n ],\n providers: [\n\n ],\n declarations: [\n InteractiveScenariosBannerComponent\n ]\n})\nexport class InteractiveScenariosBannerModule { }","import { Component, Inject, OnInit } from '@angular/core';\nimport { CookieService } from 'ngx-cookie-service';\nimport trialBannerTemplate from './trial-banner.html';\n\n@Component({\n selector: 'trial-banner',\n template: trialBannerTemplate\n})\nexport class TrialBannerComponent {\n showTrialBanner:boolean = true;\n trialExpirationDate: string = \"\";\n trialDaysRemaining: number = 0; \n\n constructor(@Inject(CookieService) private cookies: CookieService) {\n }\n \n ngOnInit() {\n var trialBannerCookie = this.cookies.get(\"TrialBanner\");\n if (trialBannerCookie == \"true\") {\n this.showTrialBanner = true;\n } else {\n this.showTrialBanner = false;\n }\n\n var trialExpirationDate = new Date(this.cookies.get(\"TrialExpirationDate\"));\n var today = new Date();\n var msPerDay = 24 * 60 * 60 * 1000;\n this.trialDaysRemaining = Math.round((trialExpirationDate.getTime() - today.getTime()) / msPerDay);\n }\n\n bannerClose() {\n const cookieOptions = {\n path: \"/\",\n secure: false\n };\n this.showTrialBanner = false;\n this.cookies.set(\"TrialBanner\", \"false\", cookieOptions);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { TrialBannerComponent } from \"./trial-banner.component\";\n\n\n\n@NgModule({\n imports: [\n CommonModule\n ],\n providers: [\n\n ],\n declarations: [\n TrialBannerComponent\n ]\n})\nexport class TrialBannerModule { }","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\n\n//import * as angular from \"angular\";\n//import { downgradeComponent, downgradeInjectable } from '@angular/upgrade/static';\n\nimport { ContentService } from \"./content.service\";\nimport { InteractiveScenariosSearchComponent } from \"./inter-scenarios-search.component\";\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule\n ],\n providers: [\n ContentService\n ],\n declarations: [\n InteractiveScenariosSearchComponent\n ]\n})\nexport class ContentModule { }\n\n//export default angular.module(\"codingCenterApp.content\", [])\n// .factory(\"ContentService\", downgradeInjectable(ContentService))\n// .directive(\"interactiveScenariosSearch\", downgradeComponent({ component: InteractiveScenariosSearchComponent }))\n// .name;\n","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\n\nimport { IContentItem } from './content.models';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ContentService {\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n /** Search for content by type and code */\n loadContent(contentTypeId: number, codeTypeId: number, code: string): Promise {\n return this.http.get(\"/MVC/Content/Search\", {\n params: {\n contentType: contentTypeId.toString(),\n codeType: codeTypeId.toString(),\n code: encodeURIComponent(code)\n }\n }).toPromise();\n }\n\n /** Search for content by type and text */\n searchContent(contentTypeId: number, searchText: string): Promise {\n return this.http.get(\"/MVC/Content/SearchText\", {\n params: {\n contentType: contentTypeId.toString(),\n searchText: searchText\n }\n }).toPromise();\n }\n}\n","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { ContentService } from \"./content.service\";\nimport { IContentItem } from './content.models';\n\nimport interactiveScenariosSearchTemplate from './inter-scenarios-search.html';\n\n@Component({\n selector: 'interactive-scenarios-search',\n template: interactiveScenariosSearchTemplate\n})\nexport class InteractiveScenariosSearchComponent {\n\n @Input() contenttypeid: number;\n @Input() codeTypeId: number;\n @Input() code: string;\n @Input() count: number;\n\n noRecords: boolean = false;\n content: IContentItem[] = [];\n pagedContent: IContentItem[] = [];\n pagedCount: number = 0;\n maxCount: number = 3;\n totalCount: number = 0;\n loading: boolean = false;\n searchTerm: string = \"\";\n\n constructor(@Inject(ContentService) private contentService: ContentService) {\n }\n\n ngOnInit() {\n this.pagedCount = this.count;\n this.searchContent();\n\n }\n\n searchContent() {\n\n // Load initial data\n this.noRecords = false;\n this.loading = true;\n this.contentService.searchContent(this.contenttypeid, this.searchTerm).then(data => {\n this.content = data;\n this.totalCount = data.length;\n\n // Hide when no records\n if (data.length < 1) {\n this.noRecords = true;\n }\n\n this.loading = false;\n });\n\n }\n}\n","import { Component, Inject, Input, OnInit, ViewEncapsulation } from '@angular/core';\nimport { AdminUserLinkService } from \"./adminUserLink.service\";\n\nimport adminUserLinkTemplate from './admin-user-link.html';\nimport { BookmarksService } from '../bookmarks/bookmarks.service';\n\n@Component({\n selector: '[admin-user-link]',\n template: adminUserLinkTemplate \n})\nexport class AdminUserLinkComponent {\n\n @Input() customerid: number;\n @Input() globalid: number;\n @Input() isowner: Boolean;\n @Input() isadmin: Boolean;\n @Input() hascph: Boolean;\n @Input() isexpert: Boolean;\n @Input() hasicd: Boolean;\n @Input() firstname: string;\n @Input() isauthenticated: Boolean;\n @Input() tabindexvalue: number;\n\n showLink: Boolean;\n @Input() showAdmin: Boolean;\n\n \n constructor(@Inject(AdminUserLinkService) private adminUserLinkService: AdminUserLinkService) {\n\n }\n\n ngOnInit() {\n if (this.customerid > 0) {\n this.adminUserLinkService.canManageUsers(this.customerid).then(response => {\n this.showLink = response > 0;\n }).catch(response => {\n this.showLink = false;\n });\n }\n else {\n this.showLink = false;\n }\n }\n}","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\n\nexport interface IAdminUserLinkService {\n canManageUsers(customerId: number): Promise;\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AdminUserLinkService implements IAdminUserLinkService {\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n canManageUsers(customerId: number): Promise {\n\n return this.http.get(\"/MVC/Account/CanManageUsers\", {\n params: {\n customerId: customerId.toString()\n }\n }).toPromise();\n }\n}","import { Component, ElementRef, Inject, Input, ViewChild } from '@angular/core';\nimport { CookieService } from 'ngx-cookie-service';\nimport { BillpadApiService } from './billpadApi.service';\n\nimport billpadModalTemplate from './billpad-modal.html';\nimport { IBillpadCode } from './billpadApi.models';\n\nimport { CdkDragDrop, moveItemInArray, transferArrayItem } from '@angular/cdk/drag-drop';\n\n@Component({\n selector: 'billpad-modal',\n template: billpadModalTemplate\n})\nexport class BillpadModalComponent {\n\n @Input() haspdgmexclusion: Boolean=false;\n\n @ViewChild('bpText') bpText: ElementRef;\n\n \n \n billpadCodesForCopy: string= \"\";\n pdgmResults: any = {\n PrimaryDx: false,\n LowComorbidityAdjustment: false,\n HighComorbidityInteractionAdjustment: false\n };\n pdgmLoaded: Boolean = false;\n bpSelected: Boolean = false;\n\n constructor( @Inject(BillpadApiService) private billpadService: BillpadApiService,\n @Inject(CookieService) private cookieService: CookieService) {\n }\n get billpadCodes(): IBillpadCode[] {\n return this.billpadService.billpadCodes;\n }\n\n ngOnInit() {\n\n }\n\n selectBillpad() {\n\n var codes = this.billpadCodes;\n if (codes !== null) {\n for (let i = 0; i < codes.length; i++) {\n this.billpadCodesForCopy = this.billpadCodesForCopy + codes[i].Code + \"\\n\";\n }\n }\n this.bpSelected = true;\n this.bpText.nativeElement.select();\n }\n\n hideSelect() {\n this.bpSelected = false;\n }\n\n printBillpad() {\n this.saveBillPadToCookie();\n window.open(\"/MVC/api/Billpad/Print\", \"_blank\");\n }\n\n exportBillpad() {\n this.saveBillPadToCookie();\n window.open(\"/MVC/api/Billpad/CSV\", \"_blank\");\n }\n\n saveBillPadToCookie() {\n const codeObjJson = JSON.stringify(this.billpadCodes);\n this.cookieService.set(\"billpadCodes\", codeObjJson, { path: '/' });\n }\n\n removeBillpadCode(code) {\n this.removeCode(code);\n\n // Clear PDGM results since they no longer apply\n this.pdgmLoaded = false;\n\n // Refresh billpad icon in case we're on a details page\n //this.refreshBillpadIcon(code);\n }\n\n removeCode(code) {\n this.billpadService.removeCodeTracker(code,false);\n }\n\n clearBillpadCodes() {\n \n this.billpadService.clearBillpadCodes();\n\n // Clear PDGM results since they no longer apply\n this.pdgmLoaded = false;\n }\n \n\n discardBillpadChanges() {\n this.billpadService.discardBillpadChanges();\n\n // Clear PDGM results since they no longer apply\n this.pdgmLoaded = false;\n }\n\n performPDGMValidation(){\n this.billpadService.performPDGMValidationAsync(this.billpadCodes).then(\n (response) => {\n const data = response;\n this.pdgmResults = { ...data };\n this.pdgmLoaded = true;\n },\n (response: angular.IHttpResponse) => {\n console.error(\"error performing PDGM validation: \" + response.statusText);\n }\n );\n }\n saveBillpadCodes() {\n this.billpadService.saveCodesToBillpadAsync();\n }\n drop(event: CdkDragDrop) {\n moveItemInArray(this.billpadCodes, event.previousIndex, event.currentIndex);\n // Clear PDGM results since they no longer apply\n this.pdgmLoaded = false;\n }\n} ","import { Component, ElementRef, Inject, Input, ViewChild } from '@angular/core';\nimport { BillpadApiService } from './billpadApi.service';\n\nimport billpadToggleTemplate from './billpad-toggle.html';\n\n@Component({\n selector: 'billpad-toggle',\n template: billpadToggleTemplate\n})\nexport class BillpadToggleComponent {\n \n\n constructor(@Inject(BillpadApiService) private billpadService: BillpadApiService) {\n\n }\n @Input() code: string;\n @Input() description: string;\n //@Input() coloredicon: boolean;\n private _coloredicon = false;\n\n @Input('coloredicon')\n get coloredicon(): boolean {\n return this._coloredicon;\n }\n set coloredicon(value: boolean) {\n this._coloredicon = value !== undefined;\n }\n ngOnInit() {\n }\n ngAfterViewInit() {\n }\n isCodeInBillpad() {\n return this.billpadService.isCodeInBillpad(this.code);\n }\n addCodeTracker() {\n this.billpadService.addCodeTracker(this.code,this.description);\n //c.InBillpad = true;\n\n }\n\n removeCodeTracker() {\n this.billpadService.removeCodeTracker(this.code, true);\n //c.InBillpad = false;\n }\n}","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\n\nimport { IBillpadCode } from \"./billpadApi.models\";\n\n\n@Injectable({\n providedIn: 'root'\n})\nexport class BillpadApiService {\n\n private _billpadCodes: IBillpadCode[];\n private loadingbills: Boolean= false;\n get billpadCodes(): IBillpadCode[] {\n \n if (!this._billpadCodes && !this.loadingbills) {\n this.loadingbills = true;\n this.getBillpadCodes().then(response => { this._billpadCodes = response; this.loadingbills = false;});\n }\n else {\n return this._billpadCodes;\n }\n \n }\n constructor(@Inject(HttpClient) private http: HttpClient) {\n\n }\n\n private getBillpadCodes(): Promise {\n return this.http.get(\"/mvc/api/Billpad/GetBillpadCodes\").toPromise();\n }\n get numCodes(): number {\n if (this.billpadCodes != null) {\n return this.billpadCodes.length;\n } else {\n return 0;\n }\n };\n\n saveCodeToBillpadAsync(code: IBillpadCode): Promise {\n return this.http.post(\"/mvc/api/Billpad/SaveCodeToBillPad\", code).toPromise();\n }\n\n saveCodesToBillpadAsync(): Promise {\n \n return this.http.post(\"/mvc/api/Billpad/SaveBillPadCodes\", this._billpadCodes).toPromise();\n }\n\n performPDGMValidationAsync(codes: IBillpadCode[]): Promise {\n return this.http.post(\"/mvc/api/Billpad/PDGMValidation\", codes).toPromise();\n }\n\n isCodeInBillpad(recentCode: string) {\n if (this.billpadCodes) {\n var code = this.billpadCodes.find(x => x.Code===recentCode);\n if (code) {\n return true;\n }\n }\n return false;\n }\n removeCodeTracker(code, save) {\n if (this._billpadCodes != null) {\n const index = this._billpadCodes.findIndex(item => item.Code === code);\n this._billpadCodes.splice(index, 1);\n }\n if (save) {\n this.saveCodesToBillpadAsync();\n }\n }\n addCodeTracker(code, description) {\n const codeObj: IBillpadCode = {\n Code: code,\n Description: description\n };\n this.saveCodeToBillpadAsync(codeObj).then(response => {\n this._billpadCodes.push(codeObj);\n });\n\n }\n\n clearBillpadCodes() {\n this._billpadCodes = [];\n this.saveCodesToBillpadAsync();\n }\n discardBillpadChanges() {\n this.getBillpadCodes().then(response => { this._billpadCodes = response; });\n }\n \n}\n","import { Component, Inject, Input } from '@angular/core';\n\nimport { BookmarksService } from './bookmarks.service';\nimport { IBookmarkItem } from './bookmarks.models';\n\nimport bookmarksModalTemplate from './bookmarks-modal.html';\n\n@Component({\n selector: 'bookmarks-modal',\n template: bookmarksModalTemplate\n})\nexport class BookmarksModalComponent {\n\n constructor(@Inject(BookmarksService) private bookmarksService: BookmarksService) {\n\n }\n\n @Input() tabindexvalue: string;\n\n\n ngOnInit() {\n this.getUserBookmarks();\n }\n\n getUserBookmarks() {\n this.bookmarksService.getUserBookmarks().then(response => {\n let data = response;\n this.bookmarksService.articlesBookmarks = data.ArticlesBookmarks;\n this.bookmarksService.icd10CodeBookmarks = data.ICD10CodeBookmarks;\n this.bookmarksService.oasisCodeBookmarks = data.OASISBookmarks;\n })\n }\n\n toggleBookmark(contentType: string, contentId: number, isBookmarked: Boolean) {\n this.bookmarksService.toggleBookmark(contentType, contentId, isBookmarked).then(() => {\n this.getUserBookmarks();\n })\n }\n}","import { Component, Inject, Input } from '@angular/core';\n\nimport { BookmarksService } from './bookmarks.service';\nimport { IBookmarkItem } from './bookmarks.models';\n\nimport bookmarksToggleTemplate from './bookmarks-toggle.html';\n\n@Component({\n selector: 'bookmarks-toggle',\n template: bookmarksToggleTemplate\n})\nexport class BookmarksToggleComponent {\n\n constructor(@Inject(BookmarksService) private bookmarksService: BookmarksService) {\n\n }\n\n @Input() tabindexvalue: string;\n @Input() contenttype: string;\n @Input() contentid: number;\n @Input() iconclass: string = \"icon-bookmark\"\n @Input() icondisabledclass: string = \"icon-bookmark-disabled\"\n ngOnInit() {\n this.getUserBookmarks();\n }\n\n getUserBookmarks() {\n this.bookmarksService.getUserBookmarks().then(response => {\n let data = response;\n this.bookmarksService.articlesBookmarks = data.ArticlesBookmarks;\n this.bookmarksService.icd10CodeBookmarks = data.ICD10CodeBookmarks;\n this.bookmarksService.oasisCodeBookmarks = data.OASISBookmarks;\n })\n }\n\n isBookmarked() {\n switch (this.contenttype) {\n case \"Article\":\n for (var i = 0; i < this.bookmarksService.articlesBookmarks.length; i++) {\n if (this.bookmarksService.articlesBookmarks[i].GenericContentId == this.contentid) {\n return true;\n }\n }\n break;\n case \"ICD10\":\n for (var i = 0; i < this.bookmarksService.icd10CodeBookmarks.length; i++) {\n if (this.bookmarksService.icd10CodeBookmarks[i].GenericContentId == this.contentid) {\n return true;\n }\n }\n break;\n case \"OASIS\":\n for (var i = 0; i < this.bookmarksService.oasisCodeBookmarks.length; i++) {\n if (this.bookmarksService.oasisCodeBookmarks[i].GenericContentId == this.contentid) {\n return true;\n }\n }\n break;\n }\n return false;\n }\n\n toggleBookmark(isBookmarked: Boolean) {\n this.bookmarksService.toggleBookmark(this.contenttype, this.contentid, isBookmarked).then(() => {\n this.getUserBookmarks();\n })\n }\n}","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\nimport { IBookmarkItem, IBookmarks } from \"./bookmarks.models\";\n\n\n@Injectable({\n providedIn: 'root'\n})\nexport class BookmarksService {\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n url: string = \"/mvc/api/Bookmarks/\";\n\n articlesBookmarks: IBookmarkItem[]=[];\n icd9CodeBookmarks: IBookmarkItem[]=[];\n icd10CodeBookmarks: IBookmarkItem[]=[];\n oasisCodeBookmarks: IBookmarkItem[]=[];\n userBookmarks: IBookmarks = {\n ArticlesBookmarks: this.articlesBookmarks,\n ICD9CodeBookmarks: this.icd9CodeBookmarks,\n ICD10CodeBookmarks: this.icd10CodeBookmarks,\n OASISBookmarks: this.oasisCodeBookmarks\n }\n\n getUserBookmarks() {\n return this.http.get(this.url + \"/GetUserBookmarks\").toPromise().then(response => {\n this.userBookmarks.ArticlesBookmarks = response.ArticlesBookmarks;\n this.userBookmarks.ICD10CodeBookmarks = response.ICD10CodeBookmarks;\n this.userBookmarks.OASISBookmarks = response.OASISBookmarks;\n\n return this.userBookmarks;\n });\n }\n\n toggleBookmark(contentType, contentId, isBookmarked) {\n const parameters = { params: { contentType: contentType, contentId: contentId, enabled: isBookmarked } };\n return this.http.get(this.url + \"/ToggleMyFavorites\", parameters).toPromise();\n }\n\n isArticleBookmarked(articleId) {\n if (this.userBookmarks.ArticlesBookmarks) {\n return this.checkBookmarks(articleId);\n }\n else {\n return this.getUserBookmarks().then(() => {\n return this.checkBookmarks(articleId);\n });\n }\n };\n\n checkBookmarks(articleId) {\n let returnValue = false;\n this.userBookmarks.ArticlesBookmarks.forEach((value) => {\n if (value.GenericContentId === articleId) {\n returnValue = true;\n }\n });\n return returnValue;\n }\n\n isItemBookmarked(contentType, contentId) {\n let returnValue = false;\n switch (contentType) {\n \n case \"ICD10\":\n this.icd10CodeBookmarks.forEach((value) => {\n if (value.GenericContentId === contentId) {\n returnValue = true;\n }\n });\n break;\n case \"OASIS\":\n this.oasisCodeBookmarks.forEach((value) => {\n if (value.GenericContentId === contentId) {\n returnValue = true;\n }\n });\n break;\n }\n return returnValue;\n };\n}","import { Component, Inject, Input, OnInit } from '@angular/core';\n\n\nimport { BulletinsService } from './bulletins.service';\nimport { IBulletin } from './bulletins.models';\n\nimport bulletinsDailyTemplate from './bulletins-daily.html';\n\n\n\n@Component({\n selector: 'bulletins-daily',\n template: bulletinsDailyTemplate\n})\nexport class BulletinsDailyComponent {\n\n @Input() tabindexvalue: string;\n\n bulletins: IBulletin[];\n\n pageSize: number = 3;\n pageIndex: number = 1;\n activeOnly: boolean = true;\n\n constructor(@Inject(BulletinsService) private bulletinsService: BulletinsService) {\n }\n\n ngOnInit() {\n\n this.bulletinsService.getBulletins(this.activeOnly, this.pageSize, this.pageIndex).then(response => {\n const data = response;\n this.bulletins = data.BulletinList;\n });\n }\n\n // Formats JSON dates correctly\n dateFormatter(dateVal) {\n const month: string[] = [];\n month[0] = \"January\";\n month[1] = \"February\";\n month[2] = \"March\";\n month[3] = \"April\";\n month[4] = \"May\";\n month[5] = \"June\";\n month[6] = \"July\";\n month[7] = \"August\";\n month[8] = \"September\";\n month[9] = \"October\";\n month[10] = \"November\";\n month[11] = \"December\";\n\n const d = new Date(parseInt(dateVal.replace(/\\/Date\\((.*?)\\)\\//gi, \"$1\"), 10));\n const returnDate = month[d.getMonth()] + \" \" + d.getDate() + \", \" + d.getFullYear();\n return returnDate;\n }\n\n // Takes first 100 chars of html\n bodyBlurb(description) {\n const blurb = description !== null ? description.substring(0, 80) + \"...\" : \"\";\n return blurb;\n }\n\n}\n\n","import { Component, Inject, Input, OnInit, ViewEncapsulation } from '@angular/core';\nimport * as ClassicEditor from '@ckeditor/ckeditor5-build-classic';\n\nimport { BulletinsService } from './bulletins.service';\nimport { IBulletin } from './bulletins.models';\n\nimport bulletinsReadTemplate from './bulletins-read.html';\n\n\n@Component({\n selector: 'bulletins-read',\n template: bulletinsReadTemplate\n})\nexport class BulletinsReadComponent {\n\n @Input() isadmin: Boolean;\n @Input() bulletinid: number;\n @Input() tabindexvalue: string;\n\n public bulletinEditor = ClassicEditor;\n\n bulletins: IBulletin[];\n bulletinsOriginal: IBulletin[];\n bulletinId: number;\n\n bulletinSubject: string;\n bulletinBody: string = \"\";\n bulletinIsActive: boolean;\n bulletinPubDate: string;\n\n currentPageMinCount: number;\n currentPageMaxCount: number;\n paging: number[];\n\n defaultPageSize: number = 10;\n pageSize: number = this.defaultPageSize;\n pageIndex: number = 1;\n sortBy: string;\n pageMax: number;\n pageMin: number;\n startCount: number = 1;\n endCount: number;\n totalRecords: number;\n activeOnly: boolean;\n createEdit: string;\n\n constructor(@Inject(BulletinsService) private bulletinsService: BulletinsService) {\n }\n\n ngOnInit() {\n this.getBulletin(this.bulletinid);\n }\n\n\n getBulletin(bulletinId) {\n this.bulletinId = bulletinId;\n this.createEdit = \"Edit\";\n this.bulletinsService.getBulletin(bulletinId).then(response => {\n const data = response;\n this.bulletinSubject = data.Subject;\n this.bulletinBody = data.Body;\n this.bulletinIsActive = data.IsActive;\n this.bulletinPubDate = this.dateFormatter(data.PubDate);\n });\n \n }\n\n\n // Saves the bulletin\n saveBulletin() {\n this.bulletinsService.saveBulletin(this.bulletinId, this.bulletinSubject, this.bulletinBody, this.bulletinIsActive);\n }\n\n // Load the Bulletin editor with info from the selected Bulletin\n editBulletin(bulletinId) {\n this.bulletinId = bulletinId;\n this.createEdit = \"Edit\";\n\n this.bulletinsService.getBulletin(bulletinId).then(response => {\n const data = response;\n this.bulletinSubject = data.Subject;\n this.bulletinBody = data.Body;\n this.bulletinIsActive = data.IsActive;\n });\n }\n\n //Opens and loads compose window\n compose() {\n this.createEdit = \"Create\";\n this.bulletinId = -1;\n this.bulletinSubject = \"\";\n this.bulletinBody = \"\";\n this.bulletinIsActive = true;\n \n }\n\n // Formats JSON dates correctly\n dateFormatter(dateVal) {\n const month: string[] = [];\n month[0] = \"January\";\n month[1] = \"February\";\n month[2] = \"March\";\n month[3] = \"April\";\n month[4] = \"May\";\n month[5] = \"June\";\n month[6] = \"July\";\n month[7] = \"August\";\n month[8] = \"September\";\n month[9] = \"October\";\n month[10] = \"November\";\n month[11] = \"December\";\n\n const d = new Date(parseInt(dateVal.replace(/\\/Date\\((.*?)\\)\\//gi, \"$1\"), 10));\n const returnDate = month[d.getMonth()] + \" \" + d.getDate() + \", \" + d.getFullYear();\n return returnDate;\n }\n\n // Takes first 100 chars of html\n bodyBlurb(description) {\n const blurb = description !== null ? description.substring(0, 80) + \"...\" : \"\";\n return blurb;\n }\n\n\n \n }\n\n","import { Component, Inject, Input, OnInit, ViewEncapsulation } from '@angular/core';\nimport * as ClassicEditor from '@ckeditor/ckeditor5-build-classic';\n\nimport { BulletinsService } from './bulletins.service';\nimport { IBulletin } from './bulletins.models';\n\nimport bulletinsTemplate from './bulletins.html';\n\n\n\n@Component({\n selector: 'bulletins',\n template: bulletinsTemplate\n})\nexport class BulletinsComponent {\n\n @Input() isadmin: Boolean;\n @Input() tabindexvalue: string;\n\n public bulletinEditor = ClassicEditor;\n\n bulletins: IBulletin[];\n bulletinsOriginal: IBulletin[];\n bulletinId: number;\n\n bulletinSubject: string;\n bulletinBody: string = \"\";\n bulletinIsActive: boolean;\n bulletinPubDate: string;\n\n currentPageMinCount: number;\n currentPageMaxCount: number;\n paging: number[];\n\n defaultPageSize: number = 10;\n pageSize: number = this.defaultPageSize;\n pageIndex: number = 1;\n sortBy: string;\n pageMax: number;\n pageMin: number;\n startCount: number = 1;\n endCount: number;\n totalRecords: number;\n activeOnly: boolean;\n createEdit: string;\n\n constructor(@Inject(BulletinsService) private bulletinsService: BulletinsService) {\n }\n\n ngOnInit() {\n \n this.loadBulletins(this.pageSize, this.startCount);\n }\n\n // Load the this.bulletins\n loadBulletins(pgSize, pgIndex, activeOnly?: boolean) {\n\n // Update scope this.activeOnly value with param\n if (activeOnly !== undefined && activeOnly !== null) {\n this.activeOnly = activeOnly;\n }\n\n //if page size is null, return all results\n if (pgSize === undefined || pgSize === null) {\n this.pageSize = this.totalRecords;\n }\n else {\n this.pageSize = pgSize;\n }\n\n //set the page index\n if (pgIndex < this.pageMin || this.pageSize === this.totalRecords) {\n this.pageIndex = this.pageMin;\n }\n else if (this.pageMax) {\n this.pageIndex = (pgIndex > this.pageMax) ? this.pageMax : pgIndex;\n }\n else {\n this.pageIndex = pgIndex;\n }\n\n this.bulletinsService.getBulletins(this.activeOnly, this.pageSize, this.pageIndex).then(response => {\n const data = response;\n this.bulletins = data.BulletinList;\n this.bulletinsOriginal = data.BulletinList;\n this.totalRecords = data.TotalCount;\n\n //get the current record number view\n if (this.pageSize === undefined || this.pageSize === null) {\n this.currentPageMinCount = this.pageMin;\n this.currentPageMaxCount = this.pageMin;\n }\n else {\n this.currentPageMinCount = this.pageIndex * this.pageSize - (this.pageSize - 1);\n this.currentPageMaxCount = this.pageIndex * this.pageSize;\n if (this.currentPageMaxCount > this.totalRecords) {\n this.currentPageMaxCount = this.totalRecords;\n }\n }\n\n // If this is the daily bulletin module, we should hide it if there are no applicable bulletins\n if (this.bulletins.length < 1) {\n const jqBulletin = $(\".bulletin\");\n if (jqBulletin.length > 0) {\n jqBulletin.hide();\n }\n }\n\n //setup paging links\n const mod = this.pageIndex % 4;\n switch (mod) {\n case 1:\n this.paging = [this.pageIndex, (this.pageIndex + 1), (this.pageIndex + 2), (this.pageIndex + 3)];\n break;\n case 2:\n this.paging = [(this.pageIndex - 1), this.pageIndex, (this.pageIndex + 1), (this.pageIndex + 2)];\n break;\n case 3:\n this.paging = [(this.pageIndex - 2), (this.pageIndex - 1), this.pageIndex, (this.pageIndex + 1)];\n break;\n case 0:\n this.paging = [(this.pageIndex - 3), (this.pageIndex - 2), (this.pageIndex - 1), (this.pageIndex)];\n break;\n }\n if (this.pageSize === undefined || this.pageSize === null) {\n this.pageMax = 1;\n }\n else {\n this.pageMax = Math.floor(this.totalRecords / this.pageSize);\n const mod2 = this.totalRecords % this.pageSize;\n if (mod2 > 0) {\n this.pageMax++;\n }\n }\n for (let i = 3; i > 0; i--) {\n if (this.paging[i] > this.pageMax) {\n this.paging = this.paging.slice(0, i);\n }\n }\n }); \n }\n\n getBulletin(bulletinId) {\n this.bulletinId = bulletinId;\n this.createEdit = \"Edit\";\n this.bulletinsService.getBulletin(bulletinId).then(response => {\n const data = response;\n this.bulletinSubject = data.Subject;\n this.bulletinBody = data.Body;\n this.bulletinIsActive = data.IsActive;\n this.bulletinPubDate = this.dateFormatter(data.PubDate);\n });\n }\n\n // Saves the bulletin\n saveBulletin() {\n console.log('sub', this.bulletinSubject);\n console.log('body', this.bulletinBody);\n console.log('id', this.bulletinId);\n this.bulletinsService.saveBulletin(this.bulletinId, this.bulletinSubject, this.bulletinBody, this.bulletinIsActive).then(response => {\n this.loadBulletins(this.pageSize, this.pageIndex);\n ($(\"#compose\")).modal(\"hide\");\n\n });\n }\n\n // Load the Bulletin editor with info from the selected Bulletin\n editBulletin(bulletinId) {\n this.bulletinId = bulletinId;\n this.createEdit = \"Edit\";\n\n this.bulletinsService.getBulletin(bulletinId).then(response => {\n const data = response;\n this.bulletinSubject = data.Subject;\n this.bulletinBody = data.Body;\n this.bulletinIsActive = data.IsActive;\n });\n }\n\n //Opens and loads compose window\n compose() {\n this.createEdit = \"Create\";\n this.bulletinId = -1;\n this.bulletinSubject = \"\";\n this.bulletinBody = \"\";\n this.bulletinIsActive = true;\n }\n\n // Formats JSON dates correctly\n dateFormatter(dateVal) {\n const month: string[] = [];\n month[0] = \"January\";\n month[1] = \"February\";\n month[2] = \"March\";\n month[3] = \"April\";\n month[4] = \"May\";\n month[5] = \"June\";\n month[6] = \"July\";\n month[7] = \"August\";\n month[8] = \"September\";\n month[9] = \"October\";\n month[10] = \"November\";\n month[11] = \"December\";\n\n const d = new Date(parseInt(dateVal.replace(/\\/Date\\((.*?)\\)\\//gi, \"$1\"), 10));\n const returnDate = month[d.getMonth()] + \" \" + d.getDate() + \", \" + d.getFullYear();\n return returnDate;\n }\n\n // Takes first 100 chars of html\n bodyBlurb(description) {\n const blurb = description !== null ? description.substring(0, 80) + \"...\" : \"\";\n return blurb;\n }\n\n\n \n }\n\n","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\nimport { IAjaxResultBulletins, IBulletin } from './bulletins.models';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class BulletinsService {\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n getBulletins(activeOnly: Boolean, pageSize: number, pageIndex: number) {\n \n const parameters = {\n params: {\n activeOnly: activeOnly ? String(activeOnly) : \"false\",\n pageSize: pageSize.toString(),\n pageNum: pageIndex.toString()\n }\n };\n\n const urlGet = pageSize === undefined || pageSize === null ? \"/MVC/Bulletins/GetAllBulletins\" : \"/MVC/Bulletins/GetBulletins\";\n return this.http.get(urlGet, parameters).toPromise();\n }\n\n getBulletin(bulletinId: number) {\n const urlGetBulletin = \"/MVC/Bulletins/GetBulletin\";\n console.log('bid', bulletinId);\n const parameters = { params: { bulletinId: bulletinId.toString() } };\n\n return this.http.get(urlGetBulletin, parameters).toPromise();\n }\n\n saveBulletin(bulletinId: number, bulletinSubject: string, bulletinBody: string, isActive: boolean) {\n\n let thisBulletin: IBulletin = {\n UserContentDetailId: (bulletinId !== null ? bulletinId : 0),\n Subject: bulletinSubject,\n Body: bulletinBody,\n IsActive: isActive,\n IsRead: false,\n PubDate: \"\",\n SiteLicenseNum: \"\",\n UserContentTypeId: 0,\n UserId: 0\n };\n\n const parameters = {\n bulletin: thisBulletin \n };\n\n return this.http.post(\"/MVC/Bulletins/SaveBulletin\", parameters).toPromise();\n }\n}","/**\n * All Angular components in this module are included by default\n * because they are used throughout the site by being included in\n * the _Layout.cshtml master template file.\n *\n * ==================================\n * | IMPORTANT CONVENTION TO FOLLOW |\n * ==================================\n * Before adding a component into this module, it must be used in\n * the [_Layout.cshtml] master template or one of its partial views.\n */\nimport { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { CKEditorModule } from '@ckeditor/ckeditor5-angular';\n\n//import billpadCodesController from \"./billpad/billpad.directive\";\nimport { BillpadApiService } from \"./billpad/billpadApi.service\";\n//import bookmarksDirective from \"./bookmarks/bookmarks.directive\";\nimport { BulletinsComponent } from \"./bulletins/bulletins.component\";\nimport { BulletinsReadComponent } from \"./bulletins/bulletins-read.component\";\nimport { BulletinsDailyComponent } from \"./bulletins/bulletins-daily.component\";\nimport { MessagesComponent } from \"./messages/messages.component\";\nimport { ReadMessagesComponent } from \"./messages/read-messages.component\";\nimport { PagerComponent } from \"./pager/pager.component\";\nimport { TrainingComponent } from \"./training/training.component\";\nimport ngEnter from \"./utilities/ng-enter.directive\";\nimport rightClickRedirect from \"./utilities/rightClickRedirect.directive\";\n//import tooltip from \"./utilities/tooltip.directive\";\nimport { AdminUserLinkComponent } from \"./admin-user-link/admin-user-link.component\";\nimport { AdminUserLinkService } from \"./admin-user-link/adminUserLink.service\";\nimport { ContentService } from \"../content/content.service\";\n//import { InteractiveScenariosSearchComponent } from \"../content/inter-scenarios-search.component\";\nimport { ToolboxComponent } from \"./toolbox/toolbox.component\";\nimport { BillpadModalComponent } from \"./billpad/billpad-modal.component\";\nimport { BookmarksModalComponent } from \"./bookmarks/bookmarks-modal.component\";\nimport { TrainingWidgetComponent } from \"./training/training-widget.component\";\nimport { BookmarksToggleComponent } from \"./bookmarks/bookmarks-toggle.component\";\nimport { BillpadToggleComponent } from \"./billpad/billpad-toggle.component\";\nimport { TermExpanded } from \"./utilities/ng-init.directive\";\nimport { SafeHtmlPipe } from \"./utilities/safe-html.pipe\";\nimport { MaterialModule } from '../material.module';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n CKEditorModule,\n MaterialModule,\n ],\n providers: [\n BillpadApiService,\n AdminUserLinkService,\n ContentService,\n ],\n exports: [\n PagerComponent,\n BookmarksToggleComponent,\n TrainingWidgetComponent,\n BookmarksModalComponent,\n BillpadToggleComponent ,\n BillpadModalComponent\n ],\n declarations: [\n BulletinsComponent,\n BulletinsReadComponent,\n BulletinsDailyComponent,\n MessagesComponent,\n ReadMessagesComponent,\n PagerComponent,\n TrainingComponent,\n AdminUserLinkComponent,\n // InteractiveScenariosSearchComponent,\n ToolboxComponent,\n BillpadModalComponent,\n TrainingWidgetComponent,\n BookmarksToggleComponent,\n BillpadToggleComponent ,\n BookmarksModalComponent,\n SafeHtmlPipe\n\n ]\n})\nexport class CoreModule { }\n\n\n\n\n//export default angular.module(\"codingCenterApp.core\", [])\n// .directive(\"pager\", downgradeComponent({ component: PagerComponent }))\n// .directive(\"bulletins\", downgradeComponent({ component: BulletinsComponent }))\n// .directive(\"bulletinsRead\", downgradeComponent({ component: BulletinsReadComponent }))\n// .directive(\"bulletinsDaily\", downgradeComponent({ component: BulletinsDailyComponent }))\n// .directive(\"messages\", downgradeComponent({ component: MessagesComponent }))\n// .directive(\"readMessages\", downgradeComponent({ component: ReadMessagesComponent }))\n// .directive(\"composeMessages\", downgradeComponent({ component: ComposeMessagesComponent }))\n// .directive(\"training\", downgradeComponent({component: TrainingComponent}))\n// .directive(\"adminUserLink\", downgradeComponent({ component: AdminUserLinkComponent }))\n// // .directive(\"billpadcodescontroller\", billpadCodesController)\n// // .directive(\"bookmarkscontroller\", bookmarksDirective)\n// .directive(\"ngEnter\", ngEnter)\n// // .directive(\"tooltip\", tooltip)\n// .directive(\"rightClickRedirect\", rightClickRedirect)\n// .factory(\"BillpadApiService\", downgradeInjectable(BillpadApiService))\n// .factory(\"AdminUserLinkService\", downgradeInjectable(AdminUserLinkService))\n// .factory(\"ContentService\", downgradeInjectable(ContentService))\n// .directive(\"interactiveScenariosSearch\", downgradeComponent({ component: InteractiveScenariosSearchComponent }))\n// .directive(\"toolbox\", downgradeComponent({ component: ToolboxComponent }))\n// .directive(\"billpadModal\", downgradeComponent({ component: BillpadModalComponent }))\n// .directive(\"bookmarksModal\", downgradeComponent({ component: BookmarksModalComponent }))\n// .directive(\"trainingWidget\", downgradeComponent({ component: TrainingWidgetComponent }))\n// .directive(\"bookmarksToggle\", downgradeComponent({ component: BookmarksToggleComponent }))\n// .directive(\"safeHtml\", downgradeComponent({component: SafeHtmlPipe}))\n// // .directive(\"termExpanded\", downgradeComponent({ component: TermExpanded }))\n// .name;\n","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { MessagesService } from './messages.service';\nimport { } from './messages.models';\nimport * as ClassicEditor from '@ckeditor/ckeditor5-build-classic';\nimport messagesTemplate from './messages.html';\n\n@Component({\n selector: 'messages',\n template: messagesTemplate\n})\nexport class MessagesComponent {\n\n @Input() tabindexvalue: number;\n // Item List Arrays\n messages = [];\n messagesOriginal = [];\n\n constDefaultPageSize: number = 25;\n pageSize = this.constDefaultPageSize;\n pageIndex = 1;\n activeOnly = true;\n messageSubject: string;\n messageCategory: string;\n messageBody: string;\n\n public messageEditor = ClassicEditor;\n \n constructor(@Inject(MessagesService) private messagesService: MessagesService) {\n }\n\n //Load all the messages\n ngOnInit() {\n \n this.getMessages();\n }\n getMessages() {\n this.messagesService.getMessages(this.activeOnly, this.pageSize, this.pageIndex).then(response => {\n const data = response;\n console.log('messages', data);\n this.messages = data.MessageList;\n });\n }\n // Formats JSON dates correctly\n dateFormatter(dateVal: string) {\n if (dateVal === undefined) {\n return \"\";\n }\n const d = new Date(parseInt(dateVal.replace(/\\/Date\\((.*?)\\)\\//gi, \"$1\"), 10));\n const returnDate = (d.getMonth() + 1) + \"/\" + d.getDate() + \"/\" + d.getFullYear();\n return returnDate;\n }\n\n // Takes the first 100 characters of a string and returns as html\n bodyBlurb(description) {\n const blurb = description.substring(0, 100);\n return blurb;\n }\n\n // Save a new message\n createMessage() {\n\n console.log('messageBody', this.messageBody);\n\n this.messagesService.saveMessage(this.messageSubject, this.messageBody, this.messageCategory).then(response => {\n this.getMessages();\n })\n }\n\n}","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\n\nimport { IAjaxResultMessages, IMessage } from './messages.models';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class MessagesService {\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n getMessage(messageId: number): Promise {\n const urlGetMessage = \"/MVC/Messages/GetMessage\";\n const parameters = { params: { messageId: messageId.toString() } };\n\n return this.http.get(urlGetMessage, parameters).toPromise();\n }\n\n getMessages(activeOnly: Boolean, pageSize: number, pageIndex: number): Promise {\n\n const urlGetMessageCount = \"/MVC/Messages/GetMessageCount\";\n const urlGetMessages = \"/MVC/Messages/GetMessages\";\n const parameters = {\n params: { activeOnly: String(activeOnly), pageSize: pageSize.toString(), pageNum: pageIndex.toString() }\n };\n\n //this.http.get(urlGetMessageCount, parameters).toPromise().then(\n // (response) => {\n // $scope.TotalRecords = response.data;\n // },\n // innerErrorHandler);\n\n return this.http.get(urlGetMessages, parameters).toPromise();\n }\n\n saveMessage(subject: string, body: string, category: string) {\n const urlSaveMessage = \"/MVC/Messages/SaveMessage\";\n const codeObj = {\n 'subject': subject,\n 'body': body,\n 'category': category,\n 'userIdFrom': \"\"\n };\n\n return this.http.post(urlSaveMessage, codeObj).toPromise();\n }\n}","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { MessagesService } from './messages.service';\n\nimport readMessagesTemplate from './read-messages.html';\n\n@Component({\n selector: 'read-messages',\n template: readMessagesTemplate\n})\nexport class ReadMessagesComponent {\n\n @Input() messageid: number;\n \n subject: string;\n fromUser: string;\n category: string;\n body: string;\n\n constructor(@Inject(MessagesService) private messagesService: MessagesService) {\n }\n\n ngOnInit() {\n this.messagesService.getMessage(this.messageid).then(response => {\n const data = response;\n this.subject = response.Subject;\n this.fromUser = response.FromUser;\n this.category = response.Category;\n this.body = response.Body;\n\n })\n }\n\n}","import { Component, EventEmitter, Inject, Input, OnInit, Output } from '@angular/core';\n\n\nimport pagerTemplate from './pager.html';\n\n@Component({\n selector: 'pager',\n template: pagerTemplate\n})\nexport class PagerComponent {\n\n @Output() onPageChange = new EventEmitter();\n @Input() page: number;\n @Input() pagecount: number;\n\n // public props\n className: string;\n\n // internal props\n private pages: number[] = [];\n\n ngOnInit() {\n if (!this.className) {\n this.className = \"pagination\";\n }\n\n this.pages = [];\n for (let i = 0; i < this.pagecount; i++) {\n this.pages.push(i + 1);\n }\n }\n\n change(page: number) {\n this.onPageChange.emit(page);\n }\n nextPage() {\n if (this.page < this.pagecount) {\n this.change(this.page + 1);\n }\n }\n prevPage() {\n if (this.page > 1) {\n this.change(this.page - 1);\n }\n }\n}\n","import { Component, Inject, Input, OnInit, ViewChild } from '@angular/core';\nimport { BillpadApiService } from '../billpad/billpadApi.service';\n\nimport toolboxTemplate from './toolbox.html';\n\n@Component({\n selector: 'toolbox',\n template: toolboxTemplate\n})\nexport class ToolboxComponent {\n\n constructor(@Inject(BillpadApiService) private billpadService: BillpadApiService) {\n }\n\n @Input() isexpert: Boolean;\n @Input() haspdgmexclusion: Boolean;\n @Input() limittoolbox: Boolean;\n\n ngOnInit() {\n }\n\n get numCodes() : number {\n\n return this.billpadService.numCodes;\n };\n\n}\n","import { Component, Inject, Input } from '@angular/core';\nimport trainingWidgetTemplate from './training-widget.html';\n\n@Component({\n selector: 'training-panel',\n template: trainingWidgetTemplate\n})\nexport class TrainingWidgetComponent {\n\n constructor() {\n\n }\n\n @Input() isdcp: Boolean = false;\n @Input() trainingtype: number;\n @Input() count: number = 99;\n @Input() tabindexvalue: string;\n @Input() title: string;\n\n ngOnInit() {\n }\n}","import { Component, Inject, Input } from '@angular/core';\nimport { TrainingService } from './training.service';\n\nimport trainingTemplate from './training.html';\n\n@Component({\n selector: 'training',\n template: trainingTemplate\n})\nexport class TrainingComponent {\n @Input() isdcp: Boolean=false;\n @Input() trainingtype: number;\n @Input() count: number=99;\n @Input() tabindexvalue: string;\n trainingOpps: any = []=[];\n totalCount: any = 0;\n trainingLoaded: Boolean;\n constructor(@Inject(TrainingService)private trainingService: TrainingService) {\n\n }\n\n // Initialize all training opportunities\n ngOnInit() {\n this.loadTraining();\n }\n\n loadTraining() {\n this.trainingLoaded = false;\n if (this.trainingtype==2) {\n this.trainingService.getWebinarsOpps(this.count ).then(response => {\n const webops = response;\n this.trainingOpps = webops.Events;\n this.totalCount = webops.TotalCount;\n this.trainingLoaded = true;\n },\n response => {\n this.trainingLoaded = false;\n console.error(response);\n });\n }\n else if (this.trainingtype == 1)\n {\n this.trainingService.getTrainingOpps(this.count).then(response => {\n const data = response;\n this.trainingOpps = data.Events;\n this.totalCount = data.TotalCount;\n this.trainingLoaded = true;\n },\n response => {\n this.trainingLoaded = false;\n console.error(response);\n });\n }\n }\n}","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\n\nimport { IAjaxResultTrainingOpportunities } from \"./training.models\";\n\n\n@Injectable({\n providedIn: 'root'\n})\nexport class TrainingService {\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n getTrainingOpps(count: number) {\n const url = \"/MVC/About/GetTrainingOpportunities\";\n const parameters = { params: { count: count.toString() } };\n \n return this.http.get(url, parameters).toPromise();\n }\n\n getWebinarsOpps(count: number) {\n const url = \"/MVC/About/GetODWebinars\";\n const parameters = { params: { count: count.toString() } };\n\n return this.http.get(url, parameters).toPromise();\n }\n\n \n}","import {Inject, Pipe, PipeTransform} from '@angular/core'\nimport { DomSanitizer } from '@angular/platform-browser'\n\n@Pipe({ name: 'safeHtml' })\nexport class SafeHtmlPipe implements PipeTransform {\n constructor(@Inject(DomSanitizer) private sanitized: DomSanitizer) { }\n transform(value) {\n //console.log('sanitized before', value)\n setTimeout(() => {\n let postSani = this.sanitized.bypassSecurityTrustHtml(value);\n //console.log('postSani', postSani);\n return postSani;\n }, 1000);\n \n }\n}\n","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport * as models from \"./article.models\";\nimport { NewsletterService } from \"./newsletter.service\";\nimport { ArticleService } from \"./article.service\";\nimport articleListTemplate from './article-list.html';\n\n@Component({\n selector: 'article-list',\n template: articleListTemplate\n})\nexport class ArticleListComponent {\n\n constructor(@Inject(ArticleService) private articleService: ArticleService) {\n }\n\n @Input() tabindexvalue: number;\n @Input() viewarticleurl: string;\n @Input() viewallurl: string;\n @Input() articletype: string;\n @Input() articlesubtype: string;\n @Input() count: number = 3;\n @Input() showall: boolean = false;\n\n\n defaultPageSize: number = 3;\n articlesLoaded: boolean;\n articles: models.IArticle[];\n totalcount: number;\n ArticleNewIconStartDate: Date;\n Display: any[];\n PageIndex: number;\n\n\n // Displays a count of a specific type of articles\n ngOnInit() {\n \n // Indicates if we should show results or loading wheel\n this.articlesLoaded = false;\n this.articles = [];\n this.totalcount = 0;\n this.ArticleNewIconStartDate = new Date();\n this.ArticleNewIconStartDate.setDate(this.ArticleNewIconStartDate.getDate() - 14);\n if (this.showall) {\n\n this.articleService.getAllArticlesByType(this.articletype, this.articlesubtype).then(response => {\n const data = response;\n this.articles = data.ArticleList;\n this.totalcount = data.TotalCount;\n this.articlesLoaded = true;\n });\n\n }\n else {\n this.articleService.getArticlesByType(this.count, this.articletype, this.articlesubtype).then(response => {\n const data = response;\n this.articles = data.ArticleList.slice(0, 3);\n this.totalcount = data.TotalCount;\n this.articlesLoaded = true;\n });\n }\n \n\n }\n\n\n // Formats JSON dates correctly\n dateFormatter(dateVal: string, format): string {\n const month: string[] = [];\n month[0] = \"January\";\n month[1] = \"February\";\n month[2] = \"March\";\n month[3] = \"April\";\n month[4] = \"May\";\n month[5] = \"June\";\n month[6] = \"July\";\n month[7] = \"August\";\n month[8] = \"September\";\n month[9] = \"October\";\n month[10] = \"November\";\n month[11] = \"December\";\n\n const d = new Date(parseInt(dateVal.replace(/\\/Date\\((.*?)\\)\\//gi, \"$1\"), 10));\n\n if (format === \"full\") {\n return month[d.getMonth()] + \" \" + d.getDate() + \", \" + d.getFullYear();\n } else {\n return (d.getMonth() + 1) + \"/\" + d.getDate() + \"/\" + d.getFullYear();\n }\n }\n}\n","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { ArticleService } from \"./article.service\";\n\nimport { DOCUMENT } from '@angular/common';\nimport * as models from \"./article.models\";\nimport articleSearchResultsTemplate from './article-search-results.html';\n\n@Component({\n selector: 'article-search-results',\n template: articleSearchResultsTemplate\n})\nexport class ArticleSearchResultsComponent {\n @Input() tabindexvalue: number;\n @Input() articlesection: string;\n @Input() searchkeywords: string;\n\n defaultPageSize: number;\n referrer: string;\n pageSize: number;\n articleSearchResults: models.IArticleSearchResult[];\n startDate: Date;\n pageIndex: number;\n currentPageMinCount: number;\n currentPageMaxCount: number;\n pageMax: number;\n pageMin: number;\n paging: number[];\n totalRecords: number;\n sortBy: string;\n resultsLoaded: boolean;\n filterStartDate;\n filterEndDate;\n\n \n\n\n constructor(@Inject(ArticleService) private articleService: ArticleService, @Inject(DOCUMENT) public document: Document) {\n }\n\n ngOnInit() {\n this.referrer = document.referrer;\n\n // declare constants\n this.defaultPageSize = 25;\n this.pageSize = this.defaultPageSize;\n\n this.pageIndex = 1;\n this.pageMin = 1;\n this.totalRecords = -1;\n this.sortBy = \"RANK\";\n\n this.resultsLoaded = false;\n //Date of ICD - 10 implementation\n this.startDate = new Date(2015, 9, 1);\n \n\n this.runSearch(this.pageSize, 1, '', '');\n }\n\n \n\n //performs the search\n runSearch(pgSize: number, pgIndex: number, startDate, endDate, sortBy?: string) {\n if (sortBy) {\n this.sortBy = sortBy;\n }\n this.resultsLoaded = false;\n\n this.pageSize = pgSize; //if page size equals -1, return all results\n this.filterStartDate = startDate;\n this.filterEndDate = endDate;\n\n //set the page index\n if (pgIndex < this.pageMin || this.pageSize === -1) {\n this.pageIndex = this.pageMin;\n } else if (this.pageMax) {\n this.pageIndex = (pgIndex > this.pageMax && this.pageMax > 0) ? this.pageMax : pgIndex;\n } else {\n this.pageIndex = pgIndex;\n }\n this.articleService.searchArticles(this.articlesection, this.searchkeywords, this.pageSize, this.pageIndex, this.sortBy,\n startDate, endDate).then(results => {\n const data = results;\n this.articleSearchResults = data.Results;\n\n //find total number of records\n if (this.articleSearchResults.length > 0) {\n this.totalRecords = data.TotalSearchResultCount;\n } else {\n this.totalRecords = 0;\n }\n\n //get the current record number view\n if (this.pageSize === -1) {\n this.currentPageMinCount = this.pageMin;\n this.currentPageMaxCount = this.totalRecords;\n } else {\n this.currentPageMinCount = this.pageIndex * this.pageSize - (this.pageSize - 1);\n this.currentPageMaxCount = this.pageIndex * this.pageSize;\n if (this.currentPageMaxCount > this.totalRecords) {\n this.currentPageMaxCount = this.totalRecords;\n }\n }\n\n //setup paging links\n const mod = this.pageIndex % 4;\n switch (mod) {\n case 1:\n this.paging = [this.pageIndex, (this.pageIndex + 1), (this.pageIndex + 2), (this.pageIndex + 3)];\n break;\n case 2:\n this.paging = [(this.pageIndex - 1), this.pageIndex, (this.pageIndex + 1), (this.pageIndex + 2)];\n break;\n case 3:\n this.paging = [(this.pageIndex - 2), (this.pageIndex - 1), this.pageIndex, (this.pageIndex + 1)];\n break;\n case 0:\n this.paging = [(this.pageIndex - 3), (this.pageIndex - 2), (this.pageIndex - 1), (this.pageIndex)];\n break;\n }\n if (this.pageSize === -1) {\n this.pageMax = 1;\n } else {\n this.pageMax = Math.floor(this.totalRecords / this.pageSize);\n const mod2 = this.totalRecords % this.pageSize;\n if (mod2 > 0) {\n this.pageMax++;\n }\n }\n for (let i = 3; i > 0; i--) {\n if (this.paging[i] > this.pageMax) {\n this.paging = this.paging.slice(0, i);\n }\n }\n this.resultsLoaded = true;\n });\n\n }\n\n // Formats JSON dates correctly\n dateFormatter(dateVal: string): string {\n const d = new Date(parseInt(dateVal.replace(/\\/Date\\((.*?)\\)\\//gi, \"$1\"), 10));\n const returnDate = (d.getMonth() + 1) + \"/\" + d.getDate() + \"/\" + d.getFullYear();\n return returnDate;\n };\n dateApplied(picker) {\n this.runSearch(this.pageSize, 1, picker.startDate.format('MM/DD/YYYY'), picker.endDate.format('MM/DD/YYYY'));\n }\n};","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { CookieService } from 'ngx-cookie-service';\nimport * as models from \"./article.models\";\nimport { ArticleService } from \"./article.service\";\n\nimport articleSearchTemplate from './article-search.html';\n\n@Component({\n selector: 'article-search',\n template: articleSearchTemplate\n})\nexport class ArticleSearchComponent {\n constructor(@Inject(ArticleService) private articleService: ArticleService,\n @Inject(CookieService) private cookies: CookieService,\n @Inject(DOCUMENT) private document: Document) {\n }\n\n articleSection: string;\n keywords: string;\n recentSearches: models.IRecentArticleSearchTerm[];\n\n \n ngOnInit() {\n this.keywords = \"\";\n\n this.articleSection = this.cookies.get(\"ArticleSection\");\n if (!this.articleSection) {\n this.articleSection = \"All Articles\";\n }\n\n const lastSearchTerm = this.cookies.get(\"LastArticleSearchTerm\");\n // if on the search or details page, retain the search term\n if (lastSearchTerm) {\n this.keywords = lastSearchTerm;\n }\n\n this.articleService.getRecentSearches().then(result => {\n this.recentSearches = result;\n });\n }\n\n // On click of one of the Recent Searches, take user to appropriate search page\n recentSearchClick(t: models.IRecentArticleSearchTerm) {\n this.document.location.href = \"/MVC/DCP/Search?st=\" + t.searchType + \"&sk=\" + encodeURIComponent(t.searchTerm) + \"&tab=1\";\n }\n\n // Update the article selection based on the drop down selection\n updateArticleSection(section: string) {\n this.articleSection = section;\n this.cookies.delete(\"ArticleSection\", \"/\");\n this.cookies.set(\"ArticleSection\", section, {'path': \"/\"});\n }\n\n searchArticles() {\n if (this.keywords.trim().length > 0) {\n this.cookies.delete(\"LastArticleSearchTerm\", \"/\");\n this.cookies.set(\"LastArticleSearchTerm\", this.keywords.trim(), {'path': \"/\"});\n\n // Save the recent search to the session\n this.articleService.addRecentArticleSearch(this.articleSection, this.keywords);\n\n this.document.location.href = \"/MVC/DCP/Search?sk=\" + encodeURIComponent(this.keywords)\n + \"&st=\" + this.articleSection\n + \"&tab=1\";\n }\n }\n}\n","import { Component, Inject, Input, OnInit } from '@angular/core';\n\nimport ArticleWidgetTemplate from './article-widget.html';\n\n@Component({\n selector: 'article-widget',\n template: ArticleWidgetTemplate\n})\nexport class ArticleWidgetComponent {\n\n @Input() tabindexvalue: number;\n @Input() viewarticleurl: string;\n @Input() viewallurl: string;\n @Input() articletype: string;\n @Input() articlesubtype: string;\n @Input() paneltitle: string;\n @Input() count: number;\n @Input() type: string;\n\n constructor() {\n \n }\n ngOnInit() {\n \n }\n }","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\nimport { IAjaxResultArticles, IAjaxResultArticleSearch, IRecentArticleSearchTerm, IAjaxResultLatestHeadlines, IArticle } from \"./article.models\";\nimport { BookmarksService } from \"../core/bookmarks/bookmarks.service\";\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ArticleService {\n constructor(@Inject(HttpClient) private http: HttpClient, @Inject(BookmarksService) private bookmarksSvc: BookmarksService) {\n }\n\n getArticlesByType(pCount: number, pType: string, pSubtype: string) : Promise {\n const parameters = { params: { type: pType, subtype: pSubtype, count: pCount.toString() } };\n return this.http.get(\"/MVC/DCP/GetArticlesByType\", parameters).toPromise();\n }\n\n getRecentSearches() : Promise {\n return this.http.get(\"/MVC/DCP/GetRecentSearches\").toPromise();\n }\n\n addRecentArticleSearch(articleSection: string, keywords: string) {\n const parameters = { params: { searchType: articleSection, searchTerm: keywords } };\n\n this.http.get(\"/MVC/DCP/AddRecentArticleSearch\", parameters);\n }\n\n getLatestHeadlines() {\n const url = \"/MVC/DCP/GetArticlesByType\";\n const parameters = {\n params: {\n type: \"1003\",\n subType: \"-1\",\n count: \"3\"\n }\n };\n\n return this.http.get(url, parameters).toPromise();\n }\n\n getAllArticlesByType(type: string, subtype:string) {\n const parameters = { params: { type: type, subtype: subtype} };\n return this.http.get(\"/MVC/DCP/GetAllArticlesByType\", parameters).toPromise().then(response => {\n var articles = response;\n return articles;\n });\n }\n\n getLatestIssue(pType: string, pCount: number) {\n const parameters = { params: { type: pType, count: pCount.toString() } };\n return this.http.get(\"/MVC/DCP/GetLatestIssue\", parameters).toPromise();\n }\n\n getArticleDetail(articleId: number) {\n const parameters = { params: { articleId: articleId.toString() } };\n return this.http.get(\"/MVC/DCP/GetArticleDetails\", parameters).toPromise();\n }\n\n searchArticles(articleSection: string, searchTerm: string, pageSize: number, pageIndex: number, sortBy: string,\n startDate: string, endDate: string) {\n\n const parameters = {\n params: {\n searchType: articleSection,\n searchTerm: searchTerm,\n pageSize: pageSize.toString(),\n pageIndex: pageIndex.toString(),\n sortBy: sortBy,\n startDate: startDate,\n endDate: endDate\n }\n };\n\n return this.http.get(\"/MVC/DCP/SearchArticles\", parameters).toPromise();\n }\n\n getArticles(newsId: number, count: number) {\n const parameters = {\n params: { newsId: newsId.toString(), count: count.toString() }\n };\n\n return this.http.get(\"/MVC/DCP/GetArticlesByNewsletter\", parameters).toPromise();\n }\n}","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport * as models from \"./article.models\";\n\nimport { ArticleService } from \"./article.service\";\nimport { BookmarksService } from '../core/bookmarks/bookmarks.service';\n\nimport breakingNewsTemplate from './breaking-news.html';\n\n@Component({\n selector: 'breaking-news',\n template: breakingNewsTemplate\n})\nexport class BreakingNewsComponent {\n\n constructor(@Inject(ArticleService) private articleService: ArticleService) {\n }\n\n @Input() tabindexvalue: number;\n\n // props\n defaultPageSize: number = 10;\n articleType: string = \"1003\";\n articlesLoaded: boolean;\n articles: models.IArticle[];\n totalcount: number;\n ArticleNewIconStartDate: Date;\n Display: any[];\n PageIndex: number;\n \n\n // Displays a count of a specific type of articles\n ngOnInit() {\n \n // Indicates if we should show results or loading wheel\n this.articlesLoaded = false;\n this.articles = [];\n this.totalcount = 0;\n this.ArticleNewIconStartDate = new Date();\n this.ArticleNewIconStartDate.setDate(this.ArticleNewIconStartDate.getDate() - 14);\n\n this.articleService.getAllArticlesByType(this.articleType, \"-1\").then(response => {\n \n const data = response;\n this.articles = data.ArticleList;\n this.totalcount = data.TotalCount;\n this.articlesLoaded = true;\n \n });\n }\n\n // Displays an HTML blurb of 300 characters\n bodyBlurb(description: string): string {\n return description.substring(0, 300);\n }\n\n // Formats JSON dates correctly\n dateFormatter(dateVal: string, format): string {\n const month: string[] = [];\n month[0] = \"January\";\n month[1] = \"February\";\n month[2] = \"March\";\n month[3] = \"April\";\n month[4] = \"May\";\n month[5] = \"June\";\n month[6] = \"July\";\n month[7] = \"August\";\n month[8] = \"September\";\n month[9] = \"October\";\n month[10] = \"November\";\n month[11] = \"December\";\n\n const d = new Date(parseInt(dateVal.replace(/\\/Date\\((.*?)\\)\\//gi, \"$1\"), 10));\n\n if (format === \"full\") {\n return month[d.getMonth()] + \" \" + d.getDate() + \", \" + d.getFullYear();\n } else {\n return (d.getMonth() + 1) + \"/\" + d.getDate() + \"/\" + d.getFullYear();\n }\n }\n}","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { CoreModule } from '../core/core.module';\nimport { ForumModule } from '../forum/forum.module';\n\nimport { ArticleListComponent } from \"./article-list.component\";\nimport { ArticleSearchComponent } from \"./article-search.component\";\nimport { ArticleSearchResultsComponent } from \"./article-search-results.component\";\nimport { BreakingNewsComponent } from \"./breaking-news.component\";\nimport { LatestHeadlinesComponent } from \"./latest-headlines.component\";\nimport { NewsletterArticleComponent } from \"./newsletter-article-component\";\nimport { NewsletterComponent } from \"./newsletter-component\";\nimport { NewsletterService } from \"./newsletter.service\";\nimport { ArticleWidgetComponent } from './article-widget.component';\nimport { LatestIssueWidgetComponent } from './latest-issue-widget.component';\nimport { LatestIssueComponent } from './latest-issue.component';\nimport { DateRangePickerModule } from '../shared/directives/daterangepicker.module';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n CoreModule,\n ForumModule,\n DateRangePickerModule\n\n ],\n providers: [\n NewsletterService\n ],\n declarations: [\n ArticleListComponent,\n ArticleSearchComponent,\n ArticleSearchResultsComponent,\n BreakingNewsComponent,\n LatestHeadlinesComponent,\n NewsletterArticleComponent,\n NewsletterComponent,\n ArticleWidgetComponent,\n LatestIssueWidgetComponent,\n LatestIssueComponent\n ]\n \n})\nexport class DcpModule { }\n\n\n","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { IArticleHeadline, IAjaxResultLatestHeadlines } from './latest-headlines.model';\nimport { ArticleService } from './article.service';\nimport latestHeadlinesTemplate from './latest-headlines.html';\n\n@Component({\n selector: 'latest-headlines',\n template: latestHeadlinesTemplate\n})\nexport class LatestHeadlinesComponent {\n\n // props\n @Input() tabindexvalue: number;\n @Input() isdcp: Boolean = false;\n \n headlinesLoaded: boolean;\n BNNewIconStartDate: Date;\n headlines: IArticleHeadline[];\n\n constructor(@Inject(ArticleService)private articleService: ArticleService) {\n }\n\n ngOnInit() {\n this.headlinesLoaded = false;\n this.BNNewIconStartDate = new Date();\n this.BNNewIconStartDate.setDate(this.BNNewIconStartDate.getDate() - 14);\n\n \n this.articleService.getLatestHeadlines().then(result => {\n this.headlines = result.ArticleList;\n this.headlinesLoaded = true;\n if (this.headlines) {\n for (let i = 0; i < this.headlines.length; i++) {\n const h = this.headlines[i];\n if (h.PublishDate) {\n // parse PublishDate to an actual Date object so it can be compared\n h.PublishDateObj = new Date(parseInt(h.PublishDate.replace(/\\/Date\\((.*?)\\)\\//gi, \"$1\"), 10));\n }\n }\n }\n });\n }\n\n // Takes first 80 chars of html\n headlineBlurb(description: string) : string {\n return description.substring(0, 80) + \"...\";\n };\n\n // Takes first 80 chars of html\n abstractBlurb(description: string): string {\n return description.substring(0, 125) + \"...\";\n };\n\n // Formats JSON dates correctly\n dateFormatter(dateVal: string): string {\n const month: string[] = [];\n month[0] = \"January\";\n month[1] = \"February\";\n month[2] = \"March\";\n month[3] = \"April\";\n month[4] = \"May\";\n month[5] = \"June\";\n month[6] = \"July\";\n month[7] = \"August\";\n month[8] = \"September\";\n month[9] = \"October\";\n month[10] = \"November\";\n month[11] = \"December\";\n\n const d = new Date(parseInt(dateVal.replace(/\\/Date\\((.*?)\\)\\//gi, \"$1\"), 10));\n\n const returnDate = month[d.getMonth()] + \" \" + d.getDate() + \", \" + d.getFullYear();\n return returnDate;\n };\n};\n","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { IArticle, INewsletterArticle } from './article.models';\nimport { ArticleService } from './article.service';\nimport { NewsletterService } from './newsletter.service';\nimport latestIssueWidgetTemplate from './latest-issue-widget.html';\nimport { IAjaxResultArticles } from './article.models';\n\n@Component({\n selector: 'latest-issue-widget',\n template: latestIssueWidgetTemplate\n})\nexport class LatestIssueWidgetComponent {\n\n // props\n @Input() tabindexvalue: number;\n\n articleType: string = \"1002\";\n articlesLoaded: Boolean;\n articleCount: number = 3;\n\n articles: IArticle[];\n totalCount: number;\n newsletterId: number;\n libraryFileId: number;\n newsletterName: string;\n\n constructor(@Inject(ArticleService) private articleService: ArticleService, \n @Inject(NewsletterService) private newsletterService: NewsletterService) {\n }\n\n ngOnInit() {\n this.articlesLoaded = false;\n\n this.articleService.getLatestIssue(this.articleType, this.articleCount).then(response => {\n const data = response;\n this.articles = data.ArticleList;\n this.totalCount = data.TotalCount;\n this.newsletterId = data.ArticleList[0].ArticleNewsletterId;\n this.getNewsletterDetails(this.newsletterId).then(() => {\n this.articlesLoaded = true;\n });\n\n \n });\n\n }\n\n getNewsletterDetails(newsId: number) {\n return this.newsletterService.getNewsletterDetails(this.newsletterId).then(response => {\n this.libraryFileId = response.ArticleLibraryFileId;\n this.newsletterName = response.NewsletterName;\n });\n \n }\n\n // Takes first 80 chars of html\n headlineBlurb(description: string) : string {\n return description.substring(0, 80) + \"...\";\n };\n\n // Takes first 80 chars of html\n abstractBlurb(description: string): string {\n return description.substring(0, 125) + \"...\";\n };\n\n // Formats JSON dates correctly\n dateFormatter(dateVal: string): string {\n const month: string[] = [];\n month[0] = \"January\";\n month[1] = \"February\";\n month[2] = \"March\";\n month[3] = \"April\";\n month[4] = \"May\";\n month[5] = \"June\";\n month[6] = \"July\";\n month[7] = \"August\";\n month[8] = \"September\";\n month[9] = \"October\";\n month[10] = \"November\";\n month[11] = \"December\";\n\n const d = new Date(parseInt(dateVal.replace(/\\/Date\\((.*?)\\)\\//gi, \"$1\"), 10));\n\n const returnDate = month[d.getMonth()] + \" \" + d.getDate() + \", \" + d.getFullYear();\n return returnDate;\n };\n};\n","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { IArticle, INewsletterArticle } from './article.models';\nimport { ArticleService } from './article.service';\nimport { NewsletterService } from './newsletter.service';\nimport latestIssueTemplate from './latest-issue.html';\nimport { IAjaxResultArticles } from './article.models';\n\n@Component({\n selector: 'latest-issue',\n template: latestIssueTemplate\n})\nexport class LatestIssueComponent {\n\n // props\n @Input() tabindexvalue: number;\n @Input() newsletterid: number;\n\n articlesLoaded: Boolean;\n\n articles: IArticle[];\n totalCount: number;\n newsletterName: string;\n\n constructor(@Inject(ArticleService) private articleService: ArticleService) {\n }\n\n ngOnInit() {\n this.articlesLoaded = false;\n this.getArticles(1);\n\n }\n\n getArticles(attemptNum: number) {\n this.articleService.getArticles(this.newsletterid, 50).then(response => {\n const data = response;\n if (!data.ArticleList || data.ArticleList.length === 0) {\n if (attemptNum < 4) {\n this.getArticles(++attemptNum);\n } else {\n this.articlesLoaded = true;\n }\n } else {\n this.articles = data.ArticleList;\n this.totalCount = data.TotalCount;\n this.articlesLoaded = true;\n }\n });\n }\n\n // Formats JSON dates correctly\n dateFormatter(dateVal: string): string {\n const month: string[] = [];\n month[0] = \"January\";\n month[1] = \"February\";\n month[2] = \"March\";\n month[3] = \"April\";\n month[4] = \"May\";\n month[5] = \"June\";\n month[6] = \"July\";\n month[7] = \"August\";\n month[8] = \"September\";\n month[9] = \"October\";\n month[10] = \"November\";\n month[11] = \"December\";\n\n const d = new Date(parseInt(dateVal.replace(/\\/Date\\((.*?)\\)\\//gi, \"$1\"), 10));\n\n const returnDate = month[d.getMonth()] + \" \" + d.getDate() + \", \" + d.getFullYear();\n return returnDate;\n };\n};\n","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { IArticle, INewsletterArticle } from './article.models';\nimport { ArticleService } from './article.service';\nimport { NewsletterService } from './newsletter.service';\nimport newsletterArticleTemplate from './newsletter-article.html';\nimport { IAjaxResultArticles } from './article.models';\n\n@Component({\n selector: 'newsletter-article',\n template: newsletterArticleTemplate\n})\nexport class NewsletterArticleComponent {\n\n @Input() newsletterid: number;\n @Input() tabindexvalue: number;\n\n articles: IArticle[]=[];\n totalCount: number=0;\n articlesLoaded: boolean=false;\n articleLibraryFileId: number;\n newsletterName: string;\n\n constructor(@Inject(NewsletterService) private newsletterService: NewsletterService,\n @Inject(ArticleService) private articleService: ArticleService) {\n\n }\n\n // Initialize all newsletter articles\n ngOnInit() {\n this.getNewsletterDetails(); \n this.getArticles(1);\n }\n\n\n getArticles(attemptNum: number) {\n this.articlesLoaded = false;\n this.articleService.getArticles(this.newsletterid, 50).then(response => {\n const data = response;\n if (!data.ArticleList || data.ArticleList.length === 0) {\n if (attemptNum < 4) {\n this.getArticles(++attemptNum);\n } else {\n this.articlesLoaded = true;\n }\n } else {\n this.articles = data.ArticleList;\n this.totalCount = data.TotalCount;\n this.articlesLoaded = true;\n }\n });\n }\n\n getNewsletterDetails() {\n this.newsletterService.getNewsletterDetails(this.newsletterid).then(response => {\n const data = response;\n this.articleLibraryFileId = data.ArticleLibraryFileId;\n this.newsletterName = data.NewsletterName;\n });\n }\n\n // Formats JSON dates correctly\n dateFormatter(dateVal: string): string {\n const month = new Array();\n month[0] = \"January\";\n month[1] = \"February\";\n month[2] = \"March\";\n month[3] = \"April\";\n month[4] = \"May\";\n month[5] = \"June\";\n month[6] = \"July\";\n month[7] = \"August\";\n month[8] = \"September\";\n month[9] = \"October\";\n month[10] = \"November\";\n month[11] = \"December\";\n\n const d = new Date(parseInt(dateVal.replace(/\\/Date\\((.*?)\\)\\//gi, \"$1\"), 10));\n const returnDate = (d.getMonth() + 1) + \"/\" + d.getDate() + \"/\" + d.getFullYear();\n\n return returnDate;\n }\n}","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { IArticle, INewsletterArticle } from './article.models';\nimport { ArticleService } from './article.service';\nimport { NewsletterService } from './newsletter.service';\nimport newsletterTemplate from './newsletter.html';\nimport { IAjaxResultArticles } from './article.models';\n\n@Component({\n selector: 'newsletter',\n template: newsletterTemplate\n})\n\nexport class NewsletterComponent {\n \n @Input() newslettertype: string;\n @Input() tabindexvalue: number;\n\n articlesLoaded: Boolean;\n currentPageMinCount: number;\n currentPageMaxCount: number;\n referrer = document.referrer;\n defaultPageSize: number = 25;\n \n newsletterType = 0; // Diagnosis Coding Pro\n newsletterSearchResults: INewsletterArticle[] = [];\n pageIndex: number = 1;\n pageMin: number= 1;\n pageMax: number;\n pageSize: number;\n paging: number[];\n totalRecords = -1;\n\n constructor(@Inject(NewsletterService) private newsletterService: NewsletterService) {\n\n }\n\n //performs the search\n ngOnInit() {\n this.searchNewsletters(25,1);\n }\n setPaging() {\n var size = this.pageSize == this.defaultPageSize ? -1 : this.defaultPageSize;\n this.searchNewsletters(size, 1);\n }\n searchNewsletters(pgSize: number, pgIndex: number) {\n this.articlesLoaded = false;\n this.pageSize = pgSize; //if page size equals -1, return all results\n\n //set the page index\n if (pgIndex < this.pageMin || this.pageSize === -1) {\n this.pageIndex = this.pageMin;\n } else if (this.pageMax) {\n this.pageIndex = (pgIndex > this.pageMax) ? this.pageMax : pgIndex;\n } else {\n this.pageIndex = pgIndex;\n }\n\n this.newsletterService.getNewsletter(this.newslettertype, this.pageSize, this.pageIndex).then(response => {\n const data = response;\n this.newsletterSearchResults = data.Newsletters;\n\n //find total number of records\n this.totalRecords = (this.newsletterSearchResults.length > 0) ? data.TotalCount : 0;\n\n //get the current record number view\n if (this.pageSize === -1) {\n this.currentPageMinCount = this.pageMin;\n this.currentPageMaxCount = this.totalRecords;\n } else {\n this.currentPageMinCount = this.pageIndex * this.pageSize - (this.pageSize - 1);\n this.currentPageMaxCount = this.pageIndex * this.pageSize;\n if (this.currentPageMaxCount > this.totalRecords) {\n this.currentPageMaxCount = this.totalRecords;\n }\n }\n\n //setup paging links\n const mod = this.pageIndex % 4;\n switch (mod) {\n case 1:\n this.paging = [this.pageIndex, (this.pageIndex + 1), (this.pageIndex + 2), (this.pageIndex + 3)];\n break;\n case 2:\n this.paging = [(this.pageIndex - 1), this.pageIndex, (this.pageIndex + 1), (this.pageIndex + 2)];\n break;\n case 3:\n this.paging = [(this.pageIndex - 2), (this.pageIndex - 1), this.pageIndex, (this.pageIndex + 1)];\n break;\n case 0:\n this.paging =\n [(this.pageIndex - 3), (this.pageIndex - 2), (this.pageIndex - 1), (this.pageIndex)];\n break;\n }\n if (this.pageSize === -1) {\n this.pageMax = 1;\n } else {\n this.pageMax = Math.floor(this.totalRecords / this.pageSize);\n const mod2 = this.totalRecords % this.pageSize;\n if (mod2 > 0) {\n this.pageMax++;\n }\n }\n for (let i = 3; i > 0; i--) {\n if (this.paging[i] > this.pageMax) {\n this.paging = this.paging.slice(0, i);\n }\n }\n\n this.articlesLoaded = true;\n });\n \n }\n\n // Formats JSON dates correctly\n dateFormatter(dateVal: string): string {\n const d = new Date(parseInt(dateVal.replace(/\\/Date\\((.*?)\\)\\//gi, \"$1\"), 10));\n const returnDate = d.getMonth() + \"/\" + d.getDate() + \"/\" + d.getFullYear();\n return returnDate;\n }\n}\n","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\nimport * as models from \"./article.models\";\n\ninterface INewsletterService {\n getNewsletterDetails(newsId) : Promise;\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class NewsletterService implements INewsletterService {\n\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n getNewsletterDetails(newsId): Promise {\n const parameters = { params: { newsId: newsId } };\n return this.http.get(\"/MVC/DCP/GetNewsletterDetails\", parameters).toPromise();\n }\n\n getNewsletter(newsletterType: string, pageSize: number, pageIndex: number) {\n const parameters = {\n params: {\n type: newsletterType,\n pageSize: pageSize.toString(),\n pageIndex: pageIndex.toString()\n }\n };\n\n return this.http.get(\"/MVC/DCP/GetNewslettersByType\", parameters).toPromise();\n }\n\n}\n","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { DictionaryService } from \"./dictionary.service\";\nimport { IAppendixEntry } from \"./models\";\n\nimport dictionaryAppendeciesTemplate from './dictionary-appendecies.html';\n\n@Component({\n selector: 'dictionary-appendecies',\n template: dictionaryAppendeciesTemplate\n})\nexport class DictionaryAppendicesComponent {\n\n appendices: IAppendixEntry[] = [];\n\n constructor(@Inject(DictionaryService)private dictionaryService: DictionaryService) {\n }\n\n ngOnInit() {\n // Get appendix content from web service and display, replacing loading image\n this.dictionaryService.getAppendecies().then(\n (response) => {\n const data = response;\n this.appendices = [...data];\n \n for (let i = 0; i < this.appendices.length; i++) {\n const e = this.appendices[i];\n e.Body = e.Body.replace(e.Title, \"\");\n }\n },\n response => {\n console.error(response);\n });\n }\n}\n","///\nimport { Component, Inject, Input, OnInit } from '@angular/core';\nimport { DictionaryService } from './dictionary.service';\nimport { IDorlandDictionaryEntry } from './models';\n\nimport dictionaryDetailTemplate from './dictionary-detail.html';\n\n@Component({\n selector: 'dictionary-detail',\n template: dictionaryDetailTemplate\n})\n\nexport class DictionaryDetailComponent {\n \n constructor(@Inject(DictionaryService) private dictionaryService: DictionaryService) {\n \n }\n\n @Input() dictionaryid: number;\n isLoading: boolean = true;\n // Item List Array\n dict: IDorlandDictionaryEntry = null;\n\n // URL for dictionary web service\n // Pull back all dictionary appendices\n ngOnInit() {\n this.isLoading = true;\n this.dictionaryService.getDictionary(this.dictionaryid).then(\n (response) => {\n this.dict = response;\n setTimeout(this.dictSetup, 1000);\n this.isLoading = false;\n },\n response => {\n this.isLoading = false;\n console.error(response);\n });\n }\n\n \n\n dictSetup() {\n // Code Data mouseovers should be hidden at first\n $(\".codeData\").hide();\n\n $(\".cdCode\").on(\"mouseover mouseout\", function (event) {\n if (event.type === \"mouseover\") {\n $(this).children(\".codeData\").show();\n } else {\n $(this).children(\".codeData\").hide();\n }\n });\n \n // Set ICD9 crosslink count in header\n const icdCodeCount = $(\"#divCrossLinks\").find(\".cdCode\").length;\n $(\"#icdCountNew\").text(icdCodeCount);\n\n // Hide header in data since we've got a tab header now\n $('#divCrossLinks').find('.title').hide();\n\n // Set up image enlargement functionality\n\n $(\".thumbnail\").click(function () {\n $(\"#imgbackground\").css({\"opacity\": \"0.7\"})\n .fadeIn(\"slow\");\n\n $(\"#large\").html(\n \"
\" + \"\")\n .center()\n .fadeIn(\"slow\");\n\n return false;\n });\n\n openImagesLinksInNewTab();\n\n $(document).keypress(e => {\n if (e.keyCode === 27) {\n $(\"#imgbackground\").fadeOut(\"slow\");\n $(\"#large\").fadeOut(\"slow\");\n }\n });\n\n $(\"#imgbackground,#large,.close-detail-img\").click(() => {\n $(\"#imgbackground\").fadeOut(\"slow\");\n $(\"#large\").fadeOut(\"slow\");\n $(\".closeDetailImg\").fadeOut(\"slow\");\n });\n };\n}\n\n\nfunction openImagesLinksInNewTab() {\n var definition = $('.definition')\n var links = $('a', definition)\n\n if (links.length > 0)\n {\n links.each(function (index, link) {\n if (/\\.(?:jpg|jpeg|gif|png)$/i.test($(link).attr('href'))) {\n link.setAttribute('target', '_blank');\n }\n })\n }\n}","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { DictionaryService } from \"./dictionary.service\";\n\nimport { IDorlandDictionaryEntry, IAjaxResultDorlandDictionarySearchResult } from './models';\n\nimport dictionaryResultsTemplate from './dictionary-results.html';\n\n// URL for dictionary web service\nconst urlDictionarySearch = \"/MVC/Dictionary/RunSearch\";\n\n\n@Component({\n selector: 'dictionary-results',\n template: dictionaryResultsTemplate\n})\nexport class DictionaryResultsComponent {\n\n @Input() query: string;\n @Input() detailurl: string;\n\n resultsPage: number = 0;\n moreResults: boolean = false;\n searchResults: IDorlandDictionaryEntry[] = [];\n totalResults: number = 0;\n isLoading: boolean = false;\n\n constructor(@Inject(DictionaryService)private dictionaryService: DictionaryService) {\n \n }\n\n ngOnInit() {\n this.isLoading = true;\n\n if (!this.query || this.query.length === 0) {\n // Must verify the query input is a string type and not a zero-length string\n this.searchResults = [];\n this.moreResults = false;\n this.totalResults = 0;\n this.isLoading = false;\n } else {\n this.dictionaryService.performSearch(this.query, this.resultsPage).then((response) => {\n const data = response;\n this.searchResults = data.Results;\n this.moreResults = data.MoreResults;\n this.totalResults = data.TotalResults;\n this.isLoading = false;\n });\n }\n }\n\n nextPage() {\n this.changePage(this.resultsPage + 1);\n }\n\n prevPage() {\n this.changePage(this.resultsPage - 1);\n }\n\n changePage(newPageNumber: number) {\n this.isLoading = true;\n\n this.dictionaryService.performSearch(this.query, newPageNumber).then(response => {\n const data = response;\n this.resultsPage = newPageNumber;\n this.searchResults = data.Results;\n this.moreResults = data.MoreResults;\n this.isLoading = false;\n })\n \n\n }\n}\n\n","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { DictionaryService } from \"./dictionary.service\";\n\nimport dictionarySearchTemplate from './dictionary-search.html';\n\n@Component({\n selector: 'dictionary-search',\n template: dictionarySearchTemplate\n})\nexport class DictionarySearchComponent {\n\n\n constructor(@Inject(DictionaryService)private dictionaryService: DictionaryService) {\n }\n\n @Input() query: string= \"\";\n\n performSearch(page: number) {\n window.location.href = \"/MVC/Dictionary/Search?dictionarySearchTerm=\" + this.query;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { DictionaryAppendicesComponent } from \"./dictionary-appendices.component\";\nimport { DictionarySearchComponent } from \"./dictionary-search.component\";\nimport { DictionaryService } from './dictionary.service';\nimport { DictionaryDetailComponent } from \"./dictionary-detail.component\";\nimport { DictionaryResultsComponent } from \"./dictionary-results.component\";\nimport { HighlightModule } from '../shared/directives/highlight.module';\n\n\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n HighlightModule\n ],\n providers: [\n DictionaryService\n ],\n declarations: [\n DictionaryAppendicesComponent,\n DictionarySearchComponent,\n DictionaryDetailComponent,\n DictionaryResultsComponent\n\n ]\n})\nexport class DictionaryModule { }","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\nimport { IAjaxResultDorlandDictionarySearchResult, IAppendixEntry, IDorlandDictionaryEntry } from './models';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class DictionaryService {\n\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n getAppendecies() {\n return this.http.get(\"/MVC/Dictionary/ListAppendices\").toPromise();\n }\n\n performSearch(query: string, pageIndex: number) {\n\n const urlDictionarySearch = \"/MVC/Dictionary/RunSearch\";\n const parameters = { params: { query: query, page: pageIndex.toString() } };\n\n return this.http.get(urlDictionarySearch, parameters).toPromise();\n\n }\n\n getDictionary(dictionaryId: number) {\n const urlGetDictionary = \"/MVC/Dictionary/GetDictionary\";\n const parameters = { params: { id: dictionaryId.toString() } };\n return this.http.get(urlGetDictionary, parameters).toPromise();\n }\n}","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { ForumService } from './forum.service';\nimport forumTemplate from './forum.html';\n\n@Component({\n selector: 'forum',\n template: forumTemplate\n})\nexport class ForumComponent {\n\n @Input() threadcount: number;\n @Input() forumid: number;\n panelClass: string;\n threads: any;\n categoryName: string;\n widgetTitle: string;\n\n constructor(@Inject(ForumService) private forumService: ForumService) {\n \n \n }\n\n ngOnInit() {\n if (this.forumid == 1) {\n this.panelClass = \"oasis-l\";\n }\n this.forumService.loadLatestForum(this.threadcount, this.forumid).then(\n response => {\n const data = response;\n this.threads = data.Threads;\n this.categoryName = data.CategoryName;\n this.widgetTitle = data.ForumTitle;\n this.threadcount = data.ThreadCount;\n },\n (response: angular.IHttpResponse) => { console.error(response); });\n }\n\n // Formats JSON dates correctly\n dateFormatter = function (dateVal) {\n const month = new Array();\n month[0] = \"January\";\n month[1] = \"February\";\n month[2] = \"March\";\n month[3] = \"April\";\n month[4] = \"May\";\n month[5] = \"June\";\n month[6] = \"July\";\n month[7] = \"August\";\n month[8] = \"September\";\n month[9] = \"October\";\n month[10] = \"November\";\n month[11] = \"December\";\n\n const d = new Date(parseInt(dateVal.replace(/\\/Date\\((.*?)\\)\\//gi, \"$1\"), 10));\n const returnDate = month[d.getMonth()] + \" \" + d.getDate() + \", \" + d.getFullYear();\n return returnDate;\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { ForumComponent } from './forum.component';\nimport { ForumService } from './forum.service';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule\n ],\n providers: [\n ForumService\n ],\n exports: [\n ForumComponent\n ],\n declarations: [\n ForumComponent\n\n ]\n})\nexport class ForumModule { }\n\n \n","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\n\nimport { IAjaxResultForumInfo } from './forum.models';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ForumService {\n\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n loadForum(threadCount: number, forumName: string) {\n\n const parameters = { params: { threadCount: threadCount.toString(), forumName: forumName, pageNum: \"1\" } };\n return this.http.get(\"/MVC/Forum/LoadForum\", parameters).toPromise();\n \n }\n\n loadLatestForum(threadCount: number, forumId: number) {\n\n const parameters = { params: { forumId: forumId.toString(), threadCount: threadCount.toString() } };\n return this.http.get(\"/MVC/Forum/LoadLatestForum\", parameters).toPromise();\n\n }\n}","import { Component, EventEmitter, Inject, Input, OnInit, Output } from '@angular/core';\nimport { ICD10SearchService } from './icd10-search.service';\nimport { ICodeIconFlag } from './icd10.models';\nimport icd10IndexTemplate from './icd10-alpha-index.html';\n\n@Component({\n selector: 'icd10-alpha-index',\n template: icd10IndexTemplate,\n})\n\nexport class Icd10AlphaIndexComponent implements OnInit {\n\n @Input() indexchilddata: any;\n @Input() parentobj: any;\n @Input() childdepth: number;\n @Input() parentindex: string;\n @Input() firstchildindex: string;\n @Input() lvlid: string;\n @Input() istermsearch: Boolean;\n\n constructor(@Inject(ICD10SearchService) private icd10SearchService: ICD10SearchService) {\n\n }\n\n ngOnInit(): void {\n this.childdepth++;\n }\n\n\n //get child term data for a ICD-10 term\n getChildData(indexTermId: number, indexVersionId: number) {\n if (!Object.prototype.hasOwnProperty.call(this.indexchilddata, indexTermId.toString())) {\n this.icd10SearchService.getIndexChildData(indexTermId, indexVersionId).then(response => {\n this.indexchilddata[indexTermId.toString()] = response;\n })\n }\n }\n\n createIndexSearchLinks(text: string, refCodeSearch: string): string {\n return this.icd10SearchService.createIndexSearchLinks(text, refCodeSearch);\n }\n\n createCodeSearchLinks(codeString: string, codeIconFlags: ICodeIconFlag[], includeResults: boolean): string {\n //codeString can be formatted as \"code1\" or \"code1 [code2]\", so BuildICD10CodeSearchLinkForIndexSearchResult parse the codes to display the individual link and icons\n const html = this.buildICD10CodeSearchLinkForIndexSearchResult(codeString, codeIconFlags, includeResults);\n return html; //without $sce.trustAsHtml(), html will be rendered in plain text\n };\n\n buildICD10CodeSearchLinkForIndexSearchResult(codeString: string, codeIconFlags: ICodeIconFlag[], includeResults: boolean): string {\n return this.icd10SearchService.buildICD10CodeSearchLinkForIndexSearchResult(codeString, codeIconFlags, includeResults);\n }\n\n buildICD10Icons(code: string, codeIconFlags: ICodeIconFlag[]): string {\n return this.icd10SearchService.buildICD10Icons(code, codeIconFlags);\n }\n\n highlightKeywords(text: string) : string{\n return this.icd10SearchService.highlightKeywords(text, this.istermsearch);\n }\n\n\n\n}","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { Icd10BrowseWebService } from \"./icd10cmBrowseWebService.service\";\nimport { IIcd10Chapter } from \"./icd10.models\";\n\nimport icd10BrowseTemplate from \"./icd10-browse.html\";\n\n@Component({\n selector: 'icd10-browse',\n template: icd10BrowseTemplate\n})\nexport class Icd10BrowseComponent {\n\n constructor(@Inject(Icd10BrowseWebService) private browseService: Icd10BrowseWebService, @Inject(DOCUMENT) private document: Document) {\n\n }\n\n @Input() chaptersvarname: string;\n chapters: IIcd10Chapter[] = [];\n @Input() codeYear: string;\n \n /**\n * This is a HACKY initialization function.\n * This is used in an ng-init expression to populate the JSON array that comes from a Razor view rendered output.\n * @param {string} chapters_var_name global variable name from which to read the chapters from to initialize this controller.\n */\n ngOnInit() {\n this.browseService.loadChapterTree(this.codeYear).then(data => {\n this.chapters = data;\n this.chapters.forEach(item => { item.expanded = false; });\n })\n \n }\n\n loadChapter(chapter) {\n if (chapter.Sections) {\n chapter.expanded = !chapter.expanded;\n } else {\n chapter.loading = true;\n\n this.browseService.loadChapter(chapter.ICD10ChapterVersionId).then(data => {\n chapter.Sections = data;\n chapter.expanded = !chapter.expanded;\n chapter.loading = false;\n });\n }\n }\n\n loadSection(section) {\n if (section.Codes) {\n section.expanded = !section.expanded;\n } else {\n section.loading = true;\n\n this.browseService.loadSection(section.ICD10SectionVersionId).then(data => {\n section.Codes = data;\n section.expanded = !section.expanded;\n section.loading = false;\n });\n }\n }\n\n loadCode(sectionId, code) {\n if (code.ChildCodes) {\n code.expanded = !code.expanded;\n } else {\n code.loading = true;\n\n this.browseService.loadCode(sectionId, code.Code).then(data => {\n code.ChildCodes = data;\n code.index = code.Code.length;\n code.expanded = !code.expanded;\n code.loading = false;\n });\n }\n }\n}\n","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { Icd10BrowseWebService } from \"./icd10cmBrowseWebService.service\";\n\nimport icd10BrowseTreeTemplate from \"./icd10-browse-tree.html\";\n\n@Component({\n selector: 'icd10-browse-tree',\n template: icd10BrowseTreeTemplate\n})\nexport class Icd10BrowseTreeComponent {\n\n @Input() code: any;\n @Input() section: any;\n @Input() codeYear: string;\n\n constructor(@Inject(Icd10BrowseWebService) private browseService: Icd10BrowseWebService) {\n\n }\n\n loadCode(sectionId, code) {\n if (code.ChildCodes) {\n code.expanded = !code.expanded;\n } else {\n code.loading = true;\n\n this.browseService.loadCode(sectionId, code.Code).then(data => {\n code.ChildCodes = data;\n code.index = code.Code.length;\n code.expanded = !code.expanded;\n code.loading = false;\n });\n }\n }\n}","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { ICD10SearchService} from './icd10-search.service';\nimport { ICodeIconFlag, IIndexSearchResult, ITabularSearchResult } from './icd10.models';\nimport icd10SearchSlideTemplate from './icd10-search-slide.html';\nimport { Icd10SearchComponent } from './icd10-search.component';\n\n\n\n\n@Component({\n selector: 'icd10-search-slide',\n template: icd10SearchSlideTemplate\n})\nexport class Icd10SearchSlideComponent extends Icd10SearchComponent {\n\n constructor(@Inject(ICD10SearchService) public icd10SearchService: ICD10SearchService, @Inject(DOCUMENT) public document: Document) {\n super(icd10SearchService, document);\n }\n\n @Input() includeresults: Boolean;\n \n\n ngOnInit() {\n this.icd10SearchService.searchtype = this.searchtype;\n this.icd10SearchService.keywords = this.keywords;\n this.icd10SearchService.year = this.year;\n this.getSessionSearchResults(this.year);\n }\n\n}\n","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { ICD10SearchService} from './icd10-search.service';\nimport { IAltSearchSuggestion, ICodeIconFlag, IIndexSearchResult, ITabularSearchResult, IAjaxResultI10Search } from './icd10.models';\nimport icd10SearchTemplate from './icd10-search.html';\nimport { version } from 'punycode';\n\n\nconst INDEX_SEARCH_TYPE_ID: number = 8;\n\n@Component({\n selector: 'icd10-search',\n template: icd10SearchTemplate\n})\nexport class Icd10SearchComponent {\n\n @Input() searchtype: number;\n @Input() searchtypestring: string;\n @Input() keywords: string;\n @Input() year: string;\n @Input() searchtypes: string;\n\n altLoading: boolean = false;\n altSearchGroups: any[];\n altSearchResults: IAltSearchSuggestion[];\n btnNextPageShow: boolean;\n btnPrevPageShow: boolean;\n chunkRecSize: number = 25; // number of records contained in a chunk of search results\n chunkTimeoutMillisecs: number = 1000; // number of milliseconds to wait in between displaying chunks of search results\n codeIconFlags: ICodeIconFlag[];\n codeSearchResult: ITabularSearchResult[] = [];\n codeSearchResultChunked: any[] = []; // chunked version of code results so we can deal with huge data sizes\n currentPageMaxCount: number;\n currentPageMinCount: number;\n defaultPageSize: number = 25;\n endCount: number;\n indexChildData: { [id: string]: IIndexSearchResult[] } = {};\n indexParentData: { [id: string]: IIndexSearchResult[] } = {};\n indexSearchResult: IIndexSearchResult[] = [];\n indexSearchResultChunked: any[] = []; // chunked version of index results so we can deal with huge data sizes\n indexTables: any = {};\n isTermSearch: boolean=false;\n pageIndex: number = 1;\n pageMax: number;\n pageMin: number = 1;\n pageSize: number = 25;\n paging: number[];\n // referrer: string = document.referrer;\n resultCount: number;\n resultsLoading: boolean = false;\n searchTerm: string;\n // searchType: number;\n sortBy: string;\n startCount: number = 1;\n totalRecords: number = -1;\n\n\n\n constructor(@Inject(ICD10SearchService) public icd10SearchService: ICD10SearchService, @Inject(DOCUMENT) public document: Document) {\n \n }\n\n ngOnInit() {\n this.pageSize = this.defaultPageSize;\n this.sortBy = \"RANK\";\n\n\n this.icd10SearchService.searchtype = this.searchtype;\n this.icd10SearchService.keywords = this.keywords;\n this.icd10SearchService.year = this.year;\n this.endCount = this.defaultPageSize;\n this.search(25, 1, this.sortBy );\n }\n\n //performs the ICD-10 search\n search(pgSize: number, pgIndex: number, sortBy?: string) {\n if (sortBy) {\n this.sortBy = sortBy;\n }\n \n // Show the loading wheel in case pagination takes extra time\n this.resultsLoading = true;\n\n // Clear chunked results to make way for new search\n this.codeSearchResultChunked = [];\n this.indexSearchResultChunked = [];\n\n this.pageSize = pgSize; //if page size equals -1, return all results\n\n //set the page index\n if (pgIndex < this.pageMin || this.pageSize === -1) {\n this.pageIndex = this.pageMin;\n }\n else if (this.pageMax) {\n this.pageIndex = (pgIndex > this.pageMax) ? this.pageMax : pgIndex;\n }\n else {\n this.pageIndex = pgIndex;\n }\n \n //set sort order\n if (this.sortBy === \"TERM\" || this.sortBy === \"RANK\") {\n\n this.icd10SearchService.doSearch(this.searchtype, this.keywords, this.pageSize, this.pageIndex, this.sortBy, this.year).then(response => {\n\n const data = response;\n\n this.codeSearchResult = (data.CodeSearchResult === null ? [] : data.CodeSearchResult);\n this.indexSearchResult = (data.IndexSearchResult === null ? [] : data.IndexSearchResult);\n this.codeIconFlags = data.CodeIconFlags;\n this.isTermSearch = data.IsTermSearch;\n\n // If only one tabular result returned, go directly to details page\n if (this.codeSearchResult.length === 1 && this.pageIndex === 1) {\n const singleCode = this.codeSearchResult[0].Code;\n document.location.href = \"/MVC/ICD10/Details/\" + singleCode + \"/\" + (this.year ? this.year : \"\");\n return;\n }\n else {\n\n //find total number of records\n if (this.codeSearchResult.length > 0) {\n this.totalRecords = this.codeSearchResult[0].TotalRowCount;\n\n }\n else if (this.indexSearchResult.length > 0) {\n this.totalRecords = this.indexSearchResult[0].TotalRowCount;\n }\n else {\n this.totalRecords = 0;\n }\n\n this.resultsLoading = false;\n\n //get the current record number view\n if (this.pageSize === -1) {\n this.currentPageMinCount = this.pageMin;\n this.currentPageMaxCount = this.totalRecords;\n }\n else {\n this.currentPageMinCount = this.pageIndex * this.pageSize - (this.pageSize - 1);\n this.currentPageMaxCount = this.pageIndex * this.pageSize;\n if (this.currentPageMaxCount > this.totalRecords) {\n this.currentPageMaxCount = this.totalRecords;\n }\n }\n\n //setup paging links\n const mod = this.pageIndex % 4;\n switch (mod) {\n case 1:\n this.paging = [this.pageIndex, (this.pageIndex + 1), (this.pageIndex + 2), (this.pageIndex + 3)];\n break;\n case 2:\n this.paging = [(this.pageIndex - 1), this.pageIndex, (this.pageIndex + 1), (this.pageIndex + 2)];\n break;\n case 3:\n this.paging = [(this.pageIndex - 2), (this.pageIndex - 1), this.pageIndex, (this.pageIndex + 1)];\n break;\n case 0:\n this.paging = [(this.pageIndex - 3), (this.pageIndex - 2), (this.pageIndex - 1), (this.pageIndex)];\n break;\n }\n if (this.pageSize === -1) {\n this.pageMax = 1;\n }\n else {\n this.pageMax = Math.floor(this.totalRecords / this.pageSize);\n const mod2 = this.totalRecords % this.pageSize;\n if (mod2 > 0) {\n this.pageMax++;\n }\n }\n for (let i = 3; i > 0; i--) {\n if (this.paging[i] > this.pageMax) {\n this.paging = this.paging.slice(0, i);\n }\n }\n\n //get alternative search results\n if (this.totalRecords === 0) {\n this.icd10SearchService.getAltResults(this.searchtype, this.keywords).then(\n (response) => {\n const data = response\n this.altLoading = false;\n\n this.altSearchResults = data.Results;\n\n this.altSearchGroups = [];\n this.altSearchResults.forEach((value: IAltSearchSuggestion, key: number) => {\n let typeExists = false;\n this.altSearchGroups.forEach((value2: any, key2: number) => {\n if (value.TermType === value2.TermType) {\n typeExists = true;\n }\n });\n if (!typeExists) {\n this.altSearchGroups.push({ CodeType: value.CodeTypeId, TermType: value.TermType });\n }\n });\n\n this.altSearchGroups.sort(function (a, b) {\n if (a.CodeType > b.CodeType) {\n return -1;\n }\n else if (a.CodeType === b.CodeType) {\n return 0;\n }\n else {\n return 1;\n }\n });\n },\n response => {\n console.error(response);\n this.altLoading = false;\n });\n }\n }\n });\n }\n else {\n this.resultsLoading = false;\n }\n }\n\n\n // BC 8/5/2015 - serves up code search results in chunks to combat latency in browser performance for huge data sets\n chunkCodeSearchResults(start: number) {\n const self = this;\n\n // figure out start of next chunk\n let new_start = start + this.chunkRecSize;\n if (new_start > this.codeSearchResult.length)\n new_start = this.codeSearchResult.length;\n\n for (let index = start; index < new_start; ++index) {\n this.codeSearchResultChunked.push(this.codeSearchResult[index]);\n }\n\n // process next chunk if we have recs left to display\n if (new_start < this.codeSearchResult.length) {\n setTimeout(() => {\n this.chunkCodeSearchResults(new_start);\n }, this.chunkTimeoutMillisecs);\n }\n }\n\n // BC 8/5/2015 - serves up index search results in chunks to combat latency in browser performance for huge data sets\n chunkIndexSearchResults(start: number) {\n // figure out start of next chunk\n let new_start = start + this.chunkRecSize;\n if (new_start > this.indexSearchResult.length)\n new_start = this.indexSearchResult.length;\n\n // Get angular scope\n\n for (let index = start; index < new_start; ++index) {\n this.indexSearchResultChunked.push(this.indexSearchResult[index]);\n }\n\n // process next chunk if we have recs left to display\n if (new_start < this.indexSearchResult.length) {\n setTimeout(() => {\n this.chunkIndexSearchResults(new_start);\n }, this.chunkTimeoutMillisecs);\n }\n\n }\n\n //get parent data of the ICD-10 search term\n getParentData(indexTermId: number, indexVersionId: number) {\n if (!Object.prototype.hasOwnProperty.call(this.indexParentData, indexTermId.toString())) {\n\n this.icd10SearchService.getIndexParentData(indexTermId, indexVersionId, this.year).then(\n response => {\n const data = response;\n //exclude the parent record if one result is returned and the search is the following types: Alpha Index and Index to External Causes\n if (data.length === 1 && (this.searchtype === 8 || this.searchtype === 9)) {\n this.indexParentData[indexTermId.toString()] = [];\n }\n else {\n this.indexParentData[indexTermId.toString()] = data;\n }\n });\n }\n }\n\n //get child term data for a ICD-10 term\n getChildData(indexTermId: number, indexVersionId: number) {\n var self = this;\n if (!Object.prototype.hasOwnProperty.call(this.indexChildData, indexTermId.toString())) {\n this.icd10SearchService.getIndexChildData(indexTermId, indexVersionId).then(response => {\n self.indexChildData[indexTermId.toString()] = response;\n })\n }\n }\n\n //load parent data into index table\n loadIndexTableParent(indexTermId: number, versionId: number) {\n if (!Object.prototype.hasOwnProperty.call(this.indexTables, indexTermId)) {\n this.icd10SearchService.getIndexTermParents(indexTermId, versionId).then(\n response => {\n const parents = response;\n for (let i = 0; i < parents.length; i++) {\n parents[i].Depth = i;\n parents[i].ShowNotes = false;\n parents[i].IsChildrenDownloaded = true;\n parents[i].ShowChildren = true;\n parents[i].ShowRow = [true];\n }\n this.indexTables[indexTermId] = parents;\n\n this.icd10SearchService.getIndexTermChildren(indexTermId, versionId).then(\n response => {\n const children = response;\n const lastParent = parents[parents.length - 1];\n\n for (let i = 0; i < children.length; i++) {\n children[i].Depth = lastParent.Depth + 1;\n children[i].ShowNotes = false;\n children[i].IsChildrenDownloaded = false;\n children[i].ShowChildren = false;\n children[i].ShowRow = [true, true];\n }\n this.indexTables[indexTermId] = parents.concat(children);\n });\n });\n }\n }\n\n //load child data into index table\n loadIndexTableChildren(indexTermId: number, parentDataRow: any, parentIndex: number) {\n var self = this;\n parentDataRow.ShowChildren = !parentDataRow.ShowChildren;\n\n if (!parentDataRow.IsChildrenDownloaded) {\n this.icd10SearchService.getIndexTermChildren(parentDataRow.ICD10IndexTermId, parentDataRow.ICD10IndexVersionId).then(\n function (response) {\n const children = response;\n for (let i = 0; i < children.length; i++) {\n children[i].Depth = parentDataRow.Depth + 1;\n children[i].ShowNotes = false;\n children[i].IsChildrenDownloaded = false;\n children[i].ShowChildren = false;\n children[i].ShowRow = parentDataRow.ShowRow.slice();\n children[i].ShowRow.push(parentDataRow.ShowChildren);\n }\n const args = [parentIndex + 1, 0].concat(children);\n Array.prototype.splice.apply(self.indexTables[indexTermId], args);\n parentDataRow.IsChildrenDownloaded = true;\n });\n }\n else {\n //update expand/collapse settings for the child records\n for (let i = parentIndex + 1; i < this.indexTables[indexTermId].length; i++) {\n if (this.indexTables[indexTermId][i].Depth > parentDataRow.Depth) {\n this.indexTables[indexTermId][i].ShowRow[parentDataRow.Depth] = parentDataRow.ShowChildren;\n }\n else {\n break;\n }\n }\n }\n }\n \n\n //builds the links to the code details page and builds the code icons in HTML format\n // mvl 5/18/2015 - Added optional includeResult param\n createCodeSearchLinks(codeString: string, codeIconFlags: ICodeIconFlag[], includeResults: boolean): string {\n //codeString can be formatted as \"code1\" or \"code1 [code2]\", so BuildICD10CodeSearchLinkForIndexSearchResult parse the codes to display the individual link and icons\n const html = this.buildICD10CodeSearchLinkForIndexSearchResult(codeString, codeIconFlags, includeResults);\n return html; //without $sce.trustAsHtml(), html will be rendered in plain text\n };\n\n //builds the links to the term or code search\n createIndexSearchLinks(text: string, refCodeSearch: any): string {\n return this.icd10SearchService.createIndexSearchLinks(text, refCodeSearch);\n }\n\n //highlight the searched keywords in a string\n highlightKeywords(text: string): string {\n let html = text;\n\n if (this.isTermSearch && html) {\n html = this.highlightText(html, this.keywords);\n }\n\n return html; //without $sce.trustAsHtml(), html will be rendered in plain text\n }\n\n //builds the links for the alternative search results\n buildSearchSuggestionLinks(searchType: string, term: string, index: number): string {\n let html = \"\";\n if (index > 0) {\n html += \" – \";\n }\n\n switch (searchType.toString()) {\n // ICD-10 searches \n case \"7\":\n case \"8\":\n case \"9\":\n case \"10\":\n case \"11\":\n html += \" \" + term + \" \";\n break;\n // OASIS searches\n case \"20\":\n html += \" \" + term + \" \";\n break;\n // ICD-9 searches \n default:\n html += \" \" + term + \" \";\n break;\n }\n return html;\n };\n\n // Retrieves the search results from the session\n getSessionSearchResults(year: string) {\n \n if (year) {\n this.year = year;\n }\n\n this.icd10SearchService.getSessionSearchResults().then(\n (response) => {\n const data = response;\n if (data && data.IndexSearchResult && data.IndexSearchResult.length > 0) {\n\n //Save information for future searches\n this.searchTerm = data.IndexSearchTerm;\n this.resultCount = data.IndexSearchResult[0].TotalRowCount;\n this.sortBy = data.SortBy;\n this.pageIndex = data.PageIndex;\n this.startCount = 1 + ((data.PageIndex - 1) * this.defaultPageSize);\n this.endCount = this.startCount + (this.defaultPageSize - 1);\n\n // Check if the end of the result set has been reached\n if (this.endCount >= this.resultCount) {\n this.endCount = this.resultCount;\n this.btnNextPageShow = false;\n }\n else {\n this.btnNextPageShow = true;\n }\n\n //Hide the Previous button on initial return\n this.btnPrevPageShow = this.pageIndex !== 1;\n this.indexSearchResult = data.IndexSearchResult;\n }\n else {\n this.resultCount = 0;\n $(\"#slide-panel\").hide();\n }\n });\n }\n\n // Move to the next page of saved search results\n nextSearchPage() {\n\n // Advance the page count, if at last page, hide next button\n this.startCount = this.startCount + this.defaultPageSize;\n if (this.endCount + this.defaultPageSize >= this.resultCount) {\n this.endCount = this.resultCount;\n this.btnNextPageShow = false;\n }\n else {\n this.endCount = this.endCount + this.defaultPageSize;\n }\n\n this.pageIndex = this.pageIndex + 1;\n\n this.btnPrevPageShow = true;\n\n // Re-run the search\n this.search(this.defaultPageSize, this.pageIndex, this.sortBy);\n }\n\n //Move to the previous search results page\n previousSearchPage() {\n\n // Decrease counts, remove previous button if on first page\n this.startCount = this.startCount - this.defaultPageSize;\n this.endCount = this.endCount - (this.endCount%this.defaultPageSize || this.defaultPageSize);\n this.pageIndex = this.pageIndex - 1;\n\n this.btnNextPageShow = true;\n this.btnPrevPageShow = !(this.startCount === 1);\n\n this.search(this.pageSize, this.pageIndex, this.sortBy);\n\n }\n\n //build the ICD-10 search link\n createICD10SearchLink(searchType: number, searchTerm: string, linkText: string): string {\n return this.icd10SearchService.createICD10SearchLink(searchType, searchTerm, linkText);\n }\n\n //highlight words in text\n highlightText(text: string, termString: string): string {\n return this.icd10SearchService.highlightText(text, termString);\n }\n\n buildICD10CodeSearchLinkForIndexSearchResult(codeString: string, codeIconFlags: ICodeIconFlag[], includeResults: boolean): string {\n return this.icd10SearchService.buildICD10CodeSearchLinkForIndexSearchResult(codeString, codeIconFlags, includeResults);\n \n }\n\n //build the ICD-10 code details link\n createICD10CodeDetailsLink(code: string, includeResults: boolean): string {\n\n // strip trailing period from code link\n let codeStripped = code;\n if (code.charAt(code.length - 1) === \".\")\n codeStripped = codeStripped.substring(0, codeStripped.length - 1);\n\n const year = this.year;\n\n let link = \"\" + code + \"\";\n\n return link;\n }\n\n ajaxIcd10SearchSuccess(response: angular.IHttpResponse) {\n const self = this;\n const data = response.data;\n this.codeSearchResult = (data.CodeSearchResult === null ? [] : data.CodeSearchResult);\n this.indexSearchResult = (data.IndexSearchResult === null ? [] : data.IndexSearchResult);\n this.codeIconFlags = data.CodeIconFlags;\n this.isTermSearch = data.IsTermSearch;\n\n // If only one tabular result returned, go directly to details page\n if (this.codeSearchResult.length === 1 && this.pageIndex === 1) {\n const singleCode = this.codeSearchResult[0].Code;\n this.document.location.href = \"/MVC/ICD10/Details/\" + singleCode + \"/\" + (this.year ? this.year : \"\");\n return;\n }\n else {\n\n //find total number of records\n if (this.codeSearchResult.length > 0) {\n this.totalRecords = this.codeSearchResult[0].TotalRowCount;\n\n // start up chunking of search results\n setTimeout(() => {\n this.chunkCodeSearchResults(0);\n }, 500);\n }\n else if (this.indexSearchResult.length > 0) {\n this.totalRecords = this.indexSearchResult[0].TotalRowCount;\n\n // start up chunking of search results\n // setTimeout(() => { this.chunkIndexSearchResults(0); }, 500);\n }\n else {\n this.totalRecords = 0;\n }\n\n this.resultsLoading = false;\n\n //get the current record number view\n if (this.pageSize === -1) {\n this.currentPageMinCount = this.pageMin;\n this.currentPageMaxCount = this.totalRecords;\n }\n else {\n this.currentPageMinCount = this.pageIndex * this.pageSize - (this.pageSize - 1);\n this.currentPageMaxCount = this.pageIndex * this.pageSize;\n if (this.currentPageMaxCount > this.totalRecords) {\n this.currentPageMaxCount = this.totalRecords;\n }\n }\n\n //setup paging links\n const mod = this.pageIndex % 4;\n switch (mod) {\n case 1:\n this.paging = [this.pageIndex, (this.pageIndex + 1), (this.pageIndex + 2), (this.pageIndex + 3)];\n break;\n case 2:\n this.paging = [(this.pageIndex - 1), this.pageIndex, (this.pageIndex + 1), (this.pageIndex + 2)];\n break;\n case 3:\n this.paging = [(this.pageIndex - 2), (this.pageIndex - 1), this.pageIndex, (this.pageIndex + 1)];\n break;\n case 0:\n this.paging = [(this.pageIndex - 3), (this.pageIndex - 2), (this.pageIndex - 1), (this.pageIndex)];\n break;\n }\n if (this.pageSize === -1) {\n this.pageMax = 1;\n }\n else {\n this.pageMax = Math.floor(this.totalRecords / this.pageSize);\n const mod2 = this.totalRecords % this.pageSize;\n if (mod2 > 0) {\n this.pageMax++;\n }\n }\n for (let i = 3; i > 0; i--) {\n if (this.paging[i] > this.pageMax) {\n this.paging = this.paging.slice(0, i);\n }\n }\n\n //get alternative search results\n if (this.totalRecords === 0) {\n this.altLoading = true;\n this.icd10SearchService.getAltResults(this.searchtype, this.keywords).then(\n (response) => {\n const data = response;\n this.altLoading = false;\n\n this.altSearchResults = data.Results;\n\n this.altSearchGroups = [];\n this.altSearchResults.forEach((value: IAltSearchSuggestion, key: number) => {\n let typeExists = false;\n this.altSearchGroups.forEach((value2: any, key2: number) => {\n if (value.TermType === value2.TermType) {\n typeExists = true;\n }\n });\n if (!typeExists) {\n this.altSearchGroups.push({CodeType: value.CodeTypeId, TermType: value.TermType});\n }\n });\n\n this.altSearchGroups.sort(function (a, b) {\n if (a.CodeType > b.CodeType) {\n return -1;\n }\n else if (a.CodeType === b.CodeType) {\n return 0;\n }\n else {\n return 1;\n }\n });\n },\n response => {\n console.error(response);\n this.altLoading = false;\n });\n }\n }\n }\n\n //get list of icons to display for a ICD-10 code (Note: codeIconFlags[i][\"IconNew\"] and codeIconFlags[i][\"IconRevised\"] are not valid properties)\n buildICD10Icons(code: string, codeIconFlags: ICodeIconFlag[]): string {\n return this.icd10SearchService.buildICD10Icons(code, codeIconFlags);\n \n }\n\n getIcd10CodeDetailsUrl(input) {\n return input ? \"/MVC/ICD10/Details/\" + encodeURIComponent(input) + (this.year ? \"/\" + this.year : \"\") : \"\";\n }\n}\n","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\n\nimport { IAjaxResultAltSearchSuggestion, IAjaxResultI10Search, ICodeIconFlag, IIndexSearchResult, IOasisCrosslink } from './icd10.models';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ICD10SearchService {\n\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n searchtype: number;\n keywords: string;\n year: string;\n INDEX_SEARCH_TYPE_ID: number = 8;\n\n doSearch(searchType, keywords, pageSize, pageIndex, sortBy, year) {\n const parameters = {\n params: {\n cst: searchType,\n sk: keywords,\n pageSize: pageSize.toString(),\n pageIndex: pageIndex.toString(),\n sortBy: sortBy,\n year: year\n }\n };\n\n return this.http.get(\"/MVC/ICD10/ICD10Search\", parameters).toPromise();\n }\n\n getAltResults(searchType: number, keywords: string) {\n const altSearchParam = { params: { cst: searchType.toString(), sk: keywords } };\n\n return this.http.get(\"/MVC/ICD10/GetAlternativeSearchSuggestions\", altSearchParam).toPromise();\n }\n\n getIndexParentData(indexTermId: number, indexVersionId: number, year: string) {\n const parentParams = {\n params: {\n icd10IndexTermId: indexTermId.toString(),\n icd10IndexVersionId: indexVersionId.toString(),\n year: year\n }\n };\n\n return this.http.get(\"/MVC/ICD10/GetICD10IndexTermParents\", parentParams).toPromise();\n }\n\n getIndexChildData(indexTermId: number, indexVersionId: number) {\n const childParams = {\n params: {\n icd10IndexTermId: indexTermId.toString(),\n icd10IndexVersionId: indexVersionId.toString(),\n year: this.year\n }\n };\n\n return this.http.get(\"/MVC/ICD10/GetICD10IndexTermChildren\", childParams).toPromise();\n }\n\n getIndexTermParents(indexTermId: number, versionId: number) {\n const parameters = { params: { icd10IndexTermId: indexTermId.toString(), icd10IndexVersionId: versionId.toString() } };\n\n return this.http.get(\"/MVC/ICD10/GetICD10IndexTermParents\", parameters).toPromise();\n }\n\n getIndexTermChildren(indexTermId: number, versionId: number) {\n const parameters = { params: { icd10IndexTermId: indexTermId.toString(), icd10IndexVersionId: versionId.toString() } };\n\n return this.http.get(\"/MVC/ICD10/GetICD10IndexTermChildren\", parameters).toPromise();\n }\n\n getOasisMappings(pCode: string) {\n const parameters = { params: { code: pCode } };\n\n return this.http.get(\"/MVC/ICD10/GetOASISMappings\", parameters).toPromise();\n }\n\n getSessionSearchResults() {\n return this.http.get(\"/MVC/ICD10/GetICD10SavedSearchResults\").toPromise();\n }\n\n //builds the links to the term or code search\n createIndexSearchLinks(text: string, refCodeSearch: any): string {\n\n // If the search type is not in the quesry string, default to alpha index\n if (!this.searchtype || isNaN(this.searchtype)) {\n this.searchtype = this.INDEX_SEARCH_TYPE_ID;\n }\n\n const separator1 = \" > \";\n const separator2 = \" || \";\n let html = \"\";\n let terms, i;\n\n if (text) {\n if (text.indexOf(separator1) > -1) {\n terms = text.split(separator1);\n for (i = 0; i < terms.length; i++) {\n if (i > 0) {\n html += \" > \";\n }\n\n if (!refCodeSearch) {\n //term search link\n html += this.createICD10SearchLink(this.searchtype, terms[i], this.highlightText(terms[i], this.keywords));\n }\n else {\n //code search link\n html += this.createICD10SearchLink(1, refCodeSearch, refCodeSearch);\n }\n }\n }\n else if (text.indexOf(separator2) > -1) {\n terms = text.split(separator2);\n for (i = 0; i < terms.length; i++) {\n if (!refCodeSearch) {\n //term search link\n html += this.createICD10SearchLink(this.searchtype, terms[i], this.highlightText(terms[i], this.keywords));\n }\n else {\n //code search link\n html += this.createICD10SearchLink(1, refCodeSearch, refCodeSearch);\n }\n if (i === (terms.length - 1)) {\n html += \", \";\n }\n }\n }\n else {\n if (!refCodeSearch) {\n //term search link\n html += this.createICD10SearchLink(this.searchtype, text, this.highlightText(text, this.keywords));\n }\n else {\n //code search link\n html += this.createICD10SearchLink(this.searchtype, refCodeSearch, refCodeSearch);\n }\n }\n }\n return html; //without $sce.trustAsHtml(), html will be rendered in plain text\n }\n\n //build the ICD-10 search link\n createICD10SearchLink(searchType: number, searchTerm: string, linkText: string): string {\n const strYear = this.year ? \"&year=\" + this.year : \"\";\n return \"\" +\n linkText + \"\";\n }\n\n buildICD10CodeSearchLinkForIndexSearchResult(codeString: string, codeIconFlags: ICodeIconFlag[], includeResults: boolean): string {\n let html = \"\";\n const codes = (codeString ? codeString.split(\" \") : []);\n\n for (let i = 0; i < codes.length; i++) {\n const startIndex = codes[i].indexOf(\"[\");\n const endIndex = codes[i].indexOf(\"]\");\n let code;\n\n if (startIndex > -1 && endIndex > -1) {\n code = codes[i].slice(startIndex + 1, endIndex);\n\n html += \"
\" + this.createICD10CodeDetailsLink(code, includeResults) + \"
\";\n html += \"
\" + this.buildICD10Icons(code, codeIconFlags) + \"
\";\n }\n else {\n code = codes[i];\n\n html += \"
\" + this.createICD10CodeDetailsLink(code, includeResults) + \"
\";\n html += \"
\" + this.buildICD10Icons(code, codeIconFlags) + \"
\";\n }\n }\n\n return html;\n }\n\n //build the ICD-10 code details link\n createICD10CodeDetailsLink(code: string, includeResults: boolean): string {\n\n // strip trailing period from code link\n let codeStripped = code;\n if (code.charAt(code.length - 1) === \".\")\n codeStripped = codeStripped.substring(0, codeStripped.length - 1);\n\n const year = this.year;\n\n let link = \"\" + code + \"\";\n\n return link;\n }\n\n //get list of icons to display for a ICD-10 code (Note: codeIconFlags[i][\"IconNew\"] and codeIconFlags[i][\"IconRevised\"] are not valid properties)\n buildICD10Icons(code: string, codeIconFlags: ICodeIconFlag[]): string {\n if (!codeIconFlags) {\n return \"\";\n }\n\n let html = \"
    \";\n\n for (let i = 0; i < codeIconFlags.length; i++) {\n if (codeIconFlags[i][\"Code\"] === code) {\n if (codeIconFlags[i][\"IconRequires7thDigit\"]) {\n if (code.length === 7) {\n html += \"
  • \";\n }\n else {\n html += \"
  • \";\n }\n }\n else if (!codeIconFlags[i][\"IconRequiresAdditionalDigit\"]) {\n html += \"
  • \";\n\n if (codeIconFlags[i][\"IconPDGM\"]) {\n html += \"
  • \";\n }\n\n if (codeIconFlags[i][\"IconQuestionableEncounter\"]) {\n html += \"
  • \";\n }\n }\n else {\n if (code.length === 3) {\n html += \"
  • \";\n }\n if (code.length === 4) {\n const periodIndex = code.lastIndexOf(\".\");\n const length = code.length - 1;\n if (periodIndex === length) {\n html += \"
  • \";\n }\n }\n if (code.length === 5) {\n html += \"
  • \";\n }\n if (code.length === 6) {\n html += \"
  • \";\n }\n }\n\n break;\n }\n }\n html += \"
\";\n\n return html;\n }\n\n //highlight the searched keywords in a string\n highlightKeywords(text: string, isTermSearch: Boolean): string {\n let html = text;\n\n if (isTermSearch && html) {\n html = this.highlightText(html, this.keywords);\n }\n\n return html;\n }\n\n highlightText(text: string, termString: string): string {\n let html = text;\n const terms = termString.split(\" \");\n\n for (let i = 0; i < terms.length; i++) {\n const word = terms[i];\n if (word !== \"\") {\n //make sure special characters that are used in regular expressions are escaped as literal characters in the word\n const regWord = word\n .replace(\"\\\\\", \"\\\\\\\\\")\n .replace(\"$\", \"\\\\$\")\n .replace(\".\", \"\\\\.\")\n .replace(\"|\", \"\\\\|\")\n .replace(\"?\", \"\\\\?\")\n .replace(\"*\", \"\\\\*\")\n .replace(\"+\", \"\\\\+\")\n .replace(\"(\", \"\\\\(\")\n .replace(\")\", \"\\\\)\")\n .replace(\"[\", \"\\\\[\")\n .replace(\"]\", \"\\\\]\")\n .replace(\"{\", \"\\\\{\")\n .replace(\"}\", \"\\\\}\");\n\n const regExpKeyword = new RegExp(\"(\" + regWord + \")\", \"gi\");\n html = html.replace(regExpKeyword, \"$1\");\n }\n }\n\n return html;\n }\n}","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\n//import icd10CodeDetailsUrl from \"./icd10CodeDetailsUrl.filter\";\nimport { Icd10BrowseComponent } from \"./icd10-browse-component\";\nimport { MappingIcd10CodeComponent } from \"./mappingicd10code.component\";\nimport { Icd10BrowseWebService } from \"./icd10cmBrowseWebService.service\";\nimport { Icd10SearchComponent } from \"./icd10-search.component\";\nimport { Icd10AlphaIndexComponent } from './icd10-alpha-index.component';\nimport { Icd10SearchSlideComponent } from './icd10-search-slide.component';\nimport { Icd10BrowseTreeComponent } from './icd10-browse-tree.component';\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule\n ],\n providers: [\n Icd10BrowseWebService\n ],\n declarations: [\n Icd10BrowseComponent,\n MappingIcd10CodeComponent,\n Icd10SearchComponent,\n Icd10AlphaIndexComponent,\n Icd10SearchSlideComponent,\n Icd10BrowseTreeComponent\n ]\n})\nexport class Icd10Module { }\n\n\n\n//export default angular.module(\"codingCenterApp.icd10\", [])\n// .directive(\"icd10Browse\", downgradeComponent({ component: Icd10BrowseComponent }))\n// .directive(\"icd10Search\", downgradeComponent({ component: Icd10SearchComponent }))\n// .directive(\"mappingIcd10Code\", downgradeComponent({component: MappingIcd10CodeComponent}))\n// .factory(\"icd10CmBrowseWebService\", downgradeInjectable(Icd10BrowseWebService))\n// // .filter(\"icd10CodeDetailsUrl\", icd10CodeDetailsUrl)\n// .directive(\"icd10AlphaIndex\", downgradeComponent({ component: Icd10AlphaIndexComponent }))\n// .directive(\"icd10SearchSlide\", downgradeComponent({ component: Icd10SearchSlideComponent }))\n// .directive(\"icd10BrowseTree\", downgradeComponent({ component: Icd10BrowseTreeComponent}))\n// .name;\n","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\nimport * as models from \"./icd10.models\";\n\nexport interface IIcd10BrowseWebService {\n loadChapter(chapterId: number): Promise;\n loadSection(sectionId: number): Promise;\n loadCode(sectionId: number, parentCode: string): Promise;\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class Icd10BrowseWebService implements IIcd10BrowseWebService {\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n loadChapterTree(codeYear) {\n var url = \"/MVC/ICD10/BrowseChapterTree\";\n if (codeYear)\n url = url + \"?year=\" + codeYear;\n return this.http.get(url).toPromise();\n }\n loadChapter(chapterId) {\n const url = \"/MVC/ICD10/BrowseChapter?id=\" + chapterId;\n return this.http.get(url).toPromise();\n }\n\n loadSection(sectionId) {\n const url = \"/MVC/ICD10/BrowseSection?id=\" + sectionId;\n return this.http.get(url).toPromise();\n }\n\n loadCode(sectionId, parentCode) {\n const url = \"/MVC/ICD10/BrowseCode?sectionId=\" +\n encodeURIComponent(sectionId) +\n \"&parentCode=\" +\n encodeURIComponent(parentCode);\n return this.http.get(url).toPromise();\n }\n}\n","import { Component, Inject, Input, OnInit } from '@angular/core';\n\nimport { ICD10SearchService } from './icd10-search.service';\nimport { IOasisCrosslink } from './icd10.models';\nimport mappingICD10Template from './mapping-icd10-code.html';\n\n\n\n@Component({\n selector: 'mapping-icd10-code',\n template: mappingICD10Template\n})\n\nexport class MappingIcd10CodeComponent {\n @Input() code: string;\n @Input() maximize: boolean;\n\n // props\n OASISXLinks: IOasisCrosslink[] = [];\n OASISXLinksDisplay: IOasisCrosslink[] = [];\n WidgetLength: number = 10;\n\n // Data display properties\n ICD10Code: string = \"\";\n RelatedCodesData: string = \"\";\n\n MappingPageSize: number = 15;\n MappingPageIndex: number = 1;\n MappingPageMin: number = 1;\n TotalItems: number = 0;\n\n tryCounter: number = 0;\n GemsLoaded: boolean = false;\n\n constructor(@Inject(ICD10SearchService)private icd10SearchService: ICD10SearchService) {\n\n }\n\n ngOnInit() {\n this.loadOASISWidget(this.code, this.maximize);\n }\n\n // Load the OASIS Crosslinks\n loadOASISWidget(pCode: string, maximize: boolean) {\n this.icd10SearchService.getOasisMappings(pCode).then(response => {\n const data = response;\n if (data) {\n this.OASISXLinks = (data);\n this.OASISXLinksDisplay = maximize ? data : data.slice(0, 6);\n } else {\n // Sometimes we erroneously get no data, so attempt again\n console.log(\"no OASIS Crosslink data, try again; GEM attempt number \" + this.tryCounter);\n if (this.tryCounter < 2) {\n this.tryCounter++;\n this.loadOASISWidget(pCode, maximize);\n }\n }\n },\n response => {\n console.error(response);\n });\n }\n\n \n}\n","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { BehaviorSubject, Observable, Subject, Subscription } from 'rxjs';\nimport { Icd9MappingService } from './icd9Mapping.service';\nimport icd9MappingModalTemplate from './icd9-mapping-modal.html';\n\n@Component({\n selector: 'icd9-mapping-modal',\n template: icd9MappingModalTemplate\n})\nexport class ICD9MappingModalComponent {\n\n showFullCategory: Boolean;\n showRelatedCodes: Boolean;\n showNoCrosswalks: Boolean;\n\n mappingPageSize: number = 15;\n mappingPageIndex: number = 1;\n mappingPageMin: number = 1;\n mappingPageMax: number;\n totalItems: number = 0;\n firstItem: number;\n lastItem: number;\n\n exactCrosswalks: any;\n approxCrosswalks: any;\n comboCrosswalks: any;\n relatedCodes: any;\n\n exactDisplay: any;\n approxDisplay: any;\n comboDisplay: any;\n comboItems: any;\n scenarioCombo: any;\n mappingPaging: any;\n\n comboCount: number;\n icd9Code: string;\n\n noResults: Boolean = false;\n\n crosswalksSub: Subscription;\n\n constructor(@Inject(Icd9MappingService) private icd9MappingService: Icd9MappingService) {\n this.crosswalksSub = this.icd9MappingService.crosswalksLoaded.subscribe(() => {\n this.updateValues();\n })\n }\n\n ngOnInit() {\n \n $(\".fullCategory\").hide();\n $(\".relatedCodesSection\").hide();\n }\n\n updateValues() {\n this.exactCrosswalks = this.icd9MappingService.getExactCrosswalks();\n this.approxCrosswalks = this.icd9MappingService.getApproxCrosswalks();\n this.comboCrosswalks = this.icd9MappingService.getComboCrosswalks();\n this.relatedCodes = this.icd9MappingService.getRelatedCodes();\n this.comboCount = this.icd9MappingService.getComboCount();\n this.icd9Code = this.icd9MappingService.getPCode();\n\n // Calculate the total items and number of pages\n this.totalItems = this.exactCrosswalks.length + this.approxCrosswalks.length + this.comboCount;\n this.mappingPageMax = Math.floor(this.totalItems / this.mappingPageSize);\n const mod = this.totalItems % this.mappingPageSize;\n if (mod > 0) {\n this.mappingPageMax++;\n }\n\n if (this.totalItems > 0) {\n this.noResults = false;\n this.displayCrosswalks(1);\n }\n else {\n this.noResults = true;\n }\n };\n\n // Display the crosswalk info on page\n displayCrosswalks (pageIndex) {\n // We don't want to see related codes section on initial load or page change\n this.showRelatedCodes = false;\n\n this.firstItem = ((pageIndex - 1) * this.mappingPageSize) + 1;\n this.lastItem = this.firstItem + this.mappingPageSize;\n\n let itemsRemaining = this.mappingPageSize;\n\n // Display the exact crosswalks section\n if (this.exactCrosswalks !== null && this.exactCrosswalks.length > 0 && this.firstItem <= this.exactCrosswalks.length) {\n var startIndex = this.firstItem - 1;\n var endIndex = this.lastItem;\n\n if (this.lastItem > this.exactCrosswalks.length) {\n endIndex = this.exactCrosswalks.length;\n }\n else {\n this.approxDisplay = [];\n this.comboDisplay = [];\n itemsRemaining = 0;\n }\n\n this.exactDisplay = this.exactCrosswalks.slice(startIndex, endIndex);\n itemsRemaining = itemsRemaining - this.exactDisplay.length;\n }\n else {\n this.exactDisplay = [];\n }\n\n // Display the approximate crosswalks section\n if (this.approxCrosswalks !== null && this.approxCrosswalks.length > 0 && itemsRemaining > 0 && this.firstItem <= (this.exactCrosswalks.length + this.approxCrosswalks.length)) {\n startIndex = 0;\n\n // If we don't have any exact displayed, we might not be on the first page\n if (this.exactDisplay.length === 0) {\n startIndex = this.firstItem - this.exactCrosswalks.length - 1;\n }\n\n endIndex = startIndex + itemsRemaining + 1;\n\n if (this.lastItem > this.exactCrosswalks.length + this.approxCrosswalks.length) {\n endIndex = this.approxCrosswalks.length;\n }\n else {\n this.comboDisplay = [];\n itemsRemaining = 0;\n }\n\n this.approxDisplay = this.approxCrosswalks.slice(startIndex, endIndex);\n itemsRemaining = itemsRemaining - (this.exactDisplay.length + this.approxDisplay.length);\n }\n else {\n this.approxDisplay = [];\n }\n\n // Display the combination crosswalks section\n if (this.comboCrosswalks !== null && this.comboCrosswalks.length > 0 && itemsRemaining > 0\n && this.firstItem <= (this.exactCrosswalks.length + this.approxCrosswalks.length + this.comboCount)) {\n startIndex = 0;\n\n // If we don't have any exact or approximate displayed, we might not be on the first page\n if (this.exactDisplay.length === 0 && this.approxDisplay.length === 0) {\n startIndex = this.firstItem - (this.exactCrosswalks.length + this.approxCrosswalks.length) - 1;\n }\n\n endIndex = startIndex + itemsRemaining + 1;\n\n if (this.lastItem > this.comboCount) {\n endIndex = this.comboCount;\n }\n\n this.comboItems = [];\n\n let k = 0;\n\n for (var i = 0; i < this.comboCrosswalks.length; i++) {\n this.scenarioCombo = [];\n for (let j = 0; j < this.comboCrosswalks[i].length; j++) {\n if (k >= startIndex && k < endIndex) {\n this.scenarioCombo.push(this.comboCrosswalks[i][j]);\n }\n k++;\n }\n if (this.scenarioCombo.length > 0) {\n this.comboItems.push(this.scenarioCombo);\n }\n }\n\n this.comboDisplay = this.comboItems;\n }\n else {\n this.comboDisplay = [];\n }\n\n //setup paging links\n this.mappingPageIndex = pageIndex;\n const mod = this.mappingPageIndex % 4;\n switch (mod) {\n case 1:\n this.mappingPaging = [this.mappingPageIndex, (this.mappingPageIndex + 1), (this.mappingPageIndex + 2), (this.mappingPageIndex + 3)];\n break;\n case 2:\n this.mappingPaging = [(this.mappingPageIndex - 1), this.mappingPageIndex, (this.mappingPageIndex + 1), (this.mappingPageIndex + 2)];\n break;\n case 3:\n this.mappingPaging = [(this.mappingPageIndex - 2), (this.mappingPageIndex - 1), this.mappingPageIndex, (this.mappingPageIndex + 1)];\n break;\n case 0:\n this.mappingPaging = [(this.mappingPageIndex - 3), (this.mappingPageIndex - 2), (this.mappingPageIndex - 1), (this.mappingPageIndex)];\n break;\n }\n for (let i = 3; i > 0; i--) {\n if (this.mappingPaging[i] > this.mappingPageMax) {\n this.mappingPaging = this.mappingPaging.slice(0, i);\n }\n }\n\n if (this.exactDisplay.length > 0 || this.approxDisplay.length > 0 || this.comboDisplay.length > 0) {\n setTimeout(() => {\n this.initRelatedCodes();\n }, 500);\n }\n else {\n setTimeout(() => {\n this.showNoCrosswalks = true;\n $(\"#noi9crosswalks\").show();\n }, 500);\n }\n };\n\n crosswalkMouseover(thisTR, code) {\n \n\n // let code = $(this).find(\".fullCategory\").attr(\"code\");\n\n code = code.replace(\".\", \"\");\n\n $(\".current\").removeClass(\"current\");\n $(\"#code\" + code).addClass(\"current\");\n\n const baseCode = code.substring(0, 3);\n let parentCodeClass = \"parentCode\" + code.substring(0, code.length - 1);\n\n $(\".relatedCodesSection\").hide();\n $(\"table.icd10crosswalks tr\").css(\"background-color\", \"\");\n $(\".comboCode\").css(\"background-color\", \"\");\n\n $(\".relatedCodesSection[code='\" + baseCode + \"']\").show();\n $(\".relatedChild\").hide();\n $(\".parentCode\").show();\n\n //13 because 'parentCode' + 3 letters for code before the '.' \n while (parentCodeClass.length >= 13) {\n $(\".\" + parentCodeClass).show();\n parentCodeClass = parentCodeClass.substring(0, parentCodeClass.length - 1);\n }\n\n $(this).css(\"background-color\", \"#fee5a0\");\n }\n\n // Function for initializing the related codes section of the I9 code mapper once it has been set from the mappingicd9codecontroller controller\n initRelatedCodes() {\n\n //this.showFullCategory = false;\n $(\".fullCategory\").hide();\n\n // Display related codes on mouseover for exact/approx sections\n $(\"table.icd10crosswalks tr\").mouseenter(function () {\n\n let code = $(this).find(\".fullCategory\").attr(\"code\");\n\n code = code.replace(\".\", \"\");\n\n $(\".current\").removeClass(\"current\");\n $(\"#code\" + code).addClass(\"current\");\n\n const baseCode = code.substring(0, 3);\n let parentCodeClass = \"parentCode\" + code.substring(0, code.length - 1);\n\n $(\".relatedCodesSection\").hide();\n $(\"table.icd10crosswalks tr\").css(\"background-color\", \"\");\n $(\".comboCode\").css(\"background-color\", \"\");\n\n $(\".relatedCodesSection[code='\" + baseCode + \"']\").show();\n $(\".relatedChild\").hide();\n $(\".parentCode\").show();\n\n //13 because 'parentCode' + 3 letters for code before the '.' \n while (parentCodeClass.length >= 13) {\n $(\".\" + parentCodeClass).show();\n parentCodeClass = parentCodeClass.substring(0, parentCodeClass.length - 1);\n }\n\n $(this).css(\"background-color\", \"#fee5a0\");\n });\n\n // Display related codes on mouseover for combination sections \n $(\".comboCode\").mouseenter(function () {\n\n let code = $(this).find(\".fullCategory\").attr(\"code\");\n\n code = code.replace(\".\", \"\");\n\n $(\".current\").removeClass(\"current\");\n $(\"#code\" + code).addClass(\"current\");\n\n const baseCode = code.substring(0, 3);\n let parentCodeClass = \"parentCode\" + code.substring(0, code.length - 1);\n\n $(\".relatedCodesSection\").hide();\n $(\"table.icd10crosswalks tr\").css(\"background-color\", \"\");\n $(\".comboCode\").css(\"background-color\", \"\");\n\n $(\".relatedCodesSection[code='\" + baseCode + \"']\").show();\n $(\".relatedChild\").hide();\n $(\".parentCode\").show();\n\n //13 because 'parentCode' + 3 letters for code before the '.' \n while (parentCodeClass.length >= 13) {\n $(\".\" + parentCodeClass).show();\n parentCodeClass = parentCodeClass.substring(0, parentCodeClass.length - 1);\n }\n\n $(this).css(\"background-color\", \"#fee5a0\");\n });\n\n if ($(\"table.icd10crosswalks tr\").length > 0) {\n $(\"table.icd10crosswalks tr\").first().mouseenter();\n }\n else if ($(\".comboCode\").length > 0) {\n $(\".comboCode\").first().mouseenter();\n }\n }\n\n relatedChildClass(rc) {\n var theCode = rc.Code;\n var codeAfter = \"\";\n\n if (theCode.indexOf(\".\") > -1) {\n codeAfter = theCode.substring(theCode.indexOf(\".\") + 1);\n }\n\n const level = \"level\" + codeAfter.length;\n const codeDigits = theCode.replace(\".\", \"\");\n const parentCode = \"parentCode\" + (codeAfter.length === 0 ? \"\" : codeDigits.substring(0, codeDigits.length - 1));\n return \"relatedChild \" + level + \" \" + parentCode;\n }\n\n relatedChildId(rc) {\n var theCode = rc.Code;\n var codeAfter = \"\";\n\n if (theCode.indexOf(\".\") > -1) {\n codeAfter = theCode.substring(theCode.indexOf(\".\") + 1);\n }\n const codeDigits = theCode.replace(\".\", \"\");\n return \"code\" + (codeAfter.length === 0 ? \"\" : codeDigits);\n }\n\n\n}\n","import { Component, Inject, Input, ViewChild } from '@angular/core';\nimport { Icd9MappingService } from './icd9Mapping.service';\nimport icd9MappingWidgetTemplate from './icd9-mapping-widget.html';\nimport { ICD9MappingModalComponent } from './icd9-mapping-modal.component';\n\n@Component({\n selector: 'icd9-mapping-widget',\n template: icd9MappingWidgetTemplate\n})\nexport class ICD9MappingWidgetComponent {\n @ViewChild(ICD9MappingModalComponent) icd9MappingModal;\n constructor(@Inject(Icd9MappingService)private icd9MappingService: Icd9MappingService) {\n\n }\n\n @Input() pcode: string;\n @Input() maximize: string;\n\n tryCount: number;\n widgetTotal: number;\n widgetLength: number;\n gemsLoaded: Boolean;\n tryCounter: number;\n exactWidget: any[];\n approxWidget: any[];\n comboWidget: any[];\n\n\n loadWidget(pCode, maximize) {\n this.gemsLoaded = false;\n this.widgetLength = 10;\n this.tryCounter = 0;\n this.exactWidget = [];\n this.approxWidget = [];\n this.comboWidget = [];\n\n this.icd9MappingService.getMappings(pCode).then(\n (response) => this.ajaxCallbackSuccess(response, pCode, maximize),\n (response) => {\n console.error({ method: \"icd9MappingWidget.$scope.LoadMappingWidget\", response: response });\n });\n }\n\n // Map the submitted code to I10 codes and show the results in a modal display\n mapToICD10Codes(pCode) {\n console.log(pCode);\n this.icd9MappingService.fullMappings(pCode);\n }\n\n viewAll(pCode) {\n this.icd9MappingService.pCode = pCode;\n }\n\n ajaxCallbackSuccess = function (response, pCode, maximize) {\n if (response.status === 200) {\n const data = response;\n if (data !== \"\") {\n // Get the items for the code details widget\n this.widgetTotal = data.ExactCrosswalks.length + data.ApproxCrosswalks.length + data.ComboCount;\n\n if (this.WidgetTotal > 0) {\n let remainingWidget = this.widgetLength;\n\n if (data.ExactCrosswalks.length > 0) {\n let exactLength = 0;\n if (data.ExactCrosswalks > remainingWidget) {\n exactLength = remainingWidget;\n remainingWidget = 0;\n }\n else {\n exactLength = data.ExactCrosswalks.length;\n remainingWidget = remainingWidget - data.ExactCrosswalks.length;\n }\n\n if (maximize) {\n this.exactWidget = data.ExactCrosswalks;\n }\n else {\n this.exactWidget = data.ExactCrosswalks.slice(0, exactLength);\n }\n }\n\n if (data.ApproxCrosswalks.length > 0) {\n let approxLength = 0;\n if (data.ApproxCrosswalks.length > remainingWidget) {\n approxLength = remainingWidget;\n remainingWidget = 0;\n }\n else {\n approxLength = data.ApproxCrosswalks.length;\n remainingWidget = remainingWidget - data.ApproxCrosswalks.length;\n }\n\n if (maximize) {\n this.approxWidget = data.ApproxCrosswalks;\n }\n else {\n this.approxWidget = data.ApproxCrosswalks.slice(0, approxLength);\n }\n }\n\n this.comboWidget = [];\n\n for (let i = 0; i < data.ComboCrosswalks.length; i++) {\n for (let j = 0; j < data.ComboCrosswalks[i].length; j++) {\n if (maximize === true || remainingWidget > 0) {\n this.comboWidget.push(data.ComboCrosswalks[i][j]);\n remainingWidget--;\n }\n }\n }\n this.gemsLoaded = true;\n }\n }\n else {\n // Sometimes we erroneously get no data, so attempt again\n if (this.tryCounter < 2) {\n this.tryCounter++;\n this.loadWidget(pCode, maximize);\n }\n }\n } else {\n // any other HTTPStatusCode is considered an error\n console.error({\n method: \"icd9MappingWidget.$scope.LoadMappingWidget\",\n response: response\n });\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\n//import icd9CodeDetailsUrl from \"./icd9CodeDetailsUrl.filter\";\nimport {ICD9MappingModalComponent } from \"./icd9-mapping-modal.component\";\nimport { Icd9MappingService } from \"./icd9Mapping.service\";\nimport { ICD9MappingWidgetComponent } from \"./icd9-mapping-widget.component\";\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule\n ],\n providers: [\n Icd9MappingService\n ],\n declarations: [\n ICD9MappingModalComponent,\n ICD9MappingWidgetComponent\n ]\n})\nexport class Icd9Module { }\n\n","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\nimport { BehaviorSubject, Observable, Subject, Subscription } from 'rxjs';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class Icd9MappingService {\n\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n pCode:string = '';\n ExactCrosswalks: any = [];\n ApproxCrosswalks: any = [];\n ComboCrosswalks: any = [];\n ComboCount: any = [];\n RelatedCodes: any = [];\n\n // Observable for when event list has been updated\n crosswalksLoaded = new Subject();\n\n\ngetPCode() {\n return this.pCode;\n}\n getExactCrosswalks() {\n return this.ExactCrosswalks;\n }\n getApproxCrosswalks() {\n return this.ApproxCrosswalks;\n }\n getComboCrosswalks() {\n return this.ComboCrosswalks;\n }\n getComboCount() {\n return this.ComboCount;\n }\n getRelatedCodes() {\n return this.RelatedCodes;\n }\n getMappings(code) {\n this.pCode = code;\n const parameters = {params: {code: code}};\n\n return this.http.get(\"/MVC/ICD9/GetI10Mappings\", parameters).toPromise();\n }\n fullMappings(code) {\n this.pCode = code;\n const parameters = {params: {code: code}};\n\n this.http.get('/MVC/ICD9/GetI10Mappings', parameters).toPromise().then(\n (response) => {\n const data = response;\n if (data !== \"\") {\n // Save mapped code data for display \n this.ExactCrosswalks = data.ExactCrosswalks;\n this.ApproxCrosswalks = data.ApproxCrosswalks;\n this.ComboCrosswalks = data.ComboCrosswalks;\n this.ComboCount = data.ComboCount;\n this.RelatedCodes = data.RelatedCodes;\n\n this.crosswalksLoaded.next(\"loaded\");\n }\n },\n function (response) {\n console.error(response);\n });\n }\n }\n\n","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { LibraryService } from './library.service';\nimport { ICategory, ISubCategory } from './library.models';\nimport libraryTemplate from './library.html';\n\n\n@Component({\n selector: 'library',\n template: libraryTemplate\n})\nexport class LibraryComponent implements OnInit {\n\n @Input() categoryid: string;\n\n categoryId: string;\n categoryList: ICategory[];\n categoryName: string;\n loading: boolean = false;\n predicate: { [id: string]: string } = {};\n productId: number = 1;\n reverse: { [id: string]: boolean } = {};\n subCategories: ISubCategory[] = [];\n\n constructor(@Inject(LibraryService) private libraryService: LibraryService) {\n\n }\n\n \n\n // Load the library files for the given categoryId\n ngOnInit() {\n const self = this;\n if (this.categoryid) {\n\n this.loading = true;\n this.libraryService.getCategory(this.categoryid, this.productId.toString()).then(response => {\n \n const data = response;\n this.categoryName = data[0].categoryName;\n this.subCategories = data;\n\n for (let i = 0; i < this.subCategories.length; i++) {\n const subCat = this.subCategories[i];\n this.predicate[subCat.categoryName] = \"Year\";\n this.reverse[subCat.categoryName] = true;\n }\n\n this.loading = false;\n });\n\n }\n }\n\n sortBy(libraryFiles: any, prop: string) {\n return libraryFiles.sort((a, b) => a[prop] > b[prop] ? 1 : a[prop] === b[prop] ? 0 : -1);\n }\n\n // Sort the search results\n orderFiles(subCat: string, predicate: string) {\n this.reverse[subCat] = (this.predicate[subCat] === predicate) ? !this.reverse[subCat] : false;\n this.predicate[subCat] = predicate;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { LibraryService } from './library.service';\nimport { LibraryComponent } from \"./library.component\";\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule\n ],\n providers: [\n LibraryService\n ],\n exports: [\n LibraryComponent\n ],\n declarations: [\n LibraryComponent\n ]\n})\nexport class LibraryModule { }\n\n//export default angular.module(\"codingCenterApp.library\", [])\n// .factory(\"LibraryService\", downgradeInjectable(LibraryService))\n// .directive(\"library\", downgradeComponent({ component: LibraryComponent }))\n// .name;\n","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\n\nimport { ICategory, ISubCategory } from './library.models';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class LibraryService {\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n url: string = \"/MVC/Library/\";\n\n getCategory(categoryId: string, productId: string) : Promise {\n\n const params = { params: { categoryId: categoryId, productId: productId, sortBy: \"LibraryFileId\" } };\n return this.http.get(this.url + \"GetLibraryFiles\", params).toPromise();\n }\n}","import { Component, EventEmitter, Inject, Input, OnInit, Output } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { LoginService } from './login.service';\n\nimport eulaTemplate from './eula-modal.html';\n\n@Component({\n selector: 'eula-modal',\n template: eulaTemplate\n})\nexport class EulaModalComponent {\n\n loginError: string;\n\n @Input() username: string;\n @Input() rememberme: boolean;\n @Output() public eulaAccepted = new EventEmitter();\n\n constructor(@Inject(LoginService) private loginService: LoginService, @Inject(DOCUMENT) public document: Document) {\n\n }\n\n acceptEula() {\n this.loginService.acceptedEula(this.username, this.rememberme).then(data => {\n if (data == \"\") {\n this.eulaAccepted.emit(true); \n }\n else {\n this.loginError = \"The system is unable to process your login request. Please contact Customer Service for help.\";\n this.eulaAccepted.emit(false);\n }\n }).catch(() => {\n this.loginError = \"The system is unable to process your login request. Please contact Customer Service for help.\";\n this.eulaAccepted.emit(false);\n });\n }\n\n declineEula(): void {\n this.eulaAccepted.emit(false);\n \n }\n}\n","///\nimport { Component, EventEmitter, Inject, Input, OnInit, Output } from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { LoginService } from './login.service';\n\nimport loginTemplate from './login.html';\nimport { areAllEquivalent } from '@angular/compiler/src/output/output_ast';\n\n@Component({\n selector: 'login',\n template: loginTemplate\n})\nexport class LoginComponent {\n\n loginError: string;\n showEula: boolean = false;\n userName: string;\n password: string;\n rememberMe: boolean = false;\n\n\n constructor(@Inject(LoginService) private loginService: LoginService, @Inject(DOCUMENT) public document: Document) {\n\n }\n\n displayEula() {\n this.showEula = true;\n }\n\n public onEulaAccepted(value): void {\n if (value) {\n this.document.location.href = '/MVC/';\n }\n else {\n this.showEula = false;\n }\n }\n\n logUserIn() {\n this.loginService.logUserIn(this.userName, this.password, this.rememberMe).then(data => {\n if (data == \"\") {\n this.document.location.href = '/MVC/';\n }\n else if (data == \"SHOW_EULA\") {\n this.displayEula();\n }\n else {\n this.loginError = data;\n }\n }).catch((e) => {\n console.log(e);\n this.loginError = \"The system is unable to process your login request. Please contact Customer Service for help.\";\n });\n\n }\n\n}","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { LoginComponent } from \"./login.component\";\nimport { LoginService } from \"./login.service\";\nimport { EulaModalComponent } from \"./eula-modal.component\";\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule\n ],\n providers: [\n LoginService\n ],\n declarations: [\n LoginComponent,\n EulaModalComponent\n ]\n})\nexport class LoginModule { }\n\n","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient, HttpHeaders, HttpParams } from \"@angular/common/http\";\n\n@Injectable({\n providedIn: 'root'\n})\nexport class LoginService {\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n logUserIn(userName, password, rememberMe) {\n \n const base64Credential: string = btoa(userName + ':' + password);\n const headers = { 'Authorization': 'Basic ' + base64Credential, 'Content-Type': 'application/json' };\n\n return this.http.post(\"/mvc/api/Account/Login\", JSON.stringify(rememberMe), { headers: headers }).toPromise().then(result => {\n return result;\n }, result => {\n console.error(\"loginService-login\", result);\n return result;\n });\n }\n\n acceptedEula(userName, rememberMe) {\n \n const parameters = {\n params: {\n username: userName,\n isPersistent: rememberMe ? String(rememberMe) : \"false\"\n }\n };\n return this.http.get(\"/mvc/api/Account/AcceptedEula\", parameters).toPromise().then(result => {\n return result;\n }, result => {\n console.error(\"loginService-acceptedEula\", result);\n return result;\n });\n }\n\n}\n","\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\nimport { AppModule } from './app.module';\n\n\n\nplatformBrowserDynamic().bootstrapModule(AppModule)\n .catch(err => console.log(err));\n","///\n\nimport { Component, EventEmitter, Inject, Input, ViewChild, Output } from '@angular/core';\nimport * as adminUserModels from '../manage-users.models';\nimport { AddUserService } from '../add-user/add-user.service';\nimport { FormsModule, ReactiveFormsModule, NgForm } from '@angular/forms';\n\nimport addUserTemplate from './add-user.html';\n\nconst CUSTOMER_SERVICE_PHONE = \"800-650-6787\";\n\n\n@Component({\n selector: 'add-user',\n template: addUserTemplate\n})\nexport class AddUserComponent {\n\n @Input() users: adminUserModels.IHHCCUser[];\n @Input() servicelevels: adminUserModels.IHHCCMembership[];\n @Input() addons: adminUserModels.IHHCCMembership[];\n\n @Output() addcompleted = new EventEmitter();\n @Output() public onedit = new EventEmitter();\n @ViewChild('formUsername', { read: NgForm }) formUsername: any;\n @ViewChild('formNewUser', { read: NgForm }) formNewUser: any;\n showUsernameForm: boolean = true;\n showNewUserForm: boolean = false;\n notification: adminUserModels.INotification = {\n Show: false,\n Message: '',\n CssClass: ''\n };\n confirmEditUser: boolean = false;\n confirmEditText: string = '';\n editUser: adminUserModels.IHHCCUser;\n currentDate: Date = new Date();\n \n\n constructor(@Inject(AddUserService) private addUserService: AddUserService) {\n\n }\n\n ngOnInit() {\n \n if (!this.users) {\n this.users = [];\n }\n if (!this.servicelevels) {\n this.servicelevels = [];\n }\n if (!this.addons) {\n this.addons = [];\n }\n }\n\n cancel(): void {\n this.clearUsernameForm();\n this.clearNewUserForm();\n this.editUsername(true);\n this.notification.Show = false;\n this.confirmEditUser = false;\n }\n\n clearUsernameForm(): void {\n this.addUserService.clearUsername();\n }\n\n clearNewUserForm(): void {\n this.addUserService.clearNewUser();\n }\n\n validateUsername(): void {\n if (this.formUsername.invalid) {\n return;\n }\n\n this.notification.Show = false;\n\n //make sure the user isn't a member\n if (this.isUserInTable()) {\n this.confirmEditText = 'This user is already a member of your account. Would you like to update the member\\'s personal and/or membership information?';\n this.confirmEditUser = true;\n return;\n }\n\n this.addUserService\n .getUserByUsername(this.addUserService.user.Username.toLowerCase().trim())\n .then(response => {\n let u: adminUserModels.IWebAuthUser | null = response;\n console.debug(u);\n\n if (u != null && u.Id > 0) {\n if (u.Memberships.length > 0) {\n this.notification = {\n Show: true,\n Message: 'This user name/email is already in use. Please call Customer Service toll-free at 800-650-6787.',\n CssClass: \"alert-danger\"\n };\n console.debug(\"validateUsername: false\");\n }\n else {\n this.editUser = {\n CustomerId: u.Customers.length > 0 ? u.Customers[0].Id : 0,\n UserName: u.UserName,\n Email: u.Email,\n FirstName: u.Customers.length > 0 ? u.Customers[0].ProfileAddress.FirstName : '',\n LastName: u.Customers.length > 0 ? u.Customers[0].ProfileAddress.LastName : '',\n Company: u.Customers.length > 0 ? u.Customers[0].ProfileAddress.Company : '',\n IsAdmin: u.IsAdmin,\n IsLockedOut: u.IsLockedOut,\n IsSelected: false,\n ServiceLevel: ''\n };\n\n this.confirmEditText = \"This user name/email is already in use but does not have any HHCC subscriptions. Would you like to add this user to your account?\";\n this.confirmEditUser = true;\n }\n }\n else {\n console.debug(\"validateUsername: true\");\n this.editUsername(false);\n }\n }).catch(response => {\n this.notification = {\n Show: true,\n Message: `An error has occurred while validating the username. Please try again or call Customer Service toll free at ${CUSTOMER_SERVICE_PHONE}.`,\n CssClass: \"alert-danger\"\n };\n console.error(response);\n });\n }\n\n isUserInTable(): boolean {\n for (let user of this.users) {\n if (user.Email.toLowerCase().trim() == this.addUserService.user.Username.toLowerCase().trim()) {\n return true;\n }\n }\n return false;\n }\n\n editUsername(show: boolean): void {\n this.showUsernameForm = show;\n this.showNewUserForm = !show;\n }\n\n displayEditUser(): void {\n let editUsers = this.users.filter(user => user.UserName.toLowerCase().trim() == this.addUserService.user.Username.toLowerCase().trim());\n console.debug(\"filtered edit users: \", editUsers);\n\n if (editUsers.length > 0) {\n //hide confirm message\n this.confirmEditUser = false;\n\n console.debug('display edit user: ', editUsers[0]);\n this.onedit.emit(editUsers[0]);\n }\n else if (this.editUser) {\n this.confirmEditUser = false;\n\n console.debug('display edit user: ', this.editUser);\n this.onedit.emit(this.editUser);\n }\n }\n\n validateNewUser(): boolean {\n if (this.formNewUser.invalid) {\n return false;\n }\n\n this.notification.Show = false;\n let accountCreated: boolean = false;\n\n console.debug(this.addUserService.user);\n\n this.addUserService.addNewUser(this.addUserService.user)\n .then(response => {\n let userId: adminUserModels.INewUserId = response;\n if (userId != null && userId.CustomerId > 0 && userId.UserId > 0) {\n //grant admin role to user\n if (this.addUserService.user.IsAdmin) {\n this.addUserService.grantRoleToUser(userId.UserId, \"ADMIN\");\n }\n\n //link service level membership to user\n if (this.addUserService.user.ServiceLevelMembershipId > 0) {\n for (let sl of this.servicelevels) {\n if (sl.Membership.Id == this.addUserService.user.ServiceLevelMembershipId) {\n this.addUserService.linkMembershipToCustomer(sl.Membership.CustomerId, sl.Membership.Id, userId.CustomerId);\n }\n }\n }\n\n //link add-on membership to user\n for (let aoMembershipId of this.addUserService.user.AddOnMembershipIds) {\n if (aoMembershipId > 0) {\n for (let ao of this.addons) {\n if (ao.Membership.Id == aoMembershipId) {\n this.addUserService.linkMembershipToCustomer(ao.Membership.CustomerId, ao.Membership.Id, userId.CustomerId);\n }\n }\n }\n }\n\n //update status\n accountCreated = true;\n }\n else {\n this.notification = {\n Show: true,\n Message: `An error has occurred while creating the new user. Please try again or call Customer Service toll free at ${CUSTOMER_SERVICE_PHONE}.`,\n CssClass: \"alert-danger\"\n };\n console.debug(\"No new Ids generated\");\n console.debug(userId);\n }\n }).catch(response => {\n this.notification = {\n Show: true,\n Message: `An error has occurred while creating the new user. Please try again or call Customer Service toll free at ${CUSTOMER_SERVICE_PHONE}.`,\n CssClass: \"alert-danger\"\n };\n console.error(response);\n }).finally(() => {\n console.debug('Account created? ', accountCreated);\n if (accountCreated) {\n\n //email user account credentials\n this.addUserService.sendAccountCreatedEmail(this.addUserService.user);\n\n //clear the fields and display the username lookup form\n this.cancel();\n\n //close the add new user modal\n $(\"#modalTransaction\").modal('hide');\n\n //update user and membership tables from parent controller\n this.addcompleted.emit();\n }\n });\n\n return accountCreated;\n }\n\n \n}\n","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\nimport * as adminUsersModels from '../manage-users.models';\n\nexport interface IAddUserService {\n getUserByUsername(username: string): Promise;\n addNewUser(user: adminUsersModels.IAddUser): Promise;\n grantRoleToUser(userId: number, roleCode: string): Promise;\n linkMembershipToCustomer(parentCustomerId: number, membershipId: number, childCustomerId: number): Promise;\n sendAccountCreatedEmail(newUser: adminUsersModels.IAddUser): Promise;\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AddUserService implements IAddUserService {\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n user: adminUsersModels.IAddUser = {\n Username: '',\n Password: '',\n FirstName: '',\n LastName: '',\n Company: '',\n IsAdmin: false,\n ServiceLevelMembershipId: null,\n AddOnMembershipIds: []\n };\n\n clearUsername(): void {\n this.user.Username = '';\n }\n\n clearNewUser(): void {\n this.user.Password = '';\n this.user.FirstName = '';\n this.user.LastName = '';\n this.user.Company = '';\n this.user.IsAdmin = false;\n this.user.ServiceLevelMembershipId = null;\n this.user.AddOnMembershipIds = [];\n }\n\n loadAddUser(addUser: adminUsersModels.IAddUser) {\n this.user = {\n Username: addUser.Username,\n Password: addUser.Password,\n FirstName: addUser.FirstName,\n LastName: addUser.LastName,\n Company: addUser.Company,\n IsAdmin: addUser.IsAdmin,\n ServiceLevelMembershipId: addUser.ServiceLevelMembershipId,\n AddOnMembershipIds: addUser.AddOnMembershipIds.slice()\n };\n }\n\n getUserByUsername(username: string): Promise {\n return this.http.get(\"/MVC/ManageUsers/GetUserByUsername\", { params: { username: username } }).toPromise();\n }\n\n addNewUser(user: adminUsersModels.IAddUser): Promise {\n return this.http.get(\"/MVC/ManageUsers/AddUser\", {\n params: {\n Username: user.Username,\n Password: user.Password,\n FirstName: user.FirstName,\n LastName: user.LastName,\n Company: user.Company,\n IsAdmin: user.IsAdmin.toString(),\n ServiceLevel: user.ServiceLevelMembershipId.toString(),\n AddOns: user.AddOnMembershipIds.toString()\n }\n }).toPromise();\n }\n\n grantRoleToUser(userId: number, roleCode: string): Promise> {\n return this.http.get(\"/MVC/ManageUsers/GrantRoleToUser\", { params: { userId: userId.toString(), roleCode: roleCode } }).toPromise();\n }\n\n linkMembershipToCustomer(parentCustomerId: number, membershipId: number, childCustomerId: number): Promise {\n return this.http.get(\"/MVC/ManageUsers/LinkMembershipToCustomer\",\n {\n responseType: 'text', params:\n { parentCustomerId: parentCustomerId.toString(), membershipId: membershipId.toString(), childCustomerId: childCustomerId.toString() }\n }).toPromise();\n }\n\n sendAccountCreatedEmail(newUser: adminUsersModels.IAddUser): Promise {\n return this.http.get(\"/MVC/ManageUsers/SendNewUserEmail\", {\n responseType: 'text',\n params: {\n firstName: newUser.FirstName,\n lastName: newUser.LastName,\n username: newUser.Username,\n password: newUser.Password\n }\n }).toPromise();\n }\n}","///\nimport { Component, EventEmitter, Inject, Input, ViewChild, Output } from '@angular/core';\nimport * as adminUserModels from '../manage-users.models';\nimport { EditUserService } from './edit-user.service';\nimport { FormsModule, ReactiveFormsModule, NgForm } from '@angular/forms';\n\nimport editUserTemplate from './edit-user.html';\n\nconst CUSTOMER_SERVICE_PHONE = \"800-650-6787\";\n\n@Component({\n selector: 'edit-user',\n template: editUserTemplate\n})\nexport class EditUserComponent {\n\n \n @Input() servicelevels: adminUserModels.IHHCCMembership[];\n @Input() addons: adminUserModels.IHHCCMembership[];\n @Input() sendexistsnotification: boolean;\n @Output() cancelled = new EventEmitter();\n @Output() completed = new EventEmitter();\n @ViewChild('formEditUser', { read: NgForm }) formEditUser: any;\n \n notification: adminUserModels.INotification = {\n Show: false,\n Message: '',\n CssClass: ''\n };\n currentDate: Date = new Date();\n\n constructor(@Inject(EditUserService) private editUserService: EditUserService) {\n\n }\n\n ngOnInit() {\n \n \n if (!this.servicelevels) {\n this.servicelevels = [];\n }\n if (!this.addons) {\n this.addons = [];\n }\n }\n\n cancel(): void {\n this.notification.Show = false;\n this.cancelled.emit();\n //close the edit user modal\n $('#modalTransaction').modal('hide');\n }\n\n validateEditUser(): void {\n if (this.formEditUser.invalid) {\n return;\n }\n\n this.notification.Show = false;\n\n this.editUserService.updateUser(this.editUserService.user).then(response => {\n let sendUserMembershipUpdateEmail: boolean = false;\n\n if ((this.editUserService.user.ServiceLevelMembershipId != this.editUserService.user.PreviousServiceLevel\n || this.editUserService.user.AddOnMembershipIds != this.editUserService.user.PreviousAddOns)\n && !this.sendexistsnotification) {\n sendUserMembershipUpdateEmail = true;\n }\n\n if (sendUserMembershipUpdateEmail) {\n this.editUserService.sendUserUpdateEmailNotification(this.editUserService.user.Email, this.editUserService.user.FirstName, this.editUserService.user.LastName, this.editUserService.user.CustomerId)\n .then(response => { console.debug('message about updated memberships was sent successfully') })\n .catch(response => { console.error('message about updated memberships was sent successfully') })\n\n }\n\n if (this.sendexistsnotification) {\n this.editUserService.sendExistingUserWelcomeEmail(this.editUserService.user.Username, this.editUserService.user.FirstName, this.editUserService.user.LastName).then(response => {\n console.debug('message for existing user was sent successfully')\n }).catch(response => {\n console.error(\"message for existing user wasn't sent\");\n });\n }\n\n //close the edit user modal\n $('#modalTransaction').modal('hide');\n\n //update membership and user tables from the parent controller\n this.completed.emit();\n }).catch(response => {\n console.error('user updated unsucessfully: ', response);\n this.notification = {\n Show: true,\n Message: `An error has occurred while updating the user's account. Please try again or call Customer Service toll free at ${CUSTOMER_SERVICE_PHONE}.`,\n CssClass: \"alert-danger\"\n };\n });\n }\n\n disableServiceLevel(serviceLevel: adminUserModels.IHHCCMembership): boolean {\n if (!serviceLevel.IsActive) {\n return true;\n }\n\n if (serviceLevel.Membership.RemainingChildAccounts > 0) {\n return false;\n }\n\n //if there are no remaining child accounts, allow accounts that already has the add-on membership to uncheck the add-on option\n if (this.editUserService.user.PreviousServiceLevel == serviceLevel.Membership.Id) {\n return false;\n }\n\n return true;\n }\n\n disableAddOn(addOn: adminUserModels.IHHCCMembership): boolean {\n if (!addOn.IsActive) {\n return true;\n }\n\n if (addOn.Membership.RemainingChildAccounts > 0) {\n return false;\n }\n\n //if there are no remaining child accounts, allow accounts that already has the add-on membership to uncheck the add-on option\n let found: boolean = false;\n for (let ao of this.editUserService.user.PreviousAddOns) {\n if (ao == addOn.Membership.Id) {\n found = true;\n }\n }\n\n return !found;\n }\n\n public setFlag(obj: any, property: any, trueValue: any, falseValue: any): any {\n if (obj[property] === trueValue) {\n obj[property] = falseValue;\n } else {\n obj[property] = trueValue;\n }\n }\n}\n","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\nimport * as adminUserModels from '../manage-users.models';\n\nexport interface IEditUserService {\n updateUser(user: adminUserModels.IEditUser);\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class EditUserService implements IEditUserService {\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n user: adminUserModels.IEditUser = {\n Username: '',\n FirstName: '',\n LastName: '',\n Company: '',\n IsAdmin: false,\n ServiceLevelMembershipId: null,\n AddOnMembershipIds: [],\n CustomerId: -1,\n Email: '',\n PreviousServiceLevel: null,\n PreviousAddOns: []\n };\n\n clearUser(): void {\n this.user = {\n Username: '',\n FirstName: '',\n LastName: '',\n Company: '',\n IsAdmin: false,\n ServiceLevelMembershipId: null,\n AddOnMembershipIds: [],\n CustomerId: -1,\n Email: '',\n PreviousServiceLevel: null,\n PreviousAddOns: []\n };\n }\n\n setUser(accountMember: adminUserModels.IAccountMember, serviceLevelMembershipId: number, addOnMembershipIds: number[]): void {\n this.user = {\n Username: accountMember.UserName,\n FirstName: accountMember.FirstName,\n LastName: accountMember.LastName,\n Company: accountMember.Company,\n IsAdmin: accountMember.IsAdmin,\n Email: accountMember.Email,\n CustomerId: accountMember.CustomerId,\n ServiceLevelMembershipId: serviceLevelMembershipId,\n PreviousServiceLevel: serviceLevelMembershipId,\n AddOnMembershipIds: addOnMembershipIds.slice(),\n PreviousAddOns: addOnMembershipIds.slice()\n };\n }\n\n updateUser(user: adminUserModels.IEditUser) {\n var addOns: adminUserModels.IAddOn[] = [];\n for (let ao of user.AddOnMembershipIds) {\n let addOn: adminUserModels.IAddOn = {\n MembershipId: ao\n };\n addOns.push(addOn);\n }\n\n let updateUserModel: any = {\n CustomerId: user.CustomerId,\n FirstName: user.FirstName,\n LastName: user.LastName,\n Company: user.Company,\n IsAdmin: user.IsAdmin,\n ServiceLevel: user.ServiceLevelMembershipId,\n AddOns: addOns\n };\n\n return this.http.put(\"/MVC/ManageUsers/UpdateUser\", updateUserModel, { responseType: 'text'}).toPromise();\n }\n\n sendExistingUserWelcomeEmail(username: string, firstName: string, lastName: string) {\n return this.http.get(\"/MVC/ManageUsers/SendExistingUserWelcomeEmail\", { responseType: 'text', params: { username: username, firstName: firstName, lastName: lastName } }).toPromise();\n }\n\n sendUserUpdateEmailNotification(email: string, firstName: string, lastName: string, customerId: number) {\n return this.http.get(\"/MVC/ManageUsers/SendUserUpdateNotification\", { responseType: 'text', params: { email: email, firstname: firstName, lastname: lastName, customerId: customerId.toString() } }).toPromise();\n }\n\n}","import { Pipe, PipeTransform } from '@angular/core';\nimport { IHHCCUser } from './manage-users.models';\n\n@Pipe({\n name: 'filterUsers'\n})\nexport class FilterUsersPipe implements PipeTransform {\n\n filterColumns: string[] = [\"FirstName\", \"LastName\", \"Email\", \"ServiceLevel\", \"Company\",\"Username\"]\n\n transform(users: Array, searchTerm: string): Array {\n if (searchTerm) {\n let filteredUsers: IHHCCUser[] = [];\n let hasTerm = false;\n users.forEach(user => {\n for (let key of Object.keys(user)) {\n if (this.filterColumns.includes(key) && user[key].toString().toLowerCase().includes(searchTerm.toLowerCase())) {\n filteredUsers.push(user);\n break;\n }\n }\n \n });\n return filteredUsers;\n }\n else {\n return users;\n }\n\n }\n}\n","import { Component, Inject, Input, OnInit } from '@angular/core';\n\nimport { IAccountMember, IAdminUserProfile, IHHCCMembership, IHHCCUser, INotification, TransactionType, UserSortOrder } from './manage-users.models';\nimport { ManageUsersService } from './manage-users.service';\nimport { EditUserService } from './edit-user/edit-user.service';\nimport { AddUserService } from './add-user/add-user.service';\nimport manageUsersTemplate from './manage-users.html';\n\n\n\ninterface ITransactionModal {\n show: boolean;\n transaction: TransactionType;\n}\n\nclass TransactionModal implements ITransactionModal {\n show: boolean = false;\n transaction: TransactionType = TransactionType.None;\n\n constructor(show: boolean, transaction: TransactionType) {\n this.show = show;\n this.transaction = transaction;\n }\n}\n\n\n@Component({\n selector: 'manage-users',\n template: manageUsersTemplate\n})\nexport class ManageUsersComponent {\n\n notification: INotification = {\n Show: false,\n Message: '',\n CssClass: ''\n };\n loadingInfo: boolean = true;\n searchText: string = \"\";\n serviceLevels: IHHCCMembership[] = [];\n addOns: IHHCCMembership[] = [];\n complimentaryAddOns: string[] = [];\n users: IHHCCUser[] = [];\n isAdmin: boolean = false;\n customerId: number = -1;\n userId: number = -1;\n userSortColumn: UserSortOrder = UserSortOrder.LastName;\n userReverseSort: boolean = false;\n userSortOrder: string[] = [\"LastName\", \"FirstName\"];\n transactionModal: TransactionModal = new TransactionModal(false, TransactionType.None);\n sendExistingUserNotficationEmail: boolean = false;\n\n\n constructor(@Inject(ManageUsersService) private usersService: ManageUsersService,\n @Inject(EditUserService) private editUserService: EditUserService, @Inject(AddUserService) private addUserService: AddUserService) {\n\n }\n\n ngOnInit() {\n this.getAdminUser();\n this.sendExistingUserNotficationEmail = false;\n }\n\n getAdminUser() {\n this.loadingInfo = true;\n this.usersService.getAdminUser()\n .then(response => {\n let adminUser: IAdminUserProfile = response;\n this.serviceLevels = adminUser.ServiceLevels.slice();\n this.addOns = adminUser.AddOns.slice();\n this.complimentaryAddOns = adminUser.ComplimentaryAddOns.slice();\n this.users = adminUser.Users.slice();\n this.isAdmin = adminUser.IsAdmin;\n this.customerId = adminUser.AdminCustomerId;\n this.userId = adminUser.AdminUserId;\n this.loadingInfo = false;\n }).catch(response => {\n console.error(response);\n this.notification = {\n Show: true,\n Message: \"Something went wrong while trying to retrieve your user information.\",\n CssClass: \"alert-danger\"\n };\n this.loadingInfo = false;\n });\n }\n\n getSelectedUsersCount(): number {\n let selectedCount: number = 0;\n for (let u of this.users) {\n if (u.IsSelected) {\n selectedCount++;\n }\n };\n return selectedCount;\n }\n\n sortUsers(sortColumn: UserSortOrder) {\n if (this.userSortColumn == sortColumn) {\n //update sort direction\n this.userReverseSort = !this.userReverseSort;\n }\n else {\n //update sort column\n this.userSortColumn = sortColumn;\n this.userReverseSort = false;\n }\n\n this.userSortOrder = this.usersService.getUserSort(this.userSortColumn);\n\n \n }\n\n unlockSelectedUsers() {\n let selectedCount: number = this.getSelectedUsersCount();\n\n for (let u of this.users) {\n if (u.IsSelected) {\n this.usersService.unlockUserAccount(u.CustomerId)\n .then(() => {\n //console.log(\"User unlocked: \" + u.UserName);\n u.IsLockedOut = false;\n }).catch(() => {\n console.error(\"Unable to unlock \" + u.UserName + \" (unlockSelectedUsers)\");\n }).finally(() => {\n selectedCount--;\n if (selectedCount <= 0) {\n this.notification = {\n Show: true,\n Message: \"User(s) were unlocked successfully.\",\n CssClass: \"alert-success\"\n };\n\n this.getAdminUser();\n }\n });\n }\n };\n }\n\n sumAvailableServiceLevels(): number {\n let count: number = 0;\n for (let m of this.serviceLevels) {\n count += m.Membership.RemainingChildAccounts;\n }\n return count;\n }\n\n findServiceLevelMembershipsForUser(selectedUser: IHHCCUser): IHHCCMembership[] {\n let slMemberships: IHHCCMembership[] = [];\n\n this.serviceLevels.forEach(serviceLevelMembership => {\n for (let customer of serviceLevelMembership.Membership.Customers) {\n if (customer.Id == selectedUser.CustomerId) {\n slMemberships.push(serviceLevelMembership);\n }\n }\n });\n\n let slActive: IHHCCMembership[] = slMemberships.filter(m => m.IsActive);\n if (slActive.length > 0) {\n return slActive;\n }\n\n return slMemberships;\n }\n\n findAddOnMembershipsForUser(selectedUser: IHHCCUser): IHHCCMembership[] {\n let aoMemberships: IHHCCMembership[] = [];\n\n this.addOns.forEach(addOnMembership => {\n for (let customer of addOnMembership.Membership.Customers) {\n if (customer.Id == selectedUser.CustomerId) {\n aoMemberships.push(addOnMembership);\n }\n }\n });\n\n let aoActive: IHHCCMembership[] = aoMemberships.filter(m => m.IsActive);\n if (aoActive.length > 0) {\n return aoActive;\n }\n\n return aoMemberships;\n }\n\n setupTransactionModal(transaction: TransactionType): void {\n //display the correct form in the modal\n if (transaction != TransactionType.None) {\n this.transactionModal = new TransactionModal(true, transaction);\n }\n else {\n this.transactionModal = new TransactionModal(false, transaction);\n }\n }\n\n removeUsers(): void {\n this.setupTransactionModal(TransactionType.RemoveUsers);\n }\n\n transferToEdit(user: any) {\n //console.log('transferToEdit: ', user);\n this.loadEditUser(user);\n }\n\n loadEditUser(selectedUser: IHHCCUser): void {\n this.setupTransactionModal(TransactionType.EditUser);\n\n //console.log('loadEditUser: ', selectedUser);\n\n let slMemberships: IHHCCMembership[] = this.findServiceLevelMembershipsForUser(selectedUser);\n //console.log('Service level memberships: ', slMemberships);\n\n let serviceLevelId: number = this.usersService.getServiceLevelMembershipId(slMemberships);\n //console.log('Service level membership ID: ', serviceLevelId);\n\n let aoMemberships: IHHCCMembership[] = this.findAddOnMembershipsForUser(selectedUser);\n let aoMembershipIds: number[] = this.usersService.getAddOnMembershipIds(aoMemberships);\n\n if (slMemberships.length > 0 || aoMemberships.length > 0) {\n this.sendExistingUserNotficationEmail = false;\n }\n else {\n this.sendExistingUserNotficationEmail = true;\n }\n\n this.usersService.getMember(selectedUser.CustomerId).then(result => {\n let accountMember: IAccountMember = result;\n //console.log('getMember: ', accountMember);\n\n this.editUserService.setUser(accountMember, serviceLevelId, aoMembershipIds);\n //console.log('editUser: ', this.editUserService.user);\n }).catch(response => {\n console.error(response);\n this.editUserService.clearUser();\n });\n }\n\n addNewUser(): void {\n this.setupTransactionModal(TransactionType.AddUser);\n }\n\n transactionCancelled(): void {\n \n //hide forms\n this.setupTransactionModal(TransactionType.None);\n\n //clear add user fields for next use\n this.addUserService.clearUsername();\n this.addUserService.clearNewUser();\n\n //clear edit user fields for next use\n this.editUserService.clearUser();\n }\n\n removeCompleted(): void {\n this.transactionCompleted({\n Show: true,\n Message: \"User(s) were removed successfully.\",\n CssClass: \"alert-success\"\n });\n }\n\n updateCompleted(): void {\n this.transactionCompleted({\n Show: true,\n Message: \"User account updated.\",\n CssClass: \"alert-success\"\n });\n }\n\n addCompleted(): void {\n this.transactionCompleted({\n Show: true,\n Message: \"User account created.\",\n CssClass: \"alert-success\"\n });\n }\n\n transactionCompleted(notification: INotification): void {\n //hide forms\n this.setupTransactionModal(TransactionType.None);\n\n //update notification\n this.notification = notification;\n\n //clear add user fields for next use\n this.addUserService.clearUsername();\n this.addUserService.clearNewUser();\n\n //clear edit user fields for next use\n this.editUserService.clearUser();\n\n //refresh membership and user lists\n this.getAdminUser();\n }\n}\n","export enum UserSortOrder {\n LastName = \"LastName\",\n FirstName = \"FirstName\",\n Company = \"Company\",\n Email = \"Email\",\n Username = \"Username\",\n ServiceLevel = \"ServiceLevel\",\n Admin = \"Admin\",\n Locked = \"Locked\"\n}\n\nexport interface IAdminUserProfile {\n AdminCustomerId: number;\n AdminUserId: number;\n IsAdmin: boolean;\n ServiceLevels: IHHCCMembership[];\n AddOns: IHHCCMembership[];\n ComplimentaryAddOns: string[];\n Users: IHHCCUser[];\n}\n\nexport interface IHHCCMembership {\n Membership: IWebAuthMembership;\n IsActive: boolean;\n}\n\nexport interface IWebAuthMembership {\n ChildAccounts: number;\n CreateDate: string;\n CustomerId: number;\n Customers: IWebAuthCustomer[];\n EffectiveDates: IEffectiveDate[],\n ExpirationDate: string;\n GrantedChildAccounts: number;\n GrantedQty: number;\n Id: number;\n IsDeleted: boolean;\n OriginalStartDate: string;\n OwnerIsMember: boolean;\n PlanId: number;\n Plans: IWebAuthPlan[];\n PrevMembershipId: number;\n Qty: number;\n RemainingChildAccounts: number;\n Roles: IWebAuthRole[];\n}\n\nexport interface IWebAuthPlan {\n AfterRegistrationCmsPageId: number;\n Id: number;\n IsDeleted: boolean;\n MembershipRegistrationEmailTemplateId: number;\n Name: string;\n NewMembershipEmailTemplateId: number;\n SendMembershipRegistrationEmails: boolean;\n TermGranularity: string;\n TermLengthType: string;\n}\n\nexport interface IWebAuthRole {\n ApplicationCode: string;\n RoleCode: string;\n}\n\nexport interface IEffectiveDate {\n Id: number;\n MembershipId: number;\n StartDate: string;\n StopDate: string;\n}\n\nexport interface IHHCCUser {\n CustomerId: number;\n FirstName: string;\n LastName: string;\n Email: string;\n UserName: string;\n Company: string;\n ServiceLevel: string;\n IsAdmin: boolean;\n IsLockedOut: boolean;\n IsSelected: boolean;\n}\n\nexport interface IAccountMember {\n CustomerId: number;\n FirstName: string;\n LastName: string;\n Email: string;\n UserName: string;\n Company: string;\n IsAdmin: boolean;\n ServiceLevel: IWebAuthMembership;\n AddOns: IWebAuthMembership[];\n}\n\nexport interface IWebAuthCustomer {\n Id: number;\n Type: string;\n ParentCustomerId: number;\n CreatedInApplicationId: number;\n CreateDate: string;\n LastUpdatedDate: string;\n IsDeleted: boolean;\n DefaultShippingAddressId: number;\n DefaultBillingAddressId: number;\n ProfileAddressId: number;\n Email: string;\n Timezone: string;\n EmailVerificationDate: string;\n ProfileAddress: IAddressDetail;\n Users: IWebAuthUser[];\n}\n\nexport interface IAddressDetail {\n City: string;\n Company: string;\n Country: string;\n CustomerId: number;\n FaxNumber: string;\n FirstName: string;\n Id: number;\n IsDeleted: boolean;\n LastName: string;\n PhoneNumber: string;\n PostalCode: string;\n Region: string;\n Street: string;\n Title: string;\n}\n\nexport interface IWebAuthUser {\n Id: number;\n UserName: string;\n Email: string;\n CreateDate: string;\n LastLoginDate: string;\n IsLockedOut: boolean;\n IsDeleted: boolean;\n LastPasswordChangeDate: string;\n LastFailedPasswordDate: string;\n FailedPasswordCount: number;\n IsAdmin: boolean;\n Links: IWebAuthUserLinks;\n FirstName: string;\n LastName: string;\n Customers: IWebAuthCustomer[];\n Grants: IWebAuthGrant[];\n Roles: IWebAuthRole[];\n Memberships: IWebAuthMembership[];\n}\n\nexport interface IWebAuthGrant {\n Id: number;\n UserId: number;\n ApplicationId: number;\n RoleCode: string;\n GrantedBy: any;\n GrantDate: string;\n IsDeleted: boolean;\n}\n\nexport interface IWebAuthUserLinks {\n Self: IWebAuthUserLinksSelf;\n}\n\nexport interface IWebAuthUserLinksSelf {\n Href: string;\n}\n\nexport interface INotification {\n Show: boolean;\n Message: string;\n CssClass: string;\n}\n\nexport interface IUserBase {\n Username: string;\n FirstName: string;\n LastName: string;\n Company: string;\n IsAdmin: boolean;\n ServiceLevelMembershipId: number | null;\n AddOnMembershipIds: number[];\n}\n\nexport interface IEditUser extends IUserBase {\n CustomerId: number;\n Email: string;\n PreviousServiceLevel: number | null;\n PreviousAddOns: number[];\n}\n\nexport interface IAddUser extends IUserBase {\n Password: string;\n}\n\nexport interface INewUserId {\n CustomerId: number;\n UserId: number;\n}\n\nexport interface IAddOn {\n MembershipId: number;\n}\n\nexport enum TransactionType {\n None = \"None\",\n UnlockUsers = \"UnlockUsers\",\n RemoveUsers = \"RemoveUsers\",\n EditUser = \"EditUser\",\n AddUser = \"AddUser\"\n}","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\nimport { ManageUsersService } from \"./manage-users.service\";\nimport { AddUserService } from \"./add-user/add-user.service\";\nimport { EditUserService } from \"./edit-user/edit-user.service\";\nimport { RemoveUsersService } from \"./remove-users/remove-users.service\";\nimport { ManageUsersComponent } from \"./manage-users.component\";\nimport { MembershipGridComponent } from \"./membership-grid.component\";\nimport { NotificationComponent } from \"./notification.component\";\nimport { AddUserComponent } from \"./add-user/add-user.component\";\nimport { EditUserComponent } from \"./edit-user/edit-user.component\";\nimport { RemoveUsersComponent } from \"./remove-users/remove-users.component\";\nimport { FilterUsersPipe } from \"./filter-users.pipe\";\nimport { SortUsersPipe } from \"./sort-users.pipe\";\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule\n ],\n providers: [\n ManageUsersService,\n AddUserService,\n EditUserService,\n RemoveUsersService\n ],\n declarations: [\n ManageUsersComponent,\n MembershipGridComponent,\n NotificationComponent,\n AddUserComponent,\n EditUserComponent,\n RemoveUsersComponent,\n FilterUsersPipe,\n SortUsersPipe\n\n ]\n})\nexport class ManageUsersModule { }","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\nimport * as adminUsersModels from './manage-users.models';\n\nexport interface IManageUsersService {\n getAdminUser(): Promise;\n unlockUserAccount(userId: number): Promise;\n getMember(customerId: number): Promise;\n getUserSort(sortColumn: adminUsersModels.UserSortOrder): string[];\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ManageUsersService implements IManageUsersService {\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n getAdminUser(): Promise {\n return this.http.get(\"/MVC/ManageUsers/GetAdminUser\").toPromise();\n }\n\n unlockUserAccount(userId: number) {\n return this.http.post(\"/MVC/ManageUsers/UnlockUser\", { userId: userId.toString() }).toPromise();\n }\n\n getServiceLevelMembershipId(slMemberships: adminUsersModels.IHHCCMembership[]): number | null {\n let serviceLevel: adminUsersModels.IHHCCMembership | null = null;\n if (slMemberships.length > 1) {\n let expert: adminUsersModels.IHHCCMembership[] = slMemberships.filter(membership => {\n membership.Membership.Roles.filter(role => {\n role.RoleCode == \"HHCC_EXPERT\"\n }).length > 0\n });\n if (expert.length > 0) {\n serviceLevel = expert[0];\n }\n else {\n let dcpAccess: adminUsersModels.IHHCCMembership[] = slMemberships.filter(membership => {\n membership.Membership.Roles.filter(role => {\n role.RoleCode == \"CPH_ONLINE\"\n }).length > 0\n });\n\n let ccAccess: adminUsersModels.IHHCCMembership[] = slMemberships.filter(membership => {\n membership.Membership.Roles.filter(role => {\n role.RoleCode == \"ICD_ONLINE\"\n }).length > 0\n });\n\n let professional: adminUsersModels.IHHCCMembership[] = dcpAccess.filter(membership => {\n ccAccess.filter(m => {\n m.Membership.Id == membership.Membership.Id\n }).length > 0\n });\n\n if (professional.length > 0) {\n serviceLevel = professional[0];\n }\n else if (ccAccess.length > 0) {\n serviceLevel = ccAccess[0];\n }\n else if (dcpAccess.length > 0) {\n serviceLevel = dcpAccess[0];\n }\n }\n }\n else if (slMemberships.length == 1) {\n serviceLevel = slMemberships[0];\n }\n\n let serviceLevelId: number | null = serviceLevel != null ? serviceLevel.Membership.Id : null;\n return serviceLevelId;\n }\n\n getAddOnMembershipIds(aoMemberships: adminUsersModels.IHHCCMembership[]): number[] {\n let aoMembershipIds: number[] = [];\n for (let ao of aoMemberships) {\n aoMembershipIds.push(ao.Membership.Id.valueOf());\n }\n\n return aoMembershipIds;\n }\n\n getMember(customerId: number): Promise {\n //console.log(customerId);\n return this.http.get(\"/MVC/ManageUsers/GetMember/\", {\n params: {\n customerId: customerId.toString()\n }\n }).toPromise();\n }\n\n getUserSort(sortColumn: adminUsersModels.UserSortOrder): string[] {\n switch (sortColumn) {\n case adminUsersModels.UserSortOrder.FirstName:\n return [\"FirstName\", \"LastName\"];\n case adminUsersModels.UserSortOrder.Email:\n return [\"Email\", \"LastName\", \"FirstName\"];\n case adminUsersModels.UserSortOrder.Username:\n return [\"UserName\", \"LastName\", \"FirstName\"];\n case adminUsersModels.UserSortOrder.Company:\n return [\"Company\", \"LastName\", \"FirstName\"];\n case adminUsersModels.UserSortOrder.ServiceLevel:\n return [\"ServiceLevel\", \"LastName\", \"FirstName\"];\n case adminUsersModels.UserSortOrder.Admin:\n return [\"-IsAdmin\", \"LastName\", \"FirstName\"];\n case adminUsersModels.UserSortOrder.Locked:\n return [\"-IsLockedOut\", \"LastName\", \"FirstName\"];\n default: //adminUsersModels.UserSortOrder.LastName\n return [\"LastName\", \"FirstName\"];\n }\n }\n}","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport * as adminUserModels from './manage-users.models';\n\nimport membershipGridTemplate from './membership-grid.html';\n\n@Component({\n selector: 'membership-grid',\n template: membershipGridTemplate\n})\nexport class MembershipGridComponent {\n @Input() memberships: adminUserModels.IWebAuthMembership[];\n @Input() adminCustomerId: number;\n\n ngOnInit() {\n if (!this.memberships) {\n this.memberships = [];\n }\n if (!this.adminCustomerId) {\n this.adminCustomerId = -1;\n }\n }\n\n getExpiredDate(effectiveDates: adminUserModels.IEffectiveDate[], expiredDate: string): string {\n if (effectiveDates.length > 0) {\n return this.formatDate(effectiveDates[0].StopDate);\n }\n else {\n return this.formatDate(expiredDate);\n }\n }\n\n formatDate(date: string): string {\n let jsDate: Date = new Date(parseInt(date.substr(6)));\n let m: number = jsDate.getMonth() + 1;\n let d: number = jsDate.getDate();\n let y: number = jsDate.getFullYear();\n return m.toString() + \"/\" + d.toString() + \"/\" + y.toString();\n }\n}\n","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport * as adminUserModels from './manage-users.models';\n\nimport notificationTemplate from './notification.html';\n\n@Component({\n selector: 'notification',\n template: notificationTemplate\n})\nexport class NotificationComponent {\n @Input() notification: adminUserModels.INotification;\n\n ngOnInit() {\n if (!this.notification) {\n this.notification = {\n Show: false,\n Message: '',\n CssClass: ''\n };\n }\n }\n}\n","import { Component, EventEmitter, Inject, Input, OnInit, Output } from '@angular/core';\nimport * as adminUserModels from '../manage-users.models';\nimport { RemoveUsersService } from './remove-users.service';\n\nimport removeUsersTemplate from './remove-users.html';\n\n@Component({\n selector: 'remove-users',\n template: removeUsersTemplate\n})\nexport class RemoveUsersComponent {\n\n @Output() completed = new EventEmitter();\n @Output() cancelled = new EventEmitter();\n\n @Input() users: adminUserModels.IHHCCUser[];\n failedUsers: adminUserModels.IHHCCUser[] = [];\n\n\n constructor(@Inject(RemoveUsersService) private removeUsersService: RemoveUsersService) {\n\n }\n\n cancelTransaction(): void {\n this.cancelled.emit();\n }\n\n removeUsers(): void {\n //get list of users to remove\n let selectedUsers: adminUserModels.IHHCCUser[] = this.users.filter(user => user.IsSelected);\n let removeCount: number = selectedUsers.length;\n let failed: adminUserModels.IHHCCUser[] = [];\n\n //remove users and get list of users that cannot be removed\n //this.failedUsers = this.removeUsersService.removeUsers(selectedUsers);\n for (let user of selectedUsers) {\n console.debug('Removing user ' + user.UserName);\n this.removeUsersService.removeUser(user).then(result => {\n console.debug('User removed.');\n }).catch(result => {\n console.error('Remove user error: ', result);\n }).finally(() => {\n removeCount--;\n if (removeCount <= 0) {\n //process the completed event from the parent\n this.completed.emit();\n }\n });\n }\n }\n\n}","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\nimport * as adminUsersModels from '../manage-users.models';\n\nexport interface IRemoveUsersService {\n removeUser(user: adminUsersModels.IHHCCUser): Promise;\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class RemoveUsersService implements IRemoveUsersService {\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n removeUser(user: adminUsersModels.IHHCCUser): Promise {\n return this.http.post(\"/MVC/ManageUsers/RemoveUser\", { customerId: user.CustomerId.toString() }, { responseType: 'text' }).toPromise();\n }\n}","import { Pipe, PipeTransform } from '@angular/core';\nimport { IHHCCUser, UserSortOrder } from './manage-users.models';\n\n@Pipe({\n name: 'sortUsers'\n})\nexport class SortUsersPipe implements PipeTransform {\n\n transform(users: Array, sortColumn: string, userReverseSort:boolean): Array {\n if (sortColumn) {\n\n users.sort((n1, n2) => {\n \n switch (sortColumn) {\n case UserSortOrder.FirstName:\n return this.compareString(n1.FirstName, n2.FirstName, userReverseSort) || this.compareString(n1.LastName, n2.LastName, userReverseSort);\n case UserSortOrder.LastName:\n return this.compareString(n1.LastName, n2.LastName, userReverseSort) || this.compareString(n1.FirstName, n2.FirstName, userReverseSort);\n case UserSortOrder.Email:\n return this.compareString(n1.Email, n2.Email, userReverseSort) || this.compareString(n1.LastName, n2.LastName, userReverseSort) || this.compareString(n1.FirstName, n2.FirstName, userReverseSort);\n case UserSortOrder.Username:\n return this.compareString(n1.UserName, n2.UserName, userReverseSort) || this.compareString(n1.LastName, n2.LastName, userReverseSort) || this.compareString(n1.FirstName, n2.FirstName, userReverseSort);\n case UserSortOrder.Company:\n return this.compareString(n1.Company, n2.Company, userReverseSort) || this.compareString(n1.LastName, n2.LastName, userReverseSort) || this.compareString(n1.FirstName, n2.FirstName, userReverseSort);\n case UserSortOrder.ServiceLevel:\n return this.compareString(n1.ServiceLevel, n2.ServiceLevel, userReverseSort) || this.compareString(n1.LastName, n2.LastName, userReverseSort) || this.compareString(n1.FirstName, n2.FirstName, userReverseSort);\n case UserSortOrder.Admin:\n return this.compareBoolean(n1.IsAdmin, n2.IsAdmin, userReverseSort) || this.compareString(n1.LastName, n2.LastName, userReverseSort) || this.compareString(n1.FirstName, n2.FirstName, userReverseSort);\n case UserSortOrder.Locked: \n return this.compareBoolean(n1.IsLockedOut, n2.IsLockedOut, userReverseSort) || this.compareString(n1.LastName, n2.LastName, userReverseSort) || this.compareString(n1.FirstName, n2.FirstName, userReverseSort);\n \n default: \n return this.compareString(n1.LastName, n2.LastName, userReverseSort) || this.compareString(n1.FirstName, n2.FirstName, userReverseSort);\n }\n });\n return users;\n }\n else {\n return users;\n }\n\n }\n compareString(a:string,b:string,reverse:boolean):number {\n if (reverse) {\n return b.localeCompare(a);\n }\n else {\n return a.localeCompare(b);\n }\n }\n\n compareBoolean(a: boolean, b: boolean, reverse: boolean): number {\n if ((a > b && !reverse) || (a < b && reverse)) {\n return 1;\n }\n else {\n return -1;\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { DragDropModule } from '@angular/cdk/drag-drop';\n@NgModule({\n exports: [\n DragDropModule,\n ]\n})\nexport class MaterialModule { }","import { Component, EventEmitter, Inject, Input, OnInit, Output } from '@angular/core';\n\nimport template from \"./pdgm-calculator.html\"\n\nimport { IClinicalGroupOption, IMStep } from \"./pdgm-calculator.models\";\nimport { PdgmCalculatorService } from './pdgm-calculator.service';\n\n@Component({\n selector: 'pdgm-calculator',\n template: template\n})\nexport class PDGMCalculatorComponent {\n\n calculatePoints: boolean = true;\n manualPoints: number;\n selectedClinicalGroup: IClinicalGroupOption = null;\n validPoints: boolean = true;\n\n isFirst: boolean = true;\n isLast: boolean = false;\n mSteps: IMStep[];\n clinicalGroups: IClinicalGroupOption[]\n\n constructor(@Inject(PdgmCalculatorService) public pdgmCalculatorService: PdgmCalculatorService) {\n }\n\n ngOnInit() {\n this.pdgmCalculatorService.GetClinicalGroupOptions().subscribe(res => {\n this.clinicalGroups = res;\n });\n this.pdgmCalculatorService.GetFeeCalcSteps().subscribe(res => {\n this.mSteps = res;\n });\n }\n\n getTotalPoints() {\n if (!this.calculatePoints)\n return this.manualPoints || 0;\n else {\n let result = 0;\n this.mSteps.filter(f => f.SelectedResponse).forEach(step => {\n result += step.SelectedResponse.Points;\n });\n return result;\n }\n }\n mItemsUnchecked() {\n return this.mSteps.some(s => s.SelectedResponse === null);\n }\n getImpairmentLevel() {\n if (!this.selectedClinicalGroup)\n return \"\";\n else {\n let pointTotal = this.getTotalPoints();\n if (pointTotal >= this.selectedClinicalGroup.HighCutoff) \n return \"High\"; \n else if (pointTotal >= this.selectedClinicalGroup.MediumCutoff) \n return \"Medium\"; \n else\n return \"Low\"; \n }\n }\n\n clearAll() {\n this.mSteps.filter(f => f.SelectedResponse).map(step => step.SelectedResponse = null);\n //this.calculatePoints = true;\n this.manualPoints = undefined;\n this.selectedClinicalGroup = null;\n $('.bs-vertical-wizard > ul > li').first().find('a').trigger('click');\n }\n\n validatePoints(value) {\n console.log('validate event', value);\n if (!value) {\n this.validPoints = true;\n }\n\n this.validPoints = !isNaN(value) && !(value.toString().length > 2) && value >= 0 && value <= 88;\n }\n\n previousTab() {\n $('.bs-vertical-wizard > ul > .active').prevAll('li:not(.ng-hide)').first().find('a').trigger('click');\n }\n\n nextTab() { \n $('.bs-vertical-wizard > ul > .active').nextAll('li:not(.ng-hide)').first().find('a').trigger('click');\n }\n isNotFirst() {\n return $('.bs-vertical-wizard > ul > .active').find('a').attr(\"data-target\") !== '#stepPoints';\n }\n\n isNotLast() {\n return $('.bs-vertical-wizard > ul > .active').find('a').attr(\"data-target\") !== '#stepLevel';\n }\n}\n\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { PDGMCalculatorComponent } from \"./pdgm-calculator.component\";\n\n\nimport { SortByPipe } from \"../shared/pipes/sortBy.pipe\"\n\n//import validatePoints from \"./points-validation.directive\";\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule\n ],\n providers: [\n \n ],\n exports: [\n PDGMCalculatorComponent\n ],\n declarations: [\n PDGMCalculatorComponent,\n SortByPipe\n\n ]\n})\nexport class PdgmCalculatorModule { }\n\n//export default angular.module(\"codingCenterApp.pdgmCalculator\", [])\n// // .directive(\"validatePoints\", validatePoints)\n// .directive(\"pdgmCalculator\", downgradeComponent({ component: PDGMCalculatorComponent }))\n// .name;\n","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\nimport { IClinicalGroupOption, IMStep } from './pdgm-calculator.models';\n\n\n@Injectable({\n providedIn: 'root'\n})\nexport class PdgmCalculatorService {\n\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n GetFeeCalcSteps() {\n \n\n return this.http.get(\"/MVC/api/PdgmFeeCalc/GetMSteps\");\n }\n\n GetClinicalGroupOptions() {\n return this.http.get(\"/MVC/api/PdgmFeeCalc/GetClinicalGroups\");\n }\n}","import { Component, Inject, Input, OnInit, Output } from '@angular/core';\nimport { ProfileService } from './profile.service';\nimport * as models from \"./models\";\n\nimport profileTemplate from './profile.html';\n\n@Component({\n selector: 'profile',\n template: profileTemplate\n})\nexport class ProfileComponent {\n\n // props\n showNotification: boolean = false;\n notificationClass: string = \"\";\n notificationMsg: string = \"\";\n currentUser: models.IAccountProfile;\n manageAccount: any;\n\n\n constructor(@Inject(ProfileService)private profileService: ProfileService) {\n }\n\n ngOnInit() {\n\n\n this.profileService.getLoggedInUser().then(\n response => {\n const data = response;\n if (data) {\n this.currentUser = data;\n }\n },\n response => {\n console.error(response);\n this.showNotification = true;\n this.notificationClass = \"alert-danger\";\n this.notificationMsg = \"Something went wrong while trying to retrieve your user information.\";\n }\n );\n }\n\n formatDate(date: string): string {\n let jsDate = new Date(parseInt(date.substr(6)));\n var m = jsDate.getMonth() + 1;\n var d = jsDate.getDate();\n var y = jsDate.getFullYear();\n return m.toString() + \"/\" + d.toString() + \"/\" + y.toString();\n }\n\n updateProfile() {\n this.showNotification = false;\n\n if (this.manageAccount.$valid) {\n \n this.profileService.updateUser(this.currentUser).then(\n response => {\n console.log('ProfileController-updateProfile: ', response);\n this.showNotification = true;\n this.notificationClass = \"alert-success\";\n this.notificationMsg = \"Save successful!\";\n this.sendEmail();\n },\n response => {\n console.error('ProfileController-updateProfile-error: ', response);\n this.showNotification = true;\n this.notificationClass = \"alert-danger\";\n this.notificationMsg = \"Something went wrong while trying to retrieve your user information.\";\n }\n );\n }\n };\n\n sendEmail(): void {\n this.profileService.sendEmail(this.currentUser).then(result => {\n console.log('ProfileController-sendEmail: ', result);\n }).catch(result => {\n console.error('ProfileController-sendEmail-error: ', result);\n });\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { ProfileComponent } from \"./profile.component\";\nimport { ProfileService } from \"./profile.service\";\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule\n ],\n providers: [\n ProfileService\n ],\n declarations: [\n ProfileComponent\n\n ]\n})\nexport class ProfileModule { }\n\n//export default angular.module(\"codingCenterApp.profile\", [])\n// .directive(\"profile\", downgradeComponent({ component: ProfileComponent }))\n// .factory(\"ProfileService\", downgradeInjectable(ProfileService))\n// .name;\n","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\nimport * as models from \"./models\";\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ProfileService {\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n getLoggedInUser() {\n return this.http.get(\"/MVC/Account/GetLoggedInUserAsync\").toPromise();\n }\n\n updateUser(currentUser: models.IAccountProfile) {\n return this.http.post(\"/MVC/Account/UpdateUser\", {\n User: {\n Id: currentUser.User.Id,\n FirstName: currentUser.User.FirstName,\n LastName: currentUser.User.LastName,\n Email: currentUser.User.Email\n },\n Address: {\n Company: currentUser.Address.Company\n }\n }).toPromise();\n }\n\n sendEmail(currentUser: models.IAccountProfile) {\n return this.http.get(\"/MVC/Account/SendAccountChangedEmail\", {\n params: {\n email: currentUser.User.Email,\n firstName: currentUser.User.FirstName,\n lastName: currentUser.User.LastName,\n username: currentUser.User.Username,\n company: currentUser.Address.Company,\n customerId: currentUser.User.Customers[0].Id.toString()\n }\n }).toPromise();\n }\n}","import { Component, EventEmitter, Inject, Input, OnInit, Output } from '@angular/core';\n\n\n\n@Component({\n selector: 'recent-codes-sort-order',\n template: `
` +\n `` +\n `` +\n `
`\n})\nexport class RecentCodesSortOrderComponent {\n @Output() onsortchange = new EventEmitter();\n @Input() sorttype: number;\n \n constructor() {\n \n }\n\n\n sort(sortType: number) {\n this.onsortchange.emit(sortType);\n }\n};","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { BehaviorSubject, Observable, Subject, Subscription } from 'rxjs';\n\nimport { RecentCodesApiService } from \"./recentCodesApi.service\";\nimport { IAjaxRequestRecentCode, IRecentCode } from \"./recent-codes.models\";\nimport { IBillpadCode } from \"../core/billpad/billpadApi.models\";\nimport { BillpadApiService } from \"../core/billpad/billpadApi.service\";\nimport * as models from \"../profile/models\";\n\nimport recentCodesWidgetTemplate from \"./recent-codes-widget.html\";\n\n\nfunction formatAMPM(date: Date): string {\n let hours: number = date.getHours();\n let minutes: number = date.getMinutes();\n const ampm = hours >= 12 ? 'pm' : 'am';\n hours = hours % 12;\n hours = hours ? hours : 12; // the hour '0' should be '12'\n const strMinutes = minutes < 10 ? '0' + minutes : minutes.toString();\n return hours + ':' + strMinutes + ' ' + ampm;\n}\n\n@Component({\n selector: 'recent-codes-widget',\n template: recentCodesWidgetTemplate\n})\nexport class RecentCodesWidgetComponent {\n\n @Input() hideonempty: boolean;\n @Input() pagesize: number;\n @Input() maxdescriptionchars: number = 0;\n @Input() isexpert: boolean;\n\n // lock variable to avoid duplicate calls\n locked: boolean = false;\n\n // Item List Arrays\n recentCodes: IRecentCode[] = [];\n\n // Sort type for the recent code results\n sort: number = 1;\n\n //User info\n currentUser: models.IAccountProfile;\n userHasExpertRole: boolean = false;\n\n // Define constants\n defaultPageSize: number = 25;\n maxRecords: number = 50;\n pageIndex: number = 1;\n pageMin: number = 1;\n totalCodes: number = -1;\n isShowAll: boolean = false;\n recentLoading: boolean = true;\n numPages: number = 1;\n pages: number[];\n userExpertRole: string = \"HHCC_EXPERT\";\n\n constructor(@Inject(RecentCodesApiService) private recentCodesService: RecentCodesApiService) {\n\n }\n\n ngOnInit() {\n this.sort = 1;\n if (!this.pagesize) {\n this.pagesize = this.defaultPageSize;\n }\n\n this.getRecentCodes(); \n }\n\n\n // Pull back all recent codes\n getRecentCodes() {\n\n // Skip this if we're already pulling recent codes (duplicate call)\n if (this.locked) {\n return;\n }\n else {\n this.locked = true;\n }\n\n // Show the loading wheel and clear existing records in case pagination takes extra time\n this.recentCodes = [];\n this.recentLoading = true;\n\n const params: IAjaxRequestRecentCode = {\n pageSize: this.pagesize,\n pageNum: this.pageIndex,\n sortOrder: this.sort,\n maxDescChars: this.maxdescriptionchars\n };\n\n // Get recent code content from web service and display, replacing loading image\n this.recentCodesService.getRecentCodesAsync(params).then(\n (data: IRecentCode[]) => {\n this.recentCodes = data; \n\n // Get total row count for paging\n if (data && data.length > 0) {\n this.totalCodes = Math.min(data[0].TotalRowCount, this.maxRecords);\n }\n\n // Only do this if not in Show All mode\n if (this.isShowAll === null || this.isShowAll === false) {\n // Set up paging variables\n this.pages = [];\n this.numPages = Math.ceil(this.totalCodes / this.defaultPageSize);\n for (let i = 1; i <= this.numPages; i++) {\n this.pages.push(i);\n }\n }\n\n // Loading is done\n this.recentLoading = false;\n this.locked = false;\n },\n (response: angular.IHttpResponse) => {\n console.error(response);\n });\n }\n\n \n\n // Advances to the next page of results\n nextPage() {\n if (this.pageIndex < this.numPages) {\n this.pageIndex++;\n this.getRecentCodes();\n }\n }\n\n // Moves to the previous page of results\n previousPage() {\n if (this.pageIndex > 1) {\n this.pageIndex--;\n this.getRecentCodes();\n }\n }\n\n // Moves to a specific page of results\n goToPage(page) {\n this.pageIndex = page;\n this.getRecentCodes();\n }\n\n // Either shows all results or goes back to paginated view\n showAll() {\n\n if (this.pagesize === this.totalCodes) {\n this.isShowAll = false;\n\n // We're currently viewing all, go back to paginated view\n this.pagesize = this.defaultPageSize;\n }\n else {\n // Show all results on one page\n this.isShowAll = true;\n this.pagesize = this.totalCodes;\n this.numPages = 1;\n this.pages = [1];\n }\n this.pageIndex = 1;\n\n this.getRecentCodes();\n }\n\n sortChange(sortBy: number) {\n if (this.sort !== sortBy) {\n this.sort = sortBy;\n this.getRecentCodes();\n }\n }\n\n // Formats JSON dates correctly\n dateFormatter(dateVal: string): string {\n const d = new Date(parseInt(dateVal.replace(/\\/Date\\((.*?)\\)\\//gi, \"$1\"), 10));\n\n const realMonth = d.getMonth() + 1; // JS month is 0-based\n const returnDate = realMonth + \"/\" + d.getDate() + \"/\" + d.getFullYear() + \"
\" + formatAMPM(d);\n\n return returnDate;\n }\n}\n","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { IAjaxRequestRecentCode, IRecentCode } from \"./recent-codes.models\";\nimport { RecentCodesApiService } from \"./recentCodesApi.service\";\nimport { BillpadApiService } from \"../core/billpad/billpadApi.service\";\n\nimport recentCodesTemplate from './recent-codes.html';\nimport { IBillpadCode } from '../core/billpad/billpadApi.models';\n\nfunction formatAMPM(date: Date): string {\n let hours: number = date.getHours();\n let minutes: number = date.getMinutes();\n const ampm = hours >= 12 ? 'pm' : 'am';\n hours = hours % 12;\n hours = hours ? hours : 12; // the hour '0' should be '12'\n const strMinutes = minutes < 10 ? '0' + minutes : minutes.toString();\n return hours + ':' + strMinutes + ' ' + ampm;\n}\n\n@Component({\n selector: 'recent-codes',\n template: recentCodesTemplate\n})\nexport class RecentCodesComponent {\n\n constructor(@Inject(RecentCodesApiService) private recentCodesService: RecentCodesApiService) {\n\n }\n\n @Input() isexpert: boolean;\n\n // lock variable to avoid duplicate calls\n locked: boolean = false;\n\n // Item List Arrays\n recentCodes: IRecentCode[] = [];\n\n // Sort type for the recent code results\n sort: number = 1;\n\n // Define constants\n defaultPageSize: number = 25;\n maxDescChars: number = 30;\n maxRecords: number = 50;\n\n // Paging variables\n pageSize: number = this.defaultPageSize;\n pageIndex: number = 1;\n pageMin: number = 1;\n totalCodes: number = -1;\n isShowAll: boolean = false;\n recentLoading: boolean = true;\n numPages: number;\n pages: number[];\n\n\n // Initialize page data\n ngOnInit() {\n\n this.sort = 1;\n this.maxDescChars = this.maxDescChars;\n this.pageSize = this.defaultPageSize = this.defaultPageSize;\n\n // Page size set by user control parameter\n // this.PageSize = maxCodeCount;\n\n // Save max chars for description field to pass in web svc call\n // this.MaxDescChars = pMaxDescChars;\n\n // get initial list of codes \n this.getRecentCodes();\n \n }\n\n // Pull back all recent codes\n getRecentCodes() {\n\n // Skip this if we're already pulling recent codes (duplicate call)\n if (this.locked) {\n return;\n }\n else {\n this.locked = true;\n }\n\n // Show the loading wheel and clear existing records in case pagination takes extra time\n this.recentCodes = [];\n this.recentLoading = true;\n\n const params: IAjaxRequestRecentCode = {\n pageSize: this.pageSize,\n pageNum: this.pageIndex,\n sortOrder: this.sort,\n maxDescChars: this.maxDescChars\n };\n\n // Get recent code content from web service and display, replacing loading image\n this.recentCodesService.getRecentCodesAsync(params).then(\n (data: IRecentCode[]) => {\n this.recentCodes = data;\n\n // Get total row count for paging\n if (data && data.length > 0) {\n this.totalCodes = Math.min(data[0].TotalRowCount, this.maxRecords);\n }\n\n // Only do this if not in Show All mode\n if (this.isShowAll === null || this.isShowAll === false) {\n // Set up paging variables\n this.pages = [];\n this.numPages = Math.ceil(this.totalCodes / this.defaultPageSize);\n for (let i = 1; i <= this.numPages; i++) {\n this.pages.push(i);\n }\n }\n\n // Loading is done\n this.recentLoading = false;\n this.locked = false;\n },\n (response: angular.IHttpResponse) => {\n debugger;\n console.error(response);\n });\n }\n\n // Advances to the next page of results\n nextPage() {\n if (this.pageIndex < this.numPages) {\n this.pageIndex++;\n this.getRecentCodes();\n }\n }\n\n // Moves to the previous page of results\n previousPage() {\n if (this.pageIndex > 1) {\n this.pageIndex--;\n this.getRecentCodes();\n }\n }\n\n // Moves to a specific page of results\n goToPage(page) {\n this.pageIndex = page;\n this.getRecentCodes();\n }\n\n // Either shows all results or goes back to paginated view\n showAll() {\n\n if (this.pageSize === this.totalCodes) {\n this.isShowAll = false;\n\n // We're currently viewing all, go back to paginated view\n this.pageSize = this.defaultPageSize;\n }\n else {\n // Show all results on one page\n this.isShowAll = true;\n this.pageSize = this.totalCodes;\n this.numPages = 1;\n this.pages = [1];\n }\n this.pageIndex = 1;\n\n this.getRecentCodes();\n }\n sortChange(sortBy?: number) {\n if (typeof (sortBy) === \"number\" && this.sort !== sortBy) {\n this.sort = sortBy;\n this.getRecentCodes();\n }\n }\n\n // Formats JSON dates correctly\n dateFormatter(dateVal: string): string {\n const d = new Date(parseInt(dateVal.replace(/\\/Date\\((.*?)\\)\\//gi, \"$1\"), 10));\n\n const realMonth = d.getMonth() + 1; // JS month is 0-based\n const returnDate = realMonth + \"/\" + d.getDate() + \"/\" + d.getFullYear() + \"
\" + formatAMPM(d);\n\n return returnDate;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { CoreModule } from '../core/core.module';\n\nimport { RecentCodesApiService } from \"./recentCodesApi.service\";\nimport { RecentCodesWidgetComponent } from \"./recent-codes-widget.component\";\nimport { RecentCodesComponent } from \"./recent-codes.component\";\nimport { RecentCodesSortOrderComponent } from \"./recent-codes-sort-order.component\";\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n CoreModule\n ],\n providers: [\n RecentCodesApiService\n ],\n declarations: [\n RecentCodesWidgetComponent,\n RecentCodesComponent,\n RecentCodesSortOrderComponent\n\n ]\n})\nexport class RecentCodesModule { }\n\n//export default angular.module(\"codingCenterApp.recentCodes\", [])\n// .directive(\"recentCodesWidget\", downgradeComponent({ component: RecentCodesWidgetComponent }))\n// .directive(\"recentCodesSortOrder\", downgradeComponent({ component: RecentCodesSortOrderComponent }))\n// .directive(\"recentCodes\", downgradeComponent({ component: RecentCodesComponent }))\n// .factory(\"RecentCodesApiService\", downgradeInjectable(RecentCodesApiService))\n// .name;\n","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\nimport { IAjaxRequestRecentCode, IRecentCode } from \"./recent-codes.models\";\nimport { IAccountProfile } from \"../profile/models\";\n\n@Injectable({\n providedIn: 'root'\n})\nexport class RecentCodesApiService {\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n loadingPromise: Promise | IRecentCode[]>;\n\n getRecentCodesAsync(parameters: IAjaxRequestRecentCode): Promise | IRecentCode[]> {\n if (this.loadingPromise) {\n return this.loadingPromise;\n }\n\n var params = {\n pageSize: parameters.pageSize.toString(),\n pageNum: parameters.pageNum.toString(),\n sortOrder: parameters.sortOrder.toString(),\n maxDescChars: parameters.maxDescChars.toString()\n\n }\n\n return this.http.get(\"/MVC/RecentCodes/GetUserRecentCodes\", { params: params }).toPromise()\n .then(response => {\n this.loadingPromise = null;\n return response;\n });\n }\n\n getUserRole() {\n this.http.get(\"/MVC/Account/GetLoggedInUserAsync\").toPromise().then(\n response => {\n const data = response;\n if (data) {\n // var currentUser = data;\n var roles = [];\n if (data.Memberships.length == 1)\n roles = data.Memberships[0].Roles;\n else\n data.Memberships.forEach(function (membership, index) { roles = roles.concat(membership.Roles); })\n if (roles) {\n roles.forEach(function (role, index) {\n if (role.RoleCode === this.userExpertRole) {\n return true;\n }\n })\n }\n }\n return false;\n });\n }\n}","\nimport { Directive, ElementRef, Inject, Input, OnInit } from '@angular/core';\nimport { NgbTypeahead } from '@ng-bootstrap/ng-bootstrap';\nimport { Observable, of, OperatorFunction } from 'rxjs';\nimport { catchError, debounceTime, distinctUntilChanged, map, tap, switchMap } from 'rxjs/operators';\nimport { SearchBoxComponent } from './search-box.component';\nimport { SearchBoxService } from './searchBox.service';\n\n\n@Directive({\n selector: '[hhcc-search-autocomplete]'\n})\nexport class HhccSearchAutocomplete {\n constructor(@Inject(SearchBoxComponent) private host: SearchBoxComponent,\n @Inject(SearchBoxService) private searchBoxService: SearchBoxService) { }\n\n @Input() ngModel: string;\n\n minLength: number;\n searching = false;\n searchFailed = false;\n remoteUrl: string;\n searchTypeId: number;\n year: number;\n\nngOnInit() {\n this.minLength = 3;\n this.remoteUrl = this.host.urlLookupObj[this.host.currentSearchOption.codeSet];\n this.searchTypeId = this.host.currentSearchOption.searchTypeId;\n this.year = this.host.getYearBySearchType(this.host.currentSearchOption.searchTypeId, this.host.currentSearchOption.codeYear, this.host.oasisCurrentCodeYear, this.host.oasisPrevCodeYear, this.host.oasisNextCodeYear);\n\n }\n\n doAuto: OperatorFunction = (text$: Observable) =>\n text$.pipe(\n debounceTime(300),\n distinctUntilChanged(),\n tap(() => this.searching = true),\n switchMap(term => {\n if (term.length > 2) {\n return this.searchBoxService.getAutocompleteAsync(this.remoteUrl, term, this.searchTypeId, this.year).pipe(\n tap(() => this.searchFailed = false),\n catchError(() => {\n this.searchFailed = true;\n return of([]);\n }))\n }\n }),\n tap(() => this.searching = false)\n )\n}\n\n \n\n","import { Component, Inject, Input, OnInit, ElementRef, ViewChild} from '@angular/core';\nimport { CookieService } from 'ngx-cookie-service';\nimport { NgbTypeaheadModule } from '@ng-bootstrap/ng-bootstrap';\nimport { Observable, of, OperatorFunction } from 'rxjs';\nimport { catchError, debounceTime, distinctUntilChanged, map, tap, switchMap } from 'rxjs/operators';\nimport { DOCUMENT } from '@angular/common';\nimport { SearchBoxService } from \"./searchBox.service\";\nimport { ICurrentSearchOption, IRecentSearchTerm } from \"./search-box.models\";\nimport { NgbTypeaheadConfig } from '@ng-bootstrap/ng-bootstrap';\n\nimport searchBoxTemplate from \"./search-box.html\";\n\n\n@Component({\n selector: 'search-box',\n template: searchBoxTemplate,\n providers: [{ provide: NgbTypeaheadConfig, useFactory: ngbTypeaheadDefaultConfigFactory }]\n})\nexport class SearchBoxComponent {\n \n\n DEFAULT_SEARCH_PLACEHOLDER_STR_1 = \"Enter term(s)\";\n DEFAULT_SEARCH_PLACEHOLDER_STR_2 = \"Search by Item # or term(s)\";\n DEFAULT_SEARCH_PLACEHOLDER_STR_3 = \"Enter code, code range or term(s)\";\n\n\n\n SEARCH_AUTOCOMPLETE_URL_LOOKUP_DICT = {\n // Web Service URLs for Search Autocomplete by CodeSet\n \"i10\": \"/MVC/ICD10/GetAutoCompletionListForICD10\",\n \"oasis\": \"/MVC/OASIS/Search/GetAutoCompletionListForOASIS\"\n };\n\n @Input() isexpert: Boolean;\n @Input() oasiscurrentsearchtext:string=\"\" ;\n @Input() oasislookbackorforwardsearchtext: string = \"\";\n @Input() forwardorback: string = \"back\";\n\n @Input() enableIcdLookForward: boolean = false;\n icdLookForward: boolean = false;\n\n get SEARCH_TYPES_WITHOUT_OASIS_LOOKBACK() {\n return {\n \"i10\": [\n { searchTypeId: 7, searchTypeText: \"Tabular Codes\" },\n { searchTypeId: 8, searchTypeText: \"Alpha Index\" },\n { searchTypeId: 11, searchTypeText: \"Neoplasm Table\" },\n { searchTypeId: 10, searchTypeText: \"Drugs & Chemicals\" },\n { searchTypeId: 9, searchTypeText: \"External Causes\" }\n ],\n \"oasis\": [\n { searchTypeId: 20, searchTypeText: this.oasiscurrentsearchtext },\n ]\n };\n }\n\n get SEARCH_TYPE_LOOKUP_DICT()\n {\n return {\n \"i10\": [\n { searchTypeId: 7, searchTypeText: \"Tabular Codes\" },\n { searchTypeId: 8, searchTypeText: \"Alpha Index\" },\n { searchTypeId: 11, searchTypeText: \"Neoplasm Table\" },\n { searchTypeId: 10, searchTypeText: \"Drugs & Chemicals\" },\n { searchTypeId: 9, searchTypeText: \"External Causes\" }\n ],\n \"oasis\": [\n { searchTypeId: 20, searchTypeText: this.oasiscurrentsearchtext },\n { searchTypeId: this.forwardorback ==\"forward\"? 22:21, searchTypeText: this.oasislookbackorforwardsearchtext },\n\n\n ]\n };\n }\n\n\n @ViewChild('codeSearch') codeSearch: ElementRef;\n\n browseCodesUrl: string;\n currentSearchOption: ICurrentSearchOption;\n searchTypes: string[];\n searchBoxClass: string;\n currentCodeYear: number;\n prevCodeYear: number;\n nextCodeYear: number;\n oasisCurrentCodeYear: number;\n oasisPrevCodeYear: number;\n oasisNextCodeYear: number;\n recentSearchesLoading: boolean;\n recentSearches: IRecentSearchTerm[];\n\n urlLookupObj: any;\n searchTypeLookupObj: any;\n\n isDateLoaded: boolean;\n displayOasisLookBackPage: boolean = true;\n\n searching = false;\n searchFailed = false;\n\n window: any;\n\n constructor(@Inject(SearchBoxService) private searchBoxService: SearchBoxService,\n @Inject(CookieService) private cookieService: CookieService, @Inject(DOCUMENT) private document: Document) {\n this.window = this.document.defaultView;\n }\n\n ngOnInit() {\n this.urlLookupObj = this.SEARCH_AUTOCOMPLETE_URL_LOOKUP_DICT; \n this.searchTypeLookupObj = this.SEARCH_TYPE_LOOKUP_DICT;\n\n const _codeSet = this.readCurrentCodeSetCookieValue();\n const currd8 = new Date();\n\n let _codeYear;\n this.isDateLoaded = false;\n this.searchBoxService.getUtcNow().then(\n response => {\n const data = response;\n const today = new Date(parseInt(data.replace(/\\/Date\\((.*?)\\)\\//gi, \"$1\"), 10));\n _codeYear = today.getFullYear();\n this.icdLookForward = this.enableIcdLookForward && today.getUTCMonth() == 8;\n if (_codeYear < 2019) {\n this.searchTypeLookupObj = this.SEARCH_TYPES_WITHOUT_OASIS_LOOKBACK;\n this.displayOasisLookBackPage = false;\n this.setSearchTypeAndText(_codeSet, this.readLastSearchTypeIdCookieValue(_codeSet));\n }\n this.isDateLoaded = true;\n });\n const strCodeYear = this.cookieService.get(\"CodeYear\");;\n if (strCodeYear && !isNaN(parseInt(strCodeYear, 10))) {\n _codeYear = parseInt(strCodeYear, 10);\n }\n\n this.browseCodesUrl = \"\";\n this.searchTypes = this.searchTypeLookupObj[_codeSet];\n this.currentSearchOption = {\n codeSet: _codeSet,\n searchTerm: this.cookieService.get(\"LastSearchTerm\"),\n searchTypeId: null,\n searchTypeText: null,\n codeYear: null\n };\n\n this.setSearchTypeAndText(_codeSet, this.readLastSearchTypeIdCookieValue(_codeSet));\n \n this.initAjax(_codeYear, _codeSet);\n }\n ngAfterViewInit() {\n const node = this.codeSearch.nativeElement;\n\n const observer = new MutationObserver((mutations) => {\n mutations.forEach((mutation) => {\n const activeValue = $(\".dropdown-item.active\").text();\n if (activeValue) {\n this.currentSearchOption.searchTerm = activeValue;\n }\n });\n });\n\n observer.observe(node, {\n attributes: true,\n childList: false,\n attributeFilter: ['aria-activedescendant'],\n characterData: false\n });\n }\n //------------------------------------------------------------------------------------------------------------------------\n // member functions\n //------------------------------------------------------------------------------------------------------------------------\n initAjax(codeYear, codeSet) {\n //first calculate everything with the JS date functionality- which can potentially be inaccurate.\n var jsdate = new Date();\n this.currentCodeYear = jsdate.getUTCMonth() >= 9 ? jsdate.getUTCFullYear() + 1 : jsdate.getUTCFullYear();\n this.prevCodeYear = this.currentCodeYear - 1;\n this.nextCodeYear = this.currentCodeYear + 1;\n this.oasisPrevCodeYear = jsdate.getUTCFullYear() - 1;\n this.oasisCurrentCodeYear = jsdate.getUTCFullYear();\n this.oasisNextCodeYear = jsdate.getUTCFullYear() + 1;\n\n\n if (!codeYear) {\n codeYear = this.currentCodeYear;\n }\n\n this.setSearchBoxClass(codeSet, codeYear);\n\n this.browseCodesUrl = this.recalculateBrowseCodesUrl(codeSet, codeYear);\n this.currentSearchOption.codeYear = codeYear;\n\n //those values are just-in-case- go to the API and get a more reliable time, then set those values again.\n this.searchBoxService.getUtcNow().then(\n response => {\n const data = response;\n const today = new Date(parseInt(data.replace(/\\/Date\\((.*?)\\)\\//gi, \"$1\"), 10));\n\n this.currentCodeYear = today.getUTCMonth() >= 9 ? today.getFullYear() + 1 : today.getFullYear();\n this.prevCodeYear = this.currentCodeYear - 1;\n this.nextCodeYear = this.currentCodeYear + 1;\n this.oasisPrevCodeYear = today.getFullYear() - 1;\n this.oasisCurrentCodeYear = today.getFullYear();\n this.oasisNextCodeYear = today.getUTCFullYear() + 1;\n\n if (!codeYear) {\n codeYear = this.currentCodeYear;\n }\n\n this.setSearchBoxClass(codeSet, codeYear);\n\n this.browseCodesUrl = this.recalculateBrowseCodesUrl(codeSet, codeYear);\n this.currentSearchOption.codeYear = codeYear;\n });\n }\n\n setSearchTypeAndText(codeSet: string, searchTypeId: number) {\n this.currentSearchOption.searchTypeId = searchTypeId;\n\n const array = this.searchTypeLookupObj[codeSet];\n for (let i = 0; i < array.length; i++) {\n if (array[i].searchTypeId === searchTypeId) {\n this.currentSearchOption.searchTypeText = array[i].searchTypeText;\n this.cookieService.set(\"SearchOption\", array[i].searchTypeText, { \"path\": \"/\" });\n break;\n }\n }\n this.recalculateSearchTextBoxPlaceholderText(codeSet, searchTypeId);\n }\n\n recalculateSearchTextBoxPlaceholderText(codeSet: string, searchTypeId: number) {\n const searchTerm = this.currentSearchOption.searchTerm !== null ? this.currentSearchOption.searchTerm : \"\";\n\n if (!searchTerm ||\n searchTerm.trim() === \"\" ||\n searchTerm === this.DEFAULT_SEARCH_PLACEHOLDER_STR_1 ||\n searchTerm === this.DEFAULT_SEARCH_PLACEHOLDER_STR_2 ||\n searchTerm === this.DEFAULT_SEARCH_PLACEHOLDER_STR_3) {\n if (searchTypeId === 1 || searchTypeId === 7 || searchTypeId === 12) {\n this.currentSearchOption.searchTerm = this.DEFAULT_SEARCH_PLACEHOLDER_STR_3;\n } else if (searchTypeId === 20 || searchTypeId === 21 || searchTypeId === 22 || codeSet === \"oasis\") {\n this.currentSearchOption.searchTerm = this.DEFAULT_SEARCH_PLACEHOLDER_STR_2;\n } else {\n this.currentSearchOption.searchTerm = this.DEFAULT_SEARCH_PLACEHOLDER_STR_1;\n }\n }\n }\n\n setSearchBoxClass(codeSet: string, year: number) {\n if (codeSet === \"i10\") {\n this.searchBoxClass = (year === this.prevCodeYear || year === this.nextCodeYear) ? \"lookback\" : \"i10\";\n } else if (codeSet === \"oasis\") {\n this.searchBoxClass = year === this.oasisPrevCodeYear || year === this.oasisNextCodeYear ? \"oasis-lookback\" : \"oasis\";\n }\n }\n\n changeSearchType($event, searchType) {\n $event.preventDefault();\n this.setSearchTypeAndText(this.currentSearchOption.codeSet, searchType.searchTypeId);\n\n //Changing oasis Browse items link by dropdown value\n if (searchType.searchTypeId == 21 || searchType.searchTypeId == 20 || searchType.searchTypeId == 22) {\n let year = searchType.searchTypeId == 20 ? this.oasisCurrentCodeYear : searchType.searchTypeId == 21 ? this.oasisPrevCodeYear : this.oasisNextCodeYear;\n this.setSearchBoxClass(this.currentSearchOption.codeSet, year)\n\n this.browseCodesUrl = this.recalculateBrowseCodesUrl(this.currentSearchOption.codeSet, year);\n this.setCodeYearCookie(year);\n }\n }\n\n changeCodeSet(newCodeSet, year) {\n const oldSearchTypeId = this.currentSearchOption.searchTypeId;\n\n if (!year) {\n year = this.currentCodeYear;\n }\n\n this.currentSearchOption.codeYear = year;\n this.browseCodesUrl = this.recalculateBrowseCodesUrl(newCodeSet, year);\n this.currentSearchOption.codeSet = newCodeSet;\n this.searchTypes = this.searchTypeLookupObj[newCodeSet];\n\n this.setCodeSetCookie(newCodeSet);\n this.setCodeYearCookie(year);\n this.setSearchBoxClass(newCodeSet, year);\n\n if (newCodeSet === \"oasis\") {\n switch (oldSearchTypeId) {\n case 7:\n case 8:\n case 9:\n case 10:\n case 11:\n case 20:\n this.setSearchTypeAndText(newCodeSet, 20);\n break;\n case 22:\n this.setSearchTypeAndText(newCodeSet, 22);\n break;\n default:\n this.setSearchTypeAndText(newCodeSet, 21);\n break;\n }\n } else if (newCodeSet === \"i10\") {\n switch (oldSearchTypeId) {\n case 1:\n this.setSearchTypeAndText(newCodeSet, 7);\n break;\n case 2:\n case 5:\n case 6:\n case 12:\n case 20:\n case 22:\n case 21:\n this.setSearchTypeAndText(newCodeSet, 8);\n break;\n case 3:\n this.setSearchTypeAndText(newCodeSet, 10);\n break;\n case 4:\n this.setSearchTypeAndText(newCodeSet, 11);\n break;\n case 13:\n this.setSearchTypeAndText(newCodeSet, 9);\n break;\n }\n }\n }\n\n doAuto: OperatorFunction = (text$: Observable) =>\n text$.pipe(\n debounceTime(200),\n distinctUntilChanged(),\n tap(() => this.searching = true),\n switchMap(term => {\n if (term.length > 2) {\n let remoteUrl = this.urlLookupObj[this.currentSearchOption.codeSet];\n let searchTypeId = this.currentSearchOption.searchTypeId;\n let year = this.getYearBySearchType(this.currentSearchOption.searchTypeId, this.currentSearchOption.codeYear, this.oasisCurrentCodeYear, this.oasisPrevCodeYear, this.oasisNextCodeYear);\n\n return this.searchBoxService.getAutocompleteAsync(remoteUrl, term, searchTypeId, year).pipe(\n tap(() => { this.searchFailed = false }),\n catchError(() => {\n this.searchFailed = true;\n return of([]);\n }))\n } else {\n return [];\n }\n }),\n tap(() => this.searching = false)\n );\n\n performSearch() {\n\n const searchTerm = this.currentSearchOption.searchTerm !== null && this.currentSearchOption.searchTerm !== this.DEFAULT_SEARCH_PLACEHOLDER_STR_1\n && this.currentSearchOption.searchTerm !== this.DEFAULT_SEARCH_PLACEHOLDER_STR_2 && this.currentSearchOption.searchTerm !== this.DEFAULT_SEARCH_PLACEHOLDER_STR_3\n ? this.currentSearchOption.searchTerm.trim()\n : \"\";\n\n const searchTypeId = this.currentSearchOption.searchTypeId;\n const codeYear = this.currentSearchOption.codeYear;\n\n var oasisYear = searchTypeId == 21 ? this.oasisPrevCodeYear : searchTypeId == 22 ? this.oasisNextCodeYear : this.oasisCurrentCodeYear;\n\n if (searchTerm.length > 0) {\n this.cookieService.set(\"LastSearchTerm\", searchTerm, { \"path\": \"/\" });\n\n // Save the recent search to the session\n this.searchBoxService.saveToRecentSearchesAsync(searchTypeId, searchTerm, codeYear);\n\n // Make sure it is a code before checking for only one result\n\n const regExICD10 = /(([A-Z]\\d{2}(\\.(\\d){1,4})?)\\s*-\\s*([A-Z]\\d{2}(\\.(\\d){1,4})?))|([A-Z]\\d{2}(\\.(\\d){1,4})?)/gi;\n const regExOASIS = /(^[A-Z]{1,2}\\d{4}[A-Z]{0,2})/gi;\n\n if (((regExICD10.test(searchTerm) && searchTypeId !== 20) || (regExICD10.test(searchTerm) && searchTypeId !== 21) || (regExICD10.test(searchTerm) && searchTypeId !== 22)) || ((regExOASIS.test(searchTerm) && searchTypeId === 20) || (regExOASIS.test(searchTerm) && searchTypeId === 21) || (regExOASIS.test(searchTerm) && searchTypeId === 22))) {\n this.searchBoxService\n .getCount(searchTypeId, searchTerm, codeYear)\n .then(\n response => {\n const data = response;\n if (data === 1) {\n if (this.currentSearchOption.codeSet === \"oasis\") {\n if (this.window.userData) {\n let params = this.window.userData;\n let searchUrl = `${this.window.location.origin}/MVC/OASIS/Search/Index?searchTerm=${encodeURIComponent(searchTerm)}&year=${oasisYear}`;\n this.window.simplify_inquiry_request(params.user_first_name, params.user_last_name, params.user_email, params.user_company, params.user_subscription_type, params.request_top_level, \"Search\", searchUrl, params.user_id, params.user_parent_id, searchUrl);\n }\n document.location.href = `/MVC/OASIS/MItem/Details/${searchTerm}/${oasisYear}`;\n } else {\n //track the searched code\n if (this.window.userData) {\n let params = this.window.userData;\n let searchUrl = `${document.location.origin}/MVC/ICD10/Search?cst=${searchTypeId}&sk=${encodeURIComponent(searchTerm)}&year=${codeYear}`;\n this.window.simplify_inquiry_request(params.user_first_name, params.user_last_name, params.user_email, params.user_company, params.user_subscription_type, params.request_top_level, \"Search\", searchUrl, params.user_id, params.user_parent_id, searchUrl);\n }\n document.location.href = `/MVC/ICD10/Details/${searchTerm}/${codeYear}`;\n }\n } else {\n if (this.currentSearchOption.codeSet === \"oasis\") {\n document.location.href =\n `/MVC/OASIS/Search/Index?searchTerm=${encodeURIComponent(searchTerm)}&year=${oasisYear}`;\n } else {\n // ICD10 search\n const codesetFolder = \"ICD10\";\n document.location.href = `/MVC/${codesetFolder}/Search?cst=${searchTypeId}&sk=${encodeURIComponent(searchTerm)}&year=${codeYear}`;\n }\n }\n },\n function (response) {\n console.log(response);\n });\n } else {\n if (this.currentSearchOption.codeSet === \"oasis\") {\n document.location.href = `/MVC/OASIS/Search/Index?searchTerm=${encodeURIComponent(searchTerm)}&year=${oasisYear}`;\n } else {\n // ICD10 search\n const codesetFolder = \"ICD10\";\n document.location.href = `/MVC/${codesetFolder}/Search?cst=${searchTypeId}&sk=${encodeURIComponent(searchTerm)}&year=${codeYear}`;\n }\n }\n }\n }\n\n searchTextBoxOnFocus($event) {\n $event.target.select();\n const searchTerm = this.currentSearchOption.searchTerm;\n if (searchTerm === this.DEFAULT_SEARCH_PLACEHOLDER_STR_1 ||\n searchTerm === this.DEFAULT_SEARCH_PLACEHOLDER_STR_2 ||\n searchTerm === this.DEFAULT_SEARCH_PLACEHOLDER_STR_3) {\n this.currentSearchOption.searchTerm = \"\";\n }\n }\n\n\n loadRecentSearches() {\n this.recentSearchesLoading = true;\n\n this.searchBoxService.getSearches().then(\n response => {\n this.recentSearches = response;\n this.recentSearchesLoading = false;\n },\n response => {\n console.log(response);\n this.recentSearchesLoading = false;\n });\n }\n\n recentSearchClick(recentSearch: IRecentSearchTerm) {\n const thisSearch = recentSearch;\n\n const searchTypeId = parseInt(thisSearch.searchType, 10);\n var oasisYear = searchTypeId == 21 ? this.oasisPrevCodeYear : searchTypeId == 22 ? this.oasisNextCodeYear: this.oasisCurrentCodeYear;\n const searchTerm = thisSearch.searchTerm;\n const codeYear = thisSearch.year !== null && thisSearch.year !== 0 && thisSearch.year !== undefined\n ? thisSearch.year\n : this.currentCodeYear;\n\n // Make sure it is a code before checking for only one result\n\n const regExICD10 = /(([A-Z]\\d{2}(\\.(\\d){1,4})?)\\s*-\\s*([A-Z]\\d{2}(\\.(\\d){1,4})?))|([A-Z]\\d{2}(\\.(\\d){1,4})?)/gi;\n const regExOASIS = /(^[A-Z]{1,2}\\d{4}[A-Z]{0,2})/gi;\n\n if (((regExICD10.test(searchTerm) && searchTypeId !== 20) || (regExICD10.test(searchTerm) && searchTypeId !== 21) || (regExICD10.test(searchTerm) && searchTypeId !== 22)) || ((regExOASIS.test(searchTerm) && searchTypeId === 20) || (regExOASIS.test(searchTerm) && searchTypeId === 21) || (regExOASIS.test(searchTerm) && searchTypeId === 21))) {\n this.searchBoxService\n .getCount(searchTypeId, searchTerm, codeYear)\n .then(\n response => {\n const data = response;\n if (data === 1) {\n if (searchTypeId === 20 || searchTypeId === 21 || searchTypeId===22) {\n document.location.href = `/MVC/OASIS/MItem/Details/${searchTerm}/${oasisYear}`;\n } else {\n document.location.href = `/MVC/ICD10/Details/${searchTerm}/${codeYear}`;\n }\n } else {\n if (searchTypeId === 20 || searchTypeId === 21 || searchTypeId===22) {\n document.location.href =\n `/MVC/OASIS/Search/Index?searchTerm=${encodeURIComponent(searchTerm)}&year=${oasisYear}`;\n } else {\n //ICD10 search\n const codesetFolder = \"ICD10\";\n document.location.href = `/MVC/${codesetFolder}/Search?cst=${searchTypeId}&sk=${encodeURIComponent(searchTerm)}&year=${codeYear}`;\n }\n }\n },\n function (response) {\n console.log(response);\n });\n } else {\n if (searchTypeId === 20 || searchTypeId === 21 || searchTypeId === 22) {\n document.location.href = `/MVC/OASIS/Search/Index?searchTerm=${encodeURIComponent(searchTerm)}&year=${oasisYear}`;\n } else {\n // ICD10 search\n const codesetFolder = \"ICD10\";\n document.location.href = `/MVC/${codesetFolder}/Search?cst=${searchTypeId}&sk=${encodeURIComponent(searchTerm)}&year=${codeYear}`;\n }\n }\n }\n\n GetClassForDropdownItem(searchTypeText: string) {\n return searchTypeText === 'OASIS-C2' ? 'oasis-lookback' : searchTypeText === 'OASIS-D' ? 'oasis' : this.searchBoxClass;\n }\n\n recalculateBrowseCodesUrl(codeSet: string, year: number) {\n if (codeSet === \"i10\") {\n return `/MVC/ICD10/Browse/${year}`;\n }\n return `/MVC/OASIS/Browse/${year}`;\n }\n\n getYearBySearchType(searchTypeId, icdCodeYear, oasisCurrentYear, oasisPrevYear, oasisNextYear) {\n if (searchTypeId == 20)\n return oasisCurrentYear\n else if (searchTypeId == 21)\n return oasisPrevYear\n else if (searchTypeId == 22)\n return oasisNextYear\n else\n return icdCodeYear\n }\n\n readLastSearchTypeIdCookieValue(codeSet: string): number {\n const v = this.cookieService.get(\"SearchOption\");\n const arrayOfSearchTypes = this.searchTypeLookupObj[codeSet] || [];\n for (let i = 0; i < arrayOfSearchTypes.length; i++) {\n if (v === arrayOfSearchTypes[i].searchTypeText) {\n return arrayOfSearchTypes[i].searchTypeId;\n }\n }\n\n this.cookieService.set(\"SearchOption\", \"Alpha Index\", { \"path\": \"/\" });\n return 8 /* default is I-10 \"Alpha Index\" */;\n }\n\n readCurrentCodeSetCookieValue(): string {\n const value = this.cookieService.get(\"CodeSet\");\n if (value === \"OASIS\") {\n return \"oasis\";\n }\n this.cookieService.set(\"CodeSet\", \"ICD-10-CM\", { \"path\": \"/\" });\n return \"i10\"; // default is I-10 codeset\n }\n\n setCodeSetCookie(codeSet: string) {\n const cookieName = \"CodeSet\";\n let translatedValue = \"OASIS\";\n if (codeSet === \"i10\") {\n translatedValue = \"ICD-10-CM\";\n }\n this.cookieService.set(cookieName, translatedValue, { \"path\": \"/\" });\n }\n\n setCodeYearCookie(codeYear: number) {\n const cookieName = \"CodeYear\";\n this.cookieService.set(cookieName, codeYear.toString(10), { \"path\": \"/\" });\n }\n selectedItem(item) {\n this.currentSearchOption.searchTerm = item.item;\n this.performSearch();\n }\n}\nexport function ngbTypeaheadDefaultConfigFactory(): NgbTypeaheadConfig {\n const typeaheadConfig = new NgbTypeaheadConfig();\n typeaheadConfig.focusFirst = false;\n return typeaheadConfig;\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { NgbModule } from '@ng-bootstrap/ng-bootstrap';\n\nimport { HhccSearchAutocomplete } from \"./hhccSearchAutocomplete.directive\";\nimport { SearchBoxComponent } from \"./search-box.component\";\nimport { SearchBoxService } from \"./searchBox.service\";\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n NgbModule\n ],\n providers: [\n SearchBoxService\n ],\n declarations: [\n HhccSearchAutocomplete,\n SearchBoxComponent\n\n ]\n})\nexport class SearchBoxModule { }","import { Component, Injectable, Inject } from '@angular/core';\nimport { HttpClient, HttpParams } from '@angular/common/http';\nimport { Observable, of, OperatorFunction } from 'rxjs';\nimport { catchError, debounceTime, distinctUntilChanged, map, tap, switchMap } from 'rxjs/operators';\n\nimport { IRecentSearchTerm } from \"./search-box.models\";\n\n\n@Injectable({\n providedIn: 'root'\n})\nexport class SearchBoxService {\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n saveToRecentSearchesAsync(searchTypeId, searchTerm, codeYear) {\n const data = { searchType: searchTypeId, searchTerm: searchTerm, year: codeYear };\n return this.http.post(\"/mvc/api/Search/AddRecentSearch\", data).toPromise();\n }\n\n getAutocompleteAsync(remoteUrl, searchTerm, searchTypeId, year){\n const PARAMS = new HttpParams();\n //var params = {\n // count: 10,\n // prefixText: searchTerm,\n // contextKey: \"\" + searchTypeId,\n // year: year\n //};\n return this.http\n .get<[any, string[]]>(remoteUrl, { params: PARAMS.set('prefixText', searchTerm).set('contextKey', \"\" + searchTypeId).set('year', year).set('count', '10') }).pipe(\n map(response => response)\n );\n // return this.http.post(remoteUrl, params).toPromise();\n }\n\n getUtcNow(): Promise {\n return this.http.get(\"/MVC/Home/GetUtcNow\").toPromise();\n }\n\n getCount(searchTypeId, searchTerm, year) {\n var params = {\n searchTypeId: searchTypeId,\n searchTerm: searchTerm,\n year: year\n };\n return this.http.post(\"/MVC/ICD10/GetSearchCount\", params).toPromise();\n }\n\n getSearches() {\n return this.http.get(\"/mvc/api/Search/GetRecentSearches\").toPromise();\n }\n}\n","import {\n Directive,\n ElementRef, Inject, Injector, Output, EventEmitter,Input, SimpleChanges\n} from \"@angular/core\";\nimport 'bootstrap-daterangepicker';\n\n@Directive({\n selector: \"[daterangepicker]\"\n})\nexport class DateRangePickerDirective {\n @Input() startDate;\n @Input() endDate;\n @Output() dateApplied = new EventEmitter();\n //properties for angular-daterangepicker\n currentDate: Date;\n date = {};\n opts: {};\n constructor(@Inject(ElementRef) private el: ElementRef) { }\n ngAfterViewInit() {\n\n this.setDatePicker();\n \n }\n setDatePicker() {\n if ($(this.el.nativeElement).data('daterangepicker')) {\n return;\n }\n this.currentDate = new Date();\n var self = this;\n\n $(this.el.nativeElement).daterangepicker({\n maxDate: new Date(),\n locale: {\n\n applyLabel: \"Apply\",\n format: \"YYYY-MM-DD\",\n cancelLabel: 'Cancel',\n fromLabel: \"From\",\n toLabel: \"To\",\n customRangeLabel: 'Custom Range',\n daysOfWeek: [],\n monthNames: [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\"\n ]\n },\n ranges: {\n 'Last 6 Months': [this.getFilterDate('month', 6), new Date()],\n 'Last 12 Months': [this.getFilterDate('year', 1), new Date()],\n 'Last 3 Years': [this.getFilterDate('year', 3), new Date()],\n }\n });\n $(this.el.nativeElement).on('apply.daterangepicker', function (ev, picker) {\n self.dateApplied.emit(picker);\n });\n }\n ngOnChanges(changes: SimpleChanges) {\n if (this.el && this.el.nativeElement) {\n this.setDatePicker();\n if (\"startDate\" in changes || \"endDate\" in changes) {\n if (this.startDate) {\n $(this.el.nativeElement).data('daterangepicker').setStartDate(this.startDate);\n }\n if (this.endDate) {\n $(this.el.nativeElement).data('daterangepicker').setStartDate(this.endDate);\n }\n }\n }\n }\n getFilterDate(type, amount) {\n this.currentDate = new Date();\n if (type == 'month')\n // this.currentDate.setMonth(this.currentDate.getMonth() - amount);\n this.currentDate = new Date(this.currentDate.getFullYear(), this.currentDate.getMonth() - amount, 1)\n else\n //this.currentDate.setFullYear(this.currentDate.getFullYear() - amount);\n this.currentDate = new Date(this.currentDate.getFullYear() - amount, this.currentDate.getMonth(), 1)\n\n return this.currentDate;\n }\n}","import { CommonModule } from \"@angular/common\";\nimport { NgModule } from \"@angular/core\";\nimport { DateRangePickerDirective } from \"./daterangepicker.directive\";\n\n@NgModule({\n declarations: [DateRangePickerDirective],\n imports: [CommonModule],\n exports: [DateRangePickerDirective]\n})\nexport class DateRangePickerModule { }","import {\n Directive,\n ElementRef,\n HostBinding,\n Input,\n OnChanges,\n SecurityContext,\n SimpleChanges, Inject, Injector\n} from \"@angular/core\";\nimport { DomSanitizer, SafeHtml } from \"@angular/platform-browser\";\n\n@Directive({\n selector: \"[highlight]\"\n})\nexport class HighlightDirective implements OnChanges {\n @Input(\"highlight\") searchTerm: string;\n @Input() caseSensitive = false;\n @Input() customClasses = \"\";\n @Input() wholeTerm = \"\";\n\n @HostBinding(\"innerHtml\")\n content: string;\n constructor(@Inject(ElementRef) private el: ElementRef, @Inject(DomSanitizer) private sanitizer: DomSanitizer) { }\n\n ngOnChanges(changes: SimpleChanges) {\n if (this.el && this.el.nativeElement) {\n if (\"searchTerm\" in changes || \"caseSensitive\" in changes || 'wholeTerm' in changes) {\n const text = this.wholeTerm;\n if (this.searchTerm === \"\") {\n this.content = text;\n } else {\n\n const terms = this.searchTerm.split(\" \");\n var newText = text;\n for (let i = 0; i < terms.length; i++) {\n var word = terms[i];\n if (word !== \"\") {\n //make sure special characters that are used in regular expressions are escaped as literal characters in the word\n word = word\n .replace(\"\\\\\", \"\\\\\\\\\")\n .replace(\"$\", \"\\\\$\")\n .replace(\".\", \"\\\\.\")\n .replace(\"|\", \"\\\\|\")\n .replace(\"?\", \"\\\\?\")\n .replace(\"*\", \"\\\\*\")\n .replace(\"+\", \"\\\\+\")\n .replace(\"(\", \"\\\\(\")\n .replace(\")\", \"\\\\)\")\n .replace(\"[\", \"\\\\[\")\n .replace(\"]\", \"\\\\]\")\n .replace(\"{\", \"\\\\{\")\n .replace(\"}\", \"\\\\}\");\n var regWord = `((?!)(?!)`;\n regWord=regWord.concat(word,\")\");\n var regex = new RegExp(\n regWord,\n this.caseSensitive ? \"g\" : \"gi\"\n );\n newText = newText.replace(regex, (match: string) => {\n return `${match}`;\n });\n }\n }\n const sanitzed = this.sanitizer.sanitize(\n SecurityContext.HTML,\n newText\n );\n this.content = sanitzed;\n }\n }\n }\n }\n}","import { CommonModule } from \"@angular/common\";\nimport { NgModule } from \"@angular/core\";\nimport { HighlightDirective } from \"./highlight.directive\";\n\n@NgModule({\n declarations: [HighlightDirective],\n imports: [CommonModule],\n exports: [HighlightDirective]\n})\nexport class HighlightModule { }","import { Pipe, PipeTransform } from '@angular/core';\nimport { orderBy } from 'lodash';\n\n@Pipe({\n name: 'sortBy'\n})\n\nexport class SortByPipe implements PipeTransform {\n\n transform(value: any[], order = '', column: string = ''): any[] {\n if (!value || order === '' || !order) { return value; } // no array\n if (value.length <= 1) { return value; } // array with only one item\n if (!column || column === '') {\n if (order === 'asc') { return value.sort() }\n else { return value.sort().reverse(); }\n } // sort 1d array\n return orderBy(value, [column], [order]);\n }\n}","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { TipsModalComponent } from \"./tips-modal.component\";\n//import SiteContentDisplayController from \"./siteContentDisplayController\";\nimport { SiteContentService } from \"./siteContent.service\";\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule\n ],\n providers: [\n SiteContentService\n ],\n declarations: [\n TipsModalComponent\n\n ]\n})\nexport class SiteContentModule { }\n\n//export default angular.module(\"codingCenterApp.sitecontent\", [])\n// .directive(\"tipsModal\", downgradeComponent({ component: TipsModalComponent }))\n// // .controller(\"SiteContentDisplayController\", SiteContentDisplayController)\n// .factory(\"SiteContentService\", downgradeInjectable(SiteContentService))\n// .name;\n","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\n\nexport interface ISiteContentData {\n BucketName: string;\n Content1: string;\n ProductId: number;\n ProductName: string;\n SiteContentBucketTypeId: number;\n}\n\n\n@Injectable({\n providedIn: 'root'\n})\nexport class SiteContentService {\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n content: ISiteContentData;\n getContent(): ISiteContentData{\n return this.content;\n }\n\n loadContentBucket() {\n return this.http.get(\"/MVC/SiteContent/LoadContent\").toPromise();\n }\n}\n","import { Component, Inject, Input, SecurityContext } from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser'\n\nimport { SiteContentService } from \"./siteContent.service\";\nimport tipsModalTemplate from './tips-modal.html';\n\n@Component({\n selector: 'tips-modal',\n template: tipsModalTemplate\n})\n\n\nexport class TipsModalComponent {\n\n constructor(@Inject(SiteContentService) private siteContentService: SiteContentService,\n @Inject(DomSanitizer) private sanitizer: DomSanitizer) {\n\n }\n\n content1: SafeHtml;\n \n ngOnInit() {\n this.siteContentService.loadContentBucket().then(response => {\n const data = response;\n this.content1 = this.sanitizer.bypassSecurityTrustHtml(data.Content1);\n\n })\n }\n}\n","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { UsageReportingChartsService } from \"../usage-reporting-charts.service\";\nimport { IUsersSummaryInfo, IUserIndividualInfo } from \"../usage-reporting-charts.models\"\n\nimport template from './individual-chart-templates.html';\n\n@Component({\n selector: 'users-summary-info-chart',\n template: template\n})\nexport class UsersSummaryInfoChartComponent {\n chart: any = {};\n chartData: IUsersSummaryInfo[];\n chartDataRows: any[];\n\n individualUserData: IUserIndividualInfo | null;\n\n totalRecords: number = 0;\n isLoaded: boolean = false;\n searchQuery: string = \"\";\n\n constructor(@Inject(UsageReportingChartsService) private userReportingChartsService: UsageReportingChartsService) {\n }\n\n ngOnInit() {\n \n this.getUsersSummaryInfo();\n };\n\n search() {\n this.chart.data = this.userReportingChartsService.search(this.chartDataRows, this.searchQuery);\n this.totalRecords = this.chart.data.length;\n this.isLoaded = true;\n }\n\n getUsersSummaryInfo() {\n this.userReportingChartsService.getUsersSummaryInfo().then(response => {\n this.chartData = response ? response : [];\n this.individualUserData = null;\n\n if (this.chartData) {\n this.chart.type = \"Table\";\n this.chart.columnNames = [{ label: \"User\", type: \"string\" }, { label: \"Days in last 90 days\", type: \"number\" }, { label: \"Total time\", type: \"string\" }, { label: \"Page Views\", type: \"number\" } ] ;\n\n this.chart.data = [];\n var self = this;\n this.chartData.forEach(function (item, index) {\n var chartItem = [{ v: item.User, f: \"\" + item.User + \"\" }, { v: item.Days }, { v: item.TotalTimeSpent }, { v: item.PageViews }] ;\n self.chart.data.push(chartItem);\n });\n this.chart.options = this.userReportingChartsService.getChartDefaultOptions();\n this.chartDataRows = this.chart.data;\n this.totalRecords = this.chart.data.length;\n this.isLoaded = true;\n }\n }).catch(error => {\n console.error(error);\n });\n }\n\n getUserIndividualInfo(selectedItem: any) {\n if (this.individualUserData != null)\n return;\n\n if (!!selectedItem) {\n var childId = this.chart.data.rows[selectedItem.row].c[0].v;\n this.userReportingChartsService.getUserIndividualInfo(childId).then(response => {\n this.individualUserData = response ? response : null;\n if (this.chartData) {\n this.chart.type = \"Table\",\n this.chart.data = { cols: [{ label: \"Total\", type: \"string\" }, { label: \"Page URL\", type: \"string\" }] };\n\n this.chart.data.rows = [];\n var self = this;\n this.individualUserData.PagesInfo.forEach(function (item, index) {\n var chartItem = { c: [{ v: item.Total }, { v: \"\" + item.PageUrl + \"\"}] };\n self.chart.data.rows.push(chartItem);\n })\n\n this.chartDataRows = this.chart.data.rows;\n this.totalRecords = this.chart.data.rows.length;\n this.isLoaded = true;\n }\n })\n }\n }\n}\n\n","import { Component, Inject, Input, OnInit } from '@angular/core';\n//import { GoogleChartInterface, GoogleChartComponent } from 'ng2-google-charts';\n\nimport { UsageReportingChartsService } from \"../usage-reporting-charts.service\";\nimport { IMostSearchedCodesModel } from \"../usage-reporting-charts.models\"\n\nimport template from '../chartsTemplate.html';\n\n@Component({\n selector: 'most-searched-codes-chart',\n template: template\n})\nexport class MostSearchedCodesChartComponent {\n //chart: GoogleChartInterface = {\n // chartType: 'Table',\n // options: {}\n //};\n chart: any = {};\n\n chartData: IMostSearchedCodesModel[];\n chartDataRows: any[];\n totalRecords: number = 0;\n searchQuery: string = \"\";\n\n isLoaded: boolean = false;\n\n constructor(@Inject(UsageReportingChartsService) private userReportingChartsService: UsageReportingChartsService) {\n\n }\n\n ngOnInit() {\n \n this.getMostSearchedCodes();\n };\n\n search() {\n this.chart.data = this.userReportingChartsService.search(this.chartDataRows, this.searchQuery);\n this.totalRecords = this.chart.data.count;\n this.isLoaded = true;\n }\n\n getMostSearchedCodes() {\n this.userReportingChartsService.getMostSearchedCodes().then(response => {\n this.chartData = response ? response : [];\n if (this.chartData) {\n this.chart.type = \"Table\";\n this.chart.columnNames = [{ label: \"Total\", type: \"number\" }, { label: \"Code\", type: \"string\" }];\n\n this.chart.data = [];\n var self = this;\n this.chartData.forEach(function (item, index) {\n var chartItem = [{ v: item.Total }, { v: item.Code }] ;\n self.chart.data.push(chartItem);\n })\n this.chart.options = this.userReportingChartsService.getChartDefaultOptions();\n this.chartDataRows = this.chart.data;\n this.totalRecords = this.chart.data.length;\n this.isLoaded = true;\n }\n }).catch(error => {\n console.error(error);\n });\n }\n}\n\n","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { UsageReportingChartsService } from \"../usage-reporting-charts.service\";\nimport { IMostSearchedTermsModel } from \"../usage-reporting-charts.models\"\n\nimport template from '../chartsTemplate.html';\n\n@Component({\n selector: 'most-searched-terms-chart',\n template: template\n})\nexport class MostSearchedTermsChartComponent {\n chart: any = {};\n chartData: IMostSearchedTermsModel[];\n chartDataRows: any[];\n\n totalRecords: number = 0;\n //Search\n searchQuery: string = \"\";\n\n isLoaded: boolean = false;\n\n constructor(@Inject(UsageReportingChartsService) private userReportingChartsService: UsageReportingChartsService) {\n\n }\n\n ngOnInit() {\n this.getMostSearchedTerms();\n }\n\n search() {\n this.chart.data = this.userReportingChartsService.search(this.chartDataRows, this.searchQuery);\n this.totalRecords = this.chart.data.length;\n this.isLoaded = true;\n }\n\n getMostSearchedTerms() {\n this.userReportingChartsService.getMostSearchedTerms().then(response => {\n this.chartData = response ? response : [];\n if (this.chartData) {\n this.chart.type = \"Table\";\n this.chart.columnNames = [{ label: \"Total\", type: \"number\" }, { label: \"Term(s)\", type: \"string\" }, { label: \"Search Type\", type: \"string\" }];\n\n this.chart.data= [];\n var self = this;\n this.chartData.forEach(function (item, index) {\n var chartItem = [{ v: item.Total }, { v: item.Term }, { v: item.SearchType }];\n self.chart.data.push(chartItem);\n })\n this.chart.options = this.userReportingChartsService.getChartDefaultOptions();\n this.chartDataRows = this.chart.data;\n this.totalRecords = this.chart.data.length;\n this.isLoaded = true;\n }\n }).catch(error => {\n console.error(error);\n });\n }\n}\n","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { UsageReportingChartsService } from \"../usage-reporting-charts.service\";\nimport { IMostViewedDetailPageModel } from \"../usage-reporting-charts.models\"\n\nimport template from '../chartsTemplate.html';\n\n@Component({\n selector: 'most-viewed-pages-chart',\n template: template\n})\nexport class MostViewedPagesChartComponent {\n chart: any = {};\n chartData: IMostViewedDetailPageModel[];\n chartDataRows: any[];\n\n totalRecords: number;\n //Search\n searchQuery: string = \"\";\n\n isLoaded: boolean = false;\n\n constructor(@Inject(UsageReportingChartsService) private userReportingChartsService: UsageReportingChartsService) {\n }\n\n ngOnInit() {\n // this.chart.options = this.userReportingChartsService.getChartDefaultOptions();\n this.getMostViewedPages();\n };\n\n search() {\n this.chart.data = this.userReportingChartsService.search(this.chartDataRows, this.searchQuery);\n this.totalRecords = this.chart.data.length;\n this.isLoaded = true;\n }\n\n getMostViewedPages() {\n this.userReportingChartsService.getMostViewedDetailPages().then(response => {\n\n this.chartData = response ? response : [];\n\n \n if (this.chartData) {\n\n this.chart.type = \"Table\";\n this.chart.columnNames = [\"Total\", \"Code\"];\n\n this.chart.data = [];\n var self = this;\n this.chartData.forEach(function (item, index) {\n var chartItem = [{ v: item.Total }, {v: item.PageName, f: \"\" + item.PageName + \"\" }];\n self.chart.data.push(chartItem);\n });\n this.chart.options = this.userReportingChartsService.getChartDefaultOptions();\n this.chartDataRows = this.chart.data;\n this.totalRecords = this.chart.data.length;\n this.isLoaded = true;\n }\n }).catch(error => {\n console.error(error);\n });\n }\n}\n\n","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { UsageReportingChartsService } from \"./usage-reporting-charts.service\";\nimport * as usageChartModels from \"./usage-reporting-charts.models\";\n\nimport template from './usage-reporting-charts.html';\n\n@Component({\n selector: 'usage-reporting-charts',\n template: template\n})\nexport class UsageReportingChartsComponent {\n\n chartCategory: usageChartModels.ChartCategory = usageChartModels.ChartCategory.Team;\n teamChartsCategory: usageChartModels.TeamChartsCategoryType = usageChartModels.TeamChartsCategoryType.Page;\n\n constructor(@Inject(UsageReportingChartsService) private userReportingChartsService: UsageReportingChartsService) {\n\n }\n\n changeCategory(category: usageChartModels.ChartCategory) {\n this.chartCategory = category;\n\n if (category === usageChartModels.ChartCategory.Individual) {\n this.teamChartsCategory = usageChartModels.TeamChartsCategoryType.Page;\n }\n }\n\n changeTeamChartType(teamChartType: usageChartModels.TeamChartsCategoryType) {\n this.teamChartsCategory = teamChartType;\n }\n\n}\n","export interface IMostViewedDetailPageModel {\n Total: number,\n PageUrl: string,\n PageName: string\n}\n\nexport interface IMostSearchedTermsModel {\n Total: number,\n Term: string,\n SearchType: string\n}\n\nexport interface IMostSearchedCodesModel {\n Total: number,\n Code: string\n}\n\n//Summary Users Inquiry Info Model\nexport interface IUsersSummaryInfo {\n User: string,\n AverageTime: string,\n PageViews: number,\n CustomerId: number,\n Days: number,\n TotalTimeSpent: string\n}\n\nexport interface IUserIndividualInfo {\n PagesInfo: IMostViewedDetailPageModel[],\n FirstName: string,\n LastName: string\n}\n\n\nexport enum ChartCategory {\n Team = \"Team\",\n Individual = \"Individual\"\n}\n\nexport enum TeamChartsCategoryType {\n Page = \"Page\",\n Term = \"Term\",\n Code = \"Code\"\n}","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { GoogleChartsModule } from 'angular-google-charts';\n\nimport { UsageReportingChartsComponent } from \"./usage-reporing-charts.component\";\nimport { UsageReportingChartsService } from \"./usage-reporting-charts.service\";\nimport { MostViewedPagesChartComponent } from \"./teamCharts/most-viewed-pages-chart.component\";\nimport { MostSearchedTermsChartComponent } from \"./teamCharts/most-searched-terms-chart.component\";\nimport { MostSearchedCodesChartComponent } from \"./teamCharts/most-searched-codes-chart.component\";\nimport { UsersSummaryInfoChartComponent } from \"./individualCharts/users-summary-info.component\";\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n GoogleChartsModule\n ],\n providers: [\n UsageReportingChartsService\n ],\n declarations: [\n UsageReportingChartsComponent,\n MostViewedPagesChartComponent,\n MostSearchedTermsChartComponent,\n MostSearchedCodesChartComponent,\n UsageReportingChartsComponent,\n UsersSummaryInfoChartComponent\n\n ]\n})\nexport class UsageReportingModule { }\n\n\n//export default angular.module(\"codingCenterApp.usageReportingCharts\", [])\n// .directive(\"usageReportingCharts\", downgradeComponent({ component: UsageReportingChartsComponent }))\n// .directive(\"mostViewedPagesChart\", downgradeComponent({ component: MostViewedPagesChartComponent }))\n// .directive(\"mostSearchedTermsChart\", downgradeComponent({ component: MostSearchedTermsChartComponent }))\n// .directive(\"mostSearchedCodesChart\", downgradeComponent({ component: MostSearchedCodesChartComponent }))\n// .directive(\"usersSummaryInfoChart\", downgradeComponent({ component: UsersSummaryInfoChartComponent }))\n// .factory(\"UsageReportingChartsService\", downgradeInjectable(UsageReportingChartsService))\n// .name;","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\nimport * as model from \"./usage-reporting-charts.models\";\n\n\n\n\n@Injectable({\n providedIn: 'root'\n})\nexport class UsageReportingChartsService {\n\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n apiUrl: string = '/mvc/api/UsageReportingCharts/';\n\n\n getMostViewedDetailPages(): Promise {\n return this.http.get(this.apiUrl + 'GetMostViewedDetailPages').toPromise();\n }\n\n getMostSearchedTerms(): Promise {\n return this.http.get(this.apiUrl + 'GetMostSearchedTerms').toPromise();\n }\n\n getMostSearchedCodes(): Promise {\n return this.http.get(this.apiUrl + 'GetMostSearchedCodes').toPromise();\n }\n\n getUsersSummaryInfo(): Promise {\n return this.http.get(this.apiUrl + 'GetUsersSummaryInfo').toPromise();\n }\n\n getUserIndividualInfo(childId: number): Promise {\n return this.http.get(this.apiUrl + 'GetUserIndividualInfo',\n { params: { childId: childId.toString() } }).toPromise();\n }\n\n search(items: any[], searchQuery: string): any[] {\n\n if (!items)\n return [];\n\n if (!searchQuery) \n return items;\n\n var filteredItems = [];\n var self = this;\n\n items.forEach(function (row, index) {\n for (var prop in row) {\n if (self.searchMatch(row[prop].v.toString(), searchQuery)) {\n filteredItems.push(row);\n break;\n }\n }\n\n });\n return filteredItems;\n }\n\n searchMatch(item, query) {\n if (!query)\n return false;\n\n return item.toLowerCase().indexOf(query.toLowerCase()) !== -1\n }\n\n getChartDefaultOptions(): any {\n return {\n allowHtml: true,\n sort: 'disable',\n page: 'enable',\n pageSize: 25,\n width: 700\n }\n }\n}","import { Pipe, PipeTransform } from '@angular/core';\n\nimport { IUserNote } from './userNotes.models';\n\n@Pipe({ name: 'filterNotes' })\nexport class FilterNotesPipe implements PipeTransform {\n transform(allNotes: IUserNote[], filterVal: string) {\n if (!allNotes || !filterVal) {\n return allNotes;\n }\n var filteredList = allNotes.filter(note => (note.UserNote!=\"\" && note.UserNote?.toLowerCase().includes(filterVal.toLowerCase())) || (note.Code !=\"\" && note.Code?.toLowerCase().includes(filterVal.toLowerCase())) || (note.Description != \"\" && note.Description?.toLowerCase().includes(filterVal.toLowerCase())));\n return filteredList;\n }\n}","import { Component, Inject, Input } from '@angular/core';\nimport * as ClassicEditor from '@ckeditor/ckeditor5-build-classic';\n\nimport { UserNotesService } from './userNotes.service'\nimport userNotesLookbackTemplate from './user-notes-lookback.html';\nimport { UserNotesComponent } from './user-notes.component';\n\n@Component({\n selector: 'user-notes-lookback',\n template: userNotesLookbackTemplate\n})\nexport class UserNotesLookbackComponent {\n\n constructor(@Inject(UserNotesService) public userNotesService: UserNotesService) {\n }\n\n @Input() itemid: number;\n @Input() itemtype: string;\n @Input() isadmin: Boolean;\n\n public userEditor = ClassicEditor;\n public groupEditor = ClassicEditor;\n\n origUserNote: string = \"\";\n origGroupNote: string = \"\";\n groupNoteContent: string;\n userNoteContent: string;\n disabled: Boolean;\n noteDetails: any;\n\n\n\n // Loads the user and group notes for the MItem\n ngOnInit() {\n\n const urlUser = \"/MVC/UserNotes/GetByCodeAndUser\";\n const urlGroup = \"/MVC/UserNotes/GetByCodeAndAgreement\";\n\n let iItemType = 0;\n\n switch (this.itemtype) {\n case \"MItem\":\n iItemType = 15;\n break;\n case \"ICD10\":\n iItemType = 13;\n break;\n }\n\n this.userNotesService.getByCodeAndUser(this.itemid, iItemType).then((response) => {\n const data = response;\n if (data) {\n this.origUserNote = data.UserNote;\n this.userNoteContent = data.UserNote;\n }\n },\n (response) => {\n console.error(response);\n });\n\n this.userNotesService.getByCodeAndAgreement(this.itemid, iItemType).then((response) => {\n const dataTwo = response;\n\n if (dataTwo) {\n this.origGroupNote = dataTwo.UserNote;\n this.groupNoteContent = dataTwo.UserNote;\n }\n },\n (response) => {\n console.error(response);\n });\n\n this.disabled = false;\n }\n\n populateNoteDetails(noteId, noteType, isGroupNote) {\n this.noteDetails = {\n noteId: noteId,\n noteType: noteType,\n isGroupNote: isGroupNote\n }\n }\n\n\n //Option for deleting loockback Notes for OASIS\n deleteUserNotes()\n { \n let codeByType = this.getCodeTypeIdByItemType(this.noteDetails.noteType);\n\n this.userNotesService.deleteUserNotes(this.noteDetails, codeByType).then((response) => {\n if (this.noteDetails.noteType == \"MItem\") {\n if (this.noteDetails.isGroupNote) {\n this.groupNoteContent = '';\n return;\n }\n this.userNoteContent = '';\n }\n }).catch((response) => {\n console.error(\"Note wasn't deleted: \" + response);\n })\n }\n\n \n\n getCodeTypeIdByItemType(itemType) {\n switch (itemType) {\n case \"MItem\":\n return 15;\n case \"ICD10\":\n return 13;\n }\n }\n}","import { Component, ElementRef, Inject, Input, ViewChild } from '@angular/core';\nimport { UserNotesService } from \"./userNotes.service\";\n\nimport userNotesModalTemplate from './user-notes-modal.html';\n\n@Component({\n selector: 'user-notes-modal',\n template: userNotesModalTemplate\n})\nexport class UserNotesModalComponent {\n\n constructor(@Inject(UserNotesService) private userNotesService: UserNotesService) {\n\n }\n\n @Input() isadmin: Boolean;\n\n // set the arrays as blank to start\n icd10CodeNotes = [];\n oasisCodeNotes = [];\n expiredCodeNotes = [];\n expiredOasisNotes = [];\n\n // variables for storing the sort order\n icd10currentSortOrder = \"\";\n oasisCurrentSortOrder = \"\";\n expiredCurrentSortOrder = \"\";\n oasisExpiredCurrentSortOrder = \"\";\n icd10Reverse = false;\n oasisReverse = false;\n expiredReverse = false;\n oasisExpiredReverse = false;\n\n // loading indicator\n notesLoading = false;\n\n searchText = \"\";\n\n ngOnInit() {\n\n this.displayUserNotes();\n }\n\n ngAfterViewInit() { \n $(\"#noteSearch\").keyup(function () {\n var noteSearchText = $(\"#noteSearch\").val();\n if (noteSearchText != \"\") {\n $(\".notes-expand\").each(function () {\n var isExpanded = $(this).attr('aria-expanded');\n if (isExpanded == null || isExpanded == 'false') {\n $(this).trigger('click');\n }\n });\n }\n else {\n $(\".notes-expand\").each(function () {\n if (!$(this).hasClass(\"collapsed\")) {\n $(this).trigger('click');\n }\n });\n }\n });\n }\n\n displayUserNotes() {\n this.notesLoading = true;\n\n this.userNotesService.getUserCodeNotes().then(response => {\n const data = response;\n\n if (data) {\n this.icd10CodeNotes = data.icd10Notes;\n this.oasisCodeNotes = data.oasisNotes;\n this.expiredCodeNotes = data.expiredNotes;\n this.expiredOasisNotes = data.expiredOasisNotes;\n this.notesLoading = false;\n }\n }); \n }\n\n\n // Sort the notes according to which column was clicked\n sortNotes(noteCodeType, sortBy) {\n\n if (noteCodeType == \"ICD10\") {\n\n if (this.icd10currentSortOrder == sortBy) {\n this.icd10Reverse = !this.icd10Reverse;\n }\n else {\n this.icd10Reverse = false;\n }\n\n this.icd10currentSortOrder = sortBy;\n\n if (sortBy == \"Type\") {\n this.icd10CodeNotes.sort(this.doSort(\"IsGroupNote\", this.icd10Reverse, null));\n }\n else if (sortBy == \"Code\") {\n this.icd10CodeNotes.sort(this.doSort(\"Code\", this.icd10Reverse, null));\n }\n else if (sortBy == \"Description\") {\n this.icd10CodeNotes.sort(this.doSort(\"Description\", this.icd10Reverse, null));\n }\n }\n\n if (noteCodeType == \"OASIS\") {\n if (this.oasisCurrentSortOrder == sortBy) {\n this.oasisReverse = !this.oasisReverse;\n }\n else {\n this.oasisReverse = false;\n }\n\n this.oasisCurrentSortOrder = sortBy;\n\n if (sortBy == \"Type\") {\n this.oasisCodeNotes.sort(this.doSort(\"IsGroupNote\", this.oasisReverse, null));\n }\n else if (sortBy == \"Code\") {\n this.oasisCodeNotes.sort(this.doSort(\"Code\", this.oasisReverse, null));\n }\n else if (sortBy == \"UserNote\") {\n this.oasisCodeNotes.sort(this.doSort(\"UserNote\", this.oasisReverse, null));\n }\n }\n\n if (noteCodeType == \"Expired\") {\n\n if (this.expiredCurrentSortOrder == sortBy) {\n this.expiredReverse = !this.expiredReverse;\n }\n else {\n this.expiredReverse = false;\n }\n\n this.expiredCurrentSortOrder = sortBy;\n\n if (sortBy == \"Type\") {\n this.expiredCodeNotes.sort(this.doSort(\"IsGroupNote\", this.expiredReverse, null));\n }\n else if (sortBy == \"Code\") {\n this.expiredCodeNotes.sort(this.doSort(\"Code\", this.expiredReverse, null));\n }\n else if (sortBy == \"Description\") {\n this.expiredCodeNotes.sort(this.doSort(\"Description\", this.expiredReverse, null));\n }\n }\n\n if (noteCodeType == \"OasisExpired\") {\n\n if (this.oasisExpiredCurrentSortOrder == sortBy) {\n this.oasisExpiredReverse = !this.oasisExpiredReverse;\n }\n else {\n this.oasisExpiredReverse = false;\n }\n\n this.oasisExpiredCurrentSortOrder = sortBy;\n\n if (sortBy == \"Type\") {\n this.expiredOasisNotes.sort(this.doSort(\"IsGroupNote\", this.oasisExpiredReverse, null));\n }\n else if (sortBy == \"Code\") {\n this.expiredOasisNotes.sort(this.doSort(\"Code\", this.oasisExpiredReverse, null));\n }\n else if (sortBy == \"UserNote\") {\n this.expiredOasisNotes.sort(this.doSort(\"UserNote\", this.oasisExpiredReverse, null));\n }\n }\n }\n\n // function for sorting the arrays\n doSort(field, reverse, primer) {\n var key = primer ?\n function (x) { return primer(x[field]); } :\n function (x) {\n return x[field];\n };\n\n let sortModifier = !reverse ? 1 : -1;\n\n return (a: any, b: any) => {\n const aval: any = key(a);\n const bval: any = key(b);\n\n const cmpVal: number = (aval === bval ? 0 : (aval > bval) ? 1 : -1);\n return sortModifier * cmpVal;\n };\n }\n\n convertNote(genericContentNoteId) {\n this.userNotesService.convertNote(genericContentNoteId);\n\n window.setTimeout(() => {\n this.userNotesService.getUserCodeNotes();\n this.displayUserNotes();\n }, 500);\n\n }\n\n}","import { Component, Inject, Input } from '@angular/core';\nimport * as ClassicEditor from '@ckeditor/ckeditor5-build-classic';\n\nimport { UserNotesService } from './userNotes.service'\nimport userNotesTemplate from './user-notes.html';\n\n@Component({\n selector: 'user-notes',\n template: userNotesTemplate\n})\nexport class UserNotesComponent {\n\n constructor(@Inject(UserNotesService) public userNotesService: UserNotesService) { }\n\n @Input() itemid: number;\n @Input() itemtype: string;\n @Input() isadmin: Boolean;\n\n public userEditor = ClassicEditor;\n public groupEditor = ClassicEditor;\n\n origUserNote: string = \"\";\n origGroupNote: string = \"\";\n groupNoteContent: string = \"\";\n userNoteContent: string = \"\";\n disabled: Boolean;\n noteDetails: any;\n\n\n // Loads the user and group notes for the MItem\n ngOnInit() {\n\n const urlUser = \"/MVC/UserNotes/GetByCodeAndUser\";\n const urlGroup = \"/MVC/UserNotes/GetByCodeAndAgreement\";\n\n let iItemType = 0;\n\n switch (this.itemtype) {\n case \"MItem\":\n iItemType = 15;\n break;\n case \"ICD10\":\n iItemType = 13;\n break;\n }\n\n this.userNotesService.getByCodeAndUser(this.itemid, iItemType).then((response) => {\n const data = response;\n if (data) {\n this.origUserNote = data.UserNote;\n this.userNoteContent = data.UserNote;\n }\n },\n (response) => {\n console.error(response);\n });\n\n this.userNotesService.getByCodeAndAgreement(this.itemid, iItemType).then((response) => {\n const dataTwo = response;\n\n if (dataTwo) {\n this.origGroupNote = dataTwo.UserNote;\n this.groupNoteContent = dataTwo.UserNote;\n }\n },\n (response) => {\n console.error(response);\n });\n\n this.disabled = false;\n }\n\n isContentLoaded(isGroupNote) {\n const content = isGroupNote\n ? this.groupNoteContent\n : this.userNoteContent;\n\n return content && content !== \"Enter your note\";\n }\n\n // Saves the note\n saveItemUserNote = function (itemId, itemType, isGroupNote) {\n \n let iItemType = 0;\n iItemType = this.getCodeTypeIdByItemType(itemType);\n\n let encodedContent;\n\n if (isGroupNote) {\n this.groupNoteContent = this.removeBorderingTags(this.groupNoteContent);\n encodedContent = encodeURIComponent(this.groupNoteContent);\n } else {\n this.userNoteContent = this.removeBorderingTags(this.userNoteContent);\n encodedContent = encodeURIComponent(this.userNoteContent);\n }\n\n this.userNotesService.saveUserNote(itemId, iItemType, isGroupNote, encodedContent).then((response) => {\n let editLink;\n if (isGroupNote) {\n this.origGroupNote = this.groupNoteContent;\n editLink = $(\"#editGroupNote\");\n }\n else {\n this.origUserNote = this.userNoteContent;\n editLink = $(\"#editUserNote\");\n }\n editLink.hide()\n .parent()\n .children(\".editLink\")\n .show();\n },\n (response) => {\n console.error(response);\n });\n }\n\n // Cancels the edit and returns existing value\n cancelUserNote(isGroupNote) {\n let editLink;\n if (isGroupNote) {\n this.groupNoteContent = this.origGroupNote;\n editLink = $(\"#editGroupNote\");\n editLink.hide();\n editLink.parent().children(\".editLink\").show();\n }\n else {\n this.userNoteContent = this.origUserNote;\n editLink = $(\"#editUserNote\");\n editLink.hide();\n editLink.parent().children(\".editLink\").show();\n }\n }\n\n populateNoteDetails(noteId, noteType, isGroupNote) {\n this.noteDetails = {\n noteId: noteId,\n noteType: noteType,\n isGroupNote:isGroupNote\n }\n }\n\n //Option for deleting loockback Notes for OASIS\n deleteUserNotes()\n { \n let codeByType = this.getCodeTypeIdByItemType(this.noteDetails.noteType);\n\n this.userNotesService.deleteUserNotes(this.noteDetails, codeByType).then((response) => {\n if (this.noteDetails.noteType == \"MItem\") {\n if (this.noteDetails.isGroupNote) {\n this.groupNoteContent = '';\n return;\n }\n this.userNoteContent = '';\n }\n }).catch((response) => {\n console.error(\"Note wasn't deleted: \" + response);\n })\n }\n\n // Since the textAngular wraps note content in p tags, we need to remove them\n removeBorderingTags(field) {\n let newField = field;\n if (field !== null && field !== \"\") {\n const pattern = new RegExp(\"^

.*

$\");\n if (pattern.test(field)) {\n newField = newField.substring(3, newField.length - 4);\n }\n }\n return newField;\n }\n\n getCodeTypeIdByItemType(itemType) {\n switch (itemType) {\n case \"MItem\":\n return 15;\n case \"ICD10\":\n return 13;\n }\n }\n}","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { CKEditorModule } from '@ckeditor/ckeditor5-angular';\n\n//import UserNotesController from \"./userNotesController\";\nimport { UserNotesLookbackComponent } from \"./user-notes-lookback.component\";\nimport { UserNotesModalComponent } from \"./user-notes-modal-component\";\nimport { UserNotesService } from \"./userNotes.service\";\nimport { UserNotesComponent } from \"./user-notes.component\";\nimport { FilterNotesPipe } from \"./filter-notes.pipe\";\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule,\n CKEditorModule\n ],\n providers: [\n UserNotesService\n ],\n declarations: [\n UserNotesLookbackComponent,\n UserNotesModalComponent,\n UserNotesComponent,\n FilterNotesPipe\n ]\n})\nexport class UserNotesModule { }\n\n","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\nimport { Subject } from \"rxjs\";\nimport * as model from \"./userNotes.models\";\n\n@Injectable({\n providedIn: 'root'\n})\nexport class UserNotesService {\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n content: model.IAjaxResultUserNoteContent;\n userNotesLoaded: Subject;\n\n getContent() {\n return this.content;\n }\n getUserCodeNotes() {\n const remoteUrl = \"/MVC/UserNotes/GetUserCodeNotes\";\n\n return this.http.get(remoteUrl).toPromise();\n }\n\n getByCodeAndUser(itemId: number, iItemType: number) {\n const urlUser = \"/MVC/UserNotes/GetByCodeAndUser\";\n\n let parameters = { params: { codeStaticId: itemId.toString(), codeType: iItemType.toString() } };\n\n return this.http.get(urlUser, parameters).toPromise();\n }\n\n getByCodeAndAgreement(itemId: number, iItemType: number) {\n const urlGroup = \"/MVC/UserNotes/GetByCodeAndAgreement\";\n let parameters = { params: { codeStaticId: itemId.toString(), codeType: iItemType.toString() } };\n\n return this.http.get(urlGroup, parameters).toPromise();\n }\n\n saveUserNote(itemId: number, iItemType: number, isGroupNote: Boolean, encodedContent: string) {\n const urlSave = \"/MVC/UserNotes/SaveUserCodeNoteForItem\";\n\n const parameters = {\n codeStaticId: itemId.toString(),\n codeType: iItemType.toString(),\n isGroupNote: isGroupNote,\n noteText: encodedContent\n };\n\n return this.http.post(urlSave, parameters).toPromise();\n }\n\n deleteUserNotes(noteDetails: any, codeByType: number) {\n const urlDelete = \"/MVC/UserNotes/DeleteUserNotes\";\n\n const parameters = {\n codeStaticId: noteDetails.noteId.toString(),\n codeType: codeByType,\n isGroupNote: noteDetails.isGroupNote\n };\n\n return this.http.post(urlDelete, parameters).toPromise();\n }\n\n convertNote(noteId: number) {\n const convertNoteUrl = \"/MVC/UserNotes/ConvertToGroupNote\";\n const parameters = {params: {noteId: noteId.toString()}};\n\n this.http.get(convertNoteUrl, parameters).toPromise().then(\n (response) => {\n const data = response;\n console.log('convert note', data);\n if (data === \"False\") {\n alert(\"The user note could not be converted - A group note already exists for this item.\");\n }\n },\n (response) => {\n console.error(response);\n });\n }\n}\n","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { IContentItem } from \"../content/content.models\";\n\nimport { ContentService } from \"../content/content.service\";\n\n\nimport videoWidgetTemplate from './video-widget.html';\n\n@Component({\n selector: 'video-widget',\n template: videoWidgetTemplate\n})\nexport class VideoWidgetComponent {\n\n constructor(@Inject(ContentService) private contentService: ContentService) {\n }\n\n @Input() tabindexvalue: number;\n @Input() isexpert: Boolean;\n\n @Input() contenttypeid: number;\n @Input() codetypeid: number;\n @Input() code: string;\n\n // props\n videosLoaded: Boolean;\n allVideos: any = [];\n shownVideos: any = [];\n pagedCount: number = 0;\n initialCount: number = 3;\n totalCount: number=0;\n\n ngOnInit() {\n this.loadVideos(false);\n }\n\n loadVideos(showAll: Boolean) {\n if (showAll) {\n this.pagedCount = this.totalCount;\n }\n else {\n this.pagedCount = this.initialCount;\n }\n if (this.allVideos.length < 1) {\n this.videosLoaded = false;\n\n this.contentService.loadContent(this.contenttypeid, this.codetypeid, this.code).then(data => {\n this.allVideos = data;\n this.totalCount = data.length;\n\n // Only show max count of records\n if (this.totalCount > this.initialCount) {\n this.shownVideos = this.allVideos.slice(0, this.pagedCount);\n }\n else {\n this.shownVideos = this.allVideos;\n }\n\n this.videosLoaded = true;\n });\n }\n else {\n // Only show max count of records\n if (this.totalCount > this.initialCount) {\n this.shownVideos = this.allVideos.slice(0, this.pagedCount);\n }\n else {\n this.shownVideos = this.allVideos;\n }\n }\n }\n\n \n\n // Displays an HTML blurb of 300 characters\n bodyBlurb(description: string): string {\n return description.substring(0, 300);\n }\n\n // Formats JSON dates correctly\n dateFormatter(dateVal: string, format): string {\n const month: string[] = [];\n month[0] = \"January\";\n month[1] = \"February\";\n month[2] = \"March\";\n month[3] = \"April\";\n month[4] = \"May\";\n month[5] = \"June\";\n month[6] = \"July\";\n month[7] = \"August\";\n month[8] = \"September\";\n month[9] = \"October\";\n month[10] = \"November\";\n month[11] = \"December\";\n\n const d = new Date(parseInt(dateVal.replace(/\\/Date\\((.*?)\\)\\//gi, \"$1\"), 10));\n\n if (format === \"full\") {\n return month[d.getMonth()] + \" \" + d.getDate() + \", \" + d.getFullYear();\n } else {\n return (d.getMonth() + 1) + \"/\" + d.getDate() + \"/\" + d.getFullYear();\n }\n }\n}","import { Component, Inject, Input, OnInit } from '@angular/core';\nimport { IContentItem } from \"../content/content.models\";\n\nimport { VideoService } from \"./video.service\";\n\n\nimport videoTemplate from './video.html';\n\n@Component({\n selector: 'video-page',\n template: videoTemplate\n})\nexport class VideoComponent {\n\n constructor(@Inject(VideoService) private videoService: VideoService) {\n }\n\n @Input() tabindexvalue: number;\n @Input() isexpert: Boolean;\n\n // props\n videosLoaded: Boolean;\n icd10Videos: any = [];\n oasisVideos: any = [];\n\n totalcount: number;\n predicate: string = \"DisplayDateRaw\";\n reverse: Boolean;\n \n // Displays a count of a specific type of articles\n ngOnInit() {\n // Indicates if we should show results or loading wheel\n this.videosLoaded = false;\n this.videoService.getVideos().then(response => {\n this.icd10Videos = response.I10Contents;\n this.oasisVideos = response.OASISContents;\n });\n }\n\n sortBy(codeSet: string, prop: string) {\n if (codeSet == 'icd10') {\n if (this.icd10Videos) {\n return this.icd10Videos.sort((a, b) => a[prop] > b[prop] ? 1 : a[prop] === b[prop] ? 0 : -1);\n }\n } else {\n if (this.oasisVideos) {\n return this.oasisVideos.sort((a, b) => a[prop] > b[prop] ? 1 : a[prop] === b[prop] ? 0 : -1);\n }\n } \n }\n\n orderResults(predicate: string) {\n this.reverse = (this.predicate === predicate) ? !this.reverse : false;\n this.predicate = predicate;\n }\n\n // Displays an HTML blurb of 300 characters\n bodyBlurb(description: string): string {\n return description.substring(0, 300);\n }\n\n // Formats JSON dates correctly\n dateFormatter(dateVal: string, format): string {\n const month: string[] = [];\n month[0] = \"January\";\n month[1] = \"February\";\n month[2] = \"March\";\n month[3] = \"April\";\n month[4] = \"May\";\n month[5] = \"June\";\n month[6] = \"July\";\n month[7] = \"August\";\n month[8] = \"September\";\n month[9] = \"October\";\n month[10] = \"November\";\n month[11] = \"December\";\n\n const d = new Date(parseInt(dateVal.replace(/\\/Date\\((.*?)\\)\\//gi, \"$1\"), 10));\n\n if (format === \"full\") {\n return month[d.getMonth()] + \" \" + d.getDate() + \", \" + d.getFullYear();\n } else {\n return (d.getMonth() + 1) + \"/\" + d.getDate() + \"/\" + d.getFullYear();\n }\n }\n}","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { VideoComponent } from \"./video.component\";\nimport { VideoWidgetComponent} from \"./video-widget.component\";\nimport { VideoService } from \"./video.service\";\n\n@NgModule({\n imports: [\n CommonModule,\n FormsModule\n ],\n providers: [\n VideoService\n ],\n declarations: [\n VideoComponent,\n VideoWidgetComponent\n ]\n})\nexport class VideoModule { }\n","import { Injectable, Inject } from '@angular/core';\nimport { HttpClient } from \"@angular/common/http\";\nimport { IVideoContent } from \"./video.models\";\n\n@Injectable({\n providedIn: 'root'\n})\nexport class VideoService {\n constructor(@Inject(HttpClient) private http: HttpClient) {\n }\n\n url: string = '/mvc/Video/GetVideos';\n\n getVideos(){\n return this.http.get(this.url).toPromise();\n }\n\n \n}","// Module\nvar code = \"
New Interactive Scenarios are available as a drop-down option under the Scenarios tab on the Menu Bar.
To learn more, see the Interactive Scenarios article under the Menu Bar section of the Help Center.
X
CLOSE
\";\n// Exports\nexport default code;","// Module\nvar code = \"
Make the most of your Home Health Coding Center Expert trial:
  • Search the Alpha Index for a diagnosis
  • Bookmark a favorite or hard-to-find code
  • Search the CMS Q&As by term
Stuck? Find articles and training videos in the Help Center.
Trial Countdown

{{trialDaysRemaining}} Day Days

Remains Remain !
X
CLOSE
\";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/loadingWheel.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar code = \"

ICD-10 Search Results

No Results Found.

\";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/coding-center-expert2.png\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_1___ = new URL(\"/assets/img/coding-center-prof2.png\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_2___ = new URL(\"/assets/img/cc-diagnosis-coding-pro2.png\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_3___ = new URL(\"/assets/img/coding-center-standard2.png\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar ___HTML_LOADER_REPLACEMENT_1___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_1___);\nvar ___HTML_LOADER_REPLACEMENT_2___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_2___);\nvar ___HTML_LOADER_REPLACEMENT_3___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_3___);\nvar code = \" \";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/select-all.png\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_1___ = new URL(\"/assets/img/print.png\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar ___HTML_LOADER_REPLACEMENT_1___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_1___);\nvar code = \"

Code Tracker

  • PDGM
  • Primary Dx
  • Primary Dx
  • Low Comorbidity Adjustment
  • Low Comorbidity Adjustment
  • High Comorbidity Interaction Adjustment
  • High Comorbidity Interaction Adjustment
\\\"select \\\"print\\\"
  • Code Description
  • {{billpadCode.Code}} {{billpadCode.Description}}
Close or Ctrl-C for copy
\";\n// Exports\nexport default code;","// Module\nvar code = \" \";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/bookmark-disabled.png\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar code = \"

My Bookmarks

ICD-10-CM Codes

OASIS Items

Articles

\\\"Add

{{articlesBookmark.Title}}

{{articlesBookmark.ContentDate | date:'MM/dd/yyyy'}}

{{articlesBookmark.Description}} Read More

\";\n// Exports\nexport default code;","// Module\nvar code = \" \";\n// Exports\nexport default code;","// Module\nvar code = \"
0\\\">

My Bulletins

\";\n// Exports\nexport default code;","// Module\nvar code = \"

 Bulletin

Subject: 



Is Active: 
\";\n// Exports\nexport default code;","// Module\nvar code = \"

My Bulletins

 Bulletin

Subject: 



Is Active: 
\";\n// Exports\nexport default code;","// Module\nvar code = \"

My Messages

0\\\">

{{message.Subject}}

 |  Posted by: {{message.FromUser}}  |  Category: {{message.Category}}

...Read More

Compose Message

Category: 

Subject: 

\";\n// Exports\nexport default code;","// Module\nvar code = \"

{{subject}}

 |  Posted by:{{fromUser}}  |  Category:{{category}}

\";\n// Exports\nexport default code;","// Module\nvar code = \" \";\n// Exports\nexport default code;","// Module\nvar code = \" \";\n// Exports\nexport default code;","// Module\nvar code = \"

{{title}}

\";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/loadingWheel.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar code = \"
0\\\">

{{trainingopp.Name}}

{{trainingopp.DisplayDate}}

No training opportunities have been found

\\\"loading

View All View All

\";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/loadingWheel.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar code = \"
0\\\">

No articles have been found

\\\"loading

View All

\";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/loadingWheel.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar code = \"

Search Results for {{searchkeywords}}

0\\\">Results {{currentPageMinCount}} - {{currentPageMaxCount}} of {{totalRecords}}

0\\\">
Sort by  
Sort by  

No Results Found.

\\\"loading

\";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/search-icon.png\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar code = \"

Search Articles

\";\n// Exports\nexport default code;","// Module\nvar code = \"

{{paneltitle}}

\";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/loadingWheel.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar code = \"

Breaking News Articles

\\\"loading

= ArticleNewIconStartDate\\\">NEW {{article.Subject}}

Read More

\";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/loadingWheel.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar code = \"

Breaking News

= BNNewIconStartDate\\\">NEW

View All Headlines View All Headlines

\\\"loading
\";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/Marketing/CodingProImage.png\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_1___ = new URL(\"/assets/img/loadingWheel.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar ___HTML_LOADER_REPLACEMENT_1___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_1___);\nvar code = \"

In the Latest Issue

0\\\">

No articles have been found

\\\"loading
\";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/loadingWheel.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar code = \"

In the Latest Issue


No newsletter articles have been found

\\\"loading
\";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/pdf-icon.png\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_1___ = new URL(\"/assets/img/loadingWheel.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar ___HTML_LOADER_REPLACEMENT_1___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_1___);\nvar code = \"

Newsletter Articles

{{newsletterName}} \\\"download


0\\\">

No newsletter articles have been found

\\\"loading
\";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/loadingWheel.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar code = \"

Newsletter Issues

0\\\"> \\\"loading

Results {{currentPageMinCount}} - {{currentPageMaxCount}} of {{totalRecords}}

No Newsletters Found.

\";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/loadingWheel.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar code = \" \";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/loadingWheel.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar code = \"

Term Detail for \\\"Loading\\\"

  • Definition

  • Syllable

  • Abbr

  • Pronunciation

  • Etymology

  • Official Publication

  • ICD10 CrossLinks  


Dorland's Electronic Medical Dictionary, 32nd edition, © Elsevier, Inc. All Rights Reserved

\";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/loadingWheel.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar code = \"
0\\\">
Total results: {{totalResults}} 0\\\"><< Previous | Next >>
\\\"Loading\\\"
There are no results.
\";\n// Exports\nexport default code;","// Module\nvar code = \"

Search Dorland's Dictionary or Browse Appendices

\";\n// Exports\nexport default code;","// Module\nvar code = \" \";\n// Exports\nexport default code;","// Module\nvar code = \"
See (See Also )
\";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/loadingWheel.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar code = \" {{code.Code}}: {{code.Description}}
\";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/loadingWheel.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar code = \" \";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/recent-alpha-searches.png\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar code = \"
\\\" data-content=\\\"View Alpha Index search results\\\" data-placement=\\\"right\\\" data-toggle=\\\"popover\\\"> \\\"Recent
Alpha Index Search Results for {{searchTerm}}

{{startCount}} - {{endCount}} of {{resultCount}} Results

{{startCount}} - {{endCount}} of {{resultCount}} Results

\";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/loadingWheel.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar code = \"

ICD-10 {{searchtypestring}} Search Results for {{keywords}}

Would you like to search for {{keywords}} in

Results {{currentPageMinCount}} - {{currentPageMaxCount}} of {{totalRecords}}

Sort by
0\\\">
Icons
Code
Description
({{code.SectionMatches}})
-1)) ? 'in' : (!isFirst ? 'collapse' : '')\\\">
Substance Poisoning, Accidental (unintentional) Poisoning, Intentional self-harm Poisoning, Assault Poisoning, Undetermined Adverse effect Underdosing
See (See Also )
-1)) ? 'in' : (!isFirst ? 'collapse' : '')\\\"> -1) ? 'in' : ''\\\" [hidden]=\\\"!dataRow.Notes\\\">
  Malignant      
  Primary Secondary Ca In Situ Benign Uncertain Behavior Unspecified
( -1)\\\" [attr.data-target]=\\\"'#description'+i\\\" [innerHTML]=\\\"dataRow.ShowNotes ? 'hide more' : 'show more'\\\" (click)=\\\"dataRow.ShowNotes = !dataRow.ShowNotes\\\">) See (See Also )

\\\"loading
0 || indexSearchResult?.length > 0\\\" style=\\\"height:55px;margin-top:20px\\\">
Sort by

No Results Found.

0\\\">Please try these alternatives:

\\\"loading

0\\\" *ngFor=\\\"let searchType of altSearchGroups\\\">
  • {{searchType.TermType}}

\";\n// Exports\nexport default code;","// Module\nvar code = \"

OASIS Crosslinks  

OASISXLinksDisplay.length\\\">See all {{OASISXLinks.length}} crosslinks

\";\n// Exports\nexport default code;","// Module\nvar code = \"

ICD-10 mappings for code {{ICD9Code}}

No results were found

Please enter codes at the greatest level of specificity

0\\\">
0\\\">
  • Exact
  • 0\\\">

    View Related Codes
    0\\\">
  • Approximate
  • 0\\\">

    View Related Codes
    0\\\">

  • Combination

  • Scenario {{i+1}}

    View Related Codes
    0 && mappingPaging.length > 1\\\">

     

    0\\\">
    Related Codes
    {{rc.Code}} {{rc.PrintDescription}}
    \";\n// Exports\nexport default code;","// Module\nvar code = \" \";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/pdf-icon.png\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_1___ = new URL(\"/assets/img/loadingWheel.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar ___HTML_LOADER_REPLACEMENT_1___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_1___);\nvar code = \"

    {{categoryName}}

      0\\\">
    • {{subCat.categoryName}}

    0\\\">
    Year Description
    {{file.Year}} \\\"\\\"/ {{file.DisplayName}}
    \\\"loading
    \";\n// Exports\nexport default code;","// Module\nvar code = \"
    End User License Agreement

    IMPORTANT - READ CAREFULLY:

    BY COMPLETING THE ELECTRONIC ACCEPTANCE PROCESS AND CLICKING THE ACCEPTANCE BUTTON, YOU REPRESENT AND WARRANT THAT YOU: (i) ARE 18 YEARS OF AGE OR OLDER; (ii) ARE, OR ARE AUTHORIZED TO SIGN FOR AND BIND, THE CONTRACTING PARTY DEFINED BELOW AS \\\"END USER\\\"; AND (iii) HAVE READ, UNDERSTAND AND AGREE ON BEHALF OF END USER TO BE BOUND BY ALL OF THE TERMS AND CONDITIONS OF THIS ONLINE SUBSCRIPTION AGREEMENT.

    The following subscription agreement terms and conditions, consisting of the provisions below and the terms of the Privacy Policy and Website Terms and Conditions, each of which may be viewed at codingcenter.decisionhealth.com, govern your subscription to and use of the DecisionHealth, LLC’s Home Health Coding Center website, content and service (collectively, the “Service”). Any purchaser or user of any materials accessible via the Service is an End User for purposes of this Agreement.

    The Agreement is a legal and binding instrument entered into as of the date of electronic acceptance by End User (the \\\"Effective Date\\\"), by and between DecisionHealth, LLC (\\\"DecisionHealth\\\"), and End User, the individual or entity entering into this Agreement. DecisionHealth reserves the right to amend this Agreement from time to time without notice to End User.

    TERMS AND CONDITIONS OF USE

    These Terms and Conditions of Use (the “Terms and Conditions”), and any ordering documents signed by the parties, including any exhibits thereto (“Order” or “Orders” and together with the Terms and Conditions, the “Agreement”) represents the parties’ entire understanding regarding the Customer’s access and use of the website (the “Website”) to which these Terms and Conditions relate, along with the services and Content (as defined below) offered on the Website. The Website, services and Content are collectively referred to herein as the “Application”. The Application is a product of DecisonHealth, LLC (“DecisionHealth”, “we” or “our”).

    The term “you” and “your” refer to anyone who accesses the Application including Customer and its Users (as defined below).

    TERMS AND CONDITIONS

    DecisionHealth may change these Terms and Conditions at any time without notice. Changes will be posted on the Website under “Terms and Conditions”.

    Your use of the Application after any changes have been posted will constitute your agreement to the modified Terms and Conditions and all of the changes. You are responsible for regularly reviewing information posted online to obtain timely notice of such changes. Your continued use of this Application after changes are posted constitutes your acceptance of these Terms and Conditions as modified by the posted changes.

    DecisionHealth’s Privacy Policy is posted at www.decisionhealth.com/about/privacy.aspx.

    REGISTRATION

    Access to the Application is limited to Customer and, to the extent permitted in any Order, those individuals authorized by Customer or on Customer's behalf, and who are Customer's employees, agents or contractors (\\\"Users\\\"). To subscribe to the Application, Customer may be required to execute a signed copy of a subscription agreement or Order and Customer must accept these Terms and Conditions. Each User must complete the online registration process, including User's electronic acceptance of these Terms and Conditions, and we must then accept such online registration. We may reject an online registration by a potential User in our sole discretion and we are not obligated to provide a reason for our rejection. The Application is available ONLY for the number of designated Users identified in Customer’s Order and may not be shared with other non-designated persons or entities. Unless specifically designated as a multi-user subscription in an Order executed by the Customer, your subscription to the Application is a single-user subscription.

    As part of the online registration process, we will collect certain limited information about each User (\\\"Registration Data\\\"). All Registration Data provided by or on behalf of User must be current, complete and accurate, and User is solely responsible for updating such Registration Data as necessary. Subscriptions accessed with individual user name and password are granted a nonexclusive, non-concurrent, nontransferable, limited license to access the Application. We reserve the right to terminate User’s access to the Application immediately in the event any Registration Data is found to be inaccurate, incomplete or not current at any time. Customer shall notify DecisionHealth of the termination of any User registration and any new Users must provide Registration Data prior to accessing the Application.

    As part of the online registration process, we will assign a user name to you and you will choose a password. The Customer and each designated User are responsible for the confidentiality and use of the User's name and personal password and all activity and use under the user name and password. User agrees to notify us immediately of any unauthorized use of User’s account or any other breach of security. We shall not be liable for any loss that User may incur as a result of a third party using its password or account, either with or without its knowledge. User may be held liable for losses incurred by us or another party due to a third party using User's account or password.

    USE OF THE APPLICATION

    DecisionHealth hereby grants you a non-exclusive, non-transferable, limited license to access and use the Application under the terms set forth below.

    The Application and the content, including, but not limited to, text, data, reports, opinions, images, photos, audio, graphics, graphs, analysis, charts, search engine, third-party content, animations and video (the “Content”), displayed in the Application are subject to copyright, database protection, and other rights of DecisionHealth under the laws of the United States and the country of use. Customer acknowledges that it has no claim to ownership by reason of its use of or access to the Application. Except as otherwise permitted under these Terms and Conditions, neither Customer nor any User may resell, distribute, post on the internet or on any intranet, or otherwise use the Application, on a timeshare or service bureau basis for purposes of reselling the Application or any Content thereon. Neither the Application nor any Content may be copied, reproduced, modified, framed, hyperlinked, republished, downloaded, uploaded, posted, transmitted or distributed in whole or in part, directly or indirectly, bundled or unbundled for purposes of reselling the Application or related Content or otherwise charging others to use the Application or Content. Except as otherwise permitted herein, neither Customer nor any User may redistribute, reproduce, retransmit, disseminate, sell, publish, broadcast, or circulate the information contained in the Application to any third party without our express written consent. A User may access and use the Application solely for the purpose of performing services for the Customer or for use in such User’s capacity as an employee of Customer. Users are strictly prohibited from accessing or using the Application for the benefit of any party other than Customer. Other than as may be required to comply with laws and regulations to which you may be subject (and then, only with the prior written consent of DecisionHealth), it is strictly prohibited for Customer or any User to download copies of the Application or any Content related thereto for archival use. No other distribution of the Application or any Content related thereto by Customer or any User including, but not limited to, distribution via site licensing, on-line distribution, off-line downloading, FTP site, tapes, discs, CD-ROM, optical media, thumb drive, hard copy formats, or print publication shall be permitted without our express written permission. Customer specifically agrees and understands that no rights to sub-license to any third party are being granted to you under this Agreement. Except for the limited license specifically provided herein, this Agreement shall not transfer to you any right to, or interest in, the Application or in any Content, or in any copyright or trademark pertaining thereto. Each of Customer and any User acknowledge that they have no claim to ownership of the Application or any Content related thereto simply by reason of use of or access to the Service.

    You agree to use the Application only for lawful purposes, and in a manner that does not infringe the rights of, or restrict or inhibit the use and enjoyment of this site by any third party. Such restriction or inhibition includes, without limitation, conduct which is unlawful, or which may harass or cause distress or inconvenience to any person and the transmission of obscene or offensive content or disruption of normal flow of dialogue within the Application.

    The Application and Content are each the exclusive property of DecisionHealth or its licensors, and is protected by copyright and other intellectual property laws. All trade names, trademarks, service marks and other product and service names and logos in the Application and within the Content are proprietary to their respective owners and are protected by applicable trademark and copyright laws. Any of the trademarks, service marks or logos (collectively, the “Marks”) displayed in the Application may be registered or unregistered marks of DecisionHealth or others. Nothing contained in this Application should be construed as granting any license or right to use any of the Marks displayed in the Application without the express written permission of DecisionHealth or a third party owner of such Marks. Any unauthorized uses of the Marks or any other Content are strictly prohibited. To request permission to use any Content or other DecisionHealth material, please contact DecisionHealth at customerservice@DecisionHealth.com.

    You shall honor all reasonable requests by DecisionHealth to protect DecisionHealth's proprietary interests in the Application and Content.

    DecisionHealth reserves the right to monitor your use of the Application to ensure compliance with this Agreement and prevent fraudulent use. You acknowledge that such monitoring of use may include determining whether or not the Application is accessed under the account from multiple IP addresses, as well as noting excessive downloads or a disproportionate number of Users. Systematic access or extraction of content from the Application, including, but not limited to, the use of \\\"bots\\\" or \\\"spiders,\\\" is prohibited. If such monitoring indicates you are not in compliance with this Agreement or if fraudulent activity is suspected, DecisionHealth reserves the right to take such action as it deems necessary, including, but not limited to, assessing additional charges for Users or downloaded records in excess of the number authorized, or suspension or termination of the account.

    Customer shall be solely responsible for obtaining and maintaining appropriate equipment and ancillary services needed to connect to, access or otherwise use the Application, including, without limitation, computers, computer operating system and web browser (collectively, \\\"Equipment\\\"). Customer shall ensure that Equipment complies with all configurations and specifications set forth in DecisionHealth’s published documentation.

    DISCLAIMER

    THE CONTENT AND THE WEB SITE ARE PROVIDED “AS IS”, WITHOUT ANY WARRANTIES. DECISIONHEALTH DOES NOT MAKE ANY GUARANTEES OR WARRANTIES AS TO THE ACCURACY, COMPLETENESS, TIMELINESS OR CURRENTNESS OF OR RESULTS TO BE OBTAINED FROM, ACCESSING AND USING THE APPLICATION, THE APPLICATION'S CONTENT, THE OTHER CONTENT, OR ANY MATERIAL THAT CAN BE ACCESSED (VIA A DIRECT OR INDIRECT HYPERLINK OR OTHERWISE) THROUGH THE APPLICATION. DECISIONHEALTH HEREBY DISCLAIMS ANY AND ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OR USE AND OF NONINFRINGEMENT. DECISIONHEALTH SHALL NOT BE LIABLE TO THE USER OR ANYONE ELSE FOR ANY INACCURACY, DELAY, INTERRUPTION IN SERVICE, ERROR OR OMISSION, REGARDLESS OF CAUSE, OR FORANY DAMAGES RESULTING THEREFROM.

    LIMITATION OF LIABILITY

    TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL DECISIONHEALTH AND/OR ITS AFFILIATES, AGENTS OR LICENSORS BE LIABLE FOR ANY DIRECT, INDIRECT, PUNITIVE, INCIDENTAL, SPECIAL, CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF USE, DATA, OR PROFITS, ARISING OUT OF OR IN ANY WAY CONNECTED WITH THE USE OR PERFORMANCE OF THE APPLICATION, WITH THE DELAY OR INABILITY TO USE THE APPLICATION OR RELATED SERVICES, THE PROVISION OF OR FAILURE TO PROVIDE SERVICES, OR FOR ANY INFORMATION, SOFTWARE, PRODUCTS, SERVICES AND RELATED GRAPHICS OBTAINED THROUGH THE APPLICATION, OR OTHERWISE ARISING OUT OF THE USE OF THE APPLICATION, WHETHER BASED ON CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, EVEN IF DECISIONHEALTH (OR ANY OF ITS AFFILIATES) HAS BEEN ADVISED OF THE POSSIBILITY OF DAMAGES. IN NO EVENT WILL DECISIONHEALTH, ITS AFFILIATES, AGENTS OR LICENSORS BE LIABLE TO YOU OR ANYONE ELSE FOR ANY DECISION MADE OR ACTION TAKEN BY YOU IN RELIANCE ON SUCH CONTENT OR THE WEB SITE. BECAUSE SOME STATES/JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES, THE ABOVE LIMITATION MAY NOT APPLY TO YOU. IF YOU ARE DISSATISFIED WITH ANY PORTION OF THE APPLICATION, OR WITH ANY OF THESE TERMS AND CONDITIONS, YOUR SOLE AND EXCLUSIVE REMEDY IS TO DISCONTINUE USING THE APPLICATION.

    INDEMNITY

    You agree to indemnify and hold harmless DecisionHealth, its affiliates and agents, from and against any loss, damage, costs, liability and expenses (including reasonable legal and professional fees) arising out of any claim or legal action taken against DecisionHealth related to or in any way connected with any use of the Application by you or any failure by you to perform your obligations in relation to the Terms and Conditions.

    USER'S CONTENT

    Where the User is invited to submit any contribution to the Application (including without limitation any text, graphics, video or audio) (the “Other Content”) you are required by such submission to grant DecisionHealth a perpetual, royalty-free, non-exclusive, sublicenseable right and license to use, reproduce, modify, adapt, publish, translate, create derivative works from, distribute, perform, play, and exercise all copyright and publicity rights with respect to any such work worldwide and/or to incorporate it in other works in any media now known or later developed for the full term of any rights that may exist in such content, consistent with privacy restrictions set forth in DecisionHealth's Privacy Policy. If you do not wish to grant such rights to DecisionHealth, you should not submit your contribution to the Application. By submitting your contribution to the Application site, you also:

    1. Warrant that such contribution is your own original work and that you have the right to make it available to DecisionHealth for all the purposes specified above;
    2. Indemnify DecisionHealth against all legal fees, damages and other expenses that may be incurred by a result of your breach of the above warranty; and
    3. Agree to waive any moral rights in your contribution for the purposes of its submission to and publication on the Application and the other purposes specified above.

    Users entering material into the Application are responsible for the Other Content. DecisionHealth has no responsibility for Other Content, including the content of any messages or information posted by Users or others, or for the content of information accessible via direct or indirect hyperlinks from the Website. However, DecisionHealth retains the right, which it may or may not exercise in its sole discretion, to review, edit, or delete Other Content that DecisionHealth deems to be illegal, offensive, or otherwise inappropriate.

    You may not input or distribute any material through the Application that is promotional in nature, including solicitations for funds or business, without the prior written authorization of DecisionHealth.

    PROTECTED HEALTH INFORMATION

    For purposes of these Terms and Conditions the term “Protected Health Information” or “PHI” shall have the meaning given to such term by the Health Insurance Portability and Accountability Act of 1996 (“HIPAA”) regulations on patient privacy, confidentiality, security, transactions and unique identifiers, including 45 C.F.R. Parts 160 through 164, as revised and amended from time to time.

    The Application is not intended to be utilized by Customer or any User for purposes of inputting, displaying or storing Protected Health Information. You are specifically directed to refrain from entering Protected Health Information into the Application.

    LINKS TO OTHER WEB SITES

    You may, through hypertext or other computer links, gain access to web sites operated by persons other than DecisionHealth. Such hyperlinks are provided for your reference and convenience only, and are the exclusive responsibility of such web sites' owners. You agree that DecisionHealth is not responsible for the content or operation of such web sites, and that DecisionHealth shall have no liability to you or any other person or entity for the use of third party web sites. Except as described below, a hyperlink from the Website to another web site does not imply or mean that DecisionHealth endorses the content on that web site or the operator or operations of that site. You are solely responsible for determining the extent to which you may use any content at any other web sites to which you link from the Website and you shall be subject to the terms and conditions of such other web sites.

    CPT TERMS

    Data obtained from use of the Application may contain Current Procedural Technology Codes (\\\"CPT\\\") owned by the American Medical Association (\\\"AMA\\\") and licensed to DecisionHealth. The terms of this section apply only to CPT codes and related content.

    1. DecisionHealth's ability to deliver updated versions of CPT to Customer is dependent upon continuing contractual relations with the AMA. CPT is copyright by the AMA and the AMA trademark is owned by the AMA. All notices or proprietary rights, including trademark and copyright in CPT must appear on all permitted back-up or archival copies made by Customer. Customer may copy the Services only for back-up or archival purposes.
    2. Customer shall not publish, distribute via the Internet or other public computer based information system, create derivative works (including translating), transfer, sell, lease, license or otherwise make available to any unauthorized party some or all of the CPT codes.
    3. The AMA provides CPT \\\"AS IS\\\", without any liability to the AMA, including, without limitation, no liability for consequential or special damages or lost profits for sequence, accuracy or completeness of the CPT data. The AMA does not warrant that CPT will meet Customer's requirements. The AMA disclaims any liability for any consequences due to use, misuse or interpretation of information contained or not contained in CPT.
    4. CPT coding is commercial technical data and/or computer data bases and/or commercial computer software and/or commercial computer software documentation, as applicable, which were developed exclusively at private expense by the American Medical Association, 515 N. State Street, Chicago, IL 60610. U.S. government rights to use, modify, reproduce, release, perform, display, or disclose these technical data and/or computer data bases and/or computer software and/or computer software documentation are subject to the limited rights restrictions of DFARS 252.227-7015(b)(2) (November 1995) and/or subject to the restrictions of DFARS 227.7202-1(a) (June 1995) and DFARS 227.7202-3(a) (June 1995), as applicable, for U.S. Department of Defense procurements and the limited rights restrictions of FAR 52.227-14 (December 2007) and/or subject to the restricted rights provisions of FAR 52.227-14 (December 2007) and FAR 52.227-19 (December 2007), as applicable, and any applicable agency FAR Supplements, for non-Department of Defense Federal procurements.

    CROSSWALK, REVERSE CROSSWALK AND / OR RELATIVE VALUE GUIDE

    Data obtained from use of the Application may contain CROSSWALK editorial content (“CROSSWALK”), Reverse CROSSWALK editorial content (“Reverse CROSSWALK”) and Relative Value Guide editorial (\\\"Relative Value Guide”) owned by the American Society of Anesthesiologists (\\\"ASA\\\") and licensed to DecisionHealth. The terms of this section apply only to CROSSWALK, Reverse CROSSWALK and Relative Value Guide and related content (collectively, the “ASA Content”).

    1. DecisionHealth's ability to deliver updated versions of CROSSWALK, Reverse CROSSWALK and Relative Value Guide to Customer is dependent upon continuing contractual relations with the ASA. CROSSWALK, Reverse CROSSWALK and Relative Value Guide are each copyrighted by the ASA. CROSSWALK is a registered trademark of the ASA and Reverse CROSSWALK and Relative Value Guide are trademarks of the ASA. All notices or proprietary rights, including trademark and copyright in the ASA Content must appear on all permitted back-up or archival copies made by Customer. Customer may copy portions or the Application containing ASA Content only for back-up or archival purposes.
    2. Customer prohibited from publishing, distributing via the Internet or other public computer based information system, creating derivative works (including translating), transferring, selling, leasing, licensing or otherwise making available to any unauthorized party the ASA Content, or a copy or portion of the ASA Content. Customer shall ensure that anyone with access to the ASA Content shall comply with the provisions of these Terms and Conditions.
    3. The ASA provides ASA Content \\\"AS IS\\\", without any liability to the ASA, including, without limitation, no liability for consequential or special damages or lost profits for sequence, accuracy or completeness of the ASA Content. The ASA does not warrant that ASA Content will meet Customer's requirements. The ASA disclaims any liability for any consequences due to use, misuse or interpretation of information contained or not contained in the ASA Content.
    4. This Application may include CROSSWALK, Reverse CROSSWALK and/ or Relative Value Guide (as applicable) which are each commercial technical data and/or computer data bases and/or commercial computer software and/or commercial computer software documentation, as applicable which were developed exclusively at private expense by the American Society of Anesthesiologists, 520 North Northwest Highway, Park Ridge, Illinois, 60068. US Government rights to use, modify, reproduce, release, perform, display or disclose these technical data and/or computer data bases and/or computer software and/or computer software documentation are subject to the limited rights restrictions of DFARS 252.227-7015(b)(2) (November 1995) and/or subject to the restrictions of DFARS 227.7202-1 (a) (June 1995) and DFARS 227.7202-3(a) (June 1995), as applicable for US. Department of Defense procurements and the limited rights restrictions of FAR 52.227-14 (December 2007) and/or subject to the restricted rights provisions of FAR 52.227-14 (December 2007) and FAR 52.227-19 (December 2007), as applicable, and any applicable agency FAR Supplements, for non- Department of Defense Federal procurements.

    ANTI-HACKING PROVISION

    You expressly agree not to use the Application in any manner or for any purpose that is prohibited by these terms and conditions. In addition, you expressly agree not to:

    1. use the Application for any purpose that is prohibited by any law or regulation, or to facilitate the violation of any law or regulation;
    2. use or attempt to use any “deep-link,” “scraper,” “robot,” “bot,” “spider,” “data mining,” “computer code” or any other automated device, program, tool, algorithm, process or methodology or manual process having similar processes or functionality, to access, acquire, copy, or monitor any portion of the Application or any data or content found on or accessed through the Application without prior express written consent;
    3. obtain or attempt to obtain through any means any materials or information in the Application that have not been intentionally made publicly available either by their public display in the Application or through their accessibility by a visible link in the Application;
    4. in any way bypass or circumvent any other measure employed to limit or prevent access to the Application or its content;
    5. violate the security of the Application or attempt to gain unauthorized access to the Application, data, materials, information, computer systems or networks connected to any server associated with the Application, through hacking, password mining or any other means;
    6. interfere or attempt to interfere with the proper working of the Application or any activities conducted on or through the Application, including accessing any data, content or other information prior to the time that it is intended to be available to the public in the Application; or
    7. take or attempt any action that, in the sole discretion of the Application's operators, imposes or may impose an unreasonable or disproportionately large load or burden on the Application or such operation's infrastructure.

    COMPLIANCE WITH LAWS

    You agree to comply with all applicable laws, statutes, ordinances and regulations regarding your use of the Application. We may, in our sole discretion, report actual or perceived violations of law to law enforcement or appropriate authorities. If we become aware, through a complaint or otherwise, of any potential or suspected violation of these Terms and Conditions, we may (but are not obligated to) conduct an investigation to determine the nature and extent of the suspected violation and the appropriate enforcement action, during which investigation we may suspend services to any customer being investigated and/or remove any material from our servers. You agree to cooperate fully with any such investigation. You acknowledge that violations of the Terms and Conditions could be subject to criminal or civil penalties.

    You are entirely liable for activities conducted by you in connection with your browsing and use of the Application. If you are dissatisfied with the Application or with these Terms and Conditions, your sole and exclusive remedy is to stop using the Application. If these Terms and Conditions are not acceptable, you must notify DecisionHealth prior to accepting the Terms and Conditions and DecisionHealth will refund any amounts paid by Customer. After acceptance of these Terms and Conditions you will be bound by the terms of your Agreement. DecisionHealth will not pay you any damages in connection with your browsing or use of the Application.

    TERM; TERMINATION

    These Terms and Conditions are effective until terminated by DecisionHealth. DecisionHealth may terminate these Terms and Conditions with respect to you or any other third party without notice at any time for any reason. Upon termination all rights granted in these Terms and Conditions shall immediately cease to exist and you must promptly discontinue all use of the Application and destroy all copies of the Content downloaded by you. In addition, in the event that we determine, in our sole discretion, that you have breached any of our Terms and Conditions, we reserve the right to terminate access to the Application and take any other action which we, in our sole discretion, deem to be appropriate. All terms that by their nature should survive termination of the Agreement will survive.

    We reserve the right at any time and from time to time to modify or discontinue, temporarily or permanently, the Application (or any part thereof) with or without notice. You agree that we shall not be liable to you or your clients or to any third party for any modification, suspension or discontinuance of the Application, subject to refund of any prepaid fees.

    COPYRIGHT AND TRADEMARK NOTICES

    All contents of the Application are: Copyright 2000 - 2014 by DecisionHealth and/or its affiliates. All rights reserved.

    NOTICES AND PROCEDURE FOR MAKING CLAIMS OF COPYRIGHT INFRINGEMENT

    Pursuant to Title 17, United States Code, Section 512(c)(2), notifications of claimed copyright infringement under United States copyright law should be sent to DecisionHealth's designated contact referenced at the end of these Terms and Conditions. ALL INQUIRIES NOT SUBMITTED ACCORDING TO THIS PROCEDURE WILL RECEIVE NO RESPONSE.

    GENERAL

    This Application is controlled by DecisionHealth from its offices within the State of Maryland, United States of America. DecisionHealth makes no representation that the Application is appropriate for use in other locations. Any claim relating to the Application will be governed by the laws of the State of Maryland, notwithstanding any conflicts of law principles, and the United States of America. You and DecisionHealth agree that and hereby submit to the exclusive personal jurisdiction and venue of the State and Federal Courts located in Montgomery County, Maryland with respect to any such claim. You agree that regardless of any law or statute to the contrary, any claim or cause of action arising out of or relating to the Application and these Terms and Conditions must be filed within one (1) year of the date the cause of action arose, or be barred as untimely. Any part of these Terms and Conditions that is unlawful, void or unenforceable will be deemed severable and will not affect the validity or enforceability of the remaining provisions. All waivers must be in writing. Any waiver or failure to enforce these Terms and Conditions on one occasion will not be deemed a waiver of any other provision or of such provision on any other occasion. DecisionHealth may without prior written consent of Customer assign its rights and obligations hereunder to the surviving entity in a merger or consolidation in which it participates or to a purchaser of all or substantially all of its assets. You may not assign your rights or obligations granted under these Terms and Conditions without the prior written consent of DecisionHealth. Any attempted assignment or transfer without such prior written consent from DecisionHealth shall be null and void. The headings of sections of these Terms and Conditions are for convenience only and are not to be used in interpreting these Terms and Conditions. In the event DecisionHealth is required to initiate legal proceedings to enforce any provision of these Terms and Conditions or you initiate any legal proceedings relating to these Terms and Conditions, the prevailing party shall be entitled to recover all reasonable attorneys' fees from the other party. These Terms and Conditions, along with any subscription agreement, end user agreement or order form between the parties, constitute the entire agreement between the parties regarding the subject matter hereof and supersedes all prior or contemporaneous agreements, understandings, and communication, whether written or oral. These Terms and Conditions may only be modified by DecisionHealth in writing.

    CONTACT INFORMATION

    All requests for further information or for permission to reproduce any portions of the Content or Application should be directed to: DecisionHealth, LLC, 15201 Diamondback Drive, Suite 250, Rockville, MD 20850, PHONE: 301-287-2266; FAX: 301-287-2761. Attention: General Counsel

    These Terms and Conditions were last updated on February 11, 2014.


    \";\n// Exports\nexport default code;","// Module\nvar code = \"

    Login

    0\\\" [innerHTML]=\\\"loginError\\\">
    \";\n// Exports\nexport default code;","// Module\nvar code = \"
    Add Member

    {{confirmEditText}}

    User Name/Email cannot be blank.
    User Name/Email must be a valid email address.
    Password cannot be blank.
    First Name cannot be blank.
    Last Name cannot be blank.
    0\\\">
    Service Level
    Service Level is required.
    0\\\">
    Add-Ons
    \";\n// Exports\nexport default code;","// Module\nvar code = \"
    Update Member
    First Name cannot be blank.
    Last Name cannot be blank.
    0\\\">
    Service Level
    Service Level is required.
    0\\\">
    Add-Ons
    \";\n// Exports\nexport default code;","// Module\nvar code = \"

    Manage Users

    0 ? 'col-md-6': 'col-md-12'\\\" *ngIf=\\\"serviceLevels.length > 0\\\">

    Service Level Summary

    0\\\">

    Add-Ons Summary

    0\\\">

    Complimentary Add-Ons:

    (may be disabled on request, please call Customer Service)

    • PDGM Functional Impairement Level Calculator PDGM Functional Impairement Level Calculator (disabled) PDGM Code Tracker Alerts PDGM Code Tracker Alerts (disabled)

    Account Members

    First Name Last Name Email Username Company Service Level Admin Locked Edit Select
    {{ user.FirstName }} {{ user.LastName }} {{ user.Email }} {{ user.UserName }} {{ user.Company }} {{user.ServiceLevel}} {{ user.IsAdmin ? 'Yes' : 'No' }} {{ user.IsLockedOut ? 'Yes' : 'No' }} Edit
    \";\n// Exports\nexport default code;","// Module\nvar code = \"
    Membership Expiration Date Purchased Used Available
    \";\n// Exports\nexport default code;","// Module\nvar code = \"
    {{notification.Message}}
    \";\n// Exports\nexport default code;","// Module\nvar code = \"
    Remove Member

    Are you sure you want to remove this user(s) from Account List? All assigned memberships will be removed as well.

    \";\n// Exports\nexport default code;","// Module\nvar code = \"

    Point Calculation

    Manually enter point total
    Calculate points

    {{step.MItem}}: {{step.Title}}

    Responses:
    {{i}}. {{response.Title}}

    Manually Enter Point Total

    Point total needs to be a number between 0 and 88

    Clinical Group

    {{group.Name}}

    Level of Impairment

    Total points not entered
    Warning: not all OASIS items have a response
    Please select a clinical group to calculate the level
    {{getImpairmentLevel()}}
    Current Points: {{getTotalPoints()}}
    \";\n// Exports\nexport default code;","// Module\nvar code = \"

    Manage Account

    Note that any change made on this page to your password and/or personal information will update the same information for all your DecisionHealth product subscription logins.

    Please call Customer Service toll free at 800-650-6787 in case your email (user name) have changed.

    First Name cannot be blank.
    Last Name cannot be blank.
    0\\\">

    Service Level:

    (Expires: )

    0\\\">

    Add-On:

    (Expires: )

    0 && !currentUser.IsChildAccount\\\">

    Complimentary Add-Ons:

    (may be disabled on request, please call Customer Service)

    • PDGM Functional Impairement Level Calculator PDGM Functional Impairement Level Calculator (disabled) PDGM Code Tracker Alerts PDGM Code Tracker Alerts (disabled)
     
    \";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/loadingWheel.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar code = \"

    {{isexpert ? 'My Codes/OASIS Items' : 'My Codes'}}

    Sort by  
    Code/Item Viewed Add to
    Code Tracker
    {{recentCode.Code}} 
    \\\"loading

    View All

    \";\n// Exports\nexport default code;","// Module\nvar code = \"
    Sort by  
    Code / Item Code Viewed Add to
    Code Tracker
    {{recentCode.Code}} 
    Sort by  
    \";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/loadingWheel.gif\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_1___ = new URL(\"/assets/img/search-icon.png\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar ___HTML_LOADER_REPLACEMENT_1___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_1___);\nvar code = \" \";\n// Exports\nexport default code;","// Module\nvar code = \"

    Tips and Training

    \";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/loadingWheel.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar code = \"
    0\\\">
    \\\"loading

    No Results Found.

    \";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/loadingWheel.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar code = \"

    Back

    {{individualUserData.UserName}}

     0\\\" agc-on-select=\\\"getUserIndividualInfo(selectedItem)\\\">
    \\\"loading

    No Results Found.

    \";\n// Exports\nexport default code;","// Module\nvar code = \"
    Team
    Individual
    • Most Viewed Detail Pages
    • Most Searched Terms
    • Most Searched Codes
    \";\n// Exports\nexport default code;","// Module\nvar code = \"
    • User Notes
    • Group Notes

    Delete Note

    Are you sure you want to remove this note?

    \";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/loadingWheel.gif\", import.meta.url);\nvar ___HTML_LOADER_IMPORT_1___ = new URL(\"/assets/img/sort.png\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar ___HTML_LOADER_REPLACEMENT_1___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_1___);\nvar code = \"

    My Code Notes

    \\\"loading

    ICD-10 Codes

    Expired ICD-10 Codes

    Type  Code  Code Description/Notes 
    \\\"{{expiredCodeNote.IsGroupNote {{expiredCodeNote.Code}}

    {{expiredCodeNote.Description}}

    Notes -

    OASIS Items

    Expired OASIS Items

    Type  Item  Question/Notes 
    \\\"{{expiredCodeNote.IsGroupNote {{expiredCodeNote.Code}}

    {{expiredCodeNote.Description}}

    Notes -

    \";\n// Exports\nexport default code;","// Module\nvar code = \"
    • User Notes
     Enter your note
    • Group Notes
     Enter your note
    \";\n// Exports\nexport default code;","// Imports\nimport ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___ from \"../../../../node_modules/html-loader/dist/runtime/getUrl.js\";\nvar ___HTML_LOADER_IMPORT_0___ = new URL(\"/assets/img/loadingWheel.gif\", import.meta.url);\n// Module\nvar ___HTML_LOADER_REPLACEMENT_0___ = ___HTML_LOADER_GET_SOURCE_FROM_IMPORT___(___HTML_LOADER_IMPORT_0___);\nvar code = \"

    Training OnDemand

    {{rec.Content2}}

    {{rec.DisplayDate}}

    pagedCount && totalCount > initialCount\\\"> Show All

    initialCount\\\"> Show Less

    \\\"loading
    \";\n// Exports\nexport default code;","// Module\nvar code = \"

    Sort by
    • ICD-10 Webinars

    {{rec.DisplayDate}}
    • OASIS Webinars

    {{rec.DisplayDate}}
    \";\n// Exports\nexport default code;","var map = {\n\t\"./af\": 3387,\n\t\"./af.js\": 3387,\n\t\"./ar\": 1590,\n\t\"./ar-dz\": 5971,\n\t\"./ar-dz.js\": 5971,\n\t\"./ar-kw\": 9324,\n\t\"./ar-kw.js\": 9324,\n\t\"./ar-ly\": 6660,\n\t\"./ar-ly.js\": 6660,\n\t\"./ar-ma\": 5417,\n\t\"./ar-ma.js\": 5417,\n\t\"./ar-sa\": 8350,\n\t\"./ar-sa.js\": 8350,\n\t\"./ar-tn\": 7139,\n\t\"./ar-tn.js\": 7139,\n\t\"./ar.js\": 1590,\n\t\"./az\": 3954,\n\t\"./az.js\": 3954,\n\t\"./be\": 8333,\n\t\"./be.js\": 8333,\n\t\"./bg\": 8481,\n\t\"./bg.js\": 8481,\n\t\"./bm\": 7605,\n\t\"./bm.js\": 7605,\n\t\"./bn\": 8797,\n\t\"./bn-bd\": 6143,\n\t\"./bn-bd.js\": 6143,\n\t\"./bn.js\": 8797,\n\t\"./bo\": 4559,\n\t\"./bo.js\": 4559,\n\t\"./br\": 9810,\n\t\"./br.js\": 9810,\n\t\"./bs\": 3997,\n\t\"./bs.js\": 3997,\n\t\"./ca\": 6309,\n\t\"./ca.js\": 6309,\n\t\"./cs\": 2772,\n\t\"./cs.js\": 2772,\n\t\"./cv\": 2597,\n\t\"./cv.js\": 2597,\n\t\"./cy\": 7654,\n\t\"./cy.js\": 7654,\n\t\"./da\": 8883,\n\t\"./da.js\": 8883,\n\t\"./de\": 5724,\n\t\"./de-at\": 789,\n\t\"./de-at.js\": 789,\n\t\"./de-ch\": 3416,\n\t\"./de-ch.js\": 3416,\n\t\"./de.js\": 5724,\n\t\"./dv\": 7615,\n\t\"./dv.js\": 7615,\n\t\"./el\": 3678,\n\t\"./el.js\": 3678,\n\t\"./en-au\": 2263,\n\t\"./en-au.js\": 2263,\n\t\"./en-ca\": 2362,\n\t\"./en-ca.js\": 2362,\n\t\"./en-gb\": 3089,\n\t\"./en-gb.js\": 3089,\n\t\"./en-ie\": 8942,\n\t\"./en-ie.js\": 8942,\n\t\"./en-il\": 9857,\n\t\"./en-il.js\": 9857,\n\t\"./en-in\": 174,\n\t\"./en-in.js\": 174,\n\t\"./en-nz\": 5593,\n\t\"./en-nz.js\": 5593,\n\t\"./en-sg\": 4995,\n\t\"./en-sg.js\": 4995,\n\t\"./eo\": 7267,\n\t\"./eo.js\": 7267,\n\t\"./es\": 7320,\n\t\"./es-do\": 3038,\n\t\"./es-do.js\": 3038,\n\t\"./es-mx\": 6121,\n\t\"./es-mx.js\": 6121,\n\t\"./es-us\": 6496,\n\t\"./es-us.js\": 6496,\n\t\"./es.js\": 7320,\n\t\"./et\": 8183,\n\t\"./et.js\": 8183,\n\t\"./eu\": 2682,\n\t\"./eu.js\": 2682,\n\t\"./fa\": 4643,\n\t\"./fa.js\": 4643,\n\t\"./fi\": 1543,\n\t\"./fi.js\": 1543,\n\t\"./fil\": 888,\n\t\"./fil.js\": 888,\n\t\"./fo\": 5148,\n\t\"./fo.js\": 5148,\n\t\"./fr\": 598,\n\t\"./fr-ca\": 4818,\n\t\"./fr-ca.js\": 4818,\n\t\"./fr-ch\": 2720,\n\t\"./fr-ch.js\": 2720,\n\t\"./fr.js\": 598,\n\t\"./fy\": 9568,\n\t\"./fy.js\": 9568,\n\t\"./ga\": 913,\n\t\"./ga.js\": 913,\n\t\"./gd\": 1645,\n\t\"./gd.js\": 1645,\n\t\"./gl\": 9209,\n\t\"./gl.js\": 9209,\n\t\"./gom-deva\": 4179,\n\t\"./gom-deva.js\": 4179,\n\t\"./gom-latn\": 8486,\n\t\"./gom-latn.js\": 8486,\n\t\"./gu\": 813,\n\t\"./gu.js\": 813,\n\t\"./he\": 8128,\n\t\"./he.js\": 8128,\n\t\"./hi\": 3330,\n\t\"./hi.js\": 3330,\n\t\"./hr\": 7202,\n\t\"./hr.js\": 7202,\n\t\"./hu\": 4647,\n\t\"./hu.js\": 4647,\n\t\"./hy-am\": 2926,\n\t\"./hy-am.js\": 2926,\n\t\"./id\": 9688,\n\t\"./id.js\": 9688,\n\t\"./is\": 9222,\n\t\"./is.js\": 9222,\n\t\"./it\": 6948,\n\t\"./it-ch\": 6559,\n\t\"./it-ch.js\": 6559,\n\t\"./it.js\": 6948,\n\t\"./ja\": 957,\n\t\"./ja.js\": 957,\n\t\"./jv\": 7625,\n\t\"./jv.js\": 7625,\n\t\"./ka\": 3009,\n\t\"./ka.js\": 3009,\n\t\"./kk\": 9390,\n\t\"./kk.js\": 9390,\n\t\"./km\": 3362,\n\t\"./km.js\": 3362,\n\t\"./kn\": 4870,\n\t\"./kn.js\": 4870,\n\t\"./ko\": 5720,\n\t\"./ko.js\": 5720,\n\t\"./ku\": 8357,\n\t\"./ku.js\": 8357,\n\t\"./ky\": 2874,\n\t\"./ky.js\": 2874,\n\t\"./lb\": 4619,\n\t\"./lb.js\": 4619,\n\t\"./lo\": 4602,\n\t\"./lo.js\": 4602,\n\t\"./lt\": 9075,\n\t\"./lt.js\": 9075,\n\t\"./lv\": 1841,\n\t\"./lv.js\": 1841,\n\t\"./me\": 8630,\n\t\"./me.js\": 8630,\n\t\"./mi\": 8761,\n\t\"./mi.js\": 8761,\n\t\"./mk\": 5917,\n\t\"./mk.js\": 5917,\n\t\"./ml\": 1912,\n\t\"./ml.js\": 1912,\n\t\"./mn\": 7948,\n\t\"./mn.js\": 7948,\n\t\"./mr\": 4349,\n\t\"./mr.js\": 4349,\n\t\"./ms\": 4501,\n\t\"./ms-my\": 9554,\n\t\"./ms-my.js\": 9554,\n\t\"./ms.js\": 4501,\n\t\"./mt\": 9949,\n\t\"./mt.js\": 9949,\n\t\"./my\": 6955,\n\t\"./my.js\": 6955,\n\t\"./nb\": 1396,\n\t\"./nb.js\": 1396,\n\t\"./ne\": 9509,\n\t\"./ne.js\": 9509,\n\t\"./nl\": 7195,\n\t\"./nl-be\": 7145,\n\t\"./nl-be.js\": 7145,\n\t\"./nl.js\": 7195,\n\t\"./nn\": 3715,\n\t\"./nn.js\": 3715,\n\t\"./oc-lnc\": 8691,\n\t\"./oc-lnc.js\": 8691,\n\t\"./pa-in\": 3193,\n\t\"./pa-in.js\": 3193,\n\t\"./pl\": 3517,\n\t\"./pl.js\": 3517,\n\t\"./pt\": 1850,\n\t\"./pt-br\": 7565,\n\t\"./pt-br.js\": 7565,\n\t\"./pt.js\": 1850,\n\t\"./ro\": 7167,\n\t\"./ro.js\": 7167,\n\t\"./ru\": 302,\n\t\"./ru.js\": 302,\n\t\"./sd\": 2472,\n\t\"./sd.js\": 2472,\n\t\"./se\": 5277,\n\t\"./se.js\": 5277,\n\t\"./si\": 6110,\n\t\"./si.js\": 6110,\n\t\"./sk\": 5157,\n\t\"./sk.js\": 5157,\n\t\"./sl\": 5583,\n\t\"./sl.js\": 5583,\n\t\"./sq\": 5006,\n\t\"./sq.js\": 5006,\n\t\"./sr\": 6669,\n\t\"./sr-cyrl\": 190,\n\t\"./sr-cyrl.js\": 190,\n\t\"./sr.js\": 6669,\n\t\"./ss\": 4023,\n\t\"./ss.js\": 4023,\n\t\"./sv\": 1953,\n\t\"./sv.js\": 1953,\n\t\"./sw\": 5521,\n\t\"./sw.js\": 5521,\n\t\"./ta\": 4251,\n\t\"./ta.js\": 4251,\n\t\"./te\": 5243,\n\t\"./te.js\": 5243,\n\t\"./tet\": 145,\n\t\"./tet.js\": 145,\n\t\"./tg\": 5740,\n\t\"./tg.js\": 5740,\n\t\"./th\": 2820,\n\t\"./th.js\": 2820,\n\t\"./tk\": 8994,\n\t\"./tk.js\": 8994,\n\t\"./tl-ph\": 680,\n\t\"./tl-ph.js\": 680,\n\t\"./tlh\": 3936,\n\t\"./tlh.js\": 3936,\n\t\"./tr\": 1005,\n\t\"./tr.js\": 1005,\n\t\"./tzl\": 4149,\n\t\"./tzl.js\": 4149,\n\t\"./tzm\": 9215,\n\t\"./tzm-latn\": 9007,\n\t\"./tzm-latn.js\": 9007,\n\t\"./tzm.js\": 9215,\n\t\"./ug-cn\": 6015,\n\t\"./ug-cn.js\": 6015,\n\t\"./uk\": 4674,\n\t\"./uk.js\": 4674,\n\t\"./ur\": 2283,\n\t\"./ur.js\": 2283,\n\t\"./uz\": 5178,\n\t\"./uz-latn\": 2515,\n\t\"./uz-latn.js\": 2515,\n\t\"./uz.js\": 5178,\n\t\"./vi\": 1,\n\t\"./vi.js\": 1,\n\t\"./x-pseudo\": 867,\n\t\"./x-pseudo.js\": 867,\n\t\"./yo\": 1054,\n\t\"./yo.js\": 1054,\n\t\"./zh-cn\": 7563,\n\t\"./zh-cn.js\": 7563,\n\t\"./zh-hk\": 4532,\n\t\"./zh-hk.js\": 4532,\n\t\"./zh-mo\": 5610,\n\t\"./zh-mo.js\": 5610,\n\t\"./zh-tw\": 9925,\n\t\"./zh-tw.js\": 9925\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 6700;","module.exports = jQuery;"],"names":["injector","ngDoBootstrap","loginWidget","createCustomElement","LoginComponent","this","customElements","define","bookmarksToggleWidget","BookmarksToggleComponent","billpadtogglewidget","BillpadToggleComponent","icd9MappingWidget","ICD9MappingWidgetComponent","training","TrainingComponent","trainingWidget","TrainingWidgetComponent","recentCodesWidget","RecentCodesWidgetComponent","forumWidget","ForumComponent","latestHeadlinesWidget","L","LatestHeadlinesComponent","adminUserLinkWidget","AdminUserLinkComponent","searchBoxWidget","SearchBoxComponent","icd10SearchWidget","Icd10SearchComponent","videoPage","VideoComponent","libraryWidget","LibraryComponent","userNotesModalWidget","UserNotesModalComponent","toolboxWidget","ToolboxComponent","billpadModalWidget","BillpadModalComponent","bookmarksModalWidget","BookmarksModalComponent","tipsModalWidget","TipsModalComponent","pdgmWidget","PDGMCalculatorComponent","articleSearchWidget","ArticleSearchComponent","newsletterArticleWidget","NewsletterArticleComponent","newsletterArticle","NewsletterComponent","icd10BrowseWidget","Icd10BrowseComponent","userNotesWidget","UserNotesComponent","userNotesLookbackWidget","UserNotesLookbackComponent","manageUsersWidget","ManageUsersComponent","usageReportingChartsWidget","UsageReportingChartsComponent","profileWidget","ProfileComponent","latestIssueWidget","LatestIssueWidgetComponent","articleWidget","ArticleWidgetComponent","bulletinsDaily","BulletinsDailyComponent","bulletins","BulletinsComponent","bulletinRead","BulletinsReadComponent","latestIssue","LatestIssueComponent","articleList","ArticleListComponent","breakingNews","BreakingNewsComponent","articleSearchResults","ArticleSearchResultsComponent","interactiveScenariosSearch","InteractiveScenariosSearchComponent","icd10SearchSlide","Icd10SearchSlideComponent","dictionaryDetail","DictionaryDetailComponent","dictionarySearch","DictionarySearchComponent","dictionaryAppendices","DictionaryAppendicesComponent","dictionaryResults","DictionaryResultsComponent","recentCodes","RecentCodesComponent","videoWidget","VideoWidgetComponent","messages","MessagesComponent","readMessagesComponent","ReadMessagesComponent","NgModule","imports","BrowserModule","CKEditorModule","FormsModule","HttpClientModule","NgbModalModule","NgbTypeaheadModule","ContentModule","BannersModule","LoginModule","CoreModule","RecentCodesModule","ForumModule","DcpModule","SearchBoxModule","Icd10Module","VideoModule","LibraryModule","UserNotesModule","SiteContentModule","PdgmCalculatorModule","ManageUsersModule","UsageReportingModule","ProfileModule","Icd9Module","D","DictionaryModule","declarations","providers","CookieService","entryComponents","Inject","Injector","AppModule","CommonModule","TrialBannerModule","InteractiveScenariosBannerModule","cookies","showInteractiveScenariosBanner","ngOnInit","trialBannerCookie","get","bannerClose","set","path","secure","Component","selector","template","InteractiveScenariosBannerComponent","showTrialBanner","trialExpirationDate","trialDaysRemaining","Date","today","Math","round","getTime","TrialBannerComponent","ContentService","http","loadContent","contentTypeId","codeTypeId","code","params","contentType","toString","codeType","encodeURIComponent","toPromise","s","searchContent","searchText","Injectable","providedIn","HttpClient","contentService","noRecords","content","pagedContent","pagedCount","maxCount","totalCount","loading","searchTerm","count","contenttypeid","then","data","t","length","Input","adminUserLinkService","customerid","canManageUsers","response","showLink","catch","i","AdminUserLinkService","customerId","billpadService","cookieService","haspdgmexclusion","billpadCodesForCopy","pdgmResults","PrimaryDx","LowComorbidityAdjustment","HighComorbidityInteractionAdjustment","pdgmLoaded","bpSelected","billpadCodes","selectBillpad","codes","Code","bpText","nativeElement","select","hideSelect","p","printBillpad","saveBillPadToCookie","window","open","exportBillpad","codeObjJson","JSON","stringify","removeBillpadCode","removeCode","removeCodeTracker","clearBillpadCodes","discardBillpadChanges","performPDGMValidation","performPDGMValidationAsync","console","error","statusText","saveBillpadCodes","saveCodesToBillpadAsync","drop","event","moveItemInArray","previousIndex","currentIndex","ViewChild","BillpadApiService","_coloredicon","value","ngAfterViewInit","isCodeInBillpad","a","addCodeTracker","description","loadingbills","_billpadCodes","getBillpadCodes","saveCodeToBillpadAsync","post","recentCode","find","x","save","index","findIndex","item","splice","codeObj","Description","push","bookmarksService","getUserBookmarks","articlesBookmarks","ArticlesBookmarks","icd10CodeBookmarks","ICD10CodeBookmarks","oasisCodeBookmarks","OASISBookmarks","toggleBookmark","contentId","isBookmarked","BookmarksService","iconclass","icondisabledclass","contenttype","GenericContentId","contentid","url","icd9CodeBookmarks","userBookmarks","ICD9CodeBookmarks","enabled","isArticleBookmarked","articleId","checkBookmarks","returnValue","forEach","isItemBookmarked","bulletinsService","pageSize","pageIndex","activeOnly","getBulletins","BulletinList","dateFormatter","dateVal","month","d","parseInt","replace","getMonth","getDate","getFullYear","bodyBlurb","substring","BulletinsService","bulletinEditor","ClassicEditor","bulletinBody","defaultPageSize","startCount","getBulletin","bulletinid","bulletinId","createEdit","bulletinSubject","Subject","Body","bulletinIsActive","IsActive","bulletinPubDate","PubDate","saveBulletin","editBulletin","compose","loadBulletins","l","pgSize","pgIndex","totalRecords","pageMin","pageMax","bulletinsOriginal","TotalCount","currentPageMinCount","currentPageMaxCount","jqBulletin","$","hide","paging","floor","slice","log","modal","parameters","String","pageNum","isActive","bulletin","UserContentDetailId","IsRead","SiteLicenseNum","UserContentTypeId","UserId","MaterialModule","exports","PagerComponent","SafeHtmlPipe","messagesService","messagesOriginal","constDefaultPageSize","messageEditor","getMessages","MessageList","createMessage","messageBody","saveMessage","messageSubject","messageCategory","MessagesService","getMessage","messageId","subject","body","category","messageid","fromUser","FromUser","Category","onPageChange","EventEmitter","pages","n","className","pagecount","change","page","emit","nextPage","prevPage","Output","numCodes","isdcp","trainingService","trainingOpps","loadTraining","trainingLoaded","trainingtype","getWebinarsOpps","webops","Events","getTrainingOpps","TrainingService","sanitized","transform","setTimeout","bypassSecurityTrustHtml","Pipe","name","DomSanitizer","articleService","showall","articlesLoaded","articles","totalcount","ArticleNewIconStartDate","setDate","getAllArticlesByType","articletype","articlesubtype","ArticleList","getArticlesByType","format","ArticleService","document","referrer","sortBy","resultsLoaded","startDate","runSearch","endDate","filterStartDate","filterEndDate","searchArticles","articlesection","searchkeywords","results","Results","TotalSearchResultCount","dateApplied","picker","DOCUMENT","c","keywords","articleSection","lastSearchTerm","getRecentSearches","result","recentSearches","recentSearchClick","location","href","searchType","updateArticleSection","section","delete","trim","addRecentArticleSearch","bookmarksSvc","pCount","pType","pSubtype","type","subtype","getLatestHeadlines","subType","getLatestIssue","getArticleDetail","getArticles","newsId","articleType","DateRangePickerModule","NewsletterService","headlinesLoaded","BNNewIconStartDate","headlines","h","PublishDate","PublishDateObj","headlineBlurb","abstractBlurb","newsletterService","articleCount","newsletterId","ArticleNewsletterId","getNewsletterDetails","libraryFileId","ArticleLibraryFileId","newsletterName","NewsletterName","attemptNum","newsletterid","articleLibraryFileId","Array","newsletterType","newsletterSearchResults","searchNewsletters","setPaging","size","getNewsletter","newslettertype","Newsletters","dictionaryService","appendices","getAppendecies","e","Title","DictionaryService","isLoading","dict","getDictionary","dictionaryid","dictSetup","on","children","show","icdCodeCount","text","click","css","fadeIn","html","parent","attr","center","definition","links","each","link","test","setAttribute","keypress","keyCode","fadeOut","resultsPage","moreResults","searchResults","totalResults","query","performSearch","MoreResults","TotalResults","changePage","newPageNumber","HighlightModule","dictionaryId","id","forumService","forumid","panelClass","loadLatestForum","threadcount","threads","Threads","categoryName","CategoryName","widgetTitle","ForumTitle","ThreadCount","ForumService","loadForum","threadCount","forumName","forumId","icd10SearchService","childdepth","getChildData","indexTermId","indexVersionId","Object","prototype","hasOwnProperty","call","indexchilddata","getIndexChildData","createIndexSearchLinks","refCodeSearch","createCodeSearchLinks","codeString","codeIconFlags","includeResults","buildICD10CodeSearchLinkForIndexSearchResult","buildICD10Icons","highlightKeywords","istermsearch","ICD10SearchService","Icd10AlphaIndexComponent","browseService","chapters","loadChapterTree","codeYear","expanded","loadChapter","chapter","Sections","ICD10ChapterVersionId","loadSection","Codes","ICD10SectionVersionId","loadCode","sectionId","ChildCodes","Icd10BrowseWebService","Icd10BrowseTreeComponent","searchtype","year","getSessionSearchResults","altLoading","chunkRecSize","chunkTimeoutMillisecs","codeSearchResult","codeSearchResultChunked","indexChildData","indexParentData","indexSearchResult","indexSearchResultChunked","indexTables","isTermSearch","resultsLoading","endCount","search","doSearch","CodeSearchResult","IndexSearchResult","CodeIconFlags","IsTermSearch","singleCode","TotalRowCount","getAltResults","altSearchResults","altSearchGroups","key","typeExists","value2","key2","TermType","CodeType","CodeTypeId","sort","b","chunkCodeSearchResults","start","new_start","chunkIndexSearchResults","getParentData","getIndexParentData","self","loadIndexTableParent","versionId","getIndexTermParents","parents","Depth","ShowNotes","IsChildrenDownloaded","ShowChildren","ShowRow","getIndexTermChildren","lastParent","concat","loadIndexTableChildren","parentDataRow","parentIndex","ICD10IndexTermId","ICD10IndexVersionId","args","apply","highlightText","buildSearchSuggestionLinks","term","IndexSearchTerm","resultCount","SortBy","PageIndex","btnNextPageShow","btnPrevPageShow","nextSearchPage","previousSearchPage","createICD10SearchLink","linkText","termString","createICD10CodeDetailsLink","codeStripped","charAt","ajaxIcd10SearchSuccess","getIcd10CodeDetailsUrl","input","INDEX_SEARCH_TYPE_ID","cst","sk","altSearchParam","parentParams","icd10IndexTermId","icd10IndexVersionId","childParams","getOasisMappings","pCode","isNaN","terms","indexOf","split","strYear","startIndex","endIndex","lastIndexOf","word","regWord","regExpKeyword","RegExp","MappingIcd10CodeComponent","chapterId","parentCode","OASISXLinks","OASISXLinksDisplay","WidgetLength","ICD10Code","RelatedCodesData","MappingPageSize","MappingPageIndex","MappingPageMin","TotalItems","tryCounter","GemsLoaded","loadOASISWidget","maximize","icd9MappingService","mappingPageSize","mappingPageIndex","mappingPageMin","totalItems","noResults","crosswalksSub","crosswalksLoaded","subscribe","updateValues","exactCrosswalks","getExactCrosswalks","approxCrosswalks","getApproxCrosswalks","comboCrosswalks","getComboCrosswalks","relatedCodes","getRelatedCodes","comboCount","getComboCount","icd9Code","getPCode","mappingPageMax","displayCrosswalks","showRelatedCodes","firstItem","lastItem","itemsRemaining","approxDisplay","comboDisplay","exactDisplay","comboItems","k","scenarioCombo","j","mappingPaging","initRelatedCodes","showNoCrosswalks","crosswalkMouseover","thisTR","removeClass","addClass","baseCode","parentCodeClass","mouseenter","first","relatedChildClass","rc","codeAfter","codeDigits","level","theCode","relatedChildId","Icd9MappingService","ICD9MappingModalComponent","ajaxCallbackSuccess","status","widgetTotal","ExactCrosswalks","ApproxCrosswalks","ComboCount","WidgetTotal","approxLength","remainingWidget","widgetLength","exactLength","exactWidget","approxWidget","comboWidget","ComboCrosswalks","gemsLoaded","loadWidget","method","getMappings","mapToICD10Codes","fullMappings","viewAll","RelatedCodes","next","libraryService","predicate","productId","reverse","subCategories","categoryid","getCategory","subCat","libraryFiles","prop","orderFiles","LibraryService","categoryId","loginService","eulaAccepted","acceptEula","acceptedEula","username","rememberme","loginError","declineEula","LoginService","EulaModalComponent","showEula","rememberMe","displayEula","onEulaAccepted","logUserIn","userName","password","headers","btoa","isPersistent","platformBrowserDynamic","bootstrapModule","err","CUSTOMER_SERVICE_PHONE","addUserService","addcompleted","onedit","showUsernameForm","showNewUserForm","notification","Show","Message","CssClass","confirmEditUser","confirmEditText","currentDate","users","servicelevels","addons","cancel","clearUsernameForm","clearNewUserForm","editUsername","clearUsername","clearNewUser","validateUsername","formUsername","invalid","isUserInTable","getUserByUsername","user","Username","toLowerCase","debug","u","Id","Memberships","editUser","CustomerId","Customers","UserName","Email","FirstName","ProfileAddress","LastName","Company","IsAdmin","IsLockedOut","IsSelected","ServiceLevel","displayEditUser","editUsers","filter","validateNewUser","formNewUser","accountCreated","addNewUser","userId","grantRoleToUser","ServiceLevelMembershipId","sl","Membership","linkMembershipToCustomer","AddOnMembershipIds","aoMembershipId","ao","finally","sendAccountCreatedEmail","read","NgForm","AddUserService","AddUserComponent","Password","loadAddUser","addUser","AddOns","roleCode","parentCustomerId","membershipId","childCustomerId","responseType","newUser","firstName","lastName","editUserService","cancelled","completed","validateEditUser","formEditUser","updateUser","sendUserMembershipUpdateEmail","PreviousServiceLevel","PreviousAddOns","sendexistsnotification","sendUserUpdateEmailNotification","sendExistingUserWelcomeEmail","disableServiceLevel","serviceLevel","RemainingChildAccounts","disableAddOn","addOn","found","setFlag","obj","property","trueValue","falseValue","EditUserService","EditUserComponent","clearUser","setUser","accountMember","serviceLevelMembershipId","addOnMembershipIds","addOns","MembershipId","updateUserModel","put","email","firstname","lastname","filterColumns","keys","includes","FilterUsersPipe","transaction","TransactionType","None","usersService","loadingInfo","serviceLevels","complimentaryAddOns","isAdmin","userSortColumn","UserSortOrder","userReverseSort","userSortOrder","transactionModal","TransactionModal","sendExistingUserNotficationEmail","getAdminUser","adminUser","ServiceLevels","ComplimentaryAddOns","Users","AdminCustomerId","AdminUserId","getSelectedUsersCount","selectedCount","sortUsers","sortColumn","getUserSort","unlockSelectedUsers","unlockUserAccount","sumAvailableServiceLevels","findServiceLevelMembershipsForUser","selectedUser","slMemberships","serviceLevelMembership","slActive","m","findAddOnMembershipsForUser","aoMemberships","addOnMembership","aoActive","setupTransactionModal","removeUsers","RemoveUsers","transferToEdit","loadEditUser","EditUser","serviceLevelId","getServiceLevelMembershipId","aoMembershipIds","getAddOnMembershipIds","getMember","AddUser","transactionCancelled","removeCompleted","transactionCompleted","updateCompleted","addCompleted","ManageUsersService","Admin","Locked","UnlockUsers","ReactiveFormsModule","RemoveUsersService","MembershipGridComponent","NotificationComponent","RemoveUsersComponent","SortUsersPipe","dcpAccess","professional","expert","membership","Roles","role","RoleCode","valueOf","adminUsersModels","memberships","adminCustomerId","getExpiredDate","effectiveDates","expiredDate","formatDate","StopDate","date","jsDate","substr","y","removeUsersService","failedUsers","cancelTransaction","selectedUsers","removeCount","removeUser","n1","n2","compareString","compareBoolean","localeCompare","DragDropModule","pdgmCalculatorService","calculatePoints","selectedClinicalGroup","validPoints","isFirst","isLast","GetClinicalGroupOptions","res","clinicalGroups","GetFeeCalcSteps","mSteps","getTotalPoints","f","SelectedResponse","step","Points","manualPoints","mItemsUnchecked","some","getImpairmentLevel","pointTotal","HighCutoff","MediumCutoff","clearAll","map","trigger","validatePoints","previousTab","prevAll","nextTab","nextAll","isNotFirst","isNotLast","PdgmCalculatorService","SortByPipe","profileService","showNotification","notificationClass","notificationMsg","getLoggedInUser","currentUser","updateProfile","manageAccount","$valid","sendEmail","ProfileService","User","Address","company","onsortchange","sortType","RecentCodesSortOrderComponent","recentCodesService","maxdescriptionchars","locked","userHasExpertRole","maxRecords","totalCodes","isShowAll","recentLoading","numPages","userExpertRole","pagesize","getRecentCodes","sortOrder","maxDescChars","getRecentCodesAsync","min","ceil","previousPage","goToPage","showAll","sortChange","hours","getHours","minutes","getMinutes","ampm","RecentCodesApiService","loadingPromise","getUserRole","roles","host","searchBoxService","searching","searchFailed","doAuto","text$","pipe","debounceTime","distinctUntilChanged","tap","switchMap","getAutocompleteAsync","remoteUrl","searchTypeId","catchError","of","minLength","urlLookupObj","currentSearchOption","codeSet","getYearBySearchType","oasisCurrentCodeYear","oasisPrevCodeYear","oasisNextCodeYear","Directive","SearchBoxService","HhccSearchAutocomplete","DEFAULT_SEARCH_PLACEHOLDER_STR_1","DEFAULT_SEARCH_PLACEHOLDER_STR_2","DEFAULT_SEARCH_PLACEHOLDER_STR_3","SEARCH_AUTOCOMPLETE_URL_LOOKUP_DICT","oasiscurrentsearchtext","oasislookbackorforwardsearchtext","forwardorback","enableIcdLookForward","icdLookForward","displayOasisLookBackPage","defaultView","ngbTypeaheadDefaultConfigFactory","typeaheadConfig","NgbTypeaheadConfig","focusFirst","searchTypeText","searchTypeLookupObj","SEARCH_TYPE_LOOKUP_DICT","_codeYear","_codeSet","readCurrentCodeSetCookieValue","isDateLoaded","getUtcNow","getUTCMonth","SEARCH_TYPES_WITHOUT_OASIS_LOOKBACK","setSearchTypeAndText","readLastSearchTypeIdCookieValue","strCodeYear","browseCodesUrl","searchTypes","initAjax","node","codeSearch","MutationObserver","mutations","mutation","activeValue","observe","attributes","childList","attributeFilter","characterData","jsdate","currentCodeYear","getUTCFullYear","prevCodeYear","nextCodeYear","setSearchBoxClass","recalculateBrowseCodesUrl","array","recalculateSearchTextBoxPlaceholderText","searchBoxClass","changeSearchType","$event","preventDefault","setCodeYearCookie","changeCodeSet","newCodeSet","oldSearchTypeId","setCodeSetCookie","regExICD10","regExOASIS","oasisYear","saveToRecentSearchesAsync","getCount","searchUrl","userData","origin","simplify_inquiry_request","user_first_name","user_last_name","user_email","user_company","user_subscription_type","request_top_level","user_id","user_parent_id","searchTextBoxOnFocus","target","loadRecentSearches","recentSearchesLoading","getSearches","recentSearch","thisSearch","GetClassForDropdownItem","icdCodeYear","oasisCurrentYear","oasisPrevYear","oasisNextYear","v","arrayOfSearchTypes","translatedValue","selectedItem","provide","useFactory","NgbModule","PARAMS","HttpParams","el","setDatePicker","daterangepicker","maxDate","locale","applyLabel","cancelLabel","fromLabel","toLabel","customRangeLabel","daysOfWeek","monthNames","ranges","getFilterDate","ev","ngOnChanges","changes","setStartDate","amount","ElementRef","DateRangePickerDirective","sanitizer","caseSensitive","customClasses","wholeTerm","newText","regex","match","sanitzed","sanitize","SecurityContext","HTML","HostBinding","HighlightDirective","order","column","orderBy","SiteContentService","getContent","loadContentBucket","siteContentService","content1","Content1","userReportingChartsService","chart","isLoaded","searchQuery","getUsersSummaryInfo","chartDataRows","chartData","individualUserData","columnNames","label","chartItem","Days","TotalTimeSpent","PageViews","options","getChartDefaultOptions","getUserIndividualInfo","childId","rows","row","cols","PagesInfo","Total","PageUrl","UsageReportingChartsService","UsersSummaryInfoChartComponent","getMostSearchedCodes","MostSearchedCodesChartComponent","getMostSearchedTerms","Term","SearchType","MostSearchedTermsChartComponent","getMostViewedPages","getMostViewedDetailPages","PageName","MostViewedPagesChartComponent","chartCategory","usageChartModels","ChartCategory","Team","teamChartsCategory","TeamChartsCategoryType","Page","changeCategory","Individual","changeTeamChartType","teamChartType","GoogleChartsModule","apiUrl","items","filteredItems","searchMatch","allowHtml","width","allNotes","filterVal","note","UserNote","FilterNotesPipe","userNotesService","userEditor","groupEditor","origUserNote","origGroupNote","iItemType","itemtype","getByCodeAndUser","itemid","userNoteContent","getByCodeAndAgreement","dataTwo","groupNoteContent","disabled","populateNoteDetails","noteId","noteType","isGroupNote","noteDetails","deleteUserNotes","codeByType","getCodeTypeIdByItemType","itemType","UserNotesService","icd10CodeNotes","oasisCodeNotes","expiredCodeNotes","expiredOasisNotes","icd10currentSortOrder","oasisCurrentSortOrder","expiredCurrentSortOrder","oasisExpiredCurrentSortOrder","icd10Reverse","oasisReverse","expiredReverse","oasisExpiredReverse","notesLoading","displayUserNotes","keyup","val","isExpanded","hasClass","getUserCodeNotes","icd10Notes","oasisNotes","expiredNotes","sortNotes","noteCodeType","doSort","field","primer","sortModifier","aval","bval","convertNote","genericContentNoteId","saveItemUserNote","itemId","encodedContent","removeBorderingTags","saveUserNote","isContentLoaded","cancelUserNote","editLink","newField","codeStaticId","noteText","alert","allVideos","shownVideos","initialCount","loadVideos","videosLoaded","codetypeid","videoService","icd10Videos","oasisVideos","getVideos","I10Contents","OASISContents","orderResults","VideoService","___HTML_LOADER_IMPORT_0___","URL","___HTML_LOADER_IMPORT_1___","___HTML_LOADER_IMPORT_2___","___HTML_LOADER_IMPORT_3___","___HTML_LOADER_REPLACEMENT_0___","___HTML_LOADER_REPLACEMENT_1___","webpackContext","req","webpackContextResolve","__webpack_require__","o","Error","resolve","module","jQuery"],"sourceRoot":""}