Add OSHA Form 301 and Osha page components
- Implemented Form301 component for displaying OSHA Form 301 equivalent, including employee and case information. - Created Osha component to manage OSHA recordkeeping, including tabs for 300 Log, 300A Summary, Hours & rates, and Submit to OSHA. - Added functionality for printing and downloading CSV files for OSHA submissions. - Integrated loading and error handling states for data fetching.
This commit is contained in:
1 parent
3e964d1176
commit
61c876edec
59 files changed
+9180
-183
No files matched your search
@@ -33,3 +33,15 @@ export const rootCauseCategories = ['people', 'process', 'equipment', 'materials
|
||||
export const actionKinds = ['corrective', 'preventive'] as const
|
||||
|
||||
export const actionStatuses = ['open', 'in_progress', 'done', 'verified', 'cancelled'] as const
|
||||
|
||||
/** Form 300 column M: injury or illness type. */
|
||||
export const oshaCaseTypes = ['injury', 'skin_disorder', 'respiratory', 'poisoning', 'hearing_loss', 'other_illness'] as const
|
||||
export type OshaCaseType = (typeof oshaCaseTypes)[number]
|
||||
|
||||
/** Form 300 columns G–J, most serious first. */
|
||||
export const oshaOutcomes = ['death', 'days_away', 'restricted', 'other'] as const
|
||||
export type OshaOutcome = (typeof oshaOutcomes)[number]
|
||||
|
||||
/** Cases recordable under 1904.8–1904.11 regardless of the general criteria. */
|
||||
export const oshaSpecialCases = ['none', 'needlestick', 'medical_removal', 'hearing_loss', 'tuberculosis'] as const
|
||||
export type OshaSpecialCase = (typeof oshaSpecialCases)[number]
|
||||
Reference in new issue
Block a user