Giter Club home page Giter Club logo

openehr-ruby's Introduction

<img src=“https://travis-ci.org/skoba/openehr-ruby.png?branch=master” alt=“Build Status” />

Synopsis

A Ruby implementation of the openEHR specifications

Requirements

  • Supports CRuby 2.5.0 or later.

  • Developed with CRuby 3.0.0 on FreeBSD and Linux.

  • Ruby 2.4 or earlier are no longer supported.

Description

This is a stable release of Ruby openEHR implementation project. This release is based on openEHR specification release 1.0.2. We implemented almost of the specifications of the openEHR. The work is still in progress to implement related tools, such as archetype validator or serializer. Formerly, we named this package as open_ehr, but changed to openehr from release 1.1.0. 1.0.x versions are obsoleted.

The intention is to have a sample EHR to deploy quickly with Ruby on Rails for development and understanding of the openEHR standards.

This package includes:

  • ADL 1.4 parser

  • AM/RM packages based on the openEHR specification 1.0.2

This package excludes:

  • ADL serializer(in progress)

  • ADL validator(in progress)

  • Data store/retrieve would be separate to the other project.

  • Terminology service(moved to openehr-terminology package)

  • Rails plugin(moved to openehr-rails package

Almost all classes passed the test constructed by RSpec23 These spec files are under /spec.

Some specifications are not well determined yet, such as rm/security and so on. We have therefore postponed implementations of these classes.

Terminology and Demographic servers will be implemented in other projects.

Main codebase authors

  • Shinji Kobayashi and Akimichi Tatsukawa of openehr.jp

  • ADL parser test cases are derived from Java and Eiffel reference implementation project of the openEHR.

Contributors

Thanks for pull requests on GitHub.

  • Michael Deryugin

  • Dmitry Lavrov

  • Evgeny Strokov

  • Marcus Baw(pacharanero)

Copyright

The software, including all files in this directory and subdirectories except ADL files is copyrighted to the original authors and contributors, 2011-2013.

All Rights Reserved.

License

This product is released under Apache 2.0 license

Copyright [2012-2020] openEHR Ruby implementation project.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

openehr-ruby's People

Contributors

caron10 avatar dem avatar lavrovdv avatar pacharanero avatar skoba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openehr-ruby's Issues

RMFactory

RMFactory is a AbstractFactory, whose inheritance generates Reference Model of the openEHR specification.

Error causes with treetop 1.4.14

/usr/local/lib/ruby/gems/2.0/gems/activesupport-4.0.0.rc1/lib/active_support/core_ext/string/indent.rb:8:in *': negative argument (ArgumentError) from /usr/local/lib/ruby/gems/2.0/gems/activesupport-4.0.0.rc1/lib/active_support/core_ext/string/indent.rb:8:inindent!'
from /usr/local/lib/ruby/gems/2.0/gems/activesupport-4.0.0.rc1/lib/active_support/core_ext/string/indent.rb:41:in block in indent' from /usr/local/lib/ruby/gems/2.0/gems/activesupport-4.0.0.rc1/lib/active_support/core_ext/string/indent.rb:41:intap'
from /usr/local/lib/ruby/gems/2.0/gems/activesupport-4.0.0.rc1/lib/active_support/core_ext/string/indent.rb:41:in indent' from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/ruby_extensions/string.rb:25:intabto'
from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/ruby_builder.rb:17:in <<' from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/node_classes/inline_module.rb:18:inblock in compile'
from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/ruby_builder.rb:26:in indented' from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/ruby_builder.rb:38:inmodule_declaration'
from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/node_classes/inline_module.rb:17:in compile' from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/node_classes/parsing_rule.rb:12:inblock in compile_inline_module_declarations'
from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/node_classes/parsing_rule.rb:11:in each' from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/node_classes/parsing_rule.rb:11:ineach_with_index'
from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/node_classes/parsing_rule.rb:11:in compile_inline_module_declarations' from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/node_classes/parsing_rule.rb:6:incompile'
from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/node_classes/declaration_sequence.rb:14:in block in compile' from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/node_classes/declaration_sequence.rb:13:ineach'
from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/node_classes/declaration_sequence.rb:13:in compile' from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/node_classes/grammar.rb:11:inblock in compile'
from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/ruby_builder.rb:26:in indented' from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/ruby_builder.rb:38:inmodule_declaration'
from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/node_classes/grammar.rb:7:in compile' from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/metagrammar.rb:297:incompile'
from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/metagrammar.rb:297:in compile' from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/metagrammar.rb:39:incompile'
from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/grammar_compiler.rb:29:in ruby_source_from_string' from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/grammar_compiler.rb:47:inload_from_string'
from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/grammar_compiler.rb:40:in block in load' from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/grammar_compiler.rb:37:inopen'
from /usr/local/lib/ruby/gems/2.0/gems/treetop-1.4.14/lib/treetop/compiler/grammar_compiler.rb:37:in load' from /usr/local/lib/ruby/gems/2.0/gems/openehr-1.2.13/lib/openehr/parser/adl_parser.rb:10:inclass:ADLParser'
from /usr/local/lib/ruby/gems/2.0/gems/openehr-1.2.13/lib/openehr/parser/adl_parser.rb:9:in <module:Parser>' from /usr/local/lib/ruby/gems/2.0/gems/openehr-1.2.13/lib/openehr/parser/adl_parser.rb:7:inmodule:OpenEHR'
from /usr/local/lib/ruby/gems/2.0/gems/openehr-1.2.13/lib/openehr/parser/adl_parser.rb:6:in <top (required)>' from /usr/local/lib/ruby/gems/2.0/gems/openehr-1.2.13/lib/openehr/parser.rb:14:inrequire_relative'
from /usr/local/lib/ruby/gems/2.0/gems/openehr-1.2.13/lib/openehr/parser.rb:14:in <module:Parser>' from /usr/local/lib/ruby/gems/2.0/gems/openehr-1.2.13/lib/openehr/parser.rb:2:inmodule:OpenEHR'
from /usr/local/lib/ruby/gems/2.0/gems/openehr-1.2.13/lib/openehr/parser.rb:1:in <top (required)>' from /usr/local/lib/ruby/site_ruby/2.0/rubygems/custom_require.rb:55:inrequire'
from /usr/local/lib/ruby/site_ruby/2.0/rubygems/custom_require.rb:55:in require' from /usr/home/skoba/src/openehr-rails/lib/generators/openehr/i18n/i18n_generator.rb:4:in<top (required)>'
from /usr/local/lib/ruby/site_ruby/2.0/rubygems/custom_require.rb:55:in require' from /usr/local/lib/ruby/site_ruby/2.0/rubygems/custom_require.rb:55:inrequire'
from /usr/home/skoba/src/openehr-rails/spec/generators/openehr/i18n/i18n_generator_spec.rb:3:in <top (required)>' from /usr/local/lib/ruby/gems/2.0/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:inload'
from /usr/local/lib/ruby/gems/2.0/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in block in load_spec_files' from /usr/local/lib/ruby/gems/2.0/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:ineach'
from /usr/local/lib/ruby/gems/2.0/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in load_spec_files' from /usr/local/lib/ruby/gems/2.0/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:22:inrun'
from /usr/local/lib/ruby/gems/2.0/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:80:in run' from /usr/local/lib/ruby/gems/2.0/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:17:inblock in autorun'

RMFactory

RMFactory is a AbstractFactory, whose inheritance generates Reference Model of the openEHR specification.

Hello, anybody?

I am a newcomer in Health Informatics. I started developing software 10 years ago (.NET guy), but I just started (about 1 year ago) developing EHR systems for hospitals here in my country. But we don't follow any international standard yet (at least for patient data storage). Instead we have to translate concepts to send messages to other systems.

Also, I started to write an article about openEHR (for my MBA) and I'm searching applications using openEHR, but it seems that they are rare and slow paced. Did you stop from developing this github project?

remote platform

I have API (HTTP) access to remote openEHR platform while writing web application in Ruby. Is this gem what I should go from?

A little help

Hi, I am interest in help building your Ruby OpenEHR implementation but I'm afraid I'm a little lost.

I understand Archetypes have definitions, ontologies and constraints and they are the "lego bricks" that allow build an OpenEHR application. I also understand that templates are a kind of archetypes formed but basic archetypes and those templates are compiled to generate the operational templates (OT). This OT connect the medical world with the programmers world and contain the info to build the model (the "M" in MVC).

But from there I don't know how I can help this project, I think would be a good idea to make a wiki page for every OpenEHR step (serialize, validation, template compilation) and what current Ruby class creates those implementation features.

Cheers from México!

ADL Validator

To validate archetype consistency of its constraints.

ADL Parser not working

Hi,
I'm trying to do an ADL repository in Ruby on Rails. Like the one openEHR has, but in Ruby, and not using flash for the mindmap section.
I was trying to use your lib but it doesn't matter what i do i can't pass this error:

NameError: undefined local variable or method `_nt_SYM_IS_CONTROLED' for #<OpenEHR::Parser::ADLGrammarParser:0x000000086a6320>
        from (eval):522:in `_nt_arch_meta_data_item'
        from (eval):409:in `block in _nt_arch_meta_data_items'
        from (eval):398:in `loop'
        from (eval):398:in `_nt_arch_meta_data_items'
        from (eval):327:in `_nt_arch_meta_data'
        from (eval):259:in `_nt_arch_head'
        from (eval):197:in `_nt_arch_identification'
        from (eval):93:in `_nt_archetype'
        from /usr/local/rvm/gems/ruby-2.2.1/gems/treetop-1.6.3/lib/treetop/runtime/compiled_parser.rb:18:in `parse'
        from /usr/local/rvm/gems/ruby-2.2.1/gems/openehr-1.2.9999/lib/openehr/parser/adl_parser.rb:28:in `parsed_data'
        from /usr/local/rvm/gems/ruby-2.2.1/gems/openehr-1.2.9999/lib/openehr/parser/adl_parser.rb:40:in `archetype_id'
        from /usr/local/rvm/gems/ruby-2.2.1/gems/openehr-1.2.9999/lib/openehr/parser/adl_parser.rb:79:in `archetype'
        from /usr/local/rvm/gems/ruby-2.2.1/gems/openehr-1.2.9999/lib/openehr/parser/adl_parser.rb:17:in `parse'
        from (irb):5
        from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.3/lib/rails/commands/console.rb:110:in `start'
        from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.3/lib/rails/commands/console.rb:9:in `start'
... 9 levels...
        from /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:268:in `load'
        from /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:268:in `block in load'
        from /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:240:in `load_dependency'
        from /usr/local/rvm/gems/ruby-2.2.1/gems/activesupport-4.2.3/lib/active_support/dependencies.rb:268:in `load'
        from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/commands/rails.rb:6:in `call'
        from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/command_wrapper.rb:38:in `call'
        from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/application.rb:183:in `block in serve'
        from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/application.rb:156:in `fork'
        from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/application.rb:156:in `serve'
        from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/application.rb:131:in `block in run'
        from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/application.rb:125:in `loop'
        from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/application.rb:125:in `run'
        from /usr/local/rvm/gems/ruby-2.2.1/gems/spring-1.3.6/lib/spring/application/boot.rb:18:in `<top (required)>'
        from /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'

I tought maybe i was doing something wrong. I tried to go back to ruby 1.9.3, but the error keeps happening. I'd like to know if this lib accepts ISO13306 archetypes as well... i don't know a lot of ruby, but i can try to help.
Regards!

openehr-ruby roadmap and development guideline

Hello,

Please furnish the roadmap of the project.

What is the difference between openehr-ruby vs openehr-rails ?

Is openehr-ruby base for openehr-rails ?

For which project a developer should contribute ?

How and where should developer start the project understanding and coding ?

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.