Search in sources :

Example 6 with ValidatePrivatePractitionerType

use of se.riv.infrastructure.directory.privatepractitioner.validateprivatepractitionerresponder.v1.ValidatePrivatePractitionerType in project webcert by sklintyg.

the class PPServiceImpl method validatePrivatePractitioner.

@Override
public boolean validatePrivatePractitioner(String logicalAddress, String hsaIdentityNumber, String personalIdentityNumber) {
    LOG.debug("Validating person information from Privatläkarportalen.");
    validateIdentifier(hsaIdentityNumber, personalIdentityNumber);
    ValidatePrivatePractitionerType request = createValidatePrivatePractitionerType(hsaIdentityNumber, personalIdentityNumber);
    return validatePrivatePractitioner(logicalAddress, request);
}
Also used : ValidatePrivatePractitionerType(se.riv.infrastructure.directory.privatepractitioner.validateprivatepractitionerresponder.v1.ValidatePrivatePractitionerType)

Example 7 with ValidatePrivatePractitionerType

use of se.riv.infrastructure.directory.privatepractitioner.validateprivatepractitionerresponder.v1.ValidatePrivatePractitionerType in project webcert by sklintyg.

the class PPServiceImpl method createValidatePrivatePractitionerType.

private ValidatePrivatePractitionerType createValidatePrivatePractitionerType(String hsaIdentityNumber, String personalIdentityNumber) {
    ValidatePrivatePractitionerType ppType = new ValidatePrivatePractitionerType();
    ppType.setPersonHsaId(hsaIdentityNumber);
    ppType.setPersonalIdentityNumber(personalIdentityNumber);
    return ppType;
}
Also used : ValidatePrivatePractitionerType(se.riv.infrastructure.directory.privatepractitioner.validateprivatepractitionerresponder.v1.ValidatePrivatePractitionerType)

Aggregations

ValidatePrivatePractitionerType (se.riv.infrastructure.directory.privatepractitioner.validateprivatepractitionerresponder.v1.ValidatePrivatePractitionerType)6 Test (org.junit.Test)3 ValidatePrivatePractitionerResponseType (se.riv.infrastructure.directory.privatepractitioner.validateprivatepractitionerresponder.v1.ValidatePrivatePractitionerResponseType)3 HoSPersonType (se.riv.infrastructure.directory.privatepractitioner.v1.HoSPersonType)2 Personnummer (se.inera.intyg.schemas.contract.Personnummer)1 ObjectCreator (se.inera.intyg.webcert.integration.pp.util.ObjectCreator)1