Giter VIP home page Giter VIP logo

adl-tools's Introduction

adl-tools

openEHR ADL Workbench tool

(see the github wiki for this repository)

adl-tools's People

Contributors

cemadmin avatar petergummer avatar wolandscat 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

Watchers

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

adl-tools's Issues

Filemode problem causes problems with git status, commit

When git status, git commit and some other git commands are called, the filemode set on files can be a problem on some file systems, and/or combinations of tools and how a checkout was done.

One known case is if a git repo was created with cygwin git, and later visited with Windows git. See git-config man page (search 'filemode').

The problem is also described here and here on Stackoverflow.

A possible fix to apply to adl-tools is:

  • add in a check on initialisation that detects if there is a file-mode problem (what check?); this may or may not be possible since it can be on a per-repo basis.
  • change commands like git status become git -c core.filemode=false status. Note this would only ever be needed on a Windows machine, but should not cause problems elsewhere.

At the moment, we'll monitor the problem in the user community and try to ascertain more about when it occurs.

Implement anchored types in BMM

As per issues #8 and #7, add anchored types in to the BMM to simplify ability to express redefinitions without resorting to the manual form required by UML, Java etc.

Error when loading archetypes

I'm using the latest version of the workbench on a 64Bit version of Windows 7 (having the latest updates). When trying to load archetypes, I get the following exception:

adl_workbench_error1

Problems with installing repositories

Hello,

I have a problem using the ADL workbench (2.0.5). If I want to install the openEHR-reference repository, the install link doesn't work. The only way is to click on the install link and then click 'VCS refresh'. That worked one time, and now it won't again.

Furthermore, I can't manage to open almost all ADL 1.4 archetypes on my computer. It gives an error that looks the same as in issue-1 (#1). I don't know if this is related to the malfunction of the repository installer.

I'm using windows 8(.1)

Kevin

Archetype id rename doesn't rename file, enabling subsequent clash.

The following steps will fail:

  • start with an archetype 'aaaa' under any class in any RM
  • edit it in AWB via the ADL tab, and change the id to 'bbbb' & save
    • => causes archetype 'bbbb' to be saved in file 'aaaa'
  • now create a new archetype 'aaaa'
    • => this will be saved over the top of the 'aaaa' file, deleting the 'bbbb' archetype from the system

to avoid this, any rename has to cause a file-level rename as well.

Installation Error

when i try to build i get this error:
Apples-MBP:adl-tools root# scons downloads/mac_osx/adl_workbench
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
Setting revision 3039 ...
adl_workbench
/Applications/MacPorts/Eiffel_18.11/studio/spec/macosx-x86-64/bin/ec -batch -config apps/adl_workbench/app/adl_workbench.ecf -finalize -clean -c_compile -target adl_workbench
... ch/app/adl_workbench.ecf -finalize -clean -c_compile -target adl_workbench
Eiffel Compilation Manager
Version 18.11.10.2592 GPL Edition - macosx-x86-64

Degree 6: Examining System
Degree 5: Parsing Classes
Degree 6: Examining System
Degree 5: Parsing Classes

Warning code: VD80

Configuration warning

Class: AGENT_
File name: ~/openEHR/adl-tools/libraries/openehr/src/rm/demographic/agent.e
Expected file name: ~/openEHR/adl-tools/libraries/openehr/src/rm/demographic/agent_.e


Error code: VTCT

Error: type is based on unknown class.
What to do: use an identifier that is the name of a class in the universe.

Class: EV_TREE_IMP
Unknown class name: EV_TREE_ACTION_SEQUENCES_IMP
Line: 52

-> EV_TREE_ACTION_SEQUENCES_IMP


scons: *** [EIFGENs/adl_workbench/F_code/adl_workbench] Error 1
scons: building terminated because of errors.
Apples-MBP:adl-tools root#

what should I do?

Type parameters redefined by RM specification are not displayed correctly

Some types under the quantity package (such as DV_COUNT) redefine type parameters for normal_range and other_reference ranges to more specific types (the actual type that inherits these attributes)

However, the properties and closure views still show the less strict type bound as follows:

image

I'll open a separate issue regarding the loss of this specialisation in the exported XML

unable to load any template

I'm unable to load any template. For instance the example template openEHR-DEMOGRAPHIC-PERSON.t_patient_simple.v1 cited in the template example of https://openehr.github.io/adl-tools/adl_workbench_guide.html gives this error if loaded individually:

******************************** Thread exception *****************************
In thread Root thread 0x0 (thread id)



Class / Object Routine Nature of exception Effect

ARCHETYPE_FILE_SOURCE
put_archetype_from_file @23
has_path:
<00005587E59D3328> Postcondition violated. Fail

ARCHETYPE_FILE_SOURCE
put_archetype_from_file @23
<00005587E59D3328> Routine failure. Fail

