Skip to content

Ruby implementation of the openEHR

skoba edited this page Feb 12, 2013 · 2 revisions

Implementation overview

In this project, we are implementing the openEHR specifications by Ruby. The mission goal is to establish agile EHR development infrastructure using Ruby on Rails.

This project includes three major packages, RM, AM and Parser/Serializer.

Nomenclature

The original class nomenclature uses only capital and underscore, because of Eiffel grammatical rule. We use camel case for class/module nomenclature, and snake style on method nomenclature like Rails convention.

RM(Reference model)

RM defines data types, data structures, supportive information models. RM instance is generated form RM objects. Constructors of RM classes need a number of arguments.

AM(Archetype model)

AM defines semantics of the clinical concept. AM can be instantiated from ADL file. This is an example.

adl_parser = OpenEHR::Parser::ADLParser.new('sample.adl')
archetype = adl_parser.parse