PatientVo.as 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. package com.imt.intimamedia.vo
  2. {
  3. import com.imt.intimamedia.helpers.AMFDateConverter;
  4. [RemoteClass(alias="com.imt.intimamedia.vo.PatientVo")]
  5. [Bindable]
  6. /**
  7. * Objet utilisateur
  8. */
  9. public class PatientVo
  10. {
  11. private var _id : int;
  12. private var _uid : String = "";
  13. private var _firstName : String = "";
  14. private var _lastName : String = "";
  15. private var _creation : Date = new Date();
  16. private var _ethnicGroup : String = "";
  17. private var _sex : String = "";
  18. private var _birthDate : Date = new Date();
  19. private var _birthCountry : String = "";
  20. private var _lastVisit : Date = new Date();
  21. /**
  22. * ID patient
  23. *
  24. * @default 0
  25. */
  26. public function get id () : int
  27. {
  28. return _id;
  29. }
  30. /**
  31. * @private
  32. */
  33. public function set id ( value : int ) : void
  34. {
  35. _id = value;
  36. }
  37. /**
  38. * Identifiant unique permettant de boucler sur les différents enregistrements en base
  39. *
  40. * @default ""
  41. */
  42. public function get uid () : String
  43. {
  44. return _uid;
  45. }
  46. /**
  47. * @private
  48. */
  49. public function set uid ( value : String ) : void
  50. {
  51. _uid = value;
  52. }
  53. /**
  54. * Prénom
  55. *
  56. * @default ""
  57. */
  58. public function get firstName () : String
  59. {
  60. return _firstName;
  61. }
  62. /**
  63. * @private
  64. */
  65. public function set firstName ( value : String ) : void
  66. {
  67. _firstName = value;
  68. }
  69. /**
  70. * Nom de famille
  71. *
  72. * @default ""
  73. */
  74. public function get lastName () : String
  75. {
  76. return _lastName;
  77. }
  78. /**
  79. * @private
  80. */
  81. public function set lastName ( value : String ) : void
  82. {
  83. _lastName = value;
  84. }
  85. /**
  86. * Date de création du patient
  87. *
  88. * @default null
  89. */
  90. public function get creation () : Date
  91. {
  92. return _creation;
  93. }
  94. /**
  95. * @private
  96. */
  97. public function set creation ( value : * ) : void
  98. {
  99. _creation = AMFDateConverter.convert( value );
  100. }
  101. /**
  102. * Ethnie du patient
  103. *
  104. * @default null
  105. */
  106. public function get ethnicGroup () : String
  107. {
  108. return _ethnicGroup;
  109. }
  110. /**
  111. * @private
  112. */
  113. public function set ethnicGroup ( value : String ) : void
  114. {
  115. _ethnicGroup = value;
  116. }
  117. /**
  118. * Sexe du patient
  119. *
  120. * @default null
  121. */
  122. public function get sex () : String
  123. {
  124. return _sex;
  125. }
  126. /**
  127. * @private
  128. */
  129. public function set sex ( value : String ) : void
  130. {
  131. _sex = value;
  132. }
  133. /**
  134. * Date de naissance du patient
  135. *
  136. * @default null
  137. */
  138. public function get birthDate () : Date
  139. {
  140. return _birthDate;
  141. }
  142. /**
  143. * @private
  144. */
  145. public function set birthDate ( value : * ) : void
  146. {
  147. _birthDate = AMFDateConverter.convert( value );
  148. }
  149. /**
  150. * Pays de naissance du patient
  151. *
  152. * @default null
  153. */
  154. public function get birthCountry () : String
  155. {
  156. return _birthCountry;
  157. }
  158. /**
  159. * @private
  160. */
  161. public function set birthCountry ( value : String ) : void
  162. {
  163. _birthCountry = value;
  164. }
  165. /**
  166. * Dernière visite du patient
  167. *
  168. * @default null
  169. */
  170. public function get lastVisit () : Date
  171. {
  172. return _lastVisit;
  173. }
  174. /**
  175. * @private
  176. */
  177. public function set lastVisit ( value : * ) : void
  178. {
  179. _lastVisit = AMFDateConverter.convert( value );
  180. }
  181. }
  182. }