lib/hqmf-generator/code.xml.erb in health-data-standards-3.4.6 vs lib/hqmf-generator/code.xml.erb in health-data-standards-3.5.0
- old
+ new
@@ -2,12 +2,16 @@
<%- code_system_name = criteria.inline_code_list.keys[0] -%>
<%- code = criteria.inline_code_list[code_system_name][0] -%>
<%- code_system_oid = oid_for_name(code_system_name) -%>
<<%= name %> codeSystemName="<%= code_system_name %>" codeSystem="<%= code_system_oid %>"
code="<%= code %>">
- <displayName value="<%= criteria.title %>"/>
+ <%- if criteria.title -%>
+ <displayName value="<%=ERB::Util::h criteria.title %>"/>
+ <%- end -%>
</<%= name %>>
<%- elsif criteria.code_list_id -%>
<<%= name %><%= " xsi:type=\"CD\"" if include_type %> valueSet="<%= criteria.code_list_id %>">
- <displayName value="<%= criteria.title %>"/>
+ <%- if criteria.title -%>
+ <displayName value="<%=ERB::Util::h criteria.title %>"/>
+ <%- end -%>
</<%= name %>>
<%- end -%>
\ No newline at end of file