<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Survey - Proposed API change to make related items easier to work with...</title><link>http://blogs.msdn.com/b/healthvault/archive/2008/06/19/survey-proposed-api-change-to-make-related-items-easier-to-work-with.aspx</link><description>If you've been working with related items, you may have found that it's a bit inconvenient to use right now. Specifically: 
 
 To set up a two-way-link between objects, you need to insert one, insert the second with related items, and then update the</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Survey - Proposed API change to make related items easier to work with...</title><link>http://blogs.msdn.com/b/healthvault/archive/2008/06/19/survey-proposed-api-change-to-make-related-items-easier-to-work-with.aspx#8791354</link><pubDate>Wed, 30 Jul 2008 13:31:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8791354</guid><dc:creator>John Lohan</dc:creator><description>&lt;p&gt;Hello Eric,&lt;/p&gt;
&lt;p&gt;I don't think introducing ClientId makes the problem any simpler. Rather, I'm more comfortable with the current implementation. Less the number of GUIDs we come accross, less the confusion.&lt;/p&gt;
&lt;p&gt;But let me tell you my main concern.&lt;/p&gt;
&lt;p&gt;I can relate one thing with another, but how do I specify what is the relationship?&lt;/p&gt;
&lt;p&gt;E.g. I can relate an Allergy with a Procedure. But how do I specify that the related GUID is referring to an allergy?&lt;/p&gt;
&lt;p&gt;Say, I use RelationshipType string.&lt;/p&gt;
&lt;p&gt;But how will the other applications know what is the meaning of the string?&lt;/p&gt;
&lt;p&gt;Also, how do I know that this relationship was added by me? In this case, every application should carefully prefix the RelationshipType string with some unique string (e.g. name of the application).&lt;/p&gt;
&lt;p&gt;This doesn't sound a good mechanism, since we are at the discretion of each and every application using HV.&lt;/p&gt;
&lt;p&gt;As per my opinion, we should have another member of HealthRecordItemRelationship class named RelatedItemType of type HVThingTypesEnum, which is an enum of all the thing types (including application-specific).&lt;/p&gt;
&lt;p&gt;And preferably it should be a non-nullable field.&lt;/p&gt;
&lt;p&gt;Let me know if you thing this will add any value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8791354" width="1" height="1"&gt;</description></item></channel></rss>