AppointmentVo.as 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. package com.imt.intimamedia.vo
  2. {
  3. import com.imt.intimamedia.helpers.AMFDateConverter;
  4. import mx.collections.ArrayCollection;
  5. [RemoteClass(alias="com.imt.intimamedia.vo.AppointmentVo")]
  6. [Bindable]
  7. /**
  8. * Objet de RDV
  9. */
  10. public class AppointmentVo
  11. {
  12. private var _id : int = -1;
  13. private var _number : int = 1;
  14. private var _date : Date;
  15. private var _weight : int;
  16. private var _height : int;
  17. private var _livingCountry : String = "";
  18. private var _livingCountryIdx : int = -1;
  19. private var _patientId : int = -1;
  20. private var _type : String = "";
  21. private var _ats : AtsVo = new AtsVo();
  22. private var _tobacco : TobaccoVo = new TobaccoVo();
  23. private var _personalHistory : PersonalHistoryVo = new PersonalHistoryVo();
  24. private var _familyHistory : FamilyHistoryVo = new FamilyHistoryVo();
  25. private var _cvExaminator : CvExaminatorVo = new CvExaminatorVo();
  26. private var _treatments : Array = new Array();
  27. private var _treatmentCollection : ArrayCollection = new ArrayCollection();
  28. /**
  29. * ID du RDV
  30. *
  31. * @default 0
  32. */
  33. public function get id () : int
  34. {
  35. return _id;
  36. }
  37. /**
  38. * @private
  39. */
  40. public function set id ( value : int ) : void
  41. {
  42. _id = value;
  43. }
  44. /**
  45. * Nombre de RDV
  46. *
  47. * @default 1
  48. */
  49. public function get number () : int
  50. {
  51. return _number;
  52. }
  53. /**
  54. * @private
  55. */
  56. public function set number ( value : int ) : void
  57. {
  58. _number = value;
  59. }
  60. /**
  61. * Date du RDV
  62. *
  63. * @default null
  64. */
  65. public function get date () : Date
  66. {
  67. return _date;
  68. }
  69. /**
  70. * @private
  71. */
  72. public function set date ( value : * ) : void
  73. {
  74. _date = AMFDateConverter.convert( value );
  75. }
  76. /**
  77. * Taille
  78. *
  79. * @default 0
  80. */
  81. public function get height () : int
  82. {
  83. return _height;
  84. }
  85. /**
  86. * @private
  87. */
  88. public function set height ( value : int ) : void
  89. {
  90. _height = value;
  91. }
  92. /**
  93. * Poids
  94. *
  95. * @default 0
  96. */
  97. public function get weight () : int
  98. {
  99. return _weight;
  100. }
  101. /**
  102. * @private
  103. */
  104. public function set weight ( value : int ) : void
  105. {
  106. _weight = value;
  107. }
  108. /**
  109. * Pays de résidence du patient
  110. *
  111. * @default null
  112. */
  113. public function get livingCountry () : String
  114. {
  115. return _livingCountry;
  116. }
  117. /**
  118. * @private
  119. */
  120. public function set livingCountry ( value : String ) : void
  121. {
  122. _livingCountry = value;
  123. }
  124. /**
  125. * Index de la combobox du pays de résidence du patient
  126. *
  127. * @default null
  128. */
  129. public function get livingCountryIdx () : int
  130. {
  131. return _livingCountryIdx;
  132. }
  133. /**
  134. * @private
  135. */
  136. public function set livingCountryIdx ( value : int ) : void
  137. {
  138. _livingCountryIdx = value;
  139. }
  140. /**
  141. * ID du patient
  142. *
  143. * @default null
  144. */
  145. public function get patientId () : int
  146. {
  147. return _patientId;
  148. }
  149. /**
  150. * @private
  151. */
  152. public function set patientId ( value : int ) : void
  153. {
  154. _patientId = value;
  155. }
  156. /**
  157. * Type de rdv : Carotides, Jambes, etc...
  158. *
  159. * @default null
  160. */
  161. public function get type () : String
  162. {
  163. return _type;
  164. }
  165. /**
  166. * @private
  167. */
  168. public function set type ( value : String ) : void
  169. {
  170. _type = value;
  171. }
  172. /**
  173. * ATS du patient
  174. *
  175. * @default null
  176. */
  177. public function get ats () : AtsVo
  178. {
  179. return _ats;
  180. }
  181. /**
  182. * @private
  183. */
  184. public function set ats ( value : AtsVo ) : void
  185. {
  186. _ats = value;
  187. }
  188. /**
  189. * Tabac du patient
  190. *
  191. * @default null
  192. */
  193. public function get tobacco () : TobaccoVo
  194. {
  195. return _tobacco;
  196. }
  197. /**
  198. * @private
  199. */
  200. public function set tobacco ( value : TobaccoVo ) : void
  201. {
  202. _tobacco = value;
  203. }
  204. /**
  205. * Antécédents du patient
  206. *
  207. * @default null
  208. */
  209. public function get personalHistory () : PersonalHistoryVo
  210. {
  211. return _personalHistory;
  212. }
  213. /**
  214. * @private
  215. */
  216. public function set personalHistory ( value : PersonalHistoryVo ) : void
  217. {
  218. _personalHistory = value;
  219. }
  220. /**
  221. * Antécédents familiaux
  222. *
  223. * @default null
  224. */
  225. public function get familyHistory () : FamilyHistoryVo
  226. {
  227. return _familyHistory;
  228. }
  229. /**
  230. * @private
  231. */
  232. public function set familyHistory ( value : FamilyHistoryVo ) : void
  233. {
  234. _familyHistory = value;
  235. }
  236. /**
  237. * Examen cardio-vasculaire
  238. *
  239. * @default null
  240. */
  241. public function get cvExaminator () : CvExaminatorVo
  242. {
  243. return _cvExaminator;
  244. }
  245. /**
  246. * @private
  247. */
  248. public function set cvExaminator ( value : CvExaminatorVo ) : void
  249. {
  250. _cvExaminator = value;
  251. }
  252. /**
  253. * Liste des traitements
  254. *
  255. * @default null
  256. */
  257. public function get treatments () : Array
  258. {
  259. return _treatments;
  260. }
  261. /**
  262. * @private
  263. */
  264. public function set treatments ( value : Array ) : void
  265. {
  266. _treatments = value;
  267. }
  268. /**
  269. * Liste des traitements
  270. *
  271. * @default null
  272. */
  273. public function get treatmentCollection () : ArrayCollection
  274. {
  275. return _treatmentCollection;
  276. }
  277. /**
  278. * @private
  279. */
  280. public function set treatmentCollection ( value : ArrayCollection ) : void
  281. {
  282. _treatmentCollection = value;
  283. }
  284. }
  285. }