How to upload a CCD from JAVA?
-
Friday, January 08, 2010 7:43 AMIs it possible to upload a CCD document into healthvault ppe using java? I've raised this question in codeplex.com, I didnt get the reply yet. Friends, if anyone knows answer for this, do reply and kindly provide me some hints to upload CCD to healthvault using java
All Replies
-
Friday, January 08, 2010 6:21 PMModerator
Certainly-- it should be the same as writing any other data type, as CCD is treated as an atomic Thing Type like any other HealthVault Thing Type. There may be additional Java wrapper functions, but at the underlying XML web service layer they are all just calls to the GetThings method. The only change for CCD is which type is being sent. We don't directly support the Java calls themselves, so unfortunately I can't provide code samples or pointers as to exactly which Java methods to use.
However, if you can write other types, CCD shouldn't be any different.- Proposed As Answer by Lowell MeyerMicrosoft Employee, Moderator Friday, January 08, 2010 6:21 PM
- Marked As Answer by Lowell MeyerMicrosoft Employee, Moderator Wednesday, January 20, 2010 12:43 AM
-
Friday, January 08, 2010 6:30 PMModerator
Hello Kumaresh,
Following is a sample request XML that you can use for uploading CCD document.
<wc-request:request xmlns:wc-request="urn:com.microsoft.wc.request">
<auth>
<hmac-data algName="HMACSHA256">9M3geRWw3769znhmNPN2COFNu3waIltG/62AjSU95BA=</hmac-data>
</auth>
<header>
<method>PutThings</method>
<method-version>2</method-version>
<record-id>7a8ff015-553e-4eda-8663-ad79ef50f7f0</record-id>
<auth-session>
<auth-token>.............</auth-token>
<user-auth-token>.............</user-auth-token>
</auth-session>
<language>en</language>
<country>US</country>
<msg-time>2010-01-08T18:16:22.64Z</msg-time>
<msg-ttl>1800</msg-ttl>
<version>1.1.2193.4712</version>
<info-hash>
<hash-data algName="SHA256">Riybx1cjtr09tpqbn5ZjSg5X9NRSo0tUVb0jkn4tBmw=</hash-data>
</info-hash>
</header>
<info>
<thing>
<type-id>9c48a2b8-952c-4f5a-935d-f3292326bf54</type-id>
<thing-state>Active</thing-state>
<data-xml>
<ClinicalDocument xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd" xmlns="urn:hl7-org:v3" xmlns:voc="urn:hl7-org:v3/voc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
.............................
</ClinicalDocument>
<common />
</data-xml>
</thing>
</info>
</wc-request:request>
Hope this helps.
Thanks and Regards,
Aneesh D.- Marked As Answer by Lowell MeyerMicrosoft Employee, Moderator Wednesday, January 20, 2010 12:43 AM
-
Friday, February 15, 2013 11:26 AM
can i know the schema for file. i want to upload a file to healthvault along with its contents. schema for the File uploads only " filename,size and content-type" and not the actual content. I am unable to download a file which has been uploaded using the file schema.
Please help
-
Sunday, February 17, 2013 3:59 AMOwnerYou can see the File schema on the HealthVault Developer Center.

