<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
    <env:Header xmlns:addressing="http://www.w3.org/2005/08/addressing">
        <addressing:Action env:mustUnderstand="1">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/ValidateFinal</addressing:Action>
        <addressing:MessageID>uuid:FE2EA713-C5CB-4406-A8CD-355EEECFF8C4</addressing:MessageID>
        <addressing:RelatesTo>uuid:9FE2ACE7-ED50-42DE-AF39-44B130E917FE</addressing:RelatesTo>
    </env:Header>
    <env:Body>
        <wst:RequestSecurityTokenResponseCollection xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512">
            <wst:RequestSecurityTokenResponse>
                <wst:TokenType>urn:elga:pap:query</wst:TokenType>
                <wst:RequestedSecurityToken>
                    <ts:ElgaToken xmlns:ts="urn:tiani-spirit:ts">
                        <ts:StateID>21a57f2fe765e1ae4a8bf15d73fc1bf2a533f547f2343d12a499d9c0592044d6</ts:StateID>
                        <!-- OptIn -->
                        <ts:IsOptOut>false</ts:IsOptOut>
                        <!-- Ausblenden von Services -->
                        <ts:ServiceRestrictionList>
                            <ts:ServiceRestriction service="101" />
                        </ts:ServiceRestrictionList>
                        <!-- Service OptOut bzw. ReOptIn, wenn Zeitstempel gesetzt -->
                        <ts:ServiceOptOutList>
                            <ts:ServiceOptOut service="101" reOptInDateTime="2014-01-21T23:00:00.000Z" />
                        </ts:ServiceOptOutList>
                        <!-- Geloeschte Services mit Zeit der Loeschung -->
                        <ts:ServiceDeletionList>
                            <ts:ServiceDeletion service="102" deletionDateTime="2014-01-21T23:00:00.000Z" />
                        </ts:ServiceDeletionList>
                        <!--zeitliche  Beschraenkungen fuer GDA mittels OID des GDA-->
                        <ts:ProviderRestrictionList>
                            <ts:ProviderRestriction days="3" providerID="1.2.40.0.34.3.2.99887"/>
                            <ts:ProviderRestriction days="4" providerID="1.2.40.0.34.3.2.43657"/>
                            <ts:ProviderRestriction days="10" providerID="1.2.40.0.34.3.2.12317"/>
                        </ts:ProviderRestrictionList>
                        <!--Ausblenden von Dokumenten mittels Angabe der setId -->
                        <ts:DocumentRestrictionList>
                            <ts:DocumentRestriction id="urn:uuid:59c8d24b-2afa-4458-b350-c81cd281b010^^^&amp;
                               1.2.40.0.34.99.111.1.1&amp;ISO^urn:elga:iti:xds:2014:ownDocument_setId^&amp;
                               1.2.40.0.34.99.999&amp;ISO" />
                            <ts:DocumentRestriction id="urn:uuid:60c8d24b-2afa-4458-b350-c81cd281b012^^^&amp;
                               1.2.40.0.34.99.111.1.1&amp;ISO^urn:elga:iti:xds:2014:ownDocument_setId^&amp;
                               1.2.40.0.34.99.999&amp;ISO" />
                            <ts:DocumentRestriction id="urn:uuid:58c8d24b-2afa-4458-b350-c81cd281b013^^^&amp;
                               1.2.40.0.34.99.111.1.1&amp;ISO^urn:elga:iti:xds:2014:ownDocument_setId^&amp;
                               1.2.40.0.34.99.999&amp;ISO" />
                        </ts:DocumentRestrictionList>
                        <!--Loeschungen von Dokumenten mittels Angabe der setId -->
                        <ts:DocumentDeletionList>
                            <ts:DocumentDeletion id="urn:uuid:57c8d24b-2afa-4458-b350-c81cd281b014^^^&amp;
                               1.2.40.0.34.99.111.1.1&amp;ISO^urn:elga:iti:xds:2014:ownDocument_setId^&amp;
                               1.2.40.0.34.99.999&amp;ISO" />
							   <ts:DocumentDeletion id="urn:uuid:55c8d24b-2afa-4458-b350-c81cd281b014^^^&amp;
                               1.2.40.0.34.99.111.1.1&amp;ISO^urn:elga:iti:xds:2014:ownDocument_setId^&amp;
                               1.2.40.0.34.99.999&amp;ISO" />
                            <ts:DocumentDeletion id="urn:uuid:55c8d24b-2afa-4458-b350-c81cd281b014^^^&amp;
                               1.2.40.0.34.99.111.1.1&amp;ISO^urn:elga:iti:xds:2014:ownDocument_setId^&amp;
                               1.2.40.0.34.99.999&amp;ISO" />
                        </ts:DocumentDeletionList>
                        <!-- Liste an Referenzen der signierten Patienteneinwilligungen (PDF)  -->
                        <ts:SignedDocumentList>
                            <ts:SignedDocument id="58ac8fda-e59d-4fa4-9ab2-aaf11f754a07" creationDateTime="2014-01-21T23:00:00.000Z" />
                            <ts:SignedDocument id="1e56ab66-f34d-4eaa-98b2-0ffa7a572ce3" creationDateTime="2014-01-11T23:00:00.000Z" />
                        </ts:SignedDocumentList>
                    </ts:ElgaToken>
                </wst:RequestedSecurityToken>
            </wst:RequestSecurityTokenResponse>
        </wst:RequestSecurityTokenResponseCollection>
    </env:Body>
</env:Envelope>
