/** * @see org.openmrs.api.ConceptService#getAllConceptDatatypes() */ @Override @Transactional(readOnly = true) public List<ConceptDatatype> getAllConceptDatatypes() { return Context.getConceptService().getAllConceptDatatypes(true); }
/** * @see ConceptServiceImpl#getAllConceptDatatypes(boolean) */ @Test public void getAllConceptDatatypes_shouldReturnAllConceptDataypesExcludingRetiredOnesWhenGivenFalse() { int resultSize = 12; String uuid = "8d4a4488-c2cc-11de-8d13-0010c6dffd0f"; List<ConceptDatatype> conceptDatatypes = conceptService.getAllConceptDatatypes(false); assertEquals(resultSize, conceptDatatypes.size()); assertTrue(conceptDatatypes.contains(conceptService.getConceptDatatypeByUuid(uuid))); }
/** * @see ConceptServiceImpl#getAllConceptDatatypes() */ @Test public void getAllConceptDatatypes_shouldGiveAListOfAllConceptDataypes() { int resultSize = 12; String uuid = "8d4a4488-c2cc-11de-8d13-0010c6dffd0f"; List<ConceptDatatype> conceptDatatypes = conceptService.getAllConceptDatatypes(); assertEquals(resultSize, conceptDatatypes.size()); assertTrue(conceptDatatypes.contains(conceptService.getConceptDatatypeByUuid(uuid))); }
/** * @see ConceptServiceImpl#getAllConceptDatatypes(boolean) */ @Test public void getAllConceptDatatypes_shouldReturnAllConceptDataypesIncludingRetiredOnesWhenGivenTrue() { int resultSize = 12; String uuid = "8d4a4488-c2cc-11de-8d13-0010c6dffd0f"; List<ConceptDatatype> conceptDatatypes = conceptService.getAllConceptDatatypes(true); assertEquals(resultSize, conceptDatatypes.size()); assertTrue(conceptDatatypes.contains(conceptService.getConceptDatatypeByUuid(uuid))); }
coremetadatas.put("person_attribute_type", Context.getPersonService().getAllPersonAttributeTypes(true)); coremetadatas.put("encounter_type", Context.getEncounterService().getAllEncounterTypes(true)); coremetadatas.put("concept_datatype", Context.getConceptService().getAllConceptDatatypes(true)); coremetadatas.put("concept_class", Context.getConceptService().getAllConceptClasses(true)); coremetadatas.put("patient_identifier_type", Context.getPatientService().getAllPatientIdentifierTypes(true));
/** * @see org.openmrs.module.webservices.rest.web.v1_0.controller.MainResourceControllerTest#getAllCount() */ @Override public long getAllCount() { return service.getAllConceptDatatypes().size(); }
/** * @see org.openmrs.module.webservices.rest.web.v1_0.controller.MainResourceControllerTest#getAllCount() */ @Override public long getAllCount() { return service.getAllConceptDatatypes().size(); }
/** * @see org.openmrs.module.webservices.rest.web.resource.impl.DelegatingCrudResource#doGetAll(org.openmrs.module.webservices.rest.web.RequestContext) */ @Override protected NeedsPaging<ConceptDatatype> doGetAll(RequestContext context) { return new NeedsPaging<ConceptDatatype>(Context.getConceptService().getAllConceptDatatypes(context.getIncludeAll()), context); }