<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -240,8 +240,8 @@ class Report &lt; OpenMRS
  def self.genrept_hiv_reception(start_date,end_date)
    encounter_types = EncounterType.find(:all,:conditions =&gt; [&quot;(name=? or name=?)&quot;,&quot;General Reception&quot;,&quot;HIV Reception&quot;]).map{|type|type.id}  rescue nil
 
-   hiv_ecounters = Encounter.find(:all,:conditions =&gt; [&quot;encounter_type=? and (encounter_datetime &gt;=? and encounter_datetime &lt;=?)&quot;,encounter_types.first,start_date.to_date,end_date.to_date],:group =&gt; &quot;patient_id&quot;,:order =&gt; &quot;encounter_datetime desc&quot;)
-   genrept_patients = Encounter.find(:all,:conditions =&gt; [&quot;encounter_type=? and (encounter_datetime &gt;=? and encounter_datetime &lt;=?)&quot;,encounter_types.last,start_date.to_date,end_date.to_date],:group =&gt; &quot;patient_id&quot;,:order =&gt; &quot;encounter_datetime desc&quot;)
+   hiv_ecounters = Encounter.find(:all,:conditions =&gt; [&quot;encounter_type=? and (encounter_datetime &gt;=? and encounter_datetime &lt;=?)&quot;,encounter_types.first,start_date.to_date,end_date.to_date],:group =&gt; &quot;patient_id&quot;,:order =&gt; &quot;encounter_datetime asc&quot;)
+   genrept_patients = Encounter.find(:all,:conditions =&gt; [&quot;encounter_type=? and (encounter_datetime &gt;=? and encounter_datetime &lt;=?)&quot;,encounter_types.last,start_date.to_date,end_date.to_date],:group =&gt; &quot;patient_id&quot;,:order =&gt; &quot;encounter_datetime asc&quot;)
    all_patients = Hash.new()
    hiv_patients = Hash.new()
    hiv_ecounters.each{|enc|</diff>
      <filename>app/models/report.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 &lt;%= stylesheet_link_tag &quot;genrept_hiv_reception&quot; %&gt;
-&lt;div id=&quot;page_details&quot;&gt;Latest reception encounters: &lt;%=  @stats_data.length rescue nil %&gt;&lt;/p&gt;
+&lt;div id=&quot;page_details&quot;&gt;First reception encounters: &lt;%=  @stats_data.length rescue nil %&gt;&lt;/p&gt;
 From:&lt;%= &quot;#{@start_date} to #{@end_date}&quot; %&gt;&lt;/div&gt;
 &lt;div id=&quot;head_div&quot;&gt;
 &lt;table id=&quot;head&quot;&gt;</diff>
      <filename>app/views/reports/genrept_hiv_reception.rhtml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>12f5e661955c62bfd9c0bb37d0d56f43ebbf08da</id>
    </parent>
  </parents>
  <author>
    <name>Mwatha Bwanali</name>
    <email>ace@mombo.(none)</email>
  </author>
  <url>http://github.com/baobab/bart/commit/6a618a7f8049812f8355e8e1ebdf8276a6cf55c8</url>
  <id>6a618a7f8049812f8355e8e1ebdf8276a6cf55c8</id>
  <committed-date>2009-03-17T23:54:29-07:00</committed-date>
  <authored-date>2009-03-17T23:54:29-07:00</authored-date>
  <message>improving interface with css</message>
  <tree>edc3f710f63463b696e0223e40e4186309fb9b4c</tree>
  <committer>
    <name>Mwatha Bwanali</name>
    <email>ace@mombo.(none)</email>
  </committer>
</commit>
