Formål

Dette dokument er en vejledning til anvendelse af den Fødselsindberetningsservice (FIBS). På baggrund af denne guide er det muligt at lave en teknisk implementation af de brugerhistorier der er beskrevet i FIBS - Brugerhistorier.

Formålet med dette dokument er at vejlede udviklere, der skal udvikle eller vedligeholde systemer, som anvender FIBS snitflader.

Introduktion til FIBS

Fødselsindberetningsservicen (FIBS) bruges til at indberette information om fødsler med at viderestille til to eksterne services:

  • CPR kontorets tildeling af personnummer ved fødsler: Bruges til at tildele et cpr nummer til en nyfødt
  • Kirkeministeriets elektroniske Kirkebog: Tilføjelse af yderlige oplysninger om den nyfødte via Den elektroniske Kirkebog.

FIBS udstiller således disse to services på NSP med en ensartet sikkerhedshåndtering (DGWS).

Fejl i forhold til autentificering rapporteres tilbage til anvendere af FIBS vha SOAPFault:

Fejl returneret fra FIBS
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:medcom="http://www.medcom.dk/dgws/2006/04/dgws-1.0.xsd" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" id="Envelope">
  <soapenv:Header>
    <wsse:Security>
      <wsu:Timestamp>
        <wsu:Created>2023-04-03T08:46:21Z</wsu:Created>
      </wsu:Timestamp>
    </wsse:Security>
    <medcom:Header>
      <medcom:SecurityLevel>1</medcom:SecurityLevel>
      <medcom:Linking>
        <medcom:FlowID>83d51477-5584-480e-aab6-35cf7aaac401</medcom:FlowID>
        <medcom:MessageID>AAABh0ZLviZvpNvlmJdZMlNPU0k=</medcom:MessageID>
        <medcom:InResponseToMessageID>a5411ed4-ca48-499c-a07a-476c42408aa8</medcom:InResponseToMessageID>
      </medcom:Linking>
    </medcom:Header>
  </soapenv:Header>
  <soapenv:Body>
    <soapenv:Fault>
      <faultcode>Server</faultcode>
      <detail>
        <medcom:FaultCode>fibs_idcard_not_valid_in_time</medcom:FaultCode>
      </detail>
      <faultstring>IDCard valid between [01020304, 0200402]</faultstring>
    </soapenv:Fault>
  </soapenv:Body>
</soapenv:Envelope>


Viderestilling sker på bases af forskellige xml elementer i requestet:

  • Et NewbornRegistrationStructure element sendes videre til CPR kontorets tildeling af personnummer ved fødsler
  • Et MidwifeRegistrationStructure element sendes videre til Kirkeministeriets elektroniske Kirkebog.

Kun en type xml element er tilladt i hver request - dvs. at tildeling af CPR nummer og tilføjelse af yderligere oplysninger til den elektroniske Kirkebog ikke kan ske i samme kald til FIBS men må ske i (minimum) to seperate kald til FIBS.

Da der er tale om viderestilling til eksterne services så kan f.eks. fejlkoder fra de bagvedliggende services blive returneret til anvendere af FIBS. For at få et overblik over disse henvises til dokumentation af de bagvedliggende services:

Fejlsvar fra kirkeministeriets elektroniske kirkebog modtaget vias FIBS
<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-03T09:54:55Z</wsu:Created>
      </wsu:Timestamp>
    </wsse:Security>
    <medcom:Header>
      <medcom:SecurityLevel>1</medcom:SecurityLevel>
      <medcom:Linking>
        <medcom:FlowID>96b8050c-4b7e-478a-a01d-8427649b19e9</medcom:FlowID>
        <medcom:MessageID>AAABh0aKhMwmp3yJWbnQmVNPU0k=</medcom:MessageID>
        <medcom:InResponseToMessageID>d51c4489-c33c-4cc2-b5c3-57df31120ae6</medcom:InResponseToMessageID>
      </medcom:Linking>
      <medcom:FlowStatus>flow_finalized_succesfully</medcom:FlowStatus>
    </medcom:Header>
  </soapenv:Header>
  <soapenv:Body>
    <cpr:ReturnStructure xmlns:cpr="http://rep.oio.dk/cpr.dk/xml/schemas/2007/01/02/">
      <cpr:ReturnCode>4188</cpr:ReturnCode>
      <cpr:ReturnMessageText>Personen er ikke mor til barnet (4188)</cpr:ReturnMessageText>
    </cpr:ReturnStructure>
  </soapenv:Body>
