Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@
import jakarta.persistence.Transient;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.annotations.Expose;
import lombok.Data;

@Entity
@Data
@Table(name = "t_cancergynecologicalexamination")
public class CancerGynecologicalExamination {
@Id
Expand Down Expand Up @@ -92,6 +95,11 @@ public class CancerGynecologicalExamination {
@Column(name = "RTIOrSTIDetail")
private String rTIOrSTIDetail;

@Expose
@Transient
@JsonProperty("fileIDs")
private List<String> fileIDs;

@Expose
@Column(name = "FilePath")
private String filePath;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,12 @@ public Long saveBenExaminationDetails(JsonObject requestOBJ, Long benVisitID, St
.fromJson(examinationOBJ.get("gynecologicalDetails"), CancerGynecologicalExamination.class);
cancerGynecologicalExamination.setBenVisitID(benVisitID);
cancerGynecologicalExamination.setVisitCode(benVisitCode);

if (cancerGynecologicalExamination.getFileIDs() != null) {
cancerGynecologicalExamination.setFilePath(
String.join(",", cancerGynecologicalExamination.getFileIDs()));
}

Long ID = cSNurseServiceImpl.saveCancerGynecologicalExaminationData(cancerGynecologicalExamination);
if (ID != null && ID > 0) {
// gynecologicalDetails stored successfully...
Expand Down