Skip to content

Commit

Permalink
models: use ClinicalAnalyst, #189
Browse files Browse the repository at this point in the history
  • Loading branch information
jtarraga committed Sep 1, 2020
1 parent eebbc63 commit 46a2415
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 77 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ public class ClinicalAnalyst {
private String assignedBy;
private String date;

public ClinicalAnalyst() {
}

public ClinicalAnalyst(String id, String name, String email, String assignedBy, String date) {
this.id = id;
this.name = name;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

package org.opencb.biodata.models.clinical.interpretation;

import org.opencb.biodata.models.clinical.ClinicalAnalyst;
import org.opencb.biodata.models.clinical.ClinicalComment;

import java.util.List;
Expand All @@ -34,7 +35,7 @@ public class Interpretation {
/**
* Interpretation algorithm tool used to generate this interpretation.
*/
private Analyst analyst;
private ClinicalAnalyst analyst;
private List<InterpretationMethod> methods;

private List<ClinicalVariant> primaryFindings;
Expand All @@ -55,7 +56,7 @@ public class Interpretation {
public Interpretation() {
}

public Interpretation(String id, String uuid, String description, String clinicalAnalysisId, Analyst analyst,
public Interpretation(String id, String uuid, String description, String clinicalAnalysisId, ClinicalAnalyst analyst,
List<InterpretationMethod> methods, List<ClinicalVariant> primaryFindings,
List<ClinicalVariant> secondaryFindings, List<ClinicalComment> comments, String status, String creationDate,
int version, Map<String, Object> attributes) {
Expand Down Expand Up @@ -130,11 +131,11 @@ public Interpretation setClinicalAnalysisId(String clinicalAnalysisId) {
return this;
}

public Analyst getAnalyst() {
public ClinicalAnalyst getAnalyst() {
return analyst;
}

public Interpretation setAnalyst(Analyst analyst) {
public Interpretation setAnalyst(ClinicalAnalyst analyst) {
this.analyst = analyst;
return this;
}
Expand Down

0 comments on commit 46a2415

Please sign in to comment.