Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
titleGetConsentRequest
collapsetrue
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
    xmlns:medcom="http://www.medcom.dk/dgws/2006/04/dgws-1.0.xsd"
    xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
    xmlns:sosi="http://www.sosi.dk/sosi/2006/04/sosi-1.0.xsd"
    xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
    xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
    xmlns:wst="http://schemas.xmlsoap.org/ws/2005/02/trust"
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Envelope">
    <soapenv:Header>
        <wsse:Security>
            <wsu:Timestamp>
                <wsu:Created>2023-0609-09T0815T09:4617:59Z<28Z</wsu:Created>
            </wsu:Timestamp>
            <saml:Assertion IssueInstant="2023-0609-09T0815T09:4112:59Z28Z" Version="2.0" id="IDCard"
                xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
                xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">
                <saml:Issuer>TEST1-NSP-STS</saml:Issuer>
                <saml:Subject>
                    <saml:NameID Format="medcom:other">urn:uuid:cdd91001-2a74-4985-9963-ab8b952eabea</saml:NameID>
                    <saml:SubjectConfirmation>
                        <saml:ConfirmationMethod>urn:oasis:names:tc:SAML:2.0:cm:holder-of-key</saml:ConfirmationMethod>
            <saml:SubjectConfirmationData>
              <ds<saml:KeyInfo>SubjectConfirmationData>
                <ds:            <ds:KeyInfo>
                                <ds:KeyName>OCESSignature</ds:KeyName>
                            </ds:KeyInfo>
                        </saml:SubjectConfirmationData>
                    </saml:SubjectConfirmation>
                </saml:Subject>
                <saml:Conditions NotBefore="2023-0609-09T0815T09:4112:59Z" 28Z"
                    NotOnOrAfter="2023-0609-10T0816T09:4112:59Z28Z" />
                <saml:AttributeStatement id="IDCardData">
                    <saml:Attribute Name="sosi:IDCardID">
                        <saml:AttributeValue>7M65lFiImAUB3TmUAra9lwAttributeValue>fg1abqesnH5x+Fm8wpc8eA==</saml:AttributeValue>
                    </saml:Attribute>
                    <saml:Attribute Name="sosi:IDCardVersion">
                        <saml:AttributeValue>1.0.1</saml:AttributeValue>
                    </saml:Attribute>
                    <saml:Attribute Name="sosi:IDCardType">
                        <saml:AttributeValue>user</saml:AttributeValue>
                    </saml:Attribute>
                    <saml:Attribute Name="sosi:AuthenticationLevel">
                        <saml:AttributeValue>4</saml:AttributeValue>
                    </saml:Attribute>
                </saml:AttributeStatement>
                <saml:AttributeStatement id="UserLog">
                    <saml:Attribute Name="medcom:UserCivilRegistrationNumber">
              <saml:AttributeValue>1311809535</saml:AttributeValue>
          <<saml:AttributeValue>1311809535</saml:Attribute>AttributeValue>
          <saml:Attribute Name="medcom:UserGivenName">
            <saml:AttributeValue>Seymour<</saml:AttributeValue>Attribute>
          </saml:Attribute>
          <saml:Attribute Name="medcom:UserSurNameUserGivenName">
            <saml:AttributeValue>Cray</saml:AttributeValue>
            <<saml:AttributeValue>Seymour</saml:Attribute>AttributeValue>
          <saml:Attribute Name="medcom:UserRole">
            <saml:AttributeValue>urn:dk:healthcare:national-federation-role:code:41001:value:SundAssistR1<</saml:AttributeValue>Attribute>
          </saml:Attribute>
        </saml:AttributeStatement>
        <saml:AttributeStatementAttribute idName="SystemLogmedcom:UserSurName">
          <saml:Attribute Name="medcom:ITSystemName">
              <saml:AttributeValue>Service Consumer Test<AttributeValue>Cray</saml:AttributeValue>
                    </saml:Attribute>
                    <saml:Attribute Name="medcom:CareProviderID" NameFormat="medcom:cvrnumberUserRole">
             <saml:AttributeValue>33257872</saml:AttributeValue>
           </saml<saml:Attribute>AttributeValue>
          <saml:Attribute Name="medcom:CareProviderName">
                  <saml:AttributeValue>Sundhedsdatastyrelsen<urn:dk:healthcare:national-federation-role:code:41001:value:SundAssistR1</saml:AttributeValue>
          </saml:Attribute>
          </saml:AttributeStatement>Attribute>
        <ds:Signature id="OCESSignature">
        </saml:AttributeStatement>
                <saml:AttributeStatement id="SystemLog">
                    <saml:Attribute Name="medcom:ITSystemName">
                        <saml:AttributeValue>Service Consumer Test</saml:AttributeValue>
                    </saml:Attribute>
                    <saml:Attribute Name="medcom:CareProviderID" NameFormat="medcom:cvrnumber">
                        <saml:AttributeValue>33257872</saml:AttributeValue>
                    </saml:Attribute>
                    <saml:Attribute Name="medcom:CareProviderName">
                        <saml:AttributeValue>Sundhedsdatastyrelsen</saml:AttributeValue>
                    </saml:Attribute>
                </saml:AttributeStatement>
                <ds:Signature id="OCESSignature">
                    <ds:SignedInfo>
                        <ds:CanonicalizationMethod
                            Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
                        <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
                        <ds:Reference URI="#IDCard">
                            <ds:Transforms>
                                <ds:Transform
                                    Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
                                <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
                            <ds</ds:SignedInfo>Transforms>
               <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
            <ds:SignatureMethodDigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1xmldsig#sha1" />
            <ds:Reference URI="#IDCard">
                <ds:DigestValue>B+ttM/V2NHgjBwoxzXzivQjVXEI=</ds:DigestValue>
                   <ds:Transforms>
     </ds:Reference>
                   <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
 </ds:SignedInfo>
                    <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
SignatureValue>
                        OPiy/3dZzNfqF9toU2x7Mg0BufePjEAdhZsT0AFr6PZUdjUCFct1Ump1G3CnDd16yzTZcfRazw8CJEw9IRZL2Bl/J4IFZWtKBGMldywjKTadXhWeBzR1PM23zQXN0M+p8aFV9dwdcANRoKMniXcCH59zWRlbxMHrEFipgoyVNm0D6MP4CwE1q0YX/Zxj7n7BssFeTJ7tPa7gmXDU0EYgH7iE5cT5LW9InJeBkvxEx8ib5bqbd4Wbwa9SFJC2hDxp7VMcRCxe+ajOfbqhjAjwFJoRPy93uOsYYoIYih2FWL5oae0Mz43nxicLTz4sdbbnOHt7aBHoFYlXJa+eEPf8x5cxHHAtVNk32LiP2wKRv0XTt2xcjhbs5S1DbBMwreIrQvKjHEQmN9z4Dw2LO51PVQ8kz/4h3yF393s+wnVPbT35PsKSeLiJZKLPJPkkz69jVzDtRHRRfpBp8BjkLcJWTx0UNY3V/e/yoaKGdW4z1cz+tqK0ExmAje3lOcojUyV9</ds:SignatureValue>
               </ds:Transforms>
     <ds:KeyInfo>
         <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
              <ds:DigestValue>nZ7SqcHHD3UJPsHbPppKJ+pABvI=</ds:DigestValue>X509Data>
            </ds:Reference>
          </ds:SignedInfo>
          <ds:SignatureValue>A/AXoUXpsSoJE4KKPkCGdN2GhLtmVgX7CnxioM6ZAX88d3b/qySd3PA6oGdrHXFply/WSqDOiSUZtEKquvYBFgfECoqKYTY0ONcxahAlklXq7wEPHC8CdkZrtDw3dn1SGxXT3hylHWmYBIAenn0NILXT/TCG5Ufz4+HQbUbgKZwKQ5aSkhqsecwm7LyZlULxQO/N7qagMkqYsZY4vW6AS+cn7M7cR5wytMjbse9rXk8asWweXNUgWr1XK9tyq/aUdOWqQV0jFQhPnlm5IyNz9LJyGkvQqbuHSsdTE9l1FxK5ODmtAqRf3GxFgragt7wCZR5LXcrlQxg8CL5ez+J7rT8kNNZPAYgK+7+8tlLdM2fKJNGrbAMnvz1iB5+3awO7Tw7FvMk2PdP7mhFNsFYdpOZiG56sVtO763EWFDzgnjdvrNv0shwKmLQ7jPAH8gGJMe+tcbj19JAlwEK+d/ZgKsqYDMcbqov2yutnh0iDcEtajEgb2C/MHclHq7ZR2qjr</ds:SignatureValue>
  <ds:X509Certificate>
        <ds:KeyInfo>
            <ds:X509Data>
              <ds:X509Certificate>MIIGiDCCBLygAwIBAgIUR5IfpZdXnxpMIIGiDCCBLygAwIBAgIUR5IfpZdXnxp/UHxA0KWAcKzWcm4wQQYJKoZIhvcNAQEKMDSgDzANBglghkgBZQMEAgEFAKEcMBoGCSqGSIb3DQEBCDANBglghkgBZQMEAgEFAKIDAgEgMGsxLTArBgNVBAMMJERlbiBEYW5za2UgU3RhdCBPQ0VTIHVkc3RlZGVuZGUtQ0EgMTETMBEGA1UECwwKVGVzdCAtIGN0aTEYMBYGA1UECgwPRGVuIERhbnNrZSBTdGF0MQswCQYDVQQGEwJESzAeFw0yMzA1MTIxMTIzMDFaFw0yNjA1MTExMTIzMDBaMIGeMR0wGwYDVQQDDBRTT1NJIFRlc3QgRmVkZXJhdGlvbjE3MDUGA1UEBRMuVUk6REstTzpHOjU4ZjEwNDNkLTNkMmYtNGRlZC1hYjUwLTk0MGRiNDc3NmExODEeMBwGA1UECgwVU3VuZGhlZHNkYXRhc3R5cmVsc2VuMRcwFQYDVQRhDA5OVFJESy0zMzI1Nzg3MjELMAkGA1UEBhMCREswggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQCDqOcDXr2tsBXp3QqYpoZCyJAJQ4+rEtmOLJL/Qyol+5e2NyBOqIGdpXdcSI6hCTYEQu/67EDFRcO9yU6yD/u7xOcy+t3eCqx1ydOy20AZCdcKwRmxBzyQN5er+mBErG2+iprTWJdpwCw0mwjNt5edusm7Nwufk0AkN5nxvEEynwesTdTqgLzL99Jk1zdg0uokROg1s13CCvpenYks8+yXwgddO/36WmUn9V8N+1MIu+Up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SRfqW23B2cejACd95XbyXQVFdbCdhyCGAexbJ4egChJsXPU2zAOXq1/pa5bNSmJMsJgqP36bTbA6r+mjv0FArkrL76W1kmchpj6F4tSuDaaJlUmKvmzzBomwhlQRr/vxZc0FOamnJ8is9wC49tOaEMUx2l2iSWZKXMh4C6LQC8hQsjiXnYsERAWgeqwzqtVE3iKaGhOv+W7ECKFndGjYM95bdVK8x9BymTrPun63BCiVGqhMzsEc2RkvbKgBpb7L+Ont0EAahwcTshBzfe0jhA2thWHNGFxXpNqI0ZaAo/NKJpHK3I0EACAB0/VjiQZ/inSKtPnof1/nQZ32QWX3ij0VkX2mE2Pw=</ds:X509Certificate>
                        </ds:X509Data>
                    </ds:KeyInfo>
                </ds:Signature>
            </saml:Assertion>
        </wsse:Security>
        <medcom:Header>
