Exportcenter:GetVeterinaryLaboratoryList:v2.2: различия между версиями

Материал из Справочная система Россельхознадзора
Перейти к навигации Перейти к поиску
 
(не показаны 2 промежуточные версии этого же участника)
Строка 46: Строка 46:
|[0..1]
|[0..1]
|<div class="mw-collapsible mw-collapsed" data-expandtext="&nbsp;...&nbsp;" data-collapsetext="свернуть" style="font-weight: bold; width:52em;">
|<div class="mw-collapsible mw-collapsed" data-expandtext="&nbsp;...&nbsp;" data-collapsetext="свернуть" style="font-weight: bold; width:52em;">
<span style="white-space:nowrap; font-weight: normal;">Максимальное запрашиваемое количество объектов в списке.</span>
<span style="white-space:nowrap; font-weight: normal;">1.1. Максимальное запрашиваемое количество объектов в списке.</span>
<div class="mw-collapsible-content" style="font-weight: normal;">
<div class="mw-collapsible-content" style="font-weight: normal;">
* По умолчанию значение 100;
* По умолчанию значение 100;
Строка 57: Строка 57:
|[0..1]
|[0..1]
|<div class="mw-collapsible mw-collapsed" data-expandtext="&nbsp;...&nbsp;" data-collapsetext="свернуть" style="font-weight: bold; width:52em;">
|<div class="mw-collapsible mw-collapsed" data-expandtext="&nbsp;...&nbsp;" data-collapsetext="свернуть" style="font-weight: bold; width:52em;">
<span style="white-space:nowrap; font-weight: normal;">Номер элемента, по которому осуществляется смещение первого элемента списка.</span>
<span style="white-space:nowrap; font-weight: normal;">1.2. Номер элемента, по которому осуществляется смещение первого элемента списка.</span>
<div class="mw-collapsible-content" style="font-weight: normal;">
<div class="mw-collapsible-content" style="font-weight: normal;">
* По умолчанию значение 0.</div>
* По умолчанию значение 0.</div>
Строка 96: Строка 96:
|[1..1]
|[1..1]
|<div class="mw-collapsible mw-collapsed" data-expandtext="&nbsp;...&nbsp;" data-collapsetext="свернуть" style="font-weight: bold; width:52em;">
|<div class="mw-collapsible mw-collapsed" data-expandtext="&nbsp;...&nbsp;" data-collapsetext="свернуть" style="font-weight: bold; width:52em;">
<span style="white-space:nowrap; font-weight: normal;">Список лабораторий</span>
<span style="white-space:nowrap; font-weight: normal;">2. Список лабораторий</span>
<div class="mw-collapsible-content" style="font-weight: normal;">
<div class="mw-collapsible-content" style="font-weight: normal;">
* total - всего записей;
* total - 1.3. всего записей;
* offset - смещение относительно первого элемента;
* offset - 1.2. смещение относительно первого элемента;
* count - количество выводимых записей.</div>
* count - 1.1. количество выводимых записей.</div>
</div>
</div>
|-
|-
Строка 107: Строка 107:
|[[VeterinaryLaboratory_v2.3|dt:VeterinaryLaboratory]]
|[[VeterinaryLaboratory_v2.3|dt:VeterinaryLaboratory]]
|[0..*]
|[0..*]
| style="width:52em;"| Сведения о лаборатории
| style="width:52em;"| 2.1. Сведения о лаборатории
|-
|-
|004
|004
Строка 113: Строка 113:
|[[UUID|bs:UUID]]
|[[UUID|bs:UUID]]
|[1..1]
|[1..1]
| style="width:52em;"| Уникальный идентификатор версии записи
| style="width:52em;"| 2.1.1. Уникальный идентификатор версии записи
|-
|-
|005
|005
Строка 119: Строка 119:
|[[UUID|bs:UUID]]  
|[[UUID|bs:UUID]]  
|[1..1]
|[1..1]
| style="width:52em;"| Глобальный идентификатор записи
| style="width:52em;"| 2.1.2. Глобальный идентификатор записи
|-
|-
|006
|006
Строка 126: Строка 126:
|[1..1]
|[1..1]
|<div class="mw-collapsible mw-collapsed" data-expandtext="&nbsp;...&nbsp;" data-collapsetext="свернуть" style="font-weight: bold; width:52em;">
|<div class="mw-collapsible mw-collapsed" data-expandtext="&nbsp;...&nbsp;" data-collapsetext="свернуть" style="font-weight: bold; width:52em;">
<span style="white-space:nowrap; font-weight: normal;">Флаг, указывающий на то, активна ли запись</span>
<span style="white-space:nowrap; font-weight: normal;">2.1.3. Флаг, указывающий на то, активна ли запись</span>
<div class="mw-collapsible-content" style="font-weight: normal;">
<div class="mw-collapsible-content" style="font-weight: normal;">
* true - запись активна;
* true - запись активна;
Строка 137: Строка 137:
|[1..1]
|[1..1]
|<div class="mw-collapsible mw-collapsed" data-expandtext="&nbsp;...&nbsp;" data-collapsetext="свернуть" style="font-weight: bold; width:52em;">
|<div class="mw-collapsible mw-collapsed" data-expandtext="&nbsp;...&nbsp;" data-collapsetext="свернуть" style="font-weight: bold; width:52em;">
<span style="white-space:nowrap; font-weight: normal;">Флаг, указывающий на то, является ли запись последней</span>
<span style="white-space:nowrap; font-weight: normal;">2.1.4. Флаг, указывающий на то, является ли запись последней</span>
<div class="mw-collapsible-content" style="font-weight: normal;">
<div class="mw-collapsible-content" style="font-weight: normal;">
* true - да;
* true - да;
Строка 147: Строка 147:
|[[VersionStatus|bs:VersionStatus]]
|[[VersionStatus|bs:VersionStatus]]
|[1..1]
|[1..1]
| style="width:52em;"| Статус версии записи
| style="width:52em;"| 2.1.5. Статус версии записи
|-
|-
|009
|009
Строка 153: Строка 153:
|[http://www.w3.org/TR/xmlschema-2/#DateTime xs:DateTime]
|[http://www.w3.org/TR/xmlschema-2/#DateTime xs:DateTime]
|[1..1]
|[1..1]
| style="width:52em;"| Дата создания версии записи
| style="width:52em;"| 2.1.6. Дата создания версии записи
|-
|-
|010
|010
Строка 159: Строка 159:
|[http://www.w3.org/TR/xmlschema-2/#DateTime xs:DateTime]
|[http://www.w3.org/TR/xmlschema-2/#DateTime xs:DateTime]
|[1..1]
|[1..1]
| style="width:52em;"| Дата последнего обновления версии записи
| style="width:52em;"| 2.1.7. Дата последнего обновления версии записи
|-
|-
|011
|011
Строка 165: Строка 165:
|[[UUID|bs:UUID]]
|[[UUID|bs:UUID]]
|[0..1]
|[0..1]
| style="width:52em;"| Идентификатор предыдущей версии записи
| style="width:52em;"| 2.1.8. Идентификатор предыдущей версии записи
|-
|-
|012
|012
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''<{{color|#660e7a|bs:}}next>'''}}{{color|#131313|?}}{{color|#190dbf|'''</{{color|#660e7a|bs:}}next>'''}}
|[[UUID|bs:UUID]]
|[0..1]
| style="width:52em;"| Идентификатор следующей версии записи
|-
|013
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''<{{color|#660e7a|dt:}}name>'''}}{{color|#131313|?}}{{color|#190dbf|'''</{{color|#660e7a|dt:}}name>'''}}
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''<{{color|#660e7a|dt:}}name>'''}}{{color|#131313|?}}{{color|#190dbf|'''</{{color|#660e7a|dt:}}name>'''}}
|[[String255|bs:String255]]
|[[String255|bs:String255]]
|[1..1]
|[1..1]
| style="width:52em;"| Наименование лаборатории
| style="width:52em;"| 2.1.9. Наименование лаборатории
|-
|-
|014
|013
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''<{{color|#660e7a|dt:}}fullName>'''}}{{color|#131313|?}}{{color|#190dbf|'''</{{color|#660e7a|dt:}}fullName>'''}}
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''<{{color|#660e7a|dt:}}fullName>'''}}{{color|#131313|?}}{{color|#190dbf|'''</{{color|#660e7a|dt:}}fullName>'''}}
|[[String255|bs:String255]]
|[[String255|bs:String255]]
|[1..1]
|[1..1]
| style="width:52em;"| Полное наименование лаборатории
| style="width:52em;"| 2.1.10. Полное наименование лаборатории
|-
|-
|015
|014
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''<{{color|#660e7a|dt:}}address>'''}}
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''<{{color|#660e7a|dt:}}address>'''}}
|[[Address_v2.0|dt:Address]]
|[[Address_v2.0|dt:Address]]
|[1..1]
|[1..1]
| style="width:52em;"| Сведения об адресе лаборатории
| style="width:52em;"| 2.1.11. Сведения об адресе лаборатории
|-
|-
|016
|015
|style="font-weight: ; font-family: Courier;" |············{{color|#190dbf|'''<{{color|#660e7a|dt:}}addressView>'''}}{{color|#131313|?}}{{color|#190dbf|'''</{{color|#660e7a|dt:}}addressView>'''}}
|style="font-weight: ; font-family: Courier;" |············{{color|#190dbf|'''<{{color|#660e7a|dt:}}addressView>'''}}{{color|#131313|?}}{{color|#190dbf|'''</{{color|#660e7a|dt:}}addressView>'''}}
|[[String255|bs:String255]]
|[[String255|bs:String255]]
|[0..1]
|[1..1]
| style="width:52em;"| Строковое представление адреса
| style="width:52em;"| 2.1.11.1. Строковое представление адреса
|-
|-
|017
|016
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''</{{color|#660e7a|dt:}}address>'''}}
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''</{{color|#660e7a|dt:}}address>'''}}
|
|
Строка 203: Строка 197:
| style="width:52em;"|  
| style="width:52em;"|  
|-
|-
|018
|017
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''<{{color|#660e7a|dt:}}serviceList>'''}}
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''<{{color|#660e7a|dt:}}serviceList>'''}}
|[[VeterinaryServiceList_v2.2|dt:VeterinaryServiceList]]
|[[VeterinaryServiceList_v2.2|dt:VeterinaryServiceList]]
|[0..1]
|[0..1]
| style="width:52em;"| Список услуг, оказываемых лабораторией
| style="width:52em;"| 2.1.12. Список услуг, оказываемых лабораторией
|-
|-
|019
|018
|style="font-weight: ; font-family: Courier;" |············{{color|#190dbf|'''<{{color|#660e7a|dt:}}service>'''}}
|style="font-weight: ; font-family: Courier;" |············{{color|#190dbf|'''<{{color|#660e7a|dt:}}service>'''}}
|[[VeterinaryService_v2.2|dt:VeterinaryService]]
|[[VeterinaryService_v2.2|dt:VeterinaryService]]
|[1..1]
|[1..1]
| style="width:52em;"| Услуга
| style="width:52em;"| 2.1.12.1. Услуга
|-
|-
|020
|019
|style="font-weight: ; font-family: Courier;" |···············{{color|#190dbf|'''<{{color|#660e7a|dt:}}serviceType>'''}}{{color|#131313|WBR_COMPLIENCE_STATEMENT}}{{color|#190dbf|'''</{{color|#660e7a|dt:}}serviceType>'''}}
|style="font-weight: ; font-family: Courier;" |···············{{color|#190dbf|'''<{{color|#660e7a|dt:}}serviceType>'''}}{{color|#131313|WBR_COMPLIENCE_STATEMENT}}{{color|#190dbf|'''</{{color|#660e7a|dt:}}serviceType>'''}}
|[[VeterinaryServiceType_v2.2|dt:VeterinaryServiceType]]
|[[VeterinaryServiceType_v2.2|dt:VeterinaryServiceType]]
|[1..1]
|[1..1]
| style="width:52em;"| Признак выдачи заключений ВБР данной лабораторией
| style="width:52em;"| 2.1.12.1.1. Признак выдачи заключений ВБР данной лабораторией
|-
|-
|021
|020
|style="font-weight: ; font-family: Courier;" |············{{color|#190dbf|'''</{{color|#660e7a|dt:}}service>'''}}
|style="font-weight: ; font-family: Courier;" |············{{color|#190dbf|'''</{{color|#660e7a|dt:}}service>'''}}
|
|
Строка 227: Строка 221:
| style="width:52em;"|  
| style="width:52em;"|  
|-
|-
|022
|021
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''</{{color|#660e7a|dt:}}serviceList>'''}}
|style="font-weight: ; font-family: Courier;" |·········{{color|#190dbf|'''</{{color|#660e7a|dt:}}serviceList>'''}}
|
|
Строка 233: Строка 227:
| style="width:52em;"|  
| style="width:52em;"|  
|-
|-
|023
|022
|style="font-weight: ; font-family: Courier;" |······{{color|#190dbf|'''</{{color|#660e7a|dt:}}veterinaryLaboratory>'''}}
|style="font-weight: ; font-family: Courier;" |······{{color|#190dbf|'''</{{color|#660e7a|dt:}}veterinaryLaboratory>'''}}
|
|
Строка 239: Строка 233:
| style="width:52em;"|  
| style="width:52em;"|  
|-
|-
|024
|023
|style="font-weight: ; font-family: Courier;" |···{{color|#190dbf|'''</{{color|#660e7a|dt:}}veterinaryLaboratoryList>'''}}
|style="font-weight: ; font-family: Courier;" |···{{color|#190dbf|'''</{{color|#660e7a|dt:}}veterinaryLaboratoryList>'''}}
|
|
Строка 245: Строка 239:
| style="width:52em;"|  
| style="width:52em;"|  
|-
|-
|025
|024
|style="font-weight: ; font-family: Courier;" |{{color|#190dbf|'''</ws:getVeterinaryLaboratoryListResponse>'''}}         
|style="font-weight: ; font-family: Courier;" |{{color|#190dbf|'''</ws:getVeterinaryLaboratoryListResponse>'''}}         
|
|

Текущая версия на 09:58, 5 июня 2023

Общие сведения

Операция GetVeterinaryLaboratoryList предназначена для получения списка актуальных записей о лабораториях (active=true, last=true). Поддерживается постраничный вывод.

Используемые пространства имён

Пространство имён (xmlns) XSD-схема, содержащая описание типов
xmlns:bs="http://api.vetrf.ru/schema/cdm/base" https://api.vetrf.ru/schema/platform/exportcenter/v2.0b-20210906/base_v2.0.xsd
xmlns:ws="http://api.vetrf.ru/schema/cdm/registry/ws-definitions/v2" https://api.vetrf.ru/schema/platform/exportcenter/v2.0b-20210906/registry_ws_definitions_v2.2.xsd
xmlns:dt="http://api.vetrf.ru/schema/cdm/dictionary/v2" https://api.vetrf.ru/schema/platform/exportcenter/v2.0b-20210906/dictionary_v2.2.xsd

Спецификация запроса

# Название XML-элемента Тип Обязат. Описание (нажмите [...] для отображения дополнительного описания)
001 <ws:getVeterinaryLaboratoryListRequest>
002 ···<bs:listOptions> bs:ListOptions [0..1] Параметры запрашиваемого списка.
003 ······<bs:count>?</bs:count> xs:nonNegativeInteger [0..1]

1.1. Максимальное запрашиваемое количество объектов в списке.

  • По умолчанию значение 100;
  • Максимально возможное значение 1000.
004 ······<bs:offset>?</bs:offset> xs:nonNegativeInteger [0..1]

1.2. Номер элемента, по которому осуществляется смещение первого элемента списка.

  • По умолчанию значение 0.
005 ···</bs:listOptions>
006 </ws:getVeterinaryLaboratoryListRequest>

Спецификация ответа

# Название XML-элемента Тип Обязат. Описание (нажмите [...] для отображения дополнительного описания)
001 <ws:getVeterinaryLaboratoryListResponse>
002 ···<dt:veterinaryLaboratoryList count="?" total="?" offset="?"> dt:VeterinaryLaboratoryList [1..1]

2. Список лабораторий

  • total - 1.3. всего записей;
  • offset - 1.2. смещение относительно первого элемента;
  • count - 1.1. количество выводимых записей.
003 ······<dt:veterinaryLaboratory> dt:VeterinaryLaboratory [0..*] 2.1. Сведения о лаборатории
004 ·········<bs:uuid>?</bs:uuid> bs:UUID [1..1] 2.1.1. Уникальный идентификатор версии записи
005 ·········<bs:guid>?</bs:guid> bs:UUID [1..1] 2.1.2. Глобальный идентификатор записи
006 ·········<bs:active>?</bs:active> xs:boolean [1..1]

2.1.3. Флаг, указывающий на то, активна ли запись

  • true - запись активна;
  • false - запись не активна.
007 ·········<bs:last>?</bs:last> xs:boolean [1..1]

2.1.4. Флаг, указывающий на то, является ли запись последней

  • true - да;
  • false - нет.
008 ·········<bs:status>?</bs:status> bs:VersionStatus [1..1] 2.1.5. Статус версии записи
009 ·········<bs:createDate>?</bs:createDate> xs:DateTime [1..1] 2.1.6. Дата создания версии записи
010 ·········<bs:updateDate>?</bs:updateDate> xs:DateTime [1..1] 2.1.7. Дата последнего обновления версии записи
011 ·········<bs:previous>?</bs:previous> bs:UUID [0..1] 2.1.8. Идентификатор предыдущей версии записи
012 ·········<dt:name>?</dt:name> bs:String255 [1..1] 2.1.9. Наименование лаборатории
013 ·········<dt:fullName>?</dt:fullName> bs:String255 [1..1] 2.1.10. Полное наименование лаборатории
014 ·········<dt:address> dt:Address [1..1] 2.1.11. Сведения об адресе лаборатории
015 ············<dt:addressView>?</dt:addressView> bs:String255 [1..1] 2.1.11.1. Строковое представление адреса
016 ·········</dt:address>
017 ·········<dt:serviceList> dt:VeterinaryServiceList [0..1] 2.1.12. Список услуг, оказываемых лабораторией
018 ············<dt:service> dt:VeterinaryService [1..1] 2.1.12.1. Услуга
019 ···············<dt:serviceType>WBR_COMPLIENCE_STATEMENT</dt:serviceType> dt:VeterinaryServiceType [1..1] 2.1.12.1.1. Признак выдачи заключений ВБР данной лабораторией
020 ············</dt:service>
021 ·········</dt:serviceList>
022 ······</dt:veterinaryLaboratory>
023 ···</dt:veterinaryLaboratoryList>
024 </ws:getVeterinaryLaboratoryListResponse>

Примеры запросов

8.10.RQ1. Пример запроса списка всех лабораторий.


8.10.Request.Example

<ws:getVeterinaryLaboratoryListRequest
	xmlns:ws="http://api.vetrf.ru/schema/cdm/registry/ws-definitions/v2" 
	xmlns:bs="http://api.vetrf.ru/schema/cdm/base">         
</ws:getVeterinaryLaboratoryListRequest>


8.10.Response.Example

<ws:getVeterinaryLaboratoryListResponse
	xmlns:ws="http://api.vetrf.ru/schema/cdm/registry/ws-definitions/v2" 
	xmlns:bs="http://api.vetrf.ru/schema/cdm/base"
	xmlns:dt="http://api.vetrf.ru/schema/cdm/dictionary/v2">         
   <dt:veterinaryLaboratoryList count="2" total="2" offset="0">
      <dt:veterinaryLaboratory>
         <bs:uuid>2874c443-9060-46a7-89b8-bf4219ac373a</bs:uuid>
         <bs:guid>2874c443-9060-46a7-89b8-bf4219ac373a</bs:guid>
         <bs:active>true</bs:active>
         <bs:last>true</bs:last>
         <bs:status>100</bs:status>
         <bs:createDate>2023-01-01T00:00:00</bs:createDate>
         <bs:updateDate>2023-01-01T00:00:00</bs:createDate>
         <dt:name>string</dt:name>
         <dt:fullName>string</dt:fullName>
         <dt:address>
            <dt:addressView>string</dt:addressView>
         </dt:address>
         <dt:serviceList>
            <dt:service>
               <dt:serviceType>WBR_COMPLIENCE_STATEMENT</dt:serviceType>
            </dt:service>
         </dt:serviceList>
      </dt:veterinaryLaboratory>
      <dt:veterinaryLaboratory>
         <bs:uuid>2874c443-9060-46a7-89b8-bf4219ac373a</bs:uuid>
         <bs:guid>2874c443-9060-46a7-89b8-bf4219ac373a</bs:guid>
         <bs:active>true</bs:active>
         <bs:last>true</bs:last>
         <bs:status>100</bs:status>
         <bs:createDate>2023-01-01T00:00:00</bs:createDate>
         <bs:updateDate>2023-01-01T00:00:00</bs:createDate>
         <dt:name>string</dt:name>
         <dt:fullName>string</dt:fullName>
         <dt:address>
            <dt:addressView>string</dt:addressView>
         </dt:address>
      </dt:veterinaryLaboratory>
   </dt:veterinaryLaboratoryList>
</ws:getVeterinaryLaboratoryListResponse>