Logo

Maarten Balliauw {blog}

ASP.NET, ASP.NET MVC, Azure, PHP, OpenXML, VSTS, ...

About the author

Maarten Balliauw is an MVP ASP.NET and is currently employed as .NET Software Engineer at RealDolmen. His interests are mainly web applications developed in ASP.NET (C#) or PHP.
More about me More about me
Send mail E-mail me


Microsoft Most Valuable Professional - MVP - ASP.NET

Subscribe to my RSS feed Follow me on Twitter! View Maarten Balliauw's profile on LinkedIn RealDolmen - Rock-solid passion for ICT
I'm a speaker at TechDays Belgium and TechDays Finland

Search

Latest Twitter

    Follow me on Twitter...

    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

    © Copyright Maarten Balliauw 2010

    OpenXML in Healthcare in PHP

    Here's a cool present just before the weekend... 2 days ago, Wouter posted on his blog about an article he co-operated on for MSDN: OpenXML in Healthcare.

    Being both a Microsoft and PHP fan (yes, you can curse me, I don't care), I thought of porting (part of) the sample code from his article into PHP. Except for the document signing, as I did not have many time to write this sample code...

    The scenario for the article is quite simple: Contoso provides a central medical records database. Whenever a physician has to register a new patient, he downloads a Word 2007 document from the Contoso server, fills it out, and uploads it back. Contoso then strips out the necessary data and saves it back in their systems.

     

    This Word 2007 document is crafted around embedded custom XML data, which is displayed and edited using Word 2007. In short: to do the above exercise, you just need to strip out the custom XML and you're done.

    Stripping out the custom XML is also quite easy. First, locate the main relationships part in the OpenXML package. Then, search it for the main document part. From there, loop over the relationships to this document part and look for any relationship of the type "http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml". When that one's found, you just need to parse the referenced document and you're done!

    Want to see a demo? Check this out.
    Want the sample code? Download it.
    Want the OpenXML background? Read the original article.


    Comments

    developercast.com | Reply

    Monday, October 29, 2007 10:33 PM

    pingback

    Pingback from developercast.com

    developercast.com » Maarten Balliauw’s Blog: OpenXML in Healthcare in PHP

    zawartko.com | Reply

    Tuesday, October 30, 2007 12:16 PM

    pingback

    Pingback from zawartko.com

    Radoslaw Zawartko » MSDNowy przykÅ‚ad OpenXML w PHP

    Doug Mahugh | Reply

    Monday, November 05, 2007 12:07 AM

    trackback

    Trackback from Doug Mahugh

    Open XML links for 11-04-2007

    Noticias externas | Reply

    Monday, November 05, 2007 12:19 AM

    trackback

    Trackback from Noticias externas

    Open XML links for 11-04-2007

    msdnrss.thecoderblogs.com | Reply

    Monday, November 05, 2007 12:27 AM

    pingback

    Pingback from msdnrss.thecoderblogs.com

    MSDN Blog Postings  » Open XML links for 11-04-2007

    sf devblog Poland | Reply

    Saturday, November 10, 2007 9:00 AM

    sf devblog

    Open XML looks fine Smile

    Add comment




      Country flag

    biuquote
    • Comment
    • Preview
    Loading