Skip to content
Partner Developer Portal

Schema

Column Name Data Type Description Example
_primary_key varchar Source record key value. ‘150F10BC-6EE1-4169-AF2E-341483931407-10720’
agreement_guid varchar(100) Agreement GUID. ‘150F10BC-6EE1-4169-AF2E-341483931407’
requester_organisation_guid varchar(100) Requesting organisation GUID. ‘7E3C9C5C-EBE7-4196-96AB-3B165646CA5E’
sharer_organisation_guid varchar(100) Sharing organisation GUID. ‘5E4C2924-D6F5-425D-BD99-1E86A029B828’
emis_index_schema_id integer EMIS index schema identifier. 1
agreement_id bigint Agreement identifier. 17587
agreement_name varchar(500) Agreement name. ‘Test Agreement’
agreement_purpose varchar Purpose of the data sharing agreement. ‘Test Agreement’
agreement_status varchar(50) Agreement status. ‘Enabled’
can_process boolean Whether the agreement can be processed. FALSE
requester_status varchar(50) Requesting organisation status. ‘Activated’
requester_cdb bigint Requesting organisation CDB number. 12345
requester_name varchar(500) Requesting organisation name. ‘EMISWebCR1 12345’
sharer_status varchar(50) Sharing organisation status. ‘04. Deleted’
org_type varchar(500) Sharing organisation type. ‘General Practice’
sharer_ods_code varchar(500) Sharing organisation ODS code. ‘GPAS1’
sharer_cdb bigint Sharing organisation CDB number. 10720
sharer_name varchar(500) Sharing organisation name. ‘ASSESSOR1’
sharer_close_datetime timestamp(6) with time zone Sharing organisation closing date and time. ‘2022-02-01 00:00:00.000000 UTC’
patient_count bigint Patient count; null when the source record is deleted. NULL
active_patient_count bigint Active patient count; null when the source record is deleted. NULL
active_user_count bigint Active user count; null when the source record is deleted. NULL
last_modified_datetime timestamp(6) with time zone Last modified date and time. NULL
organisation varchar(50) Source organisation value. ‘EMIS’
transform_datetime timestamp(6) with time zone Transform date and time. ‘2026-08-27 09:19:43.716000 UTC’

Observed sharer_status values include:

  • 01. Ready for Activation
  • 02. Activated
  • 03. Deactivated
  • 04. Deleted
  • 05. Closed Site