lib/hqmf-generator/field.xml.erb in health-data-standards-3.4.6 vs lib/hqmf-generator/field.xml.erb in health-data-standards-3.5.0
- old
+ new
@@ -17,12 +17,24 @@
<%- if details[:templateId] -%>
<templateId>
<item root="<%= details[:template_id] %>"/>
</templateId>
<%- end -%>
+
+ <%- if is_transfer(details[:code]) -%>
+ <title value="<%= details[:code] %>" />
+ <statusCode code="completed" />
+ <%= xml_for_value(value) %>
+ <participation typeCode="ORG">
+ <role classCode="LOCE">
+ <code xsi:type="CD" />
+ </role>
+ </participation>
+ <%- else -%>
<code code="<%= details[:code] %>" codeSystem="<%= details[:code_system] %>" codeSystemName="<%= details[:code_system_name] %>">
- <displayName value="<%= details[:title] %>"/>
+ <displayName value="<%=ERB::Util::h details[:title] %>"/>
</code>
<%= xml_for_value(value) %>
+ <%- end -%>
</observationCriteria>
<%- end -%>
</outboundRelationship>