Update PasienDto.java
Perbaikan json format untuk tanggal lahir saat ekstraksi dan transformasi
This commit is contained in:
parent
147d143b52
commit
34f0bcaa7a
@ -1,11 +1,19 @@
|
||||
package com.jasamedika.medifirst2000.etl.pasien.dto;
|
||||
|
||||
import lombok.*;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.extern.jackson.Jacksonized;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
import static org.springframework.format.annotation.DateTimeFormat.ISO.DATE_TIME;
|
||||
|
||||
/**
|
||||
* @author salmanoe
|
||||
* @version 1.0.0
|
||||
@ -15,6 +23,7 @@ import java.util.UUID;
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Jacksonized
|
||||
public class PasienDto {
|
||||
private UUID id;
|
||||
private String noRekamMedis;
|
||||
@ -25,6 +34,8 @@ public class PasienDto {
|
||||
private SapaanDto sapaan;
|
||||
private Set<IdentitasDto> identitas;
|
||||
private String tempatLahir;
|
||||
@DateTimeFormat(iso = DATE_TIME)
|
||||
@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSZ")
|
||||
private LocalDateTime tanggalLahir;
|
||||
private JenisKelaminDto jenisKelamin;
|
||||
private GolonganDarahDto golonganDarah;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user