fct_chsp_service_visits


Description

From 1 July 2025, changes were made to way CHSP services were described, regulated, and delivered. As part of these changes, the current CHSP services were mapped to new service IDs. Here is a list of the new service IDs: https://github.com/thelookoutway/lookout/blob/main/db/static/chsp_service_types.csv.

While some of the old service IDs were automatically mapped to new service IDs, some were not. E.g. 58 is the old nursing service ID which can’t be mapped automatically, so any CHSP products with an external_id of 58 are no good for claims and require manual mapping to a new service ID. This model records all CHSP visits, memberships for CHSP services post 1st July 2025, including the date and time of the visit, the service provided, the associated membership, and whether the service is mapped to the new service codes. Using this model, you can: - Track all CHSP visits and services provided after the 1st July 2025. - Identify which visits are mapped to the new service codes or may require manual mapping. - Monitor the status of visits. Note: The CHSP services are linked to the products offered by the provider, the product itself may not directly indicate the service provided. The support category column in dim_products is an indicator of the CHSP service linked to the product.

Columns

Column Type Children Parents Comments
company_id int8

The company ID. E.g. 456.

membership_id int4

The ID of the membership associated with this visit. E.g. 12345.

visit_id int8

The unique identifier for the visit. E.g. 40558182.

community_names text

The names of the communities associated with this visit. E.g. “Anita,Clients,Wellbeing Team”.

chsp_outlet_name varchar

The name of the CHSP outlet where the service was provided. E.g. “Community Health Centre”.

chsp_service_type_id text

The ID of the CHSP service provided during this visit. E.g. 84.

chsp_service_type_name text

The name of the CHSP service provided during this visit. E.g. “Assistance with Daily Living”.

visit_state varchar

The current state of the visit. E.g. “completed”. “scheduled”.

visit_link text

A link to the visit details, e.g. https:///admin/memberships/47046/week?visit_id=40558182

is_service_mapped_to_new_codes bool
visit_start_time_in_company_tz timestamp

The date and time of the visit (in the company’s local timezone). E.g. 2021-03-02 10:00:00.

Indexes

Constraint Name Type Sort Column(s)
fct_chsp_service_visits_pkey Primary key Asc visit_id
fct_chsp_service_visits_chsp_service_type_id_idx Performance Asc chsp_service_type_id
fct_chsp_service_visits_community_names_idx Performance Asc community_names
fct_chsp_service_visits_company_id_idx Performance Asc company_id

Relationships