Class ElementId

java.lang.Object
dev.dsf.fhir.adapter.ElementId

public final class ElementId extends Object
  • 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 be null
      hasReferences - not null
      getReferences - not null
      Returns:
      null if the given resource is null, hasReferences returns false, 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 be null
      hasReference - not null
      getReference - not null
      Returns:
      null if the given resource is null, hasReference returns false or the Reference provided by getReference has not reference-element
    • from

      public static ElementId from(org.hl7.fhir.r4.model.Resource resource)
      Parameters:
      resource - may be null
      Returns:
      null if the given resource is null or has no id-element
    • from

      public static ElementId from(org.hl7.fhir.instance.model.api.IIdType id)
      Parameters:
      id - not null
      Returns:
      Throws:
      NullPointerException - if the given id is null
    • from

      public static ElementId from(String href, String resourceType, String value)
    • getHref

      public String getHref()
    • getResourceType

      public String getResourceType()
    • getValue

      public String getValue()