Denne "Kom Godt i Gang Guide" omhandler SCES (Stamdata CPR Enkeltopslags Service). Guiden er beregnet til it-faglige personer som skal til eller er i gang med at udvikle systemer, der skal integrere med SCES på platformen. Det anbefales at Platformsintroduktion læses inden denne guide.


OBS: Denne guide  er under revision - dele af indholdet mangler opdatering.



1. Servicen

Denne service er en realisering af MedCom-standarden for 'Det Gode CPR Opslag’ og findes tilgængelig på alle instanser på platformen. Der findes desuden realiseret en variant af 'Det Gode CPR Opslag’ i denne service, som beriger snitfladen med en udvidet række søgeparametre.

1.1. CPR-data

Data indlæses på platformen dagligt på hverdage. Der indlæses ikke CPR-data weekend og helligdage. Datasættet indeholder en mængde personlige oplysninger, som navn og postadresse, om borgere i Danmark. Der kan være særlige begrænsninger knyttet til adgang på data for en borger eller sundhedsfaglig person, som eksempelvis navne- og adressebeskyttelse. Denne begrænsning skal forhindre misbrug, så det eksempelvis er umuligt at få oplyst CPR-nummer alene udfra et navn eller en fødselsdato. Anvendere anbefales at aflæse værdien for elementet 'PersonInformationProtectionIndicator' i svar, som angiver om indhold i svaret er beskyttet. I tilfælde af beskyttede felter kan svaret indeholde erstatningsværdier for autentiske værdier, som eksempelvis 'ADRESSEBESKYTTET', '0000' eller '1'. Se endvidere Det Centrale Personregisters definition af CPR-nummer.

1.2. Sundhedsfaglig information

For personer med tilknyttet sundhedfaglig information, dvs. oplysninger om sikringsgruppe og tilknyttet læge eller anden sundhedsfaglig person med et ydernummer, kan denne information udlæses fra servicen.

2. Adgang til servicen

SCES er tilgængelig på alle NSP-installationer. Servicen er udstillet som en DGWS-service. Alle kald til servicen logges.

2.1. Whitelisting

Servicen er underlagt whitelistningbegrænsning. Denne whitelistning er baseret på CVR-nummeret, der er indeholdt i anvendte ID-kort. Der skal anmodes om whitelistning hos NSP-operatøren gennem en supporthenvendelse.

2.2. Sikkerhedsniveau

Servicen kræver ID-kort af niveau 3, dvs. ID-kort udstillet med et VOCES- eller FOCES-certifikat.

3. Replikering

Der vil være en kort forsinkelse efter modtagelse af en ny udgave af register indtil ændringerne kan hentes ud via servicen. Grunden til dette er at data skal replikeres ud til alle NSP-installationer fra centralt hold. Der er ikke nogen garanti for hvor aktuel datagrundlaget er.

4. Testdata og -miljø

Servicen er ligeledes installeret på de eksterne testmiljøer, hvor den er fungerende i testføderationen, men er underlagt samme adgangskrav som i produktion. Adgang til testmiljøer er beskrevet her. Servicens datagrundlag er baseret på data specifik generet til testmiljøerne. En beskrivelse af og adgang til testdata findes her.

5. Servicekald

Der findes to versioner af snitfladen til denne service. Den første version, som har namespace http://rep.oio.dk/medcom.sundcom.dk/xml/wsdl/2007/06/28/ og seneste version, der har namespace urn:oio:medcom:cprservice:1.0.2. Det anbefales at benytte seneste version. Nærværende tekst tager udgangspunkt i seneste version. Bemærk at ID-kort og MedCom information er fjernet fra SOAP-eksempelerne i svar herunder samt SOAP-header indhold i svar for, at lette overblikket.

5.1. Omstændigheder ved svar

Der eksisterer en række omstændigheder, som gør at et svar kan være ændret eller begrænset.

5.1.1. Udeladelse af adresseoplysninger

Servicen vil udelade adresseoplysninger om en borger når elementet 'PersonCivilRegistrationStatusCode' antager én af følgende værdier:

Status kodeBeskrivelse
20Registreret uden bopæl i dansk/grønlandsk folkeregister – samt administrative personnumre.
30Annulleret personnummer.
50Slettet personnummer.
60Ændret personnummer.
70Forsvundet person.
90Død (død eller død som udrejst eller forsvundet).


5.1.2. Erstatning for ukendt kommunekode

Servicen vil erstatte værdien for en regionskode baseret på en ukendt kommunekode med regionskoden '1099'.

5.1.3. Manglende sundhedsfaglig information

Servicen vil svare med sundhedsfaglig information, der har værdier svarende til 'ukendt' i det tilfælde af, at den sundhedsfaglige association mangler i datagrundlaget.

5.2. Endpoints

Der findes 3 endpoints på platformen for denne service, som i det følgende beskrives:

5.2.1. Endpoint 'stamdata-cpr-ws/service/DetGodeCPROpslag-1.0.4'

Dette endpoint er en realisering af 'Det Gode CPR Opslag'.

5.2.1.1. Operation getPersonInformation

Denne operation bruges til at hente personlige informationer om en borger. Operationen vil udelade autentiske værdier for beskyttede felter i svaret. Et eksempel på en SOAP-besked i et kald til denne operation:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header>
      <Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" IssueInstant="2014-01-21T09:27:15Z" Version="2.0" id="IDCard">
			...
			...
         </saml:Assertion>
      </Security>
      <Header xmlns="http://www.medcom.dk/dgws/2006/04/dgws-1.0.xsd">
			...
			...
      </Header>
   </soapenv:Header>
   <soapenv:Body>
      <sces:getPersonInformationIn xmlns:sces="urn:oio:medcom:cprservice:1.0.4">
         <cpr:PersonCivilRegistrationIdentifier xmlns:cpr="http://rep.oio.dk/cpr.dk/xml/schemas/core/2005/03/18/">0101010000</cpr:PersonCivilRegistrationIdentifier>
      </sces:getPersonInformationIn>
   </soapenv:Body>
</soapenv:Envelope>

Det væsentlige indhold i svaret findes under SOAP Body elementet og indeholder her autentiske værdier fra et testdata-sæt:

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Header>
		...
		...
    </S:Header>
    <S:Body>
       <ns3:getPersonInformationOut xmlns="http://rep.oio.dk/cpr.dk/xml/schemas/core/2005/03/18/" xmlns:ns2="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2003/02/13/" xmlns:ns3="urn:oio:medcom:cprservice:1.0.4" xmlns:ns4="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/03/15/" xmlns:ns5="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/05/13/" xmlns:ns6="http://rep.oio.dk/itst.dk/xml/schemas/2006/01/17/" xmlns:ns7="http://rep.oio.dk/cpr.dk/xml/schemas/core/2006/01/17/" xmlns:ns8="http://rep.oio.dk/itst.dk/xml/schemas/2005/02/22/" xmlns:ns9="http://rep.oio.dk/cpr.dk/xml/schemas/core/2005/11/24/" xmlns:ns10="http://rep.oio.dk/itst.dk/xml/schemas/2005/06/24/" xmlns:ns11="http://rep.oio.dk/cpr.dk/xml/schemas/core/2006/09/01/" xmlns:ns12="http://rep.oio.dk/medcom.sundcom.dk/xml/schemas/2007/02/01/" xmlns:ns13="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/09/01/" xmlns:ns14="http://rep.oio.dk/xkom.dk/xml/schemas/2005/03/15/" xmlns:ns15="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:ns16="http://www.w3.org/2000/09/xmldsig#" xmlns:ns17="http://www.medcom.dk/dgws/2006/04/dgws-1.0.xsd" xmlns:ns18="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:ns19="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns20="http://rep.oio.dk/xkom.dk/xml/schemas/2006/01/06/" xmlns:ns21="http://rep.oio.dk/ois.dk/xml/schemas/2006/04/25/">
          <ns3:PersonInformationStructure>
             <ns3:CurrentPersonCivilRegistrationIdentifier>0101010000</ns3:CurrentPersonCivilRegistrationIdentifier>
             <ns7:RegularCPRPerson>
                <ns7:SimpleCPRPerson>
                   <ns6:PersonNameStructure>
                      <ns2:PersonGivenName>Helle</ns2:PersonGivenName>
                      <ns2:PersonSurnameName>Pedersen</ns2:PersonSurnameName>
                   </ns6:PersonNameStructure>
                   <PersonCivilRegistrationIdentifier>0101010000</PersonCivilRegistrationIdentifier>
                </ns7:SimpleCPRPerson>
                <ns8:PersonNameForAddressingName>Helle Pedersen</ns8:PersonNameForAddressingName>
                <ns2:PersonGenderCode>female</ns2:PersonGenderCode>
                <ns9:PersonInformationProtectionIndicator>false</ns9:PersonInformationProtectionIndicator>
                <ns9:PersonBirthDateStructure>
                   <ns4:BirthDate>2001-01-01+01:00</ns4:BirthDate>
                   <ns9:BirthDateUncertaintyIndicator>false</ns9:BirthDateUncertaintyIndicator>
                </ns9:PersonBirthDateStructure>
                <ns7:PersonCivilRegistrationStatusStructure>
                   <ns9:PersonCivilRegistrationStatusCode>1</ns9:PersonCivilRegistrationStatusCode>
                   <ns7:PersonCivilRegistrationStatusStartDate>2014-01-21+01:00</ns7:PersonCivilRegistrationStatusStartDate>
                </ns7:PersonCivilRegistrationStatusStructure>
             </ns7:RegularCPRPerson>
             <ns3:PersonAddressStructure>
                <ns3:AddressComplete>
                   <ns3:AddressAccess>
                      <MunicipalityCode>0000</MunicipalityCode>
                      <StreetCode>0001</StreetCode>
                      <ns2:StreetBuildingIdentifier>238</ns2:StreetBuildingIdentifier>
                   </ns3:AddressAccess>
                   <ns3:AddressPostal>
                      <ns4:StreetName>Ålborggade</ns4:StreetName>
                      <StreetNameForAddressingName>Ålborggade</StreetNameForAddressingName>
                      <ns2:StreetBuildingIdentifier>238</ns2:StreetBuildingIdentifier>
                      <ns4:PostCodeIdentifier>1323</ns4:PostCodeIdentifier>
                      <ns4:DistrictName>København K</ns4:DistrictName>
                   </ns3:AddressPostal>
                </ns3:AddressComplete>
                <ns3:CountyCode>0000</ns3:CountyCode>
             </ns3:PersonAddressStructure>
          </ns3:PersonInformationStructure>
       </ns3:getPersonInformationOut>
    </S:Body>
 </S:Envelope>

5.2.1.2. Operation getPersonWithHealthCareInformation

Denne operation bruges til at hente personlige informationer om en borger samt dennes sundhedsfaglige informationer (egen læge og sygesikring). Operationen vil udelade autentiske værdier for beskyttede felter i svaret. Dette kan gælde for både værdier i borgerens felter samt sundhedsfaglige felter. Et eksempel på en SOAP-besked i et kald til denne operation:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header>
      <Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <Timestamp xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <Created>2014-01-21T11:02:26+01:00</Created>
         </Timestamp>
         <saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" IssueInstant="2014-01-21T09:57:26Z" Version="2.0" id="IDCard">
			...
			...
         </saml:Assertion>
      </Security>
      <Header xmlns="http://www.medcom.dk/dgws/2006/04/dgws-1.0.xsd">
			...
			...
      </Header>
   </soapenv:Header>
   <soapenv:Body>
      <sces:getPersonWithHealthCareInformationIn xmlns:sces="urn:oio:medcom:cprservice:1.0.4">
         <cpr:PersonCivilRegistrationIdentifier xmlns:cpr="http://rep.oio.dk/cpr.dk/xml/schemas/core/2005/03/18/">0101010000</cpr:PersonCivilRegistrationIdentifier>
      </sces:getPersonWithHealthCareInformationIn>
   </soapenv:Body>
</soapenv:Envelope>

Det væsentlige indhold er naturligvis under SOAP body elementet. Svaret fra dette kald er følgende:

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Header>
	...
	...
   </S:Header>
   <S:Body>
      <ns3:getPersonWithHealthCareInformationOut xmlns="http://rep.oio.dk/cpr.dk/xml/schemas/core/2005/03/18/" xmlns:ns2="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2003/02/13/" xmlns:ns3="urn:oio:medcom:cprservice:1.0.4" xmlns:ns4="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/03/15/" xmlns:ns5="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/05/13/" xmlns:ns6="http://rep.oio.dk/itst.dk/xml/schemas/2006/01/17/" xmlns:ns7="http://rep.oio.dk/cpr.dk/xml/schemas/core/2006/01/17/" xmlns:ns8="http://rep.oio.dk/itst.dk/xml/schemas/2005/02/22/" xmlns:ns9="http://rep.oio.dk/cpr.dk/xml/schemas/core/2005/11/24/" xmlns:ns10="http://rep.oio.dk/itst.dk/xml/schemas/2005/06/24/" xmlns:ns11="http://rep.oio.dk/cpr.dk/xml/schemas/core/2006/09/01/" xmlns:ns12="http://rep.oio.dk/medcom.sundcom.dk/xml/schemas/2007/02/01/" xmlns:ns13="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/09/01/" xmlns:ns14="http://rep.oio.dk/xkom.dk/xml/schemas/2005/03/15/" xmlns:ns15="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:ns16="http://www.w3.org/2000/09/xmldsig#" xmlns:ns17="http://www.medcom.dk/dgws/2006/04/dgws-1.0.xsd" xmlns:ns18="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:ns19="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns20="http://rep.oio.dk/xkom.dk/xml/schemas/2006/01/06/" xmlns:ns21="http://rep.oio.dk/ois.dk/xml/schemas/2006/04/25/">
         <ns3:PersonWithHealthCareInformationStructure>
            <ns3:PersonInformationStructure>
               <ns3:CurrentPersonCivilRegistrationIdentifier>0101010000</ns3:CurrentPersonCivilRegistrationIdentifier>
               <ns7:RegularCPRPerson>
                  <ns7:SimpleCPRPerson>
                     <ns6:PersonNameStructure>
                        <ns2:PersonGivenName>Helle</ns2:PersonGivenName>
                        <ns2:PersonSurnameName>Pedersen</ns2:PersonSurnameName>
                     </ns6:PersonNameStructure>
                     <PersonCivilRegistrationIdentifier>0101010000</PersonCivilRegistrationIdentifier>
                  </ns7:SimpleCPRPerson>
                  <ns8:PersonNameForAddressingName>Helle Pedersen</ns8:PersonNameForAddressingName>
                  <ns2:PersonGenderCode>female</ns2:PersonGenderCode>
                  <ns9:PersonInformationProtectionIndicator>false</ns9:PersonInformationProtectionIndicator>
                  <ns9:PersonBirthDateStructure>
                     <ns4:BirthDate>2001-01-01+01:00</ns4:BirthDate>
                     <ns9:BirthDateUncertaintyIndicator>false</ns9:BirthDateUncertaintyIndicator>
                  </ns9:PersonBirthDateStructure>
                  <ns7:PersonCivilRegistrationStatusStructure>
                     <ns9:PersonCivilRegistrationStatusCode>1</ns9:PersonCivilRegistrationStatusCode>
                     <ns7:PersonCivilRegistrationStatusStartDate>2014-01-21+01:00</ns7:PersonCivilRegistrationStatusStartDate>
                  </ns7:PersonCivilRegistrationStatusStructure>
               </ns7:RegularCPRPerson>
               <ns3:PersonAddressStructure>
                  <ns3:AddressComplete>
                     <ns3:AddressAccess>
                        <MunicipalityCode>0000</MunicipalityCode>
                        <StreetCode>0001</StreetCode>
                        <ns2:StreetBuildingIdentifier>238</ns2:StreetBuildingIdentifier>
                     </ns3:AddressAccess>
                     <ns3:AddressPostal>
                        <ns4:StreetName>Ålborggade</ns4:StreetName>
                        <StreetNameForAddressingName>Ålborggade</StreetNameForAddressingName>
                        <ns2:StreetBuildingIdentifier>238</ns2:StreetBuildingIdentifier>
                        <ns4:PostCodeIdentifier>1323</ns4:PostCodeIdentifier>
                        <ns4:DistrictName>København K</ns4:DistrictName>
                     </ns3:AddressPostal>
                  </ns3:AddressComplete>
                  <ns3:CountyCode>0000</ns3:CountyCode>
               </ns3:PersonAddressStructure>
            </ns3:PersonInformationStructure>
            <ns3:PersonHealthCareInformationStructure>
               <ns12:AssociatedGeneralPractitionerStructure>
                  <ns12:AssociatedGeneralPractitionerIdentifier>0</ns12:AssociatedGeneralPractitionerIdentifier>
                  <ns12:AssociatedGeneralPractitionerOrganisationName>UKENDT</ns12:AssociatedGeneralPractitionerOrganisationName>
                  <ns10:StandardAddressIdentifier>UKENDT</ns10:StandardAddressIdentifier>
                  <ns4:PostCodeIdentifier>0000</ns4:PostCodeIdentifier>
                  <ns4:DistrictName>UKENDT</ns4:DistrictName>
                  <ns13:TelephoneSubscriberIdentifier>00000000</ns13:TelephoneSubscriberIdentifier>
                  <ns14:EmailAddressIdentifier>UKENDT@example.com</ns14:EmailAddressIdentifier>
               </ns12:AssociatedGeneralPractitionerStructure>
               <ns3:PersonPublicHealthInsurance>
                  <ns3:PublicHealthInsuranceGroupIdentifier>sygesikringsgruppe_1</ns3:PublicHealthInsuranceGroupIdentifier>
                  <ns12:PublicHealthInsuranceGroupStartDate>2007-08-06+02:00</ns12:PublicHealthInsuranceGroupStartDate>
               </ns3:PersonPublicHealthInsurance>
            </ns3:PersonHealthCareInformationStructure>
         </ns3:PersonWithHealthCareInformationStructure>
      </ns3:getPersonWithHealthCareInformationOut>
   </S:Body>
</S:Envelope>

Indholdet af svaret indeholder her autentiske værdier for borgeren, som kommer fra et testdatasæt. I tilfælde af beskyttede felter kan svaret indeholde erstatningsværdier for autentiske værdier, som eksempelvis 'ADRESSEBESKYTTET', '0000' eller '1'. Svaret her indeholder erstatningsværdier, som eksempelvis 'UKENDT' eller '0000', i nogle sundhedsfaglige felter af den årsag, at de sundhedsfaglige værdier er ukendte. Dette må ikke forveksles med beskyttede felter.

5.2.2. Endpoint 'stamdata-cpr-ws/service/StamdataPersonLookup-1.1.0'

Dette endpoint er en variant af 'Det Gode CPR Opslag'

5.2.2.1. Operation getPersonDetails

Denne operation giver mulighed for søgning på informationer om en borger udfra CPR-nummer, en liste af CPR-numre, fødselsdato eller navn. Der kan være særlige begrænsninger knyttet til adgang på data for en borger eller sundhedsfaglig person, som eksempelvis navne- og adressebeskyttelse, der opsummeret er følgende:

Søgning viaBeskyttet data
CPR-nummerAlle felter undtaget CPR-nummer
Liste af CPR-numreAlle felter undtaget CPR-nummer
NavnAlle felter
FødselsdatoAlle felter


5.2.2.2. Søgning på CPR nummer

Søgning om information for en borger udfra CPR-nummer:

<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>2014-01-24T11:14:14Z</wsu:Created>
         </wsu:Timestamp>
         <saml:Assertion IssueInstant="2014-01-24T11:09:14Z" Version="2.0" id="IDCard">
			...
			...
         </saml:Assertion>
      </wsse:Security>
      <medcom:Header>
			...
			...
      </medcom:Header>
   </soapenv:Header>
   <soapenv:Body>
      <ns3:PersonLookupRequest xmlns:ns3="http://nsi.dk/2011/09/23/StamdataCpr/" xmlns:ns2="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2003/02/13/">
         <CivilRegistrationNumberPersonQuery>1111111118</CivilRegistrationNumberPersonQuery>
      </ns3:PersonLookupRequest>
   </soapenv:Body>
</soapenv:Envelope>

Svaret fra dette kald er følgende:

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Header>
	...
	...
   </S:Header>
   <S:Body>
      <ns22:PersonLookupResponse xmlns:ns2="http://rep.oio.dk/cpr.dk/xml/schemas/core/2005/11/24/" xmlns:ns3="http://rep.oio.dk/cpr.dk/xml/schemas/core/2006/01/17/" xmlns:ns4="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2003/02/13/" xmlns:ns5="http://rep.oio.dk/itst.dk/xml/schemas/2006/01/17/" xmlns:ns6="http://rep.oio.dk/cpr.dk/xml/schemas/core/2005/03/18/" xmlns:ns7="http://rep.oio.dk/itst.dk/xml/schemas/2005/02/22/" xmlns:ns8="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/03/15/" xmlns:ns9="http://rep.oio.dk/medcom.sundcom.dk/xml/schemas/2007/02/01/" xmlns:ns10="http://rep.oio.dk/itst.dk/xml/schemas/2005/06/24/" xmlns:ns11="http://rep.oio.dk/xkom.dk/xml/schemas/2005/03/15/" xmlns:ns12="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/05/13/" xmlns:ns13="http://rep.oio.dk/xkom.dk/xml/schemas/2006/01/06/" xmlns:ns14="http://rep.oio.dk/cpr.dk/xml/schemas/core/2006/09/01/" xmlns:ns15="http://rep.oio.dk/ois.dk/xml/schemas/2006/04/25/" xmlns:ns16="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/09/01/" xmlns:ns17="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:ns18="http://www.w3.org/2000/09/xmldsig#" xmlns:ns19="http://www.medcom.dk/dgws/2006/04/dgws-1.0.xsd" xmlns:ns20="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:ns21="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns22="http://nsi.dk/2011/09/23/StamdataCpr/">
         <ns9:PersonInformationStructure>
            <ns9:CurrentPersonCivilRegistrationIdentifier>2907729713</ns9:CurrentPersonCivilRegistrationIdentifier>
            <ns3:RegularCPRPerson>
               <ns3:SimpleCPRPerson>
                  <ns5:PersonNameStructure>
                     <ns4:PersonGivenName>Jacob</ns4:PersonGivenName>
                     <ns4:PersonSurnameName>Bonde</ns4:PersonSurnameName>
                  </ns5:PersonNameStructure>
                  <ns6:PersonCivilRegistrationIdentifier>2907729713</ns6:PersonCivilRegistrationIdentifier>
               </ns3:SimpleCPRPerson>
               <ns7:PersonNameForAddressingName>Jacob Bonde</ns7:PersonNameForAddressingName>
               <ns4:PersonGenderCode>male</ns4:PersonGenderCode>
               <ns2:PersonInformationProtectionIndicator>false</ns2:PersonInformationProtectionIndicator>
               <ns2:PersonBirthDateStructure>
                  <ns8:BirthDate>1972-07-29+01:00</ns8:BirthDate>
                  <ns2:BirthDateUncertaintyIndicator>true</ns2:BirthDateUncertaintyIndicator>
               </ns2:PersonBirthDateStructure>
               <ns3:PersonCivilRegistrationStatusStructure>
                  <ns2:PersonCivilRegistrationStatusCode>1</ns2:PersonCivilRegistrationStatusCode>
                  <ns3:PersonCivilRegistrationStatusStartDate>2014-01-24+01:00</ns3:PersonCivilRegistrationStatusStartDate>
               </ns3:PersonCivilRegistrationStatusStructure>
            </ns3:RegularCPRPerson>
            <ns9:PersonAddressStructure>
               <ns13:AddressComplete>
                  <ns11:AddressAccess>
                     <ns6:MunicipalityCode>0000</ns6:MunicipalityCode>
                     <ns6:StreetCode>0001</ns6:StreetCode>
                     <ns4:StreetBuildingIdentifier>1</ns4:StreetBuildingIdentifier>
                  </ns11:AddressAccess>
                  <ns13:AddressPostal>
                     <ns8:StreetName>Nørreport</ns8:StreetName>
                     <ns6:StreetNameForAddressingName>Nørreport</ns6:StreetNameForAddressingName>
                     <ns4:StreetBuildingIdentifier>1</ns4:StreetBuildingIdentifier>
                     <ns4:FloorIdentifier>1</ns4:FloorIdentifier>
                     <ns4:SuiteIdentifier>th</ns4:SuiteIdentifier>
                     <ns8:PostCodeIdentifier>1127</ns8:PostCodeIdentifier>
                     <ns8:DistrictName>København K</ns8:DistrictName>
                  </ns13:AddressPostal>
               </ns13:AddressComplete>
               <ns14:PersonInformationProtectionStartDate>2008-06-03+02:00</ns14:PersonInformationProtectionStartDate>
               <ns15:CountyCode>0000</ns15:CountyCode>
           </ns9:PersonAddressStructure>
         </ns9:PersonInformationStructure>
      </ns22:PersonLookupResponse>
   </S:Body>
 </S:Envelope>


5.2.2.3. Søgning på liste af CPR-numre

Søgning på informationer om en eller flere borgere udfra en liste af CPR-numre:

<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>2014-01-24T11:51:33Z</wsu:Created>
         </wsu:Timestamp>
         <saml:Assertion IssueInstant="2014-01-24T11:46:32Z" Version="2.0" id="IDCard">
			...
			...
         </saml:Assertion>
      </wsse:Security>
      <medcom:Header>
		...
		...
      </medcom:Header>
   </soapenv:Header>
   <soapenv:Body>
      <ns3:PersonLookupRequest xmlns:ns3="http://nsi.dk/2011/09/23/StamdataCpr/" xmlns:ns2="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2003/02/13/">
         <CivilRegistrationNumberListPersonQuery>
            <CivilRegistrationNumber>2907729713</CivilRegistrationNumber>
            <CivilRegistrationNumber>1111103980</CivilRegistrationNumber>
            <CivilRegistrationNumber>1111143583</CivilRegistrationNumber>
         </CivilRegistrationNumberListPersonQuery>
      </ns3:PersonLookupRequest>
   </soapenv:Body>
</soapenv:Envelope>

Svaret fra dette kald er følgende:

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Header>
	...
	...
   </S:Header>
   <S:Body>
      <ns22:PersonLookupResponse xmlns:ns2="http://rep.oio.dk/cpr.dk/xml/schemas/core/2005/11/24/" xmlns:ns3="http://rep.oio.dk/cpr.dk/xml/schemas/core/2006/01/17/" xmlns:ns4="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2003/02/13/" xmlns:ns5="http://rep.oio.dk/itst.dk/xml/schemas/2006/01/17/" xmlns:ns6="http://rep.oio.dk/cpr.dk/xml/schemas/core/2005/03/18/" xmlns:ns7="http://rep.oio.dk/itst.dk/xml/schemas/2005/02/22/" xmlns:ns8="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/03/15/" xmlns:ns9="http://rep.oio.dk/medcom.sundcom.dk/xml/schemas/2007/02/01/" xmlns:ns10="http://rep.oio.dk/itst.dk/xml/schemas/2005/06/24/" xmlns:ns11="http://rep.oio.dk/xkom.dk/xml/schemas/2005/03/15/" xmlns:ns12="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/05/13/" xmlns:ns13="http://rep.oio.dk/xkom.dk/xml/schemas/2006/01/06/" xmlns:ns14="http://rep.oio.dk/cpr.dk/xml/schemas/core/2006/09/01/" xmlns:ns15="http://rep.oio.dk/ois.dk/xml/schemas/2006/04/25/" xmlns:ns16="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/09/01/" xmlns:ns17="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:ns18="http://www.w3.org/2000/09/xmldsig#" xmlns:ns19="http://www.medcom.dk/dgws/2006/04/dgws-1.0.xsd" xmlns:ns20="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:ns21="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns22="http://nsi.dk/2011/09/23/StamdataCpr/">
         <ns9:PersonInformationStructure>
            <ns9:CurrentPersonCivilRegistrationIdentifier>2907729713</ns9:CurrentPersonCivilRegistrationIdentifier>
            <ns3:RegularCPRPerson>
               <ns3:SimpleCPRPerson>
                  <ns5:PersonNameStructure>
                     <ns4:PersonGivenName>Jacob</ns4:PersonGivenName>
                     <ns4:PersonSurnameName>Bonde</ns4:PersonSurnameName>
                  </ns5:PersonNameStructure>
                  <ns6:PersonCivilRegistrationIdentifier>2907729713</ns6:PersonCivilRegistrationIdentifier>
               </ns3:SimpleCPRPerson>
               <ns7:PersonNameForAddressingName>Jacob Bonde</ns7:PersonNameForAddressingName>
               <ns4:PersonGenderCode>male</ns4:PersonGenderCode>
               <ns2:PersonInformationProtectionIndicator>false</ns2:PersonInformationProtectionIndicator>
               <ns2:PersonBirthDateStructure>
                  <ns8:BirthDate>1972-07-29+01:00</ns8:BirthDate>
                  <ns2:BirthDateUncertaintyIndicator>true</ns2:BirthDateUncertaintyIndicator>
               </ns2:PersonBirthDateStructure>
               <ns3:PersonCivilRegistrationStatusStructure>
                  <ns2:PersonCivilRegistrationStatusCode>1</ns2:PersonCivilRegistrationStatusCode>
                  <ns3:PersonCivilRegistrationStatusStartDate>2014-01-24+01:00</ns3:PersonCivilRegistrationStatusStartDate>
               </ns3:PersonCivilRegistrationStatusStructure>
            </ns3:RegularCPRPerson>
            <ns9:PersonAddressStructure>
               <ns13:AddressComplete>
                  <ns11:AddressAccess>
                     <ns6:MunicipalityCode>0000</ns6:MunicipalityCode>
                     <ns6:StreetCode>0001</ns6:StreetCode>
                     <ns4:StreetBuildingIdentifier>1</ns4:StreetBuildingIdentifier>
                  </ns11:AddressAccess>
                  <ns13:AddressPostal>
                     <ns8:StreetName>Nørreport</ns8:StreetName>
                     <ns6:StreetNameForAddressingName>Nørreport</ns6:StreetNameForAddressingName>
                     <ns4:StreetBuildingIdentifier>1</ns4:StreetBuildingIdentifier>
                     <ns4:FloorIdentifier>1</ns4:FloorIdentifier>
                     <ns4:SuiteIdentifier>th</ns4:SuiteIdentifier>
                     <ns8:PostCodeIdentifier>1127</ns8:PostCodeIdentifier>
                     <ns8:DistrictName>København K</ns8:DistrictName>
                  </ns13:AddressPostal>
               </ns13:AddressComplete>
               <ns14:PersonInformationProtectionStartDate>2008-06-03+02:00</ns14:PersonInformationProtectionStartDate>
               <ns15:CountyCode>0000</ns15:CountyCode>
            </ns9:PersonAddressStructure>
         </ns9:PersonInformationStructure>
         <ns9:PersonInformationStructure>
            <ns9:CurrentPersonCivilRegistrationIdentifier>1111103980</ns9:CurrentPersonCivilRegistrationIdentifier>
            <ns3:RegularCPRPerson>
               <ns3:SimpleCPRPerson>
                  <ns5:PersonNameStructure>
                     <ns4:PersonGivenName>Grete</ns4:PersonGivenName>
                     <ns4:PersonSurnameName>Knudsen</ns4:PersonSurnameName>
                  </ns5:PersonNameStructure>
                  <ns6:PersonCivilRegistrationIdentifier>1111103980</ns6:PersonCivilRegistrationIdentifier>
               </ns3:SimpleCPRPerson>
               <ns7:PersonNameForAddressingName>Grete Knudsen</ns7:PersonNameForAddressingName>
               <ns4:PersonGenderCode>female</ns4:PersonGenderCode>
               <ns2:PersonInformationProtectionIndicator>false</ns2:PersonInformationProtectionIndicator>
               <ns2:PersonBirthDateStructure>
                  <ns8:BirthDate>2010-11-11+01:00</ns8:BirthDate>
                  <ns2:BirthDateUncertaintyIndicator>false</ns2:BirthDateUncertaintyIndicator>
               </ns2:PersonBirthDateStructure>
               <ns3:PersonCivilRegistrationStatusStructure>
                  <ns2:PersonCivilRegistrationStatusCode>1</ns2:PersonCivilRegistrationStatusCode>
                  <ns3:PersonCivilRegistrationStatusStartDate>2014-01-24+01:00</ns3:PersonCivilRegistrationStatusStartDate>
               </ns3:PersonCivilRegistrationStatusStructure>
            </ns3:RegularCPRPerson>
            <ns9:PersonAddressStructure>
               <ns10:CareOfName>Morten</ns10:CareOfName>
               <ns13:AddressComplete>
                  <ns11:AddressAccess>
                     <ns6:MunicipalityCode>0000</ns6:MunicipalityCode>
                     <ns6:StreetCode>0001</ns6:StreetCode>
                     <ns4:StreetBuildingIdentifier>497</ns4:StreetBuildingIdentifier>
                  </ns11:AddressAccess>
                  <ns13:AddressPostal>
                     <ns8:StreetName>Hasselvej</ns8:StreetName>
                     <ns6:StreetNameForAddressingName>Hasselvej</ns6:StreetNameForAddressingName>
                     <ns4:StreetBuildingIdentifier>497</ns4:StreetBuildingIdentifier>
                     <ns8:PostCodeIdentifier>1553</ns8:PostCodeIdentifier>
                     <ns8:DistrictName>København V</ns8:DistrictName>
                  </ns13:AddressPostal>
               </ns13:AddressComplete>
               <ns15:CountyCode>0000</ns15:CountyCode>
            </ns9:PersonAddressStructure>
         </ns9:PersonInformationStructure>
         <ns9:PersonInformationStructure>
            <ns9:CurrentPersonCivilRegistrationIdentifier>1111143583</ns9:CurrentPersonCivilRegistrationIdentifier>
            <ns3:RegularCPRPerson>
               <ns3:SimpleCPRPerson>
                  <ns5:PersonNameStructure>
                     <ns4:PersonGivenName>Peter</ns4:PersonGivenName>
                     <ns4:PersonMiddleName>Jørgensen</ns4:PersonMiddleName>
                     <ns4:PersonSurnameName>Svendsen</ns4:PersonSurnameName>
                  </ns5:PersonNameStructure>
                  <ns6:PersonCivilRegistrationIdentifier>1111143583</ns6:PersonCivilRegistrationIdentifier>
               </ns3:SimpleCPRPerson>
               <ns7:PersonNameForAddressingName>Peter Svendsen</ns7:PersonNameForAddressingName>
               <ns4:PersonGenderCode>male</ns4:PersonGenderCode>
               <ns2:PersonInformationProtectionIndicator>false</ns2:PersonInformationProtectionIndicator>
               <ns2:PersonBirthDateStructure>
                  <ns8:BirthDate>1914-11-11+01:00</ns8:BirthDate>
                  <ns2:BirthDateUncertaintyIndicator>false</ns2:BirthDateUncertaintyIndicator>
               </ns2:PersonBirthDateStructure>
               <ns3:PersonCivilRegistrationStatusStructure>
                  <ns2:PersonCivilRegistrationStatusCode>1</ns2:PersonCivilRegistrationStatusCode>
                  <ns3:PersonCivilRegistrationStatusStartDate>2014-01-24+01:00</ns3:PersonCivilRegistrationStatusStartDate>
               </ns3:PersonCivilRegistrationStatusStructure>
            </ns3:RegularCPRPerson>
            <ns9:PersonAddressStructure>
               <ns13:AddressComplete>
                  <ns11:AddressAccess>
                    <ns6:MunicipalityCode>0000</ns6:MunicipalityCode>
                    <ns6:StreetCode>0001</ns6:StreetCode>
                    <ns4:StreetBuildingIdentifier>241</ns4:StreetBuildingIdentifier>
                  </ns11:AddressAccess>
                  <ns13:AddressPostal>
                     <ns8:StreetName>Højgårdsparken</ns8:StreetName>
                     <ns6:StreetNameForAddressingName>Højgårdsparken</ns6:StreetNameForAddressingName>
                     <ns4:StreetBuildingIdentifier>241</ns4:StreetBuildingIdentifier>
                     <ns8:PostCodeIdentifier>1056</ns8:PostCodeIdentifier>
                     <ns8:DistrictName>København K</ns8:DistrictName>
                  </ns13:AddressPostal>
               </ns13:AddressComplete>
               <ns15:CountyCode>0000</ns15:CountyCode>
            </ns9:PersonAddressStructure>
         </ns9:PersonInformationStructure>
      </ns22:PersonLookupResponse>
   </S:Body>
