Package dev.dsf.fhir.adapter
Class ElementId
java.lang.Object
dev.dsf.fhir.adapter.ElementId
-
Method Summary
Modifier and TypeMethodDescriptionstatic ElementIdstatic ElementIdfrom(org.hl7.fhir.instance.model.api.IIdType id) static ElementIdfrom(org.hl7.fhir.r4.model.Resource resource) static <R extends org.hl7.fhir.r4.model.Resource>
ElementIdfrom(R resource, Predicate<R> hasReference, Function<R, org.hl7.fhir.r4.model.Reference> getReference) fromList(R resource, Predicate<R> hasReferences, Function<R, List<org.hl7.fhir.r4.model.Reference>> getReferences) getHref()getValue()
-
Method Details
-
fromList
public static <R extends org.hl7.fhir.r4.model.Resource> List<ElementId> fromList(R resource, Predicate<R> hasReferences, Function<R, List<org.hl7.fhir.r4.model.Reference>> getReferences) - Type Parameters:
R- FHIR resource type- Parameters:
resource- may benullhasReferences- notnullgetReferences- notnull- Returns:
nullif the given resource isnull, hasReferences returnsfalse, the List provided by getReferences is empty; references without reference-element will be filtered from the returned list
-
from
public static <R extends org.hl7.fhir.r4.model.Resource> ElementId from(R resource, Predicate<R> hasReference, Function<R, org.hl7.fhir.r4.model.Reference> getReference) - Type Parameters:
R- FHIR resource type- Parameters:
resource- may benullhasReference- notnullgetReference- notnull- Returns:
nullif the given resource isnull, hasReference returnsfalseor theReferenceprovided by getReference has not reference-element
-
from
- Parameters:
resource- may benull- Returns:
nullif the given resource isnullor has no id-element
-
from
- Parameters:
id- notnull- Returns:
- Throws:
NullPointerException- if the given id isnull
-
from
-
getHref
-
getResourceType
-
getValue
-