Add getServerVersion to tooling client
This commit is contained in:
parent
227664a9b3
commit
d91b26e69b
|
@ -159,4 +159,9 @@ public class TerminologyClientR2 implements TerminologyClient {
|
|||
client.setUserAgent(userAgent);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getServerVersion() {
|
||||
return client.getServerVersion();
|
||||
}
|
||||
}
|
|
@ -168,4 +168,9 @@ public class TerminologyClientR3 implements TerminologyClient {
|
|||
client.setUserAgent(userAgent);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getServerVersion() {
|
||||
return client.getServerVersion();
|
||||
}
|
||||
}
|
|
@ -168,4 +168,9 @@ public class TerminologyClientR4 implements TerminologyClient {
|
|||
client.setUserAgent(userAgent);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getServerVersion() {
|
||||
return client.getServerVersion();
|
||||
}
|
||||
}
|
|
@ -154,4 +154,9 @@ public class TerminologyClientR5 implements TerminologyClient {
|
|||
client.setUserAgent(userAgent);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getServerVersion() {
|
||||
return client.getServerVersion();
|
||||
}
|
||||
}
|
|
@ -866,4 +866,8 @@ public class FHIRToolingClient {
|
|||
public void setUserAgent(String userAgent) {
|
||||
utils.setUserAgent(userAgent);
|
||||
}
|
||||
|
||||
public String getServerVersion() {
|
||||
return conf == null ? null : conf.getSoftware().getVersion();
|
||||
}
|
||||
}
|
|
@ -580,5 +580,9 @@ public class FHIRToolingClient {
|
|||
public void setUserAgent(String userAgent) {
|
||||
this.userAgent = userAgent;
|
||||
}
|
||||
|
||||
public String getServerVersion() {
|
||||
return capabilities == null ? null : capabilities.getSoftware().getVersion();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -553,5 +553,9 @@ public class FHIRToolingClient {
|
|||
public void setUserAgent(String userAgent) {
|
||||
this.userAgent = userAgent;
|
||||
}
|
||||
|
||||
public String getServerVersion() {
|
||||
return capabilities == null ? null : capabilities.getSoftware().getVersion();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -40,6 +40,7 @@ import java.util.Map;
|
|||
public interface TerminologyClient {
|
||||
|
||||
String getAddress();
|
||||
String getServerVersion();
|
||||
TerminologyCapabilities getTerminologyCapabilities() throws FHIRException;
|
||||
ValueSet expandValueset(ValueSet vs, Parameters p, Map<String, String> params) throws FHIRException;
|
||||
Parameters validateCS(Parameters pin) throws FHIRException;
|
||||
|
|
|
@ -588,6 +588,10 @@ public class FHIRToolingClient {
|
|||
this.userAgent = userAgent;
|
||||
}
|
||||
|
||||
public String getServerVersion() {
|
||||
return capabilities == null ? null : capabilities.getSoftware().getVersion();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue