Sha256: 2c03760a6b6afbe974ee1692375c9bd57a0d9da164dd2eb3d7e3833303b230e9

Contents?: true

Size: 1.65 KB

Versions: 16

Compression:

Stored size: 1.65 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 -%>
              <id root="<%= details[:id] %>"/>
              
              <%- 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

16 entries across 16 versions & 1 rubygems

Version Path
health-data-standards-4.3.5 lib/hqmf-generator/field.xml.erb
health-data-standards-4.3.4 lib/hqmf-generator/field.xml.erb
health-data-standards-4.3.3 lib/hqmf-generator/field.xml.erb
health-data-standards-4.3.2 lib/hqmf-generator/field.xml.erb
health-data-standards-4.3.1 lib/hqmf-generator/field.xml.erb
health-data-standards-4.3.0 lib/hqmf-generator/field.xml.erb
health-data-standards-4.2.0 lib/hqmf-generator/field.xml.erb
health-data-standards-4.1.0 lib/hqmf-generator/field.xml.erb
health-data-standards-4.0.6 lib/hqmf-generator/field.xml.erb
health-data-standards-4.0.5 lib/hqmf-generator/field.xml.erb
health-data-standards-4.0.4 lib/hqmf-generator/field.xml.erb
health-data-standards-4.0.3 lib/hqmf-generator/field.xml.erb
health-data-standards-4.0.2 lib/hqmf-generator/field.xml.erb
health-data-standards-4.0.1 lib/hqmf-generator/field.xml.erb
health-data-standards-4.0.0 lib/hqmf-generator/field.xml.erb
health-data-standards-3.7.0 lib/hqmf-generator/field.xml.erb