Definition
Overview
Section titled “Overview”mart_cps contains clinical pharmacy service (CPS) claims for MAS and the Universal Claims Framework (UCF). Each record combines claim details with patient and pharmacy context, and includes the applicable service, consultation, status, and request information.
Key Data Fields
Section titled “Key Data Fields”| Field | Description |
|---|---|
| claim_id | Unique claim identifier generated from the claim type and source claim request id. |
| claim_type | Claim type, either MAS or UCF (Universal Claims Framework). |
| mas_reference_id | Primary key of the MAS claim request. |
| mas_consultation_type | Consultation type description for the MAS claim. |
| ucf_reference_id | Primary key of the UCF claim request. |
| ucf_service_name | Service name associated with the UCF claim. |
| ucf_derived_consultation_type | Consultation type from the UCF claim request when present; otherwise derived from linked prescription items. |
Source
Section titled “Source”The source tables are ProScript Connect setp_masclaimrequest and
setp_ucfclaimrequest, with their corresponding claim-request detail tables.
The lineage is proscript_connect source tables -> stg_setp_mas_claim_request
/ stg_setp_ucf_claim_request and related staging lookups -> cps ->
mart_cps. The control model also joins patient and active pharmacy context;
UCF claims use prescription and service data to derive consultation and service
details.
mart_cps is incremental with merge strategy and unique key
(organisation, claim_id). Incremental updates are triggered by ingestion dates
for claim requests, claim details, prescription status, request type,
consultation type, and UCF service records. Duplicate rows are reduced to one
claim record and routed to the quarantine model.