4 * This package contains APIs which create and maintain work incident records
1 Package per_work_incident_api AUTHID CURRENT_USER as
2 /* $Header: peincapi.pkh 120.1 2005/10/02 02:17:38 aroussel $ */
3 /*#
5 * for a person.
6 * @rep:scope public
7 * @rep:product per
8 * @rep:displayname Work Incident
9 */
10 --
11 -- ----------------------------------------------------------------------------
12 -- |---------------------------< create_work_incident >-----------------------|
13 -- ----------------------------------------------------------------------------
14 --
15 -- {Start Of Comments}
16 /*#
20 * detrimental to the health, safety and well-being of a specific person which
17 * This API creates a work incident record for a person.
18 *
19 * A work incident holds the information about an occurrence which is
21 * happened whilst they were at work or en route to the work place. A work
22 * incident may require one or more medical assessments or disability records.
23 *
24 * <p><b>Licensing</b><br>
25 * This API is licensed for use with Human Resources.
26 *
27 * <p><b>Prerequisites</b><br>
28 * The person for whom the work incident is to be created must exist.
29 *
30 * <p><b>Post Success</b><br>
31 * The work incident record is created for the person.
32 *
33 * <p><b>Post Failure</b><br>
34 * The work incident is not created and an error is raised.
35 * @param p_validate If true, then validation alone will be performed and the
36 * database will remain unchanged. If false and all validation checks pass,
37 * then the database will be modified.
38 * @param p_effective_date Reference date for validating lookup values are
39 * applicable during the start to end active date range. This date does not
40 * determine when the changes take effect.
41 * @param p_person_id Uniquely identifies the person for whom the work incident
42 * is created.
43 * @param p_incident_reference Reference code for the work incident.
44 * @param p_incident_type The type of work incident that is being recorded.
45 * Valid values are defined by the 'INCIDENT_TYPE' lookup type for non-US
46 * legislations and by the 'US_OSHA_CATEGORY' lookup type for US legislation.
47 * @param p_at_work_flag Indicates whether work incident occurred at work or en
48 * route. Valid values are defined by the 'AT_WORK_FLAG' lookup type.
49 * @param p_incident_date The date that the work incident occurred.
50 * @param p_incident_time The time that the incident occurred.
51 * @param p_org_notified_date The date that the health and safety organization
52 * was notified of the work incident.
53 * @param p_assignment_id Identifies the assignment, which the employee was
54 * engaged on when the work incident happened.
55 * @param p_location The name of the place or the location where the incident
56 * happened.
57 * @param p_report_date The date the incident was reported.
58 * @param p_report_time The time the incident was reported.
59 * @param p_report_method The method by which the incident was reported. Valid
60 * values are defined by the 'PER_CM_MTHD' lookup type.
61 * @param p_person_reported_by Uniquely identifies the person who reported the
62 * work incident to the authorities.
63 * @param p_person_reported_to The name and contact details of the person
64 * representing the authority that the incident has been reported to.
65 * @param p_witness_details The name and contact details of any witnesses to
66 * the work incident.
67 * @param p_description Text description of the work incident.
68 * @param p_injury_type Type of injury suffered by the person in the work
69 * incident. Valid values are defined by the 'INJURY_TYPE' lookup type.
70 * @param p_disease_type Type of disease diagnosed as resulting from the work
71 * incident. Valid values are defined by the 'DISEASE_TYPE' lookup type.
72 * @param p_hazard_type Object or substance involved in the work incident.
73 * Valid values are defined by the 'HAZARD_TYPE' lookup type.
74 * @param p_body_part Details of the injured or diseased area of the person's
75 * anatomy.
76 * @param p_treatment_received_flag Indicates if medical treatment has been
77 * administered to the person.
78 * @param p_hospital_details Name and contact details of the hospital where
79 * treatment has been administered.
80 * @param p_emergency_code Indicates whether admitted into emergency room.
81 * @param p_hospitalized_flag Indicates whether hospitalized.
82 * @param p_hospital_address Address of the hospital.
83 * @param p_activity_at_time_of_work Activity of the person at the time of the
84 * incident.
85 * @param p_objects_involved Objects or substances involved in the incident.
86 * @param p_privacy_issue Indicates whether the incident is a private matter to
87 * the person.
88 * @param p_work_start_time Time the person started work.
89 * @param p_date_of_death Date of the person's death due to the work incident.
90 * @param p_report_completed_by Name of the person completing this incident
91 * report.
92 * @param p_reporting_person_title Title of the person completing this incident
93 * report.
94 * @param p_reporting_person_phone Phone number of the person completing this
95 * incident report.
96 * @param p_days_restricted_work Number of days the person is on restricted
97 * work.
98 * @param p_days_away_from_work Number of days the person is away from work or
99 * on transfer.
100 * @param p_doctor_name Name of the medical practitioner coordinating the
101 * treatment of the person.
102 * @param p_compensation_date Date compensation was awarded.
103 * @param p_compensation_currency Currency (code) in which compensation was
104 * awarded.
105 * @param p_compensation_amount Amount of compensation awarded.
106 * @param p_remedial_hs_action Description of (any) corrective action that has
107 * been recommended by the health and safety representative.
108 * @param p_notified_hsrep_id Uniquely identifies the person who is the health
109 * and safety representative that was notified of the work incident.
110 * @param p_notified_hsrep_date The date the health and safety representative
111 * was notified.
112 * @param p_notified_rep_id Uniquely identifies the person who has been
113 * notified of the work incident and who represents (by role) the
114 * representative body.
115 * @param p_notified_rep_date The date the representative body representative
116 * was notified.
117 * @param p_notified_rep_org_id Uniquely identifies the representative body
118 * organization notified.
122 * @param p_absence_exists_flag Indicates if person has been absent (not an
119 * @param p_related_incident_id Uniquely identifies the work incident that is
120 * related to the current work incident.
121 * @param p_over_time_flag Indicates if the incident occurred over time.
123 * HRMS absence) due to the incident.
124 * @param p_attribute_category This context value determines which flexfield
125 * structure to use with the descriptive flexfield segments.
126 * @param p_attribute1 Descriptive flexfield segment.
127 * @param p_attribute2 Descriptive flexfield segment.
128 * @param p_attribute3 Descriptive flexfield segment.
129 * @param p_attribute4 Descriptive flexfield segment.
130 * @param p_attribute5 Descriptive flexfield segment.
131 * @param p_attribute6 Descriptive flexfield segment.
132 * @param p_attribute7 Descriptive flexfield segment.
133 * @param p_attribute8 Descriptive flexfield segment.
134 * @param p_attribute9 Descriptive flexfield segment.
135 * @param p_attribute10 Descriptive flexfield segment.
136 * @param p_attribute11 Descriptive flexfield segment.
137 * @param p_attribute12 Descriptive flexfield segment.
138 * @param p_attribute13 Descriptive flexfield segment.
139 * @param p_attribute14 Descriptive flexfield segment.
140 * @param p_attribute15 Descriptive flexfield segment.
141 * @param p_attribute16 Descriptive flexfield segment.
142 * @param p_attribute17 Descriptive flexfield segment.
143 * @param p_attribute18 Descriptive flexfield segment.
144 * @param p_attribute19 Descriptive flexfield segment.
145 * @param p_attribute20 Descriptive flexfield segment.
146 * @param p_attribute21 Descriptive flexfield segment.
147 * @param p_attribute22 Descriptive flexfield segment.
148 * @param p_attribute23 Descriptive flexfield segment.
149 * @param p_attribute24 Descriptive flexfield segment.
150 * @param p_attribute25 Descriptive flexfield segment.
151 * @param p_attribute26 Descriptive flexfield segment.
152 * @param p_attribute27 Descriptive flexfield segment.
153 * @param p_attribute28 Descriptive flexfield segment.
154 * @param p_attribute29 Descriptive flexfield segment.
155 * @param p_attribute30 Descriptive flexfield segment.
156 * @param p_inc_information_category This context value determines which
157 * Flexfield Structure to use with the Developer Descriptive flexfield
158 * segments.
159 * @param p_inc_information1 Developer Descriptive flexfield segment.
160 * @param p_inc_information2 Developer Descriptive flexfield segment.
161 * @param p_inc_information3 Developer Descriptive flexfield segment.
162 * @param p_inc_information4 Developer Descriptive flexfield segment.
163 * @param p_inc_information5 Developer Descriptive flexfield segment.
164 * @param p_inc_information6 Developer Descriptive flexfield segment.
165 * @param p_inc_information7 Developer Descriptive flexfield segment.
166 * @param p_inc_information8 Developer Descriptive flexfield segment.
167 * @param p_inc_information9 Developer Descriptive flexfield segment.
168 * @param p_inc_information10 Developer Descriptive flexfield segment.
169 * @param p_inc_information11 Developer Descriptive flexfield segment.
170 * @param p_inc_information12 Developer Descriptive flexfield segment.
171 * @param p_inc_information13 Developer Descriptive flexfield segment.
172 * @param p_inc_information14 Developer Descriptive flexfield segment.
173 * @param p_inc_information15 Developer Descriptive flexfield segment.
174 * @param p_inc_information16 Developer Descriptive flexfield segment.
175 * @param p_inc_information17 Developer Descriptive flexfield segment.
176 * @param p_inc_information18 Developer Descriptive flexfield segment.
177 * @param p_inc_information19 Developer Descriptive flexfield segment.
178 * @param p_inc_information20 Developer Descriptive flexfield segment.
179 * @param p_inc_information21 Developer Descriptive flexfield segment.
180 * @param p_inc_information22 Developer Descriptive flexfield segment.
181 * @param p_inc_information23 Developer Descriptive flexfield segment.
182 * @param p_inc_information24 Developer Descriptive flexfield segment.
183 * @param p_inc_information25 Developer Descriptive flexfield segment.
184 * @param p_inc_information26 Developer Descriptive flexfield segment.
185 * @param p_inc_information27 Developer Descriptive flexfield segment.
186 * @param p_inc_information28 Developer Descriptive flexfield segment.
187 * @param p_inc_information29 Developer Descriptive flexfield segment.
188 * @param p_inc_information30 Developer Descriptive flexfield segment.
189 * @param p_incident_id If p_validate is false, uniquely identifies the work
190 * incident created. If p_validate is true, set to null.
191 * @param p_object_version_number If p_validate is false, then set to the
192 * version number of the created work incident. If p_validate is true, then the
193 * value will be null.
194 * @rep:displayname Create Work Incident
195 * @rep:category BUSINESS_ENTITY PER_WORK_INCIDENT
196 * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
197 * @rep:scope public
198 * @rep:lifecycle active
199 * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
200 */
201 --
202 -- {End Of Comments}
203 --
204 procedure create_work_incident
205 (p_validate in boolean default false
206 ,p_effective_date in date
207 ,p_person_id in number
208 ,p_incident_reference in varchar2
209 ,p_incident_type in varchar2
210 ,p_at_work_flag in varchar2
211 ,p_incident_date in date
212 ,p_incident_time in varchar2 default null
213 ,p_org_notified_date in date default null
214 ,p_assignment_id in number default null
215 ,p_location in varchar2 default null
219 ,p_person_reported_by in number default null
216 ,p_report_date in date default null
217 ,p_report_time in varchar2 default null
218 ,p_report_method in varchar2 default null
220 ,p_person_reported_to in varchar2 default null
221 ,p_witness_details in varchar2 default null
222 ,p_description in varchar2 default null
223 ,p_injury_type in varchar2 default null
224 ,p_disease_type in varchar2 default null
225 ,p_hazard_type in varchar2 default null
226 ,p_body_part in varchar2 default null
227 ,p_treatment_received_flag in varchar2 default null
228 ,p_hospital_details in varchar2 default null
229 ,p_emergency_code in varchar2 default null
230 ,p_hospitalized_flag in varchar2 default null
231 ,p_hospital_address in varchar2 default null
232 ,p_activity_at_time_of_work in varchar2 default null
233 ,p_objects_involved in varchar2 default null
234 ,p_privacy_issue in varchar2 default null
235 ,p_work_start_time in varchar2 default null
236 ,p_date_of_death in date default null
237 ,p_report_completed_by in varchar2 default null
238 ,p_reporting_person_title in varchar2 default null
239 ,p_reporting_person_phone in varchar2 default null
240 ,p_days_restricted_work in number default null
241 ,p_days_away_from_work in number default null
242 ,p_doctor_name in varchar2 default null
243 ,p_compensation_date in date default null
244 ,p_compensation_currency in varchar2 default null
245 ,p_compensation_amount in number default null
246 ,p_remedial_hs_action in varchar2 default null
247 ,p_notified_hsrep_id in number default null
248 ,p_notified_hsrep_date in date default null
249 ,p_notified_rep_id in number default null
250 ,p_notified_rep_date in date default null
251 ,p_notified_rep_org_id in number default null
252 ,p_related_incident_id in number default null
253 ,p_over_time_flag in varchar2 default null
254 ,p_absence_exists_flag in varchar2 default null
255 ,p_attribute_category in varchar2 default null
256 ,p_attribute1 in varchar2 default null
257 ,p_attribute2 in varchar2 default null
258 ,p_attribute3 in varchar2 default null
259 ,p_attribute4 in varchar2 default null
260 ,p_attribute5 in varchar2 default null
261 ,p_attribute6 in varchar2 default null
262 ,p_attribute7 in varchar2 default null
263 ,p_attribute8 in varchar2 default null
264 ,p_attribute9 in varchar2 default null
265 ,p_attribute10 in varchar2 default null
266 ,p_attribute11 in varchar2 default null
267 ,p_attribute12 in varchar2 default null
268 ,p_attribute13 in varchar2 default null
269 ,p_attribute14 in varchar2 default null
270 ,p_attribute15 in varchar2 default null
271 ,p_attribute16 in varchar2 default null
272 ,p_attribute17 in varchar2 default null
273 ,p_attribute18 in varchar2 default null
274 ,p_attribute19 in varchar2 default null
275 ,p_attribute20 in varchar2 default null
276 ,p_attribute21 in varchar2 default null
277 ,p_attribute22 in varchar2 default null
278 ,p_attribute23 in varchar2 default null
279 ,p_attribute24 in varchar2 default null
280 ,p_attribute25 in varchar2 default null
281 ,p_attribute26 in varchar2 default null
282 ,p_attribute27 in varchar2 default null
283 ,p_attribute28 in varchar2 default null
284 ,p_attribute29 in varchar2 default null
285 ,p_attribute30 in varchar2 default null
286 ,p_inc_information_category in varchar2 default null
287 ,p_inc_information1 in varchar2 default null
288 ,p_inc_information2 in varchar2 default null
289 ,p_inc_information3 in varchar2 default null
290 ,p_inc_information4 in varchar2 default null
291 ,p_inc_information5 in varchar2 default null
292 ,p_inc_information6 in varchar2 default null
293 ,p_inc_information7 in varchar2 default null
294 ,p_inc_information8 in varchar2 default null
295 ,p_inc_information9 in varchar2 default null
296 ,p_inc_information10 in varchar2 default null
297 ,p_inc_information11 in varchar2 default null
298 ,p_inc_information12 in varchar2 default null
299 ,p_inc_information13 in varchar2 default null
300 ,p_inc_information14 in varchar2 default null
301 ,p_inc_information15 in varchar2 default null
302 ,p_inc_information16 in varchar2 default null
303 ,p_inc_information17 in varchar2 default null
304 ,p_inc_information18 in varchar2 default null
305 ,p_inc_information19 in varchar2 default null
309 ,p_inc_information23 in varchar2 default null
306 ,p_inc_information20 in varchar2 default null
307 ,p_inc_information21 in varchar2 default null
308 ,p_inc_information22 in varchar2 default null
310 ,p_inc_information24 in varchar2 default null
311 ,p_inc_information25 in varchar2 default null
312 ,p_inc_information26 in varchar2 default null
313 ,p_inc_information27 in varchar2 default null
314 ,p_inc_information28 in varchar2 default null
315 ,p_inc_information29 in varchar2 default null
316 ,p_inc_information30 in varchar2 default null
317 ,p_incident_id out nocopy number
318 ,p_object_version_number out nocopy number
319 );
320 --
321 -- ----------------------------------------------------------------------------
322 -- |---------------------------< update_work_incident >-----------------------|
323 -- ----------------------------------------------------------------------------
324 --
325 -- {Start Of Comments}
326 /*#
327 * This API updates a work incident record for a person.
328 *
329 * A work incident holds the information about an occurrence which is
330 * detrimental to the health, safety and well-being of a specific person which
331 * happened whilst they were at work or en route to the work place. A work
332 * incident may give rise to one or more medical assessments or disabilities.
333 *
334 * <p><b>Licensing</b><br>
335 * This API is licensed for use with Human Resources.
336 *
337 * <p><b>Prerequisites</b><br>
338 * The work incident to be updated must exist.
339 *
340 * <p><b>Post Success</b><br>
341 * The work incident record is updated.
342 *
343 * <p><b>Post Failure</b><br>
344 * The work incident is not updated and an error is raised.
345 * @param p_validate If true, then validation alone will be performed and the
346 * database will remain unchanged. If false and all validation checks pass,
347 * then the database will be modified.
348 * @param p_effective_date Reference date for validating lookup values are
349 * applicable during the start to end active date range. This date does not
350 * determine when the changes take effect.
351 * @param p_incident_id Uniquely identifies the work incident to be updated.
352 * @param p_object_version_number Pass in the current version number of the
353 * work incident to be updated. When the API completes if p_validate is false,
354 * will be set to the new version number of the updated work incident. If
355 * p_validate is true will be set to the same value which was passed in.
356 * @param p_incident_reference Reference code for the work incident.
357 * @param p_incident_type The type of work incident that is being recorded.
358 * Valid values are defined by the 'INCIDENT_TYPE' lookup type for non-US
359 * legislations and by the 'US_OSHA_CATEGORY' lookup type for US legislation.
360 * @param p_at_work_flag Indicates whether work incident occurred at work or en
361 * route. Valid values are defined by the 'AT_WORK_FLAG' lookup type.
362 * @param p_incident_date The date that the work incident occurred.
363 * @param p_incident_time The time that the incident occurred.
364 * @param p_org_notified_date The date that the health and safety organization
365 * was notified of the work incident.
366 * @param p_assignment_id Identifies the assignment, which the employee was
367 * engaged on when the work incident happened.
368 * @param p_location The name of the place or the location where the incident
369 * happened.
370 * @param p_report_date The date the incident was reported.
371 * @param p_report_time The time the incident was reported.
372 * @param p_report_method The method by which the incident was reported. Valid
373 * values are defined by the 'PER_CM_MTHD' lookup type.
374 * @param p_person_reported_by Uniquely identifies the person who reported the
375 * work incident to the authorities.
376 * @param p_person_reported_to The name and contact details of the person
377 * representing the authority that the incident has been reported to.
378 * @param p_witness_details The name and contact details of any witnesses to
379 * the work incident.
380 * @param p_description Text description of the work incident.
381 * @param p_injury_type Type of injury suffered by the person in the work
382 * incident. Valid values are defined by the 'INJURY_TYPE' lookup type.
383 * @param p_disease_type Type of disease diagnosed as resulting from the work
384 * incident. Valid values are defined by the 'DISEASE_TYPE' lookup type.
385 * @param p_hazard_type Object or substance involved in the work incident.
386 * Valid values are defined by the 'HAZARD_TYPE' lookup type.
387 * @param p_body_part Details of the injured or diseased area of the person's
388 * anatomy.
389 * @param p_treatment_received_flag Indicates if medical treatment has been
390 * administered to the person.
391 * @param p_hospital_details Name and contact details of the hospital where
392 * treatment has been administered.
393 * @param p_emergency_code Indicates whether admitted into emergency room.
394 * @param p_hospitalized_flag Indicates whether hospitalized.
395 * @param p_hospital_address Address of the hospital.
396 * @param p_activity_at_time_of_work Activity of the person at the time of the
397 * incident.
398 * @param p_objects_involved Objects or substances involved in the incident.
399 * @param p_privacy_issue Indicates whether the incident is a private matter to
403 * @param p_report_completed_by Name of the person completing this incident
400 * the person.
401 * @param p_work_start_time Time the person started work.
402 * @param p_date_of_death Date of the person's death due to the work incident.
404 * report.
405 * @param p_reporting_person_title Title of the person completing this incident
406 * report.
407 * @param p_reporting_person_phone Phone number of the person completing this
408 * incident report.
409 * @param p_days_restricted_work Number of days the person is on restricted
410 * work.
411 * @param p_days_away_from_work Number of days the person is away from work or
412 * on transfer.
413 * @param p_doctor_name Name of the medical practitioner coordinating the
414 * treatment of the person.
415 * @param p_compensation_date Date compensation was awarded.
416 * @param p_compensation_currency Currency (code) in which compensation was
417 * awarded.
418 * @param p_compensation_amount Amount of compensation awarded.
419 * @param p_remedial_hs_action Description of (any) corrective action that has
420 * been recommended by the health and safety representative.
421 * @param p_notified_hsrep_id Uniquely identifies the person who is the health
422 * and safety representative that was notified of the work incident.
423 * @param p_notified_hsrep_date The date the health and safety representative
424 * was notified.
425 * @param p_notified_rep_id Uniquely identifies the person who has been
426 * notified of the work incident and who represents (by role) the
427 * representative body.
428 * @param p_notified_rep_date The date the representative body representative
429 * was notified.
430 * @param p_notified_rep_org_id Uniquely identifies the representative body
431 * organization notified.
432 * @param p_related_incident_id Uniquely identifies the work incident that is
433 * related to the current work incident.
434 * @param p_over_time_flag Indicates if the incident occurred over time.
435 * @param p_absence_exists_flag Indicates if person has been absent (not an
436 * HRMS absence) due to the incident.
437 * @param p_attribute_category This context value determines which flexfield
438 * structure to use with the descriptive flexfield segments.
439 * @param p_attribute1 Descriptive flexfield segment.
440 * @param p_attribute2 Descriptive flexfield segment.
441 * @param p_attribute3 Descriptive flexfield segment.
442 * @param p_attribute4 Descriptive flexfield segment.
443 * @param p_attribute5 Descriptive flexfield segment.
444 * @param p_attribute6 Descriptive flexfield segment.
445 * @param p_attribute7 Descriptive flexfield segment.
446 * @param p_attribute8 Descriptive flexfield segment.
447 * @param p_attribute9 Descriptive flexfield segment.
448 * @param p_attribute10 Descriptive flexfield segment.
449 * @param p_attribute11 Descriptive flexfield segment.
450 * @param p_attribute12 Descriptive flexfield segment.
451 * @param p_attribute13 Descriptive flexfield segment.
452 * @param p_attribute14 Descriptive flexfield segment.
453 * @param p_attribute15 Descriptive flexfield segment.
454 * @param p_attribute16 Descriptive flexfield segment.
455 * @param p_attribute17 Descriptive flexfield segment.
456 * @param p_attribute18 Descriptive flexfield segment.
457 * @param p_attribute19 Descriptive flexfield segment.
458 * @param p_attribute20 Descriptive flexfield segment.
459 * @param p_attribute21 Descriptive flexfield segment.
460 * @param p_attribute22 Descriptive flexfield segment.
461 * @param p_attribute23 Descriptive flexfield segment.
462 * @param p_attribute24 Descriptive flexfield segment.
463 * @param p_attribute25 Descriptive flexfield segment.
464 * @param p_attribute26 Descriptive flexfield segment.
465 * @param p_attribute27 Descriptive flexfield segment.
466 * @param p_attribute28 Descriptive flexfield segment.
467 * @param p_attribute29 Descriptive flexfield segment.
468 * @param p_attribute30 Descriptive flexfield segment.
469 * @param p_inc_information_category This context value determines which
470 * Flexfield Structure to use with the Developer Descriptive flexfield
471 * segments.
472 * @param p_inc_information1 Developer Descriptive flexfield segment.
473 * @param p_inc_information2 Developer Descriptive flexfield segment.
474 * @param p_inc_information3 Developer Descriptive flexfield segment.
475 * @param p_inc_information4 Developer Descriptive flexfield segment.
476 * @param p_inc_information5 Developer Descriptive flexfield segment.
477 * @param p_inc_information6 Developer Descriptive flexfield segment.
478 * @param p_inc_information7 Developer Descriptive flexfield segment.
479 * @param p_inc_information8 Developer Descriptive flexfield segment.
480 * @param p_inc_information9 Developer Descriptive flexfield segment.
481 * @param p_inc_information10 Developer Descriptive flexfield segment.
482 * @param p_inc_information11 Developer Descriptive flexfield segment.
483 * @param p_inc_information12 Developer Descriptive flexfield segment.
484 * @param p_inc_information13 Developer Descriptive flexfield segment.
485 * @param p_inc_information14 Developer Descriptive flexfield segment.
486 * @param p_inc_information15 Developer Descriptive flexfield segment.
487 * @param p_inc_information16 Developer Descriptive flexfield segment.
488 * @param p_inc_information17 Developer Descriptive flexfield segment.
489 * @param p_inc_information18 Developer Descriptive flexfield segment.
490 * @param p_inc_information19 Developer Descriptive flexfield segment.
491 * @param p_inc_information20 Developer Descriptive flexfield segment.
492 * @param p_inc_information21 Developer Descriptive flexfield segment.
493 * @param p_inc_information22 Developer Descriptive flexfield segment.
494 * @param p_inc_information23 Developer Descriptive flexfield segment.
495 * @param p_inc_information24 Developer Descriptive flexfield segment.
496 * @param p_inc_information25 Developer Descriptive flexfield segment.
500 * @param p_inc_information29 Developer Descriptive flexfield segment.
497 * @param p_inc_information26 Developer Descriptive flexfield segment.
498 * @param p_inc_information27 Developer Descriptive flexfield segment.
499 * @param p_inc_information28 Developer Descriptive flexfield segment.
501 * @param p_inc_information30 Developer Descriptive flexfield segment.
502 * @rep:displayname Update Work Incident
503 * @rep:category BUSINESS_ENTITY PER_WORK_INCIDENT
504 * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
505 * @rep:scope public
506 * @rep:lifecycle active
507 * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
508 */
509 --
510 -- {End Of Comments}
511 --
512 procedure update_work_incident
513 (p_validate in boolean default false
514 ,p_effective_date in date
515 ,p_incident_id in number
516 ,p_object_version_number in out nocopy number
517 ,p_incident_reference in varchar2 default hr_api.g_varchar2
518 ,p_incident_type in varchar2 default hr_api.g_varchar2
519 ,p_at_work_flag in varchar2 default hr_api.g_varchar2
520 ,p_incident_date in date default hr_api.g_date
521 ,p_incident_time in varchar2 default hr_api.g_varchar2
522 ,p_org_notified_date in date default hr_api.g_date
523 ,p_assignment_id in number default hr_api.g_number
524 ,p_location in varchar2 default hr_api.g_varchar2
525 ,p_report_date in date default hr_api.g_date
526 ,p_report_time in varchar2 default hr_api.g_varchar2
527 ,p_report_method in varchar2 default hr_api.g_varchar2
528 ,p_person_reported_by in number default hr_api.g_number
529 ,p_person_reported_to in varchar2 default hr_api.g_varchar2
530 ,p_witness_details in varchar2 default hr_api.g_varchar2
531 ,p_description in varchar2 default hr_api.g_varchar2
532 ,p_injury_type in varchar2 default hr_api.g_varchar2
533 ,p_disease_type in varchar2 default hr_api.g_varchar2
534 ,p_hazard_type in varchar2 default hr_api.g_varchar2
535 ,p_body_part in varchar2 default hr_api.g_varchar2
536 ,p_treatment_received_flag in varchar2 default hr_api.g_varchar2
537 ,p_hospital_details in varchar2 default hr_api.g_varchar2
538 ,p_emergency_code in varchar2 default hr_api.g_varchar2
539 ,p_hospitalized_flag in varchar2 default hr_api.g_varchar2
540 ,p_hospital_address in varchar2 default hr_api.g_varchar2
541 ,p_activity_at_time_of_work in varchar2 default hr_api.g_varchar2
542 ,p_objects_involved in varchar2 default hr_api.g_varchar2
543 ,p_privacy_issue in varchar2 default hr_api.g_varchar2
544 ,p_work_start_time in varchar2 default hr_api.g_varchar2
545 ,p_date_of_death in date default hr_api.g_date
546 ,p_report_completed_by in varchar2 default hr_api.g_varchar2
547 ,p_reporting_person_title in varchar2 default hr_api.g_varchar2
548 ,p_reporting_person_phone in varchar2 default hr_api.g_varchar2
549 ,p_days_restricted_work in number default hr_api.g_number
550 ,p_days_away_from_work in number default hr_api.g_number
551 ,p_doctor_name in varchar2 default hr_api.g_varchar2
552 ,p_compensation_date in date default hr_api.g_date
553 ,p_compensation_currency in varchar2 default hr_api.g_varchar2
554 ,p_compensation_amount in number default hr_api.g_number
555 ,p_remedial_hs_action in varchar2 default hr_api.g_varchar2
556 ,p_notified_hsrep_id in number default hr_api.g_number
557 ,p_notified_hsrep_date in date default hr_api.g_date
558 ,p_notified_rep_id in number default hr_api.g_number
559 ,p_notified_rep_date in date default hr_api.g_date
560 ,p_notified_rep_org_id in number default hr_api.g_number
561 ,p_related_incident_id in number default hr_api.g_number
562 ,p_over_time_flag in varchar2 default hr_api.g_varchar2
563 ,p_absence_exists_flag in varchar2 default hr_api.g_varchar2
564 ,p_attribute_category in varchar2 default hr_api.g_varchar2
565 ,p_attribute1 in varchar2 default hr_api.g_varchar2
566 ,p_attribute2 in varchar2 default hr_api.g_varchar2
567 ,p_attribute3 in varchar2 default hr_api.g_varchar2
568 ,p_attribute4 in varchar2 default hr_api.g_varchar2
569 ,p_attribute5 in varchar2 default hr_api.g_varchar2
570 ,p_attribute6 in varchar2 default hr_api.g_varchar2
571 ,p_attribute7 in varchar2 default hr_api.g_varchar2
572 ,p_attribute8 in varchar2 default hr_api.g_varchar2
573 ,p_attribute9 in varchar2 default hr_api.g_varchar2
574 ,p_attribute10 in varchar2 default hr_api.g_varchar2
575 ,p_attribute11 in varchar2 default hr_api.g_varchar2
576 ,p_attribute12 in varchar2 default hr_api.g_varchar2
577 ,p_attribute13 in varchar2 default hr_api.g_varchar2
578 ,p_attribute14 in varchar2 default hr_api.g_varchar2
579 ,p_attribute15 in varchar2 default hr_api.g_varchar2
580 ,p_attribute16 in varchar2 default hr_api.g_varchar2
581 ,p_attribute17 in varchar2 default hr_api.g_varchar2
585 ,p_attribute21 in varchar2 default hr_api.g_varchar2
582 ,p_attribute18 in varchar2 default hr_api.g_varchar2
583 ,p_attribute19 in varchar2 default hr_api.g_varchar2
584 ,p_attribute20 in varchar2 default hr_api.g_varchar2
586 ,p_attribute22 in varchar2 default hr_api.g_varchar2
587 ,p_attribute23 in varchar2 default hr_api.g_varchar2
588 ,p_attribute24 in varchar2 default hr_api.g_varchar2
589 ,p_attribute25 in varchar2 default hr_api.g_varchar2
590 ,p_attribute26 in varchar2 default hr_api.g_varchar2
591 ,p_attribute27 in varchar2 default hr_api.g_varchar2
592 ,p_attribute28 in varchar2 default hr_api.g_varchar2
593 ,p_attribute29 in varchar2 default hr_api.g_varchar2
594 ,p_attribute30 in varchar2 default hr_api.g_varchar2
595 ,p_inc_information_category in varchar2 default hr_api.g_varchar2
596 ,p_inc_information1 in varchar2 default hr_api.g_varchar2
597 ,p_inc_information2 in varchar2 default hr_api.g_varchar2
598 ,p_inc_information3 in varchar2 default hr_api.g_varchar2
599 ,p_inc_information4 in varchar2 default hr_api.g_varchar2
600 ,p_inc_information5 in varchar2 default hr_api.g_varchar2
601 ,p_inc_information6 in varchar2 default hr_api.g_varchar2
602 ,p_inc_information7 in varchar2 default hr_api.g_varchar2
603 ,p_inc_information8 in varchar2 default hr_api.g_varchar2
604 ,p_inc_information9 in varchar2 default hr_api.g_varchar2
605 ,p_inc_information10 in varchar2 default hr_api.g_varchar2
606 ,p_inc_information11 in varchar2 default hr_api.g_varchar2
607 ,p_inc_information12 in varchar2 default hr_api.g_varchar2
608 ,p_inc_information13 in varchar2 default hr_api.g_varchar2
609 ,p_inc_information14 in varchar2 default hr_api.g_varchar2
610 ,p_inc_information15 in varchar2 default hr_api.g_varchar2
611 ,p_inc_information16 in varchar2 default hr_api.g_varchar2
612 ,p_inc_information17 in varchar2 default hr_api.g_varchar2
613 ,p_inc_information18 in varchar2 default hr_api.g_varchar2
614 ,p_inc_information19 in varchar2 default hr_api.g_varchar2
615 ,p_inc_information20 in varchar2 default hr_api.g_varchar2
616 ,p_inc_information21 in varchar2 default hr_api.g_varchar2
617 ,p_inc_information22 in varchar2 default hr_api.g_varchar2
618 ,p_inc_information23 in varchar2 default hr_api.g_varchar2
619 ,p_inc_information24 in varchar2 default hr_api.g_varchar2
620 ,p_inc_information25 in varchar2 default hr_api.g_varchar2
621 ,p_inc_information26 in varchar2 default hr_api.g_varchar2
622 ,p_inc_information27 in varchar2 default hr_api.g_varchar2
623 ,p_inc_information28 in varchar2 default hr_api.g_varchar2
624 ,p_inc_information29 in varchar2 default hr_api.g_varchar2
625 ,p_inc_information30 in varchar2 default hr_api.g_varchar2
626 );
627 --
628 -- ----------------------------------------------------------------------------
629 -- |---------------------------< delete_work_incident >-----------------------|
630 -- ----------------------------------------------------------------------------
631 --
632 -- {Start Of Comments}
633 /*#
634 * This API deletes a work incident record for a person.
635 *
636 * A work incident holds the information about an occurrence which is
637 * detrimental to the health, safety and well-being of a specific person which
638 * happened whilst they were at work or en route to the work place. A work
639 * incident may give rise to one or more medical assessments or disabilities.
640 *
641 * <p><b>Licensing</b><br>
642 * This API is licensed for use with Human Resources.
643 *
644 * <p><b>Prerequisites</b><br>
645 * The work incident to be deleted must already exist.
646 *
647 * <p><b>Post Success</b><br>
648 * The work incident is deleted.
649 *
650 * <p><b>Post Failure</b><br>
651 * The work incident is not deleted and an error is raised.
652 * @param p_validate If true, then validation alone will be performed and the
653 * database will remain unchanged. If false and all validation checks pass,
654 * then the database will be modified.
655 * @param p_incident_id Uniquely identifies the work incident to be deleted.
656 * @param p_object_version_number Current version number of the work incident
657 * to be deleted.
658 * @rep:displayname Delete Work Incident
659 * @rep:category BUSINESS_ENTITY PER_WORK_INCIDENT
660 * @rep:category MISC_EXTENSIONS HR_USER_HOOKS
661 * @rep:scope public
662 * @rep:lifecycle active
663 * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
664 */
665 --
666 -- {End Of Comments}
667 --
668 procedure delete_work_incident
669 (p_validate in boolean default false
670 ,p_incident_id in number
671 ,p_object_version_number in number
672 );
673 --
674 --
675 end per_work_incident_api;