Guest User

Untitled

a guest
Aug 9th, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. <dwr>
  2. <allow>
  3. <create creator="new" javascript="DWRMyModuleService">
  4. <param name="class" value="@[email protected]"/>
  5. <include method="getConceptMappings"/>
  6. </create>
  7. </allow>
  8.  
  9. <signatures>
  10. <![CDATA[
  11. DWRMyModuleService.getConceptMappings();
  12. ]]>
  13. </signatures>
  14. </dwr>
  15.  
  16.  
  17.  
  18. package org.openmrs.module.exportccd.web;
  19.  
  20. import java.util.Collection;
  21. import org.openmrs.ConceptMap;
  22. import org.openmrs.api.context.Context;
  23.  
  24. public class DWRMyModuleService {
  25.  
  26. public Integer getConceptMappings(Integer conceptId) {
  27.  
  28. return Context.getConceptService().getConcept(conceptId).getConceptMappings().size();
  29.  
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment