Skip to content

Instantly share code, notes, and snippets.

@bruce-willis
Created December 12, 2017 06:42
Show Gist options
  • Save bruce-willis/4a2a9caa613909bbd85ea8e91b1cabb7 to your computer and use it in GitHub Desktop.
Save bruce-willis/4a2a9caa613909bbd85ea8e91b1cabb7 to your computer and use it in GitHub Desktop.
XSD Scheme
Medicine:
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="ArrayOfString">
<xs:complexType>
<xs:sequence>
<xs:element type="xs:string" name="string" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Template:
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="ArrayOfTemplate">
<xs:complexType>
<xs:sequence>
<xs:element name="Template" maxOccurs="unbounded" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element type="xs:byte" name="TemplateId"/>
<xs:element type="xs:string" name="Name"/>
<xs:element type="xs:string" name="Description"/>
<xs:element type="xs:string" name="ImagePath"/>
<xs:element type="xs:string" name="ModelJson" minOccurs="0"/>
<xs:element type="xs:string" name="SchemeJson" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
LastOpenedDocument:
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="ArrayOfLastOpenedDocument">
<xs:complexType>
<xs:sequence>
<xs:element name="LastOpenedDocument" maxOccurs="unbounded" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element type="xs:byte" name="LastOpenedDocumentId"/>
<xs:element type="xs:string" name="Patient"/>
<xs:element type="xs:dateTime" name="LastOpenedTime"/>
<xs:element type="xs:byte" name="TemplateId"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment