Page History
...
I følende eksempel vises et kald til FIBS for at få tildelt et CPR nummer for en nyfødt.
| Code Block | ||||||
|---|---|---|---|---|---|---|
| ||||||
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:medcom<personregistrering:NewbornRegistrationStructure xmlns:personregistrering="http://repwww.oio.dk/personregistrering.dk/xml/schemas/2007/01/02/" xmlnsmedcom.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-04-03T08:38:41Z</wsu:Created> </wsu:Timestamp> <saml:Assertion IssueInstant="2023-04-03T08:33:41Z" Version="2.0" id="IDCard"> <saml:Issuer>TEST1-NSP-STS</saml:Issuer> <saml:Subject> <saml:NameID Format="medcom:other">SubjectDN={C=DK, OID.2.5.4.97=NTRDK-33257872, O=Sundhedsdatastyrelsen, SERIALNUMBER=UI:DK-O:G:8d3fa047-c77e-47e4-bdd2-e91488610ce6, CN=NSP Test Service Consumer},IssuerDN={C=DK, O=Den Danske Stat, OU=Test - cti, CN=Den Danske Stat OCES udstedende-CA 1},CertSerial={132335570455020580755596658041035235745819139305}</saml:NameID> <saml:SubjectConfirmation> <saml:ConfirmationMethod>urn:oasis:names:tc:SAML:2.0:cm:holder-of-key</saml:ConfirmationMethod> <saml:SubjectConfirmationData> <ds:KeyInfo> <ds:KeyName>OCESSignature</ds:KeyName> </ds:KeyInfo> </saml:SubjectConfirmationData> </saml:SubjectConfirmation> </saml:Subject> <saml:Conditions NotBefore="2023-04-03T08:33:41Z" NotOnOrAfter="2023-04-04T08:33:41Z"/> <saml:AttributeStatement id="IDCardData"> <saml:Attribute Name="sosi:IDCardID"> <saml:AttributeValue>v4a3U0d0Wks0szWs3Jj1dg==</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>system</saml:AttributeValue> </saml:Attribute> <saml:Attribute Name="sosi:AuthenticationLevel"> <saml:AttributeValue>3</saml:AttributeValue> </saml:Attribute> <saml:Attribute Name="sosi:OCESCertHash"> <saml:AttributeValue>f6ZdJ0CPmwpKVPZQ1NnkpDlB0KE=</saml:AttributeValue> </saml:Attribute> </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:Transforms> <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/> <ds:DigestValue>DumdUeg261bo+VcoPY00Cex085U=</ds:DigestValue> </ds:Reference> </ds:SignedInfo> <ds:SignatureValue>mmV8T9cL9PSyyacpd9t0YF1e4Evq8aCQlYDP4wRbwVG8WkyIcIFNMsP9wnbCgCHooBeP+o186dOFAoAECZNmqxmtqVjFyQ7LMcCWshDA1Jk7d9jx74CbKydXCqt4HqZCGtyAFzC+3E6oXhqmJG6Y9Tx5wxzqs3r6YS6h0Oz3BKEiJYUODZl+MwQxCJgadAzO05pEzvteKKqf93pM4a18kFHSQE6oMiWtiGC+br7AUYWoDWLzxI/xN4R6K9/TH40c+i+ctrFvbaTSfGc0/xL+k/5mF68J+/Nyi5fyENbH0DmPAAbL3o3yityd9lMkxxNvCvSKnGPKaRuQzNvLW21g9A==</ds:SignatureValue> <ds:KeyInfo> <ds:X509Data> <ds:X509Certificate>MIIGKzCCBROgAwIBAgIEX6JBADANBgkqhkiG9w0BAQsFADBJMQswCQYDVQQGEwJESzESMBAGA1UECgwJVFJVU1QyNDA4MSYwJAYDVQQDDB1UUlVTVDI0MDggU3lzdGVtdGVzdCBYWFhJViBDQTAeFw0yMjA0MDYxNjI2MjBaFw0yNTA0MDYxNjI1NTJaMIGUMQswCQYDVQQGEwJESzEuMCwGA1UECgwlU3VuZGhlZHNkYXRhc3R5cmVsc2VuIC8vIENWUjozMzI1Nzg3MjFVMCAGA1UEBRMZQ1ZSOjMzMjU3ODcyLUZJRDoxODkxMTg2MTAxBgNVBAMMKlNPU0kgVGVzdCBGZWRlcmF0aW9uIChmdW5rdGlvbnNjZXJ0aWZpa2F0KTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALRM3VAiyCBUDWg4K2vgVhmFTB1SDZWjT5Zd0NxAMPjzuKEsP8PpbWLdD8aNO7LuS3noC01AN4los3aqK//ZVJdTr9k3M1Aquo5G7+SwLBTsTVyiheh7uYKH+5v6gGjHHiPuYGrdnTc4YkrRbeqPtZAR1sX/iNMzLM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gwFoAUzWxolzlyGaQ1q2Tq9BGjgYf4aTswHQYDVR0OBBYEFKnHK2ey5oU8RXACmOR0fcO57bsmMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBALvu0VtupREO52FW2f8cAUZkxkwvbq2bQXOvNRN6XrtzvA+tt2Jgm4gP8dNZUBI7nOtEPQ+0+XkSMZ1wzu+8qxLHATTSUcicQNtUkaAbGTIfQkKiWRwPTtSK50qhEDm2fJW5m8NDOxOE/+58iuj8AI9Fb4RI1FV+xRsku3TakdvdwiNkSjAxiOv5JsXEZMJfVsM34fR0ZdOQgnFpyn3IfSjBrAHSgbxy47Zz9YhmONuQsa55NDEQ6mTmecXGrOSvfJZmQ/jRPhYmi04ufPEvOA5hjLHDy0CtsSKRhkDpXSafVjHjtmdfYKB4M++2Sp/nx1teRcoT78Nenl3qHgkz7OM=</ds:X509Certificate> </ds:X509Data> </ds:KeyInfo> </ds:Signature> </saml:Assertion> </wsse:Security> <medcom:Header> <medcom:SecurityLevel>3</medcom:SecurityLevel> <medcom:Linking> <medcom:FlowID>c64c107d-ded8-4cea-8aed-4892be1d2fb0</medcom:FlowID> <medcom:MessageID>f522d379-0ad3-483d-a098-13c68e167fcf</medcom:MessageID> </medcom:Linking> <medcom:RequireNonRepudiationReceipt>no</medcom:RequireNonRepudiationReceipt> </medcom:Header> </soapenv:Header> <soapenv:Body> <ns2:NewbornRegistrationStructure xmlns:ns2="http://rep.oio.dk/personregistrering.dk/xml/schemas/2007/01/02/" xmlns:cpr="http://rep.oio.dk/cpr.dk/xml/schemas/2007/01/02/" xmlns:dkccns3="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2007/01/02/" xmlns:itstns4="http://rep.oio.dk/itst.dk/xml/schemas/2006/01/17/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <personregistrering <ns2:NewbornStructure> <cpr:PersonCivilRegistrationIdentifier></cpr: <PersonCivilRegistrationIdentifier>3103827778</PersonCivilRegistrationIdentifier> <cpr:BirthTime></cpr <ns2:BirthTime>2023-04-03T10:38:41.235</ns2:BirthTime> <cpr:PersonBirthSequence><<PersonBirthSequence>1</cpr:PersonBirthSequence> <dkcc<ns2:PersonGenderCode><PersonGenderCode>M</dkccns2:PersonGenderCode> </personregistreringns2:NewbornStructure> </personregistreringns2:NewbornRegistrationStructure> </soapenv:Body> </soapenv:Envelope> |
Bemærk følgende felter i requestet (se under body):
PersonCivilRegistrationIdentifier Moderens CPR nummer
Birthtime Fødselstidspunkt
PersonBirthSequence Sekvensnummer i flerfoldsfødsel. 1 hvis det ikke er en flerfoldsfødsel
PersonGenderCode Køn - M hvis der er en dreng og K, hvis der er en pige
Servicen returner et personnummer på den nyfødte:
| Code Block | ||||||||
|---|---|---|---|---|---|---|---|---|
| <NewbornReturnStructure>
<PersonCivilRegistrationIdentifier>
</PersonCivilRegistrationIdentifier>
</NewbornReturnStructure>
| |||||||
<?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-04-03T08:38:42Z</wsu:Created>
</wsu:Timestamp>
</wsse:Security>
<medcom:Header>
<medcom:SecurityLevel>1</medcom:SecurityLevel>
<medcom:Linking>
<medcom:FlowID>c64c107d-ded8-4cea-8aed-4892be1d2fb0</medcom:FlowID>
<medcom:MessageID>AAABh0ZEvYlSBsPj94ifmlNPU0k=</medcom:MessageID>
<medcom:InResponseToMessageID>f522d379-0ad3-483d-a098-13c68e167fcf</medcom:InResponseToMessageID>
</medcom:Linking>
<medcom:FlowStatus>flow_finalized_succesfully</medcom:FlowStatus>
</medcom:Header>
</soapenv:Header>
<soapenv:Body>
<NewbornReturnStructure xmlns="http://rep.oio.dk/cpr.dk/xml/schemas/2007/01/02/">
<PersonCivilRegistrationIdentifier>3009215157</PersonCivilRegistrationIdentifier>
</NewbornReturnStructure>
</soapenv:Body>
</soapenv:Envelope> |
Bemærk følgende felter i response (se under body):
- PersonCivilRegistrationIdentifier Den nyfødtes CPR nummer
...