Метод UpdateMedServiceProfile

Запрос

 
 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:mq="http://schemas.datacontract.org/2004/07/MQ.Dto">
 <soapenv:Header/>
 <soapenv:Body>
   <tem:UpdateMedServiceProfile>
    <tem:credentials>
      <mq:Organization>e23746d3-21c0-4107-a229-9d47ca166760</mq:Organization>
      <mq:Token>YourGuid</mq:Token>
    </tem:credentials>
    <tem:profileMedService>
      <mq:Address>197706, г. Санкт-Петербург, г. Сестрорецк, ул. Борисова, д. 9.</mq:Address>
      <mq:ContactValue>Тел. +7 (812) 437-40-75, +7 (911) 766-97-70. Тел./факс: +7 (812) 437-14-92.
	  </mq:ContactValue>
      <mq:Comment>МРТ исследования в кабинете 214 главного корпуса, посещение регистратуры не требуется
	  </mq:Comment>
      <mq:EndDate>2016-09-30T00:00:00.000</mq:EndDate>
      <mq:IdProfileMedService>
       <mq:Code>12</mq:Code>
       <mq:System>urn:oid:1.2.643.2.69.1.1.1.56</mq:System>
       <mq:Version>1</mq:Version>
      </mq:IdProfileMedService>
      <mq:Site>http://www.gb40.ru/</mq:Site>
      <mq:StartDate>2015-09-01T00:00:00.000</mq:StartDate>
      </tem:profileMedService>
    </tem:UpdateMedServiceProfile>
  </soapenv:Body>
 </soapenv:Envelope>

Ответ

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
<UpdateMedServiceProfileResponse xmlns="http://tempuri.org/"/>
   </s:Body>
</s:Envelope>

Метод Register

Запрос

Регистрация направления на госпитализацию (с параметрами ExtraData)

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:mq="http://schemas.datacontract.org/2004/07/MQ.Dto">
<soapenv:Header/>
<soapenv:Body>
 <tem:Register>
 <tem:credentials>
 <mq:Organization>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</mq:Organization>
    <mq:Token>YourGuid</mq:Token>
   </tem:credentials>
   <tem:referral>
    <mq:EventsInfo>
     <mq:Source>
      <mq:IsReferralReviewed>true</mq:IsReferralReviewed>
      <mq:PlannedDate>2015-10-01T00:00:00.000</mq:PlannedDate>
      <mq:ReferralCreateDate>2015-09-14T00:00:00.000</mq:ReferralCreateDate>
      <mq:ReferralOutDate>2015-09-16T00:00:00.000</mq:ReferralOutDate>
      <mq:ReferralReviewDate>2015-09-15T00:00:00.000</mq:ReferralReviewDate>
     </mq:Source>
    </mq:EventsInfo>
    <mq:Patient>
     <mq:Addresses>
      <mq:AddressDto>
       <mq:AddressType>
        <mq:Code>1</mq:Code>
        <mq:System>urn:oid:1.2.643.2.69.1.1.1.28</mq:System>
        <mq:Version>1</mq:Version>
       </mq:AddressType>
       <mq:StringAddress>Авангардная ул., д.6, корп.2, кв.122</mq:StringAddress>
      </mq:AddressDto>
     </mq:Addresses>
     <mq:ContactDtos>
      <mq:ContactDto>
       <mq:ContactType>
        <mq:Code>2</mq:Code>
        <mq:System>urn:oid:1.2.643.2.69.1.1.1.27</mq:System>
        <mq:Version>1</mq:Version>
       </mq:ContactType>
       <mq:ContactValue>+7(812)648-21-21</mq:ContactValue>
      </mq:ContactDto>
     </mq:ContactDtos>
     <mq:Documents>
      <mq:DocumentDto>
       <!--паспортСПб-->
       <mq:DocN>256198</mq:DocN>
       <mq:DocS>7810</mq:DocS>
       <mq:DocumentType>
        <mq:Code>14</mq:Code>
        <mq:System>urn:oid:1.2.643.2.69.1.1.1.59</mq:System>
        <mq:Version>1</mq:Version>
       </mq:DocumentType>
       <mq:ExpiredDate>2020-10-15T00:00:00.000</mq:ExpiredDate>
       <mq:IssuedDate>2010-10-15T00:00:00.000</mq:IssuedDate>
       <mq:ProviderName>ОВД Петроградского района г. Санкт-Петербурга</mq:ProviderName>
      </mq:DocumentDto>
      <mq:DocumentDto>
       <!--полис новый-->
       <mq:DocN>7878370895000033</mq:DocN>
       <mq:DocumentType>
        <mq:Code>228</mq:Code>
        <mq:System>urn:oid:1.2.643.2.69.1.1.1.59</mq:System>
        <mq:Version>1</mq:Version>
       </mq:DocumentType>
       <mq:Provider>
        <mq:Code>78008</mq:Code>
        <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.635</mq:System>
        <mq:Version>1</mq:Version>
       </mq:Provider>
       <mq:ProviderName>САНКТ-ПЕТЕРБУРГСКИЙФИЛИАЛОАО "РОСНО-МС"</mq:ProviderName>
       <mq:RegionCode>
        <mq:Code>78</mq:Code>
        <mq:System>urn:oid:1.2.643.2.69.1.1.1.51</mq:System>
        <mq:Version>1</mq:Version>
       </mq:RegionCode>
      </mq:DocumentDto>
     </mq:Documents>
     <mq:Jobs>
      <mq:Job>
       <mq:CompanyName>ТранспортнаякомпанияТрансГолд</mq:CompanyName>
       <mq:Position>Диспетчер</mq:Position>
      </mq:Job>
     </mq:Jobs>
     <mq:Person>
      <mq:BirthDate>1973-08-05T00:00:00.000</mq:BirthDate>
      <mq:HumanName>
       <mq:FamilyName>Крюкова</mq:FamilyName>
       <mq:GivenName>Зоя</mq:GivenName>
       <mq:MiddleName>Валериевна</mq:MiddleName>
      </mq:HumanName>
      <mq:IdPatientMis>652</mq:IdPatientMis>
      <mq:Sex>
       <mq:Code>2</mq:Code>
       <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.156</mq:System>
       <mq:Version>1</mq:Version>
      </mq:Sex>
     </mq:Person>
     <mq:Privileges>
      <mq:Privilege>
       <mq:EndDate>2025-08-05T00:00:00.000</mq:EndDate>
       <mq:PrivilegeType>
        <mq:Code>81</mq:Code>
        <mq:System>urn:oid:1.2.643.2.69.1.1.1.7</mq:System>
        <mq:Version>1</mq:Version>
       </mq:PrivilegeType>
       <mq:StartDate>2014-08-05T00:00:00.000</mq:StartDate>
      </mq:Privilege>
     </mq:Privileges>
    </mq:Patient>
    <mq:ReferralInfo>
     <mq:Date>2015-09-16T00:00:00.000</mq:Date>
     <mq:Priority>В плановом порядке</mq:Priority>
     <mq:ProfileMedService>
      <mq:Code>10</mq:Code>
      <mq:System>urn:oid:1.2.643.2.69.1.1.1.56</mq:System>
      <mq:Version>1</mq:Version>
     </mq:ProfileMedService>
     <mq:Reason>Необходимо оперативное лечение</mq:Reason>
     <mq:ReferralType>
      <mq:Code>1</mq:Code>
      <mq:System>urn:oid:1.2.643.2.69.1.1.1.55</mq:System>
      <mq:Version>1</mq:Version>
     </mq:ReferralType>
    </mq:ReferralInfo>
    <mq:ReferralSurvey>
     <mq:Additional>
      <mq:ExtraData>
       <arr:KeyValueOfstringstring xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <arr:Key>AddProff</arr:Key>
        <arr:Value>да</arr:Value>
       </arr:KeyValueOfstringstring>
       <arr:KeyValueOfstringstring xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <arr:Key>AddCatComp</arr:Key>
        <arr:Value>глаукомой</arr:Value>
       </arr:KeyValueOfstringstring>
       <arr:KeyValueOfstringstring xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <arr:Key>RYIntPres</arr:Key>
        <arr:Value>20</arr:Value>
       </arr:KeyValueOfstringstring>
       <arr:KeyValueOfstringstring xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <arr:Key>RYOD</arr:Key>
        <arr:Value>0.3</arr:Value>
       </arr:KeyValueOfstringstring>
       <arr:KeyValueOfstringstring xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <arr:Key>RYsph</arr:Key>
        <arr:Value>2</arr:Value>
       </arr:KeyValueOfstringstring>
       <arr:KeyValueOfstringstring xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <arr:Key>RYcyl</arr:Key>
        <arr:Value>-2.5</arr:Value>
       </arr:KeyValueOfstringstring>
       <arr:KeyValueOfstringstring xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <arr:Key>RYDax</arr:Key>
        <arr:Value>175</arr:Value>
       </arr:KeyValueOfstringstring>
       <arr:KeyValueOfstringstring xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <arr:Key>RYeql</arr:Key>
        <arr:Value>1</arr:Value>
       </arr:KeyValueOfstringstring>
       <arr:KeyValueOfstringstring xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <arr:Key>LYIntPres</arr:Key>
        <arr:Value>20</arr:Value>
       </arr:KeyValueOfstringstring>
       <arr:KeyValueOfstringstring xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <arr:Key>LYOS</arr:Key>
        <arr:Value>0.07</arr:Value>
       </arr:KeyValueOfstringstring>
       <arr:KeyValueOfstringstring xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <arr:Key>LYsph</arr:Key>
        <arr:Value>-2.75</arr:Value>
       </arr:KeyValueOfstringstring>
       <arr:KeyValueOfstringstring xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <arr:Key>LYcyl</arr:Key>
        <arr:Value>-3</arr:Value>
       </arr:KeyValueOfstringstring>
       <arr:KeyValueOfstringstring xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <arr:Key>LYDax</arr:Key>
        <arr:Value>20</arr:Value>
       </arr:KeyValueOfstringstring>
       <arr:KeyValueOfstringstring xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <arr:Key>LYeql</arr:Key>
        <arr:Value>0.4</arr:Value>
       </arr:KeyValueOfstringstring>
      </mq:ExtraData>
     </mq:Additional>
    </mq:ReferralSurvey>
    <mq:Source>
     <mq:Doctors>
      <mq:Doctor>
       <mq:ContactDtos>
        <mq:ContactDto>
         <mq:ContactType>
          <mq:Code>2</mq:Code>
          <mq:System>urn:oid:1.2.643.2.69.1.1.1.27</mq:System>
          <mq:Version>1</mq:Version>
         </mq:ContactType>
         <mq:ContactValue>+7 (812) 309-86-09</mq:ContactValue>
        </mq:ContactDto>
       </mq:ContactDtos>
       <mq:Lpu>
        <mq:Code>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</mq:Code>
        <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
        <mq:Version>1</mq:Version>
       </mq:Lpu>
       <mq:Person>
        <mq:HumanName>
         <mq:FamilyName>Буров</mq:FamilyName>
         <mq:GivenName>Артём</mq:GivenName>
         <mq:MiddleName>Тимофеевич</mq:MiddleName>
        </mq:HumanName>
        <mq:IdPersonMis>54</mq:IdPersonMis>
        <mq:Sex>
         <mq:Code>1</mq:Code>
         <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.156</mq:System>
         <mq:Version>1</mq:Version>
        </mq:Sex>
       </mq:Person>
       <mq:Position>
        <mq:Code>73</mq:Code>
        <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.607</mq:System>
        <mq:Version>1</mq:Version>
       </mq:Position>
       <mq:Role>
        <mq:Code>1</mq:Code>
        <mq:System>urn:oid:1.2.643.2.69.1.1.1.66</mq:System>
        <mq:Version>1</mq:Version>
       </mq:Role>
       <mq:Speciality>
        <mq:Code>27</mq:Code>
        <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.181</mq:System>
        <mq:Version>1</mq:Version>
       </mq:Speciality>
      </mq:Doctor>
     </mq:Doctors>
     <mq:IdCaseMis>245</mq:IdCaseMis>
     <mq:IdReferralMis>247</mq:IdReferralMis>
     <mq:Lpu>
      <mq:Code>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</mq:Code>
      <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
      <mq:Version>1</mq:Version>
     </mq:Lpu>
     <mq:MainDiagnosis>
      <mq:MainDiagnosis>
       <mq:DiagnosisInfo>
        <mq:Comment>Астигматизм</mq:Comment>
        <mq:DiagnosedDate>2015-08-12T00:00:00.000</mq:DiagnosedDate>
        <mq:DiagnosisType>
         <mq:Code>1</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.26</mq:System>
         <mq:Version>1</mq:Version>
        </mq:DiagnosisType>
        <mq:MkbCode>
         <mq:Code>H52.2</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.2</mq:System>
         <mq:Version>1</mq:Version>
        </mq:MkbCode>
       </mq:DiagnosisInfo>
      </mq:MainDiagnosis>
     </mq:MainDiagnosis>
    </mq:Source>
    <mq:Target>
     <mq:IdCaseMis>22</mq:IdCaseMis>
     <mq:Lpu>
      <mq:Code>e23746d3-21c0-4107-a229-9d47ca166760</mq:Code>
      <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
      <mq:Version>1</mq:Version>
     </mq:Lpu>
    </mq:Target>
   </tem:referral>
  </tem:Register>
 </soapenv:Body>
</soapenv:Envelope>
 

Регистрация направления на госпитализацию (в дневной стационар)

 <soapenv:Envelopexmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:mq="http://schemas.datacontract.org/2004/07/MQ.Dto">
  <soapenv:Header/>
  <soapenv:Body>
   <tem:Register>
    <tem:credentials>
     <mq:Organization>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</mq:Organization>
     <mq:Token>YourGuid</mq:Token>
    </tem:credentials>
    <tem:referral>
     <mq:EventsInfo>
      <mq:Source>
       <mq:IsReferralReviewed>true</mq:IsReferralReviewed>
       <mq:PlannedDate>2015-10-01T00:00:00.000</mq:PlannedDate>
       <mq:ReferralCreateDate>2015-09-14T00:00:00.000</mq:ReferralCreateDate>
       <mq:ReferralOutDate>2015-09-16T00:00:00.000</mq:ReferralOutDate>
       <mq:ReferralReviewDate>2015-09-15T00:00:00.000</mq:ReferralReviewDate>
      </mq:Source>
      <mq:Target>
       <mq:CaseAidForm>
        <mq:Code>1</mq:Code>
        <mq:System>urn:oid:1.2.643.2.69.1.1.1.54</mq:System>
        <mq:Version>1</mq:Version>
       </mq:CaseAidForm>
       <mq:CaseAidPlace>
        <mq:Code>3</mq:Code>
        <mq:System>urn:oid:1.2.643.2.69.1.1.1.53</mq:System>
        <mq:Version>1</mq:Version>
       </mq:CaseAidPlace>
       <mq:CaseAidType>
        <mq:Code>2</mq:Code>
        <mq:System>urn:oid:1.2.643.2.69.1.1.1.52</mq:System>
        <mq:Version>1</mq:Version>
       </mq:CaseAidType>
      </mq:Target>
     </mq:EventsInfo>
     <mq:Patient>
      <mq:Addresses>
       <mq:AddressDto>
        <mq:AddressType>
         <mq:Code>1</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.28</mq:System>
         <mq:Version>1</mq:Version>
        </mq:AddressType>
        <mq:StringAddress>Авангардная ул., д.6, корп.2, кв.122</mq:StringAddress>
       </mq:AddressDto>
      </mq:Addresses>
      <mq:ContactDtos>
       <mq:ContactDto>
        <mq:ContactType>
         <mq:Code>2</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.27</mq:System>
         <mq:Version>1</mq:Version>
        </mq:ContactType>
        <mq:ContactValue>+7 (812) 648-21-21</mq:ContactValue>
       </mq:ContactDto>
      </mq:ContactDtos>
      <mq:Documents>
       <mq:DocumentDto>
        <!--паспорт СПб-->
        <mq:DocN>256198</mq:DocN>
        <mq:DocS>7810</mq:DocS>
        <mq:DocumentType>
         <mq:Code>14</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.59</mq:System>
         <mq:Version>1</mq:Version>
        </mq:DocumentType>
        <mq:ExpiredDate>2020-10-15T00:00:00.000</mq:ExpiredDate>
        <mq:IssuedDate>2010-10-15T00:00:00.000</mq:IssuedDate>
        <mq:ProviderName>ОВД Петроградского района г. Санкт-Петербурга</mq:ProviderName>
       </mq:DocumentDto>
       <mq:DocumentDto>
        <!--полис новый-->
        <mq:DocN>7878370895000033</mq:DocN>
        <mq:DocumentType>
         <mq:Code>228</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.59</mq:System>
         <mq:Version>1</mq:Version>
        </mq:DocumentType>
        <mq:Provider>
         <mq:Code>78008</mq:Code>
         <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.635</mq:System>
         <mq:Version>1</mq:Version>
        </mq:Provider>
        <mq:ProviderName>САНКТ-ПЕТЕРБУРГСКИЙ ФИЛИАЛ ОАО "РОСНО-МС"</mq:ProviderName>
        <mq:RegionCode>
         <mq:Code>78</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.51</mq:System>
         <mq:Version>1</mq:Version>
        </mq:RegionCode>
       </mq:DocumentDto>
      </mq:Documents>
      <mq:Jobs>
       <mq:Job>
        <mq:CompanyName>Транспортная компания ТрансГолд</mq:CompanyName>
        <mq:Position>Диспетчер</mq:Position>
       </mq:Job>
      </mq:Jobs>
      <mq:Person>
       <mq:BirthDate>1973-08-05T00:00:00.000</mq:BirthDate>
       <mq:HumanName>
        <mq:FamilyName>Крюкова</mq:FamilyName>
        <mq:GivenName>Зоя</mq:GivenName>
        <mq:MiddleName>Валериевна</mq:MiddleName>
       </mq:HumanName>
       <mq:IdPatientMis>652</mq:IdPatientMis>
       <mq:Sex>
        <mq:Code>2</mq:Code>
        <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.156</mq:System>
        <mq:Version>1</mq:Version>
       </mq:Sex>
      </mq:Person>
      <mq:Privileges>
       <mq:Privilege>
        <mq:EndDate>2025-08-05T00:00:00.000</mq:EndDate>
        <mq:PrivilegeType>
         <mq:Code>81</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.7</mq:System>
         <mq:Version>1</mq:Version>
        </mq:PrivilegeType>
        <mq:StartDate>2014-08-05T00:00:00.000</mq:StartDate>
       </mq:Privilege>
      </mq:Privileges>
     </mq:Patient>
     <mq:ReferralInfo>
      <mq:Date>2015-09-16T00:00:00.000</mq:Date>
      <mq:Priority>В плановом порядке</mq:Priority>
      <mq:ProfileMedService>
       <mq:Code>10</mq:Code>
       <mq:System>urn:oid:1.2.643.2.69.1.1.1.56</mq:System>
       <mq:Version>1</mq:Version>
      </mq:ProfileMedService>
      <mq:Reason>Необходимо оперативное лечение</mq:Reason>
      <mq:ReferralType>
       <mq:Code>1</mq:Code>
       <mq:System>urn:oid:1.2.643.2.69.1.1.1.55</mq:System>
       <mq:Version>1</mq:Version>
      </mq:ReferralType>
     </mq:ReferralInfo>
     <mq:ReferralSurvey xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
     <mq:Source>
      <mq:Doctors>
       <mq:Doctor>
        <mq:ContactDtos>
         <mq:ContactDto>
          <mq:ContactType>
           <mq:Code>2</mq:Code>
           <mq:System>urn:oid:1.2.643.2.69.1.1.1.27</mq:System>
           <mq:Version>1</mq:Version>
          </mq:ContactType>
          <mq:ContactValue>+7 (812) 309-86-09</mq:ContactValue>
         </mq:ContactDto>
        </mq:ContactDtos>
        <mq:Lpu>
         <mq:Code>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
         <mq:Version>1</mq:Version>
        </mq:Lpu>
        <mq:Person>
         <mq:HumanName>
          <mq:FamilyName>Буров</mq:FamilyName>
          <mq:GivenName>Артём</mq:GivenName>
          <mq:MiddleName>Тимофеевич</mq:MiddleName>
         </mq:HumanName>
         <mq:IdPersonMis>54</mq:IdPersonMis>
         <mq:Sex>
          <mq:Code>1</mq:Code>
          <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.156</mq:System>
          <mq:Version>1</mq:Version>
         </mq:Sex>
        </mq:Person>
        <mq:Position>
         <mq:Code>73</mq:Code>
         <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.607</mq:System>
         <mq:Version>1</mq:Version>
        </mq:Position>
        <mq:Role>
         <mq:Code>1</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.66</mq:System>
         <mq:Version>1</mq:Version>
        </mq:Role>
        <mq:Speciality>
         <mq:Code>27</mq:Code>
         <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.181</mq:System>
         <mq:Version>1</mq:Version>
        </mq:Speciality>
       </mq:Doctor>
      </mq:Doctors>
      <mq:IdCaseMis>245</mq:IdCaseMis>
      <mq:IdReferralMis>247</mq:IdReferralMis>
      <mq:Lpu>
       <mq:Code>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</mq:Code>
       <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
       <mq:Version>1</mq:Version>
      </mq:Lpu>
      <mq:MainDiagnosis>
       <mq:MainDiagnosis>
        <mq:DiagnosisInfo>
         <mq:Comment>Астигматизм</mq:Comment>
         <mq:DiagnosedDate>2015-08-12T00:00:00.000</mq:DiagnosedDate>
         <mq:DiagnosisType>
          <mq:Code>1</mq:Code>
          <mq:System>urn:oid:1.2.643.2.69.1.1.1.26</mq:System>
          <mq:Version>1</mq:Version>
         </mq:DiagnosisType>
         <mq:MkbCode>
          <mq:Code>H52.2</mq:Code>
          <mq:System>urn:oid:1.2.643.2.69.1.1.1.2</mq:System>
          <mq:Version>1</mq:Version>
         </mq:MkbCode>
        </mq:DiagnosisInfo>
       </mq:MainDiagnosis>
      </mq:MainDiagnosis>
     </mq:Source>
     <mq:Target>
      <mq:IdCaseMis>22</mq:IdCaseMis>
      <mq:Lpu>
       <mq:Code>e23746d3-21c0-4107-a229-9d47ca166760</mq:Code>
       <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
       <mq:Version>1</mq:Version>
      </mq:Lpu>
     </mq:Target>
    </tem:referral>
   </tem:Register>
  </soapenv:Body>
 </soapenv:Envelope>
  

