Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 2.93 KB | None | 0 0
  1. //------------------------------------------------------------------
  2. // <author>Кныш Александр</author>
  3. //------------------------------------------------------------------
  4.  
  5. /// <summary>
  6. /// Человек (персональные данные).
  7. /// </summary>
  8. import {BaseModel} from '../Base/BaseModel';
  9. import {ReferenceCodeValue} from '../Base/ReferenceCodeValue';
  10. import {PatientPolicy} from './PatientPolicy';
  11. import {Adress} from './Adress';
  12. import {IdentityDocement} from './IdentityDocement';
  13. import {UUID} from 'angular2-uuid';
  14.  
  15. export class Person extends BaseModel {
  16.  
  17.   constructor() {
  18.     super();
  19.     this.guid = '00000000-0000-0000-0000-000000000000';
  20.     this.name = '';
  21.     this.family = '';
  22.     this.patronymic = '';
  23.     this.birthDate = new Date();
  24.     this.email = '';
  25.     this.phone = '';
  26.     this.sex = new ReferenceCodeValue<string>(0, '00000000-0000-0000-0000-000000000000');
  27.     this.snils = '';
  28.     this.code = '';
  29.     this.policy = new PatientPolicy();
  30.     this.citizen= new ReferenceCodeValue<string>(0, '00000000-0000-0000-0000-000000000000');
  31.     this.inn = '';
  32.     this.socStatus = new ReferenceCodeValue<string>(0, '00000000-0000-0000-0000-000000000000');
  33.     this.catConc= new ReferenceCodeValue<string> (0, '00000000-0000-0000-0000-000000000000');
  34.     this.workPlace = '';
  35.     this.adressReg = new Adress();
  36.     this.adressFact = new Adress();
  37.     this.identityDoc = new IdentityDocement();
  38.   }
  39.  
  40.   /**
  41.    * Имя человека
  42.    */
  43.   public name: string;
  44.  
  45.   /**
  46.    * Фамилия персоны.
  47.    */
  48.   public family: string;
  49.  
  50.   /**
  51.    * Отчество персоны.
  52.    */
  53.   public patronymic: string;
  54.  
  55.   /**
  56.    * Дата рождения.
  57.    */
  58.   public birthDate: Date;
  59.  
  60.   /**
  61.    * Контактный Email.
  62.    */
  63.   public email: string;
  64.  
  65.   /**
  66.    * Контактный телефон.
  67.    */
  68.   public phone: string;
  69.  
  70.   /**
  71.    * Пол персоны.
  72.    */
  73.   public sex: ReferenceCodeValue<string>;
  74.  
  75.   /**
  76.    * СНИЛС персоны.
  77.    */
  78.   public snils: string;
  79.  
  80.   /**
  81.    * Код
  82.    */
  83.   public code: string;
  84.  
  85.   /**
  86.    * Полис пациента.
  87.    */
  88.   public policy: PatientPolicy;
  89.  
  90.   /**
  91.    * Житель
  92.    */
  93.   public citizen: ReferenceCodeValue<string>;
  94.  
  95.   /**
  96.    * ИНН
  97.    */
  98.   public inn: string;
  99.  
  100.   /**
  101.    * Социальный статус
  102.    */
  103.   public socStatus: ReferenceCodeValue<string>;
  104.  
  105.   /**
  106.    * категория льготности
  107.    */
  108.   public catConc: ReferenceCodeValue<string>;
  109.  
  110.   /**
  111.    * Место работы
  112.    */
  113.   public workPlace: string;
  114.  
  115.   /**
  116.    * Адрес регистрации
  117.    */
  118.   public adressReg: Adress;
  119.  
  120.   /**
  121.    * Фактический адрес проживания
  122.    */
  123.   public adressFact: Adress;
  124.  
  125.   /**
  126.    * Документ удостоверяющий личность
  127.    */
  128.   public identityDoc: IdentityDocement;
  129. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement