User Tools

Site Tools


pracro:praxisd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
pracro:praxisd [2011/09/12 09:13] devapracro:praxisd [2011/12/08 10:16] deva
Line 394: Line 394:
 //Returns// the plaintext utf-8 name connected with the userid. //Returns// the plaintext utf-8 name connected with the userid.
  
-====Get All Docmenu by CPR====+====Get All DokMenu by CPR====
 <code>/praxisd/1.0/dokmenu/get_all_by_cpr</code> <code>/praxisd/1.0/dokmenu/get_all_by_cpr</code>
-Shows the complete docmenu for a given patient id.+Shows the complete dokmenu for a given patient id.
 Parameters: Parameters:
   * cpr the patient id.   * cpr the patient id.
-//Returns// xml structure with docmenu entries\\+//Returns// xml structure with dokmenu entries\\
 <code xml> <code xml>
 <?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
Line 414: Line 414:
 </code> </code>
  
-====Get Docmenu by Name and CPR====+====Get DokMenu by Name and CPR====
 <code>/praxisd/1.0/dokmenu/get_by_cpr_and_name</code> <code>/praxisd/1.0/dokmenu/get_by_cpr_and_name</code>
-Fetch contents of a file in the docmenu by using its filename.+Fetch contents of a file in the dokmenu by using its filename.
 Parameters: Parameters:
   * cpr the patient id.   * cpr the patient id.
Line 451: Line 451:
 </praxisd> </praxisd>
 </code> </code>
 +
  
 ====Update Aftale==== ====Update Aftale====
Line 473: Line 474:
 </praxisd> </praxisd>
 </code> </code>
 +NOTE: All fields are truncated to their respective database column sizes without notice.
 +
 +On success the server replies with the http statuscode 200: OK
 +
 +Some of the fail states are:
 +  * The updated aftale is identical to the one already in the database. This does **not** result in an error, but will leave the database untouched.
 +  * The current aftale in the database is no identical to the aftale marked "original" in the xml. This will result in a http errror 400: Bad Request with the body "Source changed".
 +  * The original does not exist in the database (is was deleted or never added). The server responds with a http err 400: Bad request and body: "IsamError 10200".
  
 ====Add Aftale==== ====Add Aftale====
Line 497: Line 506:
 </code> </code>
  
-====Add File to Docmenu====+ 
 +====Add File to DokMenu====
 <code>/praxisd/1.0/dokmenu/add</code> <code>/praxisd/1.0/dokmenu/add</code>
-Upload file to docmenu.+Upload file to dokmenu.
 <code xml> <code xml>
 <praxisd version="1.0"> <praxisd version="1.0">
Line 505: Line 515:
     <group>Group text bla</group>     <group>Group text bla</group>
     <subject>Subject text bla</subject>     <subject>Subject text bla</subject>
-    <file [name="88888888.333" | extension="333"] [date="YYYY-MM-DD HH:MM:SS] [base64="true|false"]>file content</file>+    <file [name="88888888.333" | extension="333"] [date="YYYY-MM-DD HH:MM:SS"] [base64="true|false"]>file content</file>
   </dokmenu>   </dokmenu>
 </praxisd> </praxisd>
 </code> </code>
  
-====Delete File from Docmenu====+====Delete File from DokMenu====
 <code>/praxisd/1.0/dokmenu/delete</code> <code>/praxisd/1.0/dokmenu/delete</code>
-Delete a file from the docmenu.+Delete a file from the dokmenu.
 <code xml> <code xml>
 <praxisd version="1.0"> <praxisd version="1.0">
pracro/praxisd.txt · Last modified: 2011/12/08 10:18 by deva