minor improvement to tabs style
[openemr.git] / entities / User.php
blobb077e09aed6b7c596bf42c86f95d5b97b3d76134
1 <?php
2 /**
3 * User entity.
5 * Copyright (C) 2017 Matthew Vita <matthewvita48@gmail.com>
7 * LICENSE: This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
18 * @package OpenEMR
19 * @author Matthew Vita <matthewvita48@gmail.com>
20 * @link http://www.open-emr.org
23 namespace entities;
25 use Doctrine\ORM\Mapping\Entity;
26 use Doctrine\ORM\Mapping\Table;
27 use Doctrine\ORM\Mapping\Column;
28 use Doctrine\ORM\Mapping\Id;
29 use Doctrine\ORM\Mapping\Index;
30 use Doctrine\ORM\Mapping\OneToMany;
31 use Doctrine\ORM\Mapping\GeneratedValue;
33 /**
34 * @Table(name="users")
35 * @Entity(repositoryClass="repositories\UserRepository")
37 class User {
38 /**
39 * Default constructor.
41 public function __construct() {}
43 /**
44 * @Column(name="id", type="integer")
45 * @GeneratedValue(strategy="AUTO")
47 private $id;
49 /**
50 * @OneToMany(targetEntity="ONote", mappedBy="user")
52 private $oNotes;
54 /**
55 * @Id
56 * @Column(name="username", type="string")
58 private $username;
60 /**
61 * @Column(name="calendar", type="boolean")
63 private $calendar;
65 /**
66 * @Column(name="irnpool", type="string")
68 private $irnPool;
70 /**
71 * @Column(name="cpoe", type="boolean")
73 private $cpoe;
75 /**
76 * @Column(name="physician_type", type="string")
78 private $physicianType;
80 /**
81 * @Column(name="newcrop_user_role", type="string")
83 private $newCropUserRole;
85 /**
86 * @Column(name="state_license_number", type="string")
88 private $stateLicenseNumber;
90 /**
91 * @Column(name="default_warehouse", type="string")
93 private $defaultWarehouse;
95 /**
96 * @Column(name="pwd_history2", type="text")
98 private $pwdHistory2;
101 * @Column(name="pwd_history1", type="text")
103 private $pwdHistory1;
106 * @Column(name="pwd_expiration_date", type="string")
108 private $pwdExpirationDate;
111 * @Column(name="abook_type", type="string")
113 private $aBookType;
116 * @Column(name="password", type="text")
118 private $password;
121 * @Column(name="authorized", type="boolean")
123 private $authorized;
126 * @Column(name="info", type="text")
128 private $info;
131 * @Column(name="taxonomy", type="string")
133 private $taxonomy;
136 * @Column(name="cal_ui", type="boolean")
138 private $calUi;
141 * @Column(name="notes", type="text")
143 private $notes;
146 * @Column(name="phonecell", type="string")
148 private $phoneCell;
151 * @Column(name="phonew2", type="string")
153 private $phoneW2;
156 * @Column(name="phonew1", type="string")
158 private $phoneW1;
161 * @Column(name="fax", type="string")
163 private $fax;
166 * @Column(name="phone", type="string")
168 private $phone;
171 * @Column(name="zip2", type="string")
173 private $zip2;
176 * @Column(name="state2", type="string")
178 private $state2;
181 * @Column(name="city2", type="string")
183 private $city2;
186 * @Column(name="streetb2", type="string")
188 private $streetB2;
191 * @Column(name="street2", type="string")
193 private $street2;
196 * @Column(name="zip", type="string")
198 private $zip;
201 * @Column(name="state", type="string")
203 private $state;
206 * @Column(name="city", type="string")
208 private $city;
211 * @Column(name="streetb", type="string")
213 private $streetB;
216 * @Column(name="street", type="string")
218 private $street;
221 * @Column(name="valedictory", type="string")
223 private $valedictory;
226 * @Column(name="organization", type="string")
228 private $organization;
231 * @Column(name="assistant", type="string")
233 private $assistant;
236 * @Column(name="url", type="string")
238 private $url;
241 * @Column(name="email_direct", type="string")
243 private $emailDirect;
246 * @Column(name="email", type="string")
248 private $email;
251 * @Column(name="billname", type="string")
253 private $billName;
256 * @Column(name="specialty", type="string")
258 private $specialty;
261 * @Column(name="title", type="string")
263 private $title;
266 * @Column(name="npi", type="string")
268 private $npi;
271 * @Column(name="active", type="boolean")
273 private $active;
276 * @Column(name="see_auth", type="integer")
278 private $seeAuth;
281 * @Column(name="facility_id", type="integer")
283 private $facilityId;
286 * @Column(name="facility", type="string")
288 private $facility;
291 * @Column(name="upin", type="string")
293 private $upin;
296 * @Column(name="federalDrugId", type="string")
298 private $federalDrugId;
301 * @Column(name="federaltaxid", type="string")
303 private $federalTaxId;
306 * @Column(name="suffix", type="string")
308 private $suffix;
311 * @Column(name="lname", type="string")
313 private $lname;
316 * @Column(name="mname", type="string")
318 private $mname;
321 * @Column(name="fname", type="string")
323 private $fname;
326 * @Column(name="source", type="boolean")
328 private $source;
330 public function getId() {
331 return $this->id;
334 public function setId($value) {
335 $this->id = $value;
338 public function getUsername() {
339 return $this->username;
342 public function setUsername($value) {
343 $this->username = $value;
346 public function getPassword() {
347 return $this->password;
350 public function setPassword($value) {
351 $this->password = $value;
354 public function getAuthorized() {
355 return $this->authorized;
358 public function setAuthorized($value) {
359 $this->authorized = $value;
362 public function getInfo() {
363 return $this->info;
366 public function setInfo($value) {
367 $this->info = $value;
370 public function getSource() {
371 return $this->source;
374 public function setSource($value) {
375 $this->source = $value;
378 public function getFname() {
379 return $this->fname;
382 public function setFname($value) {
383 $this->fname = $value;
386 public function getMname() {
387 return $this->mname;
390 public function setMname($value) {
391 $this->mname = $value;
394 public function getLname() {
395 return $this->lname;
398 public function setLname($value) {
399 $this->lname = $value;
402 public function getSuffix() {
403 return $this->suffix;
406 public function setSuffix($value) {
407 $this->suffix = $value;
410 public function getFederalTaxId() {
411 return $this->federalTaxId;
414 public function setFederalTaxId($value) {
415 $this->federalTaxId = $value;
418 public function getFederalDrugId() {
419 return $this->federalDrugId;
422 public function setFederalDrugId($value) {
423 $this->federalDrugId = $value;
426 public function getUpin() {
427 return $this->upin;
430 public function setUpin($value) {
431 $this->upin = $value;
434 public function getFacility() {
435 return $this->facility;
438 public function setFacility($value) {
439 $this->facility = $value;
442 public function getFacilityId() {
443 return $this->facilityId;
446 public function setFacilityId($value) {
447 $this->facilityId = $value;
450 public function getSeeAuth() {
451 return $this->seeAuth;
454 public function setSeeAuth($value) {
455 $this->seeAuth = $value;
458 public function getActive() {
459 return $this->active;
462 public function setActive($value) {
463 $this->active = $value;
466 public function getNpi() {
467 return $this->npi;
470 public function setNpi($value) {
471 $this->npi = $value;
474 public function getTitle() {
475 return $this->title;
478 public function setTitle($value) {
479 $this->title = $value;
482 public function getSpecialty() {
483 return $this->specialty;
486 public function setSpecialty($value) {
487 $this->specialty = $value;
490 public function getBillName() {
491 return $this->billName;
494 public function setBillName($value) {
495 $this->billName = $value;
498 public function getEmail() {
499 return $this->email;
502 public function setEmail($value) {
503 $this->email = $value;
506 public function getEmailDirect() {
507 return $this->emailDirect;
510 public function setEmailDirect($value) {
511 $this->emailDirect = $value;
514 public function getUrl() {
515 return $this->url;
518 public function setUrl($value) {
519 $this->url = $value;
522 public function getAssistant() {
523 return $this->assistant;
526 public function setAssistant($value) {
527 $this->assistant = $value;
530 public function getOrganization() {
531 return $this->organization;
534 public function setOrganization($value) {
535 $this->organization = $value;
538 public function getValedictory() {
539 return $this->valedictory;
542 public function setValedictory($value) {
543 $this->valedictory = $value;
546 public function getStreet() {
547 return $this->street;
550 public function setStreet($value) {
551 $this->street = $value;
554 public function getStreetB() {
555 return $this->streetB;
558 public function setStreetB($value) {
559 $this->streetB = $value;
562 public function getCity() {
563 return $this->city;
566 public function setCity($value) {
567 $this->city = $value;
570 public function getState() {
571 return $this->state;
574 public function setState($value) {
575 $this->state = $value;
578 public function getZip() {
579 return $this->zip;
582 public function setZip($value) {
583 $this->zip = $value;
586 public function getStreet2() {
587 return $this->street2;
590 public function setStreet2($value) {
591 $this->street2 = $value;
594 public function getStreetB2() {
595 return $this->streetB2;
598 public function setStreetB2($value) {
599 $this->streetB2 = $value;
602 public function getCity2() {
603 return $this->city2;
606 public function setCity2($value) {
607 $this->city2 = $value;
610 public function getState2() {
611 return $this->state2;
614 public function setState2($value) {
615 $this->state2 = $value;
618 public function getZip2() {
619 return $this->zip2;
622 public function setZip2($value) {
623 $this->zip2 = $value;
626 public function getPhone() {
627 return $this->phone;
630 public function setPhone($value) {
631 $this->phone = $value;
634 public function getFax() {
635 return $this->fax;
638 public function setFax($value) {
639 $this->fax = $value;
642 public function getPhoneW1() {
643 return $this->phoneW1;
646 public function setPhoneW1($value) {
647 $this->phoneW1 = $value;
650 public function getPhoneW2() {
651 return $this->phoneW2;
654 public function setPhoneW2($value) {
655 $this->phoneW2 = $value;
658 public function getPhoneCell() {
659 return $this->phoneCell;
662 public function setPhoneCell($value) {
663 $this->phoneCell = $value;
666 public function getNotes() {
667 return $this->notes;
670 public function setNotes($value) {
671 $this->notes = $value;
674 public function getCalUi() {
675 return $this->calUi;
678 public function setCalUi($value) {
679 $this->calUi = $value;
682 public function getTaxonomy() {
683 return $this->taxonomy;
686 public function setTaxonomy($value) {
687 $this->taxonomy = $value;
690 public function getCalendar() {
691 return $this->calendar;
694 public function setCalendar($value) {
695 $this->calendar = $value;
698 public function getaBookType() {
699 return $this->aBookType;
702 public function setaBookType($value) {
703 $this->aBookType = $value;
706 public function getPwdExpirationDate() {
707 return $this->pwdExpirationDate;
710 public function setPwdExpirationDate($value) {
711 $this->pwdExpirationDate = $value;
714 public function getPwdHistory1() {
715 return $this->pwdHistory1;
718 public function setPwdHistory1($value) {
719 $this->pwdHistory1 = $value;
722 public function getPwdHistory2() {
723 return $this->pwdHistory2;
726 public function setPwdHistory2($value) {
727 $this->pwdHistory2 = $value;
730 public function getDefaultWarehouse() {
731 return $this->defaultWarehouse;
734 public function setDefaultWarehouse($value) {
735 $this->defaultWarehouse = $value;
738 public function getIrnPool() {
739 return $this->irnPool;
742 public function setIrnPool($value) {
743 $this->irnPool = $value;
746 public function getStateLicenseNumber() {
747 return $this->stateLicenseNumber;
750 public function setStateLicenseNumber($value) {
751 $this->stateLicenseNumber = $value;
754 public function getNewCropUserRole() {
755 return $this->newCropUserRole;
758 public function setNewCropUserRole($value) {
759 $this->newCropUserRole = $value;
762 public function getCpoe() {
763 return $this->cpoe;
766 public function setCpoe($value) {
767 $this->cpoe = $value;
770 public function getPhysicianType() {
771 return $this->physicianType;
774 public function setPhysicianType($value) {
775 $this->physicianType = $value;
779 * ToString of the entire object.
781 * @return object as string
783 public function __toString() {
784 return "id: '" . $this->getId() . "' " .
785 "username: '" . $this->getUsername() . "' " .
786 "password: '" . $this->getPassword() . "' " .
787 "authorized: '" . $this->getAuthorized() . "' " .
788 "info: '" . $this->getInfo() . "' " .
789 "source: '" . $this->getSource() . "' " .
790 "fname: '" . $this->getFname() . "' " .
791 "mname: '" . $this->getMname() . "' " .
792 "lname: '" . $this->getLname() . "' " .
793 "suffix: '" . $this->getSuffix() . "' " .
794 "federalTaxId: '" . $this->getFederalTaxId() . "' " .
795 "federalDrugId: '" . $this->getFederalDrugId() . "' " .
796 "upin: '" . $this->getUpin() . "' " .
797 "facility: '" . $this->getFacility() . "' " .
798 "facilityId: '" . $this->getFacilityId() . "' " .
799 "seeAuth: '" . $this->getSeeAuth() . "' " .
800 "active: '" . $this->getActive() . "' " .
801 "npi: '" . $this->getNpi() . "' " .
802 "title: '" . $this->getTitle() . "' " .
803 "specialty: '" . $this->getSpecialty() . "' " .
804 "billName: '" . $this->getBillName() . "' " .
805 "email: '" . $this->getEmail() . "' " .
806 "emailDirect: '" . $this->getEmailDirect() . "' " .
807 "url: '" . $this->getUrl() . "' " .
808 "assistant: '" . $this->getAssistant() . "' " .
809 "organization: '" . $this->getOrganization() . "' " .
810 "valedictory: '" . $this->getValedictory() . "' " .
811 "street: '" . $this->getStreet() . "' " .
812 "streetB: '" . $this->getStreetB() . "' " .
813 "city: '" . $this->getCity() . "' " .
814 "state: '" . $this->getState() . "' " .
815 "zip: '" . $this->getZip() . "' " .
816 "street2: '" . $this->getStreet2() . "' " .
817 "streetB2: '" . $this->getStreetB2() . "' " .
818 "city2: '" . $this->getCity2() . "' " .
819 "state2: '" . $this->getState2() . "' " .
820 "zip2: '" . $this->getZip2() . "' " .
821 "phone: '" . $this->getPhone() . "' " .
822 "fax: '" . $this->getFax() . "' " .
823 "phoneW1: '" . $this->getPhoneW1() . "' " .
824 "phoneW2: '" . $this->getPhoneW2() . "' " .
825 "phoneCell: '" . $this->getPhoneCell() . "' " .
826 "notes: '" . $this->getNotes() . "' " .
827 "calUi: '" . $this->getCalUi() . "' " .
828 "taxonomy: '" . $this->getTaxonomy() . "' " .
829 "calendar: '" . $this->getCalendar() . "' " .
830 "aBookType: '" . $this->getaBookType() . "' " .
831 "pwdExpirationDate: '" . $this->getPwdExpirationDate() . "' " .
832 "pwdHistory1: '" . $this->getPwdHistory1() . "' " .
833 "pwdHistory2: '" . $this->getPwdHistory2() . "' " .
834 "defaultWarehouse: '" . $this->getDefaultWarehouse() . "' " .
835 "irnPool: '" . $this->getIrnPool() . "' " .
836 "stateLicenseNumber: '" . $this->getStateLicenseNumber() . "' " .
837 "newCropUserRole: '" . $this->getNewCropUserRole() . "' " .
838 "cpoe: '" . $this->getCpoe() . "' " .
839 "physicianType: '" . $this->getPhysicianType() . "' ";
843 * ToSerializedObject of the entire object.
845 * @return object as serialized object.
847 public function toSerializedObject() {
848 return get_object_vars($this);