Version: 2011.01.25

Krames StayWell External Web Service Documentation

ListCPTCodes Method

This method allows you to retrieve all of the CPT codes which are mapped to content to which you are licensed. This is not a complete list of CPT codes, it is the subset of CPT codes that is assigned to your licensed content.

This method is not generally meant for frequent use, but rather to assist you in integrating your systems with our content. For instance, the codes may be used to produce a list of topics that your application may use to match with a local database of topics.

The optional IncludeContent attribute, when set to true, will list each content object that is associated with each code.

Parameters: XmlRequest
	<CTPListRequest IncludeContent="[true, false]" />

Sample Request

http://external.ws.staywell.com/[SiteName]/Content.svc/ListCPTCodes?xmlRequest=<CPTListRequest IncludeContent="true" />

Sample Result XML

<?xml version="1.0" encoding="utf-8" ?>
<CPTList>
	<CPTItem code="11975">
		<ContentList>
			<ContentObject ViewCount="0" ContentTypeId="3" ContentId="82203" IsCustom="false" Blocked="false" ContentObjectType="Document" />
			<ContentObject ViewCount="0" ContentTypeId="3" ContentId="82630" IsCustom="false" Blocked="false" ContentObjectType="Document" />
			<ContentObject ViewCount="0" ContentTypeId="3" ContentId="85378" IsCustom="false" Blocked="false" ContentObjectType="Document" />
			...
		</ContentList>
	</CPTItem>
	<CPTItem code="59025">
		<ContentList>
			<ContentObject ViewCount="0" ContentTypeId="3" ContentId="82288" IsCustom="false" Blocked="false" ContentObjectType="Document" />
			<ContentObject ViewCount="0" ContentTypeId="3" ContentId="82838" IsCustom="false" Blocked="false" ContentObjectType="Document" />
			<ContentObject ViewCount="0" ContentTypeId="3" ContentId="85402" IsCustom="false" Blocked="false" ContentObjectType="Document" />
			...
		</ContentList>
	</CPTItem>
	...
</CPTList>