</soapenv:Envelope>
Fejlsvar fra CPR kontorets webservice modtaget vias FIBS
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:medcom="http://www.medcom.dk/dgws/2006/04/dgws-1.0.xsd" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" id="Envelope">
  <soapenv:Header>
    <wsse:Security>
      <wsu:Timestamp>
        <wsu:Created>2023-05-17T07:53:43Z</wsu:Created>
      </wsu:Timestamp>
    </wsse:Security>
    <medcom:Header>
      <medcom:SecurityLevel>1</medcom:SecurityLevel>
      <medcom:Linking>
        <medcom:FlowID>67f53a18-5a62-4890-afbc-2fe9865ece44</medcom:FlowID>
        <medcom:MessageID>AAABiCizXgF2LRQM6fUIv1NPU0k=</medcom:MessageID>
        <medcom:InResponseToMessageID>f3e82df7-8b46-41a5-9ae7-b4545474e6af</medcom:InResponseToMessageID>
      </medcom:Linking>
    </medcom:Header>
  </soapenv:Header>
  <soapenv:Body>
    <soapenv:Fault>
      <faultcode>Server</faultcode>
      <detail>
        <medcom:FaultCode>fibs_error_from_cpr</medcom:FaultCode>
      </detail>
      <faultstring>Fejl returneret fra CPR-registret: 2118 (BARN_MED_SAMME_FOEDSELSSEKVENS_FINDES_ALLEREDE)</faultstring>
    </soapenv:Fault>
  </soapenv:Body>
</soapenv:Envelope>


Testpersoner der anbefales til kald af FIBS

Til at udvikle op i mod FIBS kan med fordel anvendes følgende personer (som forældre).

Disse er både lovlige i den bagvedliggende CPR service og er oprettet som officielle testpersoner på NSPs testmiljøer.


CPR-nummerKønLink til person
#13101827711Mhttps://stamdata.nspop.dk/dtg-webservice/persons/3101827711
#23101827746Khttps://stamdata.nspop.dk/dtg-webservice/persons/3101827746
#33103827719Mhttps://stamdata.nspop.dk/dtg-webservice/persons/3103827719
#43103827778Khttps://stamdata.nspop.dk/dtg-webservice/persons/3103827778
#53103827786Khttps://stamdata.nspop.dk/dtg-webservice/persons/3103827786
#63105837711Mhttps://stamdata.nspop.dk/dtg-webservice/persons/3105837711
#73105837738Khttps://stamdata.nspop.dk/dtg-webservice/persons/3105837738
#82507847717Mhttps://stamdata.nspop.dk/dtg-webservice/persons/2507847717
#92507847768Khttps://stamdata.nspop.dk/dtg-webservice/persons/2507847768
#101508857779Mhttps://stamdata.nspop.dk/dtg-webservice/persons/1508857779
#111508857744Khttps://stamdata.nspop.dk/dtg-webservice/persons/1508857744
#120109867713Mhttps://stamdata.nspop.dk/dtg-webservice/persons/0109867713
#130109867756Khttps://stamdata.nspop.dk/dtg-webservice/persons/0109867756
#140110877749Mhttps://stamdata.nspop.dk/dtg-webservice/persons/0110877749
#150102887778Khttps://stamdata.nspop.dk/dtg-webservice/persons/0102887778
#160102887786Khttps://stamdata.nspop.dk/dtg-webservice/persons/0102887786
#170103897769Mhttps://stamdata.nspop.dk/dtg-webservice/persons/0103897769
#180103897777Mhttps://stamdata.nspop.dk/dtg-webservice/persons/0103897777
#191504907712Khttps://stamdata.nspop.dk/dtg-webservice/persons/1504907712
#201504907720Khttps://stamdata.nspop.dk/dtg-webservice/persons/1504907720
#211504907739Mhttps://stamdata.nspop.dk/dtg-webservice/persons/1504907739
#221504907747Mhttps://stamdata.nspop.dk/dtg-webservice/persons/1504907747
#231504907828Khttps://stamdata.nspop.dk/dtg-webservice/persons/1504907828
#242412907801Mhttps://stamdata.nspop.dk/dtg-webservice/persons/2412907801
#252507917723Mhttps://stamdata.nspop.dk/dtg-webservice/persons/2507917723
#262507917758Khttps://stamdata.nspop.dk/dtg-webservice/persons/2507917758
#272507917766Khttps://stamdata.nspop.dk/dtg-webservice/persons/2507917766
#282507917774Khttps://stamdata.nspop.dk/dtg-webservice/persons/2507917774
#293107927750Khttps://stamdata.nspop.dk/dtg-webservice/persons/3107927750
#303107927769Mhttps://stamdata.nspop.dk/dtg-webservice/persons/3107927769

