Examples of toListOfResources()


Examples of ca.uhn.fhir.model.api.Bundle.toListOfResources()

      Bundle bundle = parser.parseBundle(theResponseReader);
      switch (getMethodReturnType()) {
      case BUNDLE:
        return bundle;
      case LIST_OF_RESOURCES:
        return bundle.toListOfResources();
      case RESOURCE:
        List<IResource> list = bundle.toListOfResources();
        if (list.size() == 0) {
          return null;
        } else if (list.size() == 1) {
View Full Code Here

Examples of ca.uhn.fhir.model.api.Bundle.toListOfResources()

      case BUNDLE:
        return bundle;
      case LIST_OF_RESOURCES:
        return bundle.toListOfResources();
      case RESOURCE:
        List<IResource> list = bundle.toListOfResources();
        if (list.size() == 0) {
          return null;
        } else if (list.size() == 1) {
          return list.get(0);
        } else {
View Full Code Here

Examples of ca.uhn.fhir.model.api.Bundle.toListOfResources()

      myLastRequest = invocation.asHttpRequest(getServerBase(), createExtraParams(), getEncoding());
    }

    Bundle resp = invokeClient(new BundleResponseHandler(null), invocation, myLogRequestAndResponse);

    return resp.toListOfResources();
  }

  @Override
  public MethodOutcome update(IdDt theIdDt, IResource theResource) {
    BaseHttpClientInvocation invocation = UpdateMethodBinding.createUpdateInvocation(theResource, theIdDt, null, myContext);
View Full Code Here

Examples of ca.uhn.fhir.model.api.Bundle.toListOfResources()

      }
      switch (getMethodReturnType()) {
      case BUNDLE:
        return bundle;
      case LIST_OF_RESOURCES:
        return bundle.toListOfResources();
      case RESOURCE:
        List<IResource> list = bundle.toListOfResources();
        if (list.size() == 0) {
          return null;
        } else if (list.size() == 1) {
View Full Code Here

Examples of ca.uhn.fhir.model.api.Bundle.toListOfResources()

      case BUNDLE:
        return bundle;
      case LIST_OF_RESOURCES:
        return bundle.toListOfResources();
      case RESOURCE:
        List<IResource> list = bundle.toListOfResources();
        if (list.size() == 0) {
          return null;
        } else if (list.size() == 1) {
          return list.get(0);
        } else {
View Full Code Here

Examples of ca.uhn.fhir.model.api.Bundle.toListOfResources()

        return bundle;
      case LIST_OF_RESOURCES:
        List<IResource> listOfResources;
        if (myResourceListCollectionType != null) {
          listOfResources = new ArrayList<IResource>();
          for (IResource next : bundle.toListOfResources()) {
            if (!myResourceListCollectionType.isAssignableFrom(next.getClass())) {
              ourLog.debug("Not returning resource of type {} because it is not a subclass or instance of {}", next.getClass(), myResourceListCollectionType);
              continue;
            }
            listOfResources.add(next);
View Full Code Here

Examples of ca.uhn.fhir.model.api.Bundle.toListOfResources()

              continue;
            }
            listOfResources.add(next);
          }
        } else {
          listOfResources = bundle.toListOfResources();
        }
        return listOfResources;
      case RESOURCE:
        List<IResource> list = bundle.toListOfResources();
        if (list.size() == 0) {
View Full Code Here

Examples of ca.uhn.fhir.model.api.Bundle.toListOfResources()

        } else {
          listOfResources = bundle.toListOfResources();
        }
        return listOfResources;
      case RESOURCE:
        List<IResource> list = bundle.toListOfResources();
        if (list.size() == 0) {
          return null;
        } else if (list.size() == 1) {
          return list.get(0);
        } else {
View Full Code Here

Examples of ca.uhn.fhir.model.api.Bundle.toListOfResources()

      myLastRequest = invocation.asHttpRequest(getServerBase(), createExtraParams(), getEncoding());
    }

    Bundle resp = invokeClient(myContext, new BundleResponseHandler(null), invocation, myLogRequestAndResponse);

    return resp.toListOfResources();
  }

  @Override
  public MethodOutcome update(IdDt theIdDt, IResource theResource) {
    BaseHttpClientInvocation invocation = MethodUtil.createUpdateInvocation(theResource, null, theIdDt, myContext);
View Full Code Here

Examples of ca.uhn.fhir.model.api.Bundle.toListOfResources()

      }
      switch (getMethodReturnType()) {
      case BUNDLE:
        return bundle;
      case LIST_OF_RESOURCES:
        return bundle.toListOfResources();
      case RESOURCE:
        List<IResource> list = bundle.toListOfResources();
        if (list.size() == 0) {
          return null;
        } else if (list.size() == 1) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.