User Tools

Site Tools


XML Schema

Schema: https://rximage.nlm.nih.gov/rxImageAccess.xsd

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="rxImageAccess">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="replyStatus">
          <xs:complexType>
            <xs:sequence>
              <xs:element type="xs:boolean" name="success"/>
              <xs:element type="xs:positiveInteger" name="errorCode" minOccurs="0"/>
              <xs:element type="xs:string" name="errorMsg" minOccurs="0"/>
              <xs:element type="xs:string" name="date"/>
              <xs:element type="xs:nonNegativeInteger" name="imageCount" maxOccurs="1" minOccurs="0"/>
              <xs:element type="xs:nonNegativeInteger" name="totalImageCount" minOccurs="0"/>
              <xs:element type="xs:nonNegativeInteger" name="pageNumber" minOccurs="0"/>
              <xs:element type="xs:nonNegativeInteger" name="totalPageCount" minOccurs="0"/>
              <xs:element name="matchedTerms" maxOccurs="1" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:string" name="ndc" maxOccurs="1" minOccurs="0"/>
                    <xs:element type="xs:string" name="id" maxOccurs="1" minOccurs="0"/>
                    <xs:element type="xs:string" name="setId" maxOccurs="1" minOccurs="0"/>
                    <xs:element type="xs:string" name="rootId" maxOccurs="1" minOccurs="0"/>
                    <xs:element type="xs:string" name="imprint" maxOccurs="1" minOccurs="0"/>
                    <xs:element type="xs:string" name="rxcui" maxOccurs="1" minOccurs="0"/>
                    <xs:element type="xs:string" name="shape" maxOccurs="1" minOccurs="0"/>
                    <xs:element type="xs:string" name="color" maxOccurs="1" minOccurs="0"/>
                    <xs:element type="xs:string" name="symbol" maxOccurs="1" minOccurs="0"/>
                    <xs:element type="xs:string" name="size" maxOccurs="1" minOccurs="0"/>
                    <xs:element type="xs:string" name="score" maxOccurs="1" minOccurs="0"/>
                    <xs:element type="xs:string" name="imprintColor" maxOccurs="1" minOccurs="0"/>
                    <xs:element type="xs:string" name="imprintType" maxOccurs="1" minOccurs="0"/>
                    <xs:element type="xs:string" name="name" maxOccurs="1" minOccurs="0"/>
                    <xs:element type="xs:string" name="inactive" maxOccurs="1" minOccurs="0"/>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="nlmRxImages" maxOccurs="1" minOccurs="0">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="image" maxOccurs="unbounded" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:positiveInteger" name="id"/>
                    <xs:element type="xs:string" name="ndc11"/>
                    <xs:element type="xs:positiveInteger" name="part"/>
                    <xs:element type="xs:string" name="matchNdc" minOccurs="0" />
                    <xs:element name="relabelersNdc9" maxOccurs="unbounded" minOccurs="0">
                      <xs:complexType>
                        <xs:simpleContent>
                          <xs:extension base="xs:string">
                            <xs:attribute type="xs:string" name="sourceNdc9" />
                          </xs:extension>
                        </xs:simpleContent>
                      </xs:complexType>
                    </xs:element>
                    <xs:element type="xs:string" name="status" maxOccurs="1" minOccurs="0"/>
                    <xs:element type="xs:nonNegativeInteger" name="rxcui"/>
                    <xs:element type="xs:string" name="splSetId" maxOccurs="1" minOccurs="0"/>
                    <xs:element type="xs:string" name="splRootId" maxOccurs="1" minOccurs="0"/>
                    <xs:element type="xs:nonNegativeInteger" name="splVersion" maxOccurs="1" minOccurs="0"/>
                    <xs:element type="xs:string" name="acqDate"/>
                    <xs:element type="xs:string" name="name"/>
                    <xs:element type="xs:string" name="labeler"/>
                    <xs:element type="xs:string" name="deaSchedule" minOccurs="0" maxOccurs="1"/>
                    <xs:element type="xs:anyURI" name="imageUrl"/>
                    <xs:element type="xs:positiveInteger" name="imageSize"/>
                    <xs:element type="xs:string" name="attribution"/>
                    <xs:element name="mpc" maxOccurs="1" minOccurs="0">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element type="xs:string" name="shape" minOccurs="0"/>
                          <xs:element type="xs:positiveInteger" name="size" minOccurs="0"/>
                          <xs:element type="xs:string" name="color" minOccurs="0"/>
                          <xs:element type="xs:string" name="imprint" minOccurs="0"/>
                          <xs:element type="xs:string" name="imprintColor" minOccurs="0"/>
                          <xs:element type="xs:string" name="imprintType" minOccurs="0"/>
                          <xs:element type="xs:boolean" name="symbol" minOccurs="0"/>
                          <xs:element type="xs:nonNegativeInteger" name="score" minOccurs="0"/>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element name="ingredients" maxOccurs="1" minOccurs="0">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element type="xs:string" name="active" maxOccurs="unbounded" minOccurs="0" />
                          <xs:element type="xs:string" name="inactive" maxOccurs="unbounded" minOccurs="0"/>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                    <xs:element type="xs:string" name="ingredientsAvailable" maxOccurs="1" minOccurs="0"/>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="enum" maxOccurs="1" minOccurs="0">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="color" maxOccurs="1" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="value" maxOccurs="unbounded" minOccurs="0">
                      <xs:complexType>
                        <xs:simpleContent>
                          <xs:extension base="xs:string">
                            <xs:attribute type="xs:string" name="description" use="optional"/>
                          </xs:extension>
                        </xs:simpleContent>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="shape" maxOccurs="1" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="value" maxOccurs="unbounded" minOccurs="0">
                      <xs:complexType>
                        <xs:simpleContent>
                          <xs:extension base="xs:string">
                            <xs:attribute type="xs:string" name="description" use="optional"/>
                          </xs:extension>
                        </xs:simpleContent>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="size" maxOccurs="1" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="value" maxOccurs="unbounded" minOccurs="0">
                      <xs:complexType>
                        <xs:simpleContent>
                          <xs:extension base="xs:string">
                            <xs:attribute type="xs:string" name="description" use="optional"/>
                          </xs:extension>
                        </xs:simpleContent>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="score" maxOccurs="1" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="value" maxOccurs="unbounded" minOccurs="0">
                      <xs:complexType>
                        <xs:simpleContent>
                          <xs:extension base="xs:string">
                            <xs:attribute type="xs:string" name="description" use="optional"/>
                          </xs:extension>
                        </xs:simpleContent>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="imprintType" maxOccurs="1" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="value" maxOccurs="unbounded" minOccurs="0">
                      <xs:complexType>
                        <xs:simpleContent>
                          <xs:extension base="xs:string">
                            <xs:attribute type="xs:string" name="description" use="optional"/>
                          </xs:extension>
                        </xs:simpleContent>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="imprintColor" maxOccurs="1" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="value" maxOccurs="unbounded" minOccurs="0">
                      <xs:complexType>
                        <xs:simpleContent>
                          <xs:extension base="xs:string">
                            <xs:attribute type="xs:string" name="description" use="optional"/>
                          </xs:extension>
                        </xs:simpleContent>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="collectionName" maxOccurs="1" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="value" maxOccurs="unbounded" minOccurs="0">
                      <xs:complexType>
                        <xs:simpleContent>
                          <xs:extension base="xs:string">
                            <xs:attribute type="xs:string" name="description" use="optional"/>
                          </xs:extension>
                        </xs:simpleContent>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="resolution" maxOccurs="1" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="value" maxOccurs="unbounded" minOccurs="0">
                      <xs:complexType>
                        <xs:simpleContent>
                          <xs:extension base="xs:string">
                            <xs:attribute type="xs:string" name="description" use="optional"/>
                          </xs:extension>
                        </xs:simpleContent>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="version" maxOccurs="1" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="value" maxOccurs="unbounded" minOccurs="0">
                      <xs:complexType>
                        <xs:simpleContent>
                          <xs:extension base="xs:string">
                            <xs:attribute type="xs:string" name="description" use="optional"/>
                          </xs:extension>
                        </xs:simpleContent>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

Page Tools