Der findes desuden følgende testdata i den service FIBS kontakter hos kirkeministeriet:


Eksempel 1
Filnavn

KMtest1.xml


Ugift mor, hvor farens CPR kendes. 1 barn

Barn
CprNr

XXXXXX-XXXX

Link til person


Klokkeslæt for fødsel

14:20:00+01:00

Fødselssekvens

1

Flerfødsels indikator

false

Køn

male

Fødested

Odense Universitetshospital

Fritekst

Test af fødsel i Odense. Ugift mor, fars CPR kendes.

Sognekode

7545

Mor


CprNr

XXXXXX-XXXX

Link til person


Far


CprNr

XXXXXX-XXXX

Link til person


Eksempel 2

Filnavn

KMtest2.xml


Gift mor. 1 barn

Barn
CprNr

XXXXXX-XXXX

Link til person


Klokkeslæt for fødsel

03:02:00

Fødselssekvens

1

Flerfødsels indikator

false

Køn

female

Fødested

Odense Universitetshospital

Fritekst

Test af fødsel i Odense. Gift mor. 1 barn.

Sognekode

7545

Mor


CprNr

XXXXXX-XXXX

Link til person


Far


CprNr


Eksempel 3

Filnavn

KMtest3.xml

KMtest4.xml


Ugift mor, tvillinger, far uden CPR

Barn

CprNr

XXXXXX-XXXX

XXXXXX-XXXX

Link til person



Klokkeslæt for fødsel

07:10:00

08:00:00

Fødselssekvens

12

Flerfødsels indikator

truetrue

Køn

female

male

Fødested

Odense Universitetshospital

Odense Universitetshospital

Fritekst

Test af tvillingefødsel i Odense, Ugift mor, fars CPR ikke kendt

Test af tvillingefødsel i Odense, Ugift mor, fars CPR ikke kendt

Sognekode

7545

7545

Mor



CprNr

XXXXXX-XXXX


Link til person



Far



CprNr



Eller:



Fødselsdato

1967-08-13

1967-08-13

Navn



  - fornavn

Jens

Jens

 - mellemnavn

Otto

Otto

 - efternavn

Jensen

Jensen

Adresse



 - Linie 1

Bülowsvænget 32

Bülowsvænget 32

 - Linie 2

5700 Svendborg

5700 Svendborg

 - Linie 3

Danmark

Danmark

 - Linie 4



 - Linie 5



 - Linie 6



Eksempel 4

Filnavn

KMtest5.xml

KMtest6.xml


Gift mor, tvillinger

Barn

CprNr

XXXXXX-XXXX

XXXXXX-XXXX

Link til person



Klokkeslæt for fødsel

11:11:11

14:14:00

Fødselssekvens

12

Flerfødsels indikator

truetrue

Køn

male

male

Fødested

Odense Universitetshospital

Odense Universitetshospital

Fritekst

Test af tvillingefødsel, gift mor.

Test af tvillingefødsel, gift mor.

Sognekode

7545

7545

Mor



CprNr

XXXXXX-XXXX


Link til person



Far



CprNr



Eller:



Fødselsdato



Navn



  - fornavn



 - mellemnavn



 - efternavn



Adresse



 - Linie 1



 - Linie 2



 - Linie 3



 - Linie 4



 - Linie 5



 - Linie 6



Understøttelse af Brugerhistorier

Med udgangspunkt i brugerhistorierne i FIBS - Brugerhistorier beskrives i det følgende, hvorledes de enkelte snitflader skal anvendes til at understøtte disse.

Alle brugerhistorier indeholder eksempler på succesfulde requests og responses.

Understøttelse af brugerhistorie: Tildeling af CPR nummer for nyfødt

I følende eksempel vises et kald til FIBS for at få tildelt et CPR nummer for en nyfødt.

