{scrollbar:icons=false}

h1. {page-info:title}
{section}
{column}
{panel:title=Contents of this Page}
{toc:minLevel=2}
{panel}
{column}
{column}
{align:right}{include:Menu LexEVS 6.0 Programmers to Include}{align}{column}
{section}

h2. Introduction
The Data Grid Service is based on the caGrid Data Service and allows programmers to pull data from the system (a target instance of LexEVS on the grid) based on queries that they write. These queries are sent in the form of CQL. The results are SOAP messages, which contain LexGrid XML.

The LexEVS Data Grid Service is a standard caGrid Data service based on the [LexEVS 2010 Model|LexGrid Model and Schema#Version 2010/01].

For complete documentation on caGrid Data Services, see [caGrid Data Service Documentation|http://cagrid.org/display/dataservices/Home].

h2. Querying the System
To query the LexEVS Data Grid Service, use the standard caGrid CQL query method to compose queries. See [caGrid Data Service API Documentation|http://cagrid.org/display/dataservices12/Client+API] for more information.

Example LexEVS queries follow. 

h2. Query for a Concept with a Specific Code
* Example: Concept: C12345
{include:DataGridQueryByCode Snippet}

h2. Query for a Concept with a Specific Presentation Text
* Example: A concept with a namespace 'SNOMED Clinical Terms' that contains a Presentation equal to 'Heart.'
{include:DataGridQueryByPresentationText Snippet}

h2. Restrict Results to Specific Attributes
* Example: Retrieve all of the 'localIds' of any 'SupportedAssociation' in the system.
{include:DataGridQueryRestrictByAttributes Snippet}

{scrollbar:icons=false}