-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from jianyiee96/medical-review
Medical review
- Loading branch information
Showing
25 changed files
with
684 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { ConditionStatus } from './condition-status'; | ||
|
||
describe('ConditionStatus', () => { | ||
it('should create an instance', () => { | ||
expect(new ConditionStatus()).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { MedicalBoardCase } from '../medical-board-case-wrapper/medical-board-case-wrapper' | ||
import { Serviceman } from '../serviceman/serviceman' | ||
|
||
export class ConditionStatusWrapper { | ||
|
||
conditionStartDate: Date | ||
conditionStatus: ConditionStatus | ||
medicalBoardCaseId: number | ||
|
||
constructor(conditionStartDate?: Date, conditionStatus?: ConditionStatus, medicalBoardCaseId?: number) { | ||
|
||
this.conditionStartDate = conditionStartDate | ||
this.conditionStatus = conditionStatus | ||
this.medicalBoardCaseId = medicalBoardCaseId | ||
|
||
} | ||
|
||
} | ||
|
||
export class ConditionStatus { | ||
|
||
conditionStatusId: number | ||
description: string | ||
isActive: boolean | ||
statusEndDate: Date | ||
|
||
constructor(conditionStatusId?: number, description?: string, isActive?: boolean, statusEndDate?: Date) { | ||
|
||
this.conditionStatusId = conditionStatusId | ||
this.description = description | ||
this.isActive = isActive | ||
this.statusEndDate = statusEndDate | ||
|
||
} | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
src/app/classes/medical-board-case-wrapper/medical-board-case-wrapper.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { MedicalBoardCaseWrapper } from './medical-board-case-wrapper'; | ||
|
||
describe('MedicalBoardCaseWrapper', () => { | ||
it('should create an instance', () => { | ||
expect(new MedicalBoardCaseWrapper()).toBeTruthy(); | ||
}); | ||
}); |
57 changes: 57 additions & 0 deletions
57
src/app/classes/medical-board-case-wrapper/medical-board-case-wrapper.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import { MedicalBoardSlot } from '../booking-slot/booking-slot' | ||
import { ConditionStatus, ConditionStatusWrapper } from '../condition-status/condition-status' | ||
import { Consultation } from '../consultation/consultation' | ||
import { MedicalBoardCaseStatusEnum } from '../medicalboardcase-enum' | ||
import { MedicalBoardTypeEnum } from '../medicalboardtype-enum' | ||
import { PesStatusEnum } from '../pes-status-enum.enum' | ||
|
||
export class MedicalBoardCaseWrapper { | ||
|
||
chairman: String | ||
conditionStatuses: ConditionStatusWrapper[] | ||
medicalBoardCase: MedicalBoardCase | ||
scheduledEndDate: Date | ||
scheduledStartDate: Date | ||
|
||
constructor( | ||
chairman?: string, | ||
conditionStatuses?: ConditionStatusWrapper[], | ||
medicalBoardCase?: MedicalBoardCase, | ||
scheduledEndDate?: Date, | ||
scheduledStartDate?: Date | ||
) { | ||
|
||
this.chairman = chairman | ||
this.conditionStatuses = conditionStatuses | ||
this.medicalBoardCase = medicalBoardCase | ||
this.scheduledEndDate = scheduledEndDate | ||
this.scheduledStartDate = scheduledStartDate | ||
|
||
} | ||
} | ||
|
||
export class MedicalBoardCase { | ||
|
||
finalPesStatus: PesStatusEnum | ||
isSigned: boolean | ||
medicalBoardCaseId: number | ||
medicalBoardCaseStatus: MedicalBoardCaseStatusEnum | ||
medicalBoardType: MedicalBoardTypeEnum | ||
|
||
constructor( | ||
finalPesStatus?: PesStatusEnum, | ||
isSigned?: boolean, | ||
medicalBoardCaseId?: number, | ||
medicalBoardCaseStatus?: MedicalBoardCaseStatusEnum, | ||
medicalBoardType?: MedicalBoardTypeEnum | ||
) { | ||
|
||
this.finalPesStatus = finalPesStatus | ||
this.isSigned = isSigned | ||
this.medicalBoardCaseId = medicalBoardCaseId | ||
this.medicalBoardCaseStatus = medicalBoardCaseStatus | ||
this.medicalBoardType = medicalBoardType | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export enum MedicalBoardSlotStatusEnum { | ||
UNASSIGNED="Board Members Not Assigned", | ||
// No cases have been allocated yet | ||
ASSIGNED="Board Members Assigned", | ||
// Cases have been allocated | ||
ALLOCATED="Board Cases Allocated", | ||
// Board is currently ongoing | ||
ONGOING="Board Ongoing", | ||
// Cases were allocated and board was already done | ||
COMPLETED="Board Completed", | ||
// No cases were allocated and the slot has already expired, expiration at the end of the day [to be done] | ||
EXPIRED="Expired" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export enum MedicalBoardCaseStatusEnum { | ||
WAITING, //No date, not assigned medical board entity | ||
SCHEDULED, //Assigned medical board entity, upcoming | ||
COMPLETED //Completed | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export enum MedicalBoardTypeEnum { | ||
ABSENCE, | ||
PRESENCE | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export enum PesStatusEnum { | ||
A="Suitable for frontline operational vocations", | ||
B1="Suitable for frontline operational vocations", | ||
B2="Suitable for some frontline operational vocations, and frontline support vocations", | ||
B3="Suitable for some frontline operational vocations, and frontline support vocations", | ||
B4="Suitable for some frontline operational vocations, and frontline support vocations", | ||
BP="Fit for Obese BRT", | ||
C2="Suitable for some frontline support vocations", | ||
C9="Suitable for some frontline support vocations", | ||
E1="Suitable for administrative support vocations", | ||
E9="Suitable for administrative support vocations", | ||
F="Medically unfit for any form of service" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/app/screens/medical-review-screen/medical-review-screen-routing.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { Routes, RouterModule } from '@angular/router'; | ||
import { MedicalReviewScreenComponent } from './medical-review-screen.component'; | ||
|
||
const routes: Routes = [ | ||
{ | ||
path: '', | ||
component: MedicalReviewScreenComponent | ||
} | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(routes)], | ||
exports: [RouterModule] | ||
}) | ||
export class MedicalReviewScreenRoutingModule { } |
34 changes: 34 additions & 0 deletions
34
src/app/screens/medical-review-screen/medical-review-screen.component.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.form-status-badge { | ||
border-radius: 2px; | ||
padding: .25em .5rem; | ||
text-transform: uppercase; | ||
font-weight: 700; | ||
letter-spacing: .3px; | ||
} | ||
|
||
.status-badge { | ||
font-size: 15px; | ||
margin: 3px; | ||
background: #406E7E; | ||
color: #FFFFFF; | ||
} | ||
|
||
.marginCard { | ||
margin: 2px; | ||
} | ||
|
||
.status-badge-active { | ||
font-size: 14px; | ||
padding: 2px; | ||
margin: 3px; | ||
background: #4db806; | ||
color: #FFFFFF; | ||
} | ||
|
||
.status-badge-expired { | ||
font-size: 14px; | ||
padding: 2px; | ||
margin: 3px; | ||
background: #ff4d4d; | ||
color: #FFFFFF; | ||
} |
Oops, something went wrong.