public class FhirApi extends Object
| Constructor and Description |
|---|
FhirApi(ca.uhn.fhir.rest.client.api.IGenericClient fhirClient) |
| Modifier and Type | Method and Description |
|---|---|
static Optional<BbmriEricId> |
bbmriEricId(org.hl7.fhir.r4.model.Organization collection)
Returns the BBMRI-ERIC identifier of
collection if some valid one could be found. |
io.vavr.control.Either<String,Void> |
createResource(org.hl7.fhir.instance.model.api.IBaseResource resource) |
io.vavr.control.Either<org.hl7.fhir.r4.model.OperationOutcome,List<org.hl7.fhir.r4.model.Organization>> |
listAllBiobanks()
Lists all Organization resources with the biobank profile.
|
io.vavr.control.Either<org.hl7.fhir.r4.model.OperationOutcome,List<org.hl7.fhir.r4.model.Organization>> |
listAllCollections()
Lists all Organization resources with the collection profile.
|
io.vavr.control.Either<String,Boolean> |
resourceExists(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> type,
String uri)
Checks whether a resource of
type and canonical uri exists. |
org.hl7.fhir.r4.model.OperationOutcome |
updateResource(org.hl7.fhir.instance.model.api.IBaseResource theResource) |
public static Optional<BbmriEricId> bbmriEricId(org.hl7.fhir.r4.model.Organization collection)
collection if some valid one could be found.collection - the Organization resource, possibly containing a BBMRI-ERIC identifieremptypublic org.hl7.fhir.r4.model.OperationOutcome updateResource(org.hl7.fhir.instance.model.api.IBaseResource theResource)
public io.vavr.control.Either<String,Void> createResource(org.hl7.fhir.instance.model.api.IBaseResource resource)
public io.vavr.control.Either<org.hl7.fhir.r4.model.OperationOutcome,List<org.hl7.fhir.r4.model.Organization>> listAllBiobanks()
Organization resources or an OperationOutcome on *
errorspublic io.vavr.control.Either<org.hl7.fhir.r4.model.OperationOutcome,List<org.hl7.fhir.r4.model.Organization>> listAllCollections()
Organization resources or an OperationOutcome on
errorspublic io.vavr.control.Either<String,Boolean> resourceExists(Class<? extends org.hl7.fhir.instance.model.api.IBaseResource> type, String uri)
type and canonical uri exists.type - the resource typeuri - the canonical URItrue if the resource exists or a Left in case of an errorCopyright © 2022. All rights reserved.