我如何“解决从元素开始发现无效内容”Schematron错误?

时间:2013-12-27 10:18:48

标签: xml hl7 hl7-cda

我有以下请求xml。

我确实请求了以下消息。

  

[cvc-complex-type.2.4.a:从元素'telefonlar'开始发现无效内容。其中一个'{adresler}'是预期的。]

我不明白这个消息。

我的请求XML:

 <component>
   <section classCode="DOCSECT" moodCode="EVN">
      <templateId root="2.16.840.1.113883.3.129.3.2.36" />
      <code code="KUDUZ_PROFILAKSI_IZLEM" codeSystem="2.16.840.1.113883.3.129.2.2.2" codeSystemName="Veriseti" displayName="Kuduz Profilaksi İzlem Veriseti" />
      <entry>
         <organizer classCode="CLUSTER" moodCode="EVN">
            <templateId root="2.16.840.1.113883.3.129.3.3.36.0" />
            <statusCode code="completed" />
            <component>
               <organizer classCode="CLUSTER" moodCode="EVN">
                  <templateId root="2.16.840.1.113883.3.129.3.3.36.1" />
                  <statusCode code="completed" />
                  <component>
                     <observation classCode="OBS" moodCode="EVN">
                        <templateId root="2.16.840.1.113883.3.129.3.3.36.1" />
                        <code code="ADRES_BILGILERI" codeSystem="2.16.840.1.113883.3.129.2.2.3" codeSystemName="Veri Kısmı" codeSystemVersion="2.0" displayName="Adres Bilgileri" />
                        <value xsi:type="ST">2.Sakarya Mah. Şahan Sok No :2</value>
                        <value xsi:type="CD" code="10338" codeSystem="2.16.840.1.113883.3.129.1.2.5" codeSystemName="Adres Kodu" codeSystemVersion="2.0" displayName="2.SAKARYA" />
                        <value xsi:type="CD" code="5" codeSystem="2.16.840.1.113883.3.129.1.2.424" codeSystemName="Adres Kodu Seviyesi" codeSystemVersion="2.0" displayName="Mahalle" />
                        <value xsi:type="CD" code="1" codeSystem="2.16.840.1.113883.3.129.1.2.18" codeSystemName="Adres Tipi" codeSystemVersion="2.0" displayName="Sürekli İkamet Adresi" />
                     </observation>
                  </component>
               </organizer>
            </component>
            <component>
               <organizer classCode="CLUSTER" moodCode="EVN">
                  <templateId root="2.16.840.1.113883.3.129.3.5.36.2" />
                  <statusCode code="completed" />
                  <component>
                     <observation classCode="OBS" moodCode="EVN">
                        <templateId root="2.16.840.1.113883.3.129.3.3.36.2" />
                        <code code="TELEFON_BILGILERI" codeSystem="2.16.840.1.113883.3.129.2.2.3" codeSystemName="Veri Kısmı" codeSystemVersion="2.0" displayName="Telefon Bilgileri" />
                        <value xsi:type="CD" code="2" codeSystem="2.16.840.1.113883.3.129.1.2.19" codeSystemName="Telefon Tipi" codeSystemVersion="2.0" displayName="Ev telefonu" />
                        <value xsi:type="INT" value="2662273399" />
                     </observation>
                  </component>
                  <component>
                     <observation classCode="OBS" moodCode="EVN">
                        <templateId root="2.16.840.1.113883.3.129.3.3.36.2" />
                        <code code="TELEFON_BILGILERI" codeSystem="2.16.840.1.113883.3.129.2.2.3" codeSystemName="Veri Kısmı" codeSystemVersion="2.0" displayName="Telefon Bilgileri" />
                        <value xsi:type="CD" code="1" codeSystem="2.16.840.1.113883.3.129.1.2.19" codeSystemName="Telefon Tipi" codeSystemVersion="2.0" displayName="Cep telefonu" />
                        <value xsi:type="INT" value="5508690761" />
                     </observation>
                  </component>
                  <component>
                     <observation classCode="OBS" moodCode="EVN">
                        <templateId root="2.16.840.1.113883.3.129.3.3.36.2" />
                        <code code="TELEFON_BILGILERI" codeSystem="2.16.840.1.113883.3.129.2.2.3" codeSystemName="Veri Kısmı" codeSystemVersion="2.0" displayName="Telefon Bilgileri" />
                        <value xsi:type="CD" code="3" codeSystem="2.16.840.1.113883.3.129.1.2.19" codeSystemName="Telefon Tipi" codeSystemVersion="2.0" displayName="İş telefonu" />
                        <value xsi:type="INT" value="2662273399" />
                     </observation>
                  </component>
               </organizer>
            </component>
            <component>
               <observation classCode="OBS" moodCode="EVN">
                  <templateId root="2.16.840.1.113883.3.129.3.4.242" />
                  <code code="KUDUZ_PROFILAKSISI_TAMAMLANMA_DURUMU" codeSystem="2.16.840.1.113883.3.129.2.2.7" codeSystemName="Veri Elemanı" codeSystemVersion="2.0" displayName="Kuduz Profilaksisi Tamamlanma Durumu" />
                  <value xsi:type="CD" code="2" codeSystem="2.16.840.1.113883.3.129.1.2.242" codeSystemName="Kuduz Profilaksisi Tamamlanma Durumu" codeSystemVersion="2.0" displayName="Kuduz profilaksisi devam ediyor" />
               </observation>
            </component>
            <component>
               <organizer classCode="CLUSTER" moodCode="EVN">
                  <templateId root="2.16.840.1.113883.3.129.3.5.36.362" />
                  <statusCode code="completed" />
                  <component>
                     <observation classCode="OBS" moodCode="EVN">
                        <templateId root="2.16.840.1.113883.3.129.3.4.362" />
                        <code code="UYGULANAN_KUDUZ_PROFILAKSISI" codeSystem="2.16.840.1.113883.3.129.2.2.7" codeSystemName="Veri Elemanı" codeSystemVersion="2.0" displayName="Uygulanan Kuduz Profilaksisi" />
                        <value xsi:type="CD" code="1" codeSystem="2.16.840.1.113883.3.129.1.2.362" codeSystemName="Uygulanan Kuduz Profilaksisi" codeSystemVersion="2.0" displayName="Kuduz antiserumu yapıldı" />
                     </observation>
                  </component>
                  <component>
                     <observation classCode="OBS" moodCode="EVN">
                        <templateId root="2.16.840.1.113883.3.129.3.4.362" />
                        <code code="UYGULANAN_KUDUZ_PROFILAKSISI" codeSystem="2.16.840.1.113883.3.129.2.2.7" codeSystemName="Veri Elemanı" codeSystemVersion="2.0" displayName="Uygulanan Kuduz Profilaksisi" />
                        <value xsi:type="CD" code="10" codeSystem="2.16.840.1.113883.3.129.1.2.362" codeSystemName="Uygulanan Kuduz Profilaksisi" codeSystemVersion="2.0" displayName="Kuduz şüpheli temas sonrası 6. doz kuduz aşısı yapıldı" />
                     </observation>
                  </component>
               </organizer>
            </component>
         </organizer>
      </entry>
   </section>
</component>

我应该如何编辑XML请求?

如何解决这个问题?

最诚挚的问候。

1 个答案:

答案 0 :(得分:0)

component =&gt; organizer =&gt; templateId根值是错误的。

确定。我已经解决了