Request til FIBS tildeling af CPR nummer til nyfødt (som systembruger)
<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: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/iNMzLMQSuYfpphCJ0e9leV08KOswSktBhIYk7NAEng+8T4hkbREuPeaRn85/aL5eX/ohSIsfb0ByA3ta/+bymen8rY+6qb1A7V/2h2lmJ7uiWf9OJvUA37RdFrX4czI76+oqe9cGzplOuMHaujBbHG8Uc2yheL16xdexr0xAf7N8PkdVGALJAQm97q0CAwEAAaO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tEPQ+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="http://rep.oio.dk/cpr.dk/xml/schemas/2007/01/02/" xmlns:ns3="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2007/01/02/" xmlns:ns4="http://rep.oio.dk/itst.dk/xml/schemas/2006/01/17/">
      <ns2:NewbornStructure>
        <PersonCivilRegistrationIdentifier>3103827778</PersonCivilRegistrationIdentifier>
        <ns2:BirthTime>2023-04-03T10:38:41.235</ns2:BirthTime>
        <PersonBirthSequence>1</PersonBirthSequence>
        <ns2:PersonGenderCode>M</ns2:PersonGenderCode>
      </ns2:NewbornStructure>
    </ns2: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:

Response fra FIBS tildeling af CPR nummer til nyfødt
<?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

Understøttelse af brugerhistorie: Registrering af oplysninger i den elektroniske kirkebog

I følende eksempel vises et kald til FIBS for at få registrert oplysninger om barnet i den elektroniske kirkebog.

Request til FIBS Registrering af oplysninger i den elektroniske kirkebog (som systembruger)
<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:46:21Z</wsu:Created>
      </wsu:Timestamp>
      <saml:Assertion IssueInstant="2023-04-03T08:41:20Z" 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:41:20Z" NotOnOrAfter="2023-04-04T08:41:20Z"/>
        <saml:AttributeStatement id="IDCardData">
          <saml:Attribute Name="sosi:IDCardID">
            <saml:AttributeValue>HeqP7kx1vHcY8IX9VYKFaA==</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>8GxEr8Ryt0nbp1vsoDue5XrUyx4=</ds:DigestValue>
            </ds:Reference>
          </ds:SignedInfo>
          <ds:SignatureValue>kM40ISPoPFVG0vFJsOshRo2eMTj+ExghxNs48ZTWcjuVIEBP7f9FHtdqljEfmOTeFv+LEwOgxLA5dpo7Vm4Nofbv0aVdAal/McONbiAkWLaPW0txAJS2h8TTCapNnWztL4tPyIY7uakZyC5BBkOLmc2IOMAzgD3jO+hXw/MpOKEckTDfilCzTPSqZRcSw1ArXS3vPYxtsn4ESirSrn22DurfNCQXDAdFBGfwrwSS0uWSpxRPokNm2gsCsanPSAaDYmRFr++TpvUSibCoB+U1XaMJQpyzW5Lqku5ZgtxiGYKCmNFxNccZi/U3fcK4vWiUIudUstTrAt0xORT8ZOrsTg==</ds:SignatureValue>
          <ds:KeyInfo>
            <ds:X509Data>
              <ds:X509Certificate>MIIGKzCCBROgAwIBAgIEX6JBADANBgkqhkiG9w0BAQsFADBJMQswCQYDVQQGEwJESzESMBAGA1UECgwJVFJVU1QyNDA4MSYwJAYDVQQDDB1UUlVTVDI0MDggU3lzdGVtdGVzdCBYWFhJViBDQTAeFw0yMjA0MDYxNjI2MjBaFw0yNTA0MDYxNjI1NTJaMIGUMQswCQYDVQQGEwJESzEuMCwGA1UECgwlU3VuZGhlZHNkYXRhc3R5cmVsc2VuIC8vIENWUjozMzI1Nzg3MjFVMCAGA1UEBRMZQ1ZSOjMzMjU3ODcyLUZJRDoxODkxMTg2MTAxBgNVBAMMKlNPU0kgVGVzdCBGZWRlcmF0aW9uICh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KA6oDiGNmh0dHA6Ly9jcmwuc3lzdGVtdGVzdDM0LnRydXN0MjQwOC5jb20vc3lzdGVtdGVzdDM0LmNybDBioGCgXqRcMFoxCzAJBgNVBAYTAkRLMRIwEAYDVQQKDAlUUlVTVDI0MDgxJjAkBgNVBAMMHVRSVVNUMjQwOCBTeXN0ZW10ZXN0IFhYWElWIENBMQ8wDQYDVQQDDAZDUkw0MDkwHwYDVR0jBBgwFoAUzWxolzlyGaQ1q2Tq9BGjgYf4aTswHQYDVR0OBBYEFKnHK2ey5oU8RXACmOR0fcO57bsmMAkGA1UdEwQCMAAwDQYJKoZIhvcNAQELBQADggEBALvu0VtupREO52FW2f8cAUZkxkwvbq2bQXOvNRN6XrtzvA+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>83d51477-5584-480e-aab6-35cf7aaac401</medcom:FlowID>
        <medcom:MessageID>a5411ed4-ca48-499c-a07a-476c42408aa8</medcom:MessageID>
      </medcom:Linking>
      <medcom:RequireNonRepudiationReceipt>no</medcom:RequireNonRepudiationReceipt>
    </medcom:Header>
  </soapenv:Header>
  <soapenv:Body>
    <ns2:MidwifeRegistrationStructure xmlns:ns2="http://rep.oio.dk/personregistrering.dk/xml/schemas/2007/01/02/" xmlns="http://rep.oio.dk/cpr.dk/xml/schemas/2007/01/02/" xmlns:ns3="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2007/01/02/" xmlns:ns4="http://rep.oio.dk/itst.dk/xml/schemas/2006/01/17/">
      <ns2:ChildStructure>
        <PersonCivilRegistrationIdentifier>1710165005</PersonCivilRegistrationIdentifier>
        <BirthTime>10:46:20.603+02:00</BirthTime>
        <PersonBirthSequence>1</PersonBirthSequence>
        <ns2:MultipleBirthIndicator>false</ns2:MultipleBirthIndicator>
        <ns3:PersonGenderCode>male</ns3:PersonGenderCode>
        <ns2:PersonBirthPlaceText>Odense  Universitetshospital</ns2:PersonBirthPlaceText>
        <ns2:MidwifeCommentsText>Test af f[0xc3][0xb8]dsel i Odense. Ugift mor, fars CPR kendes</ns2:MidwifeCommentsText>
        <ParishCode>7545</ParishCode>
      </ns2:ChildStructure>
      <MotherCivilRegistrationIdentifier>3103827778</MotherCivilRegistrationIdentifier>
      <ns2:FatherStructure>
        <PersonCivilRegistrationIdentifier>1508857779</PersonCivilRegistrationIdentifier>
      </ns2:FatherStructure>
    </ns2:MidwifeRegistrationStructure>
  </soapenv:Body>
