title: Ruby: Not able to compare values correctly in JSON file
body: <p>This is the code to fetch JSON file with diastolic values &gt; 100</p>
  <pre><code>
      def self.hypertension_observation_high(bundle) 
        entries = bundle.entry.select {|entry| entry.resource.is_a?(FHIR::Observation)}
        observations = entries.map {|entry| entry.resource}
        hypertension_observation_statuses = observations.select {|observation| observation&amp;.component&amp;.at(0)&amp;.code&amp;.text == 'Diastolic Blood Pressure'}
        hypertension_observation_statuses.map do |observation| 
          x = observation&amp;.component&amp;.at(0)&amp;.valueQuantity&amp;.value.to_i
          y = observation&amp;.component&amp;.at(0)&amp;.code&amp;.text
          puts (observation&amp;.component&amp;.at(0)&amp;.code&amp;.text)
          puts y.class
          puts (observation&amp;.component&amp;.at(0)&amp;.valueQuantity&amp;.value)
          puts x.class
          puts (x &gt; 100)
          puts '..........'
        end
        hypertension_observation_statuses.any? {|observation| observation&amp;.component&amp;.at(0)&amp;.valueQuantity&amp;.value.to_i &gt; 100 }
      end
  </code></pre>
  <p>This is my console; And it is showing all the values and types correctly:</p>
  <pre><code>..........
  Diastolic Blood Pressure
  String
  79
  Integer
  false
  ..........
  Diastolic Blood Pressure
  String
  105
  Integer
  true
  ..........
  Diastolic Blood Pressure
  String
  98
  Integer
  false
  ..........
  Diastolic Blood Pressure
  String
  116
  Integer
  true
  ..........
  Diastolic Blood Pressure
  String
  110
  Integer
  true
  ..........
  Diastolic Blood Pressure
  String
  118
  Integer
  true
  ..........
  Diastolic Blood Pressure
  String
  108
  Integer
  true
  ..........
  Diastolic Blood Pressure
  String
  99
  Integer
  false
  ..........
  Diastolic Blood Pressure
  String
  99
  Integer
  false
  ..........
  Diastolic Blood Pressure
  String
  115
  Integer
  true
  ..........
  </code></pre>
  <p>This is my JSON file:
  <a href="https://www.dropbox.com/s/1gdm6bdu2p1r84i/Aaratrika954_Butt355_59939a08-96e1-68d0-76c8-ec52b4b5308a.json?dl=0" rel="nofollow noreferrer">https://www.dropbox.com/s/1gdm6bdu2p1r84i/Aaratrika954_Butt355_59939a08-96e1-68d0-76c8-ec52b4b5308a.json?dl=0</a></p>
  <p>But, I am NOT getting the correct JSON file with the required values in the output. I am even getting the values with &lt;100</p>