lib/health-data-standards/export/ccr.rb in health-data-standards-0.8.0 vs lib/health-data-standards/export/ccr.rb in health-data-standards-0.8.1

- old
+ new

@@ -344,24 +344,25 @@ xml.Name do xml.CurrentName do xml.Given(patient.first) xml.Family(patient.last) end - end + end xml.DateOfBirth do - xml.ExactDateTime(convert_to_ccr_time_string(patient.birthdate)) + xml.ExactDateTime(convert_to_ccr_time_string(patient.birthdate)) end + if (patient.gender) xml.Gender do if (patient.gender.upcase == "M") xml.Text("Male") elsif (patient.gender.upcase == "F") xml.Text("Female") else xml.Text("Undifferentiated") end end - end + end end xml.Source end end end \ No newline at end of file