skoba / openehr-ruby Goto Github PK
View Code? Open in Web Editor NEWRuby implementation of the openEHR specification
Home Page: http://openehr.jp/projects/ref-impl-ruby/
License: Apache License 2.0
Ruby implementation of the openEHR specification
Home Page: http://openehr.jp/projects/ref-impl-ruby/
License: Apache License 2.0
ADL scanner must be re-implemented
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.
We need some mplementation technology guide!
To validate archetype consistency of its constraints.
Any plans to support ADL 1.5 in this gem? http://www.openehr.org/downloads/ADLworkbench/learning_about
If not, I'm happy to do a pull request that adds 1.5 support.
/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: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: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:in
tap'
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:in
tabto'
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:in
block 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:in
module_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:in
block 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:in
each_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:in
compile'
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:in
each'
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:in
block 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:in
module_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:in
compile'
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:in
compile'
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:in
load_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:in
open'
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:in
class: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:in
module: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:in
require_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:in
module: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:in
require'
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:in
require'
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:in
load'
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:in
each'
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:in
run'
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:in
block in autorun'
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!
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!
RMFactory is a AbstractFactory, whose inheritance generates Reference Model of the openEHR specification.
ADL parser does not work well.
Shall we present our activity at RubyWorld conference 2013?
http://www.rubyworld-conf.org/en/
Last year, I reported this project on RubyWorld conference 2013 and I could catch audiences. It was a very fantastic event.
I have API (HTTP) access to remote openEHR platform while writing web application in Ruby. Is this gem what I should go from?
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?
RMFactory is a AbstractFactory, whose inheritance generates Reference Model of the openEHR specification.
Serialize archetype to ADL form.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.