Sha256: cd2388dce0829ff9ce87a22c42f889367447dbf6fe110dfac9287fd0969a8867

Contents?: true

Size: 1.9 KB

Versions: 6

Compression:

Stored size: 1.9 KB

Contents

  <recordTarget>
    <patientRole>
      <id root="Cypress" extension="<%= patient.id %>"/>
      <!-- Fake Medicare HIC number -->
      <id extension="12345" root="2.16.840.1.113883.4.572"/>
      <addr use="HP">
        <streetAddressLine>202 Burlington Rd.</streetAddressLine>
        <city>Bedford</city>
        <state>MA</state>
        <postalCode>01730</postalCode>
        <country>US</country>
      </addr>
      <telecom use="WP" value="tel:+1-781-271-3000"/>
      <patient>
        <name>
          <given><%= patient.first %></given>
          <family><%= patient.last %></family>
        </name>
        <administrativeGenderCode code="<%= patient.gender %>" codeSystem="2.16.840.1.113883.5.1" codeSystemName="HL7 AdministrativeGender"/>
        <birthTime value="<%= Time.at(patient.birthdate).utc.to_formatted_s(:number) %>"/>
        <% if (patient.race) %>
          <raceCode code="<%= patient.race['code'] %>" <% if patient.race['name']%>displayName="<%= patient.race['name'] %>"<% end %> codeSystemName="CDC Race and Ethnicity" codeSystem="2.16.840.1.113883.6.238"/>
        <% end %>
        <% if (patient.race) %>
          <ethnicGroupCode code="<%= patient.ethnicity['code'] %>" <% if patient.ethnicity['name']%>displayName="<%= patient.ethnicity['name'] %>"<% end %> codeSystemName="CDC Race and Ethnicity" codeSystem="2.16.840.1.113883.6.238"/>
        <% end %>
        <%
          languages = patient.languages 
          languages = ["en-US"] if languages.nil? or languages.empty?
          languages.each do |language|%>
          <languageCommunication>
            <templateId root="2.16.840.1.113883.3.88.11.83.2" assigningAuthorityName="HITSP/C83"/>
            <templateId root="1.3.6.1.4.1.19376.1.5.3.1.2.1" assigningAuthorityName="IHE/PCC"/>
            <languageCode code="<%= language %>"/>
          </languageCommunication>
        <% end %>
      </patient>
    </patientRole>
  </recordTarget>

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
health-data-standards-3.0.6 templates/cat1/_record_target.cat1.erb
health-data-standards-3.0.5 templates/cat1/_record_target.cat1.erb
health-data-standards-3.0.4 templates/cat1/_record_target.cat1.erb
health-data-standards-3.0.3 templates/cat1/_record_target.cat1.erb
qrda_generator-1.0.1 templates/_record_target.cat1.erb
qrda_generator-1.0.0 templates/_record_target.cat1.erb