private boolean checkToSetCodedContent(Element in, Element out, String fieldToSet) {
        // first look for coded content
    	CodedContentCollection collector = new CodedContentCollection();
        // String codedID = in.getAttribute("name");
        if (in.getAttribute("radlex:id") != null && in.getAttribute("radlex:id") != "") {
            collector.add(in.getAttribute("name"), in.getAttribute("radlex:id"), "2.16.840.1.113883.6.256");
        }
        if (in.getAttribute("snomed:id") != null && in.getAttribute("snomed:id") != "") {
            collector.add(in.getAttribute("name"), in.getAttribute("snomed:id"), "2.16.840.1.113883.6.96");
        }
        if (in.getAttribute("loinc:id") != null && in.getAttribute("loinc:id") != "") {
            collector.add(in.getAttribute("name"), in.getAttribute("loinc:id"), "2.16.840.1.113883.6.1");
        }
        // now if there's some items, process them in one fell swoop
        if (collector.getContent().size() > 0) {
            String tagID = name + "_cc" + Integer.toString(codedContentID);
            // base node to add
            Element entryNode = html.createElement("entry");
            entryNode.setAttribute("ORIGTXT", tagID);
            tagCodedContent.appendChild(entryNode);
            // iterate through items
            for (CodedContent cc : collector.getContent()) {
                // base entry
                Element termNode = html.createElement("term");
                entryNode.appendChild(termNode);
                // meaning
                Element meaningNode = html.createElement("code_meaning");
                meaningNode.setTextContent(cc.getName());
                termNode.appendChild(meaningNode);
                // / value
                Element valueNode = html.createElement("code_value");
                valueNode.setTextContent(cc.getValue());
                termNode.appendChild(valueNode);
                // codeset
                Element codesetNode = html.createElement("coding_scheme_designator");
                codesetNode.setTextContent(cc.getCodeset());
                termNode.appendChild(codesetNode);
            }
            out.setAttribute(fieldToSet, tagID);
            codedContentID++;
            return true;
        }
        else {
            return false;
        }
    }