INJ_ILL_ADDR_VW(SQL View) |
Index Back |
---|---|
Inj/Ill PhysiciansINJ_ILL_DIAG_VW is a view of INJURY_ILL_DIAG that sorts medical diagnosis records by incident number rather than by employee ID or non-employee ID. This functionality is part of the Health and Safety module. |
SELECT INCIDENT_NBR ,EMPLID ,EMPL_RCD ,NON_EMPLOYEE_ID ,CARE_TYPE ,PHYSICIAN_ID ,PHYSICIAN_NAME ,MEDICAL_FAC_CD ,HOSPITAL ,COUNTRY ,ADDRESS1 ,ADDRESS2 ,ADDRESS3 ,ADDRESS4 ,CITY ,NUM1 ,NUM2 ,HOUSE_TYPE ,ADDR_FIELD1 ,ADDR_FIELD2 ,ADDR_FIELD3 ,COUNTY ,STATE ,POSTAL ,GEO_CODE ,IN_CITY_LIMIT ,COUNTRY_CODE ,PHONE FROM PS_INJURY_ILL_ADDR |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | INCIDENT_NBR | Character(8) | VARCHAR2(8) NOT NULL |
Incident Number
Prompt Table: INCIDENT_DATA |
2 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL |
Employee ID
Prompt Table: PERSON |
3 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL |
Empl Record
Prompt Table: PER_ORG_ASGN_VW |
4 | NON_EMPLOYEE_ID | Character(11) | VARCHAR2(11) NOT NULL |
Non-Employee ID
Prompt Table: NE_INCIDNT_SRCH |
5 | CARE_TYPE | Character(1) | VARCHAR2(1) NOT NULL |
Type of Health Care
A=1st Treatment (Physician) B=Company Physician E=Emergency Care H=Family Physician K=Hospital L=Further Treatment (Hospital) O=Ongoing Health Care S=Specialist W=Further Treatment (Physician) |
6 | PHYSICIAN_ID | Character(11) | VARCHAR2(11) NOT NULL |
Physician ID
Prompt Table: PHYSICIAN_SRCH |
7 | PHYSICIAN_NAME | Character(50) | VARCHAR2(50) NOT NULL | Physician Name |
8 | MEDICAL_FAC_CD | Character(4) | VARCHAR2(4) NOT NULL |
Medical Facility
Prompt Table: MEDICAL_FAC_TBL |
9 | HOSPITAL | Character(30) | VARCHAR2(30) NOT NULL | Hospital Name |
10 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL |
Country
Prompt Table: COUNTRY_TBL |
11 | ADDRESS1 | Character(55) | VARCHAR2(55) NOT NULL | Address 1 |
12 | ADDRESS2 | Character(55) | VARCHAR2(55) NOT NULL | Address 2 |
13 | ADDRESS3 | Character(55) | VARCHAR2(55) NOT NULL | Address 3 |
14 | ADDRESS4 | Character(55) | VARCHAR2(55) NOT NULL | Address 4 |
15 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
16 | NUM1 | Character(6) | VARCHAR2(6) NOT NULL | Number 1 |
17 | NUM2 | Character(6) | VARCHAR2(6) NOT NULL | Number 2 |
18 | HOUSE_TYPE | Character(2) | VARCHAR2(2) NOT NULL |
House Type
AB=House Boat Reference WW=House Trailer Reference |
19 | ADDR_FIELD1 | Character(2) | VARCHAR2(2) NOT NULL | Address Field 1 |
20 | ADDR_FIELD2 | Character(4) | VARCHAR2(4) NOT NULL | Address Field 2 |
21 | ADDR_FIELD3 | Character(4) | VARCHAR2(4) NOT NULL | Address Field 3 |
22 | COUNTY | Character(30) | VARCHAR2(30) NOT NULL | County |
23 | STATE | Character(6) | VARCHAR2(6) NOT NULL |
State
Prompt Table: STATE_TBL |
24 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
25 | GEO_CODE | Character(11) | VARCHAR2(11) NOT NULL | Geo Code |
26 | IN_CITY_LIMIT | Character(1) | VARCHAR2(1) NOT NULL |
In City Limit
Y/N Table Edit |
27 | COUNTRY_CODE | Character(3) | VARCHAR2(3) NOT NULL | Country Code |
28 | PHONE | Character(24) | VARCHAR2(24) NOT NULL | Telephone |