Attribute with multiple data types (polymorphic property)
Description
Attachments
Activity
PourYa Nasimi April 24, 2019 at 5:05 AM
I read lots of articles and find out what exactly the problem is:
we are developing our EHR system based on OpenEHR and creating national service for Medical Laboratory data exchange. in its archetype for Lab result class, there is an attribute that may has multiple data types. in fact we need polymorphic property on OpenEHR system but in XML syntax!
I found this article:
http://www.healthintersections.com.au/?p=1723
there are some solution:
1- A JSON syntax that works well for clients, but is a bitch to parse efficiently for a server.
2- A JSON syntax that isn’t hard for streaming based parsers, but isn’t so nice for client type processing.
3- Fix the property order so that the type property comes first.
also Thomas Beale said that we can use ODIN syntax.
my question is if we have to use XML, what kind of solution is Standard and suitable for OpenEHR based systems?
how could create an Item in archetype with multiple data type?
i created and attached an archetype for laboratory test results.
i created some elements with desire data types and include in archetype slot named TestResult. is it ok?