ABCDEFGHIJKLMNOPQRSTUVWXYZ
1
Lighting Step EMR
2
contacts table fields
3
4
FieldTypeAPI UsageNotes
5
ididSet by system
6
datedocdateSet to Current Date
7
fnamevarchar(50)Required if orgname not set, must be at least 2 charactersThis is the name of the referral source. Set to cmperson fname if valid rsperson_id is sent
8
lnamevarchar(50)Required if orgname not set, must be at least 2 charactersThis is the name of the referral source. Set to cmperson fname if valid rsperson_id is sent
9
org_idint(11)OptionalThis is an id from the cmorgs table. Sets other values if sent
10
rsperson_idint(11)OptionalThis is an id from the cmpersons table. Sets other values if sent
11
fullnamevarchar(100)Set to fname lname via API
12
orgnamevarchar(150)OptionalThis is the organization name of the referral source. Set to cmorg orgname if cmorg_id is sent
13
clientfnamevarchar(50)Set to inquiry fname via API
14
clientlnamevarchar(50)Set to inquiry lname via API
15
client_idint(11)Set to inquiry client_id via API
16
episode_idint(11)Set to inquiry episode_id via API
17
inquiry_idint(11)Required
18
location_idint(11)Set to inquiry location_id via API
19
staff_idint(11)OptionalSet by API user if not sent
20
sfnamevarchar(50)Set by staff_idSet by API user if not sent
21
slnamevarchar(50)Set by staff_idSet by API user if not sent
22
addressvarchar(150)OptionalSet by rsperson or org_id if one of those is sent
23
cityvarchar(50)OptionalSet by rsperson or org_id if one of those is sent
24
usstatevarchar(10)OptionalSet by rsperson or org_id if one of those is sent
25
zipvarchar(15)OptionalSet by rsperson or org_id if one of those is sent
26
emailvarchar(100)OptionalSet by rsperson or org_id if one of those is sent
27
hphonevarchar(15)OptionalSet by rsperson or org_id if one of those is sent
28
dphonevarchar(15)OptionalSet by rsperson or org_id if one of those is sent
29
ophonevarchar(15)OptionalSet by rsperson or org_id if one of those is sent
30
wphonevarchar(15)OptionalSet by rsperson or org_id if one of those is sent
31
cphonevarchar(15)OptionalSet by rsperson or org_id if one of those is sent
32
faxvarchar(15)OptionalSet by rsperson or org_id if one of those is sent
33
mrnvarchar(25)Set to inquiry mrn via API
34
reltoclientvarchar(100)Optional
35
reltoclientothervarchar(50)Optional
36
isrefsrctinyint(1)Optional, set to 1 if isprimarysrefsrc = 1If set to 1, the system creates cmperson, cmorg, cmpersonorg and referralhx records
37
isprimaryrefsrctinyint(1)OptionalIf set to 1, the system creates cmperson, cmorg, cmpersonorg and referralhx records
38
isroisignedtinyint(1)Set to 0 by API
39
isemergencycontacttinyint(1)Optionalisemergencycontact is set to 1 if ispg is set to 1
40
maycontactrefsrctinyint(1)Optional
41
notetextOptional
42
eietinyint(1)Set to 0 via API
43
dsstinyint(1)Set to 0 via API
44
created_attimestampSet to timestamp via API
45
updated_attimestampSet to timestamp via API
46
ismigratedtinyint(1)Set to 0 via API
47
maycalltinyint(1)Optional
48
mayvisittinyint(1)Optional
49
thclient_idint(11)Set to inquiry thclient_id via API
50
dateeiedateNot Considered via API
51
eieby_idint(11)Not Considered via API
52
otpa_idint(11)Set to 0 via API
53
Contact__cvarchar(50)Optional
54
fupclient_idint(11)Set to 0 via API
55
casemgmt_idint(11)Set to 0 via API
56
isconsentertinyint(1)Not Considered via API
57
ispgtinyint(1)Optionalisemergencycontact is set to 1 if ispg is set to 1
58
luby_idint(11)Set to staff_id via API
59
resident_idint(11)Set to 0 via API
60
isaddtocatalogtinyint(1)Set to 0 via API
61
client__cvarchar(50)Optional
62
sf_idvarchar(50)Optional
63
AccountIdvarchar(50)Optional
64
bps_idint(11)Set to 0 via API
65
address2varchar(150)Optional
66
existing_orgtinyint(4)Set to 1 if org_id is sent, 0 if not
67
isactivetinyint(1)Set to 1 via API
68
69
Additional optional fields
70
These fields are not used on the Contact record, but will be used on the cmperson record if a cmperson record is created
71
rsrolevarchar(50)OptionalUsed for cmperson only
72
rsgendervarchar(50)OptionalUsed for cmperson only
73
rstitlevarchar(100)OptionalUsed for cmperson only
74
rscategoryvarchar(100)OptionalUsed for cmperson only
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100