Add search support to ITerminologyClient
This commit is contained in:
parent
56fc442db4
commit
ec67f6c97a
|
@ -227,4 +227,10 @@ public class TerminologyClientR2 implements ITerminologyClient {
|
|||
public int getUseCount() {
|
||||
return client.getUseCount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Bundle search(String type, String criteria) {
|
||||
org.hl7.fhir.dstu2.model.Bundle result = client.search(type, criteria);
|
||||
return result == null ? null : (Bundle) VersionConvertorFactory_10_50.convertResource(result);
|
||||
}
|
||||
}
|
|
@ -230,4 +230,11 @@ public class TerminologyClientR3 implements ITerminologyClient {
|
|||
return client.getUseCount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Bundle search(String type, String criteria) {
|
||||
org.hl7.fhir.dstu3.model.Bundle result = client.search(type, criteria);
|
||||
return result == null ? null : (Bundle) VersionConvertorFactory_30_50.convertResource(result);
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -242,5 +242,11 @@ public class TerminologyClientR4 implements ITerminologyClient {
|
|||
return client.getUseCount();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Bundle search(String type, String criteria) {
|
||||
org.hl7.fhir.r4.model.Bundle result = client.search(type, criteria);
|
||||
return result == null ? null : (Bundle) VersionConvertorFactory_40_50.convertResource(result);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -924,5 +924,10 @@ public class FHIRToolingClient extends FHIRBaseToolingClient {
|
|||
private void recordUse() {
|
||||
useCount++;
|
||||
}
|
||||
|
||||
|
||||
public Bundle search(String type, String criteria) {
|
||||
recordUse();
|
||||
return fetchFeed(Utilities.pathURL(base, type+criteria));
|
||||
}
|
||||
|
||||
}
|
|
@ -654,5 +654,10 @@ public class FHIRToolingClient extends FHIRBaseToolingClient {
|
|||
useCount++;
|
||||
}
|
||||
|
||||
public Bundle search(String type, String criteria) {
|
||||
recordUse();
|
||||
return fetchFeed(Utilities.pathURL(base, type+criteria));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -69,4 +69,5 @@ public interface ITerminologyClient {
|
|||
ITerminologyClient setContentLanguage(String lang);
|
||||
String getUserAgent();
|
||||
int getUseCount();
|
||||
Bundle search(String type, String criteria);
|
||||
}
|
|
@ -246,4 +246,9 @@ public class TerminologyClientR5 implements ITerminologyClient {
|
|||
return new TerminologyClientR5Factory();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Bundle search(String type, String criteria) {
|
||||
return client.search(type, criteria);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue