<commit_before><?xml version="1.0" encoding="UTF-8"?>
<ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:sdtc="urn:hl7-org:sdtc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hl7-org:v3 http://xreg2.nist.gov:8080/hitspValidation/schema/cdar2c32/infrastructure/cda/C32_CDA.xsd">
  <realmCode code="US"/>
  <typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
  <templateId root="2.16.840.1.113883.3.27.1776" assigningAuthorityName="CDA/R2"/>
  <templateId root="2.16.840.1.113883.10.20.3" assigningAuthorityName="HL7/CDT Header"/>
  <templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.1" assigningAuthorityName="IHE/PCC"/>
  <templateId root="2.16.840.1.113883.3.88.11.32.1" assigningAuthorityName="HITSP/C32"/>
  <id root="2.16.840.1.113883.3.72" extension="HITSP_C32v2.5_Rev6_16Sections_Entries_MinimalErrors" assigningAuthorityName="NIST Healthcare Project"/>
  <code code="34133-9" displayName="Summarization of episode note" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
  <title>Cypress C32 Patient Test Record: <%= @patient.first %> <%= @patient.last %></title>
  <effectiveTime value="<%= Time.now.utc.to_formatted_s(:number) %>"/>
  <confidentialityCode code="N"/>
  <languageCode code="nn-CC"/>
  <recordTarget>
    <patientRole>
      <id root="Cypress" extension="<%= @patient.id %>"/>
      <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) %>"/>
        <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="en-US"/>
        </languageCommunication>
      </patient>
    </patientRole>
  </recordTarget>
  <component>
    <structuredBody>
      <% if @patient.allergies.present? -%>
        <%= render :partial => 'allergies', :locals => {:entries => @patient.allergies} %>
      <% end -%>
      <% if @patient.encounters.present? -%>
        <%= render :partial => 'encounters', :locals => {:entries => @patient.encounters} %>
      <% end -%>
    </structuredBody>
  </component>
</ClinicalDocument><commit_msg>Adding more CDA stuff to bring the document closer to a valid C32<commit_after><?xml version="1.0" encoding="UTF-8"?>
<ClinicalDocument xmlns="urn:hl7-org:v3" xmlns:sdtc="urn:hl7-org:sdtc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hl7-org:v3 http://xreg2.nist.gov:8080/hitspValidation/schema/cdar2c32/infrastructure/cda/C32_CDA.xsd">
  <realmCode code="US"/>
  <typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
  <templateId root="2.16.840.1.113883.3.27.1776" assigningAuthorityName="CDA/R2"/>
  <templateId root="2.16.840.1.113883.10.20.3" assigningAuthorityName="HL7/CDT Header"/>
  <templateId root="1.3.6.1.4.1.19376.1.5.3.1.1.1" assigningAuthorityName="IHE/PCC"/>
  <templateId root="2.16.840.1.113883.3.88.11.32.1" assigningAuthorityName="HITSP/C32"/>
  <id root="2.16.840.1.113883.3.72" extension="HITSP_C32v2.5_Rev6_16Sections_Entries_MinimalErrors" assigningAuthorityName="NIST Healthcare Project"/>
  <code code="34133-9" displayName="Summarization of episode note" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"/>
  <title>Cypress C32 Patient Test Record: <%= @patient.first %> <%= @patient.last %></title>
  <effectiveTime value="<%= Time.now.utc.to_formatted_s(:number) %>"/>
  <confidentialityCode code="N"/>
  <languageCode code="nn-CC"/>
  <recordTarget>
    <patientRole>
      <id root="Cypress" extension="<%= @patient.id %>"/>
      <addr use="HP">
        <streetAddressLine>202 Burlington Rd.</streetAddressLine>
        <city>Bedford</city>
        <state>MA</state>
        <postalCode>01730</postalCode>
      </addr>
      <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) %>"/>
        <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="en-US"/>
        </languageCommunication>
      </patient>
    </patientRole>
  </recordTarget>
  <author>
    <time value="<%= Time.now.utc.to_formatted_s(:number) %>"/>
    <assignedAuthor>
      <id/>
      <addr/>
      <telecom value="tel:+1-781-271-3000"/>
      <assignedPerson>
        <name>Auto Generated</name>
      </assignedPerson>
      <representedOrganization>
        <name>Cypress Testing Tool</name>
      </representedOrganization>
    </assignedAuthor>
  </author>
  <component>
    <structuredBody>
      <% if @patient.allergies.present? -%>
        <%= render :partial => 'allergies', :locals => {:entries => @patient.allergies} %>
      <% end -%>
      <% if @patient.encounters.present? -%>
        <%= render :partial => 'encounters', :locals => {:entries => @patient.encounters} %>
      <% end -%>
      <% if @patient.conditions.present? -%>
        <%= render :partial => 'conditions', :locals => {:entries => @patient.conditions} %>
      <% end -%>
    </structuredBody>
  </component>
</ClinicalDocument>
{'fraction_non_alphanumeric': 0.19284225156358584, 'fraction_numerical': 0.08217512161223071, 'mean_word_length': 3.635265700483092, 'pattern_counts': {'":': 0, '<': 141, '<?xml version=': 2, '>': 156, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 8}, 'pii_count': 16, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7565210', 'n_tokens_mistral': 2398, 'n_tokens_neox': 2101, 'n_words': 281}