public class DirectoryApi extends Object
| Modifier and Type | Method and Description |
|---|---|
static io.vavr.control.Either<org.hl7.fhir.r4.model.OperationOutcome,DirectoryApi> |
createWithLogin(org.apache.http.impl.client.CloseableHttpClient httpClient,
String baseUrl,
String username,
String password) |
static DirectoryApi |
createWithToken(org.apache.http.impl.client.CloseableHttpClient httpClient,
String baseUrl,
String token) |
io.vavr.control.Either<org.hl7.fhir.r4.model.OperationOutcome,Biobank> |
fetchBiobank(BbmriEricId id)
Fetches the Biobank with the given
id. |
io.vavr.control.Either<org.hl7.fhir.r4.model.OperationOutcome,Set<BbmriEricId>> |
listAllCollectionIds(String countryCode)
Make a call to the Directory to get all Collection IDs for the supplied
countryCode. |
org.hl7.fhir.r4.model.OperationOutcome |
updateCollectionSizes(String countryCode,
List<de.samply.directory_sync.directory.DirectoryApi.CollectionSizeDto> collectionSizeDtos)
Send the collection sizes to the Directory.
|
public static io.vavr.control.Either<org.hl7.fhir.r4.model.OperationOutcome,DirectoryApi> createWithLogin(org.apache.http.impl.client.CloseableHttpClient httpClient, String baseUrl, String username, String password)
public static DirectoryApi createWithToken(org.apache.http.impl.client.CloseableHttpClient httpClient, String baseUrl, String token)
public io.vavr.control.Either<org.hl7.fhir.r4.model.OperationOutcome,Biobank> fetchBiobank(BbmriEricId id)
id.id - the ID of the Biobank to fetch.public org.hl7.fhir.r4.model.OperationOutcome updateCollectionSizes(String countryCode, List<de.samply.directory_sync.directory.DirectoryApi.CollectionSizeDto> collectionSizeDtos)
Push the counts back to the Directory. You need 'update data' permission on entity type 'Collections' at the Directory in order for this to work.
countryCode - the country code of the endpoint of the national node, e.g. GermanycollectionSizeDtos - the individual collection sizes. note that all collection must share
the given countryCodepublic io.vavr.control.Either<org.hl7.fhir.r4.model.OperationOutcome,Set<BbmriEricId>> listAllCollectionIds(String countryCode)
countryCode.countryCode - the country code of the endpoint of the national node, e.g. GermanyCopyright © 2022. All rights reserved.