summaryrefslogtreecommitdiff
path: root/src/main/java/dev/dnpm/oshelper/atc/AtcCode.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/dev/dnpm/oshelper/atc/AtcCode.java')
-rw-r--r--src/main/java/dev/dnpm/oshelper/atc/AtcCode.java14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/main/java/dev/dnpm/oshelper/atc/AtcCode.java b/src/main/java/dev/dnpm/oshelper/atc/AtcCode.java
index 7beabbd..61685d6 100644
--- a/src/main/java/dev/dnpm/oshelper/atc/AtcCode.java
+++ b/src/main/java/dev/dnpm/oshelper/atc/AtcCode.java
@@ -31,18 +31,22 @@ public class AtcCode implements AgentCode {
private final String code;
private final String name;
+ private final String synonyms;
private final String version;
public AtcCode(String code, String name) {
- this.code = code;
- this.name = name;
- this.version = null;
+ this(code, name, null);
}
public AtcCode(String code, String name, String version) {
+ this(code, name, version, "");
+ }
+
+ public AtcCode(String code, String name, String version, String synonyms) {
this.code = code;
this.name = name;
+ this.synonyms = synonyms;
this.version = version;
}
@@ -54,6 +58,10 @@ public class AtcCode implements AgentCode {
return name;
}
+ public String getSynonyms() {
+ return this.synonyms;
+ }
+
public CodeSystem getSystem() {
return CodeSystem.ATC;
}