-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
models: add new clinical data models, #189
- Loading branch information
Showing
3 changed files
with
202 additions
and
0 deletions.
There are no files selected for viewing
76 changes: 76 additions & 0 deletions
76
biodata-models/src/main/java/org/opencb/biodata/models/clinical/ClinicalAnalyst.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
72 changes: 72 additions & 0 deletions
72
biodata-models/src/main/java/org/opencb/biodata/models/clinical/ClinicalAudit.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
biodata-models/src/main/java/org/opencb/biodata/models/clinical/ClinicalComment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |