Display fix: width in manila for demographics (#1909)
[openemr.git] / entities / User.php
blob2818159c7c900b44180fd7216aa9b37f468e18bb
1 <?php
2 /**
3 * User entity.
5 * @package OpenEMR
6 * @link http://www.open-emr.org
7 * @author Matthew Vita <matthewvita48@gmail.com>
8 * @author Brady Miller <brady.g.miller@gmail.com>
9 * @copyright Copyright (c) 2017 Matthew Vita <matthewvita48@gmail.com>
10 * @copyright Copyright (c) 2017 Brady Miller <brady.g.miller@gmail.com>
11 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
14 namespace OpenEMR\Entities;
16 use Doctrine\ORM\Mapping\Entity;
17 use Doctrine\ORM\Mapping\Table;
18 use Doctrine\ORM\Mapping\Column;
19 use Doctrine\ORM\Mapping\Id;
20 use Doctrine\ORM\Mapping\Index;
21 use Doctrine\ORM\Mapping\OneToMany;
22 use Doctrine\ORM\Mapping\GeneratedValue;
24 /**
25 * @Table(name="users")
26 * @Entity(repositoryClass="OpenEMR\Repositories\UserRepository")
28 class User
30 /**
31 * Default constructor.
33 public function __construct()
37 /**
38 * @Column(name="id", type="integer")
39 * @GeneratedValue(strategy="AUTO")
41 private $id;
43 /**
44 * @OneToMany(targetEntity="ONote", mappedBy="user")
46 private $oNotes;
48 /**
49 * @Id
50 * @Column(name="username", type="string")
52 private $username;
54 /**
55 * @Column(name="calendar", type="boolean")
57 private $calendar;
59 /**
60 * @Column(name="irnpool", type="string")
62 private $irnPool;
64 /**
65 * @Column(name="cpoe", type="boolean")
67 private $cpoe;
69 /**
70 * @Column(name="physician_type", type="string")
72 private $physicianType;
74 /**
75 * @Column(name="newcrop_user_role", type="string")
77 private $newCropUserRole;
79 /**
80 * @Column(name="state_license_number", type="string")
82 private $stateLicenseNumber;
84 /**
85 * @Column(name="default_warehouse", type="string")
87 private $defaultWarehouse;
89 /**
90 * @Column(name="pwd_history2", type="text")
92 private $pwdHistory2;
94 /**
95 * @Column(name="pwd_history1", type="text")
97 private $pwdHistory1;
99 /**
100 * @Column(name="pwd_expiration_date", type="string")
102 private $pwdExpirationDate;
105 * @Column(name="abook_type", type="string")
107 private $aBookType;
110 * @Column(name="password", type="text")
112 private $password;
115 * @Column(name="authorized", type="boolean")
117 private $authorized;
120 * @Column(name="info", type="text")
122 private $info;
125 * @Column(name="taxonomy", type="string")
127 private $taxonomy;
130 * @Column(name="cal_ui", type="boolean")
132 private $calUi;
135 * @Column(name="notes", type="text")
137 private $notes;
140 * @Column(name="phonecell", type="string")
142 private $phoneCell;
145 * @Column(name="phonew2", type="string")
147 private $phoneW2;
150 * @Column(name="phonew1", type="string")
152 private $phoneW1;
155 * @Column(name="fax", type="string")
157 private $fax;
160 * @Column(name="phone", type="string")
162 private $phone;
165 * @Column(name="zip2", type="string")
167 private $zip2;
170 * @Column(name="state2", type="string")
172 private $state2;
175 * @Column(name="city2", type="string")
177 private $city2;
180 * @Column(name="streetb2", type="string")
182 private $streetB2;
185 * @Column(name="street2", type="string")
187 private $street2;
190 * @Column(name="zip", type="string")
192 private $zip;
195 * @Column(name="state", type="string")
197 private $state;
200 * @Column(name="city", type="string")
202 private $city;
205 * @Column(name="streetb", type="string")
207 private $streetB;
210 * @Column(name="street", type="string")
212 private $street;
215 * @Column(name="valedictory", type="string")
217 private $valedictory;
220 * @Column(name="organization", type="string")
222 private $organization;
225 * @Column(name="assistant", type="string")
227 private $assistant;
230 * @Column(name="url", type="string")
232 private $url;
235 * @Column(name="email_direct", type="string")
237 private $emailDirect;
240 * @Column(name="email", type="string")
242 private $email;
245 * @Column(name="billname", type="string")
247 private $billName;
250 * @Column(name="specialty", type="string")
252 private $specialty;
255 * @Column(name="title", type="string")
257 private $title;
260 * @Column(name="npi", type="string")
262 private $npi;
265 * @Column(name="active", type="boolean")
267 private $active;
270 * @Column(name="see_auth", type="integer")
272 private $seeAuth;
275 * @Column(name="facility_id", type="integer")
277 private $facilityId;
280 * @Column(name="facility", type="string")
282 private $facility;
285 * @Column(name="upin", type="string")
287 private $upin;
290 * @Column(name="federalDrugId", type="string")
292 private $federalDrugId;
295 * @Column(name="federaltaxid", type="string")
297 private $federalTaxId;
300 * @Column(name="suffix", type="string")
302 private $suffix;
305 * @Column(name="lname", type="string")
307 private $lname;
310 * @Column(name="mname", type="string")
312 private $mname;
315 * @Column(name="fname", type="string")
317 private $fname;
320 * @Column(name="source", type="boolean")
322 private $source;
325 * @Column(name="main_menu_role", type="string")
327 private $mainMenuRole;
330 * @Column(name="patient_menu_role", type="string")
332 private $patientMenuRole;
335 * @Column(name="weno_prov_id", type="string")
337 private $wenoProvId;
339 public function getId()
341 return $this->id;
344 public function setId($value)
346 $this->id = $value;
349 public function getUsername()
351 return $this->username;
354 public function setUsername($value)
356 $this->username = $value;
359 public function getPassword()
361 return $this->password;
364 public function setPassword($value)
366 $this->password = $value;
369 public function getAuthorized()
371 return $this->authorized;
374 public function setAuthorized($value)
376 $this->authorized = $value;
379 public function getInfo()
381 return $this->info;
384 public function setInfo($value)
386 $this->info = $value;
389 public function getSource()
391 return $this->source;
394 public function setSource($value)
396 $this->source = $value;
399 public function getFname()
401 return $this->fname;
404 public function setFname($value)
406 $this->fname = $value;
409 public function getMname()
411 return $this->mname;
414 public function setMname($value)
416 $this->mname = $value;
419 public function getLname()
421 return $this->lname;
424 public function setLname($value)
426 $this->lname = $value;
429 public function getSuffix()
431 return $this->suffix;
434 public function setSuffix($value)
436 $this->suffix = $value;
439 public function getFederalTaxId()
441 return $this->federalTaxId;
444 public function setFederalTaxId($value)
446 $this->federalTaxId = $value;
449 public function getFederalDrugId()
451 return $this->federalDrugId;
454 public function setFederalDrugId($value)
456 $this->federalDrugId = $value;
459 public function getUpin()
461 return $this->upin;
464 public function setUpin($value)
466 $this->upin = $value;
469 public function getFacility()
471 return $this->facility;
474 public function setFacility($value)
476 $this->facility = $value;
479 public function getFacilityId()
481 return $this->facilityId;
484 public function setFacilityId($value)
486 $this->facilityId = $value;
489 public function getSeeAuth()
491 return $this->seeAuth;
494 public function setSeeAuth($value)
496 $this->seeAuth = $value;
499 public function getActive()
501 return $this->active;
504 public function setActive($value)
506 $this->active = $value;
509 public function getNpi()
511 return $this->npi;
514 public function setNpi($value)
516 $this->npi = $value;
519 public function getTitle()
521 return $this->title;
524 public function setTitle($value)
526 $this->title = $value;
529 public function getSpecialty()
531 return $this->specialty;
534 public function setSpecialty($value)
536 $this->specialty = $value;
539 public function getBillName()
541 return $this->billName;
544 public function setBillName($value)
546 $this->billName = $value;
549 public function getEmail()
551 return $this->email;
554 public function setEmail($value)
556 $this->email = $value;
559 public function getEmailDirect()
561 return $this->emailDirect;
564 public function setEmailDirect($value)
566 $this->emailDirect = $value;
569 public function getUrl()
571 return $this->url;
574 public function setUrl($value)
576 $this->url = $value;
579 public function getAssistant()
581 return $this->assistant;
584 public function setAssistant($value)
586 $this->assistant = $value;
589 public function getOrganization()
591 return $this->organization;
594 public function setOrganization($value)
596 $this->organization = $value;
599 public function getValedictory()
601 return $this->valedictory;
604 public function setValedictory($value)
606 $this->valedictory = $value;
609 public function getStreet()
611 return $this->street;
614 public function setStreet($value)
616 $this->street = $value;
619 public function getStreetB()
621 return $this->streetB;
624 public function setStreetB($value)
626 $this->streetB = $value;
629 public function getCity()
631 return $this->city;
634 public function setCity($value)
636 $this->city = $value;
639 public function getState()
641 return $this->state;
644 public function setState($value)
646 $this->state = $value;
649 public function getZip()
651 return $this->zip;
654 public function setZip($value)
656 $this->zip = $value;
659 public function getStreet2()
661 return $this->street2;
664 public function setStreet2($value)
666 $this->street2 = $value;
669 public function getStreetB2()
671 return $this->streetB2;
674 public function setStreetB2($value)
676 $this->streetB2 = $value;
679 public function getCity2()
681 return $this->city2;
684 public function setCity2($value)
686 $this->city2 = $value;
689 public function getState2()
691 return $this->state2;
694 public function setState2($value)
696 $this->state2 = $value;
699 public function getZip2()
701 return $this->zip2;
704 public function setZip2($value)
706 $this->zip2 = $value;
709 public function getPhone()
711 return $this->phone;
714 public function setPhone($value)
716 $this->phone = $value;
719 public function getFax()
721 return $this->fax;
724 public function setFax($value)
726 $this->fax = $value;
729 public function getPhoneW1()
731 return $this->phoneW1;
734 public function setPhoneW1($value)
736 $this->phoneW1 = $value;
739 public function getPhoneW2()
741 return $this->phoneW2;
744 public function setPhoneW2($value)
746 $this->phoneW2 = $value;
749 public function getPhoneCell()
751 return $this->phoneCell;
754 public function setPhoneCell($value)
756 $this->phoneCell = $value;
759 public function getNotes()
761 return $this->notes;
764 public function setNotes($value)
766 $this->notes = $value;
769 public function getCalUi()
771 return $this->calUi;
774 public function setCalUi($value)
776 $this->calUi = $value;
779 public function getTaxonomy()
781 return $this->taxonomy;
784 public function setTaxonomy($value)
786 $this->taxonomy = $value;
789 public function getCalendar()
791 return $this->calendar;
794 public function setCalendar($value)
796 $this->calendar = $value;
799 public function getaBookType()
801 return $this->aBookType;
804 public function setaBookType($value)
806 $this->aBookType = $value;
809 public function getPwdExpirationDate()
811 return $this->pwdExpirationDate;
814 public function setPwdExpirationDate($value)
816 $this->pwdExpirationDate = $value;
819 public function getPwdHistory1()
821 return $this->pwdHistory1;
824 public function setPwdHistory1($value)
826 $this->pwdHistory1 = $value;
829 public function getPwdHistory2()
831 return $this->pwdHistory2;
834 public function setPwdHistory2($value)
836 $this->pwdHistory2 = $value;
839 public function getDefaultWarehouse()
841 return $this->defaultWarehouse;
844 public function setDefaultWarehouse($value)
846 $this->defaultWarehouse = $value;
849 public function getIrnPool()
851 return $this->irnPool;
854 public function setIrnPool($value)
856 $this->irnPool = $value;
859 public function getStateLicenseNumber()
861 return $this->stateLicenseNumber;
864 public function setStateLicenseNumber($value)
866 $this->stateLicenseNumber = $value;
869 public function getNewCropUserRole()
871 return $this->newCropUserRole;
874 public function setNewCropUserRole($value)
876 $this->newCropUserRole = $value;
879 public function getCpoe()
881 return $this->cpoe;
884 public function setCpoe($value)
886 $this->cpoe = $value;
889 public function getPhysicianType()
891 return $this->physicianType;
894 public function setPhysicianType($value)
896 $this->physicianType = $value;
899 public function getMainMenuRole()
901 return $this->mainMenuRole;
904 public function setMainMenuRole($value)
906 $this->mainMenuRole = $value;
909 public function getPatientMenuRole()
911 return $this->patientMenuRole;
914 public function setPatientMenuRole($value)
916 $this->patientMenuRole = $value;
919 public function getWenoProvId()
921 return $this->wenoProvId;
924 public function setWenoProvId($value)
926 $this->wenoProvId = $value;
930 * ToString of the entire object.
932 * @return object as string
934 public function __toString()
936 return "id: '" . $this->getId() . "' " .
937 "username: '" . $this->getUsername() . "' " .
938 "password: '" . $this->getPassword() . "' " .
939 "authorized: '" . $this->getAuthorized() . "' " .
940 "info: '" . $this->getInfo() . "' " .
941 "source: '" . $this->getSource() . "' " .
942 "fname: '" . $this->getFname() . "' " .
943 "mname: '" . $this->getMname() . "' " .
944 "lname: '" . $this->getLname() . "' " .
945 "suffix: '" . $this->getSuffix() . "' " .
946 "federalTaxId: '" . $this->getFederalTaxId() . "' " .
947 "federalDrugId: '" . $this->getFederalDrugId() . "' " .
948 "upin: '" . $this->getUpin() . "' " .
949 "facility: '" . $this->getFacility() . "' " .
950 "facilityId: '" . $this->getFacilityId() . "' " .
951 "seeAuth: '" . $this->getSeeAuth() . "' " .
952 "active: '" . $this->getActive() . "' " .
953 "npi: '" . $this->getNpi() . "' " .
954 "title: '" . $this->getTitle() . "' " .
955 "specialty: '" . $this->getSpecialty() . "' " .
956 "billName: '" . $this->getBillName() . "' " .
957 "email: '" . $this->getEmail() . "' " .
958 "emailDirect: '" . $this->getEmailDirect() . "' " .
959 "url: '" . $this->getUrl() . "' " .
960 "assistant: '" . $this->getAssistant() . "' " .
961 "organization: '" . $this->getOrganization() . "' " .
962 "valedictory: '" . $this->getValedictory() . "' " .
963 "street: '" . $this->getStreet() . "' " .
964 "streetB: '" . $this->getStreetB() . "' " .
965 "city: '" . $this->getCity() . "' " .
966 "state: '" . $this->getState() . "' " .
967 "zip: '" . $this->getZip() . "' " .
968 "street2: '" . $this->getStreet2() . "' " .
969 "streetB2: '" . $this->getStreetB2() . "' " .
970 "city2: '" . $this->getCity2() . "' " .
971 "state2: '" . $this->getState2() . "' " .
972 "zip2: '" . $this->getZip2() . "' " .
973 "phone: '" . $this->getPhone() . "' " .
974 "fax: '" . $this->getFax() . "' " .
975 "phoneW1: '" . $this->getPhoneW1() . "' " .
976 "phoneW2: '" . $this->getPhoneW2() . "' " .
977 "phoneCell: '" . $this->getPhoneCell() . "' " .
978 "notes: '" . $this->getNotes() . "' " .
979 "calUi: '" . $this->getCalUi() . "' " .
980 "taxonomy: '" . $this->getTaxonomy() . "' " .
981 "calendar: '" . $this->getCalendar() . "' " .
982 "aBookType: '" . $this->getaBookType() . "' " .
983 "pwdExpirationDate: '" . $this->getPwdExpirationDate() . "' " .
984 "pwdHistory1: '" . $this->getPwdHistory1() . "' " .
985 "pwdHistory2: '" . $this->getPwdHistory2() . "' " .
986 "defaultWarehouse: '" . $this->getDefaultWarehouse() . "' " .
987 "irnPool: '" . $this->getIrnPool() . "' " .
988 "stateLicenseNumber: '" . $this->getStateLicenseNumber() . "' " .
989 "newCropUserRole: '" . $this->getNewCropUserRole() . "' " .
990 "cpoe: '" . $this->getCpoe() . "' " .
991 "physicianType: '" . $this->getPhysicianType() . "' " .
992 "mainMenuRole: '" . $this->getMainMenuRole() . "' " .
993 "patientMenuRole: '" . $this->getPatientMenuRole() . "' " .
994 "wenoProvId: '" . $this->getWenoProvId() . "' ";
998 * ToSerializedObject of the entire object.
1000 * @return object as serialized object.
1002 public function toSerializedObject()
1004 return get_object_vars($this);