Mathias Lin | 林马

Healthcare Informatics, Open Source, Entrepreneur, Software Engineer (Java, Android, Mobile), HIMSS member 
Filed under

java

 

Open Source Clinic Management System: HKMA CMS3.0 (TaoYuan Project)

The CMS 3.0 is an open-source clinical management system project jointly implemented by the Hong Kong Medical Association (HKMA) and the Information and Software Industry Association (ISIA), with funding support from the Office of the Government Chief Information Officer (OGCIO) under the Sector-specific Programme (SSP) for the Medical and Health Sector, and was developed by Mobigator Technology Group.

Screenshots:
http://www.facebook.com/album.php?aid=119396&id=504063796&ref=mf

See the facebook group:
http://www.facebook.com/group.php?gid=123759717334&v=wall&ref=ts

Twitter: http://twitter.com/HKMA_CMS

Website: http://www.cms3.hk

The project has been published under GPL2.0 license (open source). Technologically based on Java, Grails/Groovy, MySql. Web based client using ExtJs.

                             
Click here to download:
Open_Source_Clinic_Management_.zip (1377 KB)

 

Loading mentions Retweet
Filed under  //   ehealth   ehr   extjs   grails   healthcare   hongkong   java   medical   opensource   taoyuan  

Comments [0]

Display RSS Feed in OpenCms Template

Since this is a very common feature for many websites, here's a useful snippet I usually use when displaying RSS feeds in an OpenCms template. For example you want to display an Atom RSS feed from a WordPress blog on your OpenCms based website.

My approach is usually:
The OpenCms schema has a OpenCmsString input field (named BlogRssUrl in my case), which is mapped to the property BlogRssUrl as well.

<xsd:complexType name="OpenCmsMySchema">
  ...
  <xsd:element name="BlogRssUrl" type="OpenCmsString" minOccurs="0" maxOccurs="1" />
  ...
</xsd:complexType>

<mappings>
    <mapping element="BlogRssUrl" mapto="property:BlogRssUrl" />
</mappings>

For fetching the RSS feed, I recommend the ROME Fetcher subproject library at https://rome.dev.java.net/, which only depends on the JDOM parser (jdom.jar). So you will end up deploying three additional jars:

  • jdom.jar
  • rome-1.0RC2.jar (or newer version)
  • rome-fetcher-0.9.jar (or newer version)


Below is the scriplet then for the OpenCms jsp template:

<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
<%@ page session="false" import="org.opencms.jsp.*,java.util.*,org.opencms.file.*,java.net.URL,com.sun.syndication.feed.synd.*,com.sun.syndication.fetcher.*,com.sun.syndication.fetcher.impl.*" %>
<%  
    CmsJspActionElement cms = new CmsJspActionElement(pageContext, request, response);
    String filename = cms.getRequestContext().getUri();

           // === RSS Feed Fetching ===
    FeedFetcherCache feedInfoCache = HashMapFeedInfoCache.getInstance();
    FeedFetcher feedFetcher = new HttpURLFeedFetcher(feedInfoCache);
    CmsObject cmso = cms.getCmsObject();
    String blogRssUrl = cmso.readProperty(filename, "BlogRssUrl");
    SyndFeed feed = null;
    if (blogRssUrl!=null && !"".equals(blogRssUrl)) feed = feedFetcher.retrieveFeed(new URL(blogRssUrl));
%>

and then display the output on the page:

<% if (feed!=null) { %>
<ul>
<%
// === RSS feed output ===
for (Iterator<SyndEntry> iter= feed.getEntries().iterator(); iter.hasNext();) {
    SyndEntry entry = iter.next();
    %>               
    <li>[a href="<%=entry.getUri()%>"]<%=entry.getTitle()%>[/a]</li>                               
    <%               
}
%>
</ul>
<% } %>

Loading mentions Retweet
Filed under  //   atom   CMS   java   opencms   ROME   rss   tutorial  

Comments [0]

Photo album (SmoothGallery) add-on for OpenCms

SYSVISION Photoalbum Module integrates SmoothGallery (GPL) into OpenCms as an add-on module package, which allows visitors to experience nicer visual effects on photo display. The module is easy-to-use. Thanks to Jonathan Schmeoul for developing the SmoothGallery in the first place!

To use the SYSVISION Photoalbum module, you need at least OpenCms version 7.0.5.

Please see the SYSVISION_Photoalbum.PDF for details.

Download this module as zip from here: com.sysvision.opencms.frontend.photoalbum_0.2.zip (~ 2.8 MB)

http://www.sysvision.com/opencms/opencms/en/expertise/cms/solutions/photoalbum_module.html

Loading mentions Retweet
Filed under  //   java   opencms   opensource   smoothgallery   sysvision  

Comments [0]

OpenCms-Spring Integration

In recent projects we have used the Spring MVC integrated into OpenCms. This topic is not new to the OpenCms community, as it has already been covered a
little in the OpenCms wiki and also Bearingpoint provides an open source submodule in their Commons-Project at Sourceforge.
 
Nevertheless, we make our small 'getting-started' project available now - it's aimed for developers who want to integrate Spring & Hibernate into
OpenCms for the first time and would like to have a ready-to-go starting point/project setup.
The project includes Eclipse and NetBeans project files as well as the ant build file. We used it for OpenCms7.0.5 and OpenCms7.5. With these OpenCms versions, the versions of the depending lib files used by Spring and OpenCms should not
conflict. (We didn't use it with OpenCms6 yet).
 
SVN:
http://svn.sysvision.net:9027/svn/com.sysvision.opencms.spring/
User: anon, Password: anon
 
or download as zip from:
http://www.sysvision.de/en/expertise/cms/solutions/opencms_spring_integration.html
 
The project contains a Readme.pdf how to use it. We hope it's useful to someone and are open for any comments, suggestions and improvements.
 
(A note regarding Hibernate: we don't use the OpenSessionInViewPattern (OSIV), so you won't find it in the project. If you want/need it, you will
find infos about it in the opencms-wiki.org)

Loading mentions Retweet
Filed under  //   java   opencms   opensource   spring   sysvision  

Comments [1]