From 23f39df8b8edeacfa5821050abbdc855acb2edd6 Mon Sep 17 00:00:00 2001 From: deva Date: Fri, 1 Jul 2011 11:54:26 +0000 Subject: removed macrotool. add lua wrapper for praxisd. new type attributes_t for sax parser and children. make macros/templates use real vars instead of var map. add data ttl on macro level. add 'important' attribute to macrotags in templates. --- server/src/database.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/src/database.h') diff --git a/server/src/database.h b/server/src/database.h index 8876ae7..27169fe 100644 --- a/server/src/database.h +++ b/server/src/database.h @@ -67,7 +67,7 @@ public: mutex.lock(); DEBUG(db, "%s, %s, %s,...\n", transaction.user.c_str(), transaction.cpr.c_str(), - macro.attributes["name"].c_str()); + macro.name.c_str()); dao->commitTransaction(sessionid, transaction, commit, macro, now); mutex.unlock(); } @@ -76,7 +76,7 @@ public: Values getValues(std::string patientid, Fieldnames &fieldnames, std::string sessionid, - time_t oldest = 0) + time_t oldest) { if(!dao) return Values(); mutex.lock(); @@ -92,7 +92,7 @@ public: bool checkMacro(std::string patientid, std::string macro, std::string sessionid, - time_t oldest = 0) + time_t oldest) { DEBUG(db, "%s, %s, %ld\n", patientid.c_str(), macro.c_str(), oldest); @@ -108,7 +108,7 @@ public: time_t oldest, std::string sessionid) { DEBUG(db, "%s, %s, %ld\n", - patientid.c_str(), macro.attributes["name"].c_str(), oldest); + patientid.c_str(), macro.name.c_str(), oldest); if(!dao) return ""; Fieldnames fn; fn.push_back("journal.resume"); -- cgit v1.2.3