PhmsDataType.h 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. #pragma once
  2. typedef struct tagBLOODSUGER_DATA
  3. {
  4. double bloodsuger;
  5. const char* flag;
  6. }BLOODSUGER_DATA;
  7. typedef struct tagSPO2_DATA
  8. {
  9. double spo2;
  10. double pr;
  11. }SPO2_DATA;
  12. typedef struct tagBP_DATA
  13. {
  14. double sys;
  15. double mean;
  16. double dia;
  17. }BP_DATA;
  18. typedef struct tagFETAL_DATA
  19. {
  20. double fetalHeartRate;
  21. double palacePressure;
  22. double quickening;
  23. }FETAL_DATA;
  24. typedef struct tagFVC_DATA
  25. {
  26. double fvc;
  27. double fev1;
  28. double pef;
  29. double fev1Rate;
  30. double fef25;
  31. double fef2575;
  32. double fef75;
  33. }FVC_DATA;
  34. typedef struct tagPEDOMETER_DATA
  35. {
  36. double setps;
  37. double distance;
  38. double calories;
  39. }PEDOMETER_DATA;
  40. typedef struct tagURINE
  41. {
  42. const char* urineValue;
  43. const char* urineValueAdd;
  44. const char* urineValueNew;
  45. }URINE_DATA;
  46. typedef struct tagHR_CONCLUSION
  47. {
  48. double vaule;
  49. const char* conclusion;
  50. }HR_CONCLUSION;
  51. typedef struct tagBLOOD_TEST
  52. {
  53. double CHOL;
  54. double HDL;
  55. double TG;
  56. double LDL;
  57. double HB;
  58. double HCT;
  59. }BLOOD_TEST, *pBLOOD_TEST;
  60. typedef struct tagRECORD_DATA
  61. {
  62. double hr;
  63. double weight;
  64. double height;
  65. double temp;
  66. double resp;
  67. double chol;
  68. double ua;
  69. BLOODSUGER_DATA bloodsugerData;
  70. SPO2_DATA spo2Data;
  71. BP_DATA bpData;
  72. FETAL_DATA fetalData;
  73. FVC_DATA fvcData;
  74. PEDOMETER_DATA pedometerData;
  75. const char* checkTime;
  76. URINE_DATA urineData;
  77. HR_CONCLUSION hrConclusion;
  78. BLOOD_TEST bloodTest;
  79. }RECORD_DATA;
  80. typedef struct tagBLOODSUGER_DATA_STRING
  81. {
  82. const char* bloodsuger;
  83. const char* flag;
  84. }BLOODSUGER_DATA_STRING;
  85. typedef struct tagSPO2_DATA_STRING
  86. {
  87. const char* spo2;
  88. const char* pr;
  89. }SPO2_DATA_STRING;
  90. typedef struct tagBP_DATA_STRING
  91. {
  92. const char* sys;
  93. const char* mean;
  94. const char* dia;
  95. }BP_DATA_STRING;
  96. typedef struct tagFETAL_DATA_STRING
  97. {
  98. const char* fetalHeartRate;
  99. const char* palacePressure;
  100. const char* quickening;
  101. }FETAL_DATA_STRING;
  102. typedef struct tagFVC_DATA_STRING
  103. {
  104. const char* fvc;
  105. const char* fev1;
  106. const char* pef;
  107. const char* fev1Rate;
  108. const char* fef25;
  109. const char* fef2575;
  110. const char* fef75;
  111. }FVC_DATA_STRING;
  112. typedef struct tagPEDOMETER_DATA_STRING
  113. {
  114. const char* setps;
  115. const char* distance;
  116. const char* calories;
  117. }PEDOMETER_DATA_STRING;
  118. typedef struct tagURINE_STRING
  119. {
  120. const char* urineValue;
  121. const char* urineValueAdd;
  122. const char* urineValueNew;
  123. }URINE_DATA_STRING;
  124. typedef struct tagHR_CONCLUSION_STRING
  125. {
  126. const char* vaule;
  127. const char* conclusion;
  128. }HR_CONCLUSION_STRING;
  129. typedef struct tagBLOOD_TEST_STRING
  130. {
  131. const char* CHOL;
  132. const char* HDL;
  133. const char* TG;
  134. const char* LDL;
  135. const char* HB;
  136. const char* HCT;
  137. }BLOOD_TEST_STRING, *pBLOOD_TEST_STRING;
  138. typedef struct tagRECORD_DATA_STRING
  139. {
  140. const char* hr;
  141. const char* weight;
  142. const char* height;
  143. const char* temp;
  144. const char* resp;
  145. const char* chol;
  146. const char* ua;
  147. const char* ag;
  148. BLOODSUGER_DATA_STRING bloodsugerData;
  149. SPO2_DATA_STRING spo2Data;
  150. BP_DATA_STRING bpData;
  151. FETAL_DATA_STRING fetalData;
  152. FVC_DATA_STRING fvcData;
  153. PEDOMETER_DATA_STRING pedometerData;
  154. const char* checkTime;
  155. URINE_DATA_STRING urineData;
  156. HR_CONCLUSION_STRING hrConclusion;
  157. BLOOD_TEST_STRING bloodTest;
  158. }RECORD_DATA_STRING;
  159. typedef struct tagHEALTHY_KNOWLEDGE
  160. {
  161. const char* title; //健康知识的标题
  162. const char* description; //健康知识的描述
  163. const char* url; //健康知识全文URI
  164. const char* picurl; //健康知识的图片URI
  165. }HEALTHY_KNOWLEDGE, *pHEALTHY_KNOWLEDGE;
  166. typedef struct tagTELCOM_ECG
  167. {
  168. const char** pArrayData;
  169. unsigned int nArrayLength;
  170. const char* adRate;
  171. const char* adAccuracy;
  172. const char* rangeMin;
  173. const char* rangeMax;
  174. const char* heartValue;
  175. const char* stLevel;
  176. const char* prInterval;
  177. const char* qtInterval;
  178. const char* rrInterval;
  179. const char* pWave;
  180. const char* rWave;
  181. const char* tWave;
  182. const char* result1;
  183. const char* result2;
  184. const char* result3;
  185. const char* result4;
  186. const char* result5;
  187. }TELCOM_ECG, *pTELCOM_ECG;
  188. typedef struct tagGUANXIN_DATA
  189. {
  190. const char* id;
  191. const char* ArchiveId;
  192. const char* OperatorNo;
  193. const char* OperatorName;
  194. const char* MachineNo;
  195. const char* IdCard;
  196. const char* Height;
  197. const char* Weight;
  198. const char* Temperature;
  199. const char* Glucose;
  200. const char* Systolic;
  201. const char* Diastolic;
  202. const char* Oxygen;
  203. const char* PulseRate;
  204. const char* HR;
  205. const char* Paxis;
  206. const char* Taxis;
  207. const char* QRSaxis;
  208. const char* PR;
  209. const char* QRS;
  210. const char* QT;
  211. const char* QTc;
  212. const char* RV5;
  213. const char* SV1;
  214. const char* URO;
  215. const char* BLD;
  216. const char* BIL;
  217. const char* KET;
  218. const char* GLU;
  219. const char* PRO;
  220. const char* PH;
  221. const char* NIT;
  222. const char* WBC;
  223. const char* SG;
  224. const char* VC;
  225. const char* Diagnosis01;
  226. const char* ExamTime;
  227. const char* RTime;
  228. const char* Diagnosis02;
  229. const char* Diagnosis03;
  230. const char* Diagnosis04;
  231. const char* Diagnosis05;
  232. const char* Diagnosis06;
  233. const char* Diagnosis07;
  234. }GUANXIN_DATA, *pGUANXIN_DATA;
  235. typedef struct tagQUERY_RANGE
  236. {
  237. const char* upperLimit;
  238. const char* lowerLimit;
  239. }QUERY_RANGE, *pQUERY_RANGE;
  240. typedef struct tagQUERY_ECG
  241. {
  242. QUERY_RANGE hr;
  243. QUERY_RANGE pr_int;
  244. QUERY_RANGE qt_int;
  245. QUERY_RANGE qtc_int;
  246. QUERY_RANGE p_dur;
  247. QUERY_RANGE qrs_dur;
  248. QUERY_RANGE p_axis;
  249. QUERY_RANGE qrs_axis;
  250. QUERY_RANGE t_axis;
  251. QUERY_RANGE rv5;
  252. QUERY_RANGE sv1;
  253. }QUERY_ECG, *pQUERY_ECG;
  254. typedef char* NET_HANDLE;
  255. typedef void (*pProgressAndSpeedCallback)(double dProgress, double dSpeed, const char* stringServerFilePath, const char* stringLocalFilePath);
  256. //以下为推送成功与失败回调,※※不可以在回调函数中执行关闭推送操作,否则库报错※※
  257. typedef void (*pHttpPushCallback)(const char* stringContent, unsigned long nContentSize);
  258. //推送错误回调,nErrorCode取值COMMON_SESSION_INVALID:session失效,目前只有服务器重启才有可能;COMMON_LOGIN_ANOTHER_PLACE:相同账号异地登录;COMMON_SERVER_NO_SUPPORT:该用户类型不支持该种推送,咱无其他可能;COMMON_NET_CONFIG_ERROR:配置文件中文推送地址
  259. typedef void (*pHttpPushFailCallback)(int nErrorCode/*, NET_HANDLE handle*/);
  260. #define PC_DOCTOR_TERMINAL_TYPE ("contec-ctype1/1.0")
  261. #define PC_USER_TERMINAL_TYPE ("contec-ctype2/1.0")
  262. #define HM_TERMINAL_TYPE ("contec-ctype3/1.0")
  263. #define CM_TERMINAL_TYPE ("contec-ctype4/1.0")
  264. #define FOUR_SERIES_TERMINAL_TYPE ("contec-ctype5/1.0")
  265. #define SEVEN_SERIES_TERMINAL_TYPE ("contec-ctype6/1.0")
  266. #define ANDROID_TERMINAL_TYPE ("contec-ctype7/1.0")