From 20d77f69275a0a2134e0464d8254d6a75c479ea8 Mon Sep 17 00:00:00 2001 From: Brad Bodine Date: Thu, 22 Feb 2024 13:12:02 -0600 Subject: [PATCH 1/2] Refactor member-coverage component to handle policy status and display correctly --- .../member-coverage.component.html | 44 ++++++++++++++++++- .../member-coverage.component.ts | 7 +-- 2 files changed, 46 insertions(+), 5 deletions(-) diff --git a/libs/carrier-portal/member-coverage/src/lib/member-coverage/member-coverage.component.html b/libs/carrier-portal/member-coverage/src/lib/member-coverage/member-coverage.component.html index 56a82181..ca7fce25 100644 --- a/libs/carrier-portal/member-coverage/src/lib/member-coverage/member-coverage.component.html +++ b/libs/carrier-portal/member-coverage/src/lib/member-coverage/member-coverage.component.html @@ -22,7 +22,7 @@

Personal Info

{{ t(member.gender) | titlecase }}
DOB
-
{{ member.dob | date : 'MM/dd/YYYY' }}
+
{{ member.dob | date: 'MM/dd/YYYY' }}
SSN
{{ member.ssn | formatSsn }}
@@ -45,7 +45,47 @@

Policies

else dentalPolicyIcon " > - {{ policy.status }} + + + + Expired + + + + + + Active + + + Reinstated + + + {{ policy.status }} + + + + {{ policy.hbx_assigned_id }} {{ policy.plan.coverage_year }} {{ policy.plan.name }} diff --git a/libs/carrier-portal/member-coverage/src/lib/member-coverage/member-coverage.component.ts b/libs/carrier-portal/member-coverage/src/lib/member-coverage/member-coverage.component.ts index b94da1b2..e1fd5ce0 100644 --- a/libs/carrier-portal/member-coverage/src/lib/member-coverage/member-coverage.component.ts +++ b/libs/carrier-portal/member-coverage/src/lib/member-coverage/member-coverage.component.ts @@ -40,7 +40,7 @@ import { PersonContactInfoComponent } from './person-contact-info.component'; scope: 'memberCoverage', loader: scopeLoader( (lang: string, root: string) => - import(`./${root}/${lang}.json`) as Promise + import(`./${root}/${lang}.json`) as Promise, ), }, }, @@ -49,12 +49,13 @@ import { PersonContactInfoComponent } from './person-contact-info.component'; export class MemberCoverageComponent { personService = inject(PersonService); route = inject(ActivatedRoute); + currentYear = new Date().getFullYear().toString(); id!: string | null; person$: Observable> = this.route.paramMap.pipe( map((parameters: ParamMap) => parameters.get('id') ?? '___IGNORE___'), filter((idString: string) => idString !== '___IGNORE___'), - switchMap((id: string) => this.personService.getPerson(id)) + switchMap((id: string) => this.personService.getPerson(id)), ); public policyExpanded(pol: Policy): boolean { @@ -63,7 +64,7 @@ export class MemberCoverageComponent { private subscriber(pol: Policy): Enrollee | undefined { return pol.enrollees.find( - (en: Enrollee) => en.hbx_member_id === pol.subscriber_hbx_member_id + (en: Enrollee) => en.hbx_member_id === pol.subscriber_hbx_member_id, ); } From 17060127cf1a75c110cd965446dcc5ea4edb9f12 Mon Sep 17 00:00:00 2001 From: Brad Bodine Date: Thu, 22 Feb 2024 14:50:44 -0600 Subject: [PATCH 2/2] Update member coverage component HTML to display "CY Ended" for policies with status "Submitted" or "Resubmitted" and coverage year less than current year. --- .../src/lib/member-coverage/member-coverage.component.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/carrier-portal/member-coverage/src/lib/member-coverage/member-coverage.component.html b/libs/carrier-portal/member-coverage/src/lib/member-coverage/member-coverage.component.html index ca7fce25..8ae2164e 100644 --- a/libs/carrier-portal/member-coverage/src/lib/member-coverage/member-coverage.component.html +++ b/libs/carrier-portal/member-coverage/src/lib/member-coverage/member-coverage.component.html @@ -49,12 +49,13 @@

Policies

- Expired + CY Ended