Министерство на регионалното развитие и благоустройството - Национална база данни "Население"

Име на операция - TechnoLogica.RegiX.GraoNBDAdapter.APIService.INBDAPI.RelationsSearch

Структура на данните

  • PersonRelations - Списък с родственици
    • RelationCode - Код на родство
    • EGN - ЕГН на лицето
    • BirthDate - Дата на раждане
    • FirstName - Собствено име
    • SurName - Бащино име
    • FamilyName - Фамилно име
    • Gender - Пол
      • GenderCode - Код на пол
      • GenderName - Пол
    • Nationality - Гражданство
      • NationalityCode - Код на гражданство
      • NationalityName - Гражданство
      • NationalityCode2 - Код на второ гражданство
      • NationalityName2 - Второ гражданство
    • DeathDate - Дата на смърт

XSD схеми

Заявка
                
           <?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:common="http://egov.bg/RegiX/GRAO/NBD" xmlns="http://egov.bg/RegiX/GRAO/NBD/RelationsRequest" targetNamespace="http://egov.bg/RegiX/GRAO/NBD/RelationsRequest" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:import namespace="http://egov.bg/RegiX/GRAO/NBD" schemaLocation="NBDCommon.xsd"/>
	<xs:complexType name="RelationsRequestType">
		<xs:sequence>
			<xs:element name="EGN" type="common:EGN">
        <xs:annotation>
          <xs:documentation>ЕГН</xs:documentation>
        </xs:annotation>
      </xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:element name="RelationsRequestType" type="RelationsRequestType">
		<xs:annotation>
			<xs:documentation>Справка за родственост</xs:documentation>
		</xs:annotation>
	</xs:element>
</xs:schema>
       
Отговор
                
           <?xml version="1.0" encoding="UTF-8"?>
 
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:common="http://egov.bg/RegiX/GRAO/NBD" xmlns="http://egov.bg/RegiX/GRAO/NBD/RelationsResponse" targetNamespace="http://egov.bg/RegiX/GRAO/NBD/RelationsResponse" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:import namespace="http://egov.bg/RegiX/GRAO/NBD" schemaLocation="NBDCommon.xsd"/>
	<xs:complexType name="RelationsResponseType">
		<xs:sequence>
			<xs:element name="PersonRelations" type="common:PersonRelationType" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>Списък с родственици</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:element name="RelationsResponse" type="RelationsResponseType">
		<xs:annotation>
			<xs:documentation>Справка за родственост</xs:documentation>
		</xs:annotation>
	</xs:element>
</xs:schema>

       
Common
                
            
    <?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://egov.bg/RegiX/GRAO/NBD" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://egov.bg/RegiX/GRAO/NBD" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:simpleType name="BirthDate">
		<xs:annotation>
			<xs:documentation xml:lang="bg">Дата на раждане</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:date"/>
	</xs:simpleType>
		<xs:simpleType name="EGN">
		<xs:annotation>
			<xs:documentation xml:lang="bg">ЕГН</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:pattern value="\d{10}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="RelationType">
		<xs:annotation>
			<xs:documentation>Вид родство</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="Баща"/>
			<xs:enumeration value="Осиновител"/>
			<xs:enumeration value="Майка"/>
			<xs:enumeration value="Осиновителка"/>
			<xs:enumeration value="Син"/>
			<xs:enumeration value="Дъщеря"/>
			<xs:enumeration value="Брат"/>
			<xs:enumeration value="Сестра"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="GenderCodeType">
		<xs:annotation>
			<xs:documentation>Пол - код</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:int">
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="GenderNameType">
		<xs:annotation>
			<xs:documentation>Име на пол</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="Мъж"/>
			<xs:enumeration value="Жена"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="Gender">
		<xs:annotation>
			<xs:documentation xml:lang="bg">Пол</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="GenderCode" type="GenderCodeType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Код на пол</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="GenderName" type="GenderNameType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Пол</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="PersonNames">
		<xs:sequence>
			<xs:element name="FirstName" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Собствено име</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="SurName" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Бащино име</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="FamilyName" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Фамилно име</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="Nationality">
		<xs:sequence>
			<xs:element name="NationalityCode" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Код на гражданство</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="NationalityName" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Гражданство</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="NationalityCode2" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Код на второ гражданство</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="NationalityName2" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Второ гражданство</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="PersonRelationType">
		<xs:sequence>
			<xs:element name="RelationCode" type="RelationType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Код на родство</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="EGN" type="EGN" minOccurs="0">
				<xs:annotation>
					<xs:documentation>ЕГН на лицето</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="BirthDate" type="BirthDate" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Дата на раждане</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="FirstName" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Собствено име</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="SurName" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Бащино име</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="FamilyName" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Фамилно име</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Gender" type="Gender" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Пол</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Nationality" type="Nationality" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Гражданство</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="DeathDate" type="xs:date" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Дата на смърт</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
</xs:schema>