Sha256: 2b1e808c177e4ce95222bca5731958f1171ab3e816c98329341dc9a0f2b8d56a

Contents?: true

Size: 1.57 KB

Versions: 41

Compression:

Stored size: 1.57 KB

Contents

<hrf-md:DocumentMetaData <% if namespace %>xmlns:hrf-md="http://www.hl7.org/schemas/hdata/2009/11/metadata"<%end%>>
  <% if metadata.mime_types %> 
    <% metadata.mime_types.each do |mt| %>
      <hrf-md:MediaType>mt</hrf-md:MediaType>
    <% end %>
  <% end %>
  <% metadata.pedigrees.each do |pedigree| %>
    <%== render :partial => "pedigree", locals: {pedigree: pedigree}%>
  <% end %>
  <hrf-md:Title><%= entry.id %></hrf-md:Title>
  <hrf-md:LinkedDocuments>
    <% metadata.linked_documents.each do |link| %>
    <hrf-md:Link>
      <hrf-md:Target <% if link.extension %> targetExtension="<%=link.extension%>" <% end %>><%= link.href %></hrf-md:Target>
    </hrf-md:Link>
    <% end %>
  </hrf-md:LinkedDocuments>
  <hrf-md:RecordDate>
    <hrf-md:CreatedDateTime><%= metadata.original_creation_time%></hrf-md:CreatedDateTime>
    <hrf-md:Modified>
      <% metadata.modified_dates.each do |md| %>
        <hrf-md:ModifiedInfo>
          <hrf-md:ChangeDateTime><%= md.timestamp %></hrf-md:ChangeDateTime>
          <%== render :partial => "pedigree", locals: {pedigree: md.pedigree}%>
        </hrf-md:ModifiedInfo>
      <% end %>
    </hrf-md:Modified>
    <hrf-md:Copied>
      <% metadata.copied_dates.each do |cd| %>
        <hrf-md:CopiedInfo>
          <hrf-md:ChangeDateTime><%= cd.timestamp %></hrf-md:ChangeDateTime>
          <%== render :partial => "pedigree", locals: {pedigree: cd.pedigree}%>
        </hrf-md:CopiedInfo>
      <% end %>
    </hrf-md:Copied>
  </hrf-md:RecordDate>
  <hrf-md:Confidentiality><%= metadata.confidentiality%></hrf-md:Confidentiality>
</hrf-md:DocumentMetaData>

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
health-data-standards-3.2.0 templates/metadata.hdata.erb