</soapenv:Envelope>

Bemærk følgende felter i requestet (se under body):

  • ChildStructure/PersonCivilRegistrationIdentifier Barnets CPR nummer

  • ChildStructure/ParishCode: Sognekode

  • MotherCivilRegistrationIdentifier: Moderens CPR nummer

  • FatherStructure/PersonCivilRegistrationIdentifier:  Faderens CPR nummer

Svar fra FIBS:

Response fra FIBS Registrering af oplysninger i den elektroniske kirkebog (som systembruger)
<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-03T10:02:09Z</wsu:Created>
      </wsu:Timestamp>
    </wsse:Security>
    <medcom:Header>
      <medcom:SecurityLevel>1</medcom:SecurityLevel>
      <medcom:Linking>
        <medcom:FlowID>c9b3d769-1423-4d20-bc89-95f4984c3658</medcom:FlowID>
        <medcom:MessageID>AAABh0aRJMbjroyoVX09xlNPU0k=</medcom:MessageID>
        <medcom:InResponseToMessageID>051d081b-68f0-4c5c-8e86-b5852e41e616</medcom:InResponseToMessageID>
      </medcom:Linking>
      <medcom:FlowStatus>flow_finalized_succesfully</medcom:FlowStatus>
    </medcom:Header>
  </soapenv:Header>
  <soapenv:Body>
    <cpr:ReturnStructure xmlns:cpr="http://rep.oio.dk/cpr.dk/xml/schemas/2007/01/02/">
      <cpr:ReturnCode>Ok</cpr:ReturnCode>
      <cpr:ReturnMessageText>Ok</cpr:ReturnMessageText>
    </cpr:ReturnStructure>
  </soapenv:Body>
</soapenv:Envelope>

  • No labels