Columns
Column | Type | Children | Parents | Comments | |||
---|---|---|---|---|---|---|---|
visit_id | int8 |
|
|
The ID of the visit, e.g. 185039. |
|||
visit_link | text |
|
|
The link to the visit within Lookout. |
|||
state | varchar |
|
|
The state of the visit. One of |
|||
member_id | int4 |
|
|
The ID of the associated member of this visit, e.g. 819. |
|||
member_profile_id | int4 |
|
|
The profile ID of the associated member, e.g. 1203. |
|||
membership_id | int4 |
|
|
The ID of the associated membership of this visit, e.g. 1402. |
|||
community_id | int8 |
|
|
The unique community ID in which the visit took place, e.g. 84. DEPRECATED, join to dim_memberships and access the community_names field. |
|||
community_name | text |
|
|
The name of the community in which the visit took place, e.g. |
|||
helper_id | int4 |
|
|
The ID of the associated helper of this visit, e.g. 1704. |
|||
helper_profile_id | int4 |
|
|
The profile ID of the associated helper of this visit, e.g. 2200. |
|||
helper_engagement_type | varchar |
|
|
The engagement type of the helper. One of |
|||
services | text |
|
|
Services are the tasks or activities being provided by the helper for the visit. Usually linked to the product/rate being charged for flexibility, but doesn’t have to be. As there are many services associated with a visit, this is a comma separated list. E.g. |
|||
beginning_at | timestamp |
|
|
The date and time the visit starts (in UTC), e.g. 2021-03-02 12:00:00. |
|||
ending_at | timestamp |
|
|
The date and time the visit ends at (in UTC), e.g. 2021-03-02 12:00:00. |
|||
beginning_at_mbrs_tz | timestamp |
|
|
The date and time the visit starts at in the member`s timezone, e.g. 2021-03-02 12:00:00. |
|||
ending_at_mbrs_tz | timestamp |
|
|
The date and time the visit ends at in the member`s timezone, e.g. 2021-03-02 12:00:00. |
|||
beginning_at_in_company_tz | timestamp |
|
|
The date and time the visit starts in the company timezone, e.g. 2021-03-02 12:00:00. |
|||
ending_at_in_company_tz | timestamp |
|
|
The date and time the visit ends in the company timezone, e.g. 2021-03-02 12:00:00. |
|||
checked_in_at | timestamp |
|
|
The date and time (in UTC) when the helper checked in for the visit, e.g. 2021-03-02 12:00:00. |
|||
checked_out_at | timestamp |
|
|
The date and time (in UTC) when the helper checked out for the visit, e.g. 2021-03-02 12:00:00. |
|||
members_timezone | text |
|
|
The timezone of the member where the visit took place. E.g. |
|||
checked_in_at_mbrs_tz | timestamp |
|
|
The date and time in the member`s time zone when the helper checked in for the visit, e.g. 2021-03-02 12:00:00. |
|||
checked_out_at_mbrs_tz | timestamp |
|
|
The date and time in the member`s time zone when the helper checked out for the visit, e.g. 2021-03-02 12:00:00. |
|||
company_timezone | varchar |
|
|
The company timezone. E.g. |
|||
checked_in_at_in_company_tz | timestamp |
|
|
The date and time in the company time zone when the helper checked in for the visit, e.g. 2021-03-02 12:00:00. |
|||
checked_out_at_in_company_tz | timestamp |
|
|
The date and time in the company time zone when the helper checked out for the visit, e.g. 2021-03-02 12:00:00. |
|||
rating | int4 |
|
|
The rating given by the helper to the visit. One a scale of 0-5, e.g. 4. |
|||
canceled_at | timestamp |
|
|
The datetime (in UTC) when the visit was canceled, if applicable. E.g. 2021-03-02 12:00:00. |
|||
canceled_reason | varchar |
|
|
The reason for canceling the visit, if applicable. E.g. |
|||
created_at | timestamp |
|
|
The date and time when the visit was created (in UTC). E.g. 2021-03-02 12:00:00. |
|||
updated_at | timestamp |
|
|
The date and time when the visit was last updated (in UTC). E.g. 2021-03-02 12:00:00. |
|||
product_id | int4 |
|
|
The ID of the associated product. Services are what helpers offer to memberships on a visit, and products are assigned to these services. This is what determines the cost to the membership. Can be linked to codes for finance and claiming. Join these to product models to understand billing. E.g. 120. |
|||
previous_hcp_product_id | int8 |
|
|
The original hcp product id after the SAH mapping. This value only exists if the mapping has been completed, and is then the valid product_id on the visit before July 1st 2025. After this date the product_id is valid. E.g. 165.’ |
|||
product | text |
|
|
The name of the associated product. Products are usually linked to the service, but for flexibility, don’t have to be. They can be linked to codes for finance and claiming. Use this to understand billing. E.g. |
|||
product_funding_scheme_type | varchar |
|
|
||||
product_quantity_type | varchar |
|
|
The quantity type of the associated product. This indicates how the product is charged. One of |
|||
contract_id | int8 |
|
|
The ID of the associated contract between the helper and the membership, e.g. 1593. |
|||
contract_product_price | numeric |
|
|
The price of the associated product in the contract between the helper and the membership for this visit, e.g. 52.80. |
|||
contract_product_tenant_percent | numeric |
|
|
The company percentage of the associated product in the contract, e.g. 0.2. |
|||
contract_product_id | int8 |
|
|
The ID of the specific contract and product between the helper and the member, e.g. 40928. |
|||
schedule_rule_id | int4 |
|
|
The ID associated with a schedule rule. These are rules that surround recurring visits. E.g. 273. |
|||
provider_travel_distance | int4 |
|
|
The distance it takes a helper to get to a visit, in kilometres. E.g. 8. |
|||
provider_travel_rate_id | text |
|
|
The ID for the rate of the provider travel by the helper to a visit. This rate is agreed on at an organisational or individual level. Charged to either the provider or the funder. |
|||
client_transport_rate_id | int8 |
|
|
The ID for the rate of client transport. This rate is charged to clients/funders when visits have travel services. E.g. 98. |
|||
client_transport_distance | int4 |
|
|
The distance in kilometres of client transport. E.g. 98. |
|||
client_transport_note | text |
|
|
The note associated with the client transport. E.g. |
|||
provider_travel_distance_rate_id | int8 |
|
|
The rate ID associated with the distance taken by the helper to the visit. E.g. 492. |
|||
provider_travel_time_rate_id | int8 |
|
|
The rate ID associated with the time taken by the helper to the visit. E.g. 790. |
|||
provider_travel_time_rate_matches_time_rate | bool |
|
|
If the provider time rate matches matches the visit time rate. True or False. |
|||
provider_travel_calculated_distance | int4 |
|
|
This is the lookout calculated distance, done at visit checkout, for a helper to get to the visit in kilometres, e.g. 15. |
|||
provider_travel_projected_distance | int4 |
|
|
This is the prefilled lookout calculated distance for a helper to get to the visit in kilometers, e.g. 42. |
|||
shift_break | text |
|
|
Whether the helper has a break during this visit. True or False. |
|||
company_id | int8 |
|
|
The company ID, e.g.: 345. |
|||
expected_cost_to_member | numeric |
|
|
This is an ESTIMATE only. It is the initial expected cost to the member. The derivation is as follows: for complete visits, if |
|||
predicted_cost_to_member | numeric |
|
|
||||
expected_revenue | numeric |
|
|
This is an ESTIMATE only. It is the initial expected revenue to the company. The derivation is as followins: Contracted |
|||
predicted_revenue | numeric |
|
|
||||
planned_length_hours | numeric |
|
|
The planned length of the visit in hours. This is given by |
|||
planned_length_minutes | numeric |
|
|
The planned length of the visit in minutes. This is given by |
|||
actual_length_hours | numeric |
|
|
The actual length of the visit in hours. This is given by the helper checkout times: |
|||
actual_length_minutes | numeric |
|
|
The actual length of the visit in minutes. This is given by the helper checkout times: |
|||
provider_travel_time_minutes | numeric |
|
|
The time it takes a helper to get to a visit, in minutes, e.g. 17. |
|||
provider_travel_calculated_time_minutes | numeric |
|
|
This is the lookout calculated time, done at visit checkout, for a helper to get to the visit in minutes, e.g. 23. |
|||
provider_travel_rostered_time_minutes | numeric |
|
|
DEPRECATED in favour of |
|||
provider_travel_projected_time_minutes | numeric |
|
|
This is the prefilled lookout calculated time for a helper to get to the visit in minutes, e.g. 23. |
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
fct_visits_pkey | Primary key | Asc | visit_id |
fct_visits_beginning_at_mbrs_tz_idx | Performance | Asc | beginning_at_mbrs_tz |
fct_visits_company_id_idx | Performance | Asc | company_id |
fct_visits_helper_id_idx | Performance | Asc | helper_id |
fct_visits_member_id_idx | Performance | Asc | member_id |
fct_visits_membership_id_idx | Performance | Asc | membership_id |
fct_visits_schedule_rule_id_idx | Performance | Asc | schedule_rule_id |
fct_visits_state_idx | Performance | Asc | state |