<?xml version="1.0" encoding="UTF-8"?>
<!--  ==========================================================================
   This is the schema definition for a "General Container" process encoded
   in XML. The content is a full XML definition of an invoice request and/or an 
   mcd request both  generated by a health care provider. 

   As the name implies this is a container definition that holds together an invoice 
   and its corresponding MCD.

	Upon receiving the container infoset the recipient must divide the process into 
	2 individual processes. Therefore, the recipient responds to the the "General Invoice 
	Request" by [0,n] "General Invoice Response" messages and/or to the "Hospital MCD 
	Request" by [0,n] "Hospital MCD Response" messages independently!

	This XML project is normative for the electronic invoice/mcd process in Switzerland.

	Permission to use, and distribute this schema and its accompanying documentation 
	for any purpose and without fee is hereby granted in perpetuity, provided that 
	the above copyright notice and this paragraph appear in all copies and this schema 
	file is not altered.
	The copyright holders make no representation about the suitability of the schema
	for any purpose.

	It is provided "as is" without expressed or implied warranty.

	Copyright (c) 2010 Forum Datenaustausch, http://www.forum-datenaustausch.ch
	All Rights Reserved.
   ==========================================================================  -->
<schema targetNamespace="http://www.forum-datenaustausch.ch/container" 
	xmlns="http://www.w3.org/2001/XMLSchema" 
	xmlns:container="http://www.forum-datenaustausch.ch/container" 
	elementFormDefault="qualified" attributeFormDefault="unqualified">

<!-- =======================================================================
	1 invoice that can optionally be added as a full xml file
 ======================================================================= -->
	<complexType name="invoiceType">
		<sequence>
			<any namespace="http://www.forum-datenaustausch.ch/invoice" processContents="strict"/>
		</sequence>
	</complexType>

<!-- =======================================================================
	1 mcd that can optionally be added as a full xml file
 ======================================================================= -->
	<complexType name="mcdType">
		<sequence>
			<any namespace="http://www.forum-datenaustausch.ch/mcd" processContents="strict"/>
		</sequence>
	</complexType>
		
<!-- =======================================================================
     =======================================================================
	Here starts the request with its root element
 =======================================================================
 ======================================================================= -->
	<element name="request" type="container:requestType"/>


	<complexType name="requestType">
		<sequence>
			<element name="invoice" type="container:invoiceType" minOccurs="0"/>
			<element name="mcd" type="container:mcdType" minOccurs="0"/>
		</sequence>
	</complexType>
</schema>
