Versions Compared

Key

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

...

Operationen searchPersonDetails tager et navn eller en fødselsdato som parameter, og returnerer personer der matcher parameteren. I nedenstående eksempel er der søgt på fødselsdato. 


Code Block
languagexml
<stam:PersonSearchRequest>

...


  <BirthDatePersonQuery>2020-09-30+02:00</BirthDatePersonQuery>

...


</stam:PersonSearchRequest>


Svar 5

Code Block
languagexml
    <stam:PersonLookupResponse>
      <ns:PersonInformationStructure>
        <ns:CurrentPersonCivilRegistrationIdentifier>0101027302</ns:CurrentPersonCivilRegistrationIdentifier>
        <ns:RegularCPRPerson>
          <ns:SimpleCPRPerson>
            <ns:PersonNameStructure>
              <ns:PersonGivenName>Peter</ns:PersonGivenName>
              <ns:PersonMiddleName>Sigurd</ns:PersonMiddleName>
              <ns:PersonSurnameName>Andersen</ns:PersonSurnameName>
            </ns:PersonNameStructure>
            <ns:PersonCivilRegistrationIdentifier>0103952595</ns:PersonCivilRegistrationIdentifier>
          </ns:SimpleCPRPerson>
          <ns:PersonNameForAddressingName>Peter,Andersen</ns:PersonNameForAddressingName>
          <ns:PersonGenderCode>male</ns:PersonGenderCode>
          <ns:PersonInformationProtectionIndicator>true</ns:PersonInformationProtectionIndicator>
          <ns:PersonBirthDateStructure>
            <ns:BirthDate>2020-09-30+02:00</ns:BirthDate>
            <ns:BirthDateUncertaintyIndicator>true</ns:BirthDateUncertaintyIndicator>
          </ns:PersonBirthDateStructure>
          <ns:PersonCivilRegistrationStatusStructure>
            <ns:PersonCivilRegistrationStatusCode>1</ns:PersonCivilRegistrationStatusCode>
            <ns:PersonCivilRegistrationStatusStartDate>2020-10-01+02:00</ns:PersonCivilRegistrationStatusStartDate>
          </ns:PersonCivilRegistrationStatusStructure>
        </ns:RegularCPRPerson>
        <ns:PersonAddressStructure>
          <ns:CareOfName>Søren Petersen</ns:CareOfName>
   
       <ns:AddressComplete>
            <ns:AddressAccess>
              <ns:MunicipalityCode>0461</ns:MunicipalityCode>
              <ns:StreetCode>0234</ns:StreetCode>
              <ns:StreetBuildingIdentifier>10</ns:StreetBuildingIdentifier>
            </ns:AddressAccess>
            <ns:AddressPostal>
              <ns:StreetName>Ørstedgade</ns:StreetName>
              <ns:StreetNameForAddressingName>Østergd.</ns:StreetNameForAddressingName>
              <ns:StreetBuildingIdentifier>10</ns:StreetBuildingIdentifier>
              <ns:FloorIdentifier>12</ns:FloorIdentifier>
              <ns:SuiteIdentifier>tv</ns:SuiteIdentifier>
              <ns:DistrictSubdivisionIdentifier>BirkeBy</ns:DistrictSubdivisionIdentifier>
              <ns:PostCodeIdentifier>6666</ns:PostCodeIdentifier>
              <ns:DistrictName>Überwald</ns:DistrictName>
              <ns:CountryIdentificationCode scheme="iso3166-alpha2">DK</ns:CountryIdentificationCode>
            </ns:AddressPostal>
          </ns:AddressComplete>
          <ns:PersonInformationProtectionStartDate>2000-01-01+01:00</ns:PersonInformationProtectionStartDate>
          <ns:CountyCode>1083</ns:CountyCode>
        </ns:PersonAddressStructure>
      </ns:PersonInformationStructure>
    </stam:PersonLookupResponse>

...