ARCHETYPE_LIBRARY add_adhoc_archetype @3
<00007F36368CBE18> Routine failure. Fail

GUI_LIBRARY_TOOL open_adhoc_archetype @12
<00005587E4BAFC68> Routine failure. Fail

PROCEDURE fast_call
<00005587E4BAFBC8> Routine failure. Fail

PROCEDURE call @3
<00005587E4BAFBC8> Routine failure. Fail

EV_NOTIFY_ACTION_SEQUENCE
call @22
<00005587E4BAFB08> (From ACTION_SEQUENCE) Routine failure. Fail

EV_NOTIFY_ACTION_SEQUENCE
call @3
<00005587E4BAFB08> (From EV_LITE_ACTION_SEQUENCE)
Routine failure. Fail

EV_MENU_ITEM_IMP on_activate @8
<00005587E4BAFA08> Routine failure. Fail

PROCEDURE fast_call
<00007F364AA14E18> Routine failure. Fail

PROCEDURE call @3
<00007F364AA14E18> Routine failure. Fail

EV_APPLICATION_IMP call_separate_action @1
<00005587E5D0FCE8> (From EV_APPLICATION_I)
Routine failure. Fail

EV_APPLICATION_IMP process_event_queue @48
<00005587E5D0FCE8> (From EV_APPLICATION_I)
Routine failure. Fail

EV_APPLICATION_HANDLER
process_application_event_queue @1
<00007F3635DC2D38> Routine failure. Fail

EV_APPLICATION_HANDLER
launch @3
<00007F3635DC2D38> Routine failure. Fail

GUI_APP_ROOT internal_launch_application @2
<00005587E5D0FC98> (From EV_APPLICATION) Routine failure. Fail

GUI_APP_ROOT launch @6
<00005587E5D0FC98> (From EV_APPLICATION) Routine failure. Fail

GUI_APP_ROOT make_and_launch @8
<00005587E5D0FC98> Routine failure. Fail

GUI_APP_ROOT root's creation
<00005587E5D0FC98> Routine failure. Exit

problem compiling an archetype

Hi,
I installed the 2.0.6 version on Linux (Eiffel 18.07). I got the rm resources and the archetypes from ckm. I tried to compile the archetypes but only 219 out of 508 are considered valid
For example compiling admission from openehr-ehr_1.0.2 gives precondition error that I can't understand. In the validity tab it is said error in line 94 with invalid code term reference but the archetype has at0004 which is valid.
What am I doing wrong?

Redefinition of type parameters are not included in the XML export

The redefinition of type parameters such as normal_range for DV_COUNT having type DV_INTERVAL<DV_COUNT> instead of DV_INTERVAL<DV_ORDERED> is not included in the XML export of RM.

see the following excerpt from an export of openEHR rm 1.0.2:

<class_definitions id="DV_COUNT">
  <name>DV_COUNT</name>
  <ancestors>DV_AMOUNT</ancestors>
  <properties id="magnitude">
   <name>magnitude</name>
   <type>Integer</type>
   <type_ref>
    <type>Integer</type>
   </type_ref>
   <is_mandatory>false</is_mandatory>
   <is_computed>false</is_computed>
   <is_im_infrastructure>false</is_im_infrastructure>
   <is_im_runtime>false</is_im_runtime>
  </properties>
  <source_schema_id>openehr_basic_types_1.0.2</source_schema_id>
  <is_abstract>false</is_abstract>
  <is_override>false</is_override>
  <uid>477</uid>
 </class_definitions>`

I don't know if this points at a limitation in the BMM but without having this information encoded in the RM export some way, code that uses the XML export cannot be aware of this redefinition.

RM Config validation errors for Clean Install

Hi,
I've installed ADL workbench v2.06 on a "Windows 2016 server Datacentre" Azure VM. However the RM Schema Config (see attached) has exclamation marks (except for fhir) with warnings e.g. clicking on openehr gives the error "ERROR (BMM_INC) Reference Model Schema openehr_adl_test_1.02 includes schema openehr_rm_data_types_1.0.4 that does not exist" any ideas/pointers?
Thanks,
Gregory
Screenshot 2019-06-27 at 16 26 33

Wrong links to binary distributions

Observed result

Clicking on any of the download links in the "The openEHR Eiffel Reference Implementation Project" project page leads to a "Not found" error page.

Steps to reproduce

or

Workaround

Use the download link provided here:

http://openehr.github.io/adl-tools/adl_workbench_guide.html#_download

Converting ADL schemes into Sql and generating tables

Hello,

I am having difficulties in converting an archetype into Sql scheme in order to generate the specific tables.
Can anyone please help me understand this further or give me some guidelines.

Thanks a lot

My regards,
Fadoua

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.