Hi there, I'm trying to save and load archetype data for a sample observation which includes boolean and quantity as well. ............. String cellDifferentiation = "/data[at0001]/events[at0002]/ data[at0003]/items[at0006]/items[at0069]/value"; String ana = "/data[at0001]/events[at0002]/data[at0003]/items[at0006]/ items[at0063]/value/value"; String ra = "/data[at0001]/events[at0002]/data[at0003]/items[at0006]/ items[at0064]/value/value"; .........
pArchetypeWrapper .getElementAtNode(cellDifferentiation).setMagnitudeOfQuantity("100"); pArchetypeWrapper .getElementAtNode(cellDifferentiation).setUnitOfQuantity("ml"); pArchetypeWrapper.getElementAtNode(ana).setBooleanValue("False"); pArchetypeWrapper.getElementAtNode(ra).setBooleanValue("True"); I'm actually able to save data in DB but when I run the sample opereffa code to load and print data into console, .......... wrapperToLoadData.loadFromPOJO(archetypeDatas); System .out.println(wrapperToLoadData.getRootWrapper().getGUITestString()); But I can just retrieve boolean values. it sounds somewhere I loose value (numbers) for quantity elements... Any idea about the reason? Regards Pariya MSc; PhD Candidate Department of Computing Science and Engineering Chalmers University of Technology http://www.chalmers.se/cse/EN/people/kashfi-hajar -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20100326/adec004e/attachment.html>