</S:Envelope>

5.2.2.4. Søgning på fødselsdato

Søgning på information om en eller flere borgere udfra fødselsdato:

<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>2014-01-24T11:51:33Z</wsu:Created>
         </wsu:Timestamp>
         <saml:Assertion IssueInstant="2014-01-24T11:46:32Z" Version="2.0" id="IDCard">
			...
			...
         </saml:Assertion>
      </wsse:Security>
      <medcom:Header>
		...
		...
      </medcom:Header>
   </soapenv:Header>
   <soapenv:Body>
      <ns3:PersonLookupRequest xmlns:ns3="http://nsi.dk/2011/09/23/StamdataCpr/" xmlns:ns2="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2003/02/13/">
         <BirthDatePersonQuery>1914-11-11</BirthDatePersonQuery>
      </ns3:PersonLookupRequest>
   </soapenv:Body>
</soapenv:Envelope>

Svaret fra dette kald er følgende:

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
  <S:Header>
	...
	...
  </S:Header>
  <S:Body>
      <ns22:PersonLookupResponse xmlns:ns2="http://rep.oio.dk/cpr.dk/xml/schemas/core/2005/11/24/" xmlns:ns3="http://rep.oio.dk/cpr.dk/xml/schemas/core/2006/01/17/" xmlns:ns4="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2003/02/13/" xmlns:ns5="http://rep.oio.dk/itst.dk/xml/schemas/2006/01/17/" xmlns:ns6="http://rep.oio.dk/cpr.dk/xml/schemas/core/2005/03/18/" xmlns:ns7="http://rep.oio.dk/itst.dk/xml/schemas/2005/02/22/" xmlns:ns8="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/03/15/" xmlns:ns9="http://rep.oio.dk/medcom.sundcom.dk/xml/schemas/2007/02/01/" xmlns:ns10="http://rep.oio.dk/itst.dk/xml/schemas/2005/06/24/" xmlns:ns11="http://rep.oio.dk/xkom.dk/xml/schemas/2005/03/15/" xmlns:ns12="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/05/13/" xmlns:ns13="http://rep.oio.dk/xkom.dk/xml/schemas/2006/01/06/" xmlns:ns14="http://rep.oio.dk/cpr.dk/xml/schemas/core/2006/09/01/" xmlns:ns15="http://rep.oio.dk/ois.dk/xml/schemas/2006/04/25/" xmlns:ns16="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/09/01/" xmlns:ns17="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:ns18="http://www.w3.org/2000/09/xmldsig#" xmlns:ns19="http://www.medcom.dk/dgws/2006/04/dgws-1.0.xsd" xmlns:ns20="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:ns21="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns22="http://nsi.dk/2011/09/23/StamdataCpr/">
         <ns9:PersonInformationStructure>
            <ns9:CurrentPersonCivilRegistrationIdentifier>1111141920</ns9:CurrentPersonCivilRegistrationIdentifier>
            <ns3:RegularCPRPerson>
               <ns3:SimpleCPRPerson>
                  <ns5:PersonNameStructure>
                     <ns4:PersonGivenName>Sonja</ns4:PersonGivenName>
                     <ns4:PersonMiddleName>Sørensen</ns4:PersonMiddleName>
                     <ns4:PersonSurnameName>Kristensen</ns4:PersonSurnameName>
                  </ns5:PersonNameStructure>
                  <ns6:PersonCivilRegistrationIdentifier>1111141920</ns6:PersonCivilRegistrationIdentifier>
               </ns3:SimpleCPRPerson>
               <ns7:PersonNameForAddressingName>Sonja Kristensen</ns7:PersonNameForAddressingName>
               <ns4:PersonGenderCode>female</ns4:PersonGenderCode>
               <ns2:PersonInformationProtectionIndicator>false</ns2:PersonInformationProtectionIndicator>
               <ns2:PersonBirthDateStructure>
                  <ns8:BirthDate>1914-11-11+01:00</ns8:BirthDate>
                  <ns2:BirthDateUncertaintyIndicator>false</ns2:BirthDateUncertaintyIndicator>
               </ns2:PersonBirthDateStructure>
               <ns3:PersonCivilRegistrationStatusStructure>
                  <ns2:PersonCivilRegistrationStatusCode>1</ns2:PersonCivilRegistrationStatusCode>
                  <ns3:PersonCivilRegistrationStatusStartDate>2014-01-24+01:00</ns3:PersonCivilRegistrationStatusStartDate>
               </ns3:PersonCivilRegistrationStatusStructure>
            </ns3:RegularCPRPerson>
            <ns9:PersonAddressStructure>
               <ns13:AddressComplete>
                  <ns11:AddressAccess>
                     <ns6:MunicipalityCode>0000</ns6:MunicipalityCode>
                     <ns6:StreetCode>0001</ns6:StreetCode>
                     <ns4:StreetBuildingIdentifier>144</ns4:StreetBuildingIdentifier>
                  </ns11:AddressAccess>
                  <ns13:AddressPostal>
                     <ns8:StreetName>Doktorbakken</ns8:StreetName>
                     <ns6:StreetNameForAddressingName>Doktorbakken</ns6:StreetNameForAddressingName>
                     <ns4:StreetBuildingIdentifier>144</ns4:StreetBuildingIdentifier>
                     <ns8:PostCodeIdentifier>1674</ns8:PostCodeIdentifier>
                     <ns8:DistrictName>København V</ns8:DistrictName>
                  </ns13:AddressPostal>
               </ns13:AddressComplete>
               <ns15:CountyCode>0000</ns15:CountyCode>
            </ns9:PersonAddressStructure>
         </ns9:PersonInformationStructure>
         <ns9:PersonInformationStructure>
            <ns9:CurrentPersonCivilRegistrationIdentifier>1111143583</ns9:CurrentPersonCivilRegistrationIdentifier>
				...
				...
            </ns9:PersonInformationStructure>
         <ns9:PersonInformationStructure>
            <ns9:CurrentPersonCivilRegistrationIdentifier>1111148895</ns9:CurrentPersonCivilRegistrationIdentifier>
				...
				...
            </ns9:PersonInformationStructure>
      </ns22:PersonLookupResponse>
   </S:Body>
