@@ -0,0 +1,3413 @@
+import java.io.IOException;%0Aimport java.util.UUID;%0Aimport org.dwfa.cement.RefsetAuxiliary;%0Aimport org.dwfa.tapi.TerminologyException;%0Aimport org.ihtsdo.etypes.EConcept;%0Aimport org.ihtsdo.tk.dto.concept.component.refex.type_uuid.TkRefexUuidMember;%0A%0Apublic class RefsetQuestions%0A%7B%0A    public static void main(String%5B%5D args) throws IOException, TerminologyException%0A    %7B%0A        /**%0A         * Refset Member Type %0A         */%0A        %7B%0A            //Assume these concepts are properly populated and built%0A            EConcept contentConcept = new EConcept();%0A            EConcept refsetContainerConcept = new EConcept();%0A            %0A            TkRefexUuidMember refsetMember = new TkRefexUuidMember();%0A            refsetMember.setPrimordialComponentUuid(UUID.randomUUID());%0A            refsetMember.setComponentUuid(contentConcept.getPrimordialUuid());  %0A            refsetMember.setRefsetUuid(refsetContainerConcept.getPrimordialUuid());  %0A            refsetMember.setUuid1(RefsetAuxiliary.Concept.NORMAL_MEMBER.getPrimoridalUid());%0A            // Set all the refsetMember stamp attributes here%0A            refsetContainerConcept.getRefsetMembers().add(refsetMember);%0A            %0A            /**%0A             * Above is what I do today - and it works as far as I know.  %0A             * %0A             * QUESTION:%0A             * If I followed the e-mail answers properly, I should also be doing this?%0A             */%0A            %0A            contentConcept.setAnnotationIndexStyleRefex(true);%0A            %0A            /**%0A             * QUESTION:%0A             * I'm not really sure how to do refset to annotation conversion...%0A             */%0A            //TkConcept.convertRefex(??);%0A            %0A        %7D%0A %0A        /**%0A         *************************************************************************************************%0A         */%0A        %0A        /**%0A         * Refset Annotation Type%0A         * This works fine when browsing the contentConcept - but I can't seem to browse from the refsetContainerConcept back to the contentConcept.%0A         * %0A         * QUESTION:%0A         * Unsure if I am supposed to be able to or not?%0A         */%0A        %7B%0A            //Assume these are properly populated and built%0A            EConcept contentConcept = new EConcept();%0A            EConcept refsetContainerConcept = new EConcept();%0A        %0A            TkRefexUuidMember conceptRefexMember = new TkRefexUuidMember();%0A            conceptRefexMember.setComponentUuid(contentConcept.getConceptAttributes().getPrimordialComponentUuid());%0A            conceptRefexMember.setPrimordialComponentUuid(UUID.randomUUID());%0A            conceptRefexMember.setUuid1(RefsetAuxiliary.Concept.NORMAL_MEMBER.getPrimoridalUid());%0A            conceptRefexMember.setRefsetUuid(refsetContainerConcept.getPrimordialUuid());%0A            // Set all the refsetMember stamp attributes here%0A            contentConcept.getConceptAttributes().getAnnotations().add(conceptRefexMember);%0A            %0A            /**%0A             * Above is what I do today - If I followed the e-mail answers properly, I should also be doing this?%0A             */%0A            %0A            contentConcept.setAnnotationIndexStyleRefex(true);%0A            %0A            /**%0A             * QUESTION:%0A             * I'm not really sure how to do refset to annotation conversion...%0A             */%0A            %0A            //TkConcept.convertRefex(??)%0A        %7D%0A    %7D%0A%7D%0A

update ignore settings