/** * @see org.openmrs.api.FormService#getAllFieldTypes() */ @Override @Transactional(readOnly = true) public List<FieldType> getAllFieldTypes() throws APIException { return Context.getFormService().getAllFieldTypes(true); }
coremetadatas.put("field_type", Context.getFormService().getAllFieldTypes(true)); coremetadatas.put("person_attribute_type", Context.getPersonService().getAllPersonAttributeTypes(true)); coremetadatas.put("encounter_type", Context.getEncounterService().getAllEncounterTypes(true));
/** * @see org.openmrs.module.webservices.rest.web.resource.impl.DelegatingCrudResource#doGetAll(org.openmrs.module.webservices.rest.web.RequestContext) */ @Override protected NeedsPaging<FieldType> doGetAll(RequestContext context) throws ResponseException { return new NeedsPaging<FieldType>(Context.getFormService().getAllFieldTypes(), context); } }
String name1 = "name1"; String descript1 = "descript1"; FieldType fieldtype1 = formService.getAllFieldTypes().get(0); String table1 = "table1"; String attr1 = "attr1"; String name2 = "name2"; String descript2 = "descript2"; FieldType fieldtype2 = formService.getAllFieldTypes().get(1); String table2 = "table2"; String attr2 = "attr2";