-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/966 add transport patient to hospital ocupation (#979)
* Add patient transfer occupation * Show a description for patient transfer occupation
- Loading branch information
1 parent
631cf6a
commit ec2d28f
Showing
4 changed files
with
34 additions
and
0 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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
export * from './exercise-occupation'; | ||
export * from './intermediate-occupation'; | ||
export * from './no-occupation'; | ||
export * from './load-occupation'; | ||
export * from './occupation-helpers-mutable'; | ||
export * from './occupation-helpers'; | ||
export * from './patient-transfer-occupation'; | ||
export * from './unloading-occupation'; | ||
export * from './wait-for-transfer-occupation'; |
19 changes: 19 additions & 0 deletions
19
shared/src/models/utils/occupations/patient-transfer-occupation.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,19 @@ | ||
import { IsUUID } from 'class-validator'; | ||
import { IsValue } from '../../../utils/validators'; | ||
import { getCreate } from '../get-create'; | ||
import { UUID, uuidValidationOptions } from '../../../utils'; | ||
import type { Occupation } from './occupation'; | ||
|
||
export class PatientTransferOccupation implements Occupation { | ||
@IsValue('patientTransferOccupation') | ||
readonly type = 'patientTransferOccupation'; | ||
|
||
@IsUUID(4, uuidValidationOptions) | ||
readonly transportManagementRegionId: UUID; | ||
|
||
constructor(transportManagementRegionId: UUID) { | ||
this.transportManagementRegionId = transportManagementRegionId; | ||
} | ||
|
||
static readonly create = getCreate(this); | ||
} |