Package ca.uhn.fhir.model.api.annotation

Examples of ca.uhn.fhir.model.api.annotation.SearchParamDefinition.path()


      if (searchParam != null) {
        SearchParamTypeEnum paramType = SearchParamTypeEnum.valueOf(searchParam.type().toUpperCase());
        if (paramType == null) {
          throw new ConfigurationException("Searc param " + searchParam.name() + " has an invalid type: " + searchParam.type());
        }
        RuntimeSearchParam param = new RuntimeSearchParam(searchParam.name(), searchParam.description(), searchParam.path(), paramType);
        theResourceDef.addSearchParam(param);
      }
    }

  }
View Full Code Here


        }
        if (paramType == SearchParamTypeEnum.COMPOSITE) {
          compositeFields.put(nextField, searchParam);
          continue;
        }
        RuntimeSearchParam param = new RuntimeSearchParam(searchParam.name(), searchParam.description(), searchParam.path(), paramType);
        theResourceDef.addSearchParam(param);
        nameToParam.put(param.getName(), param);
      }
    }
View Full Code Here

          continue;
        }
        compositeOf.add(param);
      }

      RuntimeSearchParam param = new RuntimeSearchParam(searchParam.name(), searchParam.description(), searchParam.path(), SearchParamTypeEnum.COMPOSITE, compositeOf);
      theResourceDef.addSearchParam(param);
    }
  }

  private static Class<?> getGenericCollectionTypeOfCodedField(Field next) {
View Full Code Here

  private void scanResourceForSearchParams(Class<? extends IResource> theClass, RuntimeResourceDefinition theResourceDef) {

    for (Field nextField : theClass.getFields()) {
      SearchParamDefinition searchParam = nextField.getAnnotation(SearchParamDefinition.class);
      if (searchParam != null) {
        RuntimeSearchParam param = new RuntimeSearchParam(searchParam.name(), searchParam.description(), searchParam.path());
        theResourceDef.addSearchParam(param);
      }
    }

  }
View Full Code Here

        }
        if(paramType==SearchParamTypeEnum.COMPOSITE) {
          compositeFields.put(nextField, searchParam);
          continue;
        }
        RuntimeSearchParam param = new RuntimeSearchParam(searchParam.name(), searchParam.description(), searchParam.path(), paramType);
        theResourceDef.addSearchParam(param);
        nameToParam.put(param.getName(), param);
      }
    }
View Full Code Here

          continue;
        }
        compositeOf.add(param);
      }

      RuntimeSearchParam param = new RuntimeSearchParam(searchParam.name(), searchParam.description(), searchParam.path(), SearchParamTypeEnum.COMPOSITE, compositeOf);
      theResourceDef.addSearchParam(param);
    }
  }

  public Map<String, RuntimeResourceDefinition> getIdToResourceDefinition() {
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.