pracro:praxisd
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
pracro:praxisd [2011/04/18 14:53] – deva | pracro:praxisd [2011/12/08 10:16] – deva | ||
---|---|---|---|
Line 378: | Line 378: | ||
</ | </ | ||
</ | </ | ||
+ | |||
====Authenticate==== | ====Authenticate==== | ||
< | < | ||
- | Validate a username and password against the pcpraxis user db. NOTE: this is not needed in order to communicate with the server. Not event PUTs. | + | Validate a username and password against the pcpraxis user db. NOTE: this is not needed in order to communicate with the server. Not event POSTs. |
Parameters: | Parameters: | ||
* user the username | * user the username | ||
Line 393: | 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 | + | ====Get All DokMenu |
< | < | ||
- | Shows the complete | + | Shows the complete |
Parameters: | Parameters: | ||
* cpr the patient id. | * cpr the patient id. | ||
- | //Returns// xml structure with docmenu | + | //Returns// xml structure with dokmenu |
<code xml> | <code xml> | ||
<?xml version=" | <?xml version=" | ||
Line 413: | Line 414: | ||
</ | </ | ||
- | ====Get | + | ====Get |
< | < | ||
- | Fetch contents of a file in the docmenu | + | Fetch contents of a file in the dokmenu |
Parameters: | Parameters: | ||
* cpr the patient id. | * cpr the patient id. | ||
Line 424: | Line 425: | ||
=====POST===== | =====POST===== | ||
+ | |||
====Add To Journal==== | ====Add To Journal==== | ||
< | < | ||
+ | Add text to the journal. | ||
+ | <code xml> | ||
+ | <praxisd version=" | ||
+ | <journal cpr=" | ||
+ | </ | ||
+ | </ | ||
====Update Patient==== | ====Update Patient==== | ||
< | < | ||
+ | FIXME Not yet implemented. | ||
====Add Sogeord to Patient==== | ====Add Sogeord to Patient==== | ||
< | < | ||
+ | <code xml> | ||
+ | <praxisd version=" | ||
+ | < | ||
+ | <sogeord sogenr=" | ||
+ | . | ||
+ | . | ||
+ | . | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
====Update Aftale==== | ====Update Aftale==== | ||
< | < | ||
+ | In the xml both the old and the new contents must be present in order for the server to be able to verify that no changes were made since the original was last fetched. | ||
+ | <code xml> | ||
+ | <praxisd version=" | ||
+ | <aftale date=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | <aftale date=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | 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 " | ||
+ | * 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: " | ||
====Add Aftale==== | ====Add Aftale==== | ||
< | < | ||
+ | <code xml> | ||
+ | <praxisd version=" | ||
+ | <aftale date=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
====Delete Aftale==== | ====Delete Aftale==== | ||
< | < | ||
+ | Delete the matching calendar entry. | ||
+ | <code xml> | ||
+ | <praxisd version=" | ||
+ | <aftale date=" | ||
+ | </ | ||
+ | </ | ||
- | ====Add File to Docmenu==== | + | |
+ | ====Add File to DokMenu==== | ||
< | < | ||
+ | Upload file to dokmenu. | ||
+ | <code xml> | ||
+ | <praxisd version=" | ||
+ | <dokmenu cpr=" | ||
+ | < | ||
+ | < | ||
+ | <file [name=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
- | ====Delete File from Docmenu==== | + | ====Delete File from DokMenu==== |
< | < | ||
+ | Delete a file from the dokmenu. | ||
+ | <code xml> | ||
+ | <praxisd version=" | ||
+ | <dokmenu cpr=" | ||
+ | </ | ||
+ | </ | ||
pracro/praxisd.txt · Last modified: 2011/12/08 10:18 by deva