/
Catchment Feed

Catchment Feed

Catchment Mapping CF

CREATE TABLE catchment_mapping (
   catchment_id varchar,
   last_updated timeuuid,
   health_id varchar,
   PRIMARY KEY (catchment_id, last_updated, health_id)
)WITH CLUSTERING ORDER BY (last_updated ASC);

Create Patient

  • Records in catchment_mapping CF are created. One record for each catchment. So catchment 10203040 will create 3 records - 1020, 102030, 10203040. last_updated is set as the patient's updated_at timeuuid.

 

Update Patient

 

  • (If catchment is updated) Records in catchment_mapping CF are updated - deleted and created. 

 

Feed Query

 

  • Since - gte last_updated
  • last_marker - gt last_udpated


 

 

Related content

Create/Update
Create/Update
More like this
MCI Patient APIs
MCI Patient APIs
Read with this
Update Feed
Update Feed
More like this
SHR Encounter API
SHR Encounter API
Read with this
Pending Approval
Pending Approval
More like this
MCI Patient Catchment Feed API
MCI Patient Catchment Feed API
More like this