public Type makeStringFromED(Element e) throws Exception { if (e == null) return null; if (cda.getChild(e, "reference") != null) { if (cda.getChild(e, "reference").getAttribute("value").startsWith("#")) { Element t = cda.getByXmlId(cda.getChild(e, "reference").getAttribute("value").substring(1)); String ot = t.getTextContent().trim(); return Utilities.noString(ot) ? null : Factory.newString_(ot); } else throw new Exception("external references not handled yet "+cda.getChild(e, "reference").getAttribute("value")); } return Factory.newString_(e.getTextContent()); }
public static void addDisplayHint(Element def, String hint) { if (!StringUtils.isBlank(hint)) def.getExtension().add(Factory.newExtension(EXT_DISPLAY_HINT, Factory.newString_(hint), true)); }
public static void addVSComment(ConceptReferenceComponent nc, String comment) { if (!StringUtils.isBlank(comment)) nc.getExtension().add(Factory.newExtension(EXT_VS_COMMENT, Factory.newString_(comment), true)); }
public static void addVSComment(ConceptSetComponent nc, String comment) { if (!StringUtils.isBlank(comment)) nc.getExtension().add(Factory.newExtension(EXT_VS_COMMENT, Factory.newString_(comment), true)); } public static void addVSComment(ConceptReferenceComponent nc, String comment) {
public static void addDefinition(Element nc, String definition) { if (!StringUtils.isBlank(definition)) nc.getExtension().add(Factory.newExtension(EXT_DEFINITION, Factory.newString_(definition), true)); }
public static void addCSComment(ConceptDefinitionComponent nc, String comment) { if (!StringUtils.isBlank(comment)) nc.getExtension().add(Factory.newExtension(EXT_CS_COMMENT, Factory.newString_(comment), true)); }
public Type makeStringFromED(Element e) throws Exception { if (e == null) return null; if (cda.getChild(e, "reference") != null) { if (cda.getChild(e, "reference").getAttribute("value").startsWith("#")) { Element t = cda.getByXmlId(cda.getChild(e, "reference").getAttribute("value").substring(1)); String ot = t.getTextContent().trim(); return Utilities.noString(ot) ? null : Factory.newString_(ot); } else throw new Exception("external references not handled yet "+cda.getChild(e, "reference").getAttribute("value")); } return Factory.newString_(e.getTextContent()); }
public static void addReferenceFilter(QuestionnaireItemComponent group, String value) { group.getExtension().add(Factory.newExtension(EXT_REFERENCEFILTER, Factory.newString_(value), true)); }
public static void addFhirType(QuestionnaireItemComponent group, String value) { group.getExtension().add(Factory.newExtension(EXT_FHIRTYPE, Factory.newString_(value), true)); }