Update entity pelayanan pasien
Penerapan relasi sayatan untuk persiapan penyesuaian logbook remunerasi dokter
This commit is contained in:
parent
73ec71553d
commit
81fc0c668c
@ -0,0 +1,13 @@
|
|||||||
|
package com.jasamedika.medifirst2000.dao;
|
||||||
|
|
||||||
|
import com.jasamedika.medifirst2000.entities.Sayatan;
|
||||||
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Salman Manoe
|
||||||
|
* @version 1.0.0
|
||||||
|
* @since 07 Sep 2023
|
||||||
|
*/
|
||||||
|
public interface SayatanDao extends JpaRepository<Sayatan, Integer> {
|
||||||
|
|
||||||
|
}
|
||||||
@ -253,6 +253,14 @@ public class PelayananPasien extends MedicalRecordTransaction {
|
|||||||
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "pelayananPasien")
|
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "pelayananPasien")
|
||||||
private Set<PelayananPasienDetail> pelayananPasienDetailSet = new HashSet<>();
|
private Set<PelayananPasienDetail> pelayananPasienDetailSet = new HashSet<>();
|
||||||
|
|
||||||
|
@ManyToOne(fetch = FetchType.LAZY)
|
||||||
|
@Caption(value = "Sayatan")
|
||||||
|
@JoinColumn(name = "sayatan")
|
||||||
|
private Sayatan sayatan;
|
||||||
|
|
||||||
|
@Column(name = "sayatan", insertable = false, updatable = false)
|
||||||
|
private Integer sayatanId;
|
||||||
|
|
||||||
@ManyToOne(fetch = FetchType.LAZY)
|
@ManyToOne(fetch = FetchType.LAZY)
|
||||||
@Caption(value = "Voucher Paket")
|
@Caption(value = "Voucher Paket")
|
||||||
@JoinColumn(name = "voucherpaketfk")
|
@JoinColumn(name = "voucherpaketfk")
|
||||||
|
|||||||
@ -0,0 +1,57 @@
|
|||||||
|
package com.jasamedika.medifirst2000.entities;
|
||||||
|
|
||||||
|
import com.jasamedika.medifirst2000.base.BaseMaster;
|
||||||
|
import com.jasamedika.medifirst2000.helper.Caption;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
import javax.persistence.*;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
import static javax.persistence.FetchType.LAZY;
|
||||||
|
import static javax.persistence.GenerationType.SEQUENCE;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Salman Manoe
|
||||||
|
* @version 1.0.0
|
||||||
|
* @since 07 Sep 2023
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Entity
|
||||||
|
@Table(name = "sayatan_operasi_m")
|
||||||
|
public class Sayatan extends BaseMaster implements Serializable {
|
||||||
|
|
||||||
|
@Id
|
||||||
|
@GeneratedValue(strategy = SEQUENCE, generator = "sayatan_operasi_t_pkey")
|
||||||
|
@SequenceGenerator(name = "sayatan_operasi_t_pkey", sequenceName = "public.sayatan_operasi_t_pkey", allocationSize = 1)
|
||||||
|
@Column(name = "id")
|
||||||
|
protected Integer id;
|
||||||
|
|
||||||
|
@Column(name = "nama_sayatan")
|
||||||
|
@Caption(value = "Nama Sayatan")
|
||||||
|
private String nama;
|
||||||
|
|
||||||
|
@Column(name = "urutan_sayatan")
|
||||||
|
@Caption(value = "Urutan Sayatan")
|
||||||
|
private Integer urutan;
|
||||||
|
|
||||||
|
@Column(name = "jumlah_persen")
|
||||||
|
@Caption(value = "Jumlah Persen")
|
||||||
|
private Integer persen;
|
||||||
|
|
||||||
|
@ManyToOne(fetch = LAZY)
|
||||||
|
@JoinColumn(name = "objectpegawaifk")
|
||||||
|
@Caption(value = "Pegawai")
|
||||||
|
private Pegawai pegawai;
|
||||||
|
|
||||||
|
@Column(name = "objectpegawaifk", insertable = false, updatable = false)
|
||||||
|
private Integer pegawaiId;
|
||||||
|
|
||||||
|
@Column(name = "tglinput")
|
||||||
|
@Caption(value = "Tanggal Input")
|
||||||
|
private Date tglInput;
|
||||||
|
|
||||||
|
}
|
||||||
@ -156,6 +156,11 @@ public class PelayananPasienVO extends MedicalRecordTransactionVO {
|
|||||||
|
|
||||||
private Integer satuanViewId;
|
private Integer satuanViewId;
|
||||||
|
|
||||||
|
@Caption(value = "Sayatan")
|
||||||
|
private SayatanVO sayatan;
|
||||||
|
|
||||||
|
private Integer sayatanId;
|
||||||
|
|
||||||
@Caption(value = "Voucher Paket")
|
@Caption(value = "Voucher Paket")
|
||||||
private VoucherPaketVO voucherPaket;
|
private VoucherPaketVO voucherPaket;
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,36 @@
|
|||||||
|
package com.jasamedika.medifirst2000.vo;
|
||||||
|
|
||||||
|
import com.jasamedika.medifirst2000.base.vo.BaseMasterVO;
|
||||||
|
import com.jasamedika.medifirst2000.helper.Caption;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Salman Manoe
|
||||||
|
* @version 1.0.0
|
||||||
|
* @since 07 Sep 2023
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
public class SayatanVO extends BaseMasterVO {
|
||||||
|
|
||||||
|
@Caption(value = "Nama Sayatan")
|
||||||
|
private String nama;
|
||||||
|
|
||||||
|
@Caption(value = "Urutan Sayatan")
|
||||||
|
private Integer urutan;
|
||||||
|
|
||||||
|
@Caption(value = "Jumlah Persen")
|
||||||
|
private Integer persen;
|
||||||
|
|
||||||
|
@Caption(value = "Pegawai")
|
||||||
|
private PegawaiVO pegawai;
|
||||||
|
|
||||||
|
private Integer pegawaiId;
|
||||||
|
|
||||||
|
@Caption(value = "Tanggal Input")
|
||||||
|
private Date tglInput;
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user