Examples of withResourceType()


Examples of ca.uhn.fhir.model.primitive.IdDt.withResourceType()

          if (nextRes != null) {
            if (nextRes.getId().hasIdPart()) {
              IdDt id = nextRes.getId().toVersionless();
              if (id.hasResourceType() == false) {
                String resName = theContext.getResourceDefinition(nextRes).getName();
                id = id.withResourceType(resName);
              }

              if (!addedResourceIds.contains(id)) {
                addedResourceIds.add(id);
                addedResourcesThisPass.add(nextRes);
View Full Code Here

Examples of ca.uhn.fhir.model.primitive.IdDt.withResourceType()

    if (idDt == null) {
      throw new NullPointerException("ID can not be null");
    }
   
    if (idDt.hasResourceType()==false) {
      idDt = idDt.withResourceType(getResourceName());
    }else if (getResourceName().equals(idDt.getResourceType())==false) {
      throw new InvalidRequestException("ID parameter has the wrong resource type, expected '" + getResourceName() + "', found: " + idDt.getResourceType());
    }
   
    HttpDeleteClientInvocation retVal = createDeleteInvocation(idDt);
View Full Code Here

Examples of ca.uhn.fhir.model.primitive.IdDt.withResourceType()

        if (nextRes != null) {
          if (nextRes.getId().hasIdPart()) {
            IdDt id = nextRes.getId().toVersionless();
            if (id.hasResourceType()==false) {
              String resName = theContext.getResourceDefinition(nextRes).getName();
              id = id.withResourceType(resName);
            }
           
            if (!addedResourceIds.contains(id)) {
              addedResourceIds.add(id);
              addedResources.add(nextRes);
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.