Регистрация направления на обследование

   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:mq="http://schemas.datacontract.org/2004/07/MQ.Dto">
   <soapenv:Header/>
   <soapenv:Body>
      <tem:Register>
         <tem:credentials>
            <mq:Organization>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</mq:Organization>
            <mq:Token>YourGuid</mq:Token>
         </tem:credentials>
         <tem:referral>
            <mq:EventsInfo>
               <mq:Source>
                  <mq:IsReferralReviewed>true</mq:IsReferralReviewed>
                  <mq:PlannedDate>2015-10-01T00:00:00.000</mq:PlannedDate>
                  <mq:ReferralCreateDate>2015-09-14T00:00:00.000</mq:ReferralCreateDate>
                  <mq:ReferralOutDate>2015-09-16T00:00:00.000</mq:ReferralOutDate>
                  <mq:ReferralReviewDate>2015-09-15T00:00:00.000</mq:ReferralReviewDate>
               </mq:Source>
               <mq:Target>
                  <mq:IsReferralReviwed>true</mq:IsReferralReviwed>
                  <mq:ReceptionAppointComment>Кабинет МРТ №214, второй этаж главного корпуса</mq:ReceptionAppointComment>
                  <mq:ReceptionAppointDate>2015-09-02T00:00:00.000</mq:ReceptionAppointDate>
                  <mq:ReceptionAppointTime>любое время с 10 до 12, в порядке живой очереди</mq:ReceptionAppointTime>
                  <mq:ReferralReviewDate>2015-09-12T00:00:00.000</mq:ReferralReviewDate>
               </mq:Target>
            </mq:EventsInfo>
            <mq:Patient>
               <mq:Addresses>
                  <mq:AddressDto>
                     <mq:AddressType>
                        <mq:Code>1</mq:Code>
                        <mq:System>urn:oid:1.2.643.2.69.1.1.1.28</mq:System>
                        <mq:Version>1</mq:Version>
                     </mq:AddressType>
                     <mq:StringAddress>Авангардная ул., д.6, корп.2, кв.122</mq:StringAddress>
                  </mq:AddressDto>
               </mq:Addresses>
               <mq:ContactDtos>
                  <mq:ContactDto>
                     <mq:ContactType>
                        <mq:Code>2</mq:Code>
                        <mq:System>urn:oid:1.2.643.2.69.1.1.1.27</mq:System>
                        <mq:Version>1</mq:Version>
                     </mq:ContactType>
                     <mq:ContactValue>+7 (812) 648-21-21</mq:ContactValue>
                  </mq:ContactDto>
               </mq:ContactDtos>
               <mq:Documents>
                  <mq:DocumentDto>
                     <!--паспорт СПб-->
                     <mq:DocN>256198</mq:DocN>
                     <mq:DocS>7810</mq:DocS>
                     <mq:DocumentType>
                        <mq:Code>14</mq:Code>
                        <mq:System>urn:oid:1.2.643.2.69.1.1.1.59</mq:System>
                        <mq:Version>1</mq:Version>
                     </mq:DocumentType>
                     <mq:ExpiredDate>2020-10-15T00:00:00.000</mq:ExpiredDate>
                     <mq:IssuedDate>2010-10-15T00:00:00.000</mq:IssuedDate>
                     <mq:ProviderName>ОВД Петроградского района г. Санкт-Петербурга</mq:ProviderName>
                  </mq:DocumentDto>
                  <mq:DocumentDto>
                     <!--полис новый-->
                     <mq:DocN>7878370895000033</mq:DocN>
                     <mq:DocumentType>
                        <mq:Code>228</mq:Code>
                        <mq:System>urn:oid:1.2.643.2.69.1.1.1.59</mq:System>
                        <mq:Version>1</mq:Version>
                     </mq:DocumentType>
                     <mq:Provider>
                        <mq:Code>78008</mq:Code>
                        <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.635</mq:System>
                        <mq:Version>1</mq:Version>
                     </mq:Provider>
                     <mq:ProviderName>САНКТ-ПЕТЕРБУРГСКИЙ ФИЛИАЛ ОАО "РОСНО-МС"</mq:ProviderName>
                     <mq:RegionCode>
                        <mq:Code>78</mq:Code>
                        <mq:System>urn:oid:1.2.643.2.69.1.1.1.51</mq:System>
                        <mq:Version>1</mq:Version>
                     </mq:RegionCode>
                  </mq:DocumentDto>
               </mq:Documents>
               <mq:Jobs>
                  <mq:Job>
                     <mq:CompanyName>Транспортная компания ТрансГолд</mq:CompanyName>
                     <mq:Position>Диспетчер</mq:Position>
                  </mq:Job>
               </mq:Jobs>
               <mq:Person>
                  <mq:BirthDate>1973-08-05T00:00:00.000</mq:BirthDate>
                  <mq:HumanName>
                     <mq:FamilyName>Крюкова</mq:FamilyName>
                     <mq:GivenName>Зоя</mq:GivenName>
                     <mq:MiddleName>Валериевна</mq:MiddleName>
                  </mq:HumanName>
                  <mq:IdPatientMis>652</mq:IdPatientMis>
                  <mq:Sex>
                     <mq:Code>2</mq:Code>
                     <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.156</mq:System>
                     <mq:Version>1</mq:Version>
                  </mq:Sex>
               </mq:Person>
               <mq:Privileges>
                  <mq:Privilege>
                     <mq:EndDate>2025-08-05T00:00:00.000</mq:EndDate>
                     <mq:PrivilegeType>
                        <mq:Code>81</mq:Code>
                        <mq:System>urn:oid:1.2.643.2.69.1.1.1.7</mq:System>
                        <mq:Version>1</mq:Version>
                     </mq:PrivilegeType>
                     <mq:StartDate>2014-08-05T00:00:00.000</mq:StartDate>
                  </mq:Privilege>
               </mq:Privileges>
            </mq:Patient>
            <mq:ReferralInfo>
               <mq:Comment>На консультацию к специалисту</mq:Comment>
               <mq:Date>2015-09-16T00:00:00.000</mq:Date>
               <mq:Priority>В плановом порядке</mq:Priority>
               <mq:ProfileMedService>
                  <mq:Code>85</mq:Code>
                  <mq:System>urn:oid:1.2.643.2.69.1.1.1.56</mq:System>
                  <mq:Version>1</mq:Version>
               </mq:ProfileMedService>
               <mq:Reason>Для уточнения диагноза</mq:Reason>
               <mq:ReferralType>
                  <mq:Code>3</mq:Code>
                  <mq:System>urn:oid:1.2.643.2.69.1.1.1.55</mq:System>
                  <mq:Version>1</mq:Version>
               </mq:ReferralType>
            </mq:ReferralInfo>
            <mq:ReferralSurvey>
               <mq:Additional>
                  <mq:AllergyIodine>Нет данных</mq:AllergyIodine>
                  <mq:Height>168</mq:Height>
                  <mq:Weight>98</mq:Weight>
                  <mq:ExtraData>
                     <arr:KeyValueOfstringstring xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                        <arr:Key>DR1</arr:Key>
                        <arr:Value>нет</arr:Value>
                     </arr:KeyValueOfstringstring>
                     <arr:KeyValueOfstringstring xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                        <arr:Key>DR2</arr:Key>
                        <arr:Value>В течение месяца консервативная терапия, с положительным эффектом. В дальнейшем ежегодно (весной или осенью) отмечал усиление болей</arr:Value>
                     </arr:KeyValueOfstringstring>
                     <arr:KeyValueOfstringstring xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                        <arr:Key>DR3</arr:Key>
                        <arr:Value>жалобы на острые, приступообразные боли в правом подреберье, иррадиирущие в правое надплечье, в течении 6 часов, после приема жирной пищи</arr:Value>
                     </arr:KeyValueOfstringstring>
                     <arr:KeyValueOfstringstring xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                        <arr:Key>DR4</arr:Key>
                        <arr:Value>Рентгенологические методы исследования ранее не проводились</arr:Value>
                     </arr:KeyValueOfstringstring>
                     <arr:KeyValueOfstringstring xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                        <arr:Key>DR5</arr:Key>
                        <arr:Value>Инструментальные методы исследования ранее не проводились</arr:Value>
                     </arr:KeyValueOfstringstring>
                     <arr:KeyValueOfstringstring xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                        <arr:Key>DR6</arr:Key>
                        <arr:Value>да</arr:Value>
                     </arr:KeyValueOfstringstring>
                  </mq:ExtraData>
               </mq:Additional>
               <mq:Comment>С акцентом на мозг</mq:Comment>
               <mq:SurveyOrgan>
                  <mq:Code>5</mq:Code>
                  <mq:System>urn:oid:1.2.643.2.69.1.1.1.58</mq:System>
                  <mq:Version xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
               </mq:SurveyOrgan>
               <mq:SurveyType>
                  <mq:Code>A05.03.004</mq:Code>
                  <mq:System>urn:oid:1.2.643.2.69.1.1.1.57</mq:System>
                  <mq:Version xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
               </mq:SurveyType>
            </mq:ReferralSurvey>
            <mq:Source>
               <mq:Doctors>
                  <mq:Doctor>
                     <mq:ContactDtos>
                        <mq:ContactDto>
                           <mq:ContactType>
                              <mq:Code>2</mq:Code>
                              <mq:System>urn:oid:1.2.643.2.69.1.1.1.27</mq:System>
                              <mq:Version>1</mq:Version>
                           </mq:ContactType>
                           <mq:ContactValue>+7 (812) 309-86-09</mq:ContactValue>
                        </mq:ContactDto>
                     </mq:ContactDtos>
                     <mq:Lpu>
                        <mq:Code>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</mq:Code>
                        <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
                        <mq:Version>1</mq:Version>
                     </mq:Lpu>
                     <mq:Person>
                        <mq:HumanName>
                           <mq:FamilyName>Буров</mq:FamilyName>
                           <mq:GivenName>Артём</mq:GivenName>
                           <mq:MiddleName>Тимофеевич</mq:MiddleName>
                        </mq:HumanName>
                        <mq:IdPersonMis>54</mq:IdPersonMis>
                        <mq:Sex>
                           <mq:Code>1</mq:Code>
                           <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.156</mq:System>
                           <mq:Version>1</mq:Version>
                        </mq:Sex>
                     </mq:Person>
                     <mq:Position>
                        <mq:Code>73</mq:Code>
                        <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.607</mq:System>
                        <mq:Version>1</mq:Version>
                     </mq:Position>
                     <mq:Role>
                        <mq:Code>1</mq:Code>
                        <mq:System>urn:oid:1.2.643.2.69.1.1.1.66</mq:System>
                        <mq:Version>1</mq:Version>
                     </mq:Role>
                     <mq:Speciality>
                        <mq:Code>27</mq:Code>
                        <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.181</mq:System>
                        <mq:Version>1</mq:Version>
                     </mq:Speciality>
                  </mq:Doctor>
               </mq:Doctors>
               <mq:IdCaseMis>245</mq:IdCaseMis>
               <mq:IdReferralMis>247</mq:IdReferralMis>
               <mq:Lpu>
                  <mq:Code>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</mq:Code>
                  <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
                  <mq:Version>1</mq:Version>
               </mq:Lpu>
               <mq:MainDiagnosis>
                  <mq:MainDiagnosis>
                     <mq:ComplicationDiagnosis>
                        <mq:DiagnosisInfo>
                           <mq:Comment>Дополнительный</mq:Comment>
                           <mq:DiagnosedDate>2015-08-12T00:00:00.000</mq:DiagnosedDate>
                           <mq:DiagnosisType>
                              <mq:Code>2</mq:Code>
                              <mq:System>urn:oid:1.2.643.2.69.1.1.1.26</mq:System>
                              <mq:Version>1</mq:Version>
                           </mq:DiagnosisType>
                           <mq:MkbCode>
                              <mq:Code>E14</mq:Code>
                              <mq:System>urn:oid:1.2.643.2.69.1.1.1.2</mq:System>
                              <mq:Version>1</mq:Version>
                           </mq:MkbCode>
                        </mq:DiagnosisInfo>
                     </mq:ComplicationDiagnosis>
                     <mq:DiagnosisInfo>
                        <mq:Comment>Предварительный</mq:Comment>
                        <mq:DiagnosedDate>2015-08-12T00:00:00.000</mq:DiagnosedDate>
                        <mq:DiagnosisType>
                           <mq:Code>1</mq:Code>
                           <mq:System>urn:oid:1.2.643.2.69.1.1.1.26</mq:System>
                           <mq:Version>1</mq:Version>
                        </mq:DiagnosisType>
                        <mq:MkbCode>
                           <mq:Code>D09.9</mq:Code>
                           <mq:System>urn:oid:1.2.643.2.69.1.1.1.2</mq:System>
                           <mq:Version>1</mq:Version>
                        </mq:MkbCode>
                     </mq:DiagnosisInfo>
                  </mq:MainDiagnosis>
               </mq:MainDiagnosis>
            </mq:Source>
            <mq:Target>
               <mq:IdCaseMis>22</mq:IdCaseMis>
               <mq:Lpu>
                  <mq:Code>e23746d3-21c0-4107-a229-9d47ca166760</mq:Code>
                  <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
                  <mq:Version>1</mq:Version>
               </mq:Lpu>
            </mq:Target>
         </tem:referral>
      </tem:Register>
   </soapenv:Body>
</soapenv:Envelope>
   

Регистрация направления на консультацию

 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:mq="http://schemas.datacontract.org/2004/07/MQ.Dto">
  <soapenv:Header/>
  <soapenv:Body>
   <tem:Register>
    <tem:credentials>
     <mq:Organization>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</mq:Organization>
     <mq:Token>YourGuid</mq:Token>
    </tem:credentials>
    <tem:referral>
     <mq:EventsInfo>
      <mq:Source>
       <mq:IsReferralReviewed>true</mq:IsReferralReviewed>
       <mq:PlannedDate>2015-10-01T00:00:00.000</mq:PlannedDate>
       <mq:ReferralCreateDate>2015-09-14T00:00:00.000</mq:ReferralCreateDate>
       <mq:ReferralOutDate>2015-09-16T00:00:00.000</mq:ReferralOutDate>
       <mq:ReferralReviewDate>2015-09-15T00:00:00.000</mq:ReferralReviewDate>
      </mq:Source>
     </mq:EventsInfo>
     <mq:Patient>
      <mq:Addresses>
       <mq:AddressDto>
        <mq:AddressType>
         <mq:Code>1</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.28</mq:System>
         <mq:Version>1</mq:Version>
        </mq:AddressType>
        <mq:StringAddress>Авангардная ул., д.6, корп.2, кв.122</mq:StringAddress>
       </mq:AddressDto>
      </mq:Addresses>
      <mq:ContactDtos>
       <mq:ContactDto>
        <mq:ContactType>
         <mq:Code>2</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.27</mq:System>
         <mq:Version>1</mq:Version>
        </mq:ContactType>
        <mq:ContactValue>+7 (812) 648-21-21</mq:ContactValue>
       </mq:ContactDto>
      </mq:ContactDtos>
      <mq:Documents>
       <mq:DocumentDto>
        <!--паспорт СПб-->
        <mq:DocN>256198</mq:DocN>
        <mq:DocS>7810</mq:DocS>
        <mq:DocumentType>
         <mq:Code>14</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.59</mq:System>
         <mq:Version>1</mq:Version>
        </mq:DocumentType>
        <mq:ExpiredDate>2020-10-15T00:00:00.000</mq:ExpiredDate>
        <mq:IssuedDate>2010-10-15T00:00:00.000</mq:IssuedDate>
        <mq:ProviderName>ОВД Петроградского района г. Санкт-Петербурга</mq:ProviderName>
       </mq:DocumentDto>
       <mq:DocumentDto>
        <!--полис новый-->
        <mq:DocN>7878370895000033</mq:DocN>
        <mq:DocumentType>
         <mq:Code>228</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.59</mq:System>
         <mq:Version>1</mq:Version>
        </mq:DocumentType>
        <mq:Provider>
         <mq:Code>78008</mq:Code>
         <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.635</mq:System>
         <mq:Version>1</mq:Version>
        </mq:Provider>
        <mq:ProviderName>САНКТ-ПЕТЕРБУРГСКИЙ ФИЛИАЛ ОАО "РОСНО-МС"</mq:ProviderName>
        <mq:RegionCode>
         <mq:Code>78</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.51</mq:System>
         <mq:Version>1</mq:Version>
        </mq:RegionCode>
       </mq:DocumentDto>
      </mq:Documents>
      <mq:Jobs>
       <mq:Job>
        <mq:CompanyName>Транспортная компания ТрансГолд</mq:CompanyName>
        <mq:Position>Диспетчер</mq:Position>
       </mq:Job>
      </mq:Jobs>
      <mq:Person>
       <mq:BirthDate>1973-08-05T00:00:00.000</mq:BirthDate>
       <mq:HumanName>
        <mq:FamilyName>Крюкова</mq:FamilyName>
        <mq:GivenName>Зоя</mq:GivenName>
        <mq:MiddleName>Валериевна</mq:MiddleName>
       </mq:HumanName>
       <mq:IdPatientMis>652</mq:IdPatientMis>
       <mq:Sex>
        <mq:Code>2</mq:Code>
        <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.156</mq:System>
        <mq:Version>1</mq:Version>
       </mq:Sex>
      </mq:Person>
      <mq:Privileges>
       <mq:Privilege>
        <mq:EndDate>2025-08-05T00:00:00.000</mq:EndDate>
        <mq:PrivilegeType>
         <mq:Code>81</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.7</mq:System>
         <mq:Version>1</mq:Version>
        </mq:PrivilegeType>
        <mq:StartDate>2014-08-05T00:00:00.000</mq:StartDate>
       </mq:Privilege>
      </mq:Privileges>
     </mq:Patient>
     <mq:ReferralInfo>
      <mq:Comment>На консультацию к специалисту</mq:Comment>
      <mq:Date>2015-09-16T00:00:00.000</mq:Date>
      <mq:Priority>В плановом порядке</mq:Priority>
      <mq:ProfileMedService>
       <mq:Code>21</mq:Code>
       <mq:System>urn:oid:1.2.643.2.69.1.1.1.56</mq:System>
       <mq:Version>1</mq:Version>
      </mq:ProfileMedService>
      <mq:Reason>Для уточнения диагноза</mq:Reason>
      <mq:ReferralType>
       <mq:Code>4</mq:Code>
       <mq:System>urn:oid:1.2.643.2.69.1.1.1.55</mq:System>
       <mq:Version>1</mq:Version>
      </mq:ReferralType>
     </mq:ReferralInfo>
     <mq:Source>
      <mq:Doctors>
       <mq:Doctor>
        <mq:ContactDtos>
         <mq:ContactDto>
          <mq:ContactType>
           <mq:Code>2</mq:Code>
           <mq:System>urn:oid:1.2.643.2.69.1.1.1.27</mq:System>
           <mq:Version>1</mq:Version>
          </mq:ContactType>
          <mq:ContactValue>+7 (812) 309-86-09</mq:ContactValue>
         </mq:ContactDto>
        </mq:ContactDtos>
        <mq:Lpu>
         <mq:Code>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
         <mq:Version>1</mq:Version>
        </mq:Lpu>
        <mq:Person>
         <mq:HumanName>
          <mq:FamilyName>Буров</mq:FamilyName>
          <mq:GivenName>Артём</mq:GivenName>
          <mq:MiddleName>Тимофеевич</mq:MiddleName>
         </mq:HumanName>
         <mq:IdPersonMis>54</mq:IdPersonMis>
         <mq:Sex>
          <mq:Code>1</mq:Code>
          <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.156</mq:System>
          <mq:Version>1</mq:Version>
         </mq:Sex>
        </mq:Person>
        <mq:Position>
         <mq:Code>73</mq:Code>
         <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.607</mq:System>
         <mq:Version>1</mq:Version>
        </mq:Position>
        <mq:Role>
         <mq:Code>1</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.66</mq:System>
         <mq:Version>1</mq:Version>
        </mq:Role>
        <mq:Speciality>
         <mq:Code>27</mq:Code>
         <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.181</mq:System>
         <mq:Version>1</mq:Version>
        </mq:Speciality>
       </mq:Doctor>
      </mq:Doctors>
      <mq:IdCaseMis>245</mq:IdCaseMis>
      <mq:IdReferralMis>247</mq:IdReferralMis>
      <mq:Lpu>
       <mq:Code>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</mq:Code>
       <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
       <mq:Version>1</mq:Version>
      </mq:Lpu>
      <mq:MainDiagnosis>
       <mq:MainDiagnosis>
        <mq:ComplicationDiagnosis>
         <mq:DiagnosisInfo>
          <mq:Comment>Дополнительный</mq:Comment>
          <mq:DiagnosedDate>2015-08-12T00:00:00.000</mq:DiagnosedDate>
          <mq:DiagnosisType>
           <mq:Code>2</mq:Code>
           <mq:System>urn:oid:1.2.643.2.69.1.1.1.26</mq:System>
           <mq:Version>1</mq:Version>
          </mq:DiagnosisType>
          <mq:MkbCode>
           <mq:Code>E14</mq:Code>
           <mq:System>urn:oid:1.2.643.2.69.1.1.1.2</mq:System>
           <mq:Version>1</mq:Version>
          </mq:MkbCode>
         </mq:DiagnosisInfo>
        </mq:ComplicationDiagnosis>
        <mq:DiagnosisInfo>
         <mq:Comment>Предварительный</mq:Comment>
         <mq:DiagnosedDate>2015-08-12T00:00:00.000</mq:DiagnosedDate>
         <mq:DiagnosisType>
          <mq:Code>1</mq:Code>
          <mq:System>urn:oid:1.2.643.2.69.1.1.1.26</mq:System>
          <mq:Version>1</mq:Version>
         </mq:DiagnosisType>
         <mq:MkbCode>
          <mq:Code>D09.9</mq:Code>
          <mq:System>urn:oid:1.2.643.2.69.1.1.1.2</mq:System>
          <mq:Version>1</mq:Version>
         </mq:MkbCode>
        </mq:DiagnosisInfo>
       </mq:MainDiagnosis>
      </mq:MainDiagnosis>
     </mq:Source>
     <mq:Target>
      <mq:IdCaseMis>22</mq:IdCaseMis>
      <mq:Lpu>
       <mq:Code>e23746d3-21c0-4107-a229-9d47ca166760</mq:Code>
       <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
       <mq:Version>1</mq:Version>
      </mq:Lpu>
     </mq:Target>
    </tem:referral>
   </tem:Register>
  </soapenv:Body>
 </soapenv:Envelope> 
    

Ответ

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
 <RegisterResponse xmlns="http://tempuri.org/">
   <RegisterResult xmlns:a="http://schemas.datacontract.org/2004/07/MQ.Dto.Result" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <a:IdMq>78151000000000</a:IdMq>
      <a:MqReferralStatus xmlns:b="http://schemas.datacontract.org/2004/07/MQ.Dto">
         <b:Code>3</b:Code>
         <b:System>urn:oid:1.2.643.2.69.1.1.1.50</b:System>
         <b:Version>1</b:Version>
      </a:MqReferralStatus>
    <a:MqReferralStatusDate>2015-11-02T16:55:23.0368046+03:00</a:MqReferralStatusDate>
      </RegisterResult>
      </RegisterResponse>
  </s:Body>
</s:Envelope>

Метод UpdateFromSourcedMo

Запрос

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:mq="http://schemas.datacontract.org/2004/07/MQ.Dto">
  <soapenv:Header/>
  <soapenv:Body>
     <tem:UpdateFromSourcedMo>
         <tem:credentials>
            <mq:Organization>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</mq:Organization>
            <mq:Token>YourGuid</mq:Token>
     </tem:credentials>
     <tem:referral>
      <mq:EventsInfo>
        <mq:Source>
         <mq:IsReferralReviewed>true</mq:IsReferralReviewed>
         <mq:PlannedDate>2015-09-21T00:00:00.000</mq:PlannedDate>
         <mq:ReferralCreateDate>2015-09-14T00:00:00.000</mq:ReferralCreateDate>
         <mq:ReferralOutDate>2015-09-16T00:00:00.000</mq:ReferralOutDate>
         <mq:ReferralReviewDate>2015-09-15T00:00:00.000</mq:ReferralReviewDate>
        </mq:Source>
      </mq:EventsInfo>
      <mq:Patient>
        <mq:Addresses>
         <mq:AddressDto>
           <mq:AddressType>
            <mq:Code>1</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.28</mq:System>
            <mq:Version>1</mq:Version>
           </mq:AddressType>
           <mq:StringAddress>Авангардная ул., д.6, корп.2, кв.122</mq:StringAddress>
         </mq:AddressDto>
        </mq:Addresses>
        <mq:ContactDtos>
         <mq:ContactDto>
           <mq:ContactType>
            <mq:Code>2</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.27</mq:System>
            <mq:Version>1</mq:Version>
           </mq:ContactType>
           <mq:ContactValue>+7 (812) 648-21-21</mq:ContactValue>
         </mq:ContactDto>
        </mq:ContactDtos>
        <mq:Documents>
         <mq:DocumentDto>
           <!--паспорт СПб-->
           <mq:DocN>256198</mq:DocN>
           <mq:DocS>7810</mq:DocS>
           <mq:DocumentType>
            <mq:Code>14</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.59</mq:System>
            <mq:Version>1</mq:Version>
           </mq:DocumentType>
           <mq:ExpiredDate>2020-10-15T00:00:00.000</mq:ExpiredDate>
           <mq:IssuedDate>2010-10-15T00:00:00.000</mq:IssuedDate>
           <mq:ProviderName>ОВД Петроградского района г. Санкт-Петербурга</mq:ProviderName>
         </mq:DocumentDto>
         <mq:DocumentDto>
           <!--полис новый-->
           <mq:DocN>7878370895000033</mq:DocN>
           <mq:DocumentType>
            <mq:Code>228</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.59</mq:System>
            <mq:Version>1</mq:Version>
           </mq:DocumentType>
           <mq:Provider>
            <mq:Code>78008</mq:Code>
            <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.635</mq:System>
            <mq:Version>1</mq:Version>
           </mq:Provider>
           <mq:ProviderName>САНКТ-ПЕТЕРБУРГСКИЙ ФИЛИАЛ ОАО "РОСНО-МС"</mq:ProviderName>
           <mq:RegionCode>
            <mq:Code>78</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.51</mq:System>
            <mq:Version>1</mq:Version>
           </mq:RegionCode>
         </mq:DocumentDto>
        </mq:Documents>
        <mq:Jobs>
         <mq:Job>
           <mq:CompanyName>Транспортная компания ТрансГолд</mq:CompanyName>
           <mq:Position>Диспетчер</mq:Position>
         </mq:Job>
        </mq:Jobs>
        <mq:Person>
         <mq:BirthDate>1973-08-05T00:00:00.000</mq:BirthDate>
         <mq:HumanName>
           <mq:FamilyName>Крюкова</mq:FamilyName>
           <mq:GivenName>Зоя</mq:GivenName>
           <mq:MiddleName>Валериевна</mq:MiddleName>
         </mq:HumanName>
         <mq:IdPatientMis>652</mq:IdPatientMis>
         <mq:Sex>
           <mq:Code>2</mq:Code>
           <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.156</mq:System>
           <mq:Version>1</mq:Version>
         </mq:Sex>
        </mq:Person>
        <mq:Privileges>
         <mq:Privilege>
           <mq:EndDate>2025-08-05T00:00:00.000</mq:EndDate>
           <mq:PrivilegeType>
            <mq:Code>81</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.7</mq:System>
            <mq:Version>1</mq:Version>
           </mq:PrivilegeType>
           <mq:StartDate>2014-08-05T00:00:00.000</mq:StartDate>
         </mq:Privilege>
        </mq:Privileges>
      </mq:Patient>
      <mq:ReferralInfo>
        <mq:Comment>На консультацию к специалисту</mq:Comment>
        <mq:Date>2015-09-16T00:00:00.000</mq:Date>
        <mq:IdMq>78151000000000</mq:IdMq>
        <mq:Priority>В плановом порядке</mq:Priority>
        <mq:ProfileMedService>
         <mq:Code>21</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.56</mq:System>
         <mq:Version>1</mq:Version>
        </mq:ProfileMedService>
        <mq:Reason>Для уточнения диагноза</mq:Reason>
        <mq:ReferralType>
         <mq:Code>4</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.55</mq:System>
         <mq:Version>1</mq:Version>
        </mq:ReferralType>
      </mq:ReferralInfo>
      <mq:Source>
        <mq:Doctors>
         <mq:Doctor>
           <mq:ContactDtos>
            <mq:ContactDto>
              <mq:ContactType>
               <mq:Code>2</mq:Code>
               <mq:System>urn:oid:1.2.643.2.69.1.1.1.27</mq:System>
               <mq:Version>1</mq:Version>
              </mq:ContactType>
              <mq:ContactValue>+7 (812) 309-86-09</mq:ContactValue>
            </mq:ContactDto>
           </mq:ContactDtos>
           <mq:Lpu>
            <mq:Code>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
            <mq:Version>1</mq:Version>
           </mq:Lpu>
           <mq:Person>
            <mq:HumanName>
              <mq:FamilyName>Буров</mq:FamilyName>
              <mq:GivenName>Артём</mq:GivenName>
              <mq:MiddleName>Тимофеевич</mq:MiddleName>
            </mq:HumanName>
            <mq:IdPersonMis>54</mq:IdPersonMis>
            <mq:Sex>
              <mq:Code>1</mq:Code>
              <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.156</mq:System>
              <mq:Version>1</mq:Version>
            </mq:Sex>
           </mq:Person>
           <mq:Position>
            <mq:Code>73</mq:Code>
            <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.607</mq:System>
            <mq:Version>1</mq:Version>
           </mq:Position>
           <mq:Role>
            <mq:Code>1</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.66</mq:System>
            <mq:Version>1</mq:Version>
           </mq:Role>
           <mq:Speciality>
            <mq:Code>27</mq:Code>
            <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.181</mq:System>
            <mq:Version>1</mq:Version>
           </mq:Speciality>
         </mq:Doctor>
        </mq:Doctors>
        <mq:IdCaseMis>245</mq:IdCaseMis>
        <mq:IdReferralMis>247</mq:IdReferralMis>
        <mq:Lpu>
         <mq:Code>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
         <mq:Version>1</mq:Version>
        </mq:Lpu>
        <mq:MainDiagnosis>
         <mq:MainDiagnosis>
           <mq:ComplicationDiagnosis>
            <mq:DiagnosisInfo>
              <mq:Comment>Дополнительный</mq:Comment>
              <mq:DiagnosedDate>2015-08-12T00:00:00.000</mq:DiagnosedDate>
              <mq:DiagnosisType>
               <mq:Code>2</mq:Code>
               <mq:System>urn:oid:1.2.643.2.69.1.1.1.26</mq:System>
               <mq:Version>1</mq:Version>
              </mq:DiagnosisType>
              <mq:MkbCode>
               <mq:Code>E14</mq:Code>
               <mq:System>urn:oid:1.2.643.2.69.1.1.1.2</mq:System>
               <mq:Version>1</mq:Version>
              </mq:MkbCode>
            </mq:DiagnosisInfo>
           </mq:ComplicationDiagnosis>
           <mq:DiagnosisInfo>
            <mq:Comment>Предварительный</mq:Comment>
            <mq:DiagnosedDate>2015-08-12T00:00:00.000</mq:DiagnosedDate>
            <mq:DiagnosisType>
              <mq:Code>1</mq:Code>
              <mq:System>urn:oid:1.2.643.2.69.1.1.1.26</mq:System>
              <mq:Version>1</mq:Version>
            </mq:DiagnosisType>
            <mq:MkbCode>
              <mq:Code>D09.9</mq:Code>
              <mq:System>urn:oid:1.2.643.2.69.1.1.1.2</mq:System>
              <mq:Version>1</mq:Version>
            </mq:MkbCode>
           </mq:DiagnosisInfo>
         </mq:MainDiagnosis>
        </mq:MainDiagnosis>
      </mq:Source>
      <mq:Target>
        <mq:Lpu>
         <mq:Code>e23746d3-21c0-4107-a229-9d47ca166760</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
         <mq:Version>1</mq:Version>
        </mq:Lpu>
      </mq:Target>
     </tem:referral>
   </tem:UpdateFromSourcedMo>
  </soapenv:Body>
