opensrp / opensrp-scripts

Customised OpenMRS ETL for Report Requirements in OpenSRP Projects
Apache License 2.0
1 stars 2 forks source link

Generate Visit ID in ZEIR ETL #32

Open csc5k opened 6 years ago

csc5k commented 6 years ago

We need to add a column to the ZEIR encounters ETL to generate a visit ID to use as a wrapper around encounters that occurred during the same visit.

The PATH team approved the following three data elements as identifying a visit: ZEIR ID, encounter date, facility ID. I.e. all rows with the same ZEIR ID, encounter date, and facility ID would share a single, unique visit ID.