Hi Kurt, On Sunday 28 March 2004 22:52, you wrote: > unfortunately I cannot access care2x.com - there is no reconrd on our > DNS ... but if it works on the others, all the better.
Yes, I guess it has something to do with redirections. Anyway, this is not tragic. I have tested your scripts and apps and they all work nicely. > Concerning the other mail, I would love to move it to XMLRPC(hxp). I > will need to use XMLRPC for the next Version of ipath anyway and why not > start with hxp - can you point me to a good introduction to hxp, so I > could see if I can adapt the script for that. Please go here: http://hxp.sourceforge.net/hxp_client.html You can see some introduction to building server or client for xmlrpc. The sample syntax are for php ixr library though, but you should immediately understand the concept. Writing the python version should be much easier compared to php, not to mention that the xmlrpc library is already built in in python starting at version 2.2. You can in fact test connect to the www.care2x.net/foundry/modules/hxp/server.php and test the following procedure calls: Person.List Person.Search Person To know exactly what parameters and their structures are needed to be passed and what will be the response, you need to consult the Procedure Call Dictionary (also on the website given above) which documents these procedures in high detail. You will quickly realize that HXP is not a new invention of a transport protocol nor a message format but just an agreement on how we call the common procedures and how they are structured. If we can work on this systematically, we could be starting a new interoperation network for iPath-OIO-Care2x. So OIO could be sending images to iPath via their application and vice-versa (or to Care2x) and we never need to rewrite our codes for every partner application. (The user just enters the URL of the server via a GUI mask, or selects from a list) One reason for making this effort to is allow us a very close and productive cooperation without losing one's own project identity. There are more advantages in addition to this, but we will explore them a bit later. > Is there an XMLRPC image > import to care2x? Currently in the PCD draft, I have listed a procedure named "EMR.Image.Add". I am thinking of using this but this is not yet coded in the above given server URL. Also, the parameter structure is not yet proposed. If you allow me, it could be like this: EMR.Image.Add(header, encounter_nr, data) param "header" is an xmlrpc struct which contains the ff: key-value pairs [usr] => username [pw] => password param "encounter_nr" is encounter number (or case ID for iPath) - string param "data" is an xmlrpc struct which contains the ff: key-value pairs [img] => the image data in base 64 format [shot_date] => the date when the image was taken (shot) (YYYY-MM-DD) [sender_id] => ID or name of the sending party [notes] => optional notes or diagnosis, etc. Now when the server successfuly saves the image, it should return an xmlrpc struct which contains the ff: key-value pairs: [url] => the complete image url of the saved image to allow a client (a browser to display the image for optical validation) [img_nr] => the primary key of the database record when some or all data were saved to the database Now when error happens , the server should response with an error code and an error message like _ERROR_SQL_NOSAVE or _ERROR_FILE_NOSAVE The above is not absolute yet and your recommendations are welcome but I am going to add the above to the www.care2x.net/foundry/modules/hxp/server.php this week for demonstation purposes. Later when it works, we can still discuss further for fine tuning. > Using the HTTP_POST was simply for demonstration purpose - I already > knew how to implement it. > > Did you check the script with the TWAIN driver. It works on my computer, > but I have not been able to test others, yet. I have tested it in my Win2K box, and the menu appears. Unluckily, the day before I installed the twain module from sf.net, I got a bluescreen :-( and I can run the box now only in "safe" mode and my USB conn is somehow disabled. But I will try to re-install the Win2K this weekend to regain full functionality and will report to you how the twain webcam capture works. Last but not least, I am very thankful for your efforts. I firmly believe that if we persevere we will be able to expand this interoperatibility to some more applications. I CCed this to Dr. Ho, the OIO, and HXP mailing lists. Best regards, Elpidio ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Hxp-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hxp-developers