</soapenv:Envelope>


Ответ

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<UpdateFromSourcedMoResponse xmlns="http://tempuri.org/">
         <UpdateFromSourcedMoResult xmlns:a="http://schemas.datacontract.org/2004/07/MQ.Dto.Result" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <a:IdMq>78151000000000</a:IdMq>
            <a:MqReferralStatus xmlns:b="http://schemas.datacontract.org/2004/07/MQ.Dto">
               <b:Code>3</b:Code>
              <b:System>urn:oid:1.2.643.2.69.1.1.1.50</b:System>
        <b:Version>1</b:Version>
      </a:MqReferralStatus>
      <a:MqReferralStatusDate>2015-09-21T18:58:16.434992</a:MqReferralStatusDate>
     </UpdateFromSourcedMoResult>
   </UpdateFromSourcedMoResponse>
  </s:Body>
</s:Envelope>

Метод GetQueueInfo

Запрос

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:mq="http://schemas.datacontract.org/2004/07/MQ.Dto">
  <soapenv:Header/>
  <soapenv:Body>
   <tem:GetQueueInfo>
     <tem:credentials>
      <mq:Organization>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</mq:Organization>
      <mq:Token>YourGuid</mq:Token>
     </tem:credentials>
     <tem:options>
      <mq:DateReport>2015-10-21T00:00:00.000</mq:DateReport>
      <mq:ReferralInfo>
        <mq:ProfileMedService>
         <mq:Code>85</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.56</mq:System>
         <mq:Version>1</mq:Version>
        </mq:ProfileMedService>
      </mq:ReferralInfo>
      <mq:Target>
        <mq:Lpu>
         <mq:Code>e23746d3-21c0-4107-a229-9d47ca166760</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
         <mq:Version>1</mq:Version>
        </mq:Lpu>
      </mq:Target>
     </tem:options>
   </tem:GetQueueInfo>
  </soapenv:Body>
</soapenv:Envelope>

Ответ

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
   <GetQueueInfoResponse xmlns="http://tempuri.org/">
     <GetQueueInfoResult xmlns:a="http://schemas.datacontract.org/2004/07/MQ.Dto.Result" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <a:ActiveProfiles>
        <a:ActiveProfile>
         <a:Address>197706, г. Санкт-Петербург, г. Сестрорецк, ул. Борисова, д. 9.</a:Address>
         <a:Comment>Прием с 8:00 до 20:00 по будним дням</a:Comment>
         <a:ContactValue>контакты</a:ContactValue>
         <a:EndDate>2025-08-27T00:00:00</a:EndDate>
         <a:QueueInfos>
           <a:QueueInfo>
            <a:QDays>432</a:QDays>
            <a:QMaxDate i:nil="true"/>
            <a:QlengthStatus1>3</a:QlengthStatus1>
            <a:QlengthStatus2>1</a:QlengthStatus2>
            <a:QlengthStatus3>2</a:QlengthStatus3>
            <a:QlengthStatus4>0</a:QlengthStatus4>
            <a:QlengthStatus5>0</a:QlengthStatus5>
           </a:QueueInfo>
         </a:QueueInfos>
         <a:Site>http://www.gb40.ru/</a:Site>
         <a:StartDate>2015-01-27T00:00:00</a:StartDate>
         <a:TargetLpu xmlns:b="http://schemas.datacontract.org/2004/07/MQ.Dto">
           <b:Code>e23746d3-21c0-4107-a229-9d47ca166760</b:Code>
           <b:System>urn:oid:1.2.643.2.69.1.1.1.64</b:System>
           <b:Version>1</b:Version>
         </a:TargetLpu>
        </a:ActiveProfile>
      </a:ActiveProfiles>
      <a:DateReport>2015-10-21T00:00:00Z</a:DateReport>
      <a:ProfileMedService xmlns:b="http://schemas.datacontract.org/2004/07/MQ.Dto">
        <b:Code>85</b:Code>
        <b:System>urn:oid:1.2.643.2.69.1.1.1.56</b:System>
        <b:Version>1</b:Version>
      </a:ProfileMedService>
     </GetQueueInfoResult>
   </GetQueueInfoResponse>
  </s:Body>
</s:Envelope>

Метод AgreedFromSourcedMo

Запрос

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:mq="http://schemas.datacontract.org/2004/07/MQ.Dto">
  <soapenv:Header/>
  <soapenv:Body>
   <tem:AgreedFromSourcedMo>
     <tem:credentials>
      <mq:Organization>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</mq:Organization>
      <mq:Token>YourGuid</mq:Token>
     </tem:credentials>
     <tem:referral>
      <mq:EventsInfo>
        <mq:Source>
         <mq:IsReferralReviewed>true</mq:IsReferralReviewed>
         <mq:PlannedDate>2015-11-21T00:00:00.000</mq:PlannedDate>
         <mq:ReferralCreateDate>2015-09-14T00:00:00.000</mq:ReferralCreateDate>
         <mq:ReferralOutDate>2015-09-16T00:00:00.000</mq:ReferralOutDate>
         <mq:ReferralReviewDate>2015-09-15T00:00:00.000</mq:ReferralReviewDate>
        </mq:Source>
      </mq:EventsInfo>
      <mq:ReferralInfo>
        <mq:Comment>На обследование</mq:Comment>
        <mq:Date>2015-09-16T00:00:00.000</mq:Date>
        <mq:IdMq>78151000000000</mq:IdMq>
        <mq:Priority>В плановом порядке</mq:Priority>
        <mq:Reason>Для уточнения диагноза</mq:Reason>
      </mq:ReferralInfo>
      <mq:Source>
        <mq:Doctors>
         <mq:Doctor>
           <mq:ContactDtos>
            <mq:ContactDto>
              <mq:ContactType>
               <mq:Code>2</mq:Code>
               <mq:System>urn:oid:1.2.643.2.69.1.1.1.27</mq:System>
               <mq:Version>1</mq:Version>
              </mq:ContactType>
              <mq:ContactValue>+7 (812) 309-86-09</mq:ContactValue>
            </mq:ContactDto>
           </mq:ContactDtos>
           <mq:Lpu>
            <mq:Code>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
            <mq:Version>1</mq:Version>
           </mq:Lpu>
           <mq:Person>
            <mq:HumanName>
              <mq:FamilyName>Потапов</mq:FamilyName>
              <mq:GivenName>Ярослав</mq:GivenName>
              <mq:MiddleName>Анатольевич</mq:MiddleName>
            </mq:HumanName>
            <mq:IdPersonMis>54</mq:IdPersonMis>
            <mq:Sex>
              <mq:Code>1</mq:Code>
              <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.156</mq:System>
              <mq:Version>1</mq:Version>
            </mq:Sex>
           </mq:Person>
           <mq:Position>
            <mq:Code>10234</mq:Code>
            <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.607</mq:System>
            <mq:Version>1</mq:Version>
           </mq:Position>
           <mq:Role>
            <mq:Code>2</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.66</mq:System>
            <mq:Version>1</mq:Version>
           </mq:Role>
           <mq:Speciality>
            <mq:Code>27</mq:Code>
            <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.181</mq:System>
            <mq:Version>1</mq:Version>
           </mq:Speciality>
         </mq:Doctor>
        </mq:Doctors>
      </mq:Source>
     </tem:referral>
   </tem:AgreedFromSourcedMo>
  </soapenv:Body>
</soapenv:Envelope>

Ответ

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
   <AgreedFromSourcedMoResponse xmlns="http://tempuri.org/">
     <AgreedFromSourcedMoResult xmlns:a="http://schemas.datacontract.org/2004/07/MQ.Dto.Result" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <a:IdMq>78151000000000</a:IdMq>
      <a:MqReferralStatus xmlns:b="http://schemas.datacontract.org/2004/07/MQ.Dto">
        <b:Code>2</b:Code>
        <b:System>urn:oid:1.2.643.2.69.1.1.1.50</b:System>
        <b:Version>1</b:Version>
      </a:MqReferralStatus>
      <a:MqReferralStatusDate>2015-11-16T14:18:06.9152188+03:00</a:MqReferralStatusDate>
     </AgreedFromSourcedMoResult>
   </AgreedFromSourcedMoResponse>
  </s:Body>
</s:Envelope>

Метод PatientDocumentIssue

Запрос

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:mq="http://schemas.datacontract.org/2004/07/MQ.Dto">
  <soapenv:Header/>
  <soapenv:Body>
   <tem:PatientDocumentIssue>
     <tem:credentials>
      <mq:Organization>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</mq:Organization>
      <mq:Token>YourGuid</mq:Token>
     </tem:credentials>
     <tem:referral>
      <mq:EventsInfo>
        <mq:Source>
         <mq:PlannedDate>2015-11-21T00:00:00.000</mq:PlannedDate>
         <mq:ReferralCreateDate>2015-09-14T00:00:00.000</mq:ReferralCreateDate>
         <mq:ReferralOutDate>2015-09-16T00:00:00.000</mq:ReferralOutDate>
        </mq:Source>
      </mq:EventsInfo>
      <mq:ReferralInfo>
        <mq:Date>2015-09-16T00:00:00.000</mq:Date>
        <mq:IdMq>78151000000000</mq:IdMq>
      </mq:ReferralInfo>
     </tem:referral>
   </tem:PatientDocumentIssue>
  </soapenv:Body>
</soapenv:Envelope>

Ответ

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
   <PatientDocumentIssueResponse xmlns="http://tempuri.org/">
     <PatientDocumentIssueResult xmlns:a="http://schemas.datacontract.org/2004/07/MQ.Dto.Result" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <a:IdMq>78151000000000</a:IdMq>
      <a:MqReferralStatus xmlns:b="http://schemas.datacontract.org/2004/07/MQ.Dto">
        <b:Code>3</b:Code>
        <b:System>urn:oid:1.2.643.2.69.1.1.1.50</b:System>
        <b:Version>1</b:Version>
      </a:MqReferralStatus>
      <a:MqReferralStatusDate>2015-11-16T14:16:37.071469</a:MqReferralStatusDate>
     </PatientDocumentIssueResult>
   </PatientDocumentIssueResponse>
  </s:Body>
</s:Envelope>

Метод SearchOne

Запрос

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:mq="http://schemas.datacontract.org/2004/07/MQ.Dto">
  <soapenv:Header/>
  <soapenv:Body>
   <tem:SearchOne>
     <tem:credentials>
      <mq:Organization>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</mq:Organization>
      <mq:Token>YourGuid</mq:Token>
     </tem:credentials>
     <tem:options>
      <mq:IdMq>78151000000000</mq:IdMq>
     </tem:options>
   </tem:SearchOne>
  </soapenv:Body>
</soapenv:Envelope>

