Skip to content

Commit

Permalink
models: add new clinical data models, #189
Browse files Browse the repository at this point in the history
  • Loading branch information
jtarraga committed Aug 31, 2020
1 parent 004b33a commit bbb9fca
Show file tree
Hide file tree
Showing 3 changed files with 202 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
package org.opencb.biodata.models.clinical;

import java.util.List;

public class ClinicalAnalyst {
private String id;
private String name;
private String email;
private String assignedBy;
private String date;

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

@Override
public String toString() {
final StringBuilder sb = new StringBuilder("ClinicalAnalyst{");
sb.append("id='").append(id).append('\'');
sb.append(", name='").append(name).append('\'');
sb.append(", email='").append(email).append('\'');
sb.append(", assignedBy='").append(assignedBy).append('\'');
sb.append(", date='").append(date).append('\'');
sb.append('}');
return sb.toString();
}

public String getId() {
return id;
}

public ClinicalAnalyst setId(String id) {
this.id = id;
return this;
}

public String getName() {
return name;
}

public ClinicalAnalyst setName(String name) {
this.name = name;
return this;
}

public String getEmail() {
return email;
}

public ClinicalAnalyst setEmail(String email) {
this.email = email;
return this;
}

public String getAssignedBy() {
return assignedBy;
}

public ClinicalAnalyst setAssignedBy(String assignedBy) {
this.assignedBy = assignedBy;
return this;
}

public String getDate() {
return date;
}

public ClinicalAnalyst setDate(String date) {
this.date = date;
return this;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
package org.opencb.biodata.models.clinical;

public class ClinicalAudit {
private String author;
private Action action; {

}
private String message;
private String date;


public enum Action {
CREATE_CLINICAL_ANALYSIS,
CREATE_INTERPRETATION,
UPDATE_CLINICAL_ANALYSIS,
UPDTATE_INTERPRETATION
}

public ClinicalAudit(String author, Action action, String message, String date) {
this.author = author;
this.action = action;
this.message = message;
this.date = date;
}

@Override
public String toString() {
final StringBuilder sb = new StringBuilder("ClinicalAudit{");
sb.append("author='").append(author).append('\'');
sb.append(", action=").append(action);
sb.append(", message='").append(message).append('\'');
sb.append(", date='").append(date).append('\'');
sb.append('}');
return sb.toString();
}

public String getAuthor() {
return author;
}

public ClinicalAudit setAuthor(String author) {
this.author = author;
return this;
}

public Action getAction() {
return action;
}

public ClinicalAudit setAction(Action action) {
this.action = action;
return this;
}

public String getMessage() {
return message;
}

public ClinicalAudit setMessage(String message) {
this.message = message;
return this;
}

public String getDate() {
return date;
}

public ClinicalAudit setDate(String date) {
this.date = date;
return this;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
package org.opencb.biodata.models.clinical;

import java.util.ArrayList;
import java.util.List;

public class ClinicalComment {
private String author;
private String message;
private List<String> tags;
private String date;

public ClinicalComment(String author, String message, List<String> tags, String date) {
this.author = author;
this.message = message;
this.tags = tags;
this.date = date;
}

public String getAuthor() {
return author;
}

public ClinicalComment setAuthor(String author) {
this.author = author;
return this;
}

public String getMessage() {
return message;
}

public ClinicalComment setMessage(String message) {
this.message = message;
return this;
}

public List<String> getTags() {
return tags;
}

public ClinicalComment setTags(List<String> tags) {
this.tags = tags;
return this;
}

public String getDate() {
return date;
}

public ClinicalComment setDate(String date) {
this.date = date;
return this;
}
}

0 comments on commit bbb9fca

Please sign in to comment.