use of se.inera.ifv.insuranceprocess.healthreporting.v2.HosPersonalType in project webcert by sklintyg.
the class QuestionAnswerValidator method validate.
public static List<String> validate(ReceiveMedicalCertificateQuestionType request) {
List<String> messages = new ArrayList<>();
if (request.getQuestion().getFraga() == null) {
messages.add("Missing fraga element.");
}
validateAmne(messages, request.getQuestion().getAmne());
LakarutlatandeEnkelType lakarutlatande = request.getQuestion().getLakarutlatande();
validateLakarutlatande(messages, lakarutlatande);
HosPersonalType hosPersonal = request.getQuestion().getAdressVard().getHosPersonal();
validateHosPersonal(messages, hosPersonal);
validateEnhet(messages, hosPersonal);
validateVardgivare(messages, hosPersonal);
PatientType patient = lakarutlatande.getPatient();
validatePatient(messages, patient);
return messages;
}
use of se.inera.ifv.insuranceprocess.healthreporting.v2.HosPersonalType in project webcert by sklintyg.
the class QuestionAnswerValidator method validate.
public static List<String> validate(ReceiveMedicalCertificateAnswerType request) {
List<String> messages = new ArrayList<>();
if (request.getAnswer().getSvar() == null) {
messages.add("Missing svar element.");
}
validateAmne(messages, request.getAnswer().getAmne());
LakarutlatandeEnkelType lakarutlatande = request.getAnswer().getLakarutlatande();
validateLakarutlatande(messages, lakarutlatande);
HosPersonalType hosPersonal = request.getAnswer().getAdressVard().getHosPersonal();
validateHosPersonal(messages, hosPersonal);
validateEnhet(messages, hosPersonal);
validateVardgivare(messages, hosPersonal);
PatientType patient = lakarutlatande.getPatient();
validatePatient(messages, patient);
return messages;
}
use of se.inera.ifv.insuranceprocess.healthreporting.v2.HosPersonalType in project webcert by sklintyg.
the class ConvertToFKTypes method toVardAdresseringsType.
public static VardAdresseringsType toVardAdresseringsType(Vardperson vp) {
if (vp == null) {
return null;
}
VardAdresseringsType vat = new VardAdresseringsType();
HosPersonalType hos = new HosPersonalType();
hos.setForskrivarkod(vp.getForskrivarKod());
hos.setFullstandigtNamn(vp.getNamn());
hos.setPersonalId(toII(HSA_ID_OID, vp.getHsaId()));
hos.setEnhet(toEnhetType(vp));
vat.setHosPersonal(hos);
return vat;
}
Aggregations