Ответ

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
   <SearchOneResponse xmlns="http://tempuri.org/">
     <SearchOneResult xmlns:a="http://schemas.datacontract.org/2004/07/MQ.Dto.Result" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <a:IdMq>78151000000000</a:IdMq>
      <a:MqReferralStatus xmlns:b="http://schemas.datacontract.org/2004/07/MQ.Dto">
        <b:Code>3</b:Code>
        <b:System>urn:oid:1.2.643.2.69.1.1.1.50</b:System>
        <b:Version>1</b:Version>
      </a:MqReferralStatus>
      <a:MqReferralStatusDate>2015-11-02T19:03:51.497742</a:MqReferralStatusDate>
      <a:QLength>1</a:QLength>
      <a:Referral xmlns:b="http://schemas.datacontract.org/2004/07/MQ.Dto">
        <b:EventsInfo>
         <b:Cancellation i:nil="true"/>
         <b:Source>
           <b:IsReferralReviewed>true</b:IsReferralReviewed>
           <b:PlannedDate>2015-10-01T00:00:00</b:PlannedDate>
           <b:ReferralCreateDate>2015-09-14T00:00:00</b:ReferralCreateDate>
           <b:ReferralOutDate>2015-09-16T00:00:00</b:ReferralOutDate>
           <b:ReferralReviewDate>2015-09-15T00:00:00</b:ReferralReviewDate>
         </b:Source>
         <b:Target>
           <b:CaseAidForm i:nil="true"/>
           <b:CaseAidPlace i:nil="true"/>
           <b:CaseAidType i:nil="true"/>
           <b:CaseCloseDate i:nil="true"/>
           <b:CaseOpenDate i:nil="true"/>
           <b:IsReferralReviwed i:nil="true"/>
           <b:Lpu i:nil="true"/>
           <b:ReceptionAppointComment i:nil="true"/>
           <b:ReceptionAppointDate i:nil="true"/>
           <b:ReceptionAppointTime i:nil="true"/>
           <b:ReferralReviewDate i:nil="true"/>
           <b:RefferalCreatedDate i:nil="true"/>
         </b:Target>
        </b:EventsInfo>
        <b:Patient>
         <b:Addresses>
           <b:AddressDto>
            <b:AddressType>
              <b:Code>1</b:Code>
              <b:System>urn:oid:1.2.643.2.69.1.1.1.28</b:System>
              <b:Version>1</b:Version>
            </b:AddressType>
            <b:StringAddress>Авангардная ул., д.6, корп.2, кв.122</b:StringAddress>
           </b:AddressDto>
         </b:Addresses>
         <b:ContactDtos>
           <b:ContactDto>
            <b:ContactType>
              <b:Code>2</b:Code>
              <b:System>urn:oid:1.2.643.2.69.1.1.1.27</b:System>
              <b:Version>1</b:Version>
            </b:ContactType>
            <b:ContactValue>+7 (812) 648-21-21</b:ContactValue>
           </b:ContactDto>
         </b:ContactDtos>
         <b:Documents>
           <b:DocumentDto>
            <b:DocN>256198</b:DocN>
            <b:DocS>7810</b:DocS>
            <b:DocumentType>
              <b:Code>14</b:Code>
              <b:System>urn:oid:1.2.643.2.69.1.1.1.59</b:System>
              <b:Version>1</b:Version>
            </b:DocumentType>
            <b:ExpiredDate>2020-10-15T00:00:00</b:ExpiredDate>
            <b:IssuedDate>2010-10-15T00:00:00</b:IssuedDate>
            <b:Provider i:nil="true"/>
            <b:ProviderName>ОВД Петроградского района г. Санкт-Петербурга</b:ProviderName>
            <b:RegionCode i:nil="true"/>
           </b:DocumentDto>
           <b:DocumentDto>
            <b:DocN>7878370895000033</b:DocN>
            <b:DocS i:nil="true"/>
            <b:DocumentType>
              <b:Code>228</b:Code>
              <b:System>urn:oid:1.2.643.2.69.1.1.1.59</b:System>
              <b:Version>1</b:Version>
            </b:DocumentType>
            <b:ExpiredDate i:nil="true"/>
            <b:IssuedDate i:nil="true"/>
            <b:Provider>
              <b:Code>78008</b:Code>
              <b:System>urn:oid:1.2.643.5.1.13.2.1.1.635</b:System>
              <b:Version>1</b:Version>
            </b:Provider>
            <b:ProviderName>САНКТ-ПЕТЕРБУРГСКИЙ ФИЛИАЛ ОАО "РОСНО-МС"</b:ProviderName>
            <b:RegionCode>
              <b:Code>78</b:Code>
              <b:System>urn:oid:1.2.643.2.69.1.1.1.51</b:System>
              <b:Version>1</b:Version>
            </b:RegionCode>
           </b:DocumentDto>
         </b:Documents>
         <b:Jobs>
           <b:Job>
            <b:CompanyName>Транспортная компания ТрансГолд</b:CompanyName>
            <b:Position>Диспетчер</b:Position>
           </b:Job>
         </b:Jobs>
         <b:Person>
           <b:BirthDate>1973-08-05T00:00:00</b:BirthDate>
           <b:HumanName>
            <b:FamilyName>Крюкова</b:FamilyName>
            <b:GivenName>Зоя</b:GivenName>
            <b:MiddleName>Валериевна</b:MiddleName>
           </b:HumanName>
           <b:IdPatientMis>652</b:IdPatientMis>
           <b:IdPersonMis i:nil="true"/>
           <b:Sex>
            <b:Code>2</b:Code>
            <b:System>urn:oid:1.2.643.5.1.13.2.1.1.156</b:System>
            <b:Version>1</b:Version>
           </b:Sex>
         </b:Person>
         <b:Privileges>
           <b:Privilege>
            <b:EndDate>2025-08-05T00:00:00</b:EndDate>
            <b:PrivilegeType>
              <b:Code>81</b:Code>
              <b:System>urn:oid:1.2.643.2.69.1.1.1.7</b:System>
              <b:Version>1</b:Version>
            </b:PrivilegeType>
            <b:StartDate>2014-08-05T00:00:00</b:StartDate>
           </b:Privilege>
         </b:Privileges>
        </b:Patient>
        <b:ReferralInfo>
         <b:Cancellation i:nil="true"/>
         <b:Comment>На консультацию к специалисту</b:Comment>
         <b:Date>2015-09-16T00:00:00</b:Date>
         <b:IdMq>78151000000000</b:IdMq>
         <b:IdTfoms> IdTfoms </b:IdTfoms>
         <b:MqReferralStatus>
           <b:Code>3</b:Code>
           <b:System>urn:oid:1.2.643.2.69.1.1.1.50</b:System>
           <b:Version>1</b:Version>
         </b:MqReferralStatus>
         <b:Priority>В плановом порядке</b:Priority>
         <b:ProfileMedService>
           <b:Code>21</b:Code>
           <b:System>urn:oid:1.2.643.2.69.1.1.1.56</b:System>
           <b:Version>1</b:Version>
         </b:ProfileMedService>
         <b:Reason>Для уточнения диагноза</b:Reason>
         <b:ReferralType>
           <b:Code>4</b:Code>
           <b:System>urn:oid:1.2.643.2.69.1.1.1.55</b:System>
           <b:Version>1</b:Version>
         </b:ReferralType>
        </b:ReferralInfo>
        <b:ReferralSurvey>
         <b:Additional>
           <b:AllergyIodine i:nil="true"/>
           <b:Height i:nil="true"/>
           <b:Weight i:nil="true"/>
           <b:ExtraData xmlns:c="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
            <c:KeyValueOfstringstring>
              <c:Key>AddProff</c:Key>
              <c:Value>да</c:Value>
            </c:KeyValueOfstringstring>
            <c:KeyValueOfstringstring>
              <c:Key>AddCatComp</c:Key>
              <c:Value>глаукомой</c:Value>
            </c:KeyValueOfstringstring>
            <c:KeyValueOfstringstring>
              <c:Key>RYIntPres</c:Key>
              <c:Value>20</c:Value>
            </c:KeyValueOfstringstring>
            <c:KeyValueOfstringstring>
              <c:Key>RYOD</c:Key>
              <c:Value>0.3</c:Value>
            </c:KeyValueOfstringstring>
            <c:KeyValueOfstringstring>
              <c:Key>RYsph</c:Key>
              <c:Value>2</c:Value>
            </c:KeyValueOfstringstring>
            <c:KeyValueOfstringstring>
              <c:Key>RYcyl</c:Key>
              <c:Value>-2.5</c:Value>
            </c:KeyValueOfstringstring>
            <c:KeyValueOfstringstring>
              <c:Key>RYDax</c:Key>
              <c:Value>175</c:Value>
            </c:KeyValueOfstringstring>
            <c:KeyValueOfstringstring>
              <c:Key>RYeql</c:Key>
              <c:Value>1</c:Value>
            </c:KeyValueOfstringstring>
            <c:KeyValueOfstringstring>
              <c:Key>LYIntPres</c:Key>
              <c:Value>20</c:Value>
            </c:KeyValueOfstringstring>
            <c:KeyValueOfstringstring>
              <c:Key>LYOS</c:Key>
              <c:Value>0.07</c:Value>
            </c:KeyValueOfstringstring>
            <c:KeyValueOfstringstring>
              <c:Key>LYsph</c:Key>
              <c:Value>-2.75</c:Value>
            </c:KeyValueOfstringstring>
            <c:KeyValueOfstringstring>
              <c:Key>LYcyl</c:Key>
              <c:Value>-3</c:Value>
            </c:KeyValueOfstringstring>
            <c:KeyValueOfstringstring>
              <c:Key>LYDax</c:Key>
              <c:Value>20</c:Value>
            </c:KeyValueOfstringstring>
            <c:KeyValueOfstringstring>
              <c:Key>LYeql</c:Key>
              <c:Value>0.4</c:Value>
            </c:KeyValueOfstringstring>
           </b:ExtraData>
         </b:Additional>
         <b:Comment i:nil="true"/>
         <b:SurveyOrgan i:nil="true"/>
         <b:SurveyType i:nil="true"/>
        </b:ReferralSurvey>
        <b:Source>
         <b:Doctors>
           <b:Doctor>
            <b:ContactDtos>
              <b:ContactDto>
               <b:ContactType>
                 <b:Code>2</b:Code>
                 <b:System>urn:oid:1.2.643.2.69.1.1.1.27</b:System>
                 <b:Version>1</b:Version>
               </b:ContactType>
               <b:ContactValue>+7 (812) 309-86-09</b:ContactValue>
              </b:ContactDto>
            </b:ContactDtos>
            <b:Lpu>
              <b:Code>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</b:Code>
              <b:System>urn:oid:1.2.643.2.69.1.1.1.64</b:System>
              <b:Version>1</b:Version>
            </b:Lpu>
            <b:Person>
              <b:BirthDate i:nil="true"/>
              <b:HumanName>
               <b:FamilyName>Буров</b:FamilyName>
               <b:GivenName>Артём</b:GivenName>
               <b:MiddleName>Тимофеевич</b:MiddleName>
              </b:HumanName>
              <b:IdPatientMis i:nil="true"/>
              <b:IdPersonMis>54</b:IdPersonMis>
              <b:Sex>
               <b:Code>1</b:Code>
               <b:System>urn:oid:1.2.643.5.1.13.2.1.1.156</b:System>
               <b:Version>1</b:Version>
              </b:Sex>
            </b:Person>
            <b:Position>
              <b:Code>73</b:Code>
              <b:System>urn:oid:1.2.643.5.1.13.2.1.1.607</b:System>
              <b:Version>1</b:Version>
            </b:Position>
            <b:Role>
              <b:Code>1</b:Code>
              <b:System>urn:oid:1.2.643.2.69.1.1.1.66</b:System>
              <b:Version>1</b:Version>
            </b:Role>
            <b:Speciality>
              <b:Code>27</b:Code>
              <b:System>urn:oid:1.2.643.5.1.13.2.1.1.181</b:System>
              <b:Version>1</b:Version>
            </b:Speciality>
           </b:Doctor>
         </b:Doctors>
         <b:IdCaseMis>245</b:IdCaseMis>
         <b:IdReferralMis>247</b:IdReferralMis>
         <b:Lpu>
           <b:Code>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</b:Code>
           <b:System>urn:oid:1.2.643.2.69.1.1.1.64</b:System>
           <b:Version>1</b:Version>
         </b:Lpu>
         <b:MainDiagnosis>
           <b:MainDiagnosis>
            <b:ComplicationDiagnosis>
              <b:DiagnosisInfo>
               <b:Comment>Дополнительный</b:Comment>
               <b:DiagnosedDate>2015-08-12T00:00:00</b:DiagnosedDate>
               <b:DiagnosisType>
                 <b:Code>2</b:Code>
                 <b:System>urn:oid:1.2.643.2.69.1.1.1.26</b:System>
                 <b:Version>1</b:Version>
               </b:DiagnosisType>
               <b:MkbCode>
                 <b:Code>E14</b:Code>
                 <b:System>urn:oid:1.2.643.2.69.1.1.1.2</b:System>
                 <b:Version>1</b:Version>
               </b:MkbCode>
              </b:DiagnosisInfo>
            </b:ComplicationDiagnosis>
            <b:DiagnosisInfo>
              <b:Comment>Предварительный</b:Comment>
              <b:DiagnosedDate>2015-08-12T00:00:00</b:DiagnosedDate>
              <b:DiagnosisType>
               <b:Code>1</b:Code>
               <b:System>urn:oid:1.2.643.2.69.1.1.1.26</b:System>
               <b:Version>1</b:Version>
              </b:DiagnosisType>
              <b:MkbCode>
               <b:Code>D09.9</b:Code>
               <b:System>urn:oid:1.2.643.2.69.1.1.1.2</b:System>
               <b:Version>1</b:Version>
              </b:MkbCode>
            </b:DiagnosisInfo>
           </b:MainDiagnosis>
         </b:MainDiagnosis>
        </b:Source>
        <b:Target>
         <b:Doctors/>
         <b:IdCaseMis>22</b:IdCaseMis>
         <b:IsReferralReviewed i:nil="true"/>
         <b:Lpu>
           <b:Code>e23746d3-21c0-4107-a229-9d47ca166760</b:Code>
           <b:System>urn:oid:1.2.643.2.69.1.1.1.64</b:System>
           <b:Version>1</b:Version>
         </b:Lpu>
         <b:MainDiagnosis/>
         <b:ReceptionAppointComment i:nil="true"/>
         <b:ReceptionAppointDate i:nil="true"/>
         <b:ReceptionAppointTime i:nil="true"/>
         <b:ReferralReviewDate i:nil="true"/>
        </b:Target>
      </a:Referral>
     </SearchOneResult>
   </SearchOneResponse>
  </s:Body>
</s:Envelope>

Метод SearchMany

Запрос

Поиск направлений по целевой МО

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:mq="http://schemas.datacontract.org/2004/07/MQ.Dto">
  <soapenv:Header/>
  <soapenv:Body>
   <tem:SearchMany>
     <tem:credentials>
      <mq:Organization>e23746d3-21c0-4107-a229-9d47ca166760</mq:Organization>
      <mq:Token>YourGuid</mq:Token>
     </tem:credentials>
     <tem:options>
      <mq:Target>
        <mq:Lpu>
         <mq:Code>e23746d3-21c0-4107-a229-9d47ca166760</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
         <mq:Version>1</mq:Version>
        </mq:Lpu>
      </mq:Target>
     </tem:options>
   </tem:SearchMany>
  </soapenv:Body>
</soapenv:Envelope>

Поиск направлений по пациенту

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:mq="http://schemas.datacontract.org/2004/07/MQ.Dto">
   <soapenv:Header/>
   <soapenv:Body>
      <tem:SearchMany>
         <tem:credentials>
            <mq:Organization>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</mq:Organization>
            <mq:Token>YourGuid</mq:Token>
         </tem:credentials>
         <tem:options>
            <mq:Patient>
               <mq:Person>
                  <mq:HumanName>
                     <mq:FamilyName>Павлова</mq:FamilyName>
                     <mq:GivenName>Татьяна</mq:GivenName>
                  </mq:HumanName>
               </mq:Person>
            </mq:Patient>
         </tem:options>
      </tem:SearchMany>
   </soapenv:Body>
</soapenv:Envelope>

Ответ

Направлений по параметрам не найдено

<s:Envelope>
 <s:Body>
  <SearchManyResponse>
   <SearchManyResult>
    <a:IdMq i:nil="true" />
    <a:MqReferralStatus i:nil="true" />
    <a:MqReferralStatusDate i:nil="true" />
    <a:QLength>0</a:QLength>
    <a:Referrals i:nil="true" />
   </SearchManyResult>
  </SearchManyResponse>
 </s:Body>
</s:Envelope>

