def upload_program (self, program):
    missing = [ ]
    for req in self.required_inputs:
      if not req in program:
        missing.append(req)
    if len(missing) > 0:
      return dict(error="missing required input fields", missing=missing, input=dict(**program))
    return self.pump.model.set_temp_basal(**program)
dataset/ETHPy150Open openaps/openaps/openaps/vendors/medtronic.py/set_temp_basal.upload_program/original