-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#deploy-test-sykemelding-api
- Loading branch information
Showing
2 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
...bjects/src/main/java/no/nav/testnav/libs/dto/sykemelding/v1/UtdypendeOpplysningerDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package no.nav.testnav.libs.dto.sykemelding.v1; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import static java.util.Objects.isNull; | ||
|
||
@Data | ||
@Builder | ||
@AllArgsConstructor | ||
public class UtdypendeOpplysningerDTO { | ||
|
||
private String spmGruppeId; | ||
private String spmGruppeTekst; | ||
private List<SvarType> spmSvar; | ||
|
||
public List<SvarType> getSpmSvar() { | ||
|
||
if (isNull(spmSvar)) { | ||
spmSvar = new ArrayList<>(); | ||
} | ||
return spmSvar; | ||
} | ||
|
||
public enum Restriksjon { | ||
SKJERMET_FOR_ARBEIDSGIVER, | ||
SKJERMET_FOR_PASIENT, | ||
SKJERMET_FOR_NAV | ||
} | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public static class SvarType { | ||
|
||
private String spmId; | ||
private String spmTekst; | ||
private Restriksjon restriksjon; | ||
private String svarTekst; | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
...fer-objects/src/main/java/no/nav/testnav/libs/dto/sykemelding/v1/ValidationResultDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package no.nav.testnav.libs.dto.sykemelding.v1; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import org.springframework.http.HttpStatus; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import static java.util.Objects.isNull; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class ValidationResultDTO { | ||
|
||
private HttpStatus httpStatus; | ||
private String message; | ||
|
||
private AllowedValues status; | ||
private List<Items> ruleHits; | ||
|
||
public List<Items> getRuleHits() { | ||
|
||
if (isNull(ruleHits)) { | ||
ruleHits = new ArrayList<>(); | ||
} | ||
return ruleHits; | ||
} | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public static class Items { | ||
|
||
private String ruleName; | ||
private String messageForSender; | ||
private String messageForUser; | ||
private AllowedValues ruleStatus; | ||
} | ||
|
||
public enum AllowedValues {OK, MANUAL_PROCESSING, INVALID} | ||
} |