class SaveController < BaseController

  def viewDidLoad
    super

    self.view.backgroundColor = UIColor.purpleColor
    self.title = "Save"
  end

  def viewDidAppear(animated)
    height = { quantity_type: :height, quantity: 77, unit: "inch" }
    Medic.save(height) do |success, error|
      NSLog "Saved sample" unless error
    end
  end

end

class SaveController < BaseController

  def viewDidLoad
    super

    self.view.backgroundColor = UIColor.purpleColor
    self.title = "Save"
  end

  def viewDidAppear(animated)
    blood_pressure = {
      correlation_type: :blood_pressure,
      objects: [
        {
          quantity_type: :blood_pressure_systolic,
          quantity: 120
        },
        {
          quantity_type: :blood_pressure_diastolic,
          quantity: 80
        }
      ]
    }
    Medic.save(blood_pressure) do |success, error|
      NSLog "Saved sample" unless error
    end
  end

end

Use correlation example in save controller to demonstrate saving both correlations and quantities
Use correlation example in save controller to demonstrate saving both correlations and quantities
