use of se.riv.clinicalprocess.healthcond.certificate.types.v1.UtlatandeId in project webcert by sklintyg.
the class RouteIT method setupConverter.
private void setupConverter() throws ModuleException {
when(mockFk7263Transform.createCertificateStatusUpdateForCareType(any(NotificationMessage.class))).thenAnswer(invocation -> {
NotificationMessage msg = (NotificationMessage) invocation.getArguments()[0];
if (msg == null) {
return null;
}
CertificateStatusUpdateForCareType request = new CertificateStatusUpdateForCareType();
UtlatandeType utlatande = new UtlatandeType();
UtlatandeId id = new UtlatandeId();
id.setExtension(msg.getIntygsId());
utlatande.setUtlatandeId(id);
request.setUtlatande(utlatande);
return request;
});
}
use of se.riv.clinicalprocess.healthcond.certificate.types.v1.UtlatandeId in project webcert by sklintyg.
the class NotificationTransformerTest method setupInternalToNotification.
private void setupInternalToNotification() throws ModuleException {
when(internalToNotification.createCertificateStatusUpdateForCareType(any())).thenAnswer(invocation -> {
NotificationMessage msg = (NotificationMessage) invocation.getArguments()[0];
if (msg == null) {
return null;
}
CertificateStatusUpdateForCareType request = new CertificateStatusUpdateForCareType();
UtlatandeType utlatande = new UtlatandeType();
UtlatandeId utlatandeId = new UtlatandeId();
utlatandeId.setExtension(msg.getIntygsId());
utlatande.setUtlatandeId(utlatandeId);
request.setUtlatande(utlatande);
return request;
});
}
use of se.riv.clinicalprocess.healthcond.certificate.types.v1.UtlatandeId in project webcert by sklintyg.
the class NotificationWSClientTest method createRequest.
private CertificateStatusUpdateForCareType createRequest() {
CertificateStatusUpdateForCareType res = new CertificateStatusUpdateForCareType();
res.setUtlatande(new UtlatandeType());
res.getUtlatande().setUtlatandeId(new UtlatandeId());
res.getUtlatande().getUtlatandeId().setExtension("intygsId");
return res;
}
use of se.riv.clinicalprocess.healthcond.certificate.types.v1.UtlatandeId in project webcert by sklintyg.
the class CreateDraftCertificateResponderImpl method createSuccessResponse.
/**
* The response sent back to caller when creating a certificate draft succeeded.
*/
private CreateDraftCertificateResponseType createSuccessResponse(String nyttUtkastsId) {
ResultType result = ResultTypeUtil.okResult();
UtlatandeId utlId = new UtlatandeId();
utlId.setRoot("utlatandeId");
utlId.setExtension(nyttUtkastsId);
CreateDraftCertificateResponseType response = new CreateDraftCertificateResponseType();
response.setResult(result);
response.setUtlatandeId(utlId);
return response;
}
use of se.riv.clinicalprocess.healthcond.certificate.types.v1.UtlatandeId in project webcert by sklintyg.
the class IntegrationTest method buildNotificationV1.
private CertificateStatusUpdateForCareType buildNotificationV1() {
Handelse handelse = new Handelse();
handelse.setHandelsetidpunkt(LocalDateTime.now().minusMinutes(1));
UtlatandeType utl = new UtlatandeType();
utl.setHandelse(handelse);
utl.setUtlatandeId(new UtlatandeId());
utl.getUtlatandeId().setExtension(UUID.randomUUID().toString());
CertificateStatusUpdateForCareType type = new CertificateStatusUpdateForCareType();
type.setUtlatande(utl);
return type;
}
Aggregations