Examples of ArchetypeTerm


Examples of org.openehr.am.archetype.ontology.ArchetypeTerm

        System.out.println("paths size: " + paths.size());

        CObject node = null;
        String rmTypeName = null;
        ArchetypeOntology archetypeOntology = a.getOntology();
        ArchetypeTerm termDefinition = null;
        String termDefinitionString = null;
       
        int i = 0;
        for (String path : paths) {
            node = a.node(path);
            rmTypeName = node.getRmTypeName();
            if (node != null) {
//                if(    !rmTypeName.equalsIgnoreCase("ELEMENT")
//                    && !rmTypeName.equalsIgnoreCase("ITEM_TREE")
//                    && !rmTypeName.equalsIgnoreCase("EVENT")
//                    && !rmTypeName.equalsIgnoreCase("HISTORY")
//                    && !rmTypeName.equalsIgnoreCase("OBSERVATION")
//                    && !rmTypeName.equalsIgnoreCase("DV_CODED_TEXT")
//                   )
                {
                    termDefinition = archetypeOntology.termDefinition("en", node.getNodeID());
                    if(termDefinition != null){
                        termDefinitionString = termDefinition.getText();
                        i++;
                        debugText(termDefinitionString+"\n"+rmTypeName+" \t- "+node.getClass().getSimpleName() + " \t- " + path);
                    } else {
                        termDefinitionString = "...";
                    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.