Archetype Editor Language/terminology related problems

Hi all, I’m working on a couple of openEHR workshops I’ll give in Argentina: http://translate.google.com/translate?hl=es&sl=es&tl=en&u=http://informatica-medica.blogspot.com/2013/11/talleres-de-openehr.html

Doing a little testing of my examples, if found two possible bugs on AE v2.2.905 beta

  1. When I add and remove EVENTs from an OBSERVATION, and then go to the Terminology tab, I can see all the nodeIDs generated for the EVENTs I’ve created but already removed from the archetype definition. Screen capture shows the items that should not be seen.

  2. Adding a language and trying to toggle using the main menú or CTRL+L doesn’t work. If I change the language manually: Language > Change Language > ES, then CTRL+L and Language > Toggle Language start to work.

  1. When I add and remove EVENTs from an OBSERVATION, and then go to the Terminology tab, I can see all the nodeIDs generated for the EVENTs I’ve created but already removed from the archetype definition. Screen capture shows the items that should not be seen.

Archetype Editor doesn’t clean up unused ontology codes until you save the archetype. I think if you save it, you’ll see that they are gone. Please raise a problem report if they are still there after you save.

I’ve always thought that this was by design, so that any text or description from a node that you had just deleted would still be available for you to copy to another node, if you wanted to do that. But I’m not sure … it’s always been like that. Is the current behaviour good, or would it be better if the deleted codes were removed immediately?

  1. Adding a language and trying to toggle using the main menú or CTRL+L doesn’t work. If I change the language manually: Language > Change Language > ES, then CTRL+L and Language > Toggle Language start to work.

Yes that is a bug. The problem is only on the Terminology tab, and only with the Ctrl+L shortcut, right? Could you log the problem at http://www.openehr.org/issues/browse/AEPR please?

Thanks, Pablo. Good luck with the workshops.

  • Peter

Hi Peter,

I’ll raise the issues ASAP.

This is not related to the topic, but I prefer to have all this reports on th same thread. When I create an archetype (see attached), without saving it, and click on the “interface” tab (i spanish should be “interfaz”), I get an exception:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NotSupportedException: Constraint type ‘Parsable’ not supported as a view.
at Microsoft.VisualBasic.CompilerServices.Symbols.Container.InvokeMethod(Method TargetProcedure, Object Arguments, Boolean CopyBack, BindingFlags Flags)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.CallMethod(Container BaseReference, String MethodName, Object Arguments, String ArgumentNames, Type TypeArguments, Boolean CopyBack, BindingFlags InvocationFlags, Boolean ReportErrors, ResolutionFailure& Failure)
at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateCall(Object Instance, Type Type, String MemberName, Object Arguments, String ArgumentNames, Type TypeArguments, Boolean CopyBack, Boolean IgnoreReturn)
at ArchetypeEditor.TabPageStructure.BuildInterface(Control aContainer, Point& pos, Boolean mandatory_only)
at ArchetypeEditor.Designer.BuildInterfaceTabPage()
at ArchetypeEditor.Designer.TabMain_SelectionChanged(Object sender, EventArgs e)
at Crownwood.Magic.Controls.TabControl.OnSelectionChanged(EventArgs e)
at Crownwood.Magic.Controls.TabControl.MovePageSelection(TabPage page)
at Crownwood.Magic.Controls.TabControl.InternalMouseDown(Point mousePos)
at Crownwood.Magic.Controls.TabControl.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3649 (GDR.050727-3600)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll

(attachments)

openEHR-EHR-OBSERVATION.test_adl_parser.v1.adl (6.63 KB)

This is not related to the topic, but I prefer to have all this reports on th same thread. When I create an archetype (see attached), without saving it, and click on the “interface” tab (i spanish should be “interfaz”), I get an exception:

System.NotSupportedException: Constraint type ‘Parsable’ not supported as a view.

Thanks, Pablo, can you raise that one too when you get a chance? We should catch the exception or, better, implement Parsable on the Interface tab.

I’ll try to remember to add the “Interfaz” translation too. It’s just a matter of adding the necessary “es” entry to AE’s Terminology.xml file.

Peter

Great, will log all the errors on JIRA.

About translations, I would like to create poper translations to spanish. Is there a translation guide or i18n files I can upgrade?

Thanks!

Hi Pablo,

All of Archetype Editor’s translations are in one file, “terminology.xml” which is maintained on GitHub:

https://github.com/openEHR/arch_ed-dotnet/tree/master/ArchetypeEditor/Terminology

It looks like you already have a GitHub account (ppazos), so Thomas will set you up so that you can clone the arch_ed-dotnet repository, make your changes to “terminology.xml” and then push them back up.

You can edit the raw XML if you wish (it’s a pretty simple file), or there’s an exe in the same folder that you can use instead, purpose-built for doing these translations.

Peter