Направления по параметрам найдены

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
   <SearchManyResponse xmlns="http://tempuri.org/">
     <SearchManyResult xmlns:a="http://schemas.datacontract.org/2004/07/MQ.Dto.Result" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <a:IdMq i:nil="true"/>
      <a:MqReferralStatus i:nil="true" xmlns:b="http://schemas.datacontract.org/2004/07/MQ.Dto"/>
      <a:MqReferralStatusDate i:nil="true"/>
      <a:QLength>2</a:QLength>
      <a:Referrals xmlns:b="http://schemas.datacontract.org/2004/07/MQ.Dto">
        <b:Referral>
         <b:EventsInfo>
           <b:Cancellation i:nil="true"/>
           <b:Source>
            <b:IsReferralReviewed>true</b:IsReferralReviewed>
            <b:PlannedDate i:nil="true"/>
            <b:ReferralCreateDate>2015-09-23T00:00:00</b:ReferralCreateDate>
            <b:ReferralOutDate>2015-09-23T00:00:00</b:ReferralOutDate>
            <b:ReferralReviewDate>2015-09-23T00:00:00</b:ReferralReviewDate>
           </b:Source>
           <b:Target>
            <b:CaseAidForm i:nil="true"/>
            <b:CaseAidPlace i:nil="true"/>
            <b:CaseAidType i:nil="true"/>
            <b:CaseCloseDate i:nil="true"/>
            <b:CaseOpenDate i:nil="true"/>
            <b:IsReferralReviwed i:nil="true"/>
            <b:Lpu i:nil="true"/>
            <b:ReceptionAppointComment i:nil="true"/>
            <b:ReceptionAppointDate i:nil="true"/>
            <b:ReceptionAppointTime i:nil="true"/>
            <b:ReferralReviewDate i:nil="true"/>
            <b:RefferalCreatedDate i:nil="true"/>
           </b:Target>
         </b:EventsInfo>
         <b:Patient>
           <b:Addresses>
            <b:AddressDto>
              <b:AddressType>
               <b:Code>1</b:Code>
               <b:System>urn:oid:1.2.643.2.69.1.1.1.28</b:System>
               <b:Version>1</b:Version>
              </b:AddressType>
              <b:StringAddress>г.Колпино Машиностроителей ул. д. 3 кв. 11</b:StringAddress>
            </b:AddressDto>
            <b:AddressDto>
              <b:AddressType>
               <b:Code>2</b:Code>
               <b:System>urn:oid:1.2.643.2.69.1.1.1.28</b:System>
               <b:Version>1</b:Version>
              </b:AddressType>
              <b:StringAddress>Санкт-Петербург г, Советская 5-я ул, д.10, кв.24</b:StringAddress>
            </b:AddressDto>
           </b:Addresses>
           <b:ContactDtos/>
           <b:Documents>
            <b:DocumentDto>
              <b:DocN>7848840874000052</b:DocN>
              <b:DocS/>
              <b:DocumentType>
               <b:Code>228</b:Code>
               <b:System>urn:oid:1.2.643.2.69.1.1.1.59</b:System>
               <b:Version>1</b:Version>
              </b:DocumentType>
              <b:ExpiredDate i:nil="true"/>
              <b:IssuedDate i:nil="true"/>
              <b:Provider>
               <b:Code>78006</b:Code>
               <b:System>urn:oid:1.2.643.5.1.13.2.1.1.635</b:System>
               <b:Version>1</b:Version>
              </b:Provider>
              <b:ProviderName>Санкт-Петербургский филиал ООО "СМК РЕСО-Мед"</b:ProviderName>
              <b:RegionCode i:nil="true"/>
            </b:DocumentDto>
            <b:DocumentDto>
              <b:DocN>00512029378</b:DocN>
              <b:DocS i:nil="true"/>
              <b:DocumentType>
               <b:Code>223</b:Code>
               <b:System>urn:oid:1.2.643.2.69.1.1.1.59</b:System>
               <b:Version>1</b:Version>
              </b:DocumentType>
              <b:ExpiredDate i:nil="true"/>
              <b:IssuedDate i:nil="true"/>
              <b:Provider i:nil="true"/>
              <b:ProviderName>ПФР</b:ProviderName>
              <b:RegionCode i:nil="true"/>
            </b:DocumentDto>
           </b:Documents>
           <b:Jobs/>
           <b:Person>
            <b:BirthDate>1951-11-25T00:00:00</b:BirthDate>
            <b:HumanName>
              <b:FamilyName>Павлова</b:FamilyName>
              <b:GivenName>Татьяна</b:GivenName>
              <b:MiddleName>Николаевна</b:MiddleName>
            </b:HumanName>
            <b:IdPatientMis>370805</b:IdPatientMis>
            <b:IdPersonMis i:nil="true"/>
            <b:Sex>
              <b:Code>2</b:Code>
              <b:System>urn:oid:1.2.643.5.1.13.2.1.1.156</b:System>
              <b:Version>1</b:Version>
            </b:Sex>
           </b:Person>
           <b:Privileges/>
         </b:Patient>
         <b:ReferralInfo>
           <b:Cancellation i:nil="true"/>
           <b:Comment i:nil="true"/>
           <b:Date>2015-09-23T00:00:00</b:Date>
           <b:IdMq>78151000000000</b:IdMq>
           <b:MqReferralStatus>
            <b:Code>3</b:Code>
            <b:System>urn:oid:1.2.643.2.69.1.1.1.50</b:System>
            <b:Version>1</b:Version>
           </b:MqReferralStatus>
           <b:Priority>планово</b:Priority>
           <b:ProfileMedService>
            <b:Code>6</b:Code>
            <b:System>urn:oid:1.2.643.2.69.1.1.1.56</b:System>
            <b:Version>1</b:Version>
           </b:ProfileMedService>
           <b:Reason>обострение</b:Reason>
           <b:ReferralType>
            <b:Code>1</b:Code>
            <b:System>urn:oid:1.2.643.2.69.1.1.1.55</b:System>
            <b:Version>1</b:Version>
           </b:ReferralType>
         </b:ReferralInfo>
         <b:ReferralSurvey>
           <b:Additional>
            <b:AllergyIodine i:nil="true"/>
            <b:Height i:nil="true"/>
            <b:Weight i:nil="true"/>
            <b:ExtraData xmlns:c="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/>
           </b:Additional>
           <b:Comment i:nil="true"/>
           <b:SurveyOrgan i:nil="true"/>
           <b:SurveyType i:nil="true"/>
         </b:ReferralSurvey>
         <b:Source>
           <b:Doctors>
            <b:Doctor>
              <b:ContactDtos/>
              <b:Lpu>
               <b:Code>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</b:Code>
               <b:System>urn:oid:1.2.643.2.69.1.1.1.64</b:System>
               <b:Version>1</b:Version>
              </b:Lpu>
              <b:Person>
               <b:BirthDate i:nil="true"/>
               <b:HumanName>
                 <b:FamilyName>Алиева</b:FamilyName>
                 <b:GivenName>Надежда</b:GivenName>
                 <b:MiddleName>Александровна</b:MiddleName>
               </b:HumanName>
               <b:IdPatientMis i:nil="true"/>
               <b:IdPersonMis>11</b:IdPersonMis>
               <b:Sex>
                 <b:Code>3</b:Code>
                 <b:System>urn:oid:1.2.643.5.1.13.2.1.1.156</b:System>
                 <b:Version>1</b:Version>
               </b:Sex>
              </b:Person>
              <b:Position>
               <b:Code>37</b:Code>
               <b:System>urn:oid:1.2.643.5.1.13.2.1.1.607</b:System>
               <b:Version>1</b:Version>
              </b:Position>
              <b:Role>
               <b:Code/>
               <b:System>urn:oid:1.2.643.2.69.1.1.1.66</b:System>
               <b:Version>1</b:Version>
              </b:Role>
              <b:Speciality>
               <b:Code>14</b:Code>
               <b:System>urn:oid:1.2.643.5.1.13.2.1.1.181</b:System>
               <b:Version>1</b:Version>
              </b:Speciality>
            </b:Doctor>
            <b:Doctor>
              <b:ContactDtos/>
              <b:Lpu>
               <b:Code>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</b:Code>
               <b:System>urn:oid:1.2.643.2.69.1.1.1.64</b:System>
               <b:Version>1</b:Version>
              </b:Lpu>
              <b:Person>
               <b:BirthDate>2015-04-01T00:00:00</b:BirthDate>
               <b:HumanName>
                 <b:FamilyName>Парфененкова</b:FamilyName>
                 <b:GivenName>Анастасия</b:GivenName>
                 <b:MiddleName>Александровна</b:MiddleName>
               </b:HumanName>
               <b:IdPatientMis i:nil="true"/>
               <b:IdPersonMis>411</b:IdPersonMis>
               <b:Sex>
                 <b:Code>3</b:Code>
                 <b:System>urn:oid:1.2.643.5.1.13.2.1.1.156</b:System>
                 <b:Version>1</b:Version>
               </b:Sex>
              </b:Person>
              <b:Position>
               <b:Code>92</b:Code>
               <b:System>urn:oid:1.2.643.5.1.13.2.1.1.607</b:System>
               <b:Version>1</b:Version>
              </b:Position>
              <b:Role>
               <b:Code>PoliclinicDoctor</b:Code>
               <b:System>urn:oid:1.2.643.2.69.1.1.1.66</b:System>
               <b:Version>1</b:Version>
              </b:Role>
              <b:Speciality>
               <b:Code>31</b:Code>
               <b:System>urn:oid:1.2.643.5.1.13.2.1.1.181</b:System>
               <b:Version>1</b:Version>
              </b:Speciality>
            </b:Doctor>
           </b:Doctors>
           <b:IdCaseMis>2228408</b:IdCaseMis>
           <b:IdReferralMis>6944/2015</b:IdReferralMis>
           <b:Lpu>
            <b:Code>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</b:Code>
            <b:System>urn:oid:1.2.643.2.69.1.1.1.64</b:System>
            <b:Version>1</b:Version>
           </b:Lpu>
           <b:MainDiagnosis>
            <b:MainDiagnosis>
              <b:ComplicationDiagnosis/>
              <b:DiagnosisInfo>
               <b:Comment i:nil="true"/>
               <b:DiagnosedDate>2015-09-23T00:00:00</b:DiagnosedDate>
               <b:DiagnosisType>
                 <b:Code>1</b:Code>
                 <b:System>urn:oid:1.2.643.2.69.1.1.1.26</b:System>
                 <b:Version>1</b:Version>
               </b:DiagnosisType>
               <b:MkbCode>
                 <b:Code>E04.2</b:Code>
                 <b:System>urn:oid:1.2.643.2.69.1.1.1.2</b:System>
                 <b:Version>2015</b:Version>
               </b:MkbCode>
              </b:DiagnosisInfo>
            </b:MainDiagnosis>
           </b:MainDiagnosis>
         </b:Source>
         <b:Target>
           <b:Doctors/>
           <b:IdCaseMis i:nil="true"/>
           <b:IsReferralReviewed i:nil="true"/>
           <b:Lpu>
            <b:Code>e23746d3-21c0-4107-a229-9d47ca166760</b:Code>
            <b:System>urn:oid:1.2.643.2.69.1.1.1.64</b:System>
            <b:Version>1</b:Version>
           </b:Lpu>
           <b:MainDiagnosis/>
           <b:ReceptionAppointComment i:nil="true"/>
           <b:ReceptionAppointDate i:nil="true"/>
           <b:ReceptionAppointTime i:nil="true"/>
           <b:ReferralReviewDate i:nil="true"/>
         </b:Target>
        </b:Referral>
        <b:Referral>
         <b:EventsInfo>
           <b:Cancellation i:nil="true"/>
           <b:Source>
            <b:IsReferralReviewed>true</b:IsReferralReviewed>
            <b:PlannedDate i:nil="true"/>
            <b:ReferralCreateDate>2015-10-29T00:00:00</b:ReferralCreateDate>
            <b:ReferralOutDate>2015-10-29T00:00:00</b:ReferralOutDate>
            <b:ReferralReviewDate>2015-10-29T00:00:00</b:ReferralReviewDate>
           </b:Source>
           <b:Target>
            <b:CaseAidForm i:nil="true"/>
            <b:CaseAidPlace i:nil="true"/>
            <b:CaseAidType i:nil="true"/>
            <b:CaseCloseDate i:nil="true"/>
            <b:CaseOpenDate i:nil="true"/>
            <b:IsReferralReviwed i:nil="true"/>
            <b:Lpu i:nil="true"/>
            <b:ReceptionAppointComment i:nil="true"/>
            <b:ReceptionAppointDate i:nil="true"/>
            <b:ReceptionAppointTime i:nil="true"/>
            <b:ReferralReviewDate i:nil="true"/>
            <b:RefferalCreatedDate i:nil="true"/>
           </b:Target>
         </b:EventsInfo>
         <b:Patient>
           <b:Addresses>
            <b:AddressDto>
              <b:AddressType>
               <b:Code>1</b:Code>
               <b:System>urn:oid:1.2.643.2.69.1.1.1.28</b:System>
               <b:Version>1</b:Version>
              </b:AddressType>
              <b:StringAddress>Санкт-Петербург г, Радищева ул, д.37, кв.11</b:StringAddress>
            </b:AddressDto>
            <b:AddressDto>
              <b:AddressType>
               <b:Code>2</b:Code>
               <b:System>urn:oid:1.2.643.2.69.1.1.1.28</b:System>
               <b:Version>1</b:Version>
              </b:AddressType>
              <b:StringAddress>Санкт-Петербург г, Радищева ул, д.37, кв.11</b:StringAddress>
            </b:AddressDto>
           </b:Addresses>
           <b:ContactDtos/>
           <b:Documents>
            <b:DocumentDto>
              <b:DocN>7869350886000565</b:DocN>
              <b:DocS/>
              <b:DocumentType>
               <b:Code>228</b:Code>
               <b:System>urn:oid:1.2.643.2.69.1.1.1.59</b:System>
               <b:Version>1</b:Version>
              </b:DocumentType>
              <b:ExpiredDate i:nil="true"/>
              <b:IssuedDate i:nil="true"/>
              <b:Provider>
               <b:Code>78008</b:Code>
               <b:System>urn:oid:1.2.643.5.1.13.2.1.1.635</b:System>
               <b:Version>1</b:Version>
              </b:Provider>
              <b:ProviderName>Санкт-Петербургский филиал ОАО "РОСНО-МС"</b:ProviderName>
              <b:RegionCode i:nil="true"/>
            </b:DocumentDto>
           </b:Documents>
           <b:Jobs/>
           <b:Person>
            <b:BirthDate>1946-10-13T00:00:00</b:BirthDate>
            <b:HumanName>
              <b:FamilyName>Павлова</b:FamilyName>
              <b:GivenName>Татьяна</b:GivenName>
              <b:MiddleName>Александровна</b:MiddleName>
            </b:HumanName>
            <b:IdPatientMis>52233</b:IdPatientMis>
            <b:IdPersonMis i:nil="true"/>
            <b:Sex>
              <b:Code>2</b:Code>
              <b:System>urn:oid:1.2.643.5.1.13.2.1.1.156</b:System>
              <b:Version>1</b:Version>
            </b:Sex>
           </b:Person>
           <b:Privileges/>
         </b:Patient>
         <b:ReferralInfo>
           <b:Cancellation i:nil="true"/>
           <b:Comment i:nil="true"/>
           <b:Date>2015-10-29T00:00:00</b:Date>
           <b:IdMq>78151000000000</b:IdMq>
           <b:MqReferralStatus>
            <b:Code>3</b:Code>
            <b:System>urn:oid:1.2.643.2.69.1.1.1.50</b:System>
            <b:Version>1</b:Version>
           </b:MqReferralStatus>
           <b:Priority>планово</b:Priority>
           <b:ProfileMedService>
            <b:Code>81</b:Code>
            <b:System>urn:oid:1.2.643.2.69.1.1.1.56</b:System>
            <b:Version>1</b:Version>
           </b:ProfileMedService>
           <b:Reason>оперативное лечение</b:Reason>
           <b:ReferralType>
            <b:Code>1</b:Code>
            <b:System>urn:oid:1.2.643.2.69.1.1.1.55</b:System>
            <b:Version>1</b:Version>
           </b:ReferralType>
         </b:ReferralInfo>
         <b:ReferralSurvey>
           <b:Additional>
            <b:AllergyIodine i:nil="true"/>
            <b:Height i:nil="true"/>
            <b:Weight i:nil="true"/>
            <b:ExtraData xmlns:c="http://schemas.microsoft.com/2003/10/Serialization/Arrays"/>
           </b:Additional>
           <b:Comment i:nil="true"/>
           <b:SurveyOrgan i:nil="true"/>
           <b:SurveyType i:nil="true"/>
         </b:ReferralSurvey>
         <b:Source>
           <b:Doctors>
            <b:Doctor>
              <b:ContactDtos/>
              <b:Lpu>
               <b:Code>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</b:Code>
               <b:System>urn:oid:1.2.643.2.69.1.1.1.64</b:System>
               <b:Version>1</b:Version>
              </b:Lpu>
              <b:Person>
               <b:BirthDate i:nil="true"/>
               <b:HumanName>
                 <b:FamilyName>Коробкина</b:FamilyName>
                 <b:GivenName>Валентина</b:GivenName>
                 <b:MiddleName>Марковна</b:MiddleName>
               </b:HumanName>
               <b:IdPatientMis i:nil="true"/>
               <b:IdPersonMis>4</b:IdPersonMis>
               <b:Sex>
                 <b:Code>3</b:Code>
                 <b:System>urn:oid:1.2.643.5.1.13.2.1.1.156</b:System>
                 <b:Version>1</b:Version>
               </b:Sex>
              </b:Person>
              <b:Position>
               <b:Code>91</b:Code>
               <b:System>urn:oid:1.2.643.5.1.13.2.1.1.607</b:System>
               <b:Version>1</b:Version>
              </b:Position>
              <b:Role>
               <b:Code>PoliclinicDoctor</b:Code>
               <b:System>urn:oid:1.2.643.2.69.1.1.1.66</b:System>
               <b:Version>1</b:Version>
              </b:Role>
              <b:Speciality>
               <b:Code>30</b:Code>
               <b:System>urn:oid:1.2.643.5.1.13.2.1.1.181</b:System>
               <b:Version>1</b:Version>
              </b:Speciality>
            </b:Doctor>
            <b:Doctor>
              <b:ContactDtos/>
              <b:Lpu>
               <b:Code>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</b:Code>
               <b:System>urn:oid:1.2.643.2.69.1.1.1.64</b:System>
               <b:Version>1</b:Version>
              </b:Lpu>
              <b:Person>
               <b:BirthDate i:nil="true"/>
               <b:HumanName>
                 <b:FamilyName>Фадеева</b:FamilyName>
                 <b:GivenName>Анна</b:GivenName>
                 <b:MiddleName>Борисовна</b:MiddleName>
               </b:HumanName>
               <b:IdPatientMis i:nil="true"/>
               <b:IdPersonMis>19</b:IdPersonMis>
               <b:Sex>
                 <b:Code>3</b:Code>
                 <b:System>urn:oid:1.2.643.5.1.13.2.1.1.156</b:System>
                 <b:Version>1</b:Version>
               </b:Sex>
              </b:Person>
              <b:Position>
               <b:Code>74</b:Code>
               <b:System>urn:oid:1.2.643.5.1.13.2.1.1.607</b:System>
               <b:Version>1</b:Version>
              </b:Position>
              <b:Role>
               <b:Code/>
               <b:System>urn:oid:1.2.643.2.69.1.1.1.66</b:System>
               <b:Version>1</b:Version>
              </b:Role>
              <b:Speciality>
               <b:Code>27</b:Code>
               <b:System>urn:oid:1.2.643.5.1.13.2.1.1.181</b:System>
               <b:Version>1</b:Version>
              </b:Speciality>
            </b:Doctor>
           </b:Doctors>
           <b:IdCaseMis>3597064</b:IdCaseMis>
           <b:IdReferralMis>3477/2015</b:IdReferralMis>
           <b:Lpu>
            <b:Code>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</b:Code>
            <b:System>urn:oid:1.2.643.2.69.1.1.1.64</b:System>
            <b:Version>1</b:Version>
           </b:Lpu>
           <b:MainDiagnosis>
            <b:MainDiagnosis>
              <b:ComplicationDiagnosis/>
              <b:DiagnosisInfo>
               <b:Comment i:nil="true"/>
               <b:DiagnosedDate>2015-10-29T00:00:00</b:DiagnosedDate>
               <b:DiagnosisType>
                 <b:Code>1</b:Code>
                 <b:System>urn:oid:1.2.643.2.69.1.1.1.26</b:System>
                 <b:Version>1</b:Version>
               </b:DiagnosisType>
               <b:MkbCode>
                 <b:Code>K80.2</b:Code>
                 <b:System>urn:oid:1.2.643.2.69.1.1.1.2</b:System>
                 <b:Version>2015</b:Version>
               </b:MkbCode>
              </b:DiagnosisInfo>
            </b:MainDiagnosis>
           </b:MainDiagnosis>
         </b:Source>
         <b:Target>
           <b:Doctors/>
           <b:IdCaseMis i:nil="true"/>
           <b:IsReferralReviewed i:nil="true"/>
           <b:Lpu>
            <b:Code>e23746d3-21c0-4107-a229-9d47ca166760</b:Code>
            <b:System>urn:oid:1.2.643.2.69.1.1.1.64</b:System>
            <b:Version>1</b:Version>
           </b:Lpu>
           <b:MainDiagnosis/>
           <b:ReceptionAppointComment i:nil="true"/>
           <b:ReceptionAppointDate i:nil="true"/>
           <b:ReceptionAppointTime i:nil="true"/>
           <b:ReferralReviewDate i:nil="true"/>
         </b:Target>
        </b:Referral>
      </a:Referrals>
     </SearchManyResult>
   </SearchManyResponse>
  </s:Body>
</s:Envelope>

Метод UpdateFromTargetMo

Запрос

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:mq="http://schemas.datacontract.org/2004/07/MQ.Dto">
  <soapenv:Header/>
  <soapenv:Body>
   <tem:UpdateFromTargetMo>
     <tem:credentials>
      <mq:Organization>e23746d3-21c0-4107-a229-9d47ca166760</mq:Organization>
      <mq:Token>YourGuid</mq:Token>
     </tem:credentials>
     <tem:referral>
      <mq:EventsInfo>
        <mq:Target>
         <mq:CaseAidForm>
           <mq:Code>3</mq:Code>
           <mq:System>urn:oid:1.2.643.2.69.1.1.1.54</mq:System>
           <mq:Version>1</mq:Version>
         </mq:CaseAidForm>
         <mq:CaseAidPlace>
           <mq:Code>3</mq:Code>
           <mq:System>urn:oid:1.2.643.2.69.1.1.1.53</mq:System>
           <mq:Version>1</mq:Version>
         </mq:CaseAidPlace>
         <mq:CaseAidType>
           <mq:Code>2</mq:Code>
           <mq:System>urn:oid:1.2.643.2.69.1.1.1.52</mq:System>
           <mq:Version>1</mq:Version>
         </mq:CaseAidType>
         <mq:CaseCloseDate>2015-09-14T00:00:00.000</mq:CaseCloseDate>
         <mq:CaseOpenDate>2015-09-12T00:00:00.000</mq:CaseOpenDate>
         <mq:IsReferralReviwed>true</mq:IsReferralReviwed>
         <mq:ReceptionAppointComment>Кабинет МРТ №214, второй этаж главного корпуса</mq:ReceptionAppointComment>
         <mq:ReceptionAppointDate>2015-09-02T00:00:00.000</mq:ReceptionAppointDate>
         <mq:ReceptionAppointTime>любое время с 10 до 12, в порядке живой очереди</mq:ReceptionAppointTime>
         <mq:ReferralReviewDate>2015-09-12T00:00:00.000</mq:ReferralReviewDate>
        </mq:Target>
      </mq:EventsInfo>
      <mq:Patient>
        <mq:Addresses>
         <mq:AddressDto>
           <mq:AddressType>
            <mq:Code>1</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.28</mq:System>
            <mq:Version>1</mq:Version>
           </mq:AddressType>
           <mq:StringAddress>Авангардная ул., д.6, корп.2, кв.122</mq:StringAddress>
         </mq:AddressDto>
        </mq:Addresses>
        <mq:ContactDtos>
         <mq:ContactDto>
           <mq:ContactType>
            <mq:Code>2</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.27</mq:System>
            <mq:Version>1</mq:Version>
           </mq:ContactType>
           <mq:ContactValue>+7 (812) 258-41-51</mq:ContactValue>
         </mq:ContactDto>
        </mq:ContactDtos>
        <mq:Documents>
         <mq:DocumentDto>
           <mq:DocN>1104</mq:DocN>
           <mq:DocS>256412</mq:DocS>
           <mq:DocumentType>
            <mq:Code>1</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.59</mq:System>
            <mq:Version>1</mq:Version>
           </mq:DocumentType>
           <mq:ExpiredDate>2020-10-15T00:00:00.000</mq:ExpiredDate>
           <mq:IssuedDate>2010-10-15T00:00:00.000</mq:IssuedDate>
           <mq:ProviderName>ОВД Петроградского района г. Санкт-Петербурга</mq:ProviderName>
         </mq:DocumentDto>
         <mq:DocumentDto>
           <mq:DocN>056454</mq:DocN>
           <mq:DocS>5423657841</mq:DocS>
           <mq:DocumentType>
            <mq:Code>223</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.59</mq:System>
            <mq:Version>1</mq:Version>
           </mq:DocumentType>
           <mq:ExpiredDate>2016-06-15T00:00:00.000</mq:ExpiredDate>
           <mq:IssuedDate>2014-10-15T00:00:00.000</mq:IssuedDate>
           <mq:Provider>
            <mq:Code>78008</mq:Code>
            <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.635</mq:System>
            <mq:Version>1</mq:Version>
           </mq:Provider>
           <mq:ProviderName>САНКТ-ПЕТЕРБУРГСКИЙ ФИЛИАЛ ОАО "РОСНО-МС"</mq:ProviderName>
           <mq:RegionCode>
            <mq:Code>78</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.51</mq:System>
            <mq:Version>1</mq:Version>
           </mq:RegionCode>
         </mq:DocumentDto>
        </mq:Documents>
        <mq:Jobs>
         <mq:Job>
           <mq:CompanyName>Транспортная компания ТрансГолд</mq:CompanyName>
           <mq:Position>Старший диспетчер</mq:Position>
         </mq:Job>
        </mq:Jobs>
        <mq:Privileges>
         <mq:Privilege>
           <mq:EndDate>2025-08-05T00:00:00.000</mq:EndDate>
           <mq:PrivilegeType>
            <mq:Code>50</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.7</mq:System>
            <mq:Version>1</mq:Version>
           </mq:PrivilegeType>
           <mq:StartDate>2014-08-05T00:00:00.000</mq:StartDate>
         </mq:Privilege>
        </mq:Privileges>
      </mq:Patient>
      <mq:ReferralInfo>
        <mq:IdMq>78151000000000</mq:IdMq>
        <mq:ProfileMedService>
         <mq:Code>85</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.56</mq:System>
         <mq:Version>1</mq:Version>
        </mq:ProfileMedService>
      </mq:ReferralInfo>
      <mq:Target>
        <mq:Doctors>
         <mq:Doctor>
           <mq:ContactDtos>
            <mq:ContactDto>
              <mq:ContactType>
               <mq:Code>2</mq:Code>
               <mq:System>urn:oid:1.2.643.2.69.1.1.1.27</mq:System>
               <mq:Version>1</mq:Version>
              </mq:ContactType>
              <mq:ContactValue>+7 (812) 541-16-02</mq:ContactValue>
            </mq:ContactDto>
           </mq:ContactDtos>
           <mq:Lpu>
            <mq:Code>e23746d3-21c0-4107-a229-9d47ca166760</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
            <mq:Version>1</mq:Version>
           </mq:Lpu>
           <mq:Person>
            <mq:BirthDate>1983-12-07T00:00:00.000</mq:BirthDate>
            <mq:HumanName>
              <mq:FamilyName>Белоусов</mq:FamilyName>
              <mq:GivenName>Алексей</mq:GivenName>
              <mq:MiddleName>Ростиславович</mq:MiddleName>
            </mq:HumanName>
            <mq:IdPersonMis>21</mq:IdPersonMis>
            <mq:Sex>
              <mq:Code>1</mq:Code>
              <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.156</mq:System>
              <mq:Version>1</mq:Version>
            </mq:Sex>
           </mq:Person>
           <mq:Position>
            <mq:Code>262</mq:Code>
            <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.607</mq:System>
            <mq:Version>1</mq:Version>
           </mq:Position>
           <mq:Role>
            <mq:Code>4</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.66</mq:System>
            <mq:Version>1</mq:Version>
           </mq:Role>
           <mq:Speciality>
            <mq:Code>20</mq:Code>
            <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.181</mq:System>
            <mq:Version>1</mq:Version>
           </mq:Speciality>
         </mq:Doctor>
        </mq:Doctors>
        <mq:IdCaseMis>6547</mq:IdCaseMis>
        <mq:Lpu>
         <mq:Code>e23746d3-21c0-4107-a229-9d47ca166760</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
         <mq:Version>1</mq:Version>
        </mq:Lpu>
        <mq:MainDiagnosis>
         <mq:MainDiagnosis>
           <mq:DiagnosisInfo>
            <mq:Comment>Нуждается в подтверждении</mq:Comment>
            <mq:DiagnosedDate>2015-08-12T00:00:00.000</mq:DiagnosedDate>
            <mq:DiagnosisType>
              <mq:Code>1</mq:Code>
              <mq:System>urn:oid:1.2.643.2.69.1.1.1.26</mq:System>
              <mq:Version>1</mq:Version>
            </mq:DiagnosisType>
            <mq:MkbCode>
              <mq:Code>D09.9</mq:Code>
              <mq:System>urn:oid:1.2.643.2.69.1.1.1.2</mq:System>
              <mq:Version>1</mq:Version>
            </mq:MkbCode>
           </mq:DiagnosisInfo>
         </mq:MainDiagnosis>
        </mq:MainDiagnosis>
      </mq:Target>
     </tem:referral>
   </tem:UpdateFromTargetMo>
  </soapenv:Body>
