DBA Data[Home] [Help]

PACKAGE: APPS.HR_HK_EMPLOYEE_API

Source


1 PACKAGE hr_hk_employee_api AS
2 /* $Header: hrhkwree.pkh 120.3 2005/11/03 15:56:41 sclarke noship $ */
3 /*#
4  * This package contains employee APIs for Hong Kong.
5  * @rep:scope public
6  * @rep:product per
7  * @rep:displayname Employee for Hong Kong
8 */
9 --
10 -- ----------------------------------------------------------------------------
11 -- |----------------------------< create_hk_employee >------------------------|
12 -- ----------------------------------------------------------------------------
13 --
14 -- {Start Of Comments}
15 /*#
16  * This API creates an employee in a Hong Kong business group.
17  *
18  * The API calls the generic API create_employee, with the parameters set as
19  * appropriate for a Hong Kong employee. Performs mapping of Developer
20  * Descriptive Flexfield segments. This ensures appropriate identification
21  * information has been entered ie. National identifier or Passport
22  * information.
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  * If person_type_id is supplied, it must have a corresponding system person
29  * type of 'EMP', must be active and be in the same business group as that of
30  * the employee being created. Also the business group supplied should be a
31  * Hong Kong business group.
32  *
33  * <p><b>Post Success</b><br>
34  * Successfully creates the person, primary assignment and period of service in
35  * the database.
36  *
37  * <p><b>Post Failure</b><br>
38  * The API does not create the person, primary assignment or period of service
39  * and raises an error.
40  * @param p_validate If true, then validation alone will be performed and the
41  * database will remain unchanged. If false and all validation checks pass,
42  * then the database will be modified.
43  * @param p_hire_date Indicates the date on which the employee is hired.
44  * @param p_business_group_id {@rep:casecolumn
45  * PER_ALL_PEOPLE_F.BUSINESS_GROUP_ID}
46  * @param p_last_name {@rep:casecolumn PER_ALL_PEOPLE_F.LAST_NAME}
47  * @param p_sex Indicates the Employee's Legal gender. Valid values are defined
48  * by 'SEX' lookup type.
49  * @param p_person_type_id {@rep:casecolumn PER_ALL_PEOPLE_F.PERSON_TYPE_ID}
50  * @param p_comments Comment text.
51  * @param p_date_employee_data_verified {@rep:casecolumn
52  * PER_ALL_PEOPLE_F.DATE_EMPLOYEE_DATA_VERIFIED}
53  * @param p_date_of_birth {@rep:casecolumn PER_ALL_PEOPLE_F.DATE_OF_BIRTH}
54  * @param p_email_address {@rep:casecolumn PER_ALL_PEOPLE_F.EMAIL_ADDRESS}
55  * @param p_employee_number The business group's employee number generation
56  * method determines when the API derives and passes out an employee number or
57  * when the calling program should pass in a value. When the API call completes
58  * if p_validate is false >then will be set to the employee number. If
59  * p_validate is true then will be set to the passed value.
60  * @param p_expense_check_send_to_addres Indicates the Employee's Address to
61  * which the expense must be sent. Valid values are determined by 'HOME_OFFICE'
62  * lookup type.
63  * @param p_first_name {@rep:casecolumn PER_ALL_PEOPLE_F.FIRST_NAME}
64  * @param p_known_as {@rep:casecolumn PER_ALL_PEOPLE_F.KNOWN_AS}
65  * @param p_marital_status Indicates the Employee's Marital status. Valid
66  * values are defined by 'MAR_STATUS' lookup type.
67  * @param p_middle_names {@rep:casecolumn PER_ALL_PEOPLE_F.MIDDLE_NAMES}
68  * @param p_nationality Indicates the Employee's Nationality. Valid values are
69  * defined by 'NATIONALITY' lookup type.
70  * @param p_hkid_number {@rep:casecolumn PER_ALL_PEOPLE_F.NATIONAL_IDENTIFIER}
71  * @param p_previous_last_name {@rep:casecolumn
72  * PER_ALL_PEOPLE_F.PREVIOUS_LAST_NAME}
73  * @param p_registered_disabled_flag Flag indicating whether Employee is
74  * classified as disabled. Valid values are defined by 'REGISTERED_DISABLED'
75  * lookup type.
76  * @param p_title Employee's Title e.g. Mr, Mrs, Dr. Valid values are defined
77  * by 'TITLE' lookup type.
78  * @param p_vendor_id {@rep:casecolumn PER_ALL_PEOPLE_F.VENDOR_ID}
79  * @param p_work_telephone {@rep:casecolumn PER_ALL_PEOPLE_F.WORK_TELEPHONE}
80  * @param p_attribute_category This context value determines which flexfield
81  * structure to use with the descriptive flexfield segments.
82  * @param p_attribute1 Descriptive flexfield segment.
83  * @param p_attribute2 Descriptive flexfield segment.
84  * @param p_attribute3 Descriptive flexfield segment.
85  * @param p_attribute4 Descriptive flexfield segment.
86  * @param p_attribute5 Descriptive flexfield segment.
87  * @param p_attribute6 Descriptive flexfield segment.
88  * @param p_attribute7 Descriptive flexfield segment.
89  * @param p_attribute8 Descriptive flexfield segment.
90  * @param p_attribute9 Descriptive flexfield segment.
91  * @param p_attribute10 Descriptive flexfield segment.
92  * @param p_attribute11 Descriptive flexfield segment.
93  * @param p_attribute12 Descriptive flexfield segment.
94  * @param p_attribute13 Descriptive flexfield segment.
95  * @param p_attribute14 Descriptive flexfield segment.
96  * @param p_attribute15 Descriptive flexfield segment.
97  * @param p_attribute16 Descriptive flexfield segment.
98  * @param p_attribute17 Descriptive flexfield segment.
99  * @param p_attribute18 Descriptive flexfield segment.
100  * @param p_attribute19 Descriptive flexfield segment.
101  * @param p_attribute20 Descriptive flexfield segment.
102  * @param p_attribute21 Descriptive flexfield segment.
103  * @param p_attribute22 Descriptive flexfield segment.
104  * @param p_attribute23 Descriptive flexfield segment.
105  * @param p_attribute24 Descriptive flexfield segment.
106  * @param p_attribute25 Descriptive flexfield segment.
107  * @param p_attribute26 Descriptive flexfield segment.
108  * @param p_attribute27 Descriptive flexfield segment.
109  * @param p_attribute28 Descriptive flexfield segment.
110  * @param p_attribute29 Descriptive flexfield segment.
111  * @param p_attribute30 Descriptive flexfield segment.
112  * @param p_passport_number Employee's Passport Number.
113  * @param p_country_of_issue Country where Passport was issued.
114  * @param p_work_permit_number Employee's Work Permit Number.
115  * @param p_work_permit_expiry_date Date Work Permit expires.
116  * @param p_chinese_name Employee's Name in Chinese
117  * @param p_hk_full_name Employee's Full Name from Hong Kong ID Card or
118  * Passport.
119  * @param p_previous_employer_name Name of Previous Employer.
120  * @param p_previous_employer_address Address of Previous Employer.
121  * @param p_employee_tax_file_number Employee's Tax File Number
122  * @param p_date_of_death {@rep:casecolumn PER_ALL_PEOPLE_F.DATE_OF_DEATH}
123  * @param p_background_check_status Indicates the Background check status of
124  * the employee. Valid values as applicable are defined by 'YES_NO' lookup
125  * type.
126  * @param p_background_date_check {@rep:casecolumn
127  * PER_ALL_PEOPLE_F.BACKGROUND_DATE_CHECK}
128  * @param p_blood_type Indicates the Employee's Blood Group. Valid values are
129  * defined by 'BLOOD_TYPE' lookup type.
130  * @param p_correspondence_language {@rep:casecolumn
131  * PER_ALL_PEOPLE_F.CORRESPONDENCE_LANGUAGE}
132  * @param p_fast_path_employee {@rep:casecolumn
133  * PER_ALL_PEOPLE_F.FAST_PATH_EMPLOYEE}
134  * @param p_fte_capacity {@rep:casecolumn PER_ALL_PEOPLE_F.FTE_CAPACITY}
135  * @param p_honors {@rep:casecolumn PER_ALL_PEOPLE_F.HONORS}
136  * @param p_internal_location {@rep:casecolumn
137  * PER_ALL_PEOPLE_F.INTERNAL_LOCATION}
138  * @param p_last_medical_test_by {@rep:casecolumn
139  * PER_ALL_PEOPLE_F.LAST_MEDICAL_TEST_BY}
140  * @param p_last_medical_test_date {@rep:casecolumn
141  * PER_ALL_PEOPLE_F.LAST_MEDICAL_TEST_DATE}
142  * @param p_mailstop {@rep:casecolumn PER_ALL_PEOPLE_F.MAILSTOP}
143  * @param p_office_number {@rep:casecolumn PER_ALL_PEOPLE_F.OFFICE_NUMBER}
144  * @param p_on_military_service Indicates whether the employee was in the
145  * military service. Valid values as applicable are defined by 'YES_NO' lookup
146  * type.
147  * @param p_pre_name_adjunct {@rep:casecolumn
148  * PER_ALL_PEOPLE_F.PRE_NAME_ADJUNCT}
149  * @param p_projected_start_date {@rep:casecolumn
150  * PER_ALL_PEOPLE_F.PROJECTED_START_DATE}
151  * @param p_resume_exists Indicates whether the Employee's Resume already
152  * exists in the database. Valid values as applicable are defined by 'YES_NO'
153  * lookup type.
154  * @param p_resume_last_updated {@rep:casecolumn
155  * PER_ALL_PEOPLE_F.RESUME_LAST_UPDATED}
156  * @param p_second_passport_exists Indicates the Employee's Work schedule.
157  * Valid values are defined by 'WORK_SCHEDULE' lookup type.
158  * @param p_student_status Student Status. Valid values are defined by the
159  * 'STUDENT_STATUS' lookup type.
160  * @param p_work_schedule Employee's Work schedule. Valid values are defined by
161  * 'WORK_SCHEDULE' lookup type.
162  * @param p_suffix {@rep:casecolumn PER_ALL_PEOPLE_F.SUFFIX}
163  * @param p_benefit_group_id {@rep:casecolumn
164  * PER_ALL_PEOPLE_F.BENEFIT_GROUP_ID}
165  * @param p_receipt_of_death_cert_date {@rep:casecolumn
166  * PER_ALL_PEOPLE_F.RECEIPT_OF_DEATH_CERT_DATE}
167  * @param p_coord_ben_med_pln_no {@rep:casecolumn
168  * PER_ALL_PEOPLE_F.COORD_BEN_MED_PLN_NO}
169  * @param p_coord_ben_no_cvg_flag Indicates whether the employee has any
170  * coverage other than the Coordination of benefits. Valid values as applicable
171  * are defined by 'YES_NO' lookup type.
172  * @param p_uses_tobacco_flag Indicates whether the employee uses tabacco.
173  * Valid values as applicable are defined by 'YES_NO' lookup type.
174  * @param p_dpdnt_adoption_date {@rep:casecolumn
175  * PER_ALL_PEOPLE_F.DPDNT_ADOPTION_DATE}
176  * @param p_dpdnt_vlntry_svce_flag Indicates whether the employee was in the
177  * dependent voluntary service. Valid values are defined by 'YES_NO' lookup
178  * type.
179  * @param p_original_date_of_hire {@rep:casecolumn
180  * PER_ALL_PEOPLE_F.ORIGINAL_DATE_OF_HIRE}
181  * @param p_adjusted_svc_date {@rep:casecolumn
182  * PER_PERIODS_OF_SERVICE.ADJUSTED_SVC_DATE}
183  * @param p_person_id If p_validate is false, then this uniquely identifies the
184  * person created. If p_validate is true, then set to null.
185  * @param p_assignment_id If p_validate is false, then this uniquely identifies
186  * the created assignment. If p_validate is true, then set to null.
187  * @param p_per_object_version_number If p_validate is false, then set to the
188  * version number of the created person. If p_validate is true, then the value
189  * will be null.
190  * @param p_asg_object_version_number If p_validate is false, then this
191  * parameter is set to the version number of the assignment created. If
192  * p_validate is true, then this parameter is null.
193  * @param p_per_effective_start_date If p_validate is false, this will be set
194  * to the effective start date of the person. If p_validate is true this will
195  * be null.
196  * @param p_per_effective_end_date If p_validate is false, this will be set to
197  * the effective end date of the person. If p_validate is true this will be
198  * null.
199  * @param p_full_name If p_validate is false, then set to the full name of the
200  * person. If p_validate is true, then set to null.
201  * @param p_per_comment_id If p_validate is false, this will be set to the
202  * comments for the person. If p_validate is true this will be null.
203  * @param p_assignment_sequence If p_validate is false, this will be set to the
204  * assignment sequence for the person. If p_validate is true this will be null.
205  * @param p_assignment_number If p_validate is false, this will be set to the
206  * assignment number of the person. If p_validate is true this will be null.
207  * @param p_name_combination_warning If set to true, then the combination of
208  * last name, first name and date of birth existed prior to calling this API.
209  * @param p_assign_payroll_warning If set to true, then the date of birth is
210  * not entered. If set to false, then the date of birth has been entered.
211  * Indicates if it will be possible to set the payroll on any of this person's
212  * assignments.
213  * @param p_orig_hire_warning If p_validate is false, the original date of hire
214  * is provided and the person type is not
215  * Employee,Employee-Applicant,Ex-Employee or Ex-Employee Applicant, then set
216  * to true.
220  * @param p_coord_ben_med_pl_name Secondary medical coverage name. Column used
217  * @param p_rehire_recommendation Obsolete parameter, do not use.
218  * @param p_coord_ben_med_ext_er Secondary external medical coverage. Column
219  * used for external processing.
221  * for external processing.
222  * @param p_coord_ben_med_insr_crr_name Secondary medical coverage insurance
223  * carrier name. Column used for external processing.
224  * @param p_coord_ben_med_insr_crr_ident Secondary medical coverage insurance
225  * carrier identifier. Column used for external processing.
226  * @param p_coord_ben_med_cvg_strt_dt Secondary medical coverage effective
227  * start date. Column used for external processing.
228  * @param p_coord_ben_med_cvg_end_dt Secondary medical coverage effective end
229  * date. Column used for external processing.
230  * @param p_town_of_birth Town or city of birth.
231  * @param p_region_of_birth Geographical region of birth.
232  * @param p_country_of_birth Country of birth.
233  * @param p_global_person_id Obsolete parameter, do not use.
234  * @param p_party_id TCA party for whom you create the person record.
235  * @rep:displayname Create Employee for Hong Kong
236  * @rep:category BUSINESS_ENTITY PER_EMPLOYEE
237  * @rep:category MISC_EXTENSIONS HR_DATAPUMP
238  * @rep:scope public
239  * @rep:lifecycle active
240  * @rep:ihelp PER/@scalapi APIs in Oracle HRMS
241 */
242 --
243 -- {End Of Comments}
244 --
245 PROCEDURE create_hk_employee
246   (p_validate                       IN      BOOLEAN  DEFAULT false
247   ,p_hire_date                      IN      DATE
248   ,p_business_group_id              IN      NUMBER
249   ,p_last_name                      IN      VARCHAR2
250   ,p_sex                            IN      VARCHAR2
251   ,p_person_type_id                 IN      NUMBER   DEFAULT NULL
252   ,p_comments                       IN      VARCHAR2 DEFAULT NULL
256   ,p_employee_number                IN OUT NOCOPY VARCHAR2
253   ,p_date_employee_data_verified    IN      DATE     DEFAULT NULL
254   ,p_date_of_birth                  IN      DATE     DEFAULT NULL
255   ,p_email_address                  IN      VARCHAR2 DEFAULT NULL
257   ,p_expense_check_send_to_addres   IN      VARCHAR2 DEFAULT NULL
258   ,p_first_name                     IN      VARCHAR2 DEFAULT NULL
259   ,p_known_as                       IN      VARCHAR2 DEFAULT NULL
260   ,p_marital_status                 IN      VARCHAR2 DEFAULT NULL
261   ,p_middle_names                   IN      VARCHAR2 DEFAULT NULL
262   ,p_nationality                    IN      VARCHAR2 DEFAULT NULL
263   ,p_hkid_number                    IN      VARCHAR2 DEFAULT NULL
264   ,p_previous_last_name             IN      VARCHAR2 DEFAULT NULL
265   ,p_registered_disabled_flag       IN      VARCHAR2 DEFAULT NULL
266   ,p_title                          IN      VARCHAR2 DEFAULT NULL
267   ,p_vendor_id                      IN      NUMBER   DEFAULT NULL
268   ,p_work_telephone                 IN      VARCHAR2 DEFAULT NULL
269   ,p_attribute_category             IN      VARCHAR2 DEFAULT NULL
270   ,p_attribute1                     IN      VARCHAR2 DEFAULT NULL
271   ,p_attribute2                     IN      VARCHAR2 DEFAULT NULL
272   ,p_attribute3                     IN      VARCHAR2 DEFAULT NULL
273   ,p_attribute4                     IN      VARCHAR2 DEFAULT NULL
274   ,p_attribute5                     IN      VARCHAR2 DEFAULT NULL
275   ,p_attribute6                     IN      VARCHAR2 DEFAULT NULL
276   ,p_attribute7                     IN      VARCHAR2 DEFAULT NULL
277   ,p_attribute8                     IN      VARCHAR2 DEFAULT NULL
278   ,p_attribute9                     IN      VARCHAR2 DEFAULT NULL
279   ,p_attribute10                    IN      VARCHAR2 DEFAULT NULL
280   ,p_attribute11                    IN      VARCHAR2 DEFAULT NULL
281   ,p_attribute12                    IN      VARCHAR2 DEFAULT NULL
282   ,p_attribute13                    IN      VARCHAR2 DEFAULT NULL
283   ,p_attribute14                    IN      VARCHAR2 DEFAULT NULL
284   ,p_attribute15                    IN      VARCHAR2 DEFAULT NULL
285   ,p_attribute16                    IN      VARCHAR2 DEFAULT NULL
286   ,p_attribute17                    IN      VARCHAR2 DEFAULT NULL
287   ,p_attribute18                    IN      VARCHAR2 DEFAULT NULL
288   ,p_attribute19                    IN      VARCHAR2 DEFAULT NULL
289   ,p_attribute20                    IN      VARCHAR2 DEFAULT NULL
290   ,p_attribute21                    IN      VARCHAR2 DEFAULT NULL
291   ,p_attribute22                    IN      VARCHAR2 DEFAULT NULL
292   ,p_attribute23                    IN      VARCHAR2 DEFAULT NULL
293   ,p_attribute24                    IN      VARCHAR2 DEFAULT NULL
294   ,p_attribute25                    IN      VARCHAR2 DEFAULT NULL
295   ,p_attribute26                    IN      VARCHAR2 DEFAULT NULL
296   ,p_attribute27                    IN      VARCHAR2 DEFAULT NULL
297   ,p_attribute28                    IN      VARCHAR2 DEFAULT NULL
298   ,p_attribute29                    IN      VARCHAR2 DEFAULT NULL
299   ,p_attribute30                    IN      VARCHAR2 DEFAULT NULL
300   ,p_passport_number                IN      VARCHAR2 DEFAULT NULL
301   ,p_country_of_issue               IN      VARCHAR2 DEFAULT NULL
302   ,p_work_permit_number             IN      VARCHAR2 DEFAULT NULL
303   ,p_work_permit_expiry_date        IN      VARCHAR2 DEFAULT NULL
304   ,p_chinese_name                   IN      VARCHAR2 DEFAULT NULL
305   ,p_hk_full_name                   IN      VARCHAR2
306   ,p_previous_employer_name         IN      VARCHAR2 DEFAULT NULL
307   ,p_previous_employer_address      IN      VARCHAR2 DEFAULT NULL
308   ,p_employee_tax_file_number       IN      VARCHAR2 DEFAULT NULL
309   ,p_date_of_death                  IN      DATE     DEFAULT NULL
310   ,p_background_check_status        IN      VARCHAR2 DEFAULT NULL
314   ,p_fast_path_employee             IN      VARCHAR2 DEFAULT NULL
311   ,p_background_date_check          IN      DATE     DEFAULT NULL
312   ,p_blood_type                     IN      VARCHAR2 DEFAULT NULL
313   ,p_correspondence_language        IN      VARCHAR2 DEFAULT NULL
315   ,p_fte_capacity                   IN      NUMBER   DEFAULT NULL
316   ,p_honors                         IN      VARCHAR2 DEFAULT NULL
317   ,p_internal_location              IN      VARCHAR2 DEFAULT NULL
318   ,p_last_medical_test_by           IN      VARCHAR2 DEFAULT NULL
319   ,p_last_medical_test_date         IN      DATE     DEFAULT NULL
320   ,p_mailstop                       IN      VARCHAR2 DEFAULT NULL
321   ,p_office_number                  IN      VARCHAR2 DEFAULT NULL
322   ,p_on_military_service            IN      VARCHAR2 DEFAULT NULL
323   ,p_pre_name_adjunct               IN      VARCHAR2 DEFAULT NULL
324   ,p_rehire_recommendation          IN      VARCHAR2 DEFAULT NULL
325   ,p_projected_start_date           IN      DATE     DEFAULT NULL
329   ,p_student_status                 IN      VARCHAR2 DEFAULT NULL
326   ,p_resume_exists                  IN      VARCHAR2 DEFAULT NULL
327   ,p_resume_last_updated            IN      DATE     DEFAULT NULL
328   ,p_second_passport_exists         IN      VARCHAR2 DEFAULT NULL
330   ,p_work_schedule                  IN      VARCHAR2 DEFAULT NULL
331   ,p_suffix                         IN      VARCHAR2 DEFAULT NULL
332   ,p_benefit_group_id               IN      NUMBER   DEFAULT NULL
333   ,p_receipt_of_death_cert_date     IN      DATE     DEFAULT NULL
334   ,p_coord_ben_med_pln_no           IN      VARCHAR2 DEFAULT NULL
335   ,p_coord_ben_no_cvg_flag          IN      VARCHAR2 DEFAULT 'N'
336   ,p_coord_ben_med_ext_er           IN      VARCHAR2 DEFAULT NULL
337   ,p_coord_ben_med_pl_name          IN      VARCHAR2 DEFAULT NULL
338   ,p_coord_ben_med_insr_crr_name    IN      VARCHAR2 DEFAULT NULL
339   ,p_coord_ben_med_insr_crr_ident   IN      VARCHAR2 DEFAULT NULL
340   ,p_coord_ben_med_cvg_strt_dt      IN      DATE     DEFAULT NULL
341   ,p_coord_ben_med_cvg_end_dt       IN      DATE     DEFAULT NULL
342   ,p_uses_tobacco_flag              IN      VARCHAR2 DEFAULT NULL
343   ,p_dpdnt_adoption_date            IN      DATE     DEFAULT NULL
344   ,p_dpdnt_vlntry_svce_flag         IN      VARCHAR2 DEFAULT 'N'
345   ,p_original_date_of_hire          IN      DATE     DEFAULT NULL
346   ,p_adjusted_svc_date              IN      DATE     DEFAULT NULL
347   ,p_town_of_birth                  IN      VARCHAR2 DEFAULT NULL
348   ,p_region_of_birth                IN      VARCHAR2 DEFAULT NULL
349   ,p_country_of_birth               IN      VARCHAR2 DEFAULT NULL
350   ,p_global_person_id               IN      VARCHAR2 DEFAULT NULL
351   ,p_party_id                       IN      NUMBER   DEFAULT NULL
352   ,p_person_id                      OUT NOCOPY NUMBER
353   ,p_assignment_id                  OUT NOCOPY NUMBER
354   ,p_per_object_version_number      OUT NOCOPY NUMBER
355   ,p_asg_object_version_number      OUT NOCOPY NUMBER
356   ,p_per_effective_start_date       OUT NOCOPY DATE
357   ,p_per_effective_end_date         OUT NOCOPY DATE
358   ,p_full_name                      OUT NOCOPY VARCHAR2
359   ,p_per_comment_id                 OUT NOCOPY NUMBER
360   ,p_assignment_sequence            OUT NOCOPY NUMBER
361   ,p_assignment_number              OUT NOCOPY VARCHAR2
362   ,p_name_combination_warning       OUT NOCOPY BOOLEAN
363   ,p_assign_payroll_warning         OUT NOCOPY BOOLEAN
364   ,p_orig_hire_warning              OUT NOCOPY BOOLEAN
365   );
366   -- ----------------------------------------------------------------------------
367   -- |-----------------------------< create_employee >--------------------------|
368   -- ----------------------------------------------------------------------------
369   --
370   -- This version of the API is now out-of-date however it has been provided to
371   -- you for backward compatibility support and will be removed in the future.
372   -- Oracle recommends you to modify existing calling programs in advance of the
373   -- support being withdrawn thus avoiding any potential disruption.
374   --
375   PROCEDURE create_hk_employee
376     (p_validate                       IN      BOOLEAN  DEFAULT false
377     ,p_hire_date                      IN      DATE
378     ,p_business_group_id              IN      NUMBER
379     ,p_last_name                      IN      VARCHAR2
380     ,p_sex                            IN      VARCHAR2
381     ,p_person_type_id                 IN      NUMBER   DEFAULT NULL
382     ,p_comments                       IN      VARCHAR2 DEFAULT NULL
383     ,p_date_employee_data_verified    IN      DATE     DEFAULT NULL
384     ,p_date_of_birth                  IN      DATE     DEFAULT NULL
385     ,p_email_address                  IN      VARCHAR2 DEFAULT NULL
386     ,p_employee_number                IN OUT NOCOPY VARCHAR2
387     ,p_expense_check_send_to_addres   IN      VARCHAR2 DEFAULT NULL
388     ,p_first_name                     IN      VARCHAR2 DEFAULT NULL
389     ,p_known_as                       IN      VARCHAR2 DEFAULT NULL
390     ,p_marital_status                 IN      VARCHAR2 DEFAULT NULL
391     ,p_middle_names                   IN      VARCHAR2 DEFAULT NULL
392     ,p_nationality                    IN      VARCHAR2 DEFAULT NULL
393     ,p_hkid_number                    IN      VARCHAR2 DEFAULT NULL
394     ,p_previous_last_name             IN      VARCHAR2 DEFAULT NULL
395     ,p_registered_disabled_flag       IN      VARCHAR2 DEFAULT NULL
396     ,p_title                          IN      VARCHAR2 DEFAULT NULL
397     ,p_vendor_id                      IN      NUMBER   DEFAULT NULL
398     ,p_work_telephone                 IN      VARCHAR2 DEFAULT NULL
399     ,p_attribute_category             IN      VARCHAR2 DEFAULT NULL
400     ,p_attribute1                     IN      VARCHAR2 DEFAULT NULL
401     ,p_attribute2                     IN      VARCHAR2 DEFAULT NULL
402     ,p_attribute3                     IN      VARCHAR2 DEFAULT NULL
403     ,p_attribute4                     IN      VARCHAR2 DEFAULT NULL
404     ,p_attribute5                     IN      VARCHAR2 DEFAULT NULL
405     ,p_attribute6                     IN      VARCHAR2 DEFAULT NULL
406     ,p_attribute7                     IN      VARCHAR2 DEFAULT NULL
407     ,p_attribute8                     IN      VARCHAR2 DEFAULT NULL
408     ,p_attribute9                     IN      VARCHAR2 DEFAULT NULL
412     ,p_attribute13                    IN      VARCHAR2 DEFAULT NULL
409     ,p_attribute10                    IN      VARCHAR2 DEFAULT NULL
410     ,p_attribute11                    IN      VARCHAR2 DEFAULT NULL
411     ,p_attribute12                    IN      VARCHAR2 DEFAULT NULL
413     ,p_attribute14                    IN      VARCHAR2 DEFAULT NULL
414     ,p_attribute15                    IN      VARCHAR2 DEFAULT NULL
415     ,p_attribute16                    IN      VARCHAR2 DEFAULT NULL
416     ,p_attribute17                    IN      VARCHAR2 DEFAULT NULL
417     ,p_attribute18                    IN      VARCHAR2 DEFAULT NULL
418     ,p_attribute19                    IN      VARCHAR2 DEFAULT NULL
419     ,p_attribute20                    IN      VARCHAR2 DEFAULT NULL
420     ,p_attribute21                    IN      VARCHAR2 DEFAULT NULL
421     ,p_attribute22                    IN      VARCHAR2 DEFAULT NULL
422     ,p_attribute23                    IN      VARCHAR2 DEFAULT NULL
423     ,p_attribute24                    IN      VARCHAR2 DEFAULT NULL
424     ,p_attribute25                    IN      VARCHAR2 DEFAULT NULL
425     ,p_attribute26                    IN      VARCHAR2 DEFAULT NULL
429     ,p_attribute30                    IN      VARCHAR2 DEFAULT NULL
426     ,p_attribute27                    IN      VARCHAR2 DEFAULT NULL
427     ,p_attribute28                    IN      VARCHAR2 DEFAULT NULL
428     ,p_attribute29                    IN      VARCHAR2 DEFAULT NULL
430     ,p_passport_number                IN      VARCHAR2 DEFAULT NULL
431     ,p_country_of_issue               IN      VARCHAR2 DEFAULT NULL
432     ,p_work_permit_number             IN      VARCHAR2 DEFAULT NULL
433     ,p_work_permit_expiry_date        IN      VARCHAR2 DEFAULT NULL
434     ,p_chinese_name                   IN      VARCHAR2 DEFAULT NULL
435     ,p_hk_full_name                   IN      VARCHAR2
436     ,p_previous_employer_name         IN      VARCHAR2 DEFAULT NULL
437     ,p_previous_employer_address      IN      VARCHAR2 DEFAULT NULL
438     ,p_employee_tax_file_number       IN      VARCHAR2 DEFAULT NULL
439     ,p_date_of_death                  IN      DATE     DEFAULT NULL
440     ,p_background_check_status        IN      VARCHAR2 DEFAULT NULL
441     ,p_background_date_check          IN      DATE     DEFAULT NULL
442     ,p_blood_type                     IN      VARCHAR2 DEFAULT NULL
443     ,p_correspondence_language        IN      VARCHAR2 DEFAULT NULL
444     ,p_fast_path_employee             IN      VARCHAR2 DEFAULT NULL
445     ,p_fte_capacity                   IN      NUMBER   DEFAULT NULL
446     ,p_honors                         IN      VARCHAR2 DEFAULT NULL
447     ,p_internal_location              IN      VARCHAR2 DEFAULT NULL
448     ,p_last_medical_test_by           IN      VARCHAR2 DEFAULT NULL
449     ,p_last_medical_test_date         IN      DATE     DEFAULT NULL
450     ,p_mailstop                       IN      VARCHAR2 DEFAULT NULL
451     ,p_office_number                  IN      VARCHAR2 DEFAULT NULL
452     ,p_on_military_service            IN      VARCHAR2 DEFAULT NULL
453     ,p_pre_name_adjunct               IN      VARCHAR2 DEFAULT NULL
454     ,p_rehire_recommendation          IN      VARCHAR2 DEFAULT NULL
455     ,p_projected_start_date           IN      DATE     DEFAULT NULL
456     ,p_resume_exists                  IN      VARCHAR2 DEFAULT NULL
457     ,p_resume_last_updated            IN      DATE     DEFAULT NULL
458     ,p_second_passport_exists         IN      VARCHAR2 DEFAULT NULL
459     ,p_student_status                 IN      VARCHAR2 DEFAULT NULL
460     ,p_work_schedule                  IN      VARCHAR2 DEFAULT NULL
461     ,p_suffix                         IN      VARCHAR2 DEFAULT NULL
462     ,p_benefit_group_id               IN      NUMBER   DEFAULT NULL
463     ,p_receipt_of_death_cert_date     IN      DATE     DEFAULT NULL
464     ,p_coord_ben_med_pln_no           IN      VARCHAR2 DEFAULT NULL
465     ,p_coord_ben_no_cvg_flag          IN      VARCHAR2 DEFAULT 'N'
466     ,p_coord_ben_med_ext_er           IN      VARCHAR2 DEFAULT NULL
467     ,p_coord_ben_med_pl_name          IN      VARCHAR2 DEFAULT NULL
471     ,p_coord_ben_med_cvg_end_dt       IN      DATE     DEFAULT NULL
468     ,p_coord_ben_med_insr_crr_name    IN      VARCHAR2 DEFAULT NULL
469     ,p_coord_ben_med_insr_crr_ident   IN      VARCHAR2 DEFAULT NULL
470     ,p_coord_ben_med_cvg_strt_dt      IN      DATE     DEFAULT NULL
472     ,p_uses_tobacco_flag              IN      VARCHAR2 DEFAULT NULL
473     ,p_dpdnt_adoption_date            IN      DATE     DEFAULT NULL
474     ,p_dpdnt_vlntry_svce_flag         IN      VARCHAR2 DEFAULT 'N'
475     ,p_original_date_of_hire          IN      DATE     DEFAULT NULL
476     ,p_adjusted_svc_date              IN      DATE     DEFAULT NULL
477     ,p_town_of_birth                  IN      VARCHAR2 DEFAULT NULL
478     ,p_region_of_birth                IN      VARCHAR2 DEFAULT NULL
479     ,p_country_of_birth               IN      VARCHAR2 DEFAULT NULL
480     ,p_global_person_id               IN      VARCHAR2 DEFAULT NULL
481     ,p_party_id                       IN      NUMBER   DEFAULT NULL
482     ,p_person_id                      OUT NOCOPY NUMBER
483     ,p_assignment_id                  OUT NOCOPY NUMBER
484     ,p_per_object_version_number      OUT NOCOPY NUMBER
485     ,p_asg_object_version_number      OUT NOCOPY NUMBER
486     ,p_per_effective_start_date       OUT NOCOPY DATE
487     ,p_per_effective_end_date         OUT NOCOPY DATE
488     ,p_full_name                      OUT NOCOPY VARCHAR2
489     ,p_per_comment_id                 OUT NOCOPY NUMBER
490     ,p_assignment_sequence            OUT NOCOPY NUMBER
491     ,p_assignment_number              OUT NOCOPY VARCHAR2
492     ,p_name_combination_warning       OUT NOCOPY BOOLEAN
493     ,p_assign_payroll_warning         OUT NOCOPY BOOLEAN
494     );
495     --
496 END hr_hk_employee_api;