Add getServerVersion to tooling client

This commit is contained in:
Grahame Grieve 2021-11-09 06:13:18 +11:00
parent 227664a9b3
commit d91b26e69b
9 changed files with 37 additions and 0 deletions

View File

@ -159,4 +159,9 @@ public class TerminologyClientR2 implements TerminologyClient {
client.setUserAgent(userAgent);
return this;
}
@Override
public String getServerVersion() {
return client.getServerVersion();
}
}

View File

@ -168,4 +168,9 @@ public class TerminologyClientR3 implements TerminologyClient {
client.setUserAgent(userAgent);
return this;
}
@Override
public String getServerVersion() {
return client.getServerVersion();
}
}

View File

@ -168,4 +168,9 @@ public class TerminologyClientR4 implements TerminologyClient {
client.setUserAgent(userAgent);
return this;
}
@Override
public String getServerVersion() {
return client.getServerVersion();
}
}

View File

@ -154,4 +154,9 @@ public class TerminologyClientR5 implements TerminologyClient {
client.setUserAgent(userAgent);
return this;
}
@Override
public String getServerVersion() {
return client.getServerVersion();
}
}

View File

@ -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();
}
}

View File

@ -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();
}
}

View File

@ -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();
}
}

View File

@ -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;

View File

@ -588,6 +588,10 @@ public class FHIRToolingClient {
this.userAgent = userAgent;
}
public String getServerVersion() {
return capabilities == null ? null : capabilities.getSoftware().getVersion();
}
}