</soapenv:Envelope>

Ответ

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
   <UpdateFromTargetMoResponse xmlns="http://tempuri.org/">
     <UpdateFromTargetMoResult xmlns:a="http://schemas.datacontract.org/2004/07/MQ.Dto.Result" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <a:IdMq>78151000000000</a:IdMq>
      <a:MqReferralStatus xmlns:b="http://schemas.datacontract.org/2004/07/MQ.Dto">
        <b:Code>7</b:Code>
        <b:System>urn:oid:1.2.643.2.69.1.1.1.50</b:System>
        <b:Version>1</b:Version>
      </a:MqReferralStatus>
      <a:MqReferralStatusDate>2015-11-02T16:55:43.86493</a:MqReferralStatusDate>
     </UpdateFromTargetMoResult>
   </UpdateFromTargetMoResponse>
  </s:Body>
</s:Envelope>

Метод AgreedFromTargetMo

Запрос

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:mq="http://schemas.datacontract.org/2004/07/MQ.Dto">
  <soapenv:Header/>
  <soapenv:Body>
   <tem:AgreedFromTargetMo>
     <tem:credentials>
      <mq:Organization>e23746d3-21c0-4107-a229-9d47ca166760</mq:Organization>
      <mq:Token>YourGuid</mq:Token>
     </tem:credentials>
     <tem:referral>
      <mq:EventsInfo>
        <mq:Target>
         <mq:IsReferralReviwed>true</mq:IsReferralReviwed>
         <mq:ReceptionAppointComment>Кабинет МРТ №214, второй этаж главного корпуса</mq:ReceptionAppointComment>
         <mq:ReceptionAppointDate>2015-10-14T00:00:00.000</mq:ReceptionAppointDate>
         <mq:ReceptionAppointTime>любое время с 10 до 12, в порядке живой очереди</mq:ReceptionAppointTime>
         <mq:ReferralReviewDate>2015-10-12T00:00:00.000</mq:ReferralReviewDate>
        </mq:Target>
      </mq:EventsInfo>
      <mq:ReferralInfo>
        <mq:IdMq>78151000000000</mq:IdMq>
      </mq:ReferralInfo>
     </tem:referral>
   </tem:AgreedFromTargetMo>
  </soapenv:Body>
</soapenv:Envelope>

Ответ

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
   <AgreedFromTargetMoResponse xmlns="http://tempuri.org/">
     <AgreedFromTargetMoResult xmlns:a="http://schemas.datacontract.org/2004/07/MQ.Dto.Result" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <a:IdMq>78151000000000</a:IdMq>
      <a:MqReferralStatus xmlns:b="http://schemas.datacontract.org/2004/07/MQ.Dto">
        <b:Code>4</b:Code>
        <b:System>urn:oid:1.2.643.2.69.1.1.1.50</b:System>
        <b:Version>1</b:Version>
      </a:MqReferralStatus>
      <a:MqReferralStatusDate>2015-11-16T14:17:37.071469</a:MqReferralStatusDate>
     </AgreedFromTargetMoResult>
   </AgreedFromTargetMoResponse>
  </s:Body>
</s:Envelope>

Метод ChangePlannedResource

Запрос

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:mq="http://schemas.datacontract.org/2004/07/MQ.Dto">
  <soapenv:Header/>
  <soapenv:Body>
   <tem:ChangePlannedResource>
     <tem:credentials>
      <mq:Organization>e23746d3-21c0-4107-a229-9d47ca166760</mq:Organization>
      <mq:Token>YourGuid</mq:Token>
     </tem:credentials>
     <tem:referral>
      <mq:EventsInfo>
        <mq:Target>
         <mq:ReceptionAppointComment>Кабинет МРТ №214, второй этаж главного корпуса</mq:ReceptionAppointComment>
         <mq:ReceptionAppointDate>2015-11-02T00:00:00.000</mq:ReceptionAppointDate>
         <mq:ReceptionAppointTime>любое время с 10 до 12, в порядке живой очереди</mq:ReceptionAppointTime>
        </mq:Target>
      </mq:EventsInfo>
      <mq:ReferralInfo>
        <mq:IdMq>78151000000000</mq:IdMq>
      </mq:ReferralInfo>
     </tem:referral>
   </tem:ChangePlannedResource>
  </soapenv:Body>
</soapenv:Envelope>

Ответ

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
   <ChangePlannedResourceResponse xmlns="http://tempuri.org/">
     <ChangePlannedResourceResult xmlns:a="http://schemas.datacontract.org/2004/07/MQ.Dto.Result" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <a:IdMq>78151000000000</a:IdMq>
      <a:MqReferralStatus xmlns:b="http://schemas.datacontract.org/2004/07/MQ.Dto">
        <b:Code>5</b:Code>
        <b:System>urn:oid:1.2.643.2.69.1.1.1.50</b:System>
        <b:Version>1</b:Version>
      </a:MqReferralStatus>
      <a:MqReferralStatusDate>2015-11-16T15:06:06.813656</a:MqReferralStatusDate>
     </ChangePlannedResourceResult>
   </ChangePlannedResourceResponse>
  </s:Body>
</s:Envelope>

Метод HealthCareStart

Запрос

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:mq="http://schemas.datacontract.org/2004/07/MQ.Dto">
  <soapenv:Header/>
  <soapenv:Body>
   <tem:HealthCareStart>
     <tem:credentials>
      <mq:Organization>e23746d3-21c0-4107-a229-9d47ca166760</mq:Organization>
      <mq:Token>YourGuid</mq:Token>
     </tem:credentials>
     <tem:referral>
      <mq:EventsInfo>
        <mq:Target>
         <mq:CaseAidForm>
           <mq:Code>1</mq:Code>
           <mq:System>urn:oid:1.2.643.2.69.1.1.1.54</mq:System>
           <mq:Version>1</mq:Version>
         </mq:CaseAidForm>
         <mq:CaseAidPlace>
           <mq:Code>3</mq:Code>
           <mq:System>urn:oid:1.2.643.2.69.1.1.1.53</mq:System>
           <mq:Version>1</mq:Version>
         </mq:CaseAidPlace>
         <mq:CaseAidType>
           <mq:Code>2</mq:Code>
           <mq:System>urn:oid:1.2.643.2.69.1.1.1.52</mq:System>
           <mq:Version>1</mq:Version>
         </mq:CaseAidType>
         <mq:CaseOpenDate>2015-11-02T00:00:00.000</mq:CaseOpenDate>
        </mq:Target>
      </mq:EventsInfo>
      <mq:Patient>
        <mq:Addresses>
         <mq:AddressDto>
           <mq:AddressType>
            <mq:Code>1</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.28</mq:System>
            <mq:Version>1</mq:Version>
           </mq:AddressType>
           <mq:StringAddress>Авангардная ул., д.6, корп.2, кв.122</mq:StringAddress>
         </mq:AddressDto>
        </mq:Addresses>
        <mq:ContactDtos>
         <mq:ContactDto>
           <mq:ContactType>
            <mq:Code>2</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.27</mq:System>
            <mq:Version>1</mq:Version>
           </mq:ContactType>
           <mq:ContactValue>+7 (812) 258-41-51</mq:ContactValue>
         </mq:ContactDto>
        </mq:ContactDtos>
        <mq:Documents>
         <mq:DocumentDto>
           <mq:DocN>184321</mq:DocN>
           <mq:DocS>7810</mq:DocS>
           <mq:DocumentType>
            <mq:Code>14</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.59</mq:System>
            <mq:Version>1</mq:Version>
           </mq:DocumentType>
           <mq:ExpiredDate>2020-10-15T00:00:00.000</mq:ExpiredDate>
           <mq:IssuedDate>2010-10-15T00:00:00.000</mq:IssuedDate>
           <mq:ProviderName>ОВД Петроградского района г. Санкт-Петербурга</mq:ProviderName>
         </mq:DocumentDto>
        </mq:Documents>
        <mq:Jobs>
         <mq:Job>
           <mq:CompanyName>Транспортная компания ТрансГолд</mq:CompanyName>
           <mq:Position>Старший диспетчер</mq:Position>
         </mq:Job>
        </mq:Jobs>
        <mq:Privileges>
         <mq:Privilege>
           <mq:EndDate>2025-08-05T00:00:00.000</mq:EndDate>
           <mq:PrivilegeType>
            <mq:Code>62</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.7</mq:System>
            <mq:Version>1</mq:Version>
           </mq:PrivilegeType>
           <mq:StartDate>2014-08-05T00:00:00.000</mq:StartDate>
         </mq:Privilege>
        </mq:Privileges>
      </mq:Patient>
      <mq:ReferralInfo>
        <mq:IdMq>78151000000000</mq:IdMq>
      </mq:ReferralInfo>
      <mq:Target>
        <mq:Doctors>
         <mq:Doctor>
           <mq:ContactDtos>
            <mq:ContactDto>
              <mq:ContactType>
               <mq:Code>2</mq:Code>
               <mq:System>urn:oid:1.2.643.2.69.1.1.1.27</mq:System>
               <mq:Version>1</mq:Version>
              </mq:ContactType>
              <mq:ContactValue>+7 (812) 541-16-02</mq:ContactValue>
            </mq:ContactDto>
           </mq:ContactDtos>
           <mq:Lpu>
            <mq:Code>e23746d3-21c0-4107-a229-9d47ca166760</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
            <mq:Version>1</mq:Version>
           </mq:Lpu>
           <mq:Person>
            <mq:BirthDate>1973-12-07T00:00:00.000</mq:BirthDate>
            <mq:HumanName>
              <mq:FamilyName>Прохоров</mq:FamilyName>
              <mq:GivenName>Олег</mq:GivenName>
              <mq:MiddleName>Александрович</mq:MiddleName>
            </mq:HumanName>
            <mq:IdPersonMis>142</mq:IdPersonMis>
            <mq:Sex>
              <mq:Code>1</mq:Code>
              <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.156</mq:System>
              <mq:Version>1</mq:Version>
            </mq:Sex>
           </mq:Person>
           <mq:Position>
            <mq:Code>62</mq:Code>
            <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.607</mq:System>
            <mq:Version>1</mq:Version>
           </mq:Position>
           <mq:Role>
            <mq:Code>4</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.66</mq:System>
            <mq:Version>1</mq:Version>
           </mq:Role>
           <mq:Speciality>
            <mq:Code>225</mq:Code>
            <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.181</mq:System>
            <mq:Version>1</mq:Version>
           </mq:Speciality>
         </mq:Doctor>
        </mq:Doctors>
        <mq:IdCaseMis>2541</mq:IdCaseMis>
        <mq:Lpu>
         <mq:Code>e23746d3-21c0-4107-a229-9d47ca166760</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
         <mq:Version>1</mq:Version>
        </mq:Lpu>
        <mq:MainDiagnosis>
         <mq:MainDiagnosis>
           <mq:ComplicationDiagnosis>
            <mq:DiagnosisInfo>
              <mq:Comment>Дополнительный</mq:Comment>
              <mq:DiagnosedDate>2015-08-12T00:00:00.000</mq:DiagnosedDate>
              <mq:DiagnosisType>
               <mq:Code>2</mq:Code>
               <mq:System>urn:oid:1.2.643.2.69.1.1.1.26</mq:System>
               <mq:Version>1</mq:Version>
              </mq:DiagnosisType>
              <mq:MkbCode>
               <mq:Code>E14</mq:Code>
               <mq:System>urn:oid:1.2.643.2.69.1.1.1.2</mq:System>
               <mq:Version>1</mq:Version>
              </mq:MkbCode>
            </mq:DiagnosisInfo>
           </mq:ComplicationDiagnosis>
           <mq:DiagnosisInfo>
            <mq:Comment>Нуждается в подтверждении</mq:Comment>
            <mq:DiagnosedDate>2015-08-12T00:00:00.000</mq:DiagnosedDate>
            <mq:DiagnosisType>
              <mq:Code>1</mq:Code>
              <mq:System>urn:oid:1.2.643.2.69.1.1.1.26</mq:System>
              <mq:Version>1</mq:Version>
            </mq:DiagnosisType>
            <mq:MkbCode>
              <mq:Code>D09.9</mq:Code>
              <mq:System>urn:oid:1.2.643.2.69.1.1.1.2</mq:System>
              <mq:Version>1</mq:Version>
            </mq:MkbCode>
           </mq:DiagnosisInfo>
         </mq:MainDiagnosis>
        </mq:MainDiagnosis>
      </mq:Target>
     </tem:referral>
   </tem:HealthCareStart>
  </soapenv:Body>
</soapenv:Envelope>

Ответ

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
   <HealthCareStartResponse xmlns="http://tempuri.org/">
     <HealthCareStartResult xmlns:a="http://schemas.datacontract.org/2004/07/MQ.Dto.Result" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <a:IdMq>78151000000000</a:IdMq>
      <a:MqReferralStatus xmlns:b="http://schemas.datacontract.org/2004/07/MQ.Dto">
        <b:Code>6</b:Code>
        <b:System>urn:oid:1.2.643.2.69.1.1.1.50</b:System>
        <b:Version>1</b:Version>
      </a:MqReferralStatus>
      <a:MqReferralStatusDate>2015-11-16T17:16:39.8136563+03:00</a:MqReferralStatusDate>
     </HealthCareStartResult>
   </HealthCareStartResponse>
  </s:Body>
</s:Envelope>

Метод HealthCareEnd

Запрос

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:mq="http://schemas.datacontract.org/2004/07/MQ.Dto">
  <soapenv:Header/>
  <soapenv:Body>
   <tem:HealthCareEnd>
     <tem:credentials>
      <mq:Organization>e23746d3-21c0-4107-a229-9d47ca166760</mq:Organization>
      <mq:Token>YourGuid</mq:Token>
     </tem:credentials>
     <tem:referral>
      <mq:EventsInfo>
        <mq:Target>
         <mq:CaseAidForm>
           <mq:Code>1</mq:Code>
           <mq:System>urn:oid:1.2.643.2.69.1.1.1.54</mq:System>
           <mq:Version>1</mq:Version>
         </mq:CaseAidForm>
         <mq:CaseAidPlace>
           <mq:Code>3</mq:Code>
           <mq:System>urn:oid:1.2.643.2.69.1.1.1.53</mq:System>
           <mq:Version>1</mq:Version>
         </mq:CaseAidPlace>
         <mq:CaseAidType>
           <mq:Code>2</mq:Code>
           <mq:System>urn:oid:1.2.643.2.69.1.1.1.52</mq:System>
           <mq:Version>1</mq:Version>
         </mq:CaseAidType>
         <mq:CaseCloseDate>2015-11-02T00:00:00.000</mq:CaseCloseDate>
        </mq:Target>
      </mq:EventsInfo>
      <mq:Patient>
        <mq:Addresses>
         <mq:AddressDto>
           <mq:AddressType>
            <mq:Code>2</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.28</mq:System>
            <mq:Version>1</mq:Version>
           </mq:AddressType>
           <mq:StringAddress>Авангардная ул., д.6, корп.2, кв.122</mq:StringAddress>
         </mq:AddressDto>
        </mq:Addresses>
        <mq:ContactDtos>
         <mq:ContactDto>
           <mq:ContactType>
            <mq:Code>2</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.27</mq:System>
            <mq:Version>1</mq:Version>
           </mq:ContactType>
           <mq:ContactValue>+7 (812) 258-41-51</mq:ContactValue>
         </mq:ContactDto>
        </mq:ContactDtos>
        <mq:Documents>
         <mq:DocumentDto>
           <mq:DocN>184321</mq:DocN>
           <mq:DocS>7810</mq:DocS>
           <mq:DocumentType>
            <mq:Code>14</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.59</mq:System>
            <mq:Version>1</mq:Version>
           </mq:DocumentType>
           <mq:ExpiredDate>2020-10-15T00:00:00.000</mq:ExpiredDate>
           <mq:IssuedDate>2010-10-15T00:00:00.000</mq:IssuedDate>
           <mq:ProviderName>ОВД Петроградского района г. Санкт-Петербурга</mq:ProviderName>
         </mq:DocumentDto>
        </mq:Documents>
        <mq:Jobs>
         <mq:Job>
           <mq:CompanyName>Транспортная компания ТрансГолд</mq:CompanyName>
           <mq:Position>Старший диспетчер</mq:Position>
         </mq:Job>
        </mq:Jobs>
        <mq:Privileges>
         <mq:Privilege>
           <mq:EndDate>2025-08-05T00:00:00.000</mq:EndDate>
           <mq:PrivilegeType>
            <mq:Code>62</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.7</mq:System>
            <mq:Version>1</mq:Version>
           </mq:PrivilegeType>
           <mq:StartDate>2014-08-05T00:00:00.000</mq:StartDate>
         </mq:Privilege>
        </mq:Privileges>
      </mq:Patient>
      <mq:ReferralInfo>
        <mq:IdMq>78151000000000</mq:IdMq>
      </mq:ReferralInfo>
      <mq:Target>
        <mq:Doctors>
         <mq:Doctor>
           <mq:ContactDtos>
            <mq:ContactDto>
              <mq:ContactType>
               <mq:Code>2</mq:Code>
               <mq:System>urn:oid:1.2.643.2.69.1.1.1.27</mq:System>
               <mq:Version>1</mq:Version>
              </mq:ContactType>
              <mq:ContactValue>+7 (812) 541-16-02</mq:ContactValue>
            </mq:ContactDto>
           </mq:ContactDtos>
           <mq:Lpu>
            <mq:Code>e23746d3-21c0-4107-a229-9d47ca166760</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
            <mq:Version>1</mq:Version>
           </mq:Lpu>
           <mq:Person>
            <mq:BirthDate>1973-12-07T00:00:00.000</mq:BirthDate>
            <mq:HumanName>
              <mq:FamilyName>Прохоров</mq:FamilyName>
              <mq:GivenName>Олег</mq:GivenName>
              <mq:MiddleName>Александрович</mq:MiddleName>
            </mq:HumanName>
            <mq:IdPersonMis>142</mq:IdPersonMis>
            <mq:Sex>
              <mq:Code>1</mq:Code>
              <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.156</mq:System>
              <mq:Version>1</mq:Version>
            </mq:Sex>
           </mq:Person>
           <mq:Position>
            <mq:Code>62</mq:Code>
            <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.607</mq:System>
            <mq:Version>1</mq:Version>
           </mq:Position>
           <mq:Role>
            <mq:Code>4</mq:Code>
            <mq:System>urn:oid:1.2.643.2.69.1.1.1.66</mq:System>
            <mq:Version>1</mq:Version>
           </mq:Role>
           <mq:Speciality>
            <mq:Code>225</mq:Code>
            <mq:System>urn:oid:1.2.643.5.1.13.2.1.1.181</mq:System>
            <mq:Version>1</mq:Version>
           </mq:Speciality>
         </mq:Doctor>
        </mq:Doctors>
        <mq:IdCaseMis>2541</mq:IdCaseMis>
        <mq:Lpu>
         <mq:Code>e23746d3-21c0-4107-a229-9d47ca166760</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
         <mq:Version>1</mq:Version>
        </mq:Lpu>
        <mq:MainDiagnosis>
         <mq:MainDiagnosis>
           <mq:ComplicationDiagnosis>
            <mq:DiagnosisInfo>
              <mq:Comment>Дополнительный</mq:Comment>
              <mq:DiagnosedDate>2015-08-12T00:00:00.000</mq:DiagnosedDate>
              <mq:DiagnosisType>
               <mq:Code>2</mq:Code>
               <mq:System>urn:oid:1.2.643.2.69.1.1.1.26</mq:System>
               <mq:Version>1</mq:Version>
              </mq:DiagnosisType>
              <mq:MkbCode>
               <mq:Code>E14</mq:Code>
               <mq:System>urn:oid:1.2.643.2.69.1.1.1.2</mq:System>
               <mq:Version>1</mq:Version>
              </mq:MkbCode>
            </mq:DiagnosisInfo>
           </mq:ComplicationDiagnosis>
           <mq:DiagnosisInfo>
            <mq:Comment>Нуждается в подтверждении</mq:Comment>
            <mq:DiagnosedDate>2015-08-12T00:00:00.000</mq:DiagnosedDate>
            <mq:DiagnosisType>
              <mq:Code>1</mq:Code>
              <mq:System>urn:oid:1.2.643.2.69.1.1.1.26</mq:System>
              <mq:Version>1</mq:Version>
            </mq:DiagnosisType>
            <mq:MkbCode>
              <mq:Code>D09.9</mq:Code>
              <mq:System>urn:oid:1.2.643.2.69.1.1.1.2</mq:System>
              <mq:Version>1</mq:Version>
            </mq:MkbCode>
           </mq:DiagnosisInfo>
         </mq:MainDiagnosis>
        </mq:MainDiagnosis>
      </mq:Target>
     </tem:referral>
   </tem:HealthCareEnd>
  </soapenv:Body>
</soapenv:Envelope>

Ответ

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
   <HealthCareEndResponse xmlns="http://tempuri.org/">
     <HealthCareEndResult xmlns:a="http://schemas.datacontract.org/2004/07/MQ.Dto.Result" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <a:IdMq>78151000000000</a:IdMq>
      <a:MqReferralStatus xmlns:b="http://schemas.datacontract.org/2004/07/MQ.Dto">
        <b:Code>7</b:Code>
        <b:System>urn:oid:1.2.643.2.69.1.1.1.50</b:System>
        <b:Version>1</b:Version>
      </a:MqReferralStatus>
      <a:MqReferralStatusDate>2015-11-16T17:30:45.6837735+03:00</a:MqReferralStatusDate>
     </HealthCareEndResult>
   </HealthCareEndResponse>
  </s:Body>
</s:Envelope>

Метод Cancellation

Запрос

Аннулирование со стороны направляющей МО

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:mq="http://schemas.datacontract.org/2004/07/MQ.Dto">
  <soapenv:Header/>
  <soapenv:Body>
   <tem:Cancellation>
     <tem:credentials>
      <mq:Organization>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</mq:Organization>
      <mq:Token>YourGuid</mq:Token>
     </tem:credentials>
     <tem:referral>
      <mq:EventsInfo>
        <mq:Cancellation>
         <mq:CancellationReason>
           <mq:Code>3</mq:Code>
           <mq:System>urn:oid:1.2.643.2.69.1.1.1.60</mq:System>
           <mq:Version>1</mq:Version>
         </mq:CancellationReason>
         <mq:CancellationSource>
           <mq:Code>3</mq:Code>
           <mq:System>urn:oid:1.2.643.2.69.1.1.1.49</mq:System>
           <mq:Version>1</mq:Version>
         </mq:CancellationSource>
         <mq:Date>2015-09-21T00:00:00.000</mq:Date>
         <mq:ReasonComment>Отказ пациента</mq:ReasonComment>
        </mq:Cancellation>
      </mq:EventsInfo>
      <mq:ReferralInfo>
        <mq:IdMq>78151000000000</mq:IdMq>
      </mq:ReferralInfo>
     </tem:referral>
   </tem:Cancellation>
  </soapenv:Body>
</soapenv:Envelope>

Аннулирование со стороны целевой МО

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:mq="http://schemas.datacontract.org/2004/07/MQ.Dto">
  <soapenv:Header/>
  <soapenv:Body>
   <tem:Cancellation>
     <tem:credentials>
      <mq:Organization>e23746d3-21c0-4107-a229-9d47ca166760</mq:Organization>
      <mq:Token>YourGuid</mq:Token>
     </tem:credentials>
     <tem:referral>
      <mq:EventsInfo>
        <mq:Cancellation>
         <mq:CancellationReason>
           <mq:Code>1</mq:Code>
           <mq:System>urn:oid:1.2.643.2.69.1.1.1.60</mq:System>
           <mq:Version>1</mq:Version>
         </mq:CancellationReason>
         <mq:CancellationSource>
           <mq:Code>2</mq:Code>
           <mq:System>urn:oid:1.2.643.2.69.1.1.1.49</mq:System>
           <mq:Version>1</mq:Version>
         </mq:CancellationSource>
         <mq:Date>2015-09-21T00:00:00.000</mq:Date>
         <mq:ReasonComment>Отсутствие в назначенное время</mq:ReasonComment>
        </mq:Cancellation>
      </mq:EventsInfo>
      <mq:ReferralInfo>
        <mq:IdMq>78151000000000</mq:IdMq>
      </mq:ReferralInfo>
     </tem:referral>
   </tem:Cancellation>
  </soapenv:Body>
</soapenv:Envelope>

Ответ

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
   <CancellationResponse xmlns="http://tempuri.org/">
     <CancellationResult xmlns:a="http://schemas.datacontract.org/2004/07/MQ.Dto.Result" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <a:IdMq>78151000000000</a:IdMq>
      <a:MqReferralStatus xmlns:b="http://schemas.datacontract.org/2004/07/MQ.Dto">
        <b:Code>0</b:Code>
        <b:System>urn:oid:1.2.643.2.69.1.1.1.50</b:System>
        <b:Version>1</b:Version>
      </a:MqReferralStatus>
      <a:MqReferralStatusDate>2015-11-02T17:12:47.887391</a:MqReferralStatusDate>
     </CancellationResult>
   </CancellationResponse>
  </s:Body>
</s:Envelope>

Метод SetOrChangeTargetMo

Запрос

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:mq="http://schemas.datacontract.org/2004/07/MQ.Dto">
  <soapenv:Header/>
  <soapenv:Body>
   <tem:SetOrChangeTargetMo>
     <tem:credentials>
      <mq:Organization>e23746d3-21c0-4107-a229-9d47ca166760</mq:Organization>
      <mq:Token>YourGuid</mq:Token>
     </tem:credentials>
     <tem:referral>
      <mq:ReferralInfo>
        <mq:IdMq>78151000000000</mq:IdMq>
        <mq:ProfileMedService>
         <mq:Code>85</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.56</mq:System>
         <mq:Version>1</mq:Version>
        </mq:ProfileMedService>
        <mq:ReferralType>
         <mq:Code>3</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.55</mq:System>
         <mq:Version>1</mq:Version>
        </mq:ReferralType>
      </mq:ReferralInfo>
      <mq:ReferralSurvey>
        <mq:Comment>С акцентом на мозг</mq:Comment>
        <mq:SurveyOrgan>
         <mq:Code>5</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.58</mq:System>
         <mq:Version>1</mq:Version>
        </mq:SurveyOrgan>
        <mq:SurveyType>
         <mq:Code>3</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.57</mq:System>
         <mq:Version>1</mq:Version>
        </mq:SurveyType>
      </mq:ReferralSurvey>
      <mq:Target>
        <mq:Lpu>
         <mq:Code>e23746d3-21c0-4107-a229-9d47ca166760</mq:Code>
         <mq:System>urn:oid:1.2.643.2.69.1.1.1.64</mq:System>
         <mq:Version>1</mq:Version>
        </mq:Lpu>
      </mq:Target>
     </tem:referral>
   </tem:SetOrChangeTargetMo>
  </soapenv:Body>
</soapenv:Envelope>

Ответ

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
   <SetOrChangeTargetMoResponse xmlns="http://tempuri.org/">
     <SetOrChangeTargetMoResult xmlns:a="http://schemas.datacontract.org/2004/07/MQ.Dto.Result" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <a:IdMq>78151000000000</a:IdMq>
      <a:MqReferralStatus xmlns:b="http://schemas.datacontract.org/2004/07/MQ.Dto">
        <b:Code>2</b:Code>
        <b:System>urn:oid:1.2.643.2.69.1.1.1.50</b:System>
        <b:Version>1</b:Version>
      </a:MqReferralStatus>
      <a:MqReferralStatusDate>2015-11-16T14:19:06.9152188+03:00</a:MqReferralStatusDate>
     </SetOrChangeTargetMoResult>
   </SetOrChangeTargetMoResponse>
  </s:Body>
</s:Envelope>

Метод GetResultDocument

Запрос

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:mq="http://schemas.datacontract.org/2004/07/MQ.Dto">
  <soapenv:Header/>
  <soapenv:Body>
   <tem:GetResultDocument>
     <tem:credentials>
      <mq:Organization>e23746d3-21c0-4107-a229-9d47ca166760</mq:Organization>
      <mq:Token>YourGuid</mq:Token>
     </tem:credentials>
     <tem:referral>
      <mq:ReferralInfo>
        <mq:IdMq>78151000000000</mq:IdMq>
      </mq:ReferralInfo>
     </tem:referral>
   </tem:GetResultDocument>
  </soapenv:Body>
</soapenv:Envelope>

Ответ

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
 <s:Body>
  <GetResultDocumentResponse xmlns="http://tempuri.org/">
   <GetResultDocumentResult xmlns:a="http://schemas.datacontract.org/2004/07/MQ.Dto.Result" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
   <a:IdMq>78151000000000</a:IdMq>
   <a:MqReferralStatus xmlns:b="http://schemas.datacontract.org/2004/07/MQ.Dto">
    <b:Code>7</b:Code>
    <b:System>urn:oid:1.2.643.2.69.1.1.1.50</b:System>
    <b:Version>1</b:Version>
   </a:MqReferralStatus>
   <a:MqReferralStatusDate>2015-10-23T10:54:49.929797</a:MqReferralStatusDate>
   <a:IsDocProvided>true</a:IsDocProvided>
   <a:ResultDocument xmlns:b="http://schemas.datacontract.org/2004/07/MQ.Dto">
    <b:CreationDate>2015-09-11T00:00:00</b:CreationDate>
    <b:Data>JVBERi0xLjQKMSAwIG9iago8PAovVGl0bGUgK …
    …UVPRgo=</b:Data>
    <b:Header>Выписка из истории болезни. Терапия (11.09.2015, Сергей Чернов) [МД358123]</b:Header>
    <b:MimeType>application/pdf</b:MimeType>
   </a:ResultDocument>
   </GetResultDocumentResult>
  </GetResultDocumentResponse>
 </s:Body>
</s:Envelope>

Метод GetReferralsByMpiIds

Запрос

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/" xmlns:mq="http://schemas.datacontract.org/2004/07/MQ.Dto" xmlns:arr="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <soapenv:Header/>
    <soapenv:Body>
       <tem:GetReferralsByMpiIds>
          <tem:credentials>
             <mq:Organization>0b09d9d0-3137-472d-bc1e-bdf2cc9730ce</mq:Organization>
             <mq:Token>YourGuid</mq:Token>
          </tem:credentials>
          <tem:mpiIds>
             <arr:string>39c9804e-eff7-405d-8a8f-6e70ade1eb18</arr:string>
             <arr:string>494693da-799f-4c5b-8951-03480f38f38b</arr:string>
             <arr:string>b6f3f754-6b01-4e7a-b54a-a3ebecdcfd7f</arr:string>
             <arr:string>9a2f6266-dd63-4413-8004-4a675438f6e4</arr:string>
          </tem:mpiIds>
       </tem:GetReferralsByMpiIds>
    </soapenv:Body>
 </soapenv:Envelope> 
  

Ответ

Сведения о существующих связях для карточек пациентов

        <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
        <s:Body>
           <GetReferralsByMpiIdsResponse xmlns="http://tempuri.org/">
              <GetReferralsByMpiIdsResult xmlns:a="http://schemas.datacontract.org/2004/07/MQ.Dto.Mpi" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
                 <a:MpiIds>
                    <a:MpiId>494693da-799f-4c5b-8951-03480f38f38b</a:MpiId>
                    <a:Referrals xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                       <b:string>78183000000001</b:string>
                       <b:string>78183000000002</b:string>
                       <b:string>78183000000003</b:string>
                       <b:string>78183000000004</b:string>
                    </a:Referrals>
                 </a:MpiIds>
                 <a:MpiIds>
                    <a:MpiId>9a2f6266-dd63-4413-8004-4a675438f6e4</a:MpiId>
                    <a:Referrals xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                       <b:string>78181000000005</b:string>
                    </a:Referrals>
                 </a:MpiIds>
                 <a:MpiIds>
                    <a:MpiId>b6f3f754-6b01-4e7a-b54a-a3ebecdcfd7f</a:MpiId>
                    <a:Referrals xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
                       <b:string>7818300000006</b:string>
                    </a:Referrals>
                 </a:MpiIds>
              </GetReferralsByMpiIdsResult>
           </GetReferralsByMpiIdsResponse>
        </s:Body>
     </s:Envelope>     

Сведений о существующих связях для карточек пациентов не найдено

    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Body>
       <GetReferralsByMpiIdsResponse xmlns="http://tempuri.org/">
          <GetReferralsByMpiIdsResult xmlns:a="http://schemas.datacontract.org/2004/07/MQ.Dto.Mpi" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/>
       </GetReferralsByMpiIdsResponse>
    </s:Body>
 </s:Envelope>