<?xml version="1.0" encoding="utf-8"?>
<Entity 
Schema="AKUZ" 
Name="RVC19_DOCUMENT" 
Description="Документ пациента в регистре вакцинированных от COVID-19" 
PrimaryKey="Rvc19DocumentID">
  <Fields>
    <Attribute Name="Rvc19DocumentID" Type="guid" Description="Идентификатор" />
    <Parent Name="VaccinationEvent" Type="AKUZ.VACCINATION_EVENT" Description="Случай вакцинации" Required="1" />
    <Parent Name="persdoc_type" Type="EHR.EHR_RUS_NN5MEATU5T" Description="Тип" Required="1" />
    <Attribute Name="pd_series" Type="string" Description="Серия" CharacterMaximumLength="10" />
    <Attribute Name="pd_number" Type="string" Description="Номер" CharacterMaximumLength="20" Required="1" />
    <Attribute Name="issued_by" Type="string" Description="Кем выдан" CharacterMaximumLength="128" />
    <Attribute Name="date_begin" Type="date" Description="Дата выдачи" Required="1" />
  </Fields>
  <DbMapping>
    <Table name="T_RVC19_DOCUMENT">
      <Map Name="Rvc19DocumentID" Column="Rvc19DocumentID" />
      <Map Name="VaccinationEvent" Column="VaccinationEvent" />
      <Map Name="persdoc_type" Column="persdoc_type" />
      <Map Name="pd_series" Column="pd_series" />
      <Map Name="pd_number" Column="pd_number" />
      <Map Name="issued_by" Column="issued_by" />
      <Map Name="date_begin" Column="date_begin" />
    </Table>
  </DbMapping>
</Entity>