Header>
            <medcom:SecurityLevel>4</medcom:SecurityLevel>
            <medcom:Linking>
                <medcom:FlowID>554d54d1FlowID>cddb717e-2c2f7b45-4a3d4b92-b5df81e6-e5cda4f80f9d<bf52454815a6</medcom:FlowID>
                <medcom:MessageID>2b6f6764MessageID>2f6fcc90-f3315028-43c149d8-9e759a98-ee5d1a8243bc<6cb81c454f01</medcom:MessageID>
            </medcom:Linking>
            <medcom:RequireNonRepudiationReceipt>no</medcom:RequireNonRepudiationReceipt>
        </medcom:Header>
    </soapenv:Header>
    <soapenv:Body>
        <GetConsentRequest
            xmlns="http://sundhedsdatastyrelsen.dk/Fravalg-Af-Genoplivning/2023/06/01/">
            <identifier>
                <use value="official" />
                <system value="urn:oid:1.2.208.176.1.2" />
                <value value="05118048170108501234" />
            </identifier>
        </GetConsentRequest>
    </soapenv:Body>
</soapenv:Envelope>

  

Response-eksempel:

Code Block
languagexml
titleConsentResponseType
collapsetrue
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
        <Consent xmlns="http://sundhedsdatastyrelsen.dk/Fravalg-Af-Genoplivning/2023/06/01/">
            <identifier>
                <use value="official" />
                <system value="urn:ietf:rfc:4122" />
                <value value="ce95cd06-72ba-4cc0-9120-011fc68ec868" />
            </identifier>
            <status value="inactive" />
            <category>
                <coding>
                    <system value="http://loinc.org" /><code value="59284-0" />
                </coding>
            </category>
            <date value="2023-09-15" />
            <grantor>
                <type value="Patient" />
                <identifier>
                    <use value="official" />
                    <system value="urn:oid:1.2.208.176.1.2" />
                    <value value="0108501234" />
                </identifier>
            </grantor>
            <provision>
                <period>
                    <start value="2023-09-13T00:00:00.000+02:00" />
                </period>
                <actor>
                    <role>
                        <coding>
                            <system value="http://terminology.hl7.org/CodeSystem/provenance-participant-type" /><code
                                value="author" />
                        </coding>
                    </role>
                    <reference>
                        <identifier>
                            <use value="official" />
                            <system value="urn:oid:1.2.208.176.1.2" />
                            <value value="0511804817" />
                        </identifier>
                    </reference>
                </actor>
                <action>
                    <coding>
                        <system value="http://terminology.hl7.org/CodeSystem/consentaction" /><code value="collect" />
                    </coding>
                </action>
                <dataPeriod>
                    <start value="2023-09-13T00:00:00.000+02:00" />
                </dataPeriod>
            </provision>
            <provision>
                <period>
                    <start value="2023-09-13T00:00:00.000+02:00" />
                </period>
                <actor>
                    <role>
                        <coding>
                            <system value="http://terminology.hl7.org/CodeSystem/provenance-participant-type" /><code
                                value="author" />
                        </coding>
                    </role>
                    <reference>
                        <identifier>
                            <use value="official" />
                            <system value="urn:oid:1.2.208.176.1.2" />
                            <value value="0511804817" />
                        </identifier>
                    </reference>
                </actor>
                <action>
                    <coding>
                        <system value="http://terminology.hl7.org/CodeSystem/consentaction" /><code value="collect" />
                    </coding>
                </action>
                <dataPeriod>
                    <start value="2023-09-13T00:00:00.000+02:00" />
                </dataPeriod>
            </provision>
        </Consent>
    </soap:Body>
</soap:Envelope>  

...