Search in sources :

Example 1 with SpecialitetType

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

the class ElegWebCertUserDetailsService method decorateWebCertUserWithSpecialiceringar.

private void decorateWebCertUserWithSpecialiceringar(HoSPersonType hosPerson, WebCertUser webCertUser) {
    List<String> specialiteter = new ArrayList<>();
    for (SpecialitetType st : hosPerson.getSpecialitet()) {
        specialiteter.add(st.getNamn());
    }
    webCertUser.setSpecialiseringar(specialiteter);
}
Also used : ArrayList(java.util.ArrayList) SpecialitetType(se.riv.infrastructure.directory.privatepractitioner.v1.SpecialitetType)

Aggregations

ArrayList (java.util.ArrayList)1 SpecialitetType (se.riv.infrastructure.directory.privatepractitioner.v1.SpecialitetType)1