<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
    <env:Header>
        <addressing:Action xmlns:addressing="http://www.w3.org/2005/08/addressing"
            env:mustUnderstand="1">http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Validate</addressing:Action>

            <Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
            {{HCP_GDA}}
        </Security>

    </env:Header>
    <env:Body>
        <wst:RequestSecurityToken xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512">
            <wst:TokenType>urn:elga:pap:query:opt:status</wst:TokenType>
            <wst:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Status</wst:RequestType>
            <wst:ValidateTarget>
                <ts:OptStatusQuery xmlns:ts="urn:tiani-spirit:ts">
                    <ts:PatientID>{{USER_PID}}</ts:PatientID>
                    <ts:ElgaApp>0</ts:ElgaApp> <!-- 0, 100, 101, 102 -->
                </ts:OptStatusQuery>
            </wst:ValidateTarget>
        </wst:RequestSecurityToken>
    </env:Body>
</env:Envelope>