pracro:praxisd
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
pracro:praxisd [2011/04/18 14:40] – deva | pracro:praxisd [2011/12/08 10:18] – removed deva | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Praxisd====== | ||
- | Pracro must connect to praxisd in order to: | ||
- | * 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====== | ||
- | =====POST===== | ||
- | < | ||
- | / | ||
- | /* / | ||
- | / | ||
- | / | ||
- | / | ||
- | / | ||
- | / | ||
- | / | ||
- | </ | ||
- | =====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 PUTs. | ||
- | Parameters: | ||
- | * user the username | ||
- | * pass the password | ||
- | //Returns// http errorcode 401 (unauthorized) if not successful 200 (OK) otherwise. | ||
- | |||
- | ====Get Name by UserID==== | ||
- | < | ||
- | Parameters: | ||
- | * user the username to look up. | ||
- | //Returns// the plaintext utf-8 name connected with the userid. | ||
- | |||
- | ====Get All Docmenu by CPR==== | ||
- | < | ||
- | Shows the complete docmenu for a given patient id. | ||
- | Parameters: | ||
- | * cpr the patient id. | ||
- | //Returns// xml structure with docmenu entries\\ | ||
- | <code xml> | ||
- | <?xml version=" | ||
- | <praxisd version=" | ||
- | <dokmenu cpr=" | ||
- | < | ||
- | < | ||
- | < | ||
- | </ | ||
- | . | ||
- | . | ||
- | . | ||
- | </ | ||
- | </ | ||
- | |||
- | ====Get Docmenu by Name and CPR==== | ||
- | < | ||
- | Fetch contents of a file in the docmenu by using its filename. | ||
- | Parameters: | ||
- | * cpr the patient id. | ||
- | * name the name of the file to be fetched. | ||
- | //Returns// the raw unformatted contents of the file. |
pracro/praxisd.txt · Last modified: 2011/12/08 10:18 by deva