| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Lighting Step EMR | |||||||||||||||||||||||||
2 | contacts table fields | |||||||||||||||||||||||||
3 | ||||||||||||||||||||||||||
4 | Field | Type | API Usage | Notes | ||||||||||||||||||||||
5 | id | id | Set by system | |||||||||||||||||||||||
6 | datedoc | date | Set to Current Date | |||||||||||||||||||||||
7 | fname | varchar(50) | Required if orgname not set, must be at least 2 characters | This is the name of the referral source. Set to cmperson fname if valid rsperson_id is sent | ||||||||||||||||||||||
8 | lname | varchar(50) | Required if orgname not set, must be at least 2 characters | This is the name of the referral source. Set to cmperson fname if valid rsperson_id is sent | ||||||||||||||||||||||
9 | org_id | int(11) | Optional | This is an id from the cmorgs table. Sets other values if sent | ||||||||||||||||||||||
10 | rsperson_id | int(11) | Optional | This is an id from the cmpersons table. Sets other values if sent | ||||||||||||||||||||||
11 | fullname | varchar(100) | Set to fname lname via API | |||||||||||||||||||||||
12 | orgname | varchar(150) | Optional | This is the organization name of the referral source. Set to cmorg orgname if cmorg_id is sent | ||||||||||||||||||||||
13 | clientfname | varchar(50) | Set to inquiry fname via API | |||||||||||||||||||||||
14 | clientlname | varchar(50) | Set to inquiry lname via API | |||||||||||||||||||||||
15 | client_id | int(11) | Set to inquiry client_id via API | |||||||||||||||||||||||
16 | episode_id | int(11) | Set to inquiry episode_id via API | |||||||||||||||||||||||
17 | inquiry_id | int(11) | Required | |||||||||||||||||||||||
18 | location_id | int(11) | Set to inquiry location_id via API | |||||||||||||||||||||||
19 | staff_id | int(11) | Optional | Set by API user if not sent | ||||||||||||||||||||||
20 | sfname | varchar(50) | Set by staff_id | Set by API user if not sent | ||||||||||||||||||||||
21 | slname | varchar(50) | Set by staff_id | Set by API user if not sent | ||||||||||||||||||||||
22 | address | varchar(150) | Optional | Set by rsperson or org_id if one of those is sent | ||||||||||||||||||||||
23 | city | varchar(50) | Optional | Set by rsperson or org_id if one of those is sent | ||||||||||||||||||||||
24 | usstate | varchar(10) | Optional | Set by rsperson or org_id if one of those is sent | ||||||||||||||||||||||
25 | zip | varchar(15) | Optional | Set by rsperson or org_id if one of those is sent | ||||||||||||||||||||||
26 | varchar(100) | Optional | Set by rsperson or org_id if one of those is sent | |||||||||||||||||||||||
27 | hphone | varchar(15) | Optional | Set by rsperson or org_id if one of those is sent | ||||||||||||||||||||||
28 | dphone | varchar(15) | Optional | Set by rsperson or org_id if one of those is sent | ||||||||||||||||||||||
29 | ophone | varchar(15) | Optional | Set by rsperson or org_id if one of those is sent | ||||||||||||||||||||||
30 | wphone | varchar(15) | Optional | Set by rsperson or org_id if one of those is sent | ||||||||||||||||||||||
31 | cphone | varchar(15) | Optional | Set by rsperson or org_id if one of those is sent | ||||||||||||||||||||||
32 | fax | varchar(15) | Optional | Set by rsperson or org_id if one of those is sent | ||||||||||||||||||||||
33 | mrn | varchar(25) | Set to inquiry mrn via API | |||||||||||||||||||||||
34 | reltoclient | varchar(100) | Optional | |||||||||||||||||||||||
35 | reltoclientother | varchar(50) | Optional | |||||||||||||||||||||||
36 | isrefsrc | tinyint(1) | Optional, set to 1 if isprimarysrefsrc = 1 | If set to 1, the system creates cmperson, cmorg, cmpersonorg and referralhx records | ||||||||||||||||||||||
37 | isprimaryrefsrc | tinyint(1) | Optional | If set to 1, the system creates cmperson, cmorg, cmpersonorg and referralhx records | ||||||||||||||||||||||
38 | isroisigned | tinyint(1) | Set to 0 by API | |||||||||||||||||||||||
39 | isemergencycontact | tinyint(1) | Optional | isemergencycontact is set to 1 if ispg is set to 1 | ||||||||||||||||||||||
40 | maycontactrefsrc | tinyint(1) | Optional | |||||||||||||||||||||||
41 | note | text | Optional | |||||||||||||||||||||||
42 | eie | tinyint(1) | Set to 0 via API | |||||||||||||||||||||||
43 | dss | tinyint(1) | Set to 0 via API | |||||||||||||||||||||||
44 | created_at | timestamp | Set to timestamp via API | |||||||||||||||||||||||
45 | updated_at | timestamp | Set to timestamp via API | |||||||||||||||||||||||
46 | ismigrated | tinyint(1) | Set to 0 via API | |||||||||||||||||||||||
47 | maycall | tinyint(1) | Optional | |||||||||||||||||||||||
48 | mayvisit | tinyint(1) | Optional | |||||||||||||||||||||||
49 | thclient_id | int(11) | Set to inquiry thclient_id via API | |||||||||||||||||||||||
50 | dateeie | date | Not Considered via API | |||||||||||||||||||||||
51 | eieby_id | int(11) | Not Considered via API | |||||||||||||||||||||||
52 | otpa_id | int(11) | Set to 0 via API | |||||||||||||||||||||||
53 | Contact__c | varchar(50) | Optional | |||||||||||||||||||||||
54 | fupclient_id | int(11) | Set to 0 via API | |||||||||||||||||||||||
55 | casemgmt_id | int(11) | Set to 0 via API | |||||||||||||||||||||||
56 | isconsenter | tinyint(1) | Not Considered via API | |||||||||||||||||||||||
57 | ispg | tinyint(1) | Optional | isemergencycontact is set to 1 if ispg is set to 1 | ||||||||||||||||||||||
58 | luby_id | int(11) | Set to staff_id via API | |||||||||||||||||||||||
59 | resident_id | int(11) | Set to 0 via API | |||||||||||||||||||||||
60 | isaddtocatalog | tinyint(1) | Set to 0 via API | |||||||||||||||||||||||
61 | client__c | varchar(50) | Optional | |||||||||||||||||||||||
62 | sf_id | varchar(50) | Optional | |||||||||||||||||||||||
63 | AccountId | varchar(50) | Optional | |||||||||||||||||||||||
64 | bps_id | int(11) | Set to 0 via API | |||||||||||||||||||||||
65 | address2 | varchar(150) | Optional | |||||||||||||||||||||||
66 | existing_org | tinyint(4) | Set to 1 if org_id is sent, 0 if not | |||||||||||||||||||||||
67 | isactive | tinyint(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 | rsrole | varchar(50) | Optional | Used for cmperson only | ||||||||||||||||||||||
72 | rsgender | varchar(50) | Optional | Used for cmperson only | ||||||||||||||||||||||
73 | rstitle | varchar(100) | Optional | Used for cmperson only | ||||||||||||||||||||||
74 | rscategory | varchar(100) | Optional | Used 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 |