Sha256: 563c06a78e941db59780dc5c073f3df0eed0cc32e5f5d29159c3242e94c427e8

Contents?: true

Size: 1.6 KB

Versions: 5

Compression:

Stored size: 1.6 KB

Contents

          <outboundRelationship typeCode="SUBJ">
<%- if details[:code] == 'SDLOC' -%>
            <encounterCriteria classCode="ENC" moodCode="EVN">
              <%- if details[:templateId] -%>
              <templateId>
                <item root="<%= details[:template_id] %>"/>
              </templateId> 
              <%- end -%>
              <participation typeCode="LOC">
                <role classCode="SDLOC">
                  <%= xml_for_value(value, 'code') %>
                </role>
              </participation>
            </encounterCriteria>
<%- else -%>
            <observationCriteria classCode="OBS" moodCode="EVN">
              <%- 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="<%=ERB::Util::h details[:title] %>"/> 
              </code>
              <%= xml_for_value(value) %>
              <%- end -%>
            </observationCriteria>
<%- end -%>
          </outboundRelationship>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
health-data-standards-3.6.1 lib/hqmf-generator/field.xml.erb
health-data-standards-3.5.3 lib/hqmf-generator/field.xml.erb
health-data-standards-3.5.2 lib/hqmf-generator/field.xml.erb
health-data-standards-3.5.1 lib/hqmf-generator/field.xml.erb
health-data-standards-3.5.0 lib/hqmf-generator/field.xml.erb