pracro:praxisd
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pracro:praxisd [2011/10/11 14:33] – deva | pracro:praxisd [2011/12/08 10:18] (current) – created deva | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Praxisd====== | + | This page has been moved to http://wiki.oftal.dk/doku.php? |
- | Pracro must connect | + | |
- | * Upload journal data. | + | |
- | * Retrieve journal data. | + | |
- | * Get cave list. | + | |
- | * Post cave information to a patient. | + | |
- | * Get cave information from a patient. | + | |
- | + | ||
- | Future uses include: | + | |
- | * Calendar extracts for macro prefills. | + | |
- | + | ||
- | =====libpraxisd===== | + | |
- | The praxisd interface library. | + | |
- | Using curl. | + | |
- | interface: | + | |
- | <code c> | + | |
- | struct { | + | |
- | char *data; | + | |
- | size_t size; | + | |
- | } journal_t; | + | |
- | + | ||
- | journal_t *getJournal(const char *patientid); | + | |
- | void freeJournal(journal_t *journal); | + | |
- | + | ||
- | + | ||
- | </ | + | |
- | + | ||
- | ======API====== | + | |
- | =====GET===== | + | |
- | ====Get Journal By CPR==== | + | |
- | < | + | |
- | Parameters: | + | |
- | * cpr the cpr number of the patient | + | |
- | //Returns// the journal plaintext in utf-8 | + | |
- | + | ||
- | ====Get Patient By CPR==== | + | |
- | < | + | |
- | Parameters: | + | |
- | * cpr the cpr number of the patient | + | |
- | //Returns// xml structure with patient data.\\ | + | |
- | XML fields: | + | |
- | + | ||
- | Example: '' | + | |
- | <code xml> | + | |
- | <?xml version=" | + | |
- | <praxisd version=" | + | |
- | <patient cpr=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | <sogeord sogenr=" | + | |
- | <sogeord sogenr=" | + | |
- | <sogeord sogenr=" | + | |
- | <sogeord sogenr=" | + | |
- | <sogeord sogenr=" | + | |
- | <sogeord sogenr=" | + | |
- | <sogeord sogenr=" | + | |
- | <sogeord sogenr=" | + | |
- | </ | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ====Get Diverse From Sogenr==== | + | |
- | < | + | |
- | Get list of matching sogenr entries. | + | |
- | Parameters: | + | |
- | * sogenr the sogenr prefix to match in the search. | + | |
- | //Returns// xml structure with matching diverse entries\\ | + | |
- | Prefix ' | + | |
- | <code xml> | + | |
- | <?xml version=" | + | |
- | <praxisd version=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | . | + | |
- | . | + | |
- | . | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | Prefix ' | + | |
- | <code xml> | + | |
- | <?xml version=" | + | |
- | <praxisd version=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | . | + | |
- | . | + | |
- | . | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | Prefix ' | + | |
- | <code xml> | + | |
- | <?xml version=" | + | |
- | <praxisd version=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | . | + | |
- | . | + | |
- | . | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | Prefix ' | + | |
- | <code xml> | + | |
- | <?xml version=" | + | |
- | <praxisd version=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | . | + | |
- | . | + | |
- | . | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | Prefix ' | + | |
- | + | ||
- | Prefix ' | + | |
- | <code xml> | + | |
- | <?xml version=" | + | |
- | <praxisd version=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | . | + | |
- | . | + | |
- | . | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | Prefix ' | + | |
- | <code xml> | + | |
- | <?xml version=" | + | |
- | <praxisd version=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | . | + | |
- | . | + | |
- | . | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | Prefix ' | + | |
- | + | ||
- | Prefix ' | + | |
- | <code xml> | + | |
- | <?xml version=" | + | |
- | <praxisd version=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | . | + | |
- | . | + | |
- | . | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | Prefix ' | + | |
- | <code xml> | + | |
- | <?xml version=" | + | |
- | <praxisd version=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | . | + | |
- | . | + | |
- | . | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | Prefix ' | + | |
- | + | ||
- | Prefix ' | + | |
- | + | ||
- | Prefix ' | + | |
- | + | ||
- | Prefix ' | + | |
- | <code xml> | + | |
- | <?xml version=" | + | |
- | <praxisd version=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | . | + | |
- | . | + | |
- | . | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | Prefix ' | + | |
- | <code xml> | + | |
- | <?xml version=" | + | |
- | <praxisd version=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | . | + | |
- | . | + | |
- | . | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | Prefix ' | + | |
- | + | ||
- | Prefix ' | + | |
- | <code xml> | + | |
- | <?xml version=" | + | |
- | <praxisd version=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | . | + | |
- | . | + | |
- | . | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | Prefix ' | + | |
- | <code xml> | + | |
- | <?xml version=" | + | |
- | <praxisd version=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | . | + | |
- | . | + | |
- | . | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | Prefix ' | + | |
- | + | ||
- | Prefix ' | + | |
- | + | ||
- | Prefix ' | + | |
- | <code xml> | + | |
- | <?xml version=" | + | |
- | <praxisd version=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | . | + | |
- | . | + | |
- | . | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | ====Get Aftale All by Date and Calendar==== | + | |
- | < | + | |
- | Parameters: | + | |
- | * calendar The calendar number to show [1-N]. | + | |
- | * year the year to show. | + | |
- | * month the month to show. | + | |
- | * day the day to show. | + | |
- | //Returns// xml structure with matching calendar entries\\ | + | |
- | <code xml> | + | |
- | <?xml version=" | + | |
- | <praxisd version=" | + | |
- | <aftale date=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | . | + | |
- | . | + | |
- | . | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | ====Get Aftale All by CPR==== | + | |
- | < | + | |
- | Parameters: | + | |
- | * cpr the patient to make calendar lookups for. | + | |
- | + | ||
- | //Returns// xml structure with matching calendar entries\\ | + | |
- | <code xml> | + | |
- | <?xml version=" | + | |
- | <praxisd version=" | + | |
- | <aftale date=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | . | + | |
- | . | + | |
- | . | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | ====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 POSTs. | + | |
- | Parameters: | + | |
- | * user the username | + | |
- | * pass the password | + | |
- | // | + | |
- | + | ||
- | ====Get Name by UserID==== | + | |
- | < | + | |
- | Parameters: | + | |
- | * user the username to look up. | + | |
- | //Returns// the plaintext utf-8 name connected with the userid. | + | |
- | + | ||
- | ====Get All DokMenu by CPR==== | + | |
- | < | + | |
- | Shows the complete dokmenu for a given patient id. | + | |
- | Parameters: | + | |
- | * cpr the patient id. | + | |
- | //Returns// xml structure with dokmenu entries\\ | + | |
- | <code xml> | + | |
- | <?xml version=" | + | |
- | <praxisd version=" | + | |
- | <dokmenu cpr=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | . | + | |
- | . | + | |
- | . | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | ====Get DokMenu by Name and CPR==== | + | |
- | < | + | |
- | Fetch contents of a file in the dokmenu by using its filename. | + | |
- | Parameters: | + | |
- | * cpr the patient | + | |
- | * name the name of the file to be fetched. | + | |
- | //Returns// the raw unformatted contents of the file. | + | |
- | + | ||
- | + | ||
- | + | ||
- | =====POST===== | + | |
- | + | ||
- | ====Add To Journal==== | + | |
- | < | + | |
- | Add text to the journal. | + | |
- | <code xml> | + | |
- | <praxisd version=" | + | |
- | <journal cpr=" | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | ====Update Patient==== | + | |
- | < | + | |
- | FIXME Not yet implemented. | + | |
- | + | ||
- | ====Add Sogeord to Patient==== | + | |
- | < | + | |
- | <code xml> | + | |
- | <praxisd version=" | + | |
- | < | + | |
- | <sogeord sogenr=" | + | |
- | . | + | |
- | . | + | |
- | . | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | ====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=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | </praxisd> | + | |
- | </ | + | |
- | + | ||
- | ====Add Aftale==== | + | |
- | < | + | |
- | <code xml> | + | |
- | <praxisd version=" | + | |
- | <aftale date=" | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | < | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | ====Delete Aftale==== | + | |
- | < | + | |
- | Delete the matching calendar entry. | + | |
- | <code xml> | + | |
- | <praxisd version=" | + | |
- | <aftale date=" | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | ====Add File to DokMenu==== | + | |
- | < | + | |
- | Upload file to dokmenu. | + | |
- | <code xml> | + | |
- | <praxisd version=" | + | |
- | <dokmenu cpr=" | + | |
- | < | + | |
- | < | + | |
- | <file [name=" | + | |
- | </ | + | |
- | </ | + | |
- | </ | + | |
- | + | ||
- | ====Delete File from DokMenu==== | + | |
- | < | + | |
- | Delete a file from the dokmenu. | + | |
- | <code xml> | + | |
- | <praxisd version=" | + | |
- | <dokmenu cpr=" | + | |
- | </ | + | |
- | </ | + |
pracro/praxisd.1318336434.txt.gz · Last modified: 2011/10/11 14:33 by deva