Create struktur data aturan pakai signa
This commit is contained in:
parent
25df6a89ca
commit
a88cf278c3
@ -0,0 +1,30 @@
|
||||
package com.jasamedika.medifirst2000.entities;
|
||||
|
||||
import com.jasamedika.medifirst2000.base.BaseTransaction;
|
||||
import com.jasamedika.medifirst2000.helper.Caption;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.hibernate.validator.constraints.NotBlank;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author salmanoe
|
||||
* @version 1.0.0
|
||||
* @since 24/10/2023
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "aturan_pakai_t")
|
||||
public class AturanPakai extends BaseTransaction implements Serializable {
|
||||
private static final long serialVersionUID = 1472868281196415583L;
|
||||
|
||||
@Column(nullable = false)
|
||||
@NotBlank
|
||||
@Caption("Keterangan Pakai")
|
||||
private String keteranganPakai;
|
||||
}
|
||||
@ -0,0 +1,67 @@
|
||||
package com.jasamedika.medifirst2000.entities;
|
||||
|
||||
import com.jasamedika.medifirst2000.base.BaseTransaction;
|
||||
import com.jasamedika.medifirst2000.helper.Caption;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Size;
|
||||
import java.io.Serializable;
|
||||
|
||||
import static javax.persistence.FetchType.LAZY;
|
||||
|
||||
/**
|
||||
* @author salmanoe
|
||||
* @version 1.0.0
|
||||
* @since 24/10/2023
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "aturan_pakai_signa_t")
|
||||
public class AturanPakaiSigna extends BaseTransaction implements Serializable {
|
||||
private static final long serialVersionUID = -4925033000498799494L;
|
||||
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "jumlahdosisfk")
|
||||
@NotNull(message = "Jumlah dosis tidak boleh kosong")
|
||||
@Caption(value = "Jumlah Dosis")
|
||||
private JumlahDosis jumlahDosis;
|
||||
|
||||
@Column(name = "jumlahdosisfk", insertable = false, updatable = false, nullable = false)
|
||||
private Long jumlahDosisId;
|
||||
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "satuandosisfk")
|
||||
@NotNull(message = "Satuan dosis tidak boleh kosong")
|
||||
@Caption(value = "Satuan Dosis")
|
||||
private SatuanDosis satuanDosis;
|
||||
|
||||
@Column(name = "satuandosisfk", insertable = false, updatable = false, nullable = false)
|
||||
private Long satuanDosisId;
|
||||
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "frekuensipakaiobatfk")
|
||||
@NotNull(message = "Frekuensi pakai obat tidak boleh kosong")
|
||||
@Caption(value = "Frekuensi Pakai Obat")
|
||||
private FrekuensiPakaiObat frekuensiPakaiObat;
|
||||
|
||||
@Column(name = "frekuensipakaiobatfk", insertable = false, updatable = false, nullable = false)
|
||||
private Long frekuensiPakaiObatId;
|
||||
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "keteranganpakaiobatfk")
|
||||
@NotNull(message = "Keterangan pakai obat tidak boleh kosong")
|
||||
@Caption(value = "Keterangan Pakai Obat")
|
||||
private KeteranganPakaiObat keteranganPakaiObat;
|
||||
|
||||
@Column(name = "keteranganpakaiobatfk", insertable = false, updatable = false, nullable = false)
|
||||
private Long keteranganPakaiObatId;
|
||||
|
||||
@Column(length = 1000)
|
||||
@Size(max = 1000)
|
||||
@Caption("Keterangan Aturan Pakai")
|
||||
private String keterangan;
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package com.jasamedika.medifirst2000.entities;
|
||||
|
||||
import com.jasamedika.medifirst2000.base.BaseActive;
|
||||
import com.jasamedika.medifirst2000.helper.Caption;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.hibernate.validator.constraints.NotBlank;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
import static javax.persistence.GenerationType.SEQUENCE;
|
||||
|
||||
/**
|
||||
* @author salmanoe
|
||||
* @version 1.0.0
|
||||
* @since 24/10/2023
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "rm_frekuensi_pakai_obat_m")
|
||||
public class FrekuensiPakaiObat extends BaseActive implements Serializable {
|
||||
@Id
|
||||
@GeneratedValue(strategy = SEQUENCE, generator = "sg_rm_frekuensi_pakai_obat_m")
|
||||
@SequenceGenerator(name = "sg_rm_frekuensi_pakai_obat_m", sequenceName = "rm_frekuensi_pakai_obat_m_seq", allocationSize = 1)
|
||||
@Column(name = "id")
|
||||
protected Long id;
|
||||
|
||||
@Column(nullable = false)
|
||||
@NotBlank
|
||||
@Caption("Frekuensi Pakai Obat")
|
||||
private String namaFrekuensi;
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package com.jasamedika.medifirst2000.entities;
|
||||
|
||||
import com.jasamedika.medifirst2000.base.BaseActive;
|
||||
import com.jasamedika.medifirst2000.helper.Caption;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.hibernate.validator.constraints.NotBlank;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
import static javax.persistence.GenerationType.SEQUENCE;
|
||||
|
||||
/**
|
||||
* @author salmanoe
|
||||
* @version 1.0.0
|
||||
* @since 24/10/2023
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "rm_jumlah_dosis_m")
|
||||
public class JumlahDosis extends BaseActive implements Serializable {
|
||||
@Id
|
||||
@GeneratedValue(strategy = SEQUENCE, generator = "sg_rm_jumlah_dosis_m")
|
||||
@SequenceGenerator(name = "sg_rm_jumlah_dosis_m", sequenceName = "rm_jumlah_dosis_seq", allocationSize = 1)
|
||||
@Column(name = "id")
|
||||
protected Long id;
|
||||
|
||||
@Column(nullable = false)
|
||||
@NotBlank
|
||||
@Caption("Jumlah Dosis")
|
||||
private String namaJumlah;
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
package com.jasamedika.medifirst2000.entities;
|
||||
|
||||
import com.jasamedika.medifirst2000.base.BaseActive;
|
||||
import com.jasamedika.medifirst2000.helper.Caption;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.hibernate.validator.constraints.NotBlank;
|
||||
|
||||
import javax.persistence.*;
|
||||
|
||||
import static javax.persistence.GenerationType.SEQUENCE;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author salmanoe
|
||||
* @version 1.0.0
|
||||
* @since 24/10/2023
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "rm_keterangan_pakai_obat_m")
|
||||
public class KeteranganPakaiObat extends BaseActive implements Serializable {
|
||||
@Id
|
||||
@GeneratedValue(strategy = SEQUENCE, generator = "sg_rm_keterangan_pakai_obat_m")
|
||||
@SequenceGenerator(name = "sg_rm_keterangan_pakai_obat_m", sequenceName = "rm_keterangan_pakai_obat_m_seq", allocationSize = 1)
|
||||
@Column(name = "id")
|
||||
protected Long id;
|
||||
|
||||
@Column(nullable = false)
|
||||
@NotBlank
|
||||
@Caption("Keterangan Pakai Obat")
|
||||
private String namaKeterangan;
|
||||
}
|
||||
@ -0,0 +1,44 @@
|
||||
package com.jasamedika.medifirst2000.entities;
|
||||
|
||||
import com.jasamedika.medifirst2000.base.BaseTransaction;
|
||||
import com.jasamedika.medifirst2000.helper.Caption;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import static javax.persistence.FetchType.LAZY;
|
||||
|
||||
/**
|
||||
* @author salmanoe
|
||||
* @version 1.0.0
|
||||
* @since 24/10/2023
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "ref_frekuensi_pakai_obat_t")
|
||||
public class ReferensiFrekuensiPakaiObat extends BaseTransaction implements Serializable {
|
||||
private static final long serialVersionUID = -3749546920616922816L;
|
||||
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "pegawaifk")
|
||||
@NotNull(message = "Pegawai tidak boleh kosong")
|
||||
@Caption(value = "Pegawai")
|
||||
private Pegawai pegawai;
|
||||
|
||||
@Column(name = "pegawaifk", insertable = false, updatable = false, nullable = false)
|
||||
private Integer pegawaiId;
|
||||
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "frekuensipakaiobatfk")
|
||||
@NotNull(message = "Frekuensi pakai obat tidak boleh kosong")
|
||||
@Caption(value = "Frekuensi Pakai Obat")
|
||||
private FrekuensiPakaiObat frekuensiPakaiObat;
|
||||
|
||||
@Column(name = "frekuensipakaiobatfk", insertable = false, updatable = false, nullable = false)
|
||||
private Long frekuensiPakaiObatId;
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
package com.jasamedika.medifirst2000.entities;
|
||||
|
||||
import com.jasamedika.medifirst2000.base.BaseTransaction;
|
||||
import com.jasamedika.medifirst2000.helper.Caption;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
import static javax.persistence.FetchType.LAZY;
|
||||
|
||||
/**
|
||||
* @author salmanoe
|
||||
* @version 1.0.0
|
||||
* @since 24/10/2023
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "ref_jumlah_dosis_t")
|
||||
public class ReferensiJumlahDosis extends BaseTransaction implements Serializable {
|
||||
private static final long serialVersionUID = -5069441697323457473L;
|
||||
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "pegawaifk")
|
||||
@NotNull(message = "Pegawai tidak boleh kosong")
|
||||
@Caption(value = "Pegawai")
|
||||
private Pegawai pegawai;
|
||||
|
||||
@Column(name = "pegawaifk", insertable = false, updatable = false, nullable = false)
|
||||
private Integer pegawaiId;
|
||||
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "jumlahdosisfk")
|
||||
@NotNull(message = "Jumlah dosis tidak boleh kosong")
|
||||
@Caption(value = "Jumlah Dosis")
|
||||
private JumlahDosis jumlahDosis;
|
||||
|
||||
@Column(name = "jumlahdosisfk", insertable = false, updatable = false, nullable = false)
|
||||
private Long jumlahDosisId;
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
package com.jasamedika.medifirst2000.entities;
|
||||
|
||||
import com.jasamedika.medifirst2000.base.BaseTransaction;
|
||||
import com.jasamedika.medifirst2000.helper.Caption;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
import static javax.persistence.FetchType.LAZY;
|
||||
|
||||
/**
|
||||
* @author salmanoe
|
||||
* @version 1.0.0
|
||||
* @since 24/10/2023
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "ref_keterangan_pakai_obat_t")
|
||||
public class ReferensiKeteranganPakaiObat extends BaseTransaction implements Serializable {
|
||||
private static final long serialVersionUID = -5627234928801568807L;
|
||||
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "pegawaifk")
|
||||
@NotNull(message = "Pegawai tidak boleh kosong")
|
||||
@Caption(value = "Pegawai")
|
||||
private Pegawai pegawai;
|
||||
|
||||
@Column(name = "pegawaifk", insertable = false, updatable = false, nullable = false)
|
||||
private Integer pegawaiId;
|
||||
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "keteranganpakaiobatfk")
|
||||
@NotNull(message = "Keterangan pakai obat tidak boleh kosong")
|
||||
@Caption(value = "Keterangan Pakai Obat")
|
||||
private KeteranganPakaiObat keteranganPakaiObat;
|
||||
|
||||
@Column(name = "keteranganpakaiobatfk", insertable = false, updatable = false, nullable = false)
|
||||
private Long keteranganPakaiObatId;
|
||||
}
|
||||
@ -0,0 +1,43 @@
|
||||
package com.jasamedika.medifirst2000.entities;
|
||||
|
||||
import com.jasamedika.medifirst2000.base.BaseTransaction;
|
||||
import com.jasamedika.medifirst2000.helper.Caption;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.persistence.*;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
import static javax.persistence.FetchType.LAZY;
|
||||
|
||||
/**
|
||||
* @author salmanoe
|
||||
* @version 1.0.0
|
||||
* @since 24/10/2023
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "ref_satuan_dosis_t")
|
||||
public class ReferensiSatuanDosis extends BaseTransaction implements Serializable {
|
||||
private static final long serialVersionUID = -4298235101503616044L;
|
||||
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "pegawaifk")
|
||||
@NotNull(message = "Pegawai tidak boleh kosong")
|
||||
@Caption(value = "Pegawai")
|
||||
private Pegawai pegawai;
|
||||
|
||||
@Column(name = "pegawaifk", insertable = false, updatable = false, nullable = false)
|
||||
private Integer pegawaiId;
|
||||
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "satuandosisfk")
|
||||
@NotNull(message = "Satuan dosis tidak boleh kosong")
|
||||
@Caption(value = "Satuan Dosis")
|
||||
private SatuanDosis satuanDosis;
|
||||
|
||||
@Column(name = "satuandosisfk", insertable = false, updatable = false, nullable = false)
|
||||
private Long satuanDosisId;
|
||||
}
|
||||
@ -1,20 +1,21 @@
|
||||
package com.jasamedika.medifirst2000.entities;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.JoinColumn;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import com.jasamedika.medifirst2000.base.BaseTransaction;
|
||||
import com.jasamedika.medifirst2000.helper.Caption;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.persistence.*;
|
||||
|
||||
import static javax.persistence.FetchType.LAZY;
|
||||
|
||||
/**
|
||||
* @author salmanoe
|
||||
* @since Aug 9, 2022
|
||||
*
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "t_resep_dokter")
|
||||
public class ResepDokter extends BaseTransaction {
|
||||
@ -24,249 +25,96 @@ public class ResepDokter extends BaseTransaction {
|
||||
@Column(name = "keteranganlainnya", length = 150)
|
||||
@Caption(value = "Keterangan Lainnya")
|
||||
private String keteranganLainnya;
|
||||
|
||||
|
||||
@Column(name = "keteranganpakai", length = 150)
|
||||
@Caption(value = "Keterangan Pakai")
|
||||
private String keteranganPakai;
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "objectprodukfk")
|
||||
@Caption(value = "Produk")
|
||||
private Produk produk;
|
||||
|
||||
@Column(name = "objectprodukfk", insertable = false, updatable = false, nullable = true)
|
||||
@Column(name = "objectprodukfk", insertable = false, updatable = false)
|
||||
private String produkId;
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "objectruanganfk")
|
||||
@Caption(value = "Ruangan")
|
||||
private Ruangan ruangan;
|
||||
|
||||
@Column(name = "objectruanganfk", insertable = false, updatable = false, nullable = true)
|
||||
@Column(name = "objectruanganfk", insertable = false, updatable = false)
|
||||
private String ruanganId;
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "objectsatuanstandarfk")
|
||||
@Caption(value = "Satuan Standard")
|
||||
private SatuanStandar satuanStandard;
|
||||
|
||||
@Column(name = "objectsatuanstandarfk", insertable = false, updatable = false, nullable = true)
|
||||
@Column(name = "objectsatuanstandarfk", insertable = false, updatable = false)
|
||||
private String satuanStandardId;
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "strukorderfk")
|
||||
@Caption(value = "No Order")
|
||||
private StrukOrder strukOrder;
|
||||
|
||||
@Column(name = "strukorderfk", columnDefinition = "CHAR(32)", insertable = false, updatable = false, nullable = true)
|
||||
@Column(name = "strukorderfk", columnDefinition = "CHAR(32)", insertable = false, updatable = false)
|
||||
private String strukOrderId;
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "jenisobatfk")
|
||||
@Caption(value = "Jenis Obat")
|
||||
private JenisObat jenisObat;
|
||||
|
||||
@Column(name = "jenisobatfk", insertable = false, updatable = false, nullable = true)
|
||||
@Column(name = "jenisobatfk", insertable = false, updatable = false)
|
||||
private String jenisObatId;
|
||||
|
||||
|
||||
@Column(name = "jumlah")
|
||||
@Caption(value = "Jumlah")
|
||||
private Double jumlah;
|
||||
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "jeniskemasanfk")
|
||||
@Caption(value = "Jenis Kemasan")
|
||||
private JenisKemasan jenisKemasan;
|
||||
|
||||
@Column(name = "jeniskemasanfk", insertable = false, updatable = false, nullable = true)
|
||||
@Column(name = "jeniskemasanfk", insertable = false, updatable = false)
|
||||
private String jenisKemasanId;
|
||||
|
||||
|
||||
@Column(name = "isverifikasi")
|
||||
@Caption(value = "Status Verifikasi")
|
||||
private Boolean isVerifikasi;
|
||||
|
||||
|
||||
@Column(name = "satuanview", length = 50)
|
||||
@Caption(value = "Satuan View")
|
||||
private String satuanView;
|
||||
|
||||
|
||||
@Column(name = "racikanke", length = 10)
|
||||
@Caption(value = "No Resep")
|
||||
private String racikanKe;
|
||||
|
||||
|
||||
@Column(name = "namaobat")
|
||||
@Caption(value = "Nama Obat")
|
||||
private String namaObat;
|
||||
|
||||
|
||||
@Column(name = "qtyproduk", length = 10)
|
||||
@Caption(value = "Jumlah Obat")
|
||||
private String qtyProduk;
|
||||
|
||||
public String getNoRec() {
|
||||
return noRec;
|
||||
}
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "aturanpakaifk")
|
||||
@Caption(value = "Aturan Pakai")
|
||||
private AturanPakai aturanPakai;
|
||||
|
||||
public void setNoRec(String noRec) {
|
||||
this.noRec = noRec;
|
||||
}
|
||||
@Column(name = "aturanpakaifk", columnDefinition = "CHAR(32)", insertable = false, updatable = false)
|
||||
private String aturanPakaiId;
|
||||
|
||||
public String getKeteranganLainnya() {
|
||||
return keteranganLainnya;
|
||||
}
|
||||
|
||||
public void setKeteranganLainnya(String keteranganLainnya) {
|
||||
this.keteranganLainnya = keteranganLainnya;
|
||||
}
|
||||
|
||||
public String getKeteranganPakai() {
|
||||
return keteranganPakai;
|
||||
}
|
||||
|
||||
public void setKeteranganPakai(String keteranganPakai) {
|
||||
this.keteranganPakai = keteranganPakai;
|
||||
}
|
||||
|
||||
public Produk getProduk() {
|
||||
return produk;
|
||||
}
|
||||
|
||||
public void setProduk(Produk produk) {
|
||||
this.produk = produk;
|
||||
}
|
||||
|
||||
public String getProdukId() {
|
||||
return produkId;
|
||||
}
|
||||
|
||||
public void setProdukId(String produkId) {
|
||||
this.produkId = produkId;
|
||||
}
|
||||
|
||||
public Ruangan getRuangan() {
|
||||
return ruangan;
|
||||
}
|
||||
|
||||
public void setRuangan(Ruangan ruangan) {
|
||||
this.ruangan = ruangan;
|
||||
}
|
||||
|
||||
public String getRuanganId() {
|
||||
return ruanganId;
|
||||
}
|
||||
|
||||
public void setRuanganId(String ruanganId) {
|
||||
this.ruanganId = ruanganId;
|
||||
}
|
||||
|
||||
public SatuanStandar getSatuanStandard() {
|
||||
return satuanStandard;
|
||||
}
|
||||
|
||||
public void setSatuanStandard(SatuanStandar satuanStandard) {
|
||||
this.satuanStandard = satuanStandard;
|
||||
}
|
||||
|
||||
public String getSatuanStandardId() {
|
||||
return satuanStandardId;
|
||||
}
|
||||
|
||||
public void setSatuanStandardId(String satuanStandardId) {
|
||||
this.satuanStandardId = satuanStandardId;
|
||||
}
|
||||
|
||||
public StrukOrder getStrukOrder() {
|
||||
return strukOrder;
|
||||
}
|
||||
|
||||
public void setStrukOrder(StrukOrder strukOrder) {
|
||||
this.strukOrder = strukOrder;
|
||||
}
|
||||
|
||||
public String getStrukOrderId() {
|
||||
return strukOrderId;
|
||||
}
|
||||
|
||||
public void setStrukOrderId(String strukOrderId) {
|
||||
this.strukOrderId = strukOrderId;
|
||||
}
|
||||
|
||||
public JenisObat getJenisObat() {
|
||||
return jenisObat;
|
||||
}
|
||||
|
||||
public void setJenisObat(JenisObat jenisObat) {
|
||||
this.jenisObat = jenisObat;
|
||||
}
|
||||
|
||||
public String getJenisObatId() {
|
||||
return jenisObatId;
|
||||
}
|
||||
|
||||
public void setJenisObatId(String jenisObatId) {
|
||||
this.jenisObatId = jenisObatId;
|
||||
}
|
||||
|
||||
public Double getJumlah() {
|
||||
return jumlah;
|
||||
}
|
||||
|
||||
public void setJumlah(Double jumlah) {
|
||||
this.jumlah = jumlah;
|
||||
}
|
||||
|
||||
public JenisKemasan getJenisKemasan() {
|
||||
return jenisKemasan;
|
||||
}
|
||||
|
||||
public void setJenisKemasan(JenisKemasan jenisKemasan) {
|
||||
this.jenisKemasan = jenisKemasan;
|
||||
}
|
||||
|
||||
public String getJenisKemasanId() {
|
||||
return jenisKemasanId;
|
||||
}
|
||||
|
||||
public void setJenisKemasanId(String jenisKemasanId) {
|
||||
this.jenisKemasanId = jenisKemasanId;
|
||||
}
|
||||
|
||||
public Boolean getIsVerifikasi() {
|
||||
return isVerifikasi;
|
||||
}
|
||||
|
||||
public void setIsVerifikasi(Boolean isVerifikasi) {
|
||||
this.isVerifikasi = isVerifikasi;
|
||||
}
|
||||
|
||||
public String getSatuanView() {
|
||||
return satuanView;
|
||||
}
|
||||
|
||||
public void setSatuanView(String satuanView) {
|
||||
this.satuanView = satuanView;
|
||||
}
|
||||
|
||||
public String getRacikanKe() {
|
||||
return racikanKe;
|
||||
}
|
||||
|
||||
public void setRacikanKe(String racikanKe) {
|
||||
this.racikanKe = racikanKe;
|
||||
}
|
||||
|
||||
public String getNamaObat() {
|
||||
return namaObat;
|
||||
}
|
||||
|
||||
public void setNamaObat(String namaObat) {
|
||||
this.namaObat = namaObat;
|
||||
}
|
||||
|
||||
public String getQtyProduk() {
|
||||
return qtyProduk;
|
||||
}
|
||||
|
||||
public void setQtyProduk(String qtyProduk) {
|
||||
this.qtyProduk = qtyProduk;
|
||||
}
|
||||
@ManyToOne(fetch = LAZY)
|
||||
@JoinColumn(name = "aturanpakaisignafk")
|
||||
@Caption(value = "Aturan Pakai Signa")
|
||||
private AturanPakaiSigna aturanPakaiSigna;
|
||||
|
||||
@Column(name = "aturanpakaisignafk", columnDefinition = "CHAR(32)", insertable = false, updatable = false)
|
||||
private String aturanPakaiSignaId;
|
||||
}
|
||||
|
||||
@ -0,0 +1,34 @@
|
||||
package com.jasamedika.medifirst2000.entities;
|
||||
|
||||
import com.jasamedika.medifirst2000.base.BaseActive;
|
||||
import com.jasamedika.medifirst2000.helper.Caption;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.hibernate.validator.constraints.NotBlank;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
import static javax.persistence.GenerationType.SEQUENCE;
|
||||
|
||||
/**
|
||||
* @author salmanoe
|
||||
* @version 1.0.0
|
||||
* @since 24/10/2023
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@Entity
|
||||
@Table(name = "rm_satuan_dosis_m")
|
||||
public class SatuanDosis extends BaseActive implements Serializable {
|
||||
@Id
|
||||
@GeneratedValue(strategy = SEQUENCE, generator = "sg_rm_satuan_dosis_m")
|
||||
@SequenceGenerator(name = "sg_rm_satuan_dosis_m", sequenceName = "rm_satuan_dosis_m_seq", allocationSize = 1)
|
||||
@Column(name = "id")
|
||||
protected Long id;
|
||||
|
||||
@Column(nullable = false)
|
||||
@NotBlank
|
||||
@Caption("Satuan Dosis")
|
||||
private String namaSatuan;
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
package com.jasamedika.medifirst2000.vo;
|
||||
|
||||
import com.jasamedika.medifirst2000.base.vo.BaseTransactionVO;
|
||||
import com.jasamedika.medifirst2000.helper.Caption;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
import javax.validation.constraints.Size;
|
||||
|
||||
/**
|
||||
* @author salmanoe
|
||||
* @version 1.0.0
|
||||
* @since 24/10/2023
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class AturanPakaiSignaVO extends BaseTransactionVO {
|
||||
@NotNull(message = "Jumlah dosis tidak boleh kosong")
|
||||
@Caption(value = "Jumlah Dosis")
|
||||
private JumlahDosisVO jumlahDosis;
|
||||
|
||||
private Long jumlahDosisId;
|
||||
|
||||
@NotNull(message = "Satuan dosis tidak boleh kosong")
|
||||
@Caption(value = "Satuan Dosis")
|
||||
private SatuanDosisVO satuanDosis;
|
||||
|
||||
private Long satuanDosisId;
|
||||
|
||||
@NotNull(message = "Frekuensi pakai obat tidak boleh kosong")
|
||||
@Caption(value = "Frekuensi Pakai Obat")
|
||||
private FrekuensiPakaiObatVO frekuensiPakaiObat;
|
||||
|
||||
private Long frekuensiPakaiObatId;
|
||||
|
||||
@NotNull(message = "Keterangan pakai obat tidak boleh kosong")
|
||||
@Caption(value = "Keterangan Pakai Obat")
|
||||
private KeteranganPakaiObatVO keteranganPakaiObat;
|
||||
|
||||
private Long keteranganPakaiObatId;
|
||||
|
||||
@Size(max = 1000)
|
||||
@Caption("Keterangan Aturan Pakai")
|
||||
private String keterangan;
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
package com.jasamedika.medifirst2000.vo;
|
||||
|
||||
import com.jasamedika.medifirst2000.base.vo.BaseTransactionVO;
|
||||
import com.jasamedika.medifirst2000.helper.Caption;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.hibernate.validator.constraints.NotBlank;
|
||||
|
||||
/**
|
||||
* @author salmanoe
|
||||
* @version 1.0.0
|
||||
* @since 24/10/2023
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class AturanPakaiVO extends BaseTransactionVO {
|
||||
@NotBlank
|
||||
@Caption("Keterangan Pakai")
|
||||
private String keteranganPakai;
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
package com.jasamedika.medifirst2000.vo;
|
||||
|
||||
import com.jasamedika.medifirst2000.base.vo.BaseActiveVO;
|
||||
import com.jasamedika.medifirst2000.helper.Caption;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.hibernate.validator.constraints.NotBlank;
|
||||
|
||||
/**
|
||||
* @author salmanoe
|
||||
* @version 1.0.0
|
||||
* @since 24/10/2023
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class FrekuensiPakaiObatVO extends BaseActiveVO {
|
||||
private Long id;
|
||||
|
||||
@NotBlank
|
||||
@Caption("Frekuensi Pakai Obat")
|
||||
private String namaFrekuensi;
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
package com.jasamedika.medifirst2000.vo;
|
||||
|
||||
import com.jasamedika.medifirst2000.base.vo.BaseActiveVO;
|
||||
import com.jasamedika.medifirst2000.helper.Caption;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.hibernate.validator.constraints.NotBlank;
|
||||
|
||||
/**
|
||||
* @author salmanoe
|
||||
* @version 1.0.0
|
||||
* @since 24/10/2023
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class JumlahDosisVO extends BaseActiveVO {
|
||||
protected Long id;
|
||||
|
||||
@NotBlank
|
||||
@Caption("Jumlah Dosis")
|
||||
private String namaJumlah;
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package com.jasamedika.medifirst2000.vo;
|
||||
|
||||
import com.jasamedika.medifirst2000.base.vo.BaseActiveVO;
|
||||
import com.jasamedika.medifirst2000.helper.Caption;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.hibernate.validator.constraints.NotBlank;
|
||||
|
||||
import javax.persistence.Column;
|
||||
|
||||
/**
|
||||
* @author salmanoe
|
||||
* @version 1.0.0
|
||||
* @since 24/10/2023
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class KeteranganPakaiObatVO extends BaseActiveVO {
|
||||
private Long id;
|
||||
|
||||
@Column(nullable = false)
|
||||
@NotBlank
|
||||
@Caption("Keterangan Pakai Obat")
|
||||
private String namaKeterangan;
|
||||
}
|
||||
@ -2,234 +2,79 @@ package com.jasamedika.medifirst2000.vo;
|
||||
|
||||
import com.jasamedika.medifirst2000.base.vo.BaseTransactionVO;
|
||||
import com.jasamedika.medifirst2000.helper.Caption;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* @author salmanoe
|
||||
* @since Aug 9, 2022
|
||||
*
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class ResepDokterVO extends BaseTransactionVO {
|
||||
|
||||
|
||||
@Caption(value = "Keterangan Lainnya")
|
||||
private String keteranganLainnya;
|
||||
|
||||
|
||||
@Caption(value = "Keterangan Pakai")
|
||||
private String keteranganPakai;
|
||||
|
||||
|
||||
@Caption(value = "Produk")
|
||||
private ProdukVO produk;
|
||||
|
||||
private String produkId;
|
||||
|
||||
|
||||
@Caption(value = "Ruangan")
|
||||
private RuanganVO ruangan;
|
||||
|
||||
private String ruanganId;
|
||||
|
||||
|
||||
@Caption(value = "Satuan Standard")
|
||||
private SatuanStandarVO satuanStandard;
|
||||
|
||||
private String satuanStandardId;
|
||||
|
||||
|
||||
@Caption(value = "No Order")
|
||||
private StrukOrderVO strukOrder;
|
||||
|
||||
private String strukOrderId;
|
||||
|
||||
|
||||
@Caption(value = "Jenis Obat")
|
||||
private JenisObatVO jenisObat;
|
||||
|
||||
private String jenisObatId;
|
||||
|
||||
|
||||
@Caption(value = "Jumlah")
|
||||
private Double jumlah;
|
||||
|
||||
|
||||
@Caption(value = "Jenis Kemasan")
|
||||
private JenisKemasanVO jenisKemasan;
|
||||
|
||||
private String jenisKemasanId;
|
||||
|
||||
|
||||
@Caption(value = "Status Verifikasi")
|
||||
private Boolean isVerifikasi;
|
||||
|
||||
|
||||
@Caption(value = "Satuan View")
|
||||
private String satuanView;
|
||||
|
||||
|
||||
@Caption(value = "No Resep")
|
||||
private String racikanKe;
|
||||
|
||||
|
||||
@Caption(value = "Nama Obat")
|
||||
private String namaObat;
|
||||
|
||||
|
||||
@Caption(value = "Jumlah Obat")
|
||||
private String qtyProduk;
|
||||
|
||||
public String getNoRec() {
|
||||
return noRec;
|
||||
}
|
||||
@Caption(value = "Aturan Pakai")
|
||||
private AturanPakaiVO aturanPakai;
|
||||
|
||||
public void setNoRec(String noRec) {
|
||||
this.noRec = noRec;
|
||||
}
|
||||
private String aturanPakaiId;
|
||||
|
||||
public String getKeteranganLainnya() {
|
||||
return keteranganLainnya;
|
||||
}
|
||||
|
||||
public void setKeteranganLainnya(String keteranganLainnya) {
|
||||
this.keteranganLainnya = keteranganLainnya;
|
||||
}
|
||||
|
||||
public String getKeteranganPakai() {
|
||||
return keteranganPakai;
|
||||
}
|
||||
|
||||
public void setKeteranganPakai(String keteranganPakai) {
|
||||
this.keteranganPakai = keteranganPakai;
|
||||
}
|
||||
|
||||
public ProdukVO getProduk() {
|
||||
return produk;
|
||||
}
|
||||
|
||||
public void setProduk(ProdukVO produk) {
|
||||
this.produk = produk;
|
||||
}
|
||||
|
||||
public String getProdukId() {
|
||||
return produkId;
|
||||
}
|
||||
|
||||
public void setProdukId(String produkId) {
|
||||
this.produkId = produkId;
|
||||
}
|
||||
|
||||
public RuanganVO getRuangan() {
|
||||
return ruangan;
|
||||
}
|
||||
|
||||
public void setRuangan(RuanganVO ruangan) {
|
||||
this.ruangan = ruangan;
|
||||
}
|
||||
|
||||
public String getRuanganId() {
|
||||
return ruanganId;
|
||||
}
|
||||
|
||||
public void setRuanganId(String ruanganId) {
|
||||
this.ruanganId = ruanganId;
|
||||
}
|
||||
|
||||
public SatuanStandarVO getSatuanStandard() {
|
||||
return satuanStandard;
|
||||
}
|
||||
|
||||
public void setSatuanStandard(SatuanStandarVO satuanStandard) {
|
||||
this.satuanStandard = satuanStandard;
|
||||
}
|
||||
|
||||
public String getSatuanStandardId() {
|
||||
return satuanStandardId;
|
||||
}
|
||||
|
||||
public void setSatuanStandardId(String satuanStandardId) {
|
||||
this.satuanStandardId = satuanStandardId;
|
||||
}
|
||||
|
||||
public StrukOrderVO getStrukOrder() {
|
||||
return strukOrder;
|
||||
}
|
||||
|
||||
public void setStrukOrder(StrukOrderVO strukOrder) {
|
||||
this.strukOrder = strukOrder;
|
||||
}
|
||||
|
||||
public String getStrukOrderId() {
|
||||
return strukOrderId;
|
||||
}
|
||||
|
||||
public void setStrukOrderId(String strukOrderId) {
|
||||
this.strukOrderId = strukOrderId;
|
||||
}
|
||||
|
||||
public JenisObatVO getJenisObat() {
|
||||
return jenisObat;
|
||||
}
|
||||
|
||||
public void setJenisObat(JenisObatVO jenisObat) {
|
||||
this.jenisObat = jenisObat;
|
||||
}
|
||||
|
||||
public String getJenisObatId() {
|
||||
return jenisObatId;
|
||||
}
|
||||
|
||||
public void setJenisObatId(String jenisObatId) {
|
||||
this.jenisObatId = jenisObatId;
|
||||
}
|
||||
|
||||
public Double getJumlah() {
|
||||
return jumlah;
|
||||
}
|
||||
|
||||
public void setJumlah(Double jumlah) {
|
||||
this.jumlah = jumlah;
|
||||
}
|
||||
|
||||
public JenisKemasanVO getJenisKemasan() {
|
||||
return jenisKemasan;
|
||||
}
|
||||
|
||||
public void setJenisKemasan(JenisKemasanVO jenisKemasan) {
|
||||
this.jenisKemasan = jenisKemasan;
|
||||
}
|
||||
|
||||
public String getJenisKemasanId() {
|
||||
return jenisKemasanId;
|
||||
}
|
||||
|
||||
public void setJenisKemasanId(String jenisKemasanId) {
|
||||
this.jenisKemasanId = jenisKemasanId;
|
||||
}
|
||||
|
||||
public Boolean getIsVerifikasi() {
|
||||
return isVerifikasi;
|
||||
}
|
||||
|
||||
public void setIsVerifikasi(Boolean isVerifikasi) {
|
||||
this.isVerifikasi = isVerifikasi;
|
||||
}
|
||||
|
||||
public String getSatuanView() {
|
||||
return satuanView;
|
||||
}
|
||||
|
||||
public void setSatuanView(String satuanView) {
|
||||
this.satuanView = satuanView;
|
||||
}
|
||||
|
||||
public String getRacikanKe() {
|
||||
return racikanKe;
|
||||
}
|
||||
|
||||
public void setRacikanKe(String racikanKe) {
|
||||
this.racikanKe = racikanKe;
|
||||
}
|
||||
|
||||
public String getNamaObat() {
|
||||
return namaObat;
|
||||
}
|
||||
|
||||
public void setNamaObat(String namaObat) {
|
||||
this.namaObat = namaObat;
|
||||
}
|
||||
|
||||
public String getQtyProduk() {
|
||||
return qtyProduk;
|
||||
}
|
||||
|
||||
public void setQtyProduk(String qtyProduk) {
|
||||
this.qtyProduk = qtyProduk;
|
||||
}
|
||||
@Caption(value = "Aturan Pakai Signa")
|
||||
private AturanPakaiSignaVO aturanPakaiSigna;
|
||||
|
||||
private String aturanPakaiSignaId;
|
||||
}
|
||||
|
||||
@ -0,0 +1,22 @@
|
||||
package com.jasamedika.medifirst2000.vo;
|
||||
|
||||
import com.jasamedika.medifirst2000.base.vo.BaseActiveVO;
|
||||
import com.jasamedika.medifirst2000.helper.Caption;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
import org.hibernate.validator.constraints.NotBlank;
|
||||
|
||||
/**
|
||||
* @author salmanoe
|
||||
* @version 1.0.0
|
||||
* @since 24/10/2023
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
public class SatuanDosisVO extends BaseActiveVO {
|
||||
protected Long id;
|
||||
|
||||
@NotBlank
|
||||
@Caption("Satuan Dosis")
|
||||
private String namaSatuan;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user