SQL-050 Update an injured body-part record
Updates the body-part code, side, primary flag, and injury nature on a worker's injured body-part row.
Classification
| Field |
Value |
| SQL ID |
SQL-050 |
| Operation type |
Update |
| Execution method |
Inline SQL |
| Database |
Oracle |
| Schema |
[unqualified]** |
| Command type |
Text |
| Business object |
clsWorkerInjuredBodyPart |
| Criteria property |
UpdateSQL |
| Lifecycle method |
BeforeUpdate |
Parameters
| Parameter |
Direction |
Type |
Max length |
Description |
BodyPartCode |
Input |
String |
5 |
Injured body part code |
BodyPartSideCode |
Input |
String |
5 |
Side/laterality code |
PrimaryIndicator |
Input |
String |
1 |
Primary body part flag |
InjuryNatureCode |
Input |
String |
5 |
Nature of injury code |
UpdateUser |
Input |
String |
30 |
Auditing user |
ClaimID |
Input |
Decimal |
— |
Row key |
UpdateNum |
Input |
Decimal |
— |
Optimistic-concurrency check value |
Tables
| Table |
Access |
Columns used |
| CL_WORKER_INJURED_BODY_PART |
UPDATE |
BODY_PART_CODE, BODY_PART_SIDE_CODE, PRIMARY_BODY_PART_IND, INJURY_NATURE_CODE, UPDATE_NUM, UPDATE_USER_ID, UPDATE_DATE, CLAIM_ID |
Sample SQL
-- Update injured body-part record
Update CL_WORKER_INJURED_BODY_PART
Set BODY_PART_CODE = :BodyPartCode,
BODY_PART_SIDE_CODE = :BodyPartSideCode,
PRIMARY_BODY_PART_IND = :PrimaryIndicator,
INJURY_NATURE_CODE = :InjuryNatureCode,
UPDATE_NUM = UPDATE_NUM + 1,
UPDATE_USER_ID = :UpdateUser,
UPDATE_DATE = SYSDATE
Where CLAIM_ID = :ClaimID
And UPDATE_NUM = :UpdateNum
Operations and processes
Business rules
Sources
- SAIF.Business.Claim/clsWorkerInjuredBodyPart.vb