1
0
mirror of https://github.com/dnpm-dip/mv64e-mtb-dto-java.git synced 2025-07-01 18:22:54 +00:00

Update data model

This commit is contained in:
2025-06-18 21:09:04 +02:00
parent c590a3e70e
commit 66dc292a69
4 changed files with 1593 additions and 1393 deletions

View File

@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
import java.util.Date;
import java.util.List;
@Data
@AllArgsConstructor
@ -28,5 +29,5 @@ public class ClaimResponse {
private ClaimResponseStatusCoding status;
@Getter(onMethod_ = {@JsonProperty("statusReason")})
@Setter(onMethod_ = {@JsonProperty("statusReason")})
private ClaimResponseStatusReasonCoding statusReason;
private List<ClaimResponseStatusReasonCoding> statusReason;
}

View File

@ -5,25 +5,18 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
import java.util.Date;
import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class IhcReport {
@Getter(onMethod_ = {@JsonProperty("blockIds")})
@Setter(onMethod_ = {@JsonProperty("blockIds")})
private List<String> blockIds;
@Getter(onMethod_ = {@JsonProperty("id")})
@Setter(onMethod_ = {@JsonProperty("id")})
private String id;
@Getter(onMethod_ = {@JsonProperty("issuedOn"), @JsonFormat(pattern = "yyyy-MM-dd")})
@Setter(onMethod_ = {@JsonProperty("issuedOn"), @JsonFormat(pattern = "yyyy-MM-dd")})
private Date issuedOn;
@Getter(onMethod_ = {@JsonProperty("journalId")})
@Setter(onMethod_ = {@JsonProperty("journalId")})
private String journalId;
@Getter(onMethod_ = {@JsonProperty("patient")})
@Setter(onMethod_ = {@JsonProperty("patient")})
private Reference patient;

View File

@ -10,8 +10,8 @@ class ConverterTest {
@Test
void shouldDeserializeJsonString() throws IOException {
var ressource = getClass().getClassLoader().getResource("mv64e-mtb-fake-patient.json");
assertNotNull(Converter.fromJsonString(new String(ressource.openStream().readAllBytes())));
var resource = getClass().getClassLoader().getResource("mv64e-mtb-fake-patient.json");
assertNotNull(Converter.fromJsonString(new String(resource.openStream().readAllBytes())));
}
}

File diff suppressed because it is too large Load Diff