Skip to content
Partner Developer Portal

Definition

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:

  1. When the data sharing agreement is not deleted i.e. agreement_is_deleted = 0 AND
  2. When the data controller aka sharing organisation is active i.e. organisation_is_active = 1 AND
  3. When the data controller aka sharing organisation is not deleted i.e. organisation_is_deleted = 0 AND
  4. When the requesting organisation is not deleted i.e. requesting_organisation_is_deleted = 0 AND
  5. When the closing date for sharing organisations is >= current date i.e. organisation_closing_date >= currentdate AND
  6. 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:

  1. When the data sharing agreement is deleted i.e. agreement_is_deleted = 1 OR
  2. When the data controller aka sharing organisation is inactive i.e. organisation_is_active = 0 OR
  3. When the data controller aka sharing organisation is deleted i.e. organisation_is_deleted = 1 OR
  4. When the requesting organisation is deleted i.e. requesting_organisation_is_deleted = 1 OR
  5. When the closing date for sharing organisations is < current date i.e. organisation_closing_date < currentdate OR
  6. 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)
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.
SELECT
organisation,
organisation_name,
agreement_guid,
can_process
FROM internal.agreement_organisation_status
WHERE is_deleted = FALSE
AND can_process = TRUE
ORDER BY organisation_name;
SELECT
organisation,
agreement_is_deleted,
organisation_is_active,
organisation_is_deleted,
requesting_organisation_is_deleted,
organisation_closing_date,
can_process
FROM internal.agreement_organisation_status
ORDER BY organisation;