</S:Envelope>


5.2.2.5. Søgning på navn

Søgning på information om en eller flere borgere udfra navn:

    <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>2014-01-24T11:51:33Z</wsu:Created>
            </wsu:Timestamp>
            <saml:Assertion IssueInstant="2014-01-24T11:46:32Z" Version="2.0" id="IDCard">
				...
				...
            </saml:Assertion>
         </wsse:Security>
         <medcom:Header>
			...
			...
         </medcom:Header>
      </soapenv:Header>
      <soapenv:Body>
         <ns3:PersonLookupRequest xmlns:ns3="http://nsi.dk/2011/09/23/StamdataCpr/" xmlns:ns2="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2003/02/13/">
            <NamePersonQuery>
               <ns2:PersonGivenName>Lene</ns2:PersonGivenName>
               <ns2:PersonMiddleName>Sørensen</ns2:PersonMiddleName>
               <ns2:PersonSurnameName>Bach</ns2:PersonSurnameName>
            </NamePersonQuery>
         </ns3:PersonLookupRequest>
      </soapenv:Body>
   </soapenv:Envelope>

Svaret fra dette kald er følgende:

   <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
      <S:Header>
		...
		...
      </S:Header>
      <S:Body>
         <ns22:PersonLookupResponse xmlns:ns2="http://rep.oio.dk/cpr.dk/xml/schemas/core/2005/11/24/" xmlns:ns3="http://rep.oio.dk/cpr.dk/xml/schemas/core/2006/01/17/" xmlns:ns4="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2003/02/13/" xmlns:ns5="http://rep.oio.dk/itst.dk/xml/schemas/2006/01/17/" xmlns:ns6="http://rep.oio.dk/cpr.dk/xml/schemas/core/2005/03/18/" xmlns:ns7="http://rep.oio.dk/itst.dk/xml/schemas/2005/02/22/" xmlns:ns8="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/03/15/" xmlns:ns9="http://rep.oio.dk/medcom.sundcom.dk/xml/schemas/2007/02/01/" xmlns:ns10="http://rep.oio.dk/itst.dk/xml/schemas/2005/06/24/" xmlns:ns11="http://rep.oio.dk/xkom.dk/xml/schemas/2005/03/15/" xmlns:ns12="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/05/13/" xmlns:ns13="http://rep.oio.dk/xkom.dk/xml/schemas/2006/01/06/" xmlns:ns14="http://rep.oio.dk/cpr.dk/xml/schemas/core/2006/09/01/" xmlns:ns15="http://rep.oio.dk/ois.dk/xml/schemas/2006/04/25/" xmlns:ns16="http://rep.oio.dk/ebxml/xml/schemas/dkcc/2005/09/01/" xmlns:ns17="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:ns18="http://www.w3.org/2000/09/xmldsig#" xmlns:ns19="http://www.medcom.dk/dgws/2006/04/dgws-1.0.xsd" xmlns:ns20="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:ns21="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:ns22="http://nsi.dk/2011/09/23/StamdataCpr/">
            <ns9:PersonInformationStructure>
               <ns9:CurrentPersonCivilRegistrationIdentifier>0302482764</ns9:CurrentPersonCivilRegistrationIdentifier>
               <ns3:RegularCPRPerson>
                  <ns3:SimpleCPRPerson>
                     <ns5:PersonNameStructure>
                        <ns4:PersonGivenName>Lene</ns4:PersonGivenName>
                        <ns4:PersonMiddleName>Sørensen</ns4:PersonMiddleName>
                        <ns4:PersonSurnameName>Bach</ns4:PersonSurnameName>
                     </ns5:PersonNameStructure>
                     <ns6:PersonCivilRegistrationIdentifier>0302482764</ns6:PersonCivilRegistrationIdentifier>
                  </ns3:SimpleCPRPerson>
                  <ns7:PersonNameForAddressingName>Lene Bach</ns7:PersonNameForAddressingName>
                  <ns4:PersonGenderCode>female</ns4:PersonGenderCode>
                  <ns2:PersonInformationProtectionIndicator>false</ns2:PersonInformationProtectionIndicator>
                  <ns2:PersonBirthDateStructure>
                     <ns8:BirthDate>1948-02-03+01:00</ns8:BirthDate>
                     <ns2:BirthDateUncertaintyIndicator>false</ns2:BirthDateUncertaintyIndicator>
                  </ns2:PersonBirthDateStructure>
                  <ns3:PersonCivilRegistrationStatusStructure>
                     <ns2:PersonCivilRegistrationStatusCode>1</ns2:PersonCivilRegistrationStatusCode>
                     <ns3:PersonCivilRegistrationStatusStartDate>2014-01-24+01:00</ns3:PersonCivilRegistrationStatusStartDate>
                  </ns3:PersonCivilRegistrationStatusStructure>
               </ns3:RegularCPRPerson>
               <ns9:PersonAddressStructure>
                  <ns13:AddressComplete>
                     <ns11:AddressAccess>
                        <ns6:MunicipalityCode>0000</ns6:MunicipalityCode>
                        <ns6:StreetCode>0001</ns6:StreetCode>
                        <ns4:StreetBuildingIdentifier>36</ns4:StreetBuildingIdentifier>
                     </ns11:AddressAccess>
                     <ns13:AddressPostal>
                        <ns8:StreetName>Hasselvej</ns8:StreetName>
                        <ns6:StreetNameForAddressingName>Hasselvej</ns6:StreetNameForAddressingName>
                        <ns4:StreetBuildingIdentifier>36</ns4:StreetBuildingIdentifier>
                        <ns4:FloorIdentifier>1</ns4:FloorIdentifier>
                        <ns4:SuiteIdentifier>tv</ns4:SuiteIdentifier>
                        <ns8:PostCodeIdentifier>1201</ns8:PostCodeIdentifier>
                        <ns8:DistrictName>København K</ns8:DistrictName>
                     </ns13:AddressPostal>
                  </ns13:AddressComplete>
                  <ns15:CountyCode>0000</ns15:CountyCode>
               </ns9:PersonAddressStructure>
            </ns9:PersonInformationStructure>
            <ns9:PersonInformationStructure>
               <ns9:CurrentPersonCivilRegistrationIdentifier>0710376190</ns9:CurrentPersonCivilRegistrationIdentifier>
				...
				...
            </ns9:PersonInformationStructure>
            <ns9:PersonInformationStructure>
               <ns9:CurrentPersonCivilRegistrationIdentifier>1009944504</ns9:CurrentPersonCivilRegistrationIdentifier>
				...
				...
            </ns9:PersonInformationStructure>
            <ns9:PersonInformationStructure>
               <ns9:CurrentPersonCivilRegistrationIdentifier>1312159240</ns9:CurrentPersonCivilRegistrationIdentifier>
				...
				...
            </ns9:PersonInformationStructure>
            <ns9:PersonInformationStructure>
               <ns9:CurrentPersonCivilRegistrationIdentifier>1803106904</ns9:CurrentPersonCivilRegistrationIdentifier>
				...
				...
            </ns9:PersonInformationStructure>
            <ns9:PersonInformationStructure>
               <ns9:CurrentPersonCivilRegistrationIdentifier>1812208566</ns9:CurrentPersonCivilRegistrationIdentifier>
				...
				...
            </ns9:PersonInformationStructure>
            <ns9:PersonInformationStructure>
               <ns9:CurrentPersonCivilRegistrationIdentifier>3007980492</ns9:CurrentPersonCivilRegistrationIdentifier>
				...
				...
            </ns9:PersonInformationStructure>
            <ns9:PersonInformationStructure>
               <ns9:CurrentPersonCivilRegistrationIdentifier>3011810216</ns9:CurrentPersonCivilRegistrationIdentifier>
				...
				...
            </ns9:PersonInformationStructure>
            <ns9:PersonInformationStructure>
               <ns9:CurrentPersonCivilRegistrationIdentifier>3110766466</ns9:CurrentPersonCivilRegistrationIdentifier>
				...
				...
            </ns9:PersonInformationStructure>
         </ns22:PersonLookupResponse>
      </S:Body>
   </S:Envelope>


