<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.voror.co.uk/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jay</id>
	<title>Voror_Wiki - User contributions [en-gb]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.voror.co.uk/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jay"/>
	<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Special:Contributions/Jay"/>
	<updated>2026-10-23T15:20:28Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4795</id>
		<title>Discovery Explorer</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4795"/>
		<updated>2021-05-10T08:40:22Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Explorer and it&#039;s capabilities ==&lt;br /&gt;
Discovery Explorer is a user interface web application which allows users to build queries, dashboards and view results without any knowledge needed of the database structure or of the SQL language.&lt;br /&gt;
&lt;br /&gt;
Explorer will by nature produce more accurate results because it ‘understands’ the database structures and clinical model, and the machine generates the SQL that’s already been pre-tested.&lt;br /&gt;
&lt;br /&gt;
The features and benefits of using Discovery Explorer are:&lt;br /&gt;
&lt;br /&gt;
* Create and build your own value sets with an inbuilt browser.&lt;br /&gt;
* Bulk upload your value sets from a CSV file.&lt;br /&gt;
* Create your own detailed queries with our intuitive query engine that is able to handle highly sophisticated queries in a user friendly experience - no SQL skills required.&lt;br /&gt;
* Build queries to identify patients at risk or in need of further intervention.&lt;br /&gt;
* View historical trends of query results.&lt;br /&gt;
* View registries to show compliance of QOF and other data sets, easily comparing, practices, CCGS and hospitals.&lt;br /&gt;
* Drill-down to lists of patients behind query results.&lt;br /&gt;
* View each patient’s complete integrated care record.&lt;br /&gt;
* Use our dashboard suit or create a csv output for your query to interrogate in 3rd party applications.&lt;br /&gt;
* Create outputs containing demographic, medication, encounter or clinical data.&lt;br /&gt;
* View intuitive dashboards at STP, CCG, PCN or practice level, patient identifiable or de identifiable dependent on your permission level.&lt;br /&gt;
* View geospatial maps show prevalence of diseases, conditions or vaccination up take by area.&lt;br /&gt;
&lt;br /&gt;
Further details explaining the access and authentication levels can be found in the [[Discovery Explorer- Specification]] article.&lt;br /&gt;
&lt;br /&gt;
== Access and support ==&lt;br /&gt;
Access and support are controlled by the Discovery Programme team in London. Access is controlled by [mailto:andy.thomas3@nhs.net Andy Thomas] and can be requested using this [https://app.smartsheet.com/b/form/45cfd0c985554afdb8670e459836c4f1 Discovery Explorer User Request Form]&lt;br /&gt;
&lt;br /&gt;
== Training Videos ==&lt;br /&gt;
Training videos are available within the application to help you to navigate and utilise the system. Below are videos that will assist you in using Discovery Explorer:&lt;br /&gt;
&lt;br /&gt;
====== Key features ======&lt;br /&gt;
[https://youtu.be/HPk6d_cV6uw Explanation of the key features available in Discovery Explorer.]&lt;br /&gt;
&lt;br /&gt;
====== Logon and navigation ======&lt;br /&gt;
How to logon to the application and navigate around the menus and modules:&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=4yv0i5W36_o Video]&lt;br /&gt;
&lt;br /&gt;
[[Discovery Explorer/Access and Navigation|Article]]&lt;br /&gt;
&lt;br /&gt;
====== Covid library ======&lt;br /&gt;
[https://www.youtube.com/watch?v=uqWROH6UiSY How to use the COVID-19 dashboards.]&lt;br /&gt;
&lt;br /&gt;
====== Dashboard library ======&lt;br /&gt;
[https://www.youtube.com/watch?v=9MBqcwBsQxQ How to create and view your own dashboards.]&lt;br /&gt;
&lt;br /&gt;
====== Maps ======&lt;br /&gt;
[https://www.youtube.com/watch?v=i2cpVCd0AY0 How to use the geospatial maps.]&lt;br /&gt;
&lt;br /&gt;
====== Query results ======&lt;br /&gt;
[https://www.youtube.com/watch?v=echEph4_BPk How to view results of queries and drill-down to records.]&lt;br /&gt;
&lt;br /&gt;
====== Query &amp;amp; data set library ======&lt;br /&gt;
[https://www.youtube.com/watch?v=7h4d2n7LGyc How to create queries, data sets and visualisations.]&lt;br /&gt;
&lt;br /&gt;
====== Query queue ======&lt;br /&gt;
[https://www.youtube.com/watch?v=i6eQk3mJpnU Explanation of the query queue module.]&lt;br /&gt;
&lt;br /&gt;
====== Value set library ======&lt;br /&gt;
How to create and modify value sets used by queries.:&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=rOqc8H2-52s Video]&lt;br /&gt;
&lt;br /&gt;
[[Discovery Explorer/Value Set Library|Article]]&lt;br /&gt;
&lt;br /&gt;
====== Population counts ======&lt;br /&gt;
[https://www.youtube.com/watch?v=tMFBjhGN0As Explanation of the population counts module.]&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4758</id>
		<title>Discovery Explorer</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4758"/>
		<updated>2021-05-04T14:51:05Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Explorer and it&#039;s capabilities ==&lt;br /&gt;
Discovery Explorer is a user interface web application which allows users to build queries, dashboards and view results without any knowledge needed of the database structure or of the SQL language.&lt;br /&gt;
&lt;br /&gt;
Explorer will by nature produce more accurate results because it ‘understands’ the database structures and clinical model, and the machine generates the SQL that’s already been pre-tested.&lt;br /&gt;
&lt;br /&gt;
The features and benefits of using Discovery Explorer are:&lt;br /&gt;
&lt;br /&gt;
* Create and build your own value sets with an inbuilt browser.&lt;br /&gt;
* Bulk upload your value sets from a CSV file.&lt;br /&gt;
* Create your own detailed queries with our intuitive query engine that is able to handle highly sophisticated queries in a user friendly experience - no SQL skills required.&lt;br /&gt;
* Build queries to identify patients at risk or in need of further intervention.&lt;br /&gt;
* View historical trends of query results.&lt;br /&gt;
* View registries to show compliance of QOF and other data sets, easily comparing, practices, CCGS and hospitals.&lt;br /&gt;
* Drill-down to lists of patients behind query results.&lt;br /&gt;
* View each patient’s complete integrated care record.&lt;br /&gt;
* Use our dashboard suit or create a csv output for your query to interrogate in 3rd party applications.&lt;br /&gt;
* Create outputs containing demographic, medication, encounter or clinical data.&lt;br /&gt;
* View intuitive dashboards at STP, CCG, PCN or practice level, patient identifiable or de identifiable dependent on your permission level.&lt;br /&gt;
* View geospatial maps show prevalence of diseases, conditions or vaccination up take by area.&lt;br /&gt;
&lt;br /&gt;
== Access and support ==&lt;br /&gt;
Access and support are controlled by the Discovery Programme team in London. Access is controlled by [mailto:andy.thomas3@nhs.net Andy Thomas] and can be requested using this [https://app.smartsheet.com/b/form/45cfd0c985554afdb8670e459836c4f1 Discovery Explorer User Request Form]&lt;br /&gt;
&lt;br /&gt;
== Training Videos ==&lt;br /&gt;
Training videos are available within the application to help you to navigate and utilise the system. Below are videos that will assist you in using Discovery Explorer:&lt;br /&gt;
&lt;br /&gt;
====== Key features ======&lt;br /&gt;
[https://youtu.be/HPk6d_cV6uw Explanation of the key features available in Discovery Explorer.]&lt;br /&gt;
&lt;br /&gt;
====== Logon and navigation ======&lt;br /&gt;
How to logon to the application and navigate around the menus and modules:&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=4yv0i5W36_o Video]&lt;br /&gt;
&lt;br /&gt;
[[Discovery Explorer/Access and Navigation|Article]]&lt;br /&gt;
&lt;br /&gt;
====== Covid library ======&lt;br /&gt;
[https://www.youtube.com/watch?v=uqWROH6UiSY How to use the COVID-19 dashboards.]&lt;br /&gt;
&lt;br /&gt;
====== Dashboard library ======&lt;br /&gt;
[https://www.youtube.com/watch?v=9MBqcwBsQxQ How to create and view your own dashboards.]&lt;br /&gt;
&lt;br /&gt;
====== Maps ======&lt;br /&gt;
[https://www.youtube.com/watch?v=i2cpVCd0AY0 How to use the geospatial maps.]&lt;br /&gt;
&lt;br /&gt;
====== Query results ======&lt;br /&gt;
[https://www.youtube.com/watch?v=echEph4_BPk How to view results of queries and drill-down to records.]&lt;br /&gt;
&lt;br /&gt;
====== Query &amp;amp; data set library ======&lt;br /&gt;
[https://www.youtube.com/watch?v=7h4d2n7LGyc How to create queries, data sets and visualisations.]&lt;br /&gt;
&lt;br /&gt;
====== Query queue ======&lt;br /&gt;
[https://www.youtube.com/watch?v=i6eQk3mJpnU Explanation of the query queue module.]&lt;br /&gt;
&lt;br /&gt;
====== Value set library ======&lt;br /&gt;
How to create and modify value sets used by queries.:&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=rOqc8H2-52s Video]&lt;br /&gt;
&lt;br /&gt;
[[Discovery Explorer/Value Set Library|Article]]&lt;br /&gt;
&lt;br /&gt;
====== Population counts ======&lt;br /&gt;
[https://www.youtube.com/watch?v=tMFBjhGN0As Explanation of the population counts module.]&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4757</id>
		<title>Discovery Explorer</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4757"/>
		<updated>2021-05-04T14:48:29Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Explorer and it&#039;s capabilities ==&lt;br /&gt;
Discovery Explorer is a user interface web application which allows users to build queries, dashboards and view results without any knowledge needed of the database structure or of the SQL language.&lt;br /&gt;
&lt;br /&gt;
Explorer will by nature produce more accurate results because it ‘understands’ the database structures and clinical model, and the machine generates the SQL that’s already been pre-tested.&lt;br /&gt;
&lt;br /&gt;
The features and benefits of using Discovery Explorer are:&lt;br /&gt;
&lt;br /&gt;
* Create and build your own value sets with an inbuilt browser.&lt;br /&gt;
* Bulk upload your value sets from a CSV file.&lt;br /&gt;
* Create your own detailed queries with our intuitive query engine that is able to handle highly sophisticated queries in a user friendly experience - no SQL skills required.&lt;br /&gt;
* Build queries to identify patients at risk or in need of further intervention.&lt;br /&gt;
* View historical trends of query results.&lt;br /&gt;
* View registries to show compliance of QOF and other data sets, easily comparing, practices, CCGS and hospitals.&lt;br /&gt;
* Drill-down to lists of patients behind query results.&lt;br /&gt;
* View each patient’s complete integrated care record.&lt;br /&gt;
* Use our dashboard suit or create a csv output for your query to interrogate in 3rd party applications.&lt;br /&gt;
* Create outputs containing demographic, medication, encounter or clinical data.&lt;br /&gt;
* View intuitive dashboards at STP, CCG, PCN or practice level, patient identifiable or de identifiable dependent on your permission level.&lt;br /&gt;
* View geospatial maps show prevalence of diseases, conditions or vaccination up take by area.&lt;br /&gt;
&lt;br /&gt;
== Access and support ==&lt;br /&gt;
Access and support are controlled by the Discovery Programme team in London. Access is controlled by [mailto:andy.thomas3@nhs.net Andy Thomas] and can be requested using this [https://app.smartsheet.com/b/form/45cfd0c985554afdb8670e459836c4f1 Discovery Explorer User Request Form]&lt;br /&gt;
&lt;br /&gt;
=== Training Videos ===&lt;br /&gt;
Training videos are available within the application to help you to navigate and utilise the system. Below are videos that will assist you in using Discovery Explorer:&lt;br /&gt;
&lt;br /&gt;
====== Key features ======&lt;br /&gt;
[https://youtu.be/HPk6d_cV6uw Explanation of the key features available in Discovery Explorer.]&lt;br /&gt;
&lt;br /&gt;
====== Logon and navigation ======&lt;br /&gt;
How to logon to the application and navigate around the menus and modules:&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=4yv0i5W36_o Video]&lt;br /&gt;
&lt;br /&gt;
[[Discovery Explorer/Access and Navigation|Article]]&lt;br /&gt;
&lt;br /&gt;
====== Covid library ======&lt;br /&gt;
[https://www.youtube.com/watch?v=uqWROH6UiSY How to use the COVID-19 dashboards.]&lt;br /&gt;
&lt;br /&gt;
====== Dashboard library ======&lt;br /&gt;
[https://www.youtube.com/watch?v=9MBqcwBsQxQ How to create and view your own dashboards.]&lt;br /&gt;
&lt;br /&gt;
====== Maps ======&lt;br /&gt;
[https://www.youtube.com/watch?v=i2cpVCd0AY0 How to use the geospatial maps.]&lt;br /&gt;
&lt;br /&gt;
====== Query results ======&lt;br /&gt;
[https://www.youtube.com/watch?v=echEph4_BPk How to view results of queries and drill-down to records.]&lt;br /&gt;
&lt;br /&gt;
====== Query &amp;amp; data set library ======&lt;br /&gt;
[https://www.youtube.com/watch?v=7h4d2n7LGyc How to create queries, data sets and visualisations.]&lt;br /&gt;
&lt;br /&gt;
====== Query queue ======&lt;br /&gt;
[https://www.youtube.com/watch?v=i6eQk3mJpnU Explanation of the query queue module.]&lt;br /&gt;
&lt;br /&gt;
====== Value set library ======&lt;br /&gt;
How to create and modify value sets used by queries.:&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=rOqc8H2-52s Video]&lt;br /&gt;
&lt;br /&gt;
[[Discovery Explorer/Value Set Library|Article]]&lt;br /&gt;
&lt;br /&gt;
====== Population counts ======&lt;br /&gt;
[https://www.youtube.com/watch?v=tMFBjhGN0As Explanation of the population counts module.]&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4756</id>
		<title>Discovery Explorer</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4756"/>
		<updated>2021-05-04T14:45:52Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Explorer and it&#039;s capabilities ==&lt;br /&gt;
Discovery Explorer is a user interface web application which allows users to build queries, dashboards and view results without any knowledge needed of the database structure or of the SQL language.&lt;br /&gt;
&lt;br /&gt;
Explorer will by nature produce more accurate results because it ‘understands’ the database structures and clinical model, and the machine generates the SQL that’s already been pre-tested.&lt;br /&gt;
&lt;br /&gt;
The features and benefits of using Discovery Explorer are:&lt;br /&gt;
&lt;br /&gt;
* Create and build your own value sets with an inbuilt browser.&lt;br /&gt;
* Bulk upload your value sets from a CSV file.&lt;br /&gt;
* Create your own detailed queries with our intuitive query engine that is able to handle highly sophisticated queries in a user friendly experience - no SQL skills required.&lt;br /&gt;
* Build queries to identify patients at risk or in need of further intervention.&lt;br /&gt;
* View historical trends of query results.&lt;br /&gt;
* View registries to show compliance of QOF and other data sets, easily comparing, practices, CCGS and hospitals.&lt;br /&gt;
* Drill-down to lists of patients behind query results.&lt;br /&gt;
* View each patient’s complete integrated care record.&lt;br /&gt;
* Use our dashboard suit or create a csv output for your query to interrogate in 3rd party applications.&lt;br /&gt;
* Create outputs containing demographic, medication, encounter or clinical data.&lt;br /&gt;
* View intuitive dashboards at STP, CCG, PCN or practice level, patient identifiable or de identifiable dependent on your permission level.&lt;br /&gt;
* View geospatial maps show prevalence of diseases, conditions or vaccination up take by area.&lt;br /&gt;
&lt;br /&gt;
== Access and support ==&lt;br /&gt;
Access and support are controlled by the Discovery Programme team in London. Access is controlled by [mailto:andy.thomas3@nhs.net Andy Thomas] and can be requested using this [https://app.smartsheet.com/b/form/45cfd0c985554afdb8670e459836c4f1 Discovery Explorer User Request Form]&lt;br /&gt;
&lt;br /&gt;
=== Training Videos ===&lt;br /&gt;
Training videos are available within the application to help you to navigate and utilise the system. Below are videos that will assist you in using Discovery Explorer:&lt;br /&gt;
&lt;br /&gt;
====== Key features ======&lt;br /&gt;
[https://youtu.be/HPk6d_cV6uw Explanation of the key features available in Discovery Explorer.]&lt;br /&gt;
&lt;br /&gt;
====== Logon and navigation ======&lt;br /&gt;
How to logon to the application and navigate around the menus and modules:&lt;br /&gt;
&lt;br /&gt;
[https://www.youtube.com/watch?v=4yv0i5W36_o Video]&lt;br /&gt;
&lt;br /&gt;
[[Discovery Explorer/Access and Navigation|Article]]&lt;br /&gt;
&lt;br /&gt;
====== Covid library ======&lt;br /&gt;
[https://www.youtube.com/watch?v=uqWROH6UiSY How to use the COVID-19 dashboards.]&lt;br /&gt;
&lt;br /&gt;
====== Dashboard library ======&lt;br /&gt;
[https://www.youtube.com/watch?v=9MBqcwBsQxQ How to create and view your own dashboards.]&lt;br /&gt;
&lt;br /&gt;
====== Maps ======&lt;br /&gt;
[https://www.youtube.com/watch?v=i2cpVCd0AY0 How to use the geospatial maps.]&lt;br /&gt;
&lt;br /&gt;
====== Query results ======&lt;br /&gt;
[https://www.youtube.com/watch?v=echEph4_BPk How to view results of queries and drill-down to records.]&lt;br /&gt;
&lt;br /&gt;
====== Query &amp;amp; data set library ======&lt;br /&gt;
[https://www.youtube.com/watch?v=7h4d2n7LGyc How to create queries, data sets and visualisations.]&lt;br /&gt;
&lt;br /&gt;
====== Query queue ======&lt;br /&gt;
[https://www.youtube.com/watch?v=i6eQk3mJpnU Explanation of the query queue module.]&lt;br /&gt;
&lt;br /&gt;
====== Value set library ======&lt;br /&gt;
[https://www.youtube.com/watch?v=rOqc8H2-52s How to create and modify value sets used by queries.]&lt;br /&gt;
&lt;br /&gt;
====== Population counts ======&lt;br /&gt;
[https://www.youtube.com/watch?v=tMFBjhGN0As Explanation of the population counts module.]&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4755</id>
		<title>Discovery Explorer</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4755"/>
		<updated>2021-05-04T14:43:21Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Explorer and it&#039;s capabilities ==&lt;br /&gt;
Discovery Explorer is a user interface web application which allows users to build queries, dashboards and view results without any knowledge needed of the database structure or of the SQL language.&lt;br /&gt;
&lt;br /&gt;
Explorer will by nature produce more accurate results because it ‘understands’ the database structures and clinical model, and the machine generates the SQL that’s already been pre-tested.&lt;br /&gt;
&lt;br /&gt;
The features and benefits of using Discovery Explorer are:&lt;br /&gt;
&lt;br /&gt;
* Create and build your own value sets with an inbuilt browser.&lt;br /&gt;
* Bulk upload your value sets from a CSV file.&lt;br /&gt;
* Create your own detailed queries with our intuitive query engine that is able to handle highly sophisticated queries in a user friendly experience - no SQL skills required.&lt;br /&gt;
* Build queries to identify patients at risk or in need of further intervention.&lt;br /&gt;
* View historical trends of query results.&lt;br /&gt;
* View registries to show compliance of QOF and other data sets, easily comparing, practices, CCGS and hospitals.&lt;br /&gt;
* Drill-down to lists of patients behind query results.&lt;br /&gt;
* View each patient’s complete integrated care record.&lt;br /&gt;
* Use our dashboard suit or create a csv output for your query to interrogate in 3rd party applications.&lt;br /&gt;
* Create outputs containing demographic, medication, encounter or clinical data.&lt;br /&gt;
* View intuitive dashboards at STP, CCG, PCN or practice level, patient identifiable or de identifiable dependent on your permission level.&lt;br /&gt;
* View geospatial maps show prevalence of diseases, conditions or vaccination up take by area.&lt;br /&gt;
&lt;br /&gt;
== Access and support ==&lt;br /&gt;
Access and support are controlled by the Discovery Programme team in London. Access is controlled by [mailto:andy.thomas3@nhs.net Andy Thomas] and can be requested using this [https://app.smartsheet.com/b/form/45cfd0c985554afdb8670e459836c4f1 Discovery Explorer User Request Form]&lt;br /&gt;
&lt;br /&gt;
=== Training Videos ===&lt;br /&gt;
Training videos are available within the application to help you to navigate and utilise the system. Below are videos that will assist you in using Discovery Explorer:&lt;br /&gt;
&lt;br /&gt;
====== Key features ======&lt;br /&gt;
[https://youtu.be/HPk6d_cV6uw Explanation of the key features available in Discovery Explorer.]&lt;br /&gt;
&lt;br /&gt;
====== Logon and navigation ======&lt;br /&gt;
[https://youtu.be/4yv0i5W36_o How to logon to the application and navigate around the menus and modules.]&lt;br /&gt;
&lt;br /&gt;
====== Covid library ======&lt;br /&gt;
[https://www.youtube.com/watch?v=uqWROH6UiSY How to use the COVID-19 dashboards.]&lt;br /&gt;
&lt;br /&gt;
====== Dashboard library ======&lt;br /&gt;
[https://www.youtube.com/watch?v=9MBqcwBsQxQ How to create and view your own dashboards.]&lt;br /&gt;
&lt;br /&gt;
====== Maps ======&lt;br /&gt;
[https://www.youtube.com/watch?v=i2cpVCd0AY0 How to use the geospatial maps.]&lt;br /&gt;
&lt;br /&gt;
====== Query results ======&lt;br /&gt;
[https://www.youtube.com/watch?v=echEph4_BPk How to view results of queries and drill-down to records.]&lt;br /&gt;
&lt;br /&gt;
====== Query &amp;amp; data set library ======&lt;br /&gt;
[https://www.youtube.com/watch?v=7h4d2n7LGyc How to create queries, data sets and visualisations.]&lt;br /&gt;
&lt;br /&gt;
====== Query queue ======&lt;br /&gt;
[https://www.youtube.com/watch?v=i6eQk3mJpnU Explanation of the query queue module.]&lt;br /&gt;
&lt;br /&gt;
====== Value set library ======&lt;br /&gt;
[https://www.youtube.com/watch?v=rOqc8H2-52s How to create and modify value sets used by queries.]&lt;br /&gt;
&lt;br /&gt;
====== Population counts ======&lt;br /&gt;
[https://www.youtube.com/watch?v=tMFBjhGN0As Explanation of the population counts module.]&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4754</id>
		<title>Discovery Explorer</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4754"/>
		<updated>2021-05-04T14:43:07Z</updated>

		<summary type="html">&lt;p&gt;Jay: Links added&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Explorer and it&#039;s capabilities ==&lt;br /&gt;
Discovery Explorer is a user interface web application which allows users to build queries, dashboards and view results without any knowledge needed of the database structure or of the SQL language.&lt;br /&gt;
&lt;br /&gt;
Explorer will by nature produce more accurate results because it ‘understands’ the database structures and clinical model, and the machine generates the SQL that’s already been pre-tested.&lt;br /&gt;
&lt;br /&gt;
The features and benefits of using Discovery Explorer are:&lt;br /&gt;
&lt;br /&gt;
* Create and build your own value sets with an inbuilt browser.&lt;br /&gt;
* Bulk upload your value sets from a CSV file.&lt;br /&gt;
* Create your own detailed queries with our intuitive query engine that is able to handle highly sophisticated queries in a user friendly experience - no SQL skills required.&lt;br /&gt;
* Build queries to identify patients at risk or in need of further intervention.&lt;br /&gt;
* View historical trends of query results.&lt;br /&gt;
* View registries to show compliance of QOF and other data sets, easily comparing, practices, CCGS and hospitals.&lt;br /&gt;
* Drill-down to lists of patients behind query results.&lt;br /&gt;
* View each patient’s complete integrated care record.&lt;br /&gt;
* Use our dashboard suit or create a csv output for your query to interrogate in 3rd party applications.&lt;br /&gt;
* Create outputs containing demographic, medication, encounter or clinical data.&lt;br /&gt;
* View intuitive dashboards at STP, CCG, PCN or practice level, patient identifiable or de identifiable dependent on your permission level.&lt;br /&gt;
* View geospatial maps show prevalence of diseases, conditions or vaccination up take by area.&lt;br /&gt;
&lt;br /&gt;
== Access and support ==&lt;br /&gt;
Access and support are controlled by the Discovery Programme team in London. Access is controlled by [mailto:andy.thomas3@nhs.net Andy Thomas] and can be requested using this [https://app.smartsheet.com/b/form/45cfd0c985554afdb8670e459836c4f1 Discovery Explorer User Request Form]&lt;br /&gt;
&lt;br /&gt;
=== Training Videos &#039;&#039;&amp;lt;u&amp;gt;(links to follow)&amp;lt;/u&amp;gt;&#039;&#039;===&lt;br /&gt;
Training videos are available within the application to help you to navigate and utilise the system. Below are videos that will assist you in using Discovery Explorer:&lt;br /&gt;
&lt;br /&gt;
====== Key features ======&lt;br /&gt;
[https://youtu.be/HPk6d_cV6uw Explanation of the key features available in Discovery Explorer.]&lt;br /&gt;
&lt;br /&gt;
====== Logon and navigation ======&lt;br /&gt;
[https://youtu.be/4yv0i5W36_o How to logon to the application and navigate around the menus and modules.]&lt;br /&gt;
&lt;br /&gt;
====== Covid library ======&lt;br /&gt;
[https://www.youtube.com/watch?v=uqWROH6UiSY How to use the COVID-19 dashboards.]&lt;br /&gt;
&lt;br /&gt;
====== Dashboard library ======&lt;br /&gt;
[https://www.youtube.com/watch?v=9MBqcwBsQxQ How to create and view your own dashboards.]&lt;br /&gt;
&lt;br /&gt;
====== Maps ======&lt;br /&gt;
[https://www.youtube.com/watch?v=i2cpVCd0AY0 How to use the geospatial maps.]&lt;br /&gt;
&lt;br /&gt;
====== Query results ======&lt;br /&gt;
[https://www.youtube.com/watch?v=echEph4_BPk How to view results of queries and drill-down to records.]&lt;br /&gt;
&lt;br /&gt;
====== Query &amp;amp; data set library ======&lt;br /&gt;
[https://www.youtube.com/watch?v=7h4d2n7LGyc How to create queries, data sets and visualisations.]&lt;br /&gt;
&lt;br /&gt;
====== Query queue ======&lt;br /&gt;
[https://www.youtube.com/watch?v=i6eQk3mJpnU Explanation of the query queue module.]&lt;br /&gt;
&lt;br /&gt;
====== Value set library ======&lt;br /&gt;
[https://www.youtube.com/watch?v=rOqc8H2-52s How to create and modify value sets used by queries.]&lt;br /&gt;
&lt;br /&gt;
====== Population counts ======&lt;br /&gt;
[https://www.youtube.com/watch?v=tMFBjhGN0As Explanation of the population counts module.]&lt;br /&gt;
&lt;br /&gt;
__FORCETOC__&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Explorer/Access_and_Navigation&amp;diff=4727</id>
		<title>Discovery Explorer/Access and Navigation</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Explorer/Access_and_Navigation&amp;diff=4727"/>
		<updated>2021-04-30T15:34:31Z</updated>

		<summary type="html">&lt;p&gt;Jay: Created page with &amp;quot;== Logging into the Discovery Explorer application and navigating around the menu screens. == &amp;#039;&amp;#039;&amp;lt;small&amp;gt;Prerequisites for logging in:&amp;lt;/small&amp;gt;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;lt;small&amp;gt;Access from your local...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Logging into the Discovery Explorer application and navigating around the menu screens. ==&lt;br /&gt;
&#039;&#039;&amp;lt;small&amp;gt;Prerequisites for logging in:&amp;lt;/small&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;lt;small&amp;gt;Access from your local administrator&amp;lt;/small&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;lt;small&amp;gt;A mobile phone with a 2 Factor Authentication app such as Google Authenticator or Duo.&amp;lt;/small&amp;gt;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====== Logging in ======&lt;br /&gt;
Once you have been granted access you will be issued with the URL for logging onto Explorer. Enter the URL into the address bar in your browser, Discovery Explorer is supported across all the major modern browsers such as Chrome, Firefox, Internet Explorer. We suggest that you use Chrome for the best experience.&lt;br /&gt;
&lt;br /&gt;
The system will ask you to put in your username and password that you will have already enrolled with and there will be instructions for how to get your username and password [[Discovery Explorer#Access and support|here]].&lt;br /&gt;
&lt;br /&gt;
If you forget your password, you can click on the forgot my password link where you can put your email address in it will send you a reset link.&lt;br /&gt;
&lt;br /&gt;
Once your username and password is accepted, Discovery Explorer uses 2 factor authentication so you will need to download the Authenticator application onto mobile phone.&lt;br /&gt;
&lt;br /&gt;
Each time you log on with your username and password it will ask you for a one-time code that will be presented on the screen on your mobile phone.&lt;br /&gt;
&lt;br /&gt;
To &#039;&#039;&#039;logout&#039;&#039;&#039; of the application, you can click out the logout icon on the menu bar below your details or you can drop your username down on the top right and click the logout button there.&lt;br /&gt;
&lt;br /&gt;
====== The Menu Bar ======&lt;br /&gt;
Across the left-hand side of the application there is the menu bar. If you hover over it, it will fully expand, if you move away from it, it will condense into a narrow bar to save screen space.&lt;br /&gt;
&lt;br /&gt;
You can also pin the menu bar in place, there is a pin button at the top right of the sidebar where it will remain viewable at all times with slightly less space available to the main screen.&lt;br /&gt;
&lt;br /&gt;
When you log into the application you get a drop down on the top right which lists the roles that have been assigned to your user account.&lt;br /&gt;
&lt;br /&gt;
Normally most users would only have one or two different roles depending on their level of access.&lt;br /&gt;
&lt;br /&gt;
Each of these roles allows you to switch quickly into a new authorised area of the system where you will get access to different organisational data and either patient identifiable data or deidentified data dependent on your permissions. These are controlled by your local administrator.&lt;br /&gt;
&lt;br /&gt;
For instance you may have a role which only allows you to view data STP level or you may have roles that let you drill down at practise level and view patient identifiable data from queries that you build.&lt;br /&gt;
&lt;br /&gt;
Then to get to each one of the modules within the system, select them from the menu:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;Covid library&#039;&#039;&#039; showing the library available Covid dashboards.&lt;br /&gt;
* &#039;&#039;&#039;Dashboard Library&#039;&#039;&#039; contains the dashboards built by you and other users.&lt;br /&gt;
* &#039;&#039;&#039;Maps&#039;&#039;&#039; contains geospatial Maps&lt;br /&gt;
* &#039;&#039;&#039;Query results&#039;&#039;&#039; contains the main module for viewing all the results of the queries that have been built by you and other users.&lt;br /&gt;
* &#039;&#039;&#039;Query &amp;amp; Data Set Library&#039;&#039;&#039; contains data sets built by you and other users.&lt;br /&gt;
* &#039;&#039;&#039;Query Queue&#039;&#039;&#039; shows what queries have been run and are in progress.&lt;br /&gt;
* &#039;&#039;&#039;Value Set Library&#039;&#039;&#039; contains values sets with all your codes in it that you&#039;re going to use to build searches with&lt;br /&gt;
* &#039;&#039;&#039;Population Counts&#039;&#039;&#039; contains statistics for all the different organisations that you have authorised access to.&lt;br /&gt;
* &#039;&#039;&#039;Audit Log&#039;&#039;&#039; allows administrators to view who&#039;s been using the system and what data they&#039;ve been accessing.&lt;br /&gt;
* &#039;&#039;&#039;Tutorials&#039;&#039;&#039; contains video tutorials on how to use each one of these modules in more detail. Links are also available above.&lt;br /&gt;
&lt;br /&gt;
The layout in many of the screens is consistent, there is:&lt;br /&gt;
&lt;br /&gt;
* A user bar that is always across the top with your user and role information.&lt;br /&gt;
&lt;br /&gt;
* The title bar which will show you the module that you&#039;re in with a brief explanation of what the module is.&lt;br /&gt;
&lt;br /&gt;
* A of filter where you can search for items in libraries quickly, for instance if you go onto the Queries and data set library here and wanted to quickly search for  any queries related to diabetes you can type “&#039;&#039;diabetes”&#039;&#039; and quickly return those queries.&lt;br /&gt;
&lt;br /&gt;
* Most of the modules have a drop down on a row item with a &amp;gt; where you can see further information about that item, you click on the tool and open and close each row which will show you more information about the information behind that item.&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4726</id>
		<title>Discovery Explorer</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4726"/>
		<updated>2021-04-30T12:31:37Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Explorer and it&#039;s capabilities ==&lt;br /&gt;
Discovery Explorer is a user interface web application which allows users to build queries, dashboards and view results without any knowledge needed of the database structure or of the SQL language.&lt;br /&gt;
&lt;br /&gt;
Explorer will by nature produce more accurate results because it ‘understands’ the database structures and clinical model, and the machine generates the SQL that’s already been pre-tested.&lt;br /&gt;
&lt;br /&gt;
The features and benefits of using Discovery Explorer are:&lt;br /&gt;
&lt;br /&gt;
* Create and build your own value sets with an inbuilt browser.&lt;br /&gt;
* Bulk upload your value sets from a CSV file.&lt;br /&gt;
* Create your own detailed queries with our intuitive query engine that is able to handle highly sophisticated queries in a user friendly experience - no SQL skills required.&lt;br /&gt;
* Build queries to identify patients at risk or in need of further intervention.&lt;br /&gt;
* View historical trends of query results.&lt;br /&gt;
* View registries to show compliance of QOF and other data sets, easily comparing, practices, CCGS and hospitals.&lt;br /&gt;
* Drill-down to lists of patients behind query results.&lt;br /&gt;
* View each patient’s complete integrated care record.&lt;br /&gt;
* Use our dashboard suit or create a csv output for your query to interrogate in 3rd party applications.&lt;br /&gt;
* Create outputs containing demographic, medication, encounter or clinical data.&lt;br /&gt;
* View intuitive dashboards at STP, CCG, PCN or practice level, patient identifiable or de identifiable dependent on your permission level.&lt;br /&gt;
* View geospatial maps show prevalence of diseases, conditions or vaccination up take by area.&lt;br /&gt;
&lt;br /&gt;
== Access and support ==&lt;br /&gt;
Access and support are controlled by the Discovery Programme team in London. Access is controlled by [mailto:andy.thomas3@nhs.net Andy Thomas] and can be requested using this [https://app.smartsheet.com/b/form/45cfd0c985554afdb8670e459836c4f1 Discovery Explorer User Request Form]&lt;br /&gt;
&lt;br /&gt;
=== Training Videos &#039;&#039;&amp;lt;u&amp;gt;(links to follow)&amp;lt;/u&amp;gt;&#039;&#039;===&lt;br /&gt;
Training videos are available within the application to help you to navigate and utilise the system. Below are videos that will assist you in using Discovery Explorer:&lt;br /&gt;
&lt;br /&gt;
====== Logon and navigation ======&lt;br /&gt;
How to logon to the application and navigate around the menus and modules.&lt;br /&gt;
&lt;br /&gt;
====== Covid library ======&lt;br /&gt;
How to use the COVID-19 dashboards.&lt;br /&gt;
&lt;br /&gt;
====== Dashboard library ======&lt;br /&gt;
How to create and view your own dashboards.&lt;br /&gt;
&lt;br /&gt;
====== Maps ======&lt;br /&gt;
How to use the geospatial maps.&lt;br /&gt;
&lt;br /&gt;
====== Query results ======&lt;br /&gt;
How to view results of queries and drill-down to records.&lt;br /&gt;
&lt;br /&gt;
====== Query &amp;amp; data set library ======&lt;br /&gt;
How to create queries, data sets and visualisations.&lt;br /&gt;
&lt;br /&gt;
====== Query queue ======&lt;br /&gt;
Explanation of the query queue module.&lt;br /&gt;
&lt;br /&gt;
====== Value set library ======&lt;br /&gt;
How to create and modify value sets used by queries.&lt;br /&gt;
&lt;br /&gt;
====== Population counts ======&lt;br /&gt;
Explanation of the population counts module.&lt;br /&gt;
__FORCETOC__&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4725</id>
		<title>Discovery Explorer</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4725"/>
		<updated>2021-04-30T12:29:23Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Explorer and it&#039;s capabilities ==&lt;br /&gt;
Discovery Explorer is a user interface web application which allows users to build queries, dashboards and view results without any knowledge needed of the database structure or of the SQL language.&lt;br /&gt;
&lt;br /&gt;
Explorer will by nature produce more accurate results because it ‘understands’ the database structures and clinical model, and the machine generates the SQL that’s already been pre-tested.&lt;br /&gt;
&lt;br /&gt;
The features and benefits of using Discovery Explorer are:&lt;br /&gt;
&lt;br /&gt;
* Create and build your own value sets with an inbuilt browser.&lt;br /&gt;
* Bulk upload your value sets from a CSV file.&lt;br /&gt;
* Create your own detailed queries with our intuitive query engine that is able to handle highly sophisticated queries in a user friendly experience - no SQL skills required.&lt;br /&gt;
* Build queries to identify patients at risk or in need of further intervention.&lt;br /&gt;
* View historical trends of query results.&lt;br /&gt;
* View registries to show compliance of QOF and other data sets, easily comparing, practices, CCGS and hospitals.&lt;br /&gt;
* Drill-down to lists of patients behind query results.&lt;br /&gt;
* View each patient’s complete integrated care record.&lt;br /&gt;
* Use our dashboard suit or create a csv output for your query to interrogate in 3rd party applications.&lt;br /&gt;
* Create outputs containing demographic, medication, encounter or clinical data.&lt;br /&gt;
* View intuitive dashboards at STP, CCG, PCN or practice level, patient identifiable or de identifiable dependent on your permission level.&lt;br /&gt;
* View geospatial maps show prevalence of diseases, conditions or vaccination up take by area.&lt;br /&gt;
&lt;br /&gt;
== Access and support ==&lt;br /&gt;
Access and support are controlled by the Discovery Programme team in London. Access is controlled by [mailto:andy.thomas3@nhs.net Andy Thomas] and can be requested using this [https://app.smartsheet.com/b/form/45cfd0c985554afdb8670e459836c4f1 Discovery Explorer User Request Form]&lt;br /&gt;
&lt;br /&gt;
=== Training Videos ===&lt;br /&gt;
Below are videos that will assist you in using Discovery Explorer:&lt;br /&gt;
&lt;br /&gt;
====== Logon and navigation ======&lt;br /&gt;
How to logon to the application and navigate around the menus and modules.&lt;br /&gt;
&lt;br /&gt;
====== Covid library ======&lt;br /&gt;
How to use the COVID-19 dashboards.&lt;br /&gt;
&lt;br /&gt;
====== Dashboard library ======&lt;br /&gt;
How to create and view your own dashboards.&lt;br /&gt;
&lt;br /&gt;
====== Maps ======&lt;br /&gt;
How to use the geospatial maps.&lt;br /&gt;
&lt;br /&gt;
====== Query results ======&lt;br /&gt;
How to view results of queries and drill-down to records&lt;br /&gt;
&lt;br /&gt;
====== Query &amp;amp; data set library ======&lt;br /&gt;
How to create queries, data sets and visualisations&lt;br /&gt;
&lt;br /&gt;
====== Query queue ======&lt;br /&gt;
Explanation of the query queue module&lt;br /&gt;
&lt;br /&gt;
====== Value set library ======&lt;br /&gt;
How to create and modify value sets used by queries&lt;br /&gt;
&lt;br /&gt;
====== Population counts ======&lt;br /&gt;
Explanation of the population counts module&lt;br /&gt;
__FORCETOC__&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4644</id>
		<title>Discovery Explorer</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4644"/>
		<updated>2021-04-28T12:24:55Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Explorer and it&#039;s capabilities ==&lt;br /&gt;
Discovery Explorer is a user interface web application which allows users to build queries, dashboards and view results without any knowledge needed of the database structure or of the SQL language.&lt;br /&gt;
&lt;br /&gt;
Explorer will by nature produce more accurate results because it ‘understands’ the database structures and clinical model, and the machine generates the SQL that’s already been pre-tested.&lt;br /&gt;
&lt;br /&gt;
The features and benefits of using Discovery Explorer are:&lt;br /&gt;
&lt;br /&gt;
* Create and build your own value sets with an inbuilt browser.&lt;br /&gt;
* Bulk upload your value sets from a CSV file.&lt;br /&gt;
* Create your own detailed queries with our intuitive query engine that is able to handle highly sophisticated queries in a user friendly experience - no SQL skills required.&lt;br /&gt;
* Build queries to identify patients at risk or in need of further intervention.&lt;br /&gt;
* View historical trends of query results.&lt;br /&gt;
* View registries to show compliance of QOF and other data sets, easily comparing, practices, CCGS and hospitals.&lt;br /&gt;
* Drill-down to lists of patients behind query results.&lt;br /&gt;
* View each patient’s complete integrated care record.&lt;br /&gt;
* Use our dashboard suit or create a csv output for your query to interrogate in 3rd party applications.&lt;br /&gt;
* Create outputs containing demographic, medication, encounter or clinical data.&lt;br /&gt;
* View intuitive dashboards at STP, CCG, PCN or practice level, patient identifiable or de identifiable dependent on your permission level.&lt;br /&gt;
* View geospatial maps show prevalence of diseases, conditions or vaccination up take by area.&lt;br /&gt;
&lt;br /&gt;
== Access and support ==&lt;br /&gt;
Access and support are controlled by the Discovery Programme team in London. Access is controlled by [mailto:andy.thomas3@nhs.net Andy Thomas] and can be requested using this [https://app.smartsheet.com/b/form/45cfd0c985554afdb8670e459836c4f1 Discovery Explorer User Request Form]&lt;br /&gt;
&lt;br /&gt;
=== Training Videos ===&lt;br /&gt;
Below are videos that will assist you in using Discovery Explorer&lt;br /&gt;
__FORCETOC__&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4643</id>
		<title>Discovery Explorer</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4643"/>
		<updated>2021-04-28T12:15:53Z</updated>

		<summary type="html">&lt;p&gt;Jay: Jay moved page Discovery Explorer - Capabilities to Discovery Explorer without leaving a redirect&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Discovery Explorer is a user interface web application which allows users to build queries, dashboards and view results without any knowledge needed of the database structure or of the SQL language.&lt;br /&gt;
&lt;br /&gt;
Explorer will by nature produce more accurate results because it ‘understands’ the database structures and clinical model, and the machine generates the SQL that’s already been pre-tested.&lt;br /&gt;
&lt;br /&gt;
The features and benefits of using Discovery Explorer are:&lt;br /&gt;
&lt;br /&gt;
* Create and build your own value sets with an inbuilt browser.&lt;br /&gt;
* Bulk upload your value sets from a CSV file.&lt;br /&gt;
* Create your own detailed queries with our intuitive query engine that is able to handle highly sophisticated queries in a user friendly experience - no SQL skills required.&lt;br /&gt;
* Build queries to identify patients at risk or in need of further intervention.&lt;br /&gt;
* View historical trends of query results.&lt;br /&gt;
* View registries to show compliance of QOF and other data sets, easily comparing, practices, CCGS and hospitals.&lt;br /&gt;
* Drill-down to lists of patients behind query results.&lt;br /&gt;
* View each patient’s complete integrated care record.&lt;br /&gt;
* Use our dashboard suit or create a csv output for your query to interrogate in 3rd party applications.&lt;br /&gt;
* Create outputs containing demographic, medication, encounter or clinical data.&lt;br /&gt;
* View intuitive dashboards at STP, CCG, PCN or practice level, patient identifiable or de identifiable dependent on your permission level.&lt;br /&gt;
* View geospatial maps show prevalence of diseases, conditions or vaccination up take by area.&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4642</id>
		<title>Discovery Explorer</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4642"/>
		<updated>2021-04-28T12:15:28Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Discovery Explorer is a user interface web application which allows users to build queries, dashboards and view results without any knowledge needed of the database structure or of the SQL language.&lt;br /&gt;
&lt;br /&gt;
Explorer will by nature produce more accurate results because it ‘understands’ the database structures and clinical model, and the machine generates the SQL that’s already been pre-tested.&lt;br /&gt;
&lt;br /&gt;
The features and benefits of using Discovery Explorer are:&lt;br /&gt;
&lt;br /&gt;
* Create and build your own value sets with an inbuilt browser.&lt;br /&gt;
* Bulk upload your value sets from a CSV file.&lt;br /&gt;
* Create your own detailed queries with our intuitive query engine that is able to handle highly sophisticated queries in a user friendly experience - no SQL skills required.&lt;br /&gt;
* Build queries to identify patients at risk or in need of further intervention.&lt;br /&gt;
* View historical trends of query results.&lt;br /&gt;
* View registries to show compliance of QOF and other data sets, easily comparing, practices, CCGS and hospitals.&lt;br /&gt;
* Drill-down to lists of patients behind query results.&lt;br /&gt;
* View each patient’s complete integrated care record.&lt;br /&gt;
* Use our dashboard suit or create a csv output for your query to interrogate in 3rd party applications.&lt;br /&gt;
* Create outputs containing demographic, medication, encounter or clinical data.&lt;br /&gt;
* View intuitive dashboards at STP, CCG, PCN or practice level, patient identifiable or de identifiable dependent on your permission level.&lt;br /&gt;
* View geospatial maps show prevalence of diseases, conditions or vaccination up take by area.&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4641</id>
		<title>Discovery Explorer</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4641"/>
		<updated>2021-04-28T12:15:06Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:Discovery Explorer}}&lt;br /&gt;
&lt;br /&gt;
Discovery Explorer is a user interface web application which allows users to build queries, dashboards and view results without any knowledge needed of the database structure or of the SQL language.&lt;br /&gt;
&lt;br /&gt;
Explorer will by nature produce more accurate results because it ‘understands’ the database structures and clinical model, and the machine generates the SQL that’s already been pre-tested.&lt;br /&gt;
&lt;br /&gt;
The features and benefits of using Discovery Explorer are:&lt;br /&gt;
&lt;br /&gt;
* Create and build your own value sets with an inbuilt browser.&lt;br /&gt;
* Bulk upload your value sets from a CSV file.&lt;br /&gt;
* Create your own detailed queries with our intuitive query engine that is able to handle highly sophisticated queries in a user friendly experience - no SQL skills required.&lt;br /&gt;
* Build queries to identify patients at risk or in need of further intervention.&lt;br /&gt;
* View historical trends of query results.&lt;br /&gt;
* View registries to show compliance of QOF and other data sets, easily comparing, practices, CCGS and hospitals.&lt;br /&gt;
* Drill-down to lists of patients behind query results.&lt;br /&gt;
* View each patient’s complete integrated care record.&lt;br /&gt;
* Use our dashboard suit or create a csv output for your query to interrogate in 3rd party applications.&lt;br /&gt;
* Create outputs containing demographic, medication, encounter or clinical data.&lt;br /&gt;
* View intuitive dashboards at STP, CCG, PCN or practice level, patient identifiable or de identifiable dependent on your permission level.&lt;br /&gt;
* View geospatial maps show prevalence of diseases, conditions or vaccination up take by area.&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4640</id>
		<title>Discovery Explorer</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4640"/>
		<updated>2021-04-28T12:14:13Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Discovery Explorer is a user interface web application which allows users to build queries, dashboards and view results without any knowledge needed of the database structure or of the SQL language.&lt;br /&gt;
&lt;br /&gt;
Explorer will by nature produce more accurate results because it ‘understands’ the database structures and clinical model, and the machine generates the SQL that’s already been pre-tested.&lt;br /&gt;
&lt;br /&gt;
The features and benefits of using Discovery Explorer are:&lt;br /&gt;
&lt;br /&gt;
* Create and build your own value sets with an inbuilt browser.&lt;br /&gt;
* Bulk upload your value sets from a CSV file.&lt;br /&gt;
* Create your own detailed queries with our intuitive query engine that is able to handle highly sophisticated queries in a user friendly experience - no SQL skills required.&lt;br /&gt;
* Build queries to identify patients at risk or in need of further intervention.&lt;br /&gt;
* View historical trends of query results.&lt;br /&gt;
* View registries to show compliance of QOF and other data sets, easily comparing, practices, CCGS and hospitals.&lt;br /&gt;
* Drill-down to lists of patients behind query results.&lt;br /&gt;
* View each patient’s complete integrated care record.&lt;br /&gt;
* Use our dashboard suit or create a csv output for your query to interrogate in 3rd party applications.&lt;br /&gt;
* Create outputs containing demographic, medication, encounter or clinical data.&lt;br /&gt;
* View intuitive dashboards at STP, CCG, PCN or practice level, patient identifiable or de identifiable dependent on your permission level.&lt;br /&gt;
* View geospatial maps show prevalence of diseases, conditions or vaccination up take by area.&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4639</id>
		<title>Discovery Explorer</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4639"/>
		<updated>2021-04-28T12:13:55Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Discovery Explorer is a user interface web application which allows users to build queries, dashboards and view results without any knowledge needed of the database structure or of the SQL language.&lt;br /&gt;
&lt;br /&gt;
Explorer will by nature produce more accurate results because it ‘understands’ the database structures and clinical model, and the machine generates the SQL that’s already been pre-tested&lt;br /&gt;
&lt;br /&gt;
The features and benefits of using Discovery Explorer are:&lt;br /&gt;
&lt;br /&gt;
* Create and build your own value sets with an inbuilt browser.&lt;br /&gt;
* Bulk upload your value sets from a CSV file.&lt;br /&gt;
* Create your own detailed queries with our intuitive query engine that is able to handle highly sophisticated queries in a user friendly experience - no SQL skills required.&lt;br /&gt;
* Build queries to identify patients at risk or in need of further intervention.&lt;br /&gt;
* View historical trends of query results.&lt;br /&gt;
* View registries to show compliance of QOF and other data sets, easily comparing, practices, CCGS and hospitals.&lt;br /&gt;
* Drill-down to lists of patients behind query results.&lt;br /&gt;
* View each patient’s complete integrated care record.&lt;br /&gt;
* Use our dashboard suit or create a csv output for your query to interrogate in 3rd party applications.&lt;br /&gt;
* Create outputs containing demographic, medication, encounter or clinical data.&lt;br /&gt;
* View intuitive dashboards at STP, CCG, PCN or practice level, patient identifiable or de identifiable dependent on your permission level.&lt;br /&gt;
* View geospatial maps show prevalence of diseases, conditions or vaccination up take by area.&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Explorer/Value_Set_Library&amp;diff=4256</id>
		<title>Discovery Explorer/Value Set Library</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Explorer/Value_Set_Library&amp;diff=4256"/>
		<updated>2021-04-02T14:04:45Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The article describes to navigate the value set library and add, edit and remove value sets and concepts.&lt;br /&gt;
&lt;br /&gt;
=== Accessing the value set library ===&lt;br /&gt;
Access the Value set library using menu on the left of the page.&lt;br /&gt;
&lt;br /&gt;
[[File:Menu-value_set_library.png|alt=|frameless]]&lt;br /&gt;
&lt;br /&gt;
=== The Value set library ===&lt;br /&gt;
Search for an existing value set group using &amp;quot;Filter folder&amp;quot; &#039;&#039;&#039;&#039;&#039;(1)&#039;&#039;&#039;&#039;&#039; , or by typing all or part of your value set group into the search bar &#039;&#039;&#039;&#039;&#039;(2).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To [https://wiki.discoverydataservice.org/index.php?title=Discovery_Explorer/Value_Set_Library#Creating_a_value_set create a value set group], click on the plus button on the header row &#039;&#039;&#039;&#039;&#039;(3).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To [https://wiki.discoverydataservice.org/index.php?title=Discovery_Explorer/Value_Set_Library#Populating.2Fediting_a_value_set view and edit a value set group] click on the value set group&#039;s name in the row &#039;&#039;&#039;&#039;&#039;(4).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Use the check boxes to use the multiselect functionality &#039;&#039;&#039;&#039;&#039;(5).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To add more items in view per page, use the items per page function &#039;&#039;&#039;&#039;&#039;(6).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To manually move between pages, use the next page/previous page buttons &#039;&#039;&#039;&#039;&#039;(7).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Value_Set_Library.png|alt=|frameless|876x876px]]&lt;br /&gt;
&lt;br /&gt;
=== Creating a value set ===&lt;br /&gt;
Type in a value set folder name, create a new folder or assign your value set to an existing folder using the existing name.&lt;br /&gt;
&lt;br /&gt;
Give your value set group a name, both of these fields are required.&lt;br /&gt;
&lt;br /&gt;
Clicking save will create the group, you then need to locate the group to populate the value set group.&lt;br /&gt;
&lt;br /&gt;
[[File:Value Set Editor.png|frameless|411x411px]]&lt;br /&gt;
&lt;br /&gt;
=== Populating/editing a value set ===&lt;br /&gt;
The columns in the value set group window displays the Value set name, data type, original code, original term, and when it was last updated within the value set group.&lt;br /&gt;
&lt;br /&gt;
Data types can be Observation, Ethnicity, Encounter or Medication.&lt;br /&gt;
&lt;br /&gt;
Select individual or sub groups of value sets by clicking on filter value sets &#039;&#039;&#039;&#039;&#039;(1).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Search for value sets or codes using all or part of any column &#039;&#039;&#039;&#039;&#039;(2).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you wish to add a code use [https://wiki.discoverydataservice.org/index.php?title=Discovery_Explorer/Value_Set_Library#Add_concept_through_find_concepts Find Concepts] &#039;&#039;&#039;&#039;&#039;(3)&#039;&#039;&#039;&#039;&#039; to search for all or part of your code, or use the [https://wiki.discoverydataservice.org/index.php?title=Discovery_Explorer/Value_Set_Library#Add_concept_through_plus_icon &#039;&#039;&#039;+&#039;&#039;&#039; button] &#039;&#039;&#039;&#039;&#039;(4)&#039;&#039;&#039;&#039;&#039; if you have the full details of the code.&lt;br /&gt;
&lt;br /&gt;
Edit a code by clicking on the check box &#039;&#039;&#039;&#039;&#039;(5)&#039;&#039;&#039;&#039;&#039; and clicking on the pencil icon that appears in the header row. &lt;br /&gt;
&lt;br /&gt;
[[File:Pencil_icon.png|alt=|frameless]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To remove a code from the value set and group click on the check box &#039;&#039;&#039;&#039;&#039;(5)&#039;&#039;&#039;&#039;&#039; and use the bin icon to remove your selection.&lt;br /&gt;
&lt;br /&gt;
[[File:Bin_Icon.png|alt=]]&lt;br /&gt;
&lt;br /&gt;
You can download the value set group into a CSV file for use elsewhere by clicking on the download button &#039;&#039;&#039;&#039;&#039;(6).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To add more items in view per page, use the items per page function &#039;&#039;&#039;&#039;&#039;(7).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To manually move between pages, use the next page/previous page buttons &#039;&#039;&#039;&#039;&#039;(8).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Concept_Selector.png|alt=|frameless|897x897px]]&lt;br /&gt;
&lt;br /&gt;
=== Add concept through Find Concepts ===&lt;br /&gt;
Use the search bar to search for all or part of your code term &#039;&#039;&#039;&#039;&#039;(1).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search will return any matches, present the original code, original term, the use count for that code to tell you how frequent that code is in use.&lt;br /&gt;
&lt;br /&gt;
Multiple codes can be selected to be added at once using the check boxes &#039;&#039;&#039;&#039;&#039;(2).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When added single or multiple codes, you must select the value set name. Create a value set typing a new name or add to a value set by matching a previously used name &#039;&#039;&#039;&#039;&#039;(3).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Select a data type of Observation, Ethnicity, Encounter or Medication &#039;&#039;&#039;&#039;&#039;(4).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Confirm your selection by clicking on Add selected concepts, this cannot be selected until the value set name and data type is confirmed &#039;&#039;&#039;&#039;&#039;(5)&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:Concept browser.png|frameless|889x889px]]&lt;br /&gt;
&lt;br /&gt;
=== Add concept through plus icon ===&lt;br /&gt;
To add a code through the Value set code editor you must select the value set name. Create a value set typing a new name or add to a value set by matching a previously&lt;br /&gt;
&lt;br /&gt;
used name.&lt;br /&gt;
&lt;br /&gt;
Select a data type of Observation, Ethnicity, Encounter or Medication.&lt;br /&gt;
&lt;br /&gt;
Type in the correct original code and then the original term, use the link to the [https://termbrowser.nhs.uk/? SNOMED-CT] browser to confirm your code.&lt;br /&gt;
&lt;br /&gt;
[[File:Value_set_code_editor.png|alt=|frameless|337x337px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Explorer/Value_Set_Library&amp;diff=4255</id>
		<title>Discovery Explorer/Value Set Library</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Explorer/Value_Set_Library&amp;diff=4255"/>
		<updated>2021-04-02T13:58:42Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The article describes to navigate the value set library and add, edit and remove value sets and concepts.&lt;br /&gt;
&lt;br /&gt;
=== Accessing the value set library ===&lt;br /&gt;
Access the Value set library using menu on the left of the page.&lt;br /&gt;
&lt;br /&gt;
[[File:Menu-value_set_library.png|alt=|frameless]]&lt;br /&gt;
&lt;br /&gt;
=== The Value set library ===&lt;br /&gt;
Search for an existing value set group using &amp;quot;Filter folder&amp;quot; &#039;&#039;&#039;&#039;&#039;(1)&#039;&#039;&#039;&#039;&#039; , or by typing all or part of your value set group into the search bar &#039;&#039;&#039;&#039;&#039;(2).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To create a value set group, click on the plus button on the header row &#039;&#039;&#039;&#039;&#039;(3).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To view and edit a value set group click on the value set group&#039;s name in the row &#039;&#039;&#039;&#039;&#039;(4).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Use the check boxes to use the multiselect functionality &#039;&#039;&#039;&#039;&#039;(5).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To add more items in view per page, use the items per page function &#039;&#039;&#039;&#039;&#039;(6).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To manually move between pages, use the next page/previous page buttons &#039;&#039;&#039;&#039;&#039;(7).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Value_Set_Library.png|alt=|frameless|876x876px]]&lt;br /&gt;
&lt;br /&gt;
=== Creating a value set ===&lt;br /&gt;
Type in a value set folder name, create a new folder or assign your value set to an existing folder using the existing name.&lt;br /&gt;
&lt;br /&gt;
Give your value set group a name, both of these fields are required.&lt;br /&gt;
&lt;br /&gt;
Clicking save will create the group, you then need to locate the group to populate the value set group.&lt;br /&gt;
&lt;br /&gt;
[[File:Value Set Editor.png|frameless|411x411px]]&lt;br /&gt;
&lt;br /&gt;
=== Populating/editing a value set ===&lt;br /&gt;
The columns in the value set group window displays the Value set name, data type, original code, original term, and when it was last updated within the value set group.&lt;br /&gt;
&lt;br /&gt;
Data types can be Observation, Ethnicity, Encounter or Medication.&lt;br /&gt;
&lt;br /&gt;
Select individual or sub groups of value sets by clicking on filter value sets &#039;&#039;&#039;&#039;&#039;(1).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Search for value sets or codes using all or part of any column &#039;&#039;&#039;&#039;&#039;(2).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you wish to add a code use Find Concepts &#039;&#039;&#039;&#039;&#039;(3)&#039;&#039;&#039;&#039;&#039; to search for all or part of your code, or use the &#039;&#039;&#039;+&#039;&#039;&#039; button &#039;&#039;&#039;&#039;&#039;(4)&#039;&#039;&#039;&#039;&#039; if you have the full details of the code.&lt;br /&gt;
&lt;br /&gt;
Edit a code by clicking on the check box &#039;&#039;&#039;&#039;&#039;(5)&#039;&#039;&#039;&#039;&#039; and clicking on the pencil icon that appears in the header row. &lt;br /&gt;
&lt;br /&gt;
[[File:Pencil_icon.png|alt=|frameless]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To remove a code from the value set and group click on the check box &#039;&#039;&#039;&#039;&#039;(5)&#039;&#039;&#039;&#039;&#039; and use the bin icon to remove your selection.&lt;br /&gt;
&lt;br /&gt;
[[File:Bin_Icon.png|alt=]]&lt;br /&gt;
&lt;br /&gt;
You can download the value set group into a CSV file for use elsewhere by clicking on the download button &#039;&#039;&#039;&#039;&#039;(6).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To add more items in view per page, use the items per page function &#039;&#039;&#039;&#039;&#039;(7).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To manually move between pages, use the next page/previous page buttons &#039;&#039;&#039;&#039;&#039;(8).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Concept_Selector.png|alt=|frameless|897x897px]]&lt;br /&gt;
&lt;br /&gt;
=== Add concept through find concepts ===&lt;br /&gt;
Use the search bar to search for all or part of your code term &#039;&#039;&#039;&#039;&#039;(1).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search will return any matches, present the original code, original term, the use count for that code to tell you how frequent that code is in use.&lt;br /&gt;
&lt;br /&gt;
Multiple codes can be selected to be added at once using the check boxes &#039;&#039;&#039;&#039;&#039;(2).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When added single or multiple codes, you must select the value set name. Create a value set typing a new name or add to a value set by matching a previously used name &#039;&#039;&#039;&#039;&#039;(3).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Select a data type of Observation, Ethnicity, Encounter or Medication &#039;&#039;&#039;&#039;&#039;(4).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Confirm your selection by clicking on Add selected concepts, this cannot be selected until the value set name and data type is confirmed &#039;&#039;&#039;&#039;&#039;(5)&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:Concept browser.png|frameless|889x889px]]&lt;br /&gt;
&lt;br /&gt;
=== Add concept through plus icon ===&lt;br /&gt;
To add a code through the Value set code editor you must select the value set name. Create a value set typing a new name or add to a value set by matching a previously&lt;br /&gt;
&lt;br /&gt;
used name.&lt;br /&gt;
&lt;br /&gt;
Select a data type of Observation, Ethnicity, Encounter or Medication.&lt;br /&gt;
&lt;br /&gt;
Type in the correct original code and then the original term, use the link to the SNOMED-CT browser to confirm your code.&lt;br /&gt;
&lt;br /&gt;
[[File:Value_set_code_editor.png|alt=|frameless|337x337px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Explorer/Value_Set_Library&amp;diff=4254</id>
		<title>Discovery Explorer/Value Set Library</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Explorer/Value_Set_Library&amp;diff=4254"/>
		<updated>2021-04-02T13:57:31Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The article describes to navigate the value set library and add, edit and remove value sets and concepts.&lt;br /&gt;
&lt;br /&gt;
=== Accessing the value set library ===&lt;br /&gt;
Access the Value set library using menu on the left of the page.&lt;br /&gt;
&lt;br /&gt;
[[File:Menu-value_set_library.png|alt=|frameless]]&lt;br /&gt;
&lt;br /&gt;
=== The Value set library ===&lt;br /&gt;
Search for an existing value set group using &amp;quot;Filter folder&amp;quot; &#039;&#039;&#039;&#039;&#039;(1)&#039;&#039;&#039;&#039;&#039; , or by typing all or part of your value set group into the search bar &#039;&#039;&#039;&#039;&#039;(2).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To create a value set group, click on the plus button on the header row &#039;&#039;&#039;&#039;&#039;(3).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To view and edit a value set group click on the value set group&#039;s name in the row &#039;&#039;&#039;&#039;&#039;(4).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Use the check boxes to use the multiselect functionality &#039;&#039;&#039;&#039;&#039;(5).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To add more items in view per page, use the items per page function &#039;&#039;&#039;&#039;&#039;(6).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To manually move between pages, use the next page/previous page buttons &#039;&#039;&#039;&#039;&#039;(7).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== [[File:Value_Set_Library.png|alt=|frameless|876x876px]]  ===&lt;br /&gt;
=== Creating a value set ===&lt;br /&gt;
Type in a value set folder name, create a new folder or assign your value set to an existing folder using the existing name.&lt;br /&gt;
&lt;br /&gt;
Give your value set group a name, both of these fields are required.&lt;br /&gt;
&lt;br /&gt;
Clicking save will create the group, you then need to locate the group to populate the value set group.&lt;br /&gt;
&lt;br /&gt;
[[File:Value Set Editor.png|frameless|411x411px]]&lt;br /&gt;
&lt;br /&gt;
=== Populating/editing a value set ===&lt;br /&gt;
The columns in the value set group window displays the Value set name, data type, original code, original term, and when it was last updated within the value set group.&lt;br /&gt;
&lt;br /&gt;
Data types can be Observation, Ethnicity, Encounter or Medication.&lt;br /&gt;
&lt;br /&gt;
Select individual or sub groups of value sets by clicking on filter value sets &#039;&#039;&#039;&#039;&#039;(1).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Search for value sets or codes using all or part of any column &#039;&#039;&#039;&#039;&#039;(2).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you wish to add a code use Find Concepts &#039;&#039;&#039;&#039;&#039;(3)&#039;&#039;&#039;&#039;&#039; to search for all or part of your code, or use the &#039;&#039;&#039;+&#039;&#039;&#039; button &#039;&#039;&#039;&#039;&#039;(4)&#039;&#039;&#039;&#039;&#039; if you have the full details of the code.&lt;br /&gt;
&lt;br /&gt;
Edit a code by clicking on the check box &#039;&#039;&#039;&#039;&#039;(5)&#039;&#039;&#039;&#039;&#039; and clicking on the pencil icon that appears in the header row. &lt;br /&gt;
&lt;br /&gt;
[[File:Pencil_icon.png|alt=|frameless]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To remove a code from the value set and group click on the check box &#039;&#039;&#039;&#039;&#039;(5)&#039;&#039;&#039;&#039;&#039; and use the bin icon to remove your selection.&lt;br /&gt;
&lt;br /&gt;
[[File:Bin_Icon.png|alt=]]&lt;br /&gt;
&lt;br /&gt;
You can download the value set group into a CSV file for use elsewhere by clicking on the download button &#039;&#039;&#039;&#039;&#039;(6).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To add more items in view per page, use the items per page function &#039;&#039;&#039;&#039;&#039;(7).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To manually move between pages, use the next page/previous page buttons &#039;&#039;&#039;&#039;&#039;(8).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Concept_Selector.png|alt=|frameless|897x897px]]&lt;br /&gt;
&lt;br /&gt;
=== Add concept through find concepts ===&lt;br /&gt;
Use the search bar to search for all or part of your code term &#039;&#039;&#039;&#039;&#039;(1).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search will return any matches, present the original code, original term, the use count for that code to tell you how frequent that code is in use.&lt;br /&gt;
&lt;br /&gt;
Multiple codes can be selected to be added at once using the check boxes &#039;&#039;&#039;&#039;&#039;(2).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When added single or multiple codes, you must select the value set name. Create a value set typing a new name or add to a value set by matching a previously used name &#039;&#039;&#039;&#039;&#039;(3).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Select a data type of Observation, Ethnicity, Encounter or Medication &#039;&#039;&#039;&#039;&#039;(4).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Confirm your selection by clicking on Add selected concepts, this cannot be selected until the value set name and data type is confirmed &#039;&#039;&#039;&#039;&#039;(5)&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:Concept browser.png|frameless|889x889px]]&lt;br /&gt;
&lt;br /&gt;
=== Add concept through plus icon ===&lt;br /&gt;
To add a code through the Value set code editor you must select the value set name. Create a value set typing a new name or add to a value set by matching a previously&lt;br /&gt;
&lt;br /&gt;
used name.&lt;br /&gt;
&lt;br /&gt;
Select a data type of Observation, Ethnicity, Encounter or Medication.&lt;br /&gt;
&lt;br /&gt;
Type in the correct original code and then the original term, use the link to the SNOMED-CT browser to confirm your code.&lt;br /&gt;
&lt;br /&gt;
[[File:Value_set_code_editor.png|alt=|frameless|337x337px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Explorer/Value_Set_Library&amp;diff=4253</id>
		<title>Discovery Explorer/Value Set Library</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Explorer/Value_Set_Library&amp;diff=4253"/>
		<updated>2021-04-02T13:40:37Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The article describes to navigate the value set library and add, edit and remove value sets and concepts.&lt;br /&gt;
&lt;br /&gt;
=== Accessing the value set library ===&lt;br /&gt;
Access the Value set library using menu on the left of the page.&lt;br /&gt;
&lt;br /&gt;
[[File:Menu-value_set_library.png|alt=|frameless]]&lt;br /&gt;
&lt;br /&gt;
=== The Value set library ===&lt;br /&gt;
Search for an existing value set group using &amp;quot;Filter folder&amp;quot; &#039;&#039;&#039;&#039;&#039;(1)&#039;&#039;&#039;&#039;&#039; , or by typing all or part of your value set group into the search bar &#039;&#039;&#039;&#039;&#039;(2).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To create a value set group, click on the plus button on the header row &#039;&#039;&#039;&#039;&#039;(3).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To view and edit a value set group click on the value set group&#039;s name in the row &#039;&#039;&#039;&#039;&#039;(4).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Use the check boxes to use the multiselect functionality &#039;&#039;&#039;&#039;&#039;(5).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To add more items in view per page, use the items per page function &#039;&#039;&#039;&#039;&#039;(6).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To manually move between pages, use the next page/previous page buttons &#039;&#039;&#039;&#039;&#039;(7).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== [[File:Value_Set_Library.png|alt=|frameless|876x876px]] Creating a value set ===&lt;br /&gt;
Type in a value set folder name, create a new folder or assign your value set to an existing folder using the existing name.&lt;br /&gt;
&lt;br /&gt;
Give your value set group a name, both of these fields are required.&lt;br /&gt;
&lt;br /&gt;
Clicking save will create the group, you then need to locate the group to populate the value set group.&lt;br /&gt;
&lt;br /&gt;
[[File:Value Set Editor.png|frameless|411x411px]]&lt;br /&gt;
&lt;br /&gt;
=== Populating/editing a value set ===&lt;br /&gt;
The columns in the value set group window displays the Value set name, data type, original code, original term, and when it was last updated within the value set group.&lt;br /&gt;
&lt;br /&gt;
Data types can be Observation, Ethnicity, Encounter or Medication.&lt;br /&gt;
&lt;br /&gt;
Select individual or sub groups of value sets by clicking on filter value sets &#039;&#039;&#039;&#039;&#039;(1).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Search for value sets or codes using all or part of any column &#039;&#039;&#039;&#039;&#039;(2).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you wish to add a code use Find Concepts &#039;&#039;&#039;&#039;&#039;(3)&#039;&#039;&#039;&#039;&#039; to search for all or part of your code, or use the &#039;&#039;&#039;+&#039;&#039;&#039; button &#039;&#039;&#039;&#039;&#039;(4)&#039;&#039;&#039;&#039;&#039; if you have the full details of the code.&lt;br /&gt;
&lt;br /&gt;
Edit a code by clicking on the check box &#039;&#039;&#039;&#039;&#039;(5)&#039;&#039;&#039;&#039;&#039; and clicking on the pencil icon that appears in the header row. &lt;br /&gt;
&lt;br /&gt;
[[File:Pencil_icon.png|alt=|frameless]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To remove a code from the value set and group click on the check box &#039;&#039;&#039;&#039;&#039;(5)&#039;&#039;&#039;&#039;&#039; and use the bin icon to remove your selection.&lt;br /&gt;
&lt;br /&gt;
[[File:Bin_Icon.png|alt=]]&lt;br /&gt;
&lt;br /&gt;
You can download the value set group into a CSV file for use elsewhere by clicking on the download button &#039;&#039;&#039;&#039;&#039;(6).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To add more items in view per page, use the items per page function &#039;&#039;&#039;&#039;&#039;(7).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To manually move between pages, use the next page/previous page buttons &#039;&#039;&#039;&#039;&#039;(8).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Concept_Selector.png|alt=|frameless|897x897px]]&lt;br /&gt;
&lt;br /&gt;
=== Add concept through find concepts ===&lt;br /&gt;
Use the search bar to search for all or part of your code term &#039;&#039;&#039;&#039;&#039;(1).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search will return any matches, present the original code, original term, the use count for that code to tell you how frequent that code is in use.&lt;br /&gt;
&lt;br /&gt;
Multiple codes can be selected to be added at once using the check boxes &#039;&#039;&#039;&#039;&#039;(2).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When added single or multiple codes, you must select the value set name. Create a value set typing a new name or add to a value set by matching a previously used name &#039;&#039;&#039;&#039;&#039;(3).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Select a data type of Observation, Ethnicity, Encounter or Medication &#039;&#039;&#039;&#039;&#039;(4).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Confirm your selection by clicking on Add selected concepts, this cannot be selected until the value set name and data type is confirmed &#039;&#039;&#039;&#039;&#039;(5)&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:Concept browser.png|frameless|889x889px]]&lt;br /&gt;
&lt;br /&gt;
=== Add concept through plus icon ===&lt;br /&gt;
To add a code through the Value set code editor you must select the value set name. Create a value set typing a new name or add to a value set by matching a previously&lt;br /&gt;
&lt;br /&gt;
used name.&lt;br /&gt;
&lt;br /&gt;
Select a data type of Observation, Ethnicity, Encounter or Medication.&lt;br /&gt;
&lt;br /&gt;
Type in the correct original code and then the original term, use the link to the SNOMED-CT browser to confirm your code.&lt;br /&gt;
&lt;br /&gt;
[[File:Value_set_code_editor.png|alt=|frameless|337x337px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Explorer/Value_Set_Library&amp;diff=4252</id>
		<title>Discovery Explorer/Value Set Library</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Explorer/Value_Set_Library&amp;diff=4252"/>
		<updated>2021-04-02T13:39:50Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The article describes to navigate the value set library and add, edit and remove value sets and concepts.&lt;br /&gt;
&lt;br /&gt;
=== Accessing the value set library ===&lt;br /&gt;
Access the Value set library using menu on the left of the page.&lt;br /&gt;
&lt;br /&gt;
[[File:Menu-value_set_library.png|alt=|frameless]]&lt;br /&gt;
&lt;br /&gt;
=== The Value set library ===&lt;br /&gt;
Search for an existing value set group using &amp;quot;Filter folder&amp;quot; &#039;&#039;&#039;&#039;&#039;(1)&#039;&#039;&#039;&#039;&#039; , or by typing all or part of your value set group into the search bar &#039;&#039;&#039;&#039;&#039;(2).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To create a value set group, click on the plus button on the header row &#039;&#039;&#039;&#039;&#039;(3).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To view and edit a value set group click on the value set group&#039;s name in the row &#039;&#039;&#039;&#039;&#039;(4).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Use the check boxes to use the multiselect functionality &#039;&#039;&#039;&#039;&#039;(5).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To add more items in view per page, use the items per page function &#039;&#039;&#039;&#039;&#039;(6).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To manually move between pages, use the next page/previous page buttons &#039;&#039;&#039;&#039;&#039;(7).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== [[File:Value_Set_Library.png|alt=|frameless|876x876px]] Creating a value set ===&lt;br /&gt;
Type in a value set folder name, create a new folder or assign your value set to an existing folder using the existing name.&lt;br /&gt;
&lt;br /&gt;
Give your value set group a name, both of these fields are required.&lt;br /&gt;
&lt;br /&gt;
Clicking save will create the group, you then need to locate the group to populate the value set group.&lt;br /&gt;
&lt;br /&gt;
[[File:Value Set Editor.png|frameless|411x411px]]&lt;br /&gt;
&lt;br /&gt;
=== Populating/editing a value set ===&lt;br /&gt;
The columns in the value set group window displays the Value set name, data type, original code, original term, and when it was last updated within the value set group.&lt;br /&gt;
&lt;br /&gt;
Data types can be Observation, Ethnicity, Encounter or Medication.&lt;br /&gt;
&lt;br /&gt;
Select individual or sub groups of value sets by clicking on filter value sets &#039;&#039;&#039;&#039;&#039;(1).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Search for value sets or codes using all or part of any column &#039;&#039;&#039;&#039;&#039;(2).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you wish to add a code use Find Concepts &#039;&#039;&#039;&#039;&#039;(3)&#039;&#039;&#039;&#039;&#039; to search for all or part of your code, or use the &#039;&#039;&#039;+&#039;&#039;&#039; button &#039;&#039;&#039;&#039;&#039;(4)&#039;&#039;&#039;&#039;&#039; if you have the full details of the code.&lt;br /&gt;
&lt;br /&gt;
Edit a code by clicking on the check box &#039;&#039;&#039;&#039;&#039;(5)&#039;&#039;&#039;&#039;&#039; and clicking on the pencil icon that appears in the header row. &lt;br /&gt;
&lt;br /&gt;
[[File:Pencil_icon.png|alt=|frameless]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To remove a code from the value set and group click on the check box &#039;&#039;&#039;&#039;&#039;(5)&#039;&#039;&#039;&#039;&#039; and use the bin icon to remove your selection.&lt;br /&gt;
&lt;br /&gt;
[[File:Bin_Icon.png|alt=]]&lt;br /&gt;
You can download the value set group into a CSV file for use elsewhere by clicking on the download button &#039;&#039;&#039;&#039;&#039;(6).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To add more items in view per page, use the items per page function &#039;&#039;&#039;&#039;&#039;(7).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To manually move between pages, use the next page/previous page buttons &#039;&#039;&#039;&#039;&#039;(8).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Concept_Selector.png|alt=|frameless|897x897px]]&lt;br /&gt;
&lt;br /&gt;
=== Add concept through find concepts ===&lt;br /&gt;
Use the search bar to search for all or part of your code term &#039;&#039;&#039;&#039;&#039;(1).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search will return any matches, present the original code, original term, the use count for that code to tell you how frequent that code is in use.&lt;br /&gt;
&lt;br /&gt;
Multiple codes can be selected to be added at once using the check boxes &#039;&#039;&#039;&#039;&#039;(2).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When added single or multiple codes, you must select the value set name. Create a value set typing a new name or add to a value set by matching a previously used name &#039;&#039;&#039;&#039;&#039;(3).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Select a data type of Observation, Ethnicity, Encounter or Medication &#039;&#039;&#039;&#039;&#039;(4).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Confirm your selection by clicking on Add selected concepts, this cannot be selected until the value set name and data type is confirmed &#039;&#039;&#039;&#039;&#039;(5)&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:Concept browser.png|frameless|889x889px]]&lt;br /&gt;
&lt;br /&gt;
=== Add concept through plus icon ===&lt;br /&gt;
To add a code through the Value set code editor you must select the value set name. Create a value set typing a new name or add to a value set by matching a previously&lt;br /&gt;
&lt;br /&gt;
used name.&lt;br /&gt;
&lt;br /&gt;
Select a data type of Observation, Ethnicity, Encounter or Medication.&lt;br /&gt;
&lt;br /&gt;
Type in the correct original code and then the original term, use the link to the SNOMED-CT browser to confirm your code.&lt;br /&gt;
&lt;br /&gt;
[[File:Value_set_code_editor.png|alt=|frameless|337x337px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Explorer/Value_Set_Library&amp;diff=4251</id>
		<title>Discovery Explorer/Value Set Library</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Explorer/Value_Set_Library&amp;diff=4251"/>
		<updated>2021-04-02T13:39:28Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The article describes to navigate the value set library and add, edit and remove value sets and concepts.&lt;br /&gt;
&lt;br /&gt;
=== Accessing the value set library ===&lt;br /&gt;
Access the Value set library using menu on the left of the page.&lt;br /&gt;
[[File:Menu-value set library.png|left|frameless]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Value set library ===&lt;br /&gt;
Search for an existing value set group using &amp;quot;Filter folder&amp;quot; &#039;&#039;&#039;&#039;&#039;(1)&#039;&#039;&#039;&#039;&#039; , or by typing all or part of your value set group into the search bar &#039;&#039;&#039;&#039;&#039;(2).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To create a value set group, click on the plus button on the header row &#039;&#039;&#039;&#039;&#039;(3).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To view and edit a value set group click on the value set group&#039;s name in the row &#039;&#039;&#039;&#039;&#039;(4).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Use the check boxes to use the multiselect functionality &#039;&#039;&#039;&#039;&#039;(5).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To add more items in view per page, use the items per page function &#039;&#039;&#039;&#039;&#039;(6).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To manually move between pages, use the next page/previous page buttons &#039;&#039;&#039;&#039;&#039;(7).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== [[File:Value_Set_Library.png|alt=|frameless|876x876px]] Creating a value set ===&lt;br /&gt;
Type in a value set folder name, create a new folder or assign your value set to an existing folder using the existing name.&lt;br /&gt;
&lt;br /&gt;
Give your value set group a name, both of these fields are required.&lt;br /&gt;
&lt;br /&gt;
Clicking save will create the group, you then need to locate the group to populate the value set group.&lt;br /&gt;
&lt;br /&gt;
[[File:Value Set Editor.png|frameless|411x411px]]&lt;br /&gt;
&lt;br /&gt;
=== Populating/editing a value set ===&lt;br /&gt;
The columns in the value set group window displays the Value set name, data type, original code, original term, and when it was last updated within the value set group.&lt;br /&gt;
&lt;br /&gt;
Data types can be Observation, Ethnicity, Encounter or Medication.&lt;br /&gt;
&lt;br /&gt;
Select individual or sub groups of value sets by clicking on filter value sets &#039;&#039;&#039;&#039;&#039;(1).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Search for value sets or codes using all or part of any column &#039;&#039;&#039;&#039;&#039;(2).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you wish to add a code use Find Concepts &#039;&#039;&#039;&#039;&#039;(3)&#039;&#039;&#039;&#039;&#039; to search for all or part of your code, or use the &#039;&#039;&#039;+&#039;&#039;&#039; button &#039;&#039;&#039;&#039;&#039;(4)&#039;&#039;&#039;&#039;&#039; if you have the full details of the code.&lt;br /&gt;
&lt;br /&gt;
Edit a code by clicking on the check box &#039;&#039;&#039;&#039;&#039;(5)&#039;&#039;&#039;&#039;&#039; and clicking on the pencil icon that appears in the header row. &lt;br /&gt;
&lt;br /&gt;
[[File:Pencil_icon.png|alt=|frameless]]&amp;lt;br /&amp;gt;&lt;br /&gt;
To remove a code from the value set and group click on the check box &#039;&#039;&#039;&#039;&#039;(5)&#039;&#039;&#039;&#039;&#039; and use the bin icon to remove your selection.&lt;br /&gt;
&lt;br /&gt;
[[File:Bin_Icon.png|alt=]]&lt;br /&gt;
You can download the value set group into a CSV file for use elsewhere by clicking on the download button &#039;&#039;&#039;&#039;&#039;(6).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To add more items in view per page, use the items per page function &#039;&#039;&#039;&#039;&#039;(7).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To manually move between pages, use the next page/previous page buttons &#039;&#039;&#039;&#039;&#039;(8).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Concept_Selector.png|alt=|frameless|897x897px]]&lt;br /&gt;
&lt;br /&gt;
=== Add concept through find concepts ===&lt;br /&gt;
Use the search bar to search for all or part of your code term &#039;&#039;&#039;&#039;&#039;(1).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search will return any matches, present the original code, original term, the use count for that code to tell you how frequent that code is in use.&lt;br /&gt;
&lt;br /&gt;
Multiple codes can be selected to be added at once using the check boxes &#039;&#039;&#039;&#039;&#039;(2).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When added single or multiple codes, you must select the value set name. Create a value set typing a new name or add to a value set by matching a previously used name &#039;&#039;&#039;&#039;&#039;(3).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Select a data type of Observation, Ethnicity, Encounter or Medication &#039;&#039;&#039;&#039;&#039;(4).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Confirm your selection by clicking on Add selected concepts, this cannot be selected until the value set name and data type is confirmed &#039;&#039;&#039;&#039;&#039;(5)&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:Concept browser.png|frameless|889x889px]]&lt;br /&gt;
&lt;br /&gt;
=== Add concept through plus icon ===&lt;br /&gt;
To add a code through the Value set code editor you must select the value set name. Create a value set typing a new name or add to a value set by matching a previously&lt;br /&gt;
&lt;br /&gt;
used name.&lt;br /&gt;
&lt;br /&gt;
Select a data type of Observation, Ethnicity, Encounter or Medication.&lt;br /&gt;
&lt;br /&gt;
Type in the correct original code and then the original term, use the link to the SNOMED-CT browser to confirm your code.&lt;br /&gt;
&lt;br /&gt;
[[File:Value_set_code_editor.png|alt=|frameless|337x337px]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Explorer/Value_Set_Library&amp;diff=4250</id>
		<title>Discovery Explorer/Value Set Library</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Explorer/Value_Set_Library&amp;diff=4250"/>
		<updated>2021-04-02T13:37:40Z</updated>

		<summary type="html">&lt;p&gt;Jay: Created page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The article describes to navigate the value set library and add, edit and remove value sets and concepts.&lt;br /&gt;
&lt;br /&gt;
=== Accessing the value set library ===&lt;br /&gt;
Access the Value set library using menu on the left of the page.&lt;br /&gt;
[[File:Menu-value set library.png|left|frameless]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== The Value set library ===&lt;br /&gt;
Search for an existing value set group using &amp;quot;Filter folder&amp;quot; &#039;&#039;&#039;&#039;&#039;(1)&#039;&#039;&#039;&#039;&#039; , or by typing all or part of your value set group into the search bar &#039;&#039;&#039;&#039;&#039;(2).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To create a value set group, click on the plus button on the header row &#039;&#039;&#039;&#039;&#039;(3).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To view and edit a value set group click on the value set group&#039;s name in the row &#039;&#039;&#039;&#039;&#039;(4).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Use the check boxes to use the multiselect functionality &#039;&#039;&#039;&#039;&#039;(5).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To add more items in view per page, use the items per page function &#039;&#039;&#039;&#039;&#039;(6).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To manually move between pages, use the next page/previous page buttons &#039;&#039;&#039;&#039;&#039;(7).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
[[File:Value Set Library.png|left|frameless|876x876px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Creating a value set ===&lt;br /&gt;
Type in a value set folder name, create a new folder or assign your value set to an existing folder using the existing name.&lt;br /&gt;
&lt;br /&gt;
Give your value set group a name, both of these fields are required.&lt;br /&gt;
&lt;br /&gt;
Clicking save will create the group, you then need to locate the group to populate the value set group.&lt;br /&gt;
&lt;br /&gt;
[[File:Value Set Editor.png|frameless|411x411px]]&lt;br /&gt;
&lt;br /&gt;
=== Populating/editing a value set ===&lt;br /&gt;
The columns in the value set group window displays the Value set name, data type, original code, original term, and when it was last updated within the value set group.&lt;br /&gt;
&lt;br /&gt;
Data types can be Observation, Ethnicity, Encounter or Medication.&lt;br /&gt;
&lt;br /&gt;
Select individual or sub groups of value sets by clicking on filter value sets &#039;&#039;&#039;&#039;&#039;(1).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Search for value sets or codes using all or part of any column &#039;&#039;&#039;&#039;&#039;(2).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you wish to add a code use Find Concepts &#039;&#039;&#039;&#039;&#039;(3)&#039;&#039;&#039;&#039;&#039; to search for all or part of your code, or use the &#039;&#039;&#039;+&#039;&#039;&#039; button &#039;&#039;&#039;&#039;&#039;(4)&#039;&#039;&#039;&#039;&#039; if you have the full details of the code.&lt;br /&gt;
&lt;br /&gt;
Edit a code by clicking on the check box &#039;&#039;&#039;&#039;&#039;(5)&#039;&#039;&#039;&#039;&#039; and clicking on the pencil icon that appears in the header row. &lt;br /&gt;
[[File:Pencil icon.png|left|frameless]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To remove a code from the value set and group click on the check box &#039;&#039;&#039;&#039;&#039;(5)&#039;&#039;&#039;&#039;&#039; and use the bin icon to remove your selection.&lt;br /&gt;
[[File:Bin Icon.png|left]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can download the value set group into a CSV file for use elsewhere by clicking on the download button &#039;&#039;&#039;&#039;&#039;(6).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To add more items in view per page, use the items per page function &#039;&#039;&#039;&#039;&#039;(7).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To manually move between pages, use the next page/previous page buttons &#039;&#039;&#039;&#039;&#039;(8).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Concept Selector.png|left|frameless|897x897px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Add concept through find concepts ===&lt;br /&gt;
Use the search bar to search for all or part of your code term &#039;&#039;&#039;&#039;&#039;(1).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The search will return any matches, present the original code, original term, the use count for that code to tell you how frequent that code is in use.&lt;br /&gt;
&lt;br /&gt;
Multiple codes can be selected to be added at once using the check boxes &#039;&#039;&#039;&#039;&#039;(2).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
When added single or multiple codes, you must select the value set name. Create a value set typing a new name or add to a value set by matching a previously used name &#039;&#039;&#039;&#039;&#039;(3).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Select a data type of Observation, Ethnicity, Encounter or Medication &#039;&#039;&#039;&#039;&#039;(4).&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Confirm your selection by clicking on Add selected concepts, this cannot be selected until the value set name and data type is confirmed &#039;&#039;&#039;&#039;&#039;(5)&#039;&#039;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
[[File:Concept browser.png|frameless|889x889px]]&lt;br /&gt;
&lt;br /&gt;
=== Add concept through plus icon ===&lt;br /&gt;
To add a code through the Value set code editor you must select the value set name. Create a value set typing a new name or add to a value set by matching a previously&lt;br /&gt;
&lt;br /&gt;
used name.&lt;br /&gt;
&lt;br /&gt;
Select a data type of Observation, Ethnicity, Encounter or Medication.&lt;br /&gt;
&lt;br /&gt;
Type in the correct original code and then the original term, use the link to the SNOMED-CT browser to confirm your code.&lt;br /&gt;
[[File:Value set code editor.png|left|frameless|337x337px]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=File:Concept_browser.png&amp;diff=4249</id>
		<title>File:Concept browser.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=File:Concept_browser.png&amp;diff=4249"/>
		<updated>2021-04-02T13:36:56Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Concept browser&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=File:Value_set_code_editor.png&amp;diff=4248</id>
		<title>File:Value set code editor.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=File:Value_set_code_editor.png&amp;diff=4248"/>
		<updated>2021-04-02T13:33:45Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Value set code editor&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=File:Concept_Selector.png&amp;diff=4247</id>
		<title>File:Concept Selector.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=File:Concept_Selector.png&amp;diff=4247"/>
		<updated>2021-04-02T13:30:15Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Concept Selector&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=File:Bin_Icon.png&amp;diff=4246</id>
		<title>File:Bin Icon.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=File:Bin_Icon.png&amp;diff=4246"/>
		<updated>2021-04-02T13:27:04Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Bin Icon&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=File:Pencil_icon.png&amp;diff=4245</id>
		<title>File:Pencil icon.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=File:Pencil_icon.png&amp;diff=4245"/>
		<updated>2021-04-02T13:24:54Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Pencil icon&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=File:Value_Set_Editor.png&amp;diff=4244</id>
		<title>File:Value Set Editor.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=File:Value_Set_Editor.png&amp;diff=4244"/>
		<updated>2021-04-02T13:21:28Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Value Set Editor&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=File:Value_Set_Library.png&amp;diff=4243</id>
		<title>File:Value Set Library.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=File:Value_Set_Library.png&amp;diff=4243"/>
		<updated>2021-04-02T13:17:46Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Value Set Library&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=File:Menu-value_set_library.png&amp;diff=4242</id>
		<title>File:Menu-value set library.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=File:Menu-value_set_library.png&amp;diff=4242"/>
		<updated>2021-04-02T13:11:36Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Menu/value set library&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4194</id>
		<title>Discovery Explorer</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Explorer&amp;diff=4194"/>
		<updated>2021-03-25T12:04:48Z</updated>

		<summary type="html">&lt;p&gt;Jay: Created page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Discovery Explorer is a user interface web application on top which allows users to build queries, dashboards and view results without any knowledge needed of the database structure or of the SQL language.&lt;br /&gt;
&lt;br /&gt;
Explorer will by nature produce more accurate results because it ‘understands’ the database structures and clinical model, and the machine generates the SQL that’s already been pre-tested&lt;br /&gt;
&lt;br /&gt;
The features and benefits of using Discovery Explorer are:&lt;br /&gt;
&lt;br /&gt;
* Create and build your own value sets with an inbuilt browser.&lt;br /&gt;
* Bulk upload your value sets from a CSV file.&lt;br /&gt;
* Create your own detailed queries with our intuitive query engine that is able to handle highly sophisticated queries in a user friendly experience - no SQL skills required.&lt;br /&gt;
* Build queries to identify patients at risk or in need of further intervention.&lt;br /&gt;
* View historical trends of query results.&lt;br /&gt;
* View registries to show compliance of QOF and other data sets, easily comparing, practices, CCGS and hospitals.&lt;br /&gt;
* Drill-down to lists of patients behind query results.&lt;br /&gt;
* View each patient’s complete integrated care record.&lt;br /&gt;
* Use our dashboard suit or create a csv output for your query to interrogate in 3rd party applications.&lt;br /&gt;
* Create outputs containing demographic, medication, encounter or clinical data.&lt;br /&gt;
* View intuitive dashboards at STP, CCG, PCN or practice level, patient identifiable or de identifiable dependent on your permission level.&lt;br /&gt;
* View geospatial maps show prevalence of diseases, conditions or vaccination up take by area.&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Data_%26_Analytics_passport_and_accelerator_challenge&amp;diff=2762</id>
		<title>Data &amp; Analytics passport and accelerator challenge</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Data_%26_Analytics_passport_and_accelerator_challenge&amp;diff=2762"/>
		<updated>2020-09-23T16:40:07Z</updated>

		<summary type="html">&lt;p&gt;Jay: Created page with &amp;quot;We have been asked to share this message with Data and Analytical teams so that they are able to contribute to the shaping of the solution.  If you have any other contacts whi...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;We have been asked to share this message with Data and Analytical teams so that they are able to contribute to the shaping of the solution.&lt;br /&gt;
&lt;br /&gt;
If you have any other contacts which you think might be interested in taking part please do share this further. &lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;&#039;&#039;Have your say on upcoming analytics initiatives: Passport and Accelerator challenge&#039;&#039;&#039;&#039;&#039; === &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;We would really appreciate your thoughts on a project which has the ambition to develop the Data and Analytical workforce throughout health and social care, ensuring it becomes a recognised  professional body of people with clearly defined and progressive career pathways to support that ambition.  We are interested in capturing your thoughts on the potential of a Data and Analyst Passport to enable mobility from within health and care analytics by recording qualifications, skills and key work experiences etc. &#039;&#039;  &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;We are also interested in learning whether you think a Data and Analytics Accelerator challenge would be of interest to you – this would involve forming virtual teams (NHS, Local Authority, Public health, commercial orgs, etc.) as a competitive and collective power to help solve a complex issue, with the winning team being rewarded in some way – financially or other.  We’d like to understand your views on what would make the competition both successful and fun – what should the prize be, how would the winning team be decided and what would make you want to take part.&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;A very brief survey can be found here&#039;&#039; https://www.menti.com/5dgzc6tjbz&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Remote_Subscriber_Database_(RSD)_Schema_(Compass_1)&amp;diff=2703</id>
		<title>Remote Subscriber Database (RSD) Schema (Compass 1)</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Remote_Subscriber_Database_(RSD)_Schema_(Compass_1)&amp;diff=2703"/>
		<updated>2020-09-16T16:17:44Z</updated>

		<summary type="html">&lt;p&gt;Jay: Added encounter_additional &amp;amp; encounter_event tables&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Table: allergy_intolerance ==&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|organization_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Owning organisation (i.e. publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|patient_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|person_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique individual across all organisations&lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|encounter_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|encounter.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|practitioner_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The clinician the activity is recorded against&lt;br /&gt;
|practitioner.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|clinical_effective_date&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date the clinical code is recorded for&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|date_precision_id&lt;br /&gt;
|smallint(6)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|snomed_concept_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The SNOMED code&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|original_code&lt;br /&gt;
|varchar(100) CHARACTER SET utf8 COLLATE utf8_bin&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The original code from the source system&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|original_term&lt;br /&gt;
|varchar(1000)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The original code term from the source system&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|is_review&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Is this instance of the code a review of a previous encounter&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (organization_id,person_id,id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | UNIQUE KEY allergy_intolerance_id (id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY allergy_intolerance_patient_id (patient_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY allergy_intolerance_snomed_concept_id (snomed_concept_id)&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: appointment ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|organization_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Owning organisation (i.e. publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|patient_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|person_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Unique individual across all organisations &lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|practitioner_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|The clinician the activity is recorded against&lt;br /&gt;
|practitioner.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|schedule_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|The schedule the patient was put on to book multiple appointments. ID unique to the applied schedule &lt;br /&gt;
|schedule.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|start_date &lt;br /&gt;
|datetime &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|planned_duration &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|The time allocated for the appointment, not necessarily the actual duration always in minutes&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|actual_duration &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Time between sent in and left always in minutes&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|appointment_status_id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|The status of the appointment e.g. arrived/sent in/left/DNA&lt;br /&gt;
|appointment.status.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|patient_wait &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|How long the patient waited from being marked as arrived to being sent in&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|patient_delay &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|sent_in &lt;br /&gt;
|datetime &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Date and time the patient was sent into the practitioner&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|left &lt;br /&gt;
|datetime &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Date and time the patient left the practitioner&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (organization_id,person_id,id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | UNIQUE KEY appointment_id (id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY appointment_patient_id (patient_id)&lt;br /&gt;
|}&lt;br /&gt;
== Table: appointment_status ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|value &lt;br /&gt;
|varchar(50) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (id)&lt;br /&gt;
|}&lt;br /&gt;
== Table: date_precision ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|value &lt;br /&gt;
|varchar(11) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (id)&lt;br /&gt;
|}&lt;br /&gt;
== Table: encounter ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id&lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|organization_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Owning organisation (i.e. publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|patient_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|person_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Unique individual across all organisations &lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|practitioner_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|The clinician the activity is recorded against&lt;br /&gt;
|practitioner.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|appointment_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|appointment.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|clinical_effective_date &lt;br /&gt;
|date &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|The date the clinical code is recorded for&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|date_precision_id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|snomed_concept_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|The SNOMED code&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|original_code &lt;br /&gt;
|varchar(100) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|The original code from the source system&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|original_term &lt;br /&gt;
|varchar(1000) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|The original code term from the source system&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|episode_of_care_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Is this instance of the code a review of a previous encounter&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|service_provider_organization_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (organization_id,person_id,id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | UNIQUE KEY encounter_id (id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY encounter_patient_id (patient_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY fki_encounter_appointment_id (appointment_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY fki_encounter_patient_id_organization_id (patient_id,organization_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY encounter_snomed_concept_id_clinical_effective_date (snomed_concept_id,clinical_effective_date),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY snomed_concept_id_clinical_effective_date_patient_id (snomed_concept_id,clinical_effective_date,patient_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY patient_id_clinical_effective_date_snomed_concept_id (patient_id,clinical_effective_date,snomed_concept_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY encounter_snomed_concept_id (snomed_concept_id)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: encounter_additional ==&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
|id&lt;br /&gt;
|bigint &lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Same as the id column on the  encounter table or encounter_event id column (sub encounters)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|property_id&lt;br /&gt;
|varchar(255)  &lt;br /&gt;
|NOT NULL&lt;br /&gt;
|IM reference (i.e.  Admission method)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|value_id&lt;br /&gt;
|varchar(255) &lt;br /&gt;
|NOT NULL&lt;br /&gt;
|IM reference (i.e.  Emergency admission)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |PRIMARY KEY (id, property_id)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: encounter_detail ==&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
|id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Same as the id column on the encounter table &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|organization_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Owning organisation (i.e. publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|patient_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|person_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Unique individual across all organisations &lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|practitioner_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|The clinician the activity is recorded against&lt;br /&gt;
|practitioner.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|episode_of_care_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|clinical_effective_date &lt;br /&gt;
|date &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|The date the clinical code is recorded for&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|date_precision_id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|recording_practitioner_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Who recorded the encounter &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|recording_date &lt;br /&gt;
|date &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|appointment_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|The unique reference for that appointment&lt;br /&gt;
|appointment.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|service_provider_organization_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Organisation that performed the encounter &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|location_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Where the encounter took place &lt;br /&gt;
|location.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|end_date &lt;br /&gt;
|date &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|duration_minutes &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Duration always in minutes &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|completion_status_concept_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|healthcare_service_type_concept_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|interaction_mode_concept_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|administrative_action_concept_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|purpose_concept_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|disposition_concept_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|site_of_care_type_concept_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|patient_status_concept_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (organization_id,person_id,id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | UNIQUE KEY ix_encounter_detail_id (id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY ix_encounter_detail_patient_id (patient_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY ix_encounter_detail_appointment_id (appointment_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY ix_encounter_detail_patient_id_organization_id (patient_id,organization_id)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: encounter_event ==&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|organization_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Owning organisation (i.e. publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|patient_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|person_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique individual across all organisations&lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|encounter_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|registration.type.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|practitioner_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The clinician the activity is recorded against&lt;br /&gt;
&lt;br /&gt;
|practitioner.id&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|appointment_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|appointment.id&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|clinical_effective_date&lt;br /&gt;
|datetime&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|date_precision_id&lt;br /&gt;
|smallint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|snomed_concept_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|original_code&lt;br /&gt;
|varchar(100) binary&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|original_term&lt;br /&gt;
|varchar(1000)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|episode_of_care_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|&lt;br /&gt;
|episode.of.care.id&lt;br /&gt;
|-&lt;br /&gt;
|service_provider_organization_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_recorded&lt;br /&gt;
|datetime&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|location_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Where the encounter took place&lt;br /&gt;
|location.id&lt;br /&gt;
|-&lt;br /&gt;
|finished&lt;br /&gt;
|boolean&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (organization_id,person_id,id),&lt;br /&gt;
|}&lt;br /&gt;
== Table: episode_of_care ==&lt;br /&gt;
&lt;br /&gt;
0PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|organization_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Owning organisation (i.e. publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|patient_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|person_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Unique individual across all organisations &lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|registration_type_id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|registration.type.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|date_registered &lt;br /&gt;
|date &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|date_registered_end &lt;br /&gt;
|date &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|usual_gp_practitioner_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|practitioner.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|registration_status_id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|registration.status&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (organization_id,person_id,id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | UNIQUE KEY episode_of_care_id (id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY episode_of_care_patient_id (patient_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY episode_of_care_registration_type_id (registration_type_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY episode_of_care_date_registered (date_registered),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY episode_of_care_date_registered_end (date_registered_end),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY episode_of_care_person_id (person_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY episode_of_care_organization_id (organization_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY reg_type_id_patient_id_date_registered_date_registered_end (registration_type_id,patient_id,date_registered,date_registered_end)&lt;br /&gt;
|}&lt;br /&gt;
== Table: ethnicity_lookup ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (ethnic_code)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|ethnic_code &lt;br /&gt;
|char(1) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|ethnic_name &lt;br /&gt;
|varchar(100) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (ethnic_code)&lt;br /&gt;
|}&lt;br /&gt;
== Table: flag ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|organization_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Owning organisation (i.e. publisher)&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|patient_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|person_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Unique individual across all organisations &lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|effective_date &lt;br /&gt;
|date &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|date_precision_id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|is_active&lt;br /&gt;
|tinyint(1) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|flag_text&lt;br /&gt;
|text&lt;br /&gt;
| &lt;br /&gt;
|This is a warning set by the publisher regarding he patient &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (organization_id,person_id,id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | UNIQUE KEY flag_id (id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY fk_flag_patient_id_organization_id (patient_id,organization_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY fk_flag_date_precision (date_precision_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY flag_patient_id (patient_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | CONSTRAINT fk_flag_date_precision FOREIGN KEY (date_precision_id) REFERENCES &lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | CONSTRAINT fk_flag_patient_id_organization_id FOREIGN KEY (patient_id, organization_id) REFERENCES patient (id, organization_id)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: local_authority_lookup ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (local_authority_code)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|local_authority_code &lt;br /&gt;
|varchar(9) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|local.authority.code&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|local_authority_name &lt;br /&gt;
|varchar(255) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (local_authority_code)&lt;br /&gt;
|}&lt;br /&gt;
== Table: location ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|name &lt;br /&gt;
|varchar(255) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|The name of a location set by the publisher. E.g. ward, clinic, domiciliary&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|type_code &lt;br /&gt;
|varchar(50) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|type_desc &lt;br /&gt;
|varchar(255) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|postcode &lt;br /&gt;
|varchar(10) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|managing_organization_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | UNIQUE KEY location_id (id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY fk_location_managing_organisation_id (managing_organization_id)&lt;br /&gt;
|}&lt;br /&gt;
== Table: Isoa_lookup ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (lsoa_code)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
|lsoa_code &lt;br /&gt;
|char(9)&lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|lsoa_name &lt;br /&gt;
|varchar(255) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|imd_score&lt;br /&gt;
|decimal(53) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Index of Multiple Deprivation (IMD) Score &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|imd_rank &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Index of Multiple Deprivation (IMD) Rank (where 1 is most deprived) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|imd_decile &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Index of Multiple Deprivation (IMD) Decile (where 1 is most deprived 10% of LSOAs) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|income_score &lt;br /&gt;
|decimal(53) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Income Score (rate) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|income_rank &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Income Rank (where 1 is most deprived) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|income_decile &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Income Decile (where 1 is most deprived 10% of LSOAs) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|employment_score&lt;br /&gt;
|decimal(53) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Employment Score (rate) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|employment_rank &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Employment Rank (where 1 is most deprived) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|employment_decile &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Employment Decile (where 1 is most deprived 10% of LSOAs) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|education_score&lt;br /&gt;
|decimal(53) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Education Skills and Training Score &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|education_rank &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Education Skills and Training Rank (where 1 is most deprived) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|education_decile &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Education Skills and Training Decile (where 1 is most deprived 10% of LSOAs) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|health_score&lt;br /&gt;
|decimal(53) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Health Deprivation and Disability Score &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|health_rank &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Health Deprivation and Disability Rank (where 1 is most deprived) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|health_decile &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Health Deprivation and Disability Decile (where 1 is most deprived 10% of LSOAs) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|crime_score&lt;br /&gt;
|decimal(53) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Crime Score &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|crime_rank &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Crime Rank (where 1 is most deprived) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|crime_decile &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Crime Decile (where 1 is most deprived 10% of LSOAs) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|housing_and_services_barriers_score&lt;br /&gt;
|decimal(53) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Barriers to Housing and Services Score &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|housing_and_services_barriers_rank &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Barriers to Housing and Services Rank (where 1 is most deprived) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|housing_and_services_barriers_decile &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Barriers to Housing and Services Decile (where 1 is most deprived 10% of LSOAs) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|living_environment_score&lt;br /&gt;
|decimal(53) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Living Environment Score &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|living_environment_rank &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Living Environment Rank (where 1 is most deprived) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|living_environment_decile &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Living Environment Decile (where 1 is most deprived 10% of LSOAs) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|idaci_score&lt;br /&gt;
|decimal(53) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Income Deprivation Affecting Children Index (IDACI) Score (rate) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|idaci_rank &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Income Deprivation Affecting Children Index (IDACI) Rank (where 1 is most deprived) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|idaci_decile &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Income Deprivation Affecting Children Index (IDACI) Decile (where 1 is most deprived 10% of LSOAs) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|idaopi_score&lt;br /&gt;
|decimal(53) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Income Deprivation Affecting Older People (IDAOPI) Score (rate) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|idaopi_rank &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Income Deprivation Affecting Older People (IDAOPI) Rank (where 1 is most deprived) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|idaopi_decile &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Income Deprivation Affecting Older People (IDAOPI) Decile (where 1 is most deprived 10% of LSOAs) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|children_and_young_sub_domain_score&lt;br /&gt;
|decimal(53) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Children and Young People Sub-domain Score &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|children_and_young_sub_domain_rank &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Children and Young People Sub-domain Rank (where 1 is most deprived) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|children_and_young_sub_domain_decile &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Children and Young People Sub-domain Decile (where 1 is most deprived 10% of LSOAs) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|adult_skills_sub_somain_score&lt;br /&gt;
|decimal(53) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Adult Skills Sub-domain Score &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|adult_skills_sub_somain_rank &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Adult Skills Sub-domain Rank (where 1 is most deprived) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|adult_skills_sub_somain_decile &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Adult Skills Sub-domain Decile (where 1 is most deprived 10% of LSOAs) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|geographical_barriers_sub_domain_score &lt;br /&gt;
|decimal(53) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Geographical Barriers Sub-domain Score &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|geographical_barriers_sub_domain_rank &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Geographical Barriers Sub-domain Rank (where 1 is most deprived) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|geographical_barriers_sub_domain_decile &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Geographical Barriers Sub-domain Decile (where 1 is most deprived 10% of LSOAs) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|wider_barriers_sub_domain_score&lt;br /&gt;
|decimal(53) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Wider Barriers Sub-domain Score &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|wider_barriers_sub_domain_rank &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Wider Barriers Sub-domain Rank (where 1 is most deprived) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|wider_barriers_sub_domain_decile &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Wider Barriers Sub-domain Decile (where 1 is most deprived 10% of LSOAs) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|indoors_sub_domain_score &lt;br /&gt;
|decimal(53) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Indoors Sub-domain Score &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|indoors_sub_domain_rank &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Indoors Sub-domain Rank (where 1 is most deprived) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|indoors_sub_domain_decile &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Indoors Sub-domain Decile (where 1 is most deprived 10% of LSOAs) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|outdoors_sub_domain_score&lt;br /&gt;
|decimal(53) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Outdoors Sub-domain Score &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|outdoors_sub_domain_rank &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Outdoors Sub-domain Rank (where 1 is most deprived) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|outdoors_sub_domain_decile &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Outdoors Sub-domain Decile (where 1 is most deprived 10% of LSOAs) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|total_population &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Total population: mid 2012 (excluding prisoners) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|dependent_children_0_to_15 &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Dependent Children aged 0-15: mid 2012 (excluding prisoners) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|population_16_to_59 &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Population aged 16-59: mid 2012 (excluding prisoners) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|older_population_60_and_over &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Older population aged 60 and over: mid 2012 (excluding prisoners) &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
! colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (lsoa_code)&lt;br /&gt;
|}&lt;br /&gt;
== Table: medication_order ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|organization_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Owning organisation (i.e. publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|patient_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|person_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Unique individual across all organisations &lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|encounter_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|encounter.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|practitioner_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|The clinician the activity is recorded against&lt;br /&gt;
|practitioner.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|clinical_effective_date &lt;br /&gt;
|date &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|date_precision_id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|dmd_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|dose &lt;br /&gt;
|varchar(1000) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|quantity_value &lt;br /&gt;
|double&lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|quantity_unit &lt;br /&gt;
|varchar(255) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|duration_days &lt;br /&gt;
|int(11) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|estimated_cost &lt;br /&gt;
|double&lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|medication_statement_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|original_term &lt;br /&gt;
|varchar(1000) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | UNIQUE KEY medication_order_id (id)&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY medication_order_patient_id (patient_id)&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY medication_order_dmd_id (dmd_id)&lt;br /&gt;
|}&lt;br /&gt;
== Table: medication_statement ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|organization_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Owning organisation (i.e. publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|patient_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|person_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Unique individual across all organisations &lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|encounter_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|encounter.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|practitioner_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|The clinician the activity is recorded against&lt;br /&gt;
|practitioner.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|clinical_effective_date &lt;br /&gt;
|date &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|date_precision_id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|dmd_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|is_active&lt;br /&gt;
|tinyint(4) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|cancellation_date &lt;br /&gt;
|date &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|dose &lt;br /&gt;
|varchar(1000) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|quantity_value&lt;br /&gt;
|double&lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|quantity_unit &lt;br /&gt;
|varchar(255) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|medication_statement_&amp;lt;br /&amp;gt;authorisation_type_id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|original_term &lt;br /&gt;
|varchar(1000) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (organization_id,person_id,id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | UNIQUE KEY medication_statement_id (id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY medication_statement_patient_id (patient_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY medication_statement_dmd_id (dmd_id)&lt;br /&gt;
|}&lt;br /&gt;
== Table: medication_statement_authorisation_type ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|value &lt;br /&gt;
|varchar(50) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (id)&lt;br /&gt;
|}&lt;br /&gt;
== Table: msoa_lookup ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (msoa_code)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|msoa_code char(9) &lt;br /&gt;
|NOT NULL&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|msoa_name &lt;br /&gt;
|varchar(255) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (msoa_code) &lt;br /&gt;
|}&lt;br /&gt;
== Table: observation ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|organization_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Owning organisation (i.e. publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|patient_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|person_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Unique individual across all organisations &lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|encounter_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|encounter.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|practitioner_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|The clinician the activity is recorded against&lt;br /&gt;
|practitioner.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|clinical_effective_date &lt;br /&gt;
|date &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|date_precision_id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|snomed_concept_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|result_value &lt;br /&gt;
|double&lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|result_value_units &lt;br /&gt;
|varchar(50) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|result_date &lt;br /&gt;
|date &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|result_text&lt;br /&gt;
|text&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|result_concept_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|original_code &lt;br /&gt;
|varchar(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|is_problem&lt;br /&gt;
|tinyint(1) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|original_term &lt;br /&gt;
|varchar(1000) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|is_review&lt;br /&gt;
|tinyint(1) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|problem_end_date &lt;br /&gt;
|date &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|parent_observation_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (organization_id,person_id,id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | UNIQUE KEY observation_id (id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY observation_patient_id (patient_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY observation_snomed_concept_id (snomed_concept_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY observation_snomed_concept_id_is_problem (snomed_concept_id,is_problem),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY observation_snomed_concept_id_value (snomed_concept_id,result_value),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY ix_observation_organization_id (organization_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY ix_observation_clinical_effective_date (clinical_effective_date),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY ix_observation_person_id (person_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY observation_original_code (original_code)&lt;br /&gt;
|}&lt;br /&gt;
== Table: organization ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|ods_code &lt;br /&gt;
|varchar(50) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|name &lt;br /&gt;
|varchar(255) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|type_code &lt;br /&gt;
|varchar(50) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|type_desc &lt;br /&gt;
|varchar(255) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|postcode &lt;br /&gt;
|varchar(10) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|parent_organization_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|latitude&lt;br /&gt;
|decimal(108) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|longitude&lt;br /&gt;
|decimal(118) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | UNIQUE KEY organization_id (id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY fki_organization_parent_organization_id (parent_organization_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY organization_id_parent_organization_id (id,parent_organization_id)&lt;br /&gt;
|}&lt;br /&gt;
== Table: patient ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|organization_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Owning organisation (i.e. publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|person_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Unique individual across all organisations &lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|patient_gender_id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|pseudo_id &lt;br /&gt;
|varchar(255) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|age_years &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|age_months &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|age_weeks &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|date_of_death &lt;br /&gt;
|date &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|postcode_prefix &lt;br /&gt;
|varchar(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|First part of the postcode&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|lsoa_code &lt;br /&gt;
|varchar(50) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|msoa_code &lt;br /&gt;
|varchar(50) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|msoa.lookup.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|ethnic_code &lt;br /&gt;
|char(1) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|ward_code &lt;br /&gt;
|varchar(50) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|local_authority_code &lt;br /&gt;
|varchar(50) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|registered_practice_organization_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|organisation.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (organization_id,person_id,id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | UNIQUE KEY patient_id (id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY patient_person_id (person_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY organization_id (organization_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY patient_id_organization_id (id,organization_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY organization_id_date_of_death_id (organization_id,date_of_death,id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY patient_date_of_death (date_of_death),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY postcode_prefix (postcode_prefix),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY pseudo_id (pseudo_id)&lt;br /&gt;
|}&lt;br /&gt;
== Table: patient_gender ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|value &lt;br /&gt;
|varchar(10) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (id)&lt;br /&gt;
|}&lt;br /&gt;
== Table: patient_uprn ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|patient_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|organization_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Owning organisation (i.e. publisher)&lt;br /&gt;
|organisation.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|person_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Unique individual across all organisations &lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|lsoa_code &lt;br /&gt;
|varchar(50) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|Isoa.lookup&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|pseudo_uprn &lt;br /&gt;
|varchar(255) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|qualifier &lt;br /&gt;
|varchar(50) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|algorithm &lt;br /&gt;
|varchar(255) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|match &lt;br /&gt;
|varchar(255) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|no_address&lt;br /&gt;
|tinyint(1) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|invalid_address&lt;br /&gt;
|tinyint(1) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|missing_postcode&lt;br /&gt;
|tinyint(1) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|invalid_postcode&lt;br /&gt;
|tinyint(1) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|should_be_ignored &lt;br /&gt;
|bit(1) &lt;br /&gt;
|DEFAULT b&#039;0&#039; &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|property_class &lt;br /&gt;
|varchar(10) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|ncmp_uprn &lt;br /&gt;
|varchar(255) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|ncmp_pid &lt;br /&gt;
|varchar(255) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|ncmp_pid_valid&lt;br /&gt;
|tinyint(4) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (organization_id,person_id,patient_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | UNIQUE KEY patient_uprn_id (patient_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY ix_patient_uprn_patient_org_uprn (patient_id,organization_id,pseudo_uprn),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY ix1 (patient_id)&lt;br /&gt;
|}&lt;br /&gt;
== Table: person ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|patient_gender_id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|pseudo_id &lt;br /&gt;
|varchar(255) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|age_years &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|age_months &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|age_weeks &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|date_of_death &lt;br /&gt;
|date &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|postcode_prefix &lt;br /&gt;
|varchar(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|lsoa_code &lt;br /&gt;
|varchar(50) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|lsoa.lookup.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|msoa_code &lt;br /&gt;
|varchar(50) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|msoa.lookup.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|ethnic_code &lt;br /&gt;
|char(1)&lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|ward_code &lt;br /&gt;
|varchar(50) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|ward.code.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|local_authority_code &lt;br /&gt;
|varchar(50) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|registered_practice_organization_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | UNIQUE KEY person_id (id)&lt;br /&gt;
|}&lt;br /&gt;
== Table: practitioner ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|organization_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Owning organisation (i.e. publisher)&lt;br /&gt;
|organisation.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|name &lt;br /&gt;
|varchar(1024) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|role_code &lt;br /&gt;
|varchar(50) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|role_desc &lt;br /&gt;
|varchar(255) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | UNIQUE KEY practitioner_id (id)&lt;br /&gt;
|}&lt;br /&gt;
== Table: procedure_request ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|organization_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Owning organisation (i.e. publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|patient_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|person_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Unique individual across all organisations &lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|encounter_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|encounter.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|practitioner_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|The clinician the activity is recorded against&lt;br /&gt;
|practitioner.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|clinical_effective_date &lt;br /&gt;
|date &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|date_precision_id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|snomed_concept_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|procedure_request_status_id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|original_code &lt;br /&gt;
|varchar(100) CHARACTER SET utf8 COLLATE utf8_bin &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|original_term &lt;br /&gt;
|varchar(1000) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (organization_id,person_id,id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | UNIQUE KEY procedure_request_id (id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY procedure_request_patient_id (patient_id)&lt;br /&gt;
|}&lt;br /&gt;
== Table: procedure_request_status ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|value &lt;br /&gt;
|varchar(50) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (id)&lt;br /&gt;
|}&lt;br /&gt;
== Table: referral_request ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|organization_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Owning organisation (i.e. publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|patient_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|person_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Unique individual across all organisations &lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|encounter_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|encounter.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|practitioner_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|The clinician the activity is recorded against&lt;br /&gt;
|practitioner.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|clinical_effective_date &lt;br /&gt;
|date &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|date_precision_id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|Identifies the precision of the clinical effectiveness date to either year (1) month (2) day (5) minute (12) second (13) millisecond (14)&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|snomed_concept_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|requester_organization_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|recipient_organization_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|priority_id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|referral.request.priority&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|type_id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|referral.request.type&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|mode &lt;br /&gt;
|varchar(50) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|outgoing_referral *&lt;br /&gt;
|tinyint(1) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|original_code &lt;br /&gt;
|varchar(100) CHARACTER SET utf8 COLLATE utf8_bin &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|original_term &lt;br /&gt;
|varchar(1000) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|is_review&lt;br /&gt;
|tinyint(1) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (organization_id,person_id,id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | UNIQUE KEY referral_request_id (id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY referral_request_patient_id (patient_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | KEY referral_request_snomed_concept_id (snomed_concept_id)&lt;br /&gt;
|}&lt;br /&gt;
== Table: referral_request_priority ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|value &lt;br /&gt;
|varchar(50) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (id)&lt;br /&gt;
|}&lt;br /&gt;
== Table: referral_request_type ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|value &lt;br /&gt;
|varchar(50) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (id) &lt;br /&gt;
|}&lt;br /&gt;
== Table: registration_status ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|code &lt;br /&gt;
|varchar(10) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|description &lt;br /&gt;
|varchar(50) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|is_active&lt;br /&gt;
|tinyint(1) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (id)&lt;br /&gt;
|}&lt;br /&gt;
== Table: registration_status_history ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|organization_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Owning organisation (i.e. publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|patient_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|person_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|episode_of_care_id &lt;br /&gt;
|bigint(20) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|episode.of.care.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|registration_status_id &lt;br /&gt;
|int(11) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|registration.status.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|start_date &lt;br /&gt;
|datetime &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|end_date &lt;br /&gt;
|datetime &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (organization_id,id,patient_id,person_id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | UNIQUE KEY ux_registration_status_history_id (id)&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | ENGINE=InnoDB DEFAULT CHARSET=latin1 COMMENT=&#039;stores registration status history for GP registrations&#039;;&lt;br /&gt;
|}&lt;br /&gt;
== Table: registration_type ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id &lt;br /&gt;
|smallint(6) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|code &lt;br /&gt;
|varchar(10) &lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|description&lt;br /&gt;
|varchar(30)&lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (id)&lt;br /&gt;
|}&lt;br /&gt;
== Table: schedule ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (organization_id,id)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|organization_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL &lt;br /&gt;
|Owning organisation (i.e. publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|practitioner_id bigint(20) &lt;br /&gt;
|bigint(20)&lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|practitioner.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|start_date &lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|type&lt;br /&gt;
|varchar(255) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|location&lt;br /&gt;
|varchar(255) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|location.id&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (organization_id,id),&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | UNIQUE KEY schedule_id (id)&lt;br /&gt;
|}&lt;br /&gt;
== Table: ward_lookup ==&lt;br /&gt;
&lt;br /&gt;
PRIMARY KEY (ward_code)&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Column name&lt;br /&gt;
!Data type&lt;br /&gt;
!Constraint&lt;br /&gt;
!Comments&lt;br /&gt;
!References&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|ward_code&lt;br /&gt;
|varchar(9)&lt;br /&gt;
|NOT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|ward_name &lt;br /&gt;
|varchar(255) &lt;br /&gt;
|DEFAULT NULL &lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; | PRIMARY KEY (ward_code)&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=EMIS_Notification_of_Essential_Bulk_Extracts_Maintenance_this_28th-31st_August&amp;diff=2582</id>
		<title>EMIS Notification of Essential Bulk Extracts Maintenance this 28th-31st August</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=EMIS_Notification_of_Essential_Bulk_Extracts_Maintenance_this_28th-31st_August&amp;diff=2582"/>
		<updated>2020-08-26T14:03:48Z</updated>

		<summary type="html">&lt;p&gt;Jay: Created page with &amp;quot;The following is a notification we have received from EMIS Health regarding their bulk extract service for maintenance this weekend 28th-31st August. This will affect customer...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The following is a notification we have received from EMIS Health regarding their bulk extract service for maintenance this weekend 28th-31st August. This will affect customers using a Discovery Data Service Remote Subscriber Database. Please review the notification below and contact your Account Manager if you have any queries.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Notification from EMIS Health as follows:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;EMIS are required to undertake essential maintenance on the underlying architecture supporting Bulk Extract Interface in order to maintain service performance and availability, and keep within the boundaries of their support agreements with vendors.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;This work is being planned to take place urgently over this coming Bank Holiday weekend, with the expectation that this will minimise disruption. The work is expected to take up to four days whilst we work with the system vendors (Microsoft and HPe) carrying out the maintenance.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;As a result, EMIS do not expect to generate any extracts from 28th August – 31st August inclusive. When extract generation restarts on 1st September, there will be a risk of a reduced service and suspension of bulk and rebulks for up to 1 week whilst the extract servers catch up with the data processing. No data will be lost.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;EMIS apologise for the disruption that this may cause, it is unfortunately unavoidable and wholly necessary to ensure future service continuity.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;We will send a further communication once the work has completed.&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Remote_Subscriber_Database_(RSD)_Schema_(Compass_2)&amp;diff=2248</id>
		<title>Remote Subscriber Database (RSD) Schema (Compass 2)</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Remote_Subscriber_Database_(RSD)_Schema_(Compass_2)&amp;diff=2248"/>
		<updated>2020-08-14T13:04:14Z</updated>

		<summary type="html">&lt;p&gt;Jay: Added comments provided by Stu&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Table: allergy_intolerance ==&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the allergy&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|organization_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Owning organisation (i.e.  publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
|patient_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The organisations record for  this person’s registration. Patients may have multiple records across  clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
|person_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique individual across all  organisations&lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
|encounter_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the encounter this  allergy was record in&lt;br /&gt;
|encounter.id&lt;br /&gt;
|-&lt;br /&gt;
|practitioner_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The clinician the activity is  recorded against&lt;br /&gt;
|practitioner.id&lt;br /&gt;
|-&lt;br /&gt;
|clinical_effective_date&lt;br /&gt;
|Date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date the clinical code is  recorded for&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_precision_concept_id&lt;br /&gt;
|Int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Identifies the precision of the  clinical effectiveness date to either year (1) month (2) day (5) minute (12)  second (13) millisecond (14)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|is_review&lt;br /&gt;
|boolean&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Is this instance of the code a  review of a previous encounter&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|core_concept_id&lt;br /&gt;
|Int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the clinical  coding of the allergy&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|non_core_concept_id&lt;br /&gt;
|Int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the clinical  coding of the allergy&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|age_at_event&lt;br /&gt;
|decimal(5,2)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The age the patient was at the  time of this event&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_recorded&lt;br /&gt;
|datetime&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The date the allergy was recorded&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT pk_allergy_intolerance_id PRIMARY KEY (`organization_id`,`person_id`,`id`),&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_allergy_intolerance_encounter_id FOREIGN KEY (encounter_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES encounter (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_allergy_intolerance_patient_id_organization_id FOREIGN KEY (patient_id, organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES patient (id, organization_id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_allergy_intolerance_practitioner_id FOREIGN KEY (practitioner_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES practitioner (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: appointment ==&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the appointment&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|organization_id&lt;br /&gt;
|varchar(36)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Owning organisation (i.e.  publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
|patient_id&lt;br /&gt;
|varchar(36)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The organisations record for  this person’s registration. Patients may have multiple records across  clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
|person_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique individual across all  organisations&lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
|practitioner_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The clinician the activity is  recorded against&lt;br /&gt;
|practitioner.id&lt;br /&gt;
|-&lt;br /&gt;
|schedule_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The schedule the patient was  put on to book multiple appointments. ID unique to the applied schedule&lt;br /&gt;
|schedule.id&lt;br /&gt;
|-&lt;br /&gt;
|start_date&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The start date of the  appointment&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|planned_duration&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The time allocated for the  appointment, not necessarily the actual duration always in minutes&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|actual_duration&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Time between sent in and left  always in minutes&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|appointment_status_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The status of the appointment  e.g. arrived/sent in/left/DNA&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|patient_wait&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|How long the patient waited  from being marked as arrived to being sent in&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|patient_delay&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|How long the patient was  delayed for&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_time_sent_in&lt;br /&gt;
|datetime&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Date and time the patient was  sent into the practitioner&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_time_left&lt;br /&gt;
|datetime&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Date and time the patient left  the practitioner&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|source_id&lt;br /&gt;
|varchar(36)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Unique reference to the source  of the appointment&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|cancelled_date&lt;br /&gt;
|datetime&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date the appointment was  cancelled&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT pk_appointment_id PRIMARY KEY (organization_id,person_id,id),&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_appointment_organization_id FOREIGN KEY (organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES organization (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_appointment_practitioner_id FOREIGN KEY (practitioner_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES practitioner (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: appointment_status ==&lt;br /&gt;
PRIMARY KEY (id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|id&lt;br /&gt;
|smallint(6)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the appointment  status&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Value&lt;br /&gt;
|varchar(50)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The value of the appointment  status&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT  PRIMARY KEY (id)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: concept ==&lt;br /&gt;
PRIMARY KEY (dbid)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|Dbid&lt;br /&gt;
|int(11)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the concept&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Document&lt;br /&gt;
|int(11)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Concept grouping construct,  deprecated&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Id&lt;br /&gt;
|varchar(150)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique concept identifier&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Draft&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Whether its draft/autocreated  or confirmed as a &amp;quot;proper&amp;quot; concept&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Name&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Short name&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Description&lt;br /&gt;
|varchar(400)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Full name (or term for  ontological concepts)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Scheme&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The coding scheme for the code  (Read, CTV3, SNOMED etc)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Code&lt;br /&gt;
|varchar(40)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The code (non-unique unless  coupled with a scheme)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|use_count&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL DEFAULT 0&lt;br /&gt;
|Rough indicator of number of  occurences of the concept&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|updated datetime&lt;br /&gt;
|datetime&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The timestamp of the last update  to the concept&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT PRIMARY KEY (dbid),&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: concept_map ==&lt;br /&gt;
PRIMARY KEY (legacy)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|Legacy&lt;br /&gt;
|int(11)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|the legacy (read 2, ctv3,  icd10, opcs4, emis local, etc) concept&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Core&lt;br /&gt;
|int(11)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|the core (snomed, discovery)  concept that the legacy concept maps to&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Updated&lt;br /&gt;
|datetime&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Timestamp the map was last  updated/added&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT PRIMARY KEY (legacy)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: concept_property_object ==&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|dbid&lt;br /&gt;
|int(11)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the concept&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|group&lt;br /&gt;
|int(11)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Grouping identifier&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|property&lt;br /&gt;
|int(11)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The property concept&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|int(11)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The value concept for the given  concepts property&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|updated&lt;br /&gt;
|datetime&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Timestamp the property value was updated/added&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: concept_tct ==&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|Source&lt;br /&gt;
|int(11)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Source concept&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Property&lt;br /&gt;
|int(11)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Property concept&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Level&lt;br /&gt;
|int(11)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The &amp;quot;distance&amp;quot; of the  from source (1=parent, 2=grandparent, etc)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Target&lt;br /&gt;
|int(11)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The target&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Status&lt;br /&gt;
|int(11)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Whether the concept is active&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|created_date&lt;br /&gt;
|datetime&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|When the concept was created&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: consent_code ==&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|STATUS&lt;br /&gt;
|varchar(10)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Whether the consent code is  active&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|DESCRIPTION&lt;br /&gt;
|varchar(100)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Description of the consent code&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|CODE&lt;br /&gt;
|varchar(20)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The actual consent code&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|TERM_CODE&lt;br /&gt;
|varchar(20)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The clinical term code&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|TERM&lt;br /&gt;
|varchar(100)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The clinical term&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: date_precision ==&lt;br /&gt;
PRIMARY KEY(id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|Id&lt;br /&gt;
|smallint(6)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Value&lt;br /&gt;
|varchar(11)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT PRIMARY KEY (id)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: diagnostic_order ==&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the diagnostic  order&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|organization_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Owning organisation (i.e.  publisher)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|patient_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The organisations record for  this person’s registration. Patients may have multiple records across  clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|person_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique individual across all  organisations&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|encounter_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the encounter the  observation was recorded at&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|practitioner_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The clinician the activity is  recorded against&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|clinical_effective_date&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date the diagnostic order  was identified by a clinician&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_precision_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Identifies the precision of the  clinical effectiveness date to either year (1) month (2) day (5) minute (12) second  (13) millisecond (14)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|result_value&lt;br /&gt;
|real&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The value of the result of the  observation&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|result_value_units&lt;br /&gt;
|varchar(50)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The units of the result of the  observation&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|result_date&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date of the result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|result_text&lt;br /&gt;
|text&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Any text associated with the  result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|result_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the clinical  coding of the result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|is_problem&lt;br /&gt;
|boolean&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Whether the observation is marked  as a problem&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|is_review&lt;br /&gt;
|boolean&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Whether the observation is a  review of an existing problem&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|problem_end_date&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The end date of the problem&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|parent_observation_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the parent  observation in a complex observation eg systolic and diastolic blood  pressures will have a parent observation of Blood pressure&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|core_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the clinical  coding of the observation&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|non_core_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the clinical  coding of the observation&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|age_at_event&lt;br /&gt;
|decimal (5,2)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The age of the patient at the  time of the observation&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|episodicity_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the episodicity of  the problem eg First, review, flare&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|is_primary&lt;br /&gt;
|boolean&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Whether the diagnostic order is  a primary order&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT pk_diagnostic_order_id PRIMARY KEY (`organization_id`,`person_id`,`id`),&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_diagnostic_order_encounter_id FOREIGN KEY (encounter_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES encounter (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_diagnostic_order_patient_id_organization_id FOREIGN KEY (patient_id, organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES patient (id, organization_id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_diagnostic_order_practitioner_id FOREIGN KEY (practitioner_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES practitioner (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: encounter ==&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the encounter&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|organization_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Owning organisation (i.e.  publisher)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|patient_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The organisations record for  this person’s registration. Patients may have multiple records across  clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|person_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique individual across all  organisations&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|practitioner_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The clinician the activity is  recorded against&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|appointment_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the appointment  this encounter took part on&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|clinical_effective_date&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date the clinical code is  recorded for&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
date_precision_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the precision of  the date of the encounter&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|episode_of_care_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Is this instance of the code a  review of a previous encounter&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|service_provider_organization_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the service  provider organisation&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|core_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the type of  encounter&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|non_core_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the type of  encounter&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|age_at_event&lt;br /&gt;
|decimal(5,2)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The age the patient was when  this encounter took place&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Type&lt;br /&gt;
|text&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Unused&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|sub_type&lt;br /&gt;
|text&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Unused&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|admission_method&lt;br /&gt;
|varchar(40)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The admission method of the  encounter&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|end_date&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The end date of the encounter&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|institution_location_id&lt;br /&gt;
|text&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the institution  the encounter took place at&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_recorded&lt;br /&gt;
|datetime&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date the encounter was  recorded&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|service_provider_organization_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the service  provider organisation&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CONSTRAINT pk_encounter_id PRIMARY KEY (organization_id,person_id,id),&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_encounter_appointment_id FOREIGN KEY (appointment_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES appointment (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,*/&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_encounter_patient_id_organization_id FOREIGN KEY (patient_id, organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES patient (id, organization_id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_encounter_practitioner_id FOREIGN KEY (practitioner_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES practitioner (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_encounter_episode_of_care_id FOREIGN KEY (episode_of_care_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES episode_of_care (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_encounter_service_provider_organization_id FOREIGN KEY (service_provider_organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES organization (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: encounter_additional ==&lt;br /&gt;
PRIMARY KEY (id, property_id, value_id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|same as the id column on the encounter table&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|property_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|IM reference (i.e. Admission method)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|value_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|IM reference (i.e. Emergency admission)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT pk_encounter_additional_id PRIMARY KEY (id, property_id, value_id)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: encounter_event ==&lt;br /&gt;
PRIMARY KEY (organization_id, person_id, id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the encounter  event&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|organization_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Owning organisation (i.e.  publisher)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|patient_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The patient this event belongs  to&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|person_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The person this event belongs  to&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|encounter_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Reference to the parent  encounter record&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|practitioner_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The clinician the activity is  recorded against&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|appointment_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the appointment  this encounter took part on&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|clinical_effective_date&lt;br /&gt;
|datetime&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date the encounter took  place&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_precision_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the precision of  the date of the encounter&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|episode_of_care_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the episode of  care this encounter belongs to&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|service_provider_organization_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the service  provider organisation&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|core_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the type of  encounter&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|non_core_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the type of  encounter&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|age_at_event&lt;br /&gt;
|decimal(5,2)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The age of the patient at the time  of the encounter&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|type&lt;br /&gt;
|text&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Unused&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|sub_type&lt;br /&gt;
|text&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Unused&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|admission_method&lt;br /&gt;
|varchar(40)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The admission method of the  encounter&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|end_date&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The end date of the encounter&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|institution_location_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the institution  the encounter took place at&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_recorded&lt;br /&gt;
|datetime&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date the encounter was  recorded&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|finished&lt;br /&gt;
|boolean&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Whether the encounter is finished&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT pk_encounter_event_id PRIMARY KEY (organization_id, person_id, id),&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_encounter_event_patient_id_organization_id FOREIGN KEY (patient_id, organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES patient (id, organization_id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_encounter_event_practitioner_id FOREIGN KEY (practitioner_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES practitioner (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_encounter_event_episode_of_care_id FOREIGN KEY (episode_of_care_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES episode_of_care (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_encounter_event_service_provider_organization_id FOREIGN KEY (service_provider_organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES organization (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: episode_of_care ==&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the episode of  care&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|organization_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Owning organisation (i.e.  publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
|patient_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The organisations record for  this person’s registration. Patients may have multiple records across  clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
|person_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique individual across all organisations&lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
|registration_type_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the registration  type of the patient&lt;br /&gt;
|registration.type.id&lt;br /&gt;
|-&lt;br /&gt;
|registration_status_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the registration  status of the patient&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_registered date&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date the registration was  started  for this episode of care&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_registered_end date&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date the registration was  ended  for this episode of care&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|usual_gp_practitioner_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the usual GP for  this episode of care&lt;br /&gt;
|Practitioner.id&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT pk_episode_of_care_id PRIMARY KEY (`organization_id`,`person_id`,`id`),&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_episode_of_care_patient_id_organisation_id FOREIGN KEY (patient_id, organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES patient (id, organization_id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_episode_of_care_practitioner_id FOREIGN KEY (usual_gp_practitioner_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES practitioner (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: ethnicity_lookup ==&lt;br /&gt;
PRIMARY KEY(ethnic_code)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|ethnic_code&lt;br /&gt;
|char(1)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Ethnic code&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ethnic_name&lt;br /&gt;
|varchar(100)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Corresponding ethnicity name&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT PRIMARY KEY (ethnic_code)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: event_log ==&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|dt_change&lt;br /&gt;
|datetime(3)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|date time the change was made to this DB&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|change_type&lt;br /&gt;
|tinyint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|type of transaction 0=insert, 1=update, 2=delete&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|table_id&lt;br /&gt;
|tinyint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|identifier of the table changed&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|record_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|id of the record changed&lt;br /&gt;
|&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: flag ==&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the flag&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|organization_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Owning organisation (i.e.  publisher)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|patient_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The organisations record for  this person’s registration. Patients may have multiple records across  clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
|person_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique individual across all organisations&lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
|effective_date&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date the flag was entered  onto the patients record&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_precision_concept_id&lt;br /&gt;
|smallint(6)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Identifies the precision of the  clinical effectiveness date to either year (1) month (2) day (5) minute (12)  second (13) millisecond (14)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|is_active&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Whether the flag is active or  not&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|flag_text&lt;br /&gt;
|text&lt;br /&gt;
|&lt;br /&gt;
|This is a warning set by the  publisher regarding he patient&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT pk_flag_id PRIMARY KEY (`organization_id`,`person_id`,`id`),&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_flag_patient_id_organization_id FOREIGN KEY (patient_id, organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES patient (id, organization_id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: location ==&lt;br /&gt;
PRIMARY KEY (pk_location_id PRIMARY KEY id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the location&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|name&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The name of a location set by  the publisher. E.g. ward, clinic, domiciliary&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|type_code,&lt;br /&gt;
|varchar(50)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The type of location&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|type_desc&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Textual description of the type  of location eg GP Practice&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|postcode&lt;br /&gt;
|varchar10)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The postcode of the location&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|managing_organization_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the managing  organisation of the location&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT pk_location_id PRIMARY KEY (id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_location_organisation_id FOREIGN KEY (managing_organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES organization (id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: medication_order ==&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the medication  order&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|organization_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Owning organisation (i.e. publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
|patient_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The organisations record for  this person’s registration. Patients may have multiple records across  clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
|person_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique individual across all  organisations&lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
|encounter_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the encounter the  medication order was issued in&lt;br /&gt;
|encounter.id&lt;br /&gt;
|-&lt;br /&gt;
|practitioner_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The clinician the activity is  recorded against&lt;br /&gt;
|practitioner.id&lt;br /&gt;
|-&lt;br /&gt;
|clinical_effective_date&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date the medication order  was issued&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_precision_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Identifies the precision of the  clinical effectiveness date to either year (1) month (2) day (5) minute (12)  second (13) millisecond (14)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|dose&lt;br /&gt;
|varchar(1000)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Textual description of the dose&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|quantity_value&lt;br /&gt;
|real&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The value of the medication  that was prescribed eg 50&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|quantity_unit&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The unit of the medication that  was prescribed eg tablets&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|duration_days&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|How many days the medication is  prescribed for&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|estimated_cost&lt;br /&gt;
|real&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The estimated cost of the  medication&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|medication_statement_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the medication  statement.  A medication statement can  have many medication orders&lt;br /&gt;
|medication.statement.id&lt;br /&gt;
|-&lt;br /&gt;
|core_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the clinical  coding of the medication&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|non_core_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the clinical  coding of the medication&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|bnf_reference&lt;br /&gt;
|varchar(6)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|A reference to the drug in the  BNF dictionary&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|age_at_event&lt;br /&gt;
|decimal(5,2)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The age the patient was at the  time of this event&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|issue_method&lt;br /&gt;
|text&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The issue method of the  medication eg hand written&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT pk_medication_order_id PRIMARY KEY (`organization_id`,`person_id`,`id`),&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_medication_order_encounter_id FOREIGN KEY (encounter_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES encounter (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_medication_order_patient_id_organization_id FOREIGN KEY (patient_id, organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES patient (id, organization_id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_medication_order_practitioner_id FOREIGN KEY (practitioner_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES practitioner (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: medication_statement ==&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the medication&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|organization_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Owning organisation (i.e.  publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
|patient_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The organisations record for  this person’s registration. Patients may have multiple records across  clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
|person_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique individual across all organisations&lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
|encounter_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the encounter this  medication was recorded in&lt;br /&gt;
|encounter.id&lt;br /&gt;
|-&lt;br /&gt;
|practitioner_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The clinician the activity is  recorded against&lt;br /&gt;
|practitioner.id&lt;br /&gt;
|-&lt;br /&gt;
|clinical_effective_date&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date the medication was  clinical relevant&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_precision_concept_id&lt;br /&gt;
|smallint(6)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Identifies the precision of the  clinical effectiveness date to either year (1) month (2) day (5) minute (12) second  (13) millisecond (14)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|is_active&lt;br /&gt;
|tinyint(4)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Whether the medication is  active or not&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|cancellation_date&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date the medication was  cancelled&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|dose&lt;br /&gt;
|varchar(1000)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Texual description of the dose  of the medication&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|quantity_value&lt;br /&gt;
|double&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The value of the medication  that was prescribed eg 50&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|quantity_unit&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The unit of the medication that  was prescribed eg tablets&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|authorisation_type_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the authorisation  type&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|core_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the clinical  coding of the medication&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|non_core_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the clinical  coding of the medication&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|bnf_reference&lt;br /&gt;
|varchar(6)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|A reference to the drug in the  BNF dictionary&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|age_at_event&lt;br /&gt;
|decimal(5,2)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The age the patient was at the  time of this event&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Issue_method&lt;br /&gt;
|text&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The issue method of the  medication eg hand written&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT pk_medication_statement_id PRIMARY KEY (`organization_id`,`person_id`,`id`),&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_medication_statement_encounter_id FOREIGN KEY (encounter_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES encounter (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_medication_statement_patient_id_organization_id FOREIGN KEY (patient_id, organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES patient (id, organization_id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_medication_statement_practitioner_id FOREIGN KEY (practitioner_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES practitioner (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: observation ==&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the observation&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|organization_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Owning organisation (i.e.  publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
|patient_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The organisations record for  this person’s registration. Patients may have multiple records across  clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
|person_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique individual across all  organisations&lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
|encounter_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the encounter the  observation was recorded at&lt;br /&gt;
|encounter.id&lt;br /&gt;
|-&lt;br /&gt;
|practitioner_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The clinician the activity is  recorded against&lt;br /&gt;
|practitioner.id&lt;br /&gt;
|-&lt;br /&gt;
|clinical_effective_date&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date the observation was  identified by a clinician&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_precision_concept_id&lt;br /&gt;
|smallint(6)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Identifies the precision of the  clinical effectiveness date to either year (1) month (2) day (5) minute (12)  second (13) millisecond (14)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|result_value&lt;br /&gt;
|double&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The value of the result of the  observation&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|result_value_units&lt;br /&gt;
|varchar(50)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The units of the result of the  observation&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|result_date&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date of the result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|result_text&lt;br /&gt;
|text&lt;br /&gt;
|&lt;br /&gt;
|Any text associated with the  result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|result_concept_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the clinical  coding of the result&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|is_problem&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Whether the observation is  marked as a problem&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|is_review&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Whether the observation is a  review of an existing problem&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|problem_end_date&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The end date of the problem&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|parent_observation_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the parent  observation in a complex observation eg systolic and diastolic blood  pressures will have a parent observation of Blood pressure&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|core_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the clinical  coding of the observation&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|non_core_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the clinical  coding of the observation&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|age_at_event&lt;br /&gt;
|decimal (5,2)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The age of the patient at the  time of the observation&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|episodicity_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the episodicity of  the problem eg First, review, flare&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|is_primary&lt;br /&gt;
|boolean&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Whether the observation is a  primary observation&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_recorded&lt;br /&gt;
|datetime&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date the observation was  recorded in the system&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT pk_observation_id PRIMARY KEY (`organization_id`,`person_id`,`id`),&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_observation_encounter_id FOREIGN KEY (encounter_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES encounter (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_observation_patient_id_organization_id FOREIGN KEY (patient_id, organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES patient (id, organization_id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_observation_practitioner_id FOREIGN KEY (practitioner_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES practitioner (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: organization ==&lt;br /&gt;
PRIMARY KEY (pk_organization_id PRIMARY KEY (id))&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the organisation&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ods_code&lt;br /&gt;
|varchar(50)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|ODS Code of the organisation&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Name&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Name of the organisation&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|type_code&lt;br /&gt;
|varchar(50)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The type of organisation&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|type_desc&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Textual description of the type  of organisation eg GP Practice&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Postcode&lt;br /&gt;
|varchar(10)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The postcode of the  organisation&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|parent_organization_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The id of the parent  organisation&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |PRIMARY KEY pk_organization_id PRIMARY KEY (id)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: patient ==&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the patient&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|organization_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Owning organisation (i.e. publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
|person_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique individual across all  organisations&lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
|title&lt;br /&gt;
|varchar(50)&lt;br /&gt;
|&lt;br /&gt;
|The title of the patient&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|first_names&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|&lt;br /&gt;
|The first names of the patient&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|last_name&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|&lt;br /&gt;
|The last name of the patient&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|gender_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|&lt;br /&gt;
|Reference to the gender of the  patient&lt;br /&gt;
|patient.gender.id&lt;br /&gt;
|-&lt;br /&gt;
|nhs_number&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|&lt;br /&gt;
|The NHS number of the patient&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_of_birth&lt;br /&gt;
|date&lt;br /&gt;
|&lt;br /&gt;
|The date of birth of the patient&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_of_death&lt;br /&gt;
|date&lt;br /&gt;
|&lt;br /&gt;
|The date of death of the patient&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|current_address_id&lt;br /&gt;
|bigint&lt;br /&gt;
|&lt;br /&gt;
|Reference to the current  address of the  patient&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ethnic_code_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|&lt;br /&gt;
|Reference to the ethnicity of the patient&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|registered_practice_organization_id&lt;br /&gt;
|bigint&lt;br /&gt;
|&lt;br /&gt;
|Reference to the organisation  the patient is registered at&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT pk_patient_id_organization_id PRIMARY KEY (`organization_id`,`person_id`,`id`),&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_patient_organization_id FOREIGN KEY (organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES organization (id) MATCH SIMPLE&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: patient_address ==&lt;br /&gt;
PRIMARY KEY (organization_id,id,patient_id,person_id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|Id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the address&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|organization_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Owning organisation (i.e.  publisher)&lt;br /&gt;
|organisation.id&lt;br /&gt;
|-&lt;br /&gt;
|patient_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The organisations record for  this person’s registration. Patients may have multiple records across  clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
|person_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Unique individual across all  organisations&lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
|address_line_1&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The first line of the address&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|address_line_2&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The second line of the address&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|address_line_3&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The third line of the address&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|address_line_4&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The fourth line of the address&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|city&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The city&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|postcode&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The postcode&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|use_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|use of address (e.g. home,  temporary)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|start_date&lt;br /&gt;
|Date&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The start date of this address  being relevant&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|end_date&lt;br /&gt;
|Date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The end date of this address  being relevant&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|lsoa_2001_code&lt;br /&gt;
|varchar(9)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|A reference to the LSOA_2001  code&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|lsoa_2011_code&lt;br /&gt;
|varchar(9)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|A reference to the LSOA_2011  code&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|msoa_2001_code&lt;br /&gt;
|varchar(9)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|A reference to the MSOA_2001  code&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|msoa_2011_code&lt;br /&gt;
|varchar(9)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|A reference to the MSOA_2011  code&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ward_code&lt;br /&gt;
|varchar(9)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The ward the address belongs to&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|local_authority_code&lt;br /&gt;
|varchar(9)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The local authority the address  belongs to&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT pk_organization_id_id_patient_id_person_id&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |PRIMARY KEY (`organization_id`,`id`,`patient_id`,`person_id`)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_patient_address_patient_id_organization_id&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |FOREIGN KEY (patient_id, organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES patient (id, organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |COMMENT &#039;stores address details for patients&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: patient_address_match ==&lt;br /&gt;
PRIMARY KEY(id, uprn)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|Id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Reference to the  patient_address table&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Uprn&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The Unique Propery Reference  Number of the address&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Status&lt;br /&gt;
|smallint(6)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Whether the UPRN is active&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Classification&lt;br /&gt;
|varchar(45)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Building type eg flat, pub,  house etc&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Latitude&lt;br /&gt;
|double&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The latitude of the UPRN&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Longitude&lt;br /&gt;
|double&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The longitude of the UPRN&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Xcoordinate&lt;br /&gt;
|double&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The x coordinate of the UPRN&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Ycoordinate&lt;br /&gt;
|double&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The y coordinate of the UPRN&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Qualifier&lt;br /&gt;
|varchar(50)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|How the match is determined eg  equivalent match, near match etc&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Algorithm&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Which algorithm was used to  match the address to the UPRN&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|match_date&lt;br /&gt;
|datetime&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date the match was made&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|abp_address_number&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The number value of the address  in the ABP dictionary&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|abp_address_street&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The street value of the address  in the ABP dictionary&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|abp_address_locality&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The locality value of the  address in the ABP dictionary&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|abp_address_town&lt;br /&gt;
|varchar(10)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The town value of the address  in the ABP dictionary&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|abp_address_postcode&lt;br /&gt;
|varchar(10)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The postcode value of the  address in the ABP dictionary&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|abp_address_organization&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The organization value of the  address in the ABP dictionary&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|match_pattern_postcode&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The qualifier used to match the  postcode&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|match_pattern_street&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The qualifier used to match the  street&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|match_pattern_number&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The qualifier used to match the  number&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|match_pattern_building&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The qualifier used to match the  building&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|match_pattern_flat&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The qualifier used to match the  flat&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|algorithm_version&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|What version of the algorithm  was used to make the match&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Epoc&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The version of the ABP files  the addresses were matched against&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT PRIMARY KEY (id,uprn)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: patient_contact ==&lt;br /&gt;
PRIMARY KEY (organization_id,id,patient_id,person_id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the patient  contact&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|organization_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Owning organisation (i.e. publisher)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|patient_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The organisations record for  this person’s registration. Patients may have multiple records across  clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
|person_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Unique individual across all  organisations&lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
|use_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|use of contact (e.g. mobile,  home,work&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|type_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|type of contact (e.g. phone,  email)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|start_date date&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The start date of the contact  being valid&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|end_date date&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The end date of the contact  being valid&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|value&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The value of the contact  information eg phone number, email address&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT pk_organization_id_id_patient_id_person_id PRIMARY KEY (`organization_id`,`id`,`patient_id`,`person_id`),&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_patient_contact_patient_id_organisation_id FOREIGN KEY (patient_id, organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES patient (id, organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |COMMENT &#039;stores contact details (e.g. phone) for patients&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: patient_gender ==&lt;br /&gt;
PRIMARY KEY(id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|Id&lt;br /&gt;
|smallint(6)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the gender lookup&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Value&lt;br /&gt;
|varchar(10)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Value of the gender lookup&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT PRIMARY KEY (id)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: patient_pseudo_id ==&lt;br /&gt;
PRIMARY KEY(organization_id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|Id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the patient pseudo  id&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|organization_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Owning organisation (i.e.  publisher)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|patient_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Reference to the patient this  registration status history belongs to&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|person_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Reference to the person this  registration status history belongs to&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|salt_name&lt;br /&gt;
|varchar(50)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The name of the salt used to  create the pseudo id&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Skid&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|&amp;quot;Secure Key IDentifier&amp;quot;  - the pseudonymised ID generated for this patient using the salt specified in  the salt_name column. Typically generated from patient NHS number, but is  configurable on a case by case basis (e.g. may include date of birth)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|is_nhs_number_valid&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Whether the nhs number is valid&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|is_nhs_number_verified_by_publisher&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Whether the nhs number has been  verified by the publisher&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT PRIMARY KEY (organization_id)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: patient_uprn ==&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|patient_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The organisations record for this person’s registration. Patients may have multiple records across clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
|organization_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Owning organisation (i.e. publisher)&lt;br /&gt;
|organisation.id&lt;br /&gt;
|-&lt;br /&gt;
|person_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique individual across all organisations&lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
|Uprn&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|qualifier&lt;br /&gt;
|varchar(50)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|algorithm&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|match&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|no_address&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|invalid_address&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|missing_postcode&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|invalid_postcode&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT pk_patient_id_organization_id PRIMARY KEY (`organization_id`,`person_id`,`patient_id`),&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_patient_uprn_patient_id_organisation_id FOREIGN KEY (patient_id, organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES patient (id, organization_id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: person ==&lt;br /&gt;
PRIMARY KEY (id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the person&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|organization_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Owning organisation (i.e.  publisher)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|title&lt;br /&gt;
|varchar(50)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The title of the person&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|first_names&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The first names of the person&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|last_name&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The last name of the person&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|gender_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the gender of the  person&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|nhs_number&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The NHS number of the person&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_of_birth date,&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date of birth of the person&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_of_death date,&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date of death of the person&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|current_address_id,&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Reference to the current  address of the person&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|ethnic_code_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the ethnicity of  the person&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|registered_practice_organization_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the organisation  the person is registered at&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT pk_person_id PRIMARY KEY (id)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: practitioner ==&lt;br /&gt;
PRIMARY KEY (id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the practitioner&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|organization_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Owning organisation (i.e.  publisher)&lt;br /&gt;
|organisation.id&lt;br /&gt;
|-&lt;br /&gt;
|name&lt;br /&gt;
|varchar(1024)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Name of the practitioner&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|role_code&lt;br /&gt;
|varchar(50)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The code representing the role  of the practitioner&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|role_desc&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Textual description of the role  of the practitioner eg General Medical Practitioner&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|gmc_code&lt;br /&gt;
|varchar(50)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The GMC code of the  practitioner&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT pk_practitioner_id PRIMARY KEY (id),&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_practitioner_organisation_id FOREIGN KEY (organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES organization (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: procedure_request ==&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the procedure&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|organization_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Owning organisation (i.e.  publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
|patient_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The organisations record for  this person’s registration. Patients may have multiple records across  clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
|person_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique individual across all  organisations&lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
|encounter_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the encounter the  procedure was administered at&lt;br /&gt;
|encounter.id&lt;br /&gt;
|-&lt;br /&gt;
|practitioner_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The clinician the activity is  recorded against&lt;br /&gt;
|practitioner.id&lt;br /&gt;
|-&lt;br /&gt;
|clinical_effective_date&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date the procedure was  administered by a clinician&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_precision_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Identifies the precision of the  clinical effectiveness date to either year (1) month (2) day (5) minute (12) second  (13) millisecond (14)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|status_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the status of the  procedure&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|core_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the clinical  coding of the procedure&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|non_core_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the clinical  coding of the procedure&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|age_at_event&lt;br /&gt;
|decimal(5,2)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The age of the patient at the  time of the procedure&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_recorded&lt;br /&gt;
|datetime&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date the procedure was  recorded in the source system&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT pk_procedure_request_id PRIMARY KEY (`organization_id`,`person_id`,`id`),&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |/*got an Emis procedure request referring to a confidential encounter, so can&#039;t enforce this&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_procedure_request_encounter_id FOREIGN KEY (encounter_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES encounter (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,*/&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_procedure_request_patient_id_organization_id FOREIGN KEY (patient_id, organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES patient (id, organization_id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_procedure_request_practitioner_id FOREIGN KEY (practitioner_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES practitioner (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: procedure_request_status ==&lt;br /&gt;
PRIMARY KEY(id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|Id&lt;br /&gt;
|smallint(6)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the procedure  request status lookup&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Value&lt;br /&gt;
|varchar(50)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The value of the procedure  request status lookup&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT PRIMARY KEY (id)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: pseudo_id ==&lt;br /&gt;
PRIMARY KEY (patient_id, salt_key_name)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|Id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the pseudo Id&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|patient_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Reference to the patient the  pseudo Id belongs to&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|salt_key_name&lt;br /&gt;
|varchar(50)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The name of the salt key used  to create the pseudo id&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|pseudo_id&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The pseudo id&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT pk_pseudo_id PRIMARY KEY (patient_id, salt_key_name)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: referral_request ==&lt;br /&gt;
PRIMARY KEY (organization_id,person_id,id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the referral&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|organization_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Owning organisation (i.e.  publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
|patient_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The organisations record for  this person’s registration. Patients may have multiple records across  clinical systems and may have registered at an organisation multiple times&lt;br /&gt;
|patient.id&lt;br /&gt;
|-&lt;br /&gt;
|person_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique individual across all  organisations&lt;br /&gt;
|person.id&lt;br /&gt;
|-&lt;br /&gt;
|encounter_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the encounter the  referral was made in&lt;br /&gt;
|encounter.id&lt;br /&gt;
|-&lt;br /&gt;
|practitioner_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The clinician the activity is  recorded against&lt;br /&gt;
|practitioner.id&lt;br /&gt;
|-&lt;br /&gt;
|clinical_effective_date&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date the referral was made&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_precision_concept_id&lt;br /&gt;
|smallint(6)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Identifies the precision of the  clinical effectiveness date to either year (1) month (2) day (5) minute (12)  second (13) millisecond (14)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|requester_organization_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the organisation  that made the refereral request&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|recipient_organization_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the organization  receiving the referral&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|referral_request_priority_concept_id&lt;br /&gt;
|smallint(6)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the priority of  the referral&lt;br /&gt;
|referral.request.priority&lt;br /&gt;
|-&lt;br /&gt;
|referral_request_type_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the type of  referral request&lt;br /&gt;
|referral.request.type&lt;br /&gt;
|-&lt;br /&gt;
|Mode&lt;br /&gt;
|varchar(50)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The mode of the referral&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|outgoing_referral&lt;br /&gt;
|boolean&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Whether this is an outgoing  referral&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|is_review&lt;br /&gt;
|boolean&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Whether this referral is a  review&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|core_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the clinical  coding of the referral&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|non_core_concept_id&lt;br /&gt;
|int&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the clinical  coding of the referral&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|age_at_event&lt;br /&gt;
|decimal(5,2)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The age of the patient at the  time of the referral&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|date_recorded&lt;br /&gt;
|datetime&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The date the referral request  was added to the source system&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT pk_referral_request_id PRIMARY KEY (`organization_id`,`person_id`,`id`),&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |/*got an Emis referral request referring to a confidential encounter, so can&#039;t enforce this&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_referral_request_encounter_id FOREIGN KEY (encounter_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES encounter (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,*/&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_referral_request_patient_id_organization_id FOREIGN KEY (patient_id, organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES patient (id, organization_id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_referral_request_practitioner_id FOREIGN KEY (practitioner_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES practitioner (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_referral_request_recipient_organization_id FOREIGN KEY (recipient_organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES organization (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION,&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_referral_request_requester_organization_id FOREIGN KEY (requester_organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES organization (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: referral_request_priority ==&lt;br /&gt;
PRIMARY KEY(id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|Id&lt;br /&gt;
|smallint(6)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the referral  request priority lookup&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Value&lt;br /&gt;
|varchar(50)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The value of the referral  request priority lookup&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT PRIMARY KEY (id)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: referral_request_type ==&lt;br /&gt;
PRIMARY KEY(id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|Id&lt;br /&gt;
|smallint(6)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the referral  request type&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Value&lt;br /&gt;
|varchar(50)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The value of the referral  request lookup&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT PRIMARY KEY (id)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: registration_status ==&lt;br /&gt;
PRIMARY KEY(id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|Id&lt;br /&gt;
|smallint(6)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the registration  status&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Code&lt;br /&gt;
|varchar(10)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The registration status code&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Description&lt;br /&gt;
|varchar(50)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|The description of the  registration status&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|is_active&lt;br /&gt;
|tinyint(1)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Whether the registration status  is active&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT PRIMARY KEY (id)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Table: registration_status_history ==&lt;br /&gt;
PRIMARY KEY(organization_id,id,patient_id,person_id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|Id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the registration  status history&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|organization_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Owning organisation (i.e.  publisher)&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|patient_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Reference to the patient this  registration status history belongs to&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|person_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Reference to the person this  registration status history belongs to&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|episode_of_care_id&lt;br /&gt;
|bigint(20)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the episode of  care this status history belongs to&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|registration_status_concept_id&lt;br /&gt;
|int(11)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the registration  status&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|start_date&lt;br /&gt;
|datetime&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The start date for the period  this registration status history was valid&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|end_date&lt;br /&gt;
|datetime&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The end date for the period  this registration status history was valid&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT PRIMARY KEY (organization_id,id,patient_id,person_id)&lt;br /&gt;
|}&lt;br /&gt;
== Table: schedule ==&lt;br /&gt;
PRIMARY KEY (organization_id, id)&lt;br /&gt;
{| class=&amp;quot;wikitable sortable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|&#039;&#039;&#039;Column name&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Data type&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Constraint&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;Comments&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Unique Id of the schedule&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|organization_id&lt;br /&gt;
|bigint&lt;br /&gt;
|NOT NULL&lt;br /&gt;
|Owning organisation (i.e.  publisher)&lt;br /&gt;
|organization.id&lt;br /&gt;
|-&lt;br /&gt;
|practitioner_id&lt;br /&gt;
|bigint&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Reference to the practitioner  who owns the schedule&lt;br /&gt;
|practitioner.id&lt;br /&gt;
|-&lt;br /&gt;
|start_date&lt;br /&gt;
|date&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The start date of the schedule&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|type&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The type of schedule eg Timed  Appointments&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|Location&lt;br /&gt;
|varchar(255)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|Textual description of the  location the schedule was held at&lt;br /&gt;
|location.id&lt;br /&gt;
|-&lt;br /&gt;
|Name&lt;br /&gt;
|varchar(150)&lt;br /&gt;
|DEFAULT NULL&lt;br /&gt;
|The name of the schedule&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT pk_schedule_id PRIMARY KEY (organization_id, id),&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |CONSTRAINT fk_schedule_organization_id FOREIGN KEY (organization_id)&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |REFERENCES organization (id) MATCH SIMPLE&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;5&amp;quot; |ON UPDATE NO ACTION ON DELETE NO ACTION&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
__FORCETOC__&lt;br /&gt;
__INDEX__&lt;br /&gt;
__NONEWSECTIONLINK__&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Remote_Subscriber_Database_Familiarisation&amp;diff=2177</id>
		<title>Discovery Remote Subscriber Database Familiarisation</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Remote_Subscriber_Database_Familiarisation&amp;diff=2177"/>
		<updated>2020-08-04T13:13:55Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
The purpose of this article is to assist users of the DDS Remote Subscriber Database in testing understanding and maximising the benefits of the system.&lt;br /&gt;
&lt;br /&gt;
It includes testing guidance, hints and tips from LHS developers who have experience with the system and guidance on how to use tools share knowledge and record issues.&lt;br /&gt;
&lt;br /&gt;
== End User Acceptance Testing ==&lt;br /&gt;
[[Remote Subscriber Database Testing and Assurance|Follow this link]] to go to the article that outlines the strategy to be used for end user testing and assurance of data published to a remote data distribution service.  &lt;br /&gt;
&lt;br /&gt;
== Remote Subscriber Database User Forum ==&lt;br /&gt;
All organisations accessing DDS on remote subscriber database are invited to a user forum to share knowledge and learning from their experience using the product. The forum communicates using our Jira board and a regular conference call which will be attended by a developer who is experienced at creating SQL queries on data held in the DDS from LHS.&lt;br /&gt;
&lt;br /&gt;
[https://endeavourhealth.atlassian.net/secure/RapidBoard.jspa?rapidView=43 Follow this link] to access our Extract &amp;amp; Queries Forum.&lt;br /&gt;
&lt;br /&gt;
[[Extract &amp;amp; Queries Forum and Issue Logging|Follow this link]] for our user guide to our Extract &amp;amp; Queries Forum.&lt;br /&gt;
&lt;br /&gt;
== Data Mapping ==&lt;br /&gt;
The links below take you to our schemas which list the contents and references for each table in the Compass databases.&lt;br /&gt;
&lt;br /&gt;
[[Remote Subscriber Database (RSD) Schema (Compass 1)|Compass 1 Schema]]&lt;br /&gt;
&lt;br /&gt;
[[Remote Subscriber Database (RSD) Schema (Compass 2)|Compass 2 Schema]]&lt;br /&gt;
&lt;br /&gt;
This is an example of a schema table.&lt;br /&gt;
[[File:Schema table example.jpg|none|thumb|Schema table example]]&lt;br /&gt;
&lt;br /&gt;
== Remote Discovery Database SQL Guides ==&lt;br /&gt;
The articles below were written by our developers, who are experts with the DDS, to introduce you to how they create cohorts, build datasets and call store procedures.&lt;br /&gt;
&lt;br /&gt;
[[Remote Subscriber Database (RSD) SQL guide (Compass 1)|Compass 1 SQL Guide]]&lt;br /&gt;
&lt;br /&gt;
[[Remote Subscriber Database (RSD) SQL guide (Compass 2)|Compass 2 SQL Guide]]&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Remote_Subscriber_Database_Familiarisation&amp;diff=2176</id>
		<title>Discovery Remote Subscriber Database Familiarisation</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Remote_Subscriber_Database_Familiarisation&amp;diff=2176"/>
		<updated>2020-08-04T13:12:14Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
The purpose of this article is to assist users of the DDS Remote Subscriber Database in testing understanding and maximising the benefits of the system.&lt;br /&gt;
&lt;br /&gt;
It includes testing guidance, hints and tips from LHS developers who have experience with the system and guidance on how to use tools share knowledge and record issues.&lt;br /&gt;
&lt;br /&gt;
== End User Acceptance Testing ==&lt;br /&gt;
[[Remote Subscriber Database Testing and Assurance|Follow this link]] to go to the article that outlines the strategy to be used for end user testing and assurance of data published to a remote data distribution service.  &lt;br /&gt;
&lt;br /&gt;
== Remote Subscriber Database User Forum ==&lt;br /&gt;
All organisations accessing DDS on remote subscriber database are invited to a user forum to share knowledge and learning from their experience using the product. The forum communicates using our Jira board and a regular conference call which will be attended by a developer who is experienced at creating SQL queries on data held in the DDS from LHS.&lt;br /&gt;
&lt;br /&gt;
[https://endeavourhealth.atlassian.net/secure/RapidBoard.jspa?rapidView=43 Follow this link] to access our Extract &amp;amp; Queries Forum.&lt;br /&gt;
&lt;br /&gt;
[[Extract &amp;amp; Queries Forum and Issue Logging|Follow this link]] for our user guide to our Extract &amp;amp; Queries Forum.&lt;br /&gt;
&lt;br /&gt;
== Data Mapping ==&lt;br /&gt;
The links below take you to our schemas for the Compass 1 and Compass 2 databases respectively.&lt;br /&gt;
&lt;br /&gt;
[[Remote Subscriber Database (RSD) Schema (Compass 1)|Compass 1 Schema]]&lt;br /&gt;
&lt;br /&gt;
[[Remote Subscriber Database (RSD) Schema (Compass 2)|Compass 2 Schema]]&lt;br /&gt;
&lt;br /&gt;
This is an example of a schema table.&lt;br /&gt;
[[File:Schema table example.jpg|none|thumb|Schema table example]]&lt;br /&gt;
&lt;br /&gt;
== Remote Discovery Database SQL Guide ==&lt;br /&gt;
The articles below were written by our developers, who are experts with the DDS, to introduce you to how they create cohorts, build datasets and call store procedures.&lt;br /&gt;
&lt;br /&gt;
[[Remote Subscriber Database (RSD) SQL guide (Compass 1)|Compass 1 SQL Guide]]&lt;br /&gt;
&lt;br /&gt;
[[Remote Subscriber Database (RSD) SQL guide (Compass 2)|Compass 2 SQL Guide]]&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Remote_Subscriber_Database_Familiarisation&amp;diff=2175</id>
		<title>Discovery Remote Subscriber Database Familiarisation</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Remote_Subscriber_Database_Familiarisation&amp;diff=2175"/>
		<updated>2020-08-04T12:59:43Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
The purpose of this article is to assist users of the DDS Remote Subscriber Database in testing understanding and maximising the benefits of the system.&lt;br /&gt;
&lt;br /&gt;
It includes testing guidance, hints and tips from LHS developers who have experience with the system and guidance on how to use tools share knowledge and record issues.&lt;br /&gt;
&lt;br /&gt;
== End User Acceptance Testing ==&lt;br /&gt;
[[Remote Subscriber Database Testing and Assurance|Follow this link]] to go to the article that outlines the strategy to be used for end user testing and assurance of data published to a remote data distribution service.  &lt;br /&gt;
&lt;br /&gt;
== Remote Subscriber Database User Forum ==&lt;br /&gt;
All organisations accessing DDS on remote subscriber database are invited to a user forum to share knowledge and learning from their experience using the product. The forum communicates using our Jira board and a regular conference call which will be attended by a developer who is experienced at creating SQL queries on data held in the DDS from LHS.&lt;br /&gt;
&lt;br /&gt;
[https://endeavourhealth.atlassian.net/secure/RapidBoard.jspa?rapidView=43 Follow this link] to access our Extract &amp;amp; Queries Forum.&lt;br /&gt;
&lt;br /&gt;
[[Extract &amp;amp; Queries Forum and Issue Logging|Follow this link]] for our user guide to our Extract &amp;amp; Queries Forum.&lt;br /&gt;
&lt;br /&gt;
== Data Mapping ==&lt;br /&gt;
The links below take you to our schemas for the Compass 1 and Compass 2 databases respectively.&lt;br /&gt;
&lt;br /&gt;
[[Remote Subscriber Database (RSD) Schema (Compass 1)|Compass 1 Schema]]&lt;br /&gt;
&lt;br /&gt;
[[Remote Subscriber Database (RSD) Schema (Compass 2)|Compass 2 Schema]]&lt;br /&gt;
&lt;br /&gt;
This is an example of a table from that document.&lt;br /&gt;
[[File:Schema table example.jpg|none|thumb|Schema table example]]&lt;br /&gt;
&lt;br /&gt;
== Remote Discovery Database SQL Guide ==&lt;br /&gt;
The articles below were written by our developers, who are experts with the DDS, to introduce you to how they create cohorts, build datasets and call store procedures.&lt;br /&gt;
&lt;br /&gt;
[[Remote Subscriber Database (RSD) SQL guide (Compass 1)|Compass 1 SQL Guide]]&lt;br /&gt;
&lt;br /&gt;
[[Remote Subscriber Database (RSD) SQL guide (Compass 2)|Compass 2 SQL Guide]]&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Remote_Subscriber_Database_Familiarisation&amp;diff=2174</id>
		<title>Discovery Remote Subscriber Database Familiarisation</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Remote_Subscriber_Database_Familiarisation&amp;diff=2174"/>
		<updated>2020-08-04T12:52:27Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Overview ==&lt;br /&gt;
The purpose of this page is to assist users of the DDS Remote Subscriber Database in testing understanding and maximising the benefits of the system.&lt;br /&gt;
&lt;br /&gt;
It includes testing guidance, hints and tips from LHS developers who have experience with the system and guidance on how to use tools share knowledge and record issues.&lt;br /&gt;
&lt;br /&gt;
== End User Acceptance Testing ==&lt;br /&gt;
[[Remote Subscriber Database Testing and Assurance|Follow this link]] to go to the page that outlines the strategy to be used for end user testing and assurance of data published to a remote data distribution service.  &lt;br /&gt;
&lt;br /&gt;
== Remote Subscriber Database User Forum ==&lt;br /&gt;
All organisations accessing DDS on remote subscriber database are invited to a user forum to share knowledge and learning from their experience using the product. The forum communicates using our Jira board and a regular conference call which will be attended by a developer who is experienced at creating SQL queries on data held in the DDS from LHS.&lt;br /&gt;
&lt;br /&gt;
[https://endeavourhealth.atlassian.net/secure/RapidBoard.jspa?rapidView=43 Follow this link] to access our Extract &amp;amp; Queries Forum.&lt;br /&gt;
&lt;br /&gt;
[[Extract &amp;amp; Queries Forum and Issue Logging|Follow this link]] for our user guide to our Extract &amp;amp; Queries Forum.&lt;br /&gt;
&lt;br /&gt;
== Data Mapping ==&lt;br /&gt;
The links below take you to our schemas for the Compass 1 and Compass 2 databases respectively.&lt;br /&gt;
&lt;br /&gt;
[[Remote Subscriber Database (RSD) Schema (Compass 1)|Compass 1 Schema]]&lt;br /&gt;
&lt;br /&gt;
[[Remote Subscriber Database (RSD) Schema (Compass 2)|Compass 2 Schema]]&lt;br /&gt;
&lt;br /&gt;
This is an example of a table from that document.&lt;br /&gt;
[[File:Schema table example.jpg|none|thumb|Schema table example]]&lt;br /&gt;
&lt;br /&gt;
== Remote Discovery Database SQL Guide ==&lt;br /&gt;
The pages below were written by our developers, who are experts with the DDS, to introduce you to how they create cohorts, build datasets and call store procedures.&lt;br /&gt;
&lt;br /&gt;
[[Remote Subscriber Database (RSD) SQL guide (Compass 1)|Compass 1 SQL Guide]]&lt;br /&gt;
&lt;br /&gt;
[[Remote Subscriber Database (RSD) SQL guide (Compass 2)|Compass 2 SQL Guide]]&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Discovery_Remote_Subscriber_Database_Familiarisation&amp;diff=2173</id>
		<title>Discovery Remote Subscriber Database Familiarisation</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Discovery_Remote_Subscriber_Database_Familiarisation&amp;diff=2173"/>
		<updated>2020-08-04T12:51:55Z</updated>

		<summary type="html">&lt;p&gt;Jay: Created page with &amp;quot;= Overview = The purpose of this page is to assist users of the DDS Remote Subscriber Database in testing understanding and maximising the benefits of the system.  It includes...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Overview =&lt;br /&gt;
The purpose of this page is to assist users of the DDS Remote Subscriber Database in testing understanding and maximising the benefits of the system.&lt;br /&gt;
&lt;br /&gt;
It includes testing guidance, hints and tips from LHS developers who have experience with the system and guidance on how to use tools share knowledge and record issues.&lt;br /&gt;
&lt;br /&gt;
== End User Acceptance Testing ==&lt;br /&gt;
[[Remote Subscriber Database Testing and Assurance|Follow this link]] to go to the page that outlines the strategy to be used for end user testing and assurance of data published to a remote data distribution service.  &lt;br /&gt;
&lt;br /&gt;
= Remote Subscriber Database User Forum =&lt;br /&gt;
All organisations accessing DDS on remote subscriber database are invited to a user forum to share knowledge and learning from their experience using the product. The forum communicates using our Jira board and a regular conference call which will be attended by a developer who is experienced at creating SQL queries on data held in the DDS from LHS.&lt;br /&gt;
&lt;br /&gt;
[https://endeavourhealth.atlassian.net/secure/RapidBoard.jspa?rapidView=43 Follow this link] to access our Extract &amp;amp; Queries Forum.&lt;br /&gt;
&lt;br /&gt;
[[Extract &amp;amp; Queries Forum and Issue Logging|Follow this link]] for our user guide to our Extract &amp;amp; Queries Forum.&lt;br /&gt;
&lt;br /&gt;
= Data Mapping =&lt;br /&gt;
The links below take you to our schemas for the Compass 1 and Compass 2 databases respectively.&lt;br /&gt;
&lt;br /&gt;
[[Remote Subscriber Database (RSD) Schema (Compass 1)|Compass 1 Schema]]&lt;br /&gt;
&lt;br /&gt;
[[Remote Subscriber Database (RSD) Schema (Compass 2)|Compass 2 Schema]]&lt;br /&gt;
&lt;br /&gt;
This is an example of a table from that document.&lt;br /&gt;
[[File:Schema table example.jpg|none|thumb|Schema table example]]&lt;br /&gt;
&lt;br /&gt;
= Remote Discovery Database SQL Guide =&lt;br /&gt;
The pages below were written by our developers, who are experts with the DDS, to introduce you to how they create cohorts, build datasets and call store procedures.&lt;br /&gt;
&lt;br /&gt;
[[Remote Subscriber Database (RSD) SQL guide (Compass 1)|Compass 1 SQL Guide]]&lt;br /&gt;
&lt;br /&gt;
[[Remote Subscriber Database (RSD) SQL guide (Compass 2)|Compass 2 SQL Guide]]&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=File:Schema_table_example.jpg&amp;diff=2172</id>
		<title>File:Schema table example.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=File:Schema_table_example.jpg&amp;diff=2172"/>
		<updated>2020-08-04T12:49:01Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Schema table example&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Extract_%26_Queries_Forum_and_Issue_Logging&amp;diff=2171</id>
		<title>Extract &amp; Queries Forum and Issue Logging</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Extract_%26_Queries_Forum_and_Issue_Logging&amp;diff=2171"/>
		<updated>2020-08-04T12:34:16Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The purpose of the Extract &amp;amp; Queries Forum and Issue Logging board is to capture discussion points, hints and tips and to be a single source of information in relation to issues that affect the running of extracts and queries.&lt;br /&gt;
&lt;br /&gt;
Where an issue is specific to a project (it must be entered on the relevant Jira board) if it then becomes apparent that it affects other projects (current or future) it should be linked to this board.&lt;br /&gt;
&lt;br /&gt;
LHS are committed to this and will check the board daily for any new tickets raised that need to be triaged and to also update ongoing tickets. We ask that you raise tickets on the board for ideas, questions that may be answered by other users, hints &amp;amp; tips for LHS and other users and to alert the LHS team of bugs affecting the overall system.&lt;br /&gt;
&lt;br /&gt;
This document will outline what is required from the forum users and how we will work collaboratively. In order for this process to work, anyone who has an action or question assigned to them on the board needs to respond promptly. If a ticket is raised that could affect other projects, this will be dealt with as a priority.&lt;br /&gt;
&lt;br /&gt;
== Issue logging ==&lt;br /&gt;
&lt;br /&gt;
=== How to raise a ticket ===&lt;br /&gt;
In order to raise a ticket, you need to log into the Jira board. Once logged in:&lt;br /&gt;
&lt;br /&gt;
1. Click the ‘+’ sign in the left menu&lt;br /&gt;
&lt;br /&gt;
2. Complete the relevant fields in the new ticket screen&lt;br /&gt;
&lt;br /&gt;
3. Save&lt;br /&gt;
&lt;br /&gt;
Note: This will raise a ticket and give it a Hints &amp;amp; Tips status. If this ticket is not for this category, it can be dragged and dropped into the relevant one.&lt;br /&gt;
&lt;br /&gt;
=== Hints &amp;amp; Tips/Discussion Points ===&lt;br /&gt;
Tickets raised in this category could be pieces of knowledge that would be beneficial for others to know, or it could be a generic question on the data that is not specific to an existing project.&lt;br /&gt;
&lt;br /&gt;
New Issues/Progressing Issues/Resolved Issues&lt;br /&gt;
&lt;br /&gt;
Issues are only to be raised on the board if they are not specific to an existing project. If you are working on a project and come across an issue that could affect more than just your project, a new ticket needs raising on the board and linking to your project specific ticket.&lt;br /&gt;
&lt;br /&gt;
When a new ticket is raised, it will follow the process as laid out below.&lt;br /&gt;
[[File:EQFIL column headings.jpg|none|thumb|EQFIL column headings]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Issue tickets are only to be raised with a New Issue status, where it will then be triaged and allocated to the relevant person. LHS will check the board daily for any new tickets and allocate these out as necessary. Once allocated, the ticket will move to Progressing Issue. Tickets can only be moved to a Resolved Issue status with the approval of the original reporter.&lt;br /&gt;
&lt;br /&gt;
If this issue has already been raised and you want to add more information, this can be done by commenting on the original ticket.&lt;br /&gt;
&lt;br /&gt;
=== Linking a ticket ===&lt;br /&gt;
Linking a ticket from one Jira board to the other, or within the same Jira board can only be done with a ticket that has already been logged. You can’t do this when first creating a ticket.&lt;br /&gt;
&lt;br /&gt;
To link two or more tickets together you need to:&lt;br /&gt;
&lt;br /&gt;
1. Open the ticket you are wanting to link to/from&lt;br /&gt;
&lt;br /&gt;
2. Click Link issue&lt;br /&gt;
&lt;br /&gt;
3. Select why the issue is being linked (first drop down field)&lt;br /&gt;
&lt;br /&gt;
4. In the search for issues field, start to type in either;&lt;br /&gt;
&lt;br /&gt;
a. Ticket ID, or&lt;br /&gt;
&lt;br /&gt;
b. Ticket name&lt;br /&gt;
&lt;br /&gt;
5. Click the relevant ticket&lt;br /&gt;
&lt;br /&gt;
6. Save&lt;br /&gt;
[[File:How to link an issue.jpg|thumb|How to link an issue|alt=|none]]&lt;br /&gt;
=== Action a ticket ===&lt;br /&gt;
When a ticket is assigned, the assignee will receive an email alert from Jira. The ticket needs to be picked up within one working day and the responsibility for actioning and progressing the ticket sits with the assignee until the ticket is complete.&lt;br /&gt;
&lt;br /&gt;
If there is an action for someone other than the current assignee, that person needs tagging into the comments (using the @ symbol before their name) and the ticket also needs assigning to them. Once that action is complete, it needs assigning back to the original assignee.&lt;br /&gt;
&lt;br /&gt;
Once the ticket is resolved, it needs assigning to the reporter who will then change the ticket status if they are satisfied with the outcome.&lt;br /&gt;
__FORCETOC__&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Extract_%26_Queries_Forum_and_Issue_Logging&amp;diff=2170</id>
		<title>Extract &amp; Queries Forum and Issue Logging</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Extract_%26_Queries_Forum_and_Issue_Logging&amp;diff=2170"/>
		<updated>2020-08-04T12:33:38Z</updated>

		<summary type="html">&lt;p&gt;Jay: Created page with &amp;quot;The purpose of the Extract &amp;amp; Queries Forum and Issue Logging board is to capture discussion points, hints and tips and to be a single source of information in relation to issu...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The purpose of the Extract &amp;amp; Queries Forum and Issue Logging board is to capture discussion points, hints and tips and to be a single source of information in relation to issues that affect the running of extracts and queries.&lt;br /&gt;
&lt;br /&gt;
Where an issue is specific to a project (it must be entered on the relevant Jira board) if it then becomes apparent that it affects other projects (current or future) it should be linked to this board.&lt;br /&gt;
&lt;br /&gt;
LHS are committed to this and will check the board daily for any new tickets raised that need to be triaged and to also update ongoing tickets. We ask that you raise tickets on the board for ideas, questions that may be answered by other users, hints &amp;amp; tips for LHS and other users and to alert the LHS team of bugs affecting the overall system.&lt;br /&gt;
&lt;br /&gt;
This document will outline what is required from the forum users and how we will work collaboratively. In order for this process to work, anyone who has an action or question assigned to them on the board needs to respond promptly. If a ticket is raised that could affect other projects, this will be dealt with as a priority.&lt;br /&gt;
&lt;br /&gt;
== Issue logging ==&lt;br /&gt;
&lt;br /&gt;
=== How to raise a ticket ===&lt;br /&gt;
In order to raise a ticket, you need to log into the Jira board. Once logged in:&lt;br /&gt;
&lt;br /&gt;
1. Click the ‘+’ sign in the left menu&lt;br /&gt;
&lt;br /&gt;
2. Complete the relevant fields in the new ticket screen&lt;br /&gt;
&lt;br /&gt;
3. Save&lt;br /&gt;
&lt;br /&gt;
Note: This will raise a ticket and give it a Hints &amp;amp; Tips status. If this ticket is not for this category, it can be dragged and dropped into the relevant one.&lt;br /&gt;
&lt;br /&gt;
=== Hints &amp;amp; Tips/Discussion Points ===&lt;br /&gt;
Tickets raised in this category could be pieces of knowledge that would be beneficial for others to know, or it could be a generic question on the data that is not specific to an existing project.&lt;br /&gt;
&lt;br /&gt;
New Issues/Progressing Issues/Resolved Issues&lt;br /&gt;
&lt;br /&gt;
Issues are only to be raised on the board if they are not specific to an existing project. If you are working on a project and come across an issue that could affect more than just your project, a new ticket needs raising on the board and linking to your project specific ticket.&lt;br /&gt;
&lt;br /&gt;
When a new ticket is raised, it will follow the process as laid out below.&lt;br /&gt;
[[File:EQFIL column headings.jpg|none|thumb|EQFIL column headings]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Issue tickets are only to be raised with a New Issue status, where it will then be triaged and allocated to the relevant person. LHS will check the board daily for any new tickets and allocate these out as necessary. Once allocated, the ticket will move to Progressing Issue. Tickets can only be moved to a Resolved Issue status with the approval of the original reporter.&lt;br /&gt;
&lt;br /&gt;
If this issue has already been raised and you want to add more information, this can be done by commenting on the original ticket.&lt;br /&gt;
&lt;br /&gt;
=== Linking a ticket ===&lt;br /&gt;
Linking a ticket from one Jira board to the other, or within the same Jira board can only be done with a ticket that has already been logged. You can’t do this when first creating a ticket.&lt;br /&gt;
&lt;br /&gt;
To link two or more tickets together you need to:&lt;br /&gt;
&lt;br /&gt;
1. Open the ticket you are wanting to link to/from&lt;br /&gt;
&lt;br /&gt;
2. Click Link issue&lt;br /&gt;
&lt;br /&gt;
3. Select why the issue is being linked (first drop down field)&lt;br /&gt;
&lt;br /&gt;
4. In the search for issues field, start to type in either;&lt;br /&gt;
&lt;br /&gt;
a. Ticket ID, or&lt;br /&gt;
&lt;br /&gt;
b. Ticket name&lt;br /&gt;
&lt;br /&gt;
5. Click the relevant ticket&lt;br /&gt;
&lt;br /&gt;
6. Save&lt;br /&gt;
[[File:How to link an issue.jpg|left|thumb|How to link an issue]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Action a ticket ===&lt;br /&gt;
When a ticket is assigned, the assignee will receive an email alert from Jira. The ticket needs to be picked up within one working day and the responsibility for actioning and progressing the ticket sits with the assignee until the ticket is complete.&lt;br /&gt;
&lt;br /&gt;
If there is an action for someone other than the current assignee, that person needs tagging into the comments (using the @ symbol before their name) and the ticket also needs assigning to them. Once that action is complete, it needs assigning back to the original assignee.&lt;br /&gt;
&lt;br /&gt;
Once the ticket is resolved, it needs assigning to the reporter who will then change the ticket status if they are satisfied with the outcome.&lt;br /&gt;
__FORCETOC__&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=File:How_to_link_an_issue.jpg&amp;diff=2169</id>
		<title>File:How to link an issue.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=File:How_to_link_an_issue.jpg&amp;diff=2169"/>
		<updated>2020-08-04T12:31:36Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;How to link an issue&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=File:EQFIL_column_headings.jpg&amp;diff=2168</id>
		<title>File:EQFIL column headings.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=File:EQFIL_column_headings.jpg&amp;diff=2168"/>
		<updated>2020-08-04T12:28:45Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;EQFIL column headings&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Remote_Subscriber_Database_Testing_and_Assurance&amp;diff=2167</id>
		<title>Remote Subscriber Database Testing and Assurance</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Remote_Subscriber_Database_Testing_and_Assurance&amp;diff=2167"/>
		<updated>2020-08-04T10:57:17Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
The Purpose of this section is to outline the strategy to be used for end user testing and assurance of data published to a remote data distribution service. &lt;br /&gt;
&lt;br /&gt;
Ideally the customer would be able to provide the source system data which would be used for assurance of the data provided in the RSD and confirm that IG is in place.&lt;br /&gt;
&lt;br /&gt;
== Roles and Responsibilities ==&lt;br /&gt;
The customer will provide two types of data:&lt;br /&gt;
&lt;br /&gt;
• Statistical data to enable all teams to cross reference data, as it appears in the source system, the DDS and the remote transactional data bases. E.g. six GP practices providing numbers of: - Over 65s, plus a sample of numbers of patients on Diabetic, COPD, Asthma registers.&lt;br /&gt;
&lt;br /&gt;
• Specific patient data from a cross section of practices and patients. Taken as a screen shots of the patient’s medical record summary.&lt;br /&gt;
[[File:Example_of_patient_specific_data.jpg|alt=|none|thumb|402.8x402.8px]]&lt;br /&gt;
Each team has committed to responding to their testing requirements in a timely way.&lt;br /&gt;
&lt;br /&gt;
The DDS project manager will document this information, to be shared across teams, create Jira boards for communications and share lessons learned via the user forum.&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Remote_Subscriber_Database_Testing_and_Assurance&amp;diff=2166</id>
		<title>Remote Subscriber Database Testing and Assurance</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Remote_Subscriber_Database_Testing_and_Assurance&amp;diff=2166"/>
		<updated>2020-08-04T10:51:05Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
The Purpose of this section is to outline the strategy to be used for end user testing and assurance of data published to a remote data distribution service. &lt;br /&gt;
&lt;br /&gt;
Ideally the customer would be able to provide the source system data which would be used for assurance of the data provided in the RSD and confirm that IG is in place.&lt;br /&gt;
&lt;br /&gt;
== Roles and Responsibilities ==&lt;br /&gt;
The customer will provide two types of data:&lt;br /&gt;
&lt;br /&gt;
• Statistical data to enable all teams to cross reference data, as it appears in the source system, the DDS and the remote transactional data bases. E.g. six GP practices providing numbers of: - Over 65s, plus a sample of numbers of patients on Diabetic, COPD, Asthma registers&lt;br /&gt;
&lt;br /&gt;
• Specific patient data from a cross section of practices and patients. Taken as a screen shots of the patient’s medical record summary.&lt;br /&gt;
[[File:Example_of_patient_specific_data.jpg|alt=|none|thumb|402.8x402.8px]]&lt;br /&gt;
Each team has committed to responding to their testing requirements in a timely way.&lt;br /&gt;
&lt;br /&gt;
The DDS project manager will document this information, to be shared across teams, create Jira boards for communications and share lessons learned via the user forum.&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Remote_Subscriber_Database_Testing_and_Assurance&amp;diff=2165</id>
		<title>Remote Subscriber Database Testing and Assurance</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Remote_Subscriber_Database_Testing_and_Assurance&amp;diff=2165"/>
		<updated>2020-08-04T10:50:52Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
The Purpose of this section is to outline the strategy to be used for end user testing and assurance of data published to a remote data distribution service. &lt;br /&gt;
&lt;br /&gt;
Ideally the customer would be able to provide the source system data which would be used for assurance of the data provided in the RSD and confirm that IG is in place.&lt;br /&gt;
&lt;br /&gt;
== Roles and Responsibilities ==&lt;br /&gt;
The customer will provide two types of data:&lt;br /&gt;
&lt;br /&gt;
• Statistical data to enable all teams to cross reference data, as it appears in the source system, the DDS and the remote transactional data bases. E.g. six GP practices providing numbers of: - Over 65s, plus a sample of numbers of patients on Diabetic, COPD, Asthma registers&lt;br /&gt;
&lt;br /&gt;
• Specific patient data from a cross section of practices and patients. Taken as a screen shots of the patient’s medical record summary.&lt;br /&gt;
[[File:Example_of_patient_specific_data.jpg|alt=|none|thumb|516.2x516.2px]]&lt;br /&gt;
Each team has committed to responding to their testing requirements in a timely way.&lt;br /&gt;
&lt;br /&gt;
The DDS project manager will document this information, to be shared across teams, create Jira boards for communications and share lessons learned via the user forum.&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Remote_Subscriber_Database_Testing_and_Assurance&amp;diff=2164</id>
		<title>Remote Subscriber Database Testing and Assurance</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Remote_Subscriber_Database_Testing_and_Assurance&amp;diff=2164"/>
		<updated>2020-08-04T10:45:20Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
The Purpose of this section is to outline the strategy to be used for end user testing and assurance of data published to a remote data distribution service. &lt;br /&gt;
&lt;br /&gt;
Ideally the customer would be able to provide the source system data which would be used for assurance of the data provided in the RSD and confirm that IG is in place.&lt;br /&gt;
&lt;br /&gt;
== Roles and Responsibilities ==&lt;br /&gt;
The customer will provide two types of data:&lt;br /&gt;
&lt;br /&gt;
• Statistical data to enable all teams to cross reference data, as it appears in the source system, the DDS and the remote transactional data bases. E.g. six GP practices providing numbers of: - Over 65s, plus a sample of numbers of patients on Diabetic, COPD, Asthma registers&lt;br /&gt;
&lt;br /&gt;
• Specific patient data from a cross section of practices and patients. Taken as a screen shots of the patient’s medical record summary.&lt;br /&gt;
[[File:Example_of_patient_specific_data.jpg|alt=|none|frame]]&lt;br /&gt;
Each team has committed to responding to their testing requirements in a timely way.&lt;br /&gt;
&lt;br /&gt;
The DDS project manager will document this information, to be shared across teams, create Jira boards for communications and share lessons learned via the user forum.&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
	<entry>
		<id>https://wiki.voror.co.uk/index.php?title=Remote_Subscriber_Database_Testing_and_Assurance&amp;diff=2163</id>
		<title>Remote Subscriber Database Testing and Assurance</title>
		<link rel="alternate" type="text/html" href="https://wiki.voror.co.uk/index.php?title=Remote_Subscriber_Database_Testing_and_Assurance&amp;diff=2163"/>
		<updated>2020-08-04T10:44:05Z</updated>

		<summary type="html">&lt;p&gt;Jay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
The Purpose of this section is to outline the strategy to be used for end user testing and assurance of data published to a remote data distribution service. &lt;br /&gt;
&lt;br /&gt;
Ideally the customer would be able to provide the source system data which would be used for assurance of the data provided in the RSD and confirm that IG is in place.&lt;br /&gt;
&lt;br /&gt;
== Roles and Responsibilities ==&lt;br /&gt;
The customer will provide two types of data:&lt;br /&gt;
&lt;br /&gt;
• Statistical data to enable all teams to cross reference data, as it appears in the source system, the DDS and the remote transactional data bases. E.g. six GP practices providing numbers of: - Over 65s, plus a sample of numbers of patients on Diabetic, COPD, Asthma registers&lt;br /&gt;
&lt;br /&gt;
• Specific patient data from a cross section of practices and patients. Taken as a screen shots of the patient’s medical record summary.&lt;br /&gt;
[[File:Example of patient specific data.jpg|left|thumb|573x573px|Example of patient specific data]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Each team has committed to responding to their testing requirements in a timely way.&lt;br /&gt;
&lt;br /&gt;
The DDS project manager will document this information, to be shared across teams, create Jira boards for communications and share lessons learned via the user forum.&lt;/div&gt;</summary>
		<author><name>Jay</name></author>
	</entry>
</feed>