Definition
Information
Section titled “Information”This table holds Data Sharing Agreement (DSA) information & the flag named ‘can_process’ determines which organisations will the data be extracted for.
Data will be available for extraction for the organisations which have the flag ‘can_process’ set to 1 & following are the conditions when that flag would be updated automatically before the ETL begins:
- When the data sharing agreement is not deleted i.e. agreement_is_deleted = 0 AND
- When the data controller aka sharing organisation is active i.e. organisation_is_active = 1 AND
- When the data controller aka sharing organisation is not deleted i.e. organisation_is_deleted = 0 AND
- When the requesting organisation is not deleted i.e. requesting_organisation_is_deleted = 0 AND
- When the closing date for sharing organisations is >= current date i.e. organisation_closing_date >= currentdate AND
- When all 5 of above flags are set & is_deleted = 0
Data will not be available for extraction for the organisations which have the flag ‘can_process’ set to 0 & following are the conditions when that would be updated automatically before the ETL begins:
- When the data sharing agreement is deleted i.e. agreement_is_deleted = 1 OR
- When the data controller aka sharing organisation is inactive i.e. organisation_is_active = 0 OR
- When the data controller aka sharing organisation is deleted i.e. organisation_is_deleted = 1 OR
- When the requesting organisation is deleted i.e. requesting_organisation_is_deleted = 1 OR
- When the closing date for sharing organisations is < current date i.e. organisation_closing_date < currentdate OR
- When all 5 of above flags are set & is_deleted = 1
It is advised to check this table either:
- Before triggering the ETL to understand which organisation’s data will be extracted
- In scenarios when data extraction for some organisations did not work as expected (refer below examples for more information)
Scenarios
Section titled “Scenarios”| Issue Encountered | Info in the logging tables | Root Cause | Customer Action Required |
|---|---|---|---|
| ETL succeeded but data partially extracted i.e. data not getting extracted for a particular sharing organisation mentioned in the DSA | The sharing organisation does not exist in ‘agreement_organisation_status’ table | The user doesn’t have the organisation assigned to them in Access Guard | Contact EMIS Support. Re-run the ETL. |
| ETL succeeded but data partially extracted i.e. data not getting extracted for a particular sharing organisation mentioned in the DSA | The sharing organisation exists in ‘agreement_organisation_status’ table but the following flags are set to 0: organisation_is_active, can_process | The data controller has not activated the agreement | Contact data controller to activate the agreement. Re-run the ETL. |
| ETL succeeded but no data extracted at all | The requesting organisation does not exist in ‘agreement_organisation_status’ table | The requesting organisation is inactive and hence not present within Access Guard | Contact EMIS Support to activate the requesting organisation, add to Access Guard. Re-run the ETL. |
Examples
Section titled “Examples”Organisations available for extraction
Section titled “Organisations available for extraction”SELECT organisation, organisation_name, agreement_guid, can_processFROM internal.agreement_organisation_statusWHERE is_deleted = FALSE AND can_process = TRUEORDER BY organisation_name;Review extraction eligibility fields
Section titled “Review extraction eligibility fields”SELECT organisation, agreement_is_deleted, organisation_is_active, organisation_is_deleted, requesting_organisation_is_deleted, organisation_closing_date, can_processFROM internal.agreement_organisation_statusORDER BY organisation;