6. Eksempelkode

Tilhørende eksempelkode kan findes på http://svn.nspop.dk/public/guides/latest, specielt under modulet sces. Eksempelkoden indeholder seks eksempler på kald af servicen:

MetodenavnBeskrivelse
getPersonInformationSvarer til eksempel i afsnit Operation getPersonInformation. I koden er det 1) og søger information for en person med CPR '2907729713'.
getPersonWithHealthCareInformationSvarer til eksempel i afsnit Operation getPersonWithHealthCareInformation. I koden er det 2) og søger information for en person med CPR '1111111118' og dennes tilknyttede sundhedsfaglige informationer.
getGetPersonDetailsByCPRSvarer til eksempel i afsnit Søgning på CPR nummer. I koden er det 3) og søger information for en person med CPR '2907729713'.
getPersonDetailsByCPRListSvarer til eksempel i afsnit Søgning på liste af CPR numre. I koden er det 4) og søger information for personer med CPR '2907729713', '1111103980' og '1111143583'.
getPersonDetailsByBirthDateSvarer til eksempel i afsnit Søgning på fødselsdato. I koden er det 5) og søger information for en person med fødselsdato '11-11-1914'.
getPersonDetailsByNameSvarer til eksempel i afsnit Søgning på navn. I koden er det 6) og søger information for en person med navnet 'Lene Sørensen Bach'.

Eksemplerne anvender følgende FOCES-certifikat:

KeystorefilCVR-RID
Statens_Serum_Institut_FOCES.jksCVR:46837428-FID:92421325

CVR-nummer indeholdt i det benyttede certifikat er whitelistet på testmiljøerne.


  • No labels