2026-07-30 10:37:16 +02:00
|
|
|
package com.triz.trizservice.modeles;
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.List;
|
2026-09-04 11:45:31 +02:00
|
|
|
import java.util.UUID;
|
2026-07-30 10:37:16 +02:00
|
|
|
import javax.persistence.Basic;
|
|
|
|
|
import javax.persistence.Column;
|
|
|
|
|
import javax.persistence.Entity;
|
2026-09-04 11:45:31 +02:00
|
|
|
import javax.persistence.GeneratedValue;
|
2026-07-30 10:37:16 +02:00
|
|
|
import javax.persistence.Id;
|
|
|
|
|
import javax.persistence.JoinColumn;
|
|
|
|
|
import javax.persistence.Lob;
|
|
|
|
|
import javax.persistence.ManyToOne;
|
|
|
|
|
import javax.persistence.NamedQueries;
|
|
|
|
|
import javax.persistence.NamedQuery;
|
|
|
|
|
import javax.persistence.OneToMany;
|
|
|
|
|
import javax.persistence.Table;
|
|
|
|
|
import javax.persistence.Temporal;
|
|
|
|
|
import javax.persistence.TemporalType;
|
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
|
import javax.validation.constraints.Size;
|
|
|
|
|
import javax.xml.bind.annotation.XmlRootElement;
|
|
|
|
|
import javax.xml.bind.annotation.XmlTransient;
|
|
|
|
|
|
|
|
|
|
@Entity
|
|
|
|
|
@Table(name = "examen")
|
|
|
|
|
@XmlRootElement
|
|
|
|
|
@NamedQueries({
|
|
|
|
|
@NamedQuery(name = "Examen.findAll", query = "SELECT e FROM Examen e"),
|
|
|
|
|
@NamedQuery(name = "Examen.findByUrlAccNum", query = "SELECT e FROM Examen e WHERE e.urlAccNum = :urlAccNum"),
|
|
|
|
|
@NamedQuery(name = "Examen.findByAnnule", query = "SELECT e FROM Examen e WHERE e.annule = :annule"),
|
|
|
|
|
@NamedQuery(name = "Examen.findByDate", query = "SELECT e FROM Examen e WHERE e.date = :date"),
|
|
|
|
|
@NamedQuery(name = "Examen.findByHeureDebut", query = "SELECT e FROM Examen e WHERE e.heureDebut = :heureDebut"),
|
|
|
|
|
@NamedQuery(name = "Examen.findByHeureFin", query = "SELECT e FROM Examen e WHERE e.heureFin = :heureFin"),
|
|
|
|
|
@NamedQuery(name = "Examen.findByRegionExaminee", query = "SELECT e FROM Examen e WHERE e.regionExaminee = :regionExaminee"),
|
|
|
|
|
@NamedQuery(name = "Examen.findByLateralite", query = "SELECT e FROM Examen e WHERE e.lateralite = :lateralite"),
|
|
|
|
|
@NamedQuery(name = "Examen.findByIndicationClinique", query = "SELECT e FROM Examen e WHERE e.indicationClinique = :indicationClinique"),
|
|
|
|
|
@NamedQuery(name = "Examen.findByStudyInstanceUid", query = "SELECT e FROM Examen e WHERE e.studyInstanceUid = :studyInstanceUid")})
|
|
|
|
|
public class Examen implements Serializable {
|
|
|
|
|
|
2026-08-13 16:57:29 +02:00
|
|
|
@Size(max = 2147483647)
|
|
|
|
|
@Column(name = "url_acc_num")
|
|
|
|
|
private String urlAccNum;
|
|
|
|
|
@Size(max = 2147483647)
|
|
|
|
|
@Column(name = "region_examinee")
|
|
|
|
|
private String regionExaminee;
|
|
|
|
|
@Size(max = 2147483647)
|
|
|
|
|
@Column(name = "lateralite")
|
|
|
|
|
private String lateralite;
|
|
|
|
|
@Size(max = 2147483647)
|
|
|
|
|
@Column(name = "indication_clinique")
|
|
|
|
|
private String indicationClinique;
|
|
|
|
|
@Size(max = 2147483647)
|
|
|
|
|
@Column(name = "study_instance_uid")
|
|
|
|
|
private String studyInstanceUid;
|
|
|
|
|
|
2026-07-30 10:37:16 +02:00
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
@Id
|
|
|
|
|
@Basic(optional = false)
|
|
|
|
|
@NotNull
|
2026-09-04 11:45:31 +02:00
|
|
|
@GeneratedValue
|
2026-07-30 10:37:16 +02:00
|
|
|
@Column(name = "id")
|
2026-09-04 11:45:31 +02:00
|
|
|
private UUID id;
|
2026-07-30 10:37:16 +02:00
|
|
|
@Column(name = "annule")
|
|
|
|
|
private Boolean annule;
|
|
|
|
|
@Column(name = "date")
|
|
|
|
|
@Temporal(TemporalType.DATE)
|
|
|
|
|
private Date date;
|
|
|
|
|
@Column(name = "heure_debut")
|
|
|
|
|
@Temporal(TemporalType.TIME)
|
|
|
|
|
private Date heureDebut;
|
|
|
|
|
@Column(name = "heure_fin")
|
|
|
|
|
@Temporal(TemporalType.TIME)
|
|
|
|
|
private Date heureFin;
|
|
|
|
|
@OneToMany(mappedBy = "fkExamen")
|
|
|
|
|
private List<ImageCles> imageClesList;
|
|
|
|
|
@OneToMany(mappedBy = "fkExamen")
|
|
|
|
|
private List<FichierExamen> fichierExamenList;
|
|
|
|
|
@OneToMany(mappedBy = "fkExamen")
|
|
|
|
|
private List<Consultation> consultationList;
|
|
|
|
|
|
2026-09-04 11:45:31 +02:00
|
|
|
@ManyToOne
|
|
|
|
|
@JoinColumn(name = "fk_queue")
|
|
|
|
|
private Queue fkQueue;
|
|
|
|
|
|
|
|
|
|
// MODIF : ajout de l'interprète assigné (le seul champ "médecin" conservé sur Examen)
|
|
|
|
|
@JoinColumn(name = "fk_interpreteur_assi", referencedColumnName = "id")
|
|
|
|
|
@ManyToOne
|
|
|
|
|
private Medecin fkInterpreteurAssi;
|
|
|
|
|
|
|
|
|
|
@ManyToOne
|
|
|
|
|
@JoinColumn(name = "fk_manipulateur")
|
|
|
|
|
private Medecin manipulateur;
|
|
|
|
|
|
|
|
|
|
@Size(max = 2147483647)
|
|
|
|
|
@Column(name = "observation")
|
|
|
|
|
private String observation;
|
|
|
|
|
|
2026-07-30 10:37:16 +02:00
|
|
|
public Examen() {
|
|
|
|
|
}
|
|
|
|
|
|
2026-09-04 11:45:31 +02:00
|
|
|
public Examen(UUID id) {
|
2026-07-30 10:37:16 +02:00
|
|
|
this.id = id;
|
|
|
|
|
}
|
|
|
|
|
|
2026-09-04 11:45:31 +02:00
|
|
|
public UUID getId() {
|
2026-07-30 10:37:16 +02:00
|
|
|
return id;
|
|
|
|
|
}
|
|
|
|
|
|
2026-09-04 11:45:31 +02:00
|
|
|
public void setId(UUID id) {
|
2026-07-30 10:37:16 +02:00
|
|
|
this.id = id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getUrlAccNum() {
|
|
|
|
|
return urlAccNum;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setUrlAccNum(String urlAccNum) {
|
|
|
|
|
this.urlAccNum = urlAccNum;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Boolean getAnnule() {
|
|
|
|
|
return annule;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setAnnule(Boolean annule) {
|
|
|
|
|
this.annule = annule;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Date getDate() {
|
|
|
|
|
return date;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setDate(Date date) {
|
|
|
|
|
this.date = date;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Date getHeureDebut() {
|
|
|
|
|
return heureDebut;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setHeureDebut(Date heureDebut) {
|
|
|
|
|
this.heureDebut = heureDebut;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Date getHeureFin() {
|
|
|
|
|
return heureFin;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setHeureFin(Date heureFin) {
|
|
|
|
|
this.heureFin = heureFin;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getRegionExaminee() {
|
|
|
|
|
return regionExaminee;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setRegionExaminee(String regionExaminee) {
|
|
|
|
|
this.regionExaminee = regionExaminee;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getIndicationClinique() {
|
|
|
|
|
return indicationClinique;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setIndicationClinique(String indicationClinique) {
|
|
|
|
|
this.indicationClinique = indicationClinique;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getStudyInstanceUid() {
|
|
|
|
|
return studyInstanceUid;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setStudyInstanceUid(String studyInstanceUid) {
|
|
|
|
|
this.studyInstanceUid = studyInstanceUid;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@XmlTransient
|
|
|
|
|
public List<ImageCles> getImageClesList() {
|
|
|
|
|
return imageClesList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setImageClesList(List<ImageCles> imageClesList) {
|
|
|
|
|
this.imageClesList = imageClesList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@XmlTransient
|
|
|
|
|
public List<FichierExamen> getFichierExamenList() {
|
|
|
|
|
return fichierExamenList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setFichierExamenList(List<FichierExamen> fichierExamenList) {
|
|
|
|
|
this.fichierExamenList = fichierExamenList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@XmlTransient
|
|
|
|
|
public List<Consultation> getConsultationList() {
|
|
|
|
|
return consultationList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setConsultationList(List<Consultation> consultationList) {
|
|
|
|
|
this.consultationList = consultationList;
|
|
|
|
|
}
|
|
|
|
|
|
2026-09-04 11:45:31 +02:00
|
|
|
public Medecin getFkInterpreteurAssi() {
|
|
|
|
|
return fkInterpreteurAssi;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setFkInterpreteurAssi(Medecin fkInterpreteurAssi) {
|
|
|
|
|
this.fkInterpreteurAssi = fkInterpreteurAssi;
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-30 10:37:16 +02:00
|
|
|
@Override
|
|
|
|
|
public int hashCode() {
|
|
|
|
|
int hash = 0;
|
|
|
|
|
hash += (id != null ? id.hashCode() : 0);
|
|
|
|
|
return hash;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean equals(Object object) {
|
|
|
|
|
if (!(object instanceof Examen)) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
Examen other = (Examen) object;
|
|
|
|
|
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String toString() {
|
|
|
|
|
return "com.triz.trizservice.modeles.Examen[ id=" + id + " ]";
|
|
|
|
|
}
|
2026-08-13 16:57:29 +02:00
|
|
|
|
2026-09-04 11:45:31 +02:00
|
|
|
public String getLateralite() {
|
|
|
|
|
return lateralite;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setLateralite(String lateralite) {
|
|
|
|
|
this.lateralite = lateralite;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Queue getFkQueue() {
|
|
|
|
|
return fkQueue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setFkQueue(Queue fkQueue) {
|
|
|
|
|
this.fkQueue = fkQueue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getObservation() {
|
|
|
|
|
return observation;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setObservation(String observation) {
|
|
|
|
|
this.observation = observation;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Medecin getManipulateur() {
|
|
|
|
|
return manipulateur;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setManipulateur(Medecin manipulateur) {
|
|
|
|
|
this.manipulateur = manipulateur;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-07-30 10:37:16 +02:00
|
|
|
}
|