summaryrefslogtreecommitdiff
path: root/server/src/praxisd.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2012-08-23 13:31:57 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2012-08-23 13:31:57 +0200
commit07694570b09524881d01df7c857cc8f471f1ad04 (patch)
tree8cae77df7bb081c1b7d37a587d11c765769d3643 /server/src/praxisd.h
parent05732251c115b3538879ca523c461572115c6526 (diff)
parent909c48a297d7f68b107fce7ad444c2165f749f42 (diff)
Merge branch 'master' of http://git.aasimon.org/public/pracro
Diffstat (limited to 'server/src/praxisd.h')
-rw-r--r--server/src/praxisd.h78
1 files changed, 52 insertions, 26 deletions
diff --git a/server/src/praxisd.h b/server/src/praxisd.h
index 84848b8..785cba1 100644
--- a/server/src/praxisd.h
+++ b/server/src/praxisd.h
@@ -37,13 +37,16 @@
class Praxisd {
public:
- Praxisd(std::string host, int port);
+ Praxisd(std::string host, int port)
+ throw(const char*);
~Praxisd();
- time_t journal_last_changed(std::string cpr);
+ time_t journal_last_changed(std::string cpr)
+ throw(const char*);
// Get Journal By CPR
- std::string journal_get_by_cpr(std::string cpr);
+ std::string journal_get_by_cpr(std::string cpr)
+ throw(const char*);
// Get Patient By CPR
typedef struct {
@@ -89,7 +92,8 @@ public:
std::string unknown251;
std::string jtime;
} patient_t;
- patient_t patient_get_by_cpr(std::string cpr);
+ patient_t patient_get_by_cpr(std::string cpr)
+ throw(const char*);
// Get Diverse From Sogenr
typedef struct {
@@ -102,7 +106,8 @@ public:
std::string tlf;
std::string fax;
} adresse_t;
- std::vector<adresse_t> diverse_get_adresse(std::string sogenr);
+ std::vector<adresse_t> diverse_get_adresse(std::string sogenr)
+ throw(const char*);
typedef struct {
std::string sogenr;
@@ -111,7 +116,8 @@ public:
std::string bemaerkning;
std::string udregning;
} behandling_t;
- std::vector<behandling_t> diverse_get_behandling(std::string sogenr);
+ std::vector<behandling_t> diverse_get_behandling(std::string sogenr)
+ throw(const char*);
typedef struct {
std::string sogenr;
@@ -120,7 +126,8 @@ public:
std::string bemaerkning2;
std::string bemaerkning3;
} cave_t;
- std::vector<cave_t> diverse_get_cave(std::string sogenr);
+ std::vector<cave_t> diverse_get_cave(std::string sogenr)
+ throw(const char*);
typedef struct {
std::string sogenr;
@@ -128,7 +135,8 @@ public:
std::string diagnose;
std::string bemaerkning;
} diagnose_t;
- std::vector<diagnose_t> diverse_get_diagnose(std::string sogenr);
+ std::vector<diagnose_t> diverse_get_diagnose(std::string sogenr)
+ throw(const char*);
typedef struct {
std::string sogenr;
@@ -137,14 +145,16 @@ public:
std::string frase3;
std::string frase4;
} frase_t;
- std::vector<frase_t> diverse_get_frase(std::string sogenr);
+ std::vector<frase_t> diverse_get_frase(std::string sogenr)
+ throw(const char*);
typedef struct {
std::string sogenr;
std::string navn;
std::string bemaerkning;
} grafik_t;
- std::vector<grafik_t> diverse_get_grafik(std::string sogenr);
+ std::vector<grafik_t> diverse_get_grafik(std::string sogenr)
+ throw(const char*);
typedef struct {
std::string sogenr;
@@ -154,7 +164,8 @@ public:
std::string form3;
std::string form4;
} indholdstof_t;
- std::vector<indholdstof_t> diverse_get_indholdstof(std::string sogenr);
+ std::vector<indholdstof_t> diverse_get_indholdstof(std::string sogenr)
+ throw(const char*);
typedef struct {
std::string sogenr;
@@ -162,14 +173,16 @@ public:
std::string klage;
std::string bemaerkning;
} klage_t;
- std::vector<klage_t> diverse_get_klage(std::string sogenr);
+ std::vector<klage_t> diverse_get_klage(std::string sogenr)
+ throw(const char*);
typedef struct {
std::string sogenr;
std::string navn;
std::string bemaerkning;
} oversigt_t;
- std::vector<oversigt_t> diverse_get_oversigt(std::string sogenr);
+ std::vector<oversigt_t> diverse_get_oversigt(std::string sogenr)
+ throw(const char*);
typedef struct {
std::string sogenr;
@@ -181,7 +194,8 @@ public:
std::string regionnavn;
std::string kommunenavn;
} postnummer_t;
- std::vector<postnummer_t> diverse_get_postnummer(std::string sogenr);
+ std::vector<postnummer_t> diverse_get_postnummer(std::string sogenr)
+ throw(const char*);
typedef struct {
std::string sogenr;
@@ -191,7 +205,8 @@ public:
std::string bemaerkning3;
std::string recept;
} type_t;
- std::vector<type_t> diverse_get_type(std::string sogenr);
+ std::vector<type_t> diverse_get_type(std::string sogenr)
+ throw(const char*);
typedef struct {
std::string sogenr;
@@ -200,7 +215,8 @@ public:
std::string bemaerkning;
std::string udregning;
} undersoegelse_t;
- std::vector<undersoegelse_t> diverse_get_undersoegelse(std::string sogenr);
+ std::vector<undersoegelse_t> diverse_get_undersoegelse(std::string sogenr)
+ throw(const char*);
typedef struct {
std::string sogenr;
@@ -213,7 +229,8 @@ public:
std::string journal2;
std::string moms;
} ydelse_t;
- std::vector<ydelse_t> diverse_get_ydelse(std::string sogenr);
+ std::vector<ydelse_t> diverse_get_ydelse(std::string sogenr)
+ throw(const char*);
// Get Aftale All by Date and Calendar
@@ -227,17 +244,21 @@ public:
std::string cres;
} aftale_t;
std::vector<aftale_t> aftale_get_all_by_date_and_calendar(int cal, int year,
- int month, int day);
+ int month, int day)
+ throw(const char*);
// Get Aftale All by CPR
- std::vector<aftale_t> aftale_get_all_by_cpr(std::string cpr);
+ std::vector<aftale_t> aftale_get_all_by_cpr(std::string cpr)
+ throw(const char*);
// Authenticate
- bool authenticate(std::string user, std::string pass);
+ bool authenticate(std::string user, std::string pass)
+ throw(const char*);
#if 0
// Get Name by UserID
- std::string user_get_name_by_id(std::string user);
+ std::string user_get_name_by_id(std::string user)
+ throw(const char*);
#endif
// Get All Dokmenu by CPR
@@ -248,19 +269,23 @@ public:
size_t filesize;
std::string date;
} dokmenu_t;
- std::vector<dokmenu_t> dokmenu_get_all_by_cpr(std::string cpr);
+ std::vector<dokmenu_t> dokmenu_get_all_by_cpr(std::string cpr)
+ throw(const char*);
// Get Dokmenu by Name and CPR
- std::string dokmenu_get_by_cpr_and_name(std::string cpr, std::string name);
+ std::string dokmenu_get_by_cpr_and_name(std::string cpr, std::string name)
+ throw(const char*);
// POST:
// Add To Journal
- void journal_add(std::string cpr, std::string entry);
+ void journal_add(std::string cpr, std::string entry)
+ throw(const char*);
// Update Patient
// Add Sogeord to Patient
- void add_sogeord(std::string cpr, std::string sogeord, std::string sogetxt);
+ void add_sogeord(std::string cpr, std::string sogeord, std::string sogetxt)
+ throw(const char*);
// Update Aftale
// Add Aftale
@@ -269,7 +294,8 @@ public:
// Delete File from Dokmenu
private:
- std::string get_sogenr(std::string sogenr);
+ std::string get_sogenr(std::string sogenr)
+ throw(const char*);
CURL *ch;
std::string host;
};