public org.omg.CORBA.portable.OutputStream _invoke (String $method,
                                org.omg.CORBA.portable.InputStream in,
                                org.omg.CORBA.portable.ResponseHandler $rh)
  {
    org.omg.CORBA.portable.OutputStream out = null;
    java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
    if (__method == null)
      throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);

    switch (__method.intValue ())
    {
       case 0:  // ERCare/SubmitData/SBPData
       {
         String patientID = in.read_string ();
         int value = in.read_long ();
         this.SBPData (patientID, value);
         out = $rh.createReply();
         break;
       }

       case 1:  // ERCare/SubmitData/DBPData
       {
         String PatientID = in.read_string ();
         int value = in.read_long ();
         this.DBPData (PatientID, value);
         out = $rh.createReply();
         break;
       }

       case 2:  // ERCare/SubmitData/HRPData
       {
         String PatientID = in.read_string ();
         int value = in.read_long ();
         this.HRPData (PatientID, value);
         out = $rh.createReply();
         break;
       }

       case 3:  // ERCare/SubmitData/SatData
       {
         String PatientID = in.read_string ();
         int value = in.read_long ();
         this.SatData (PatientID, value);
         out = $rh.createReply();
         break;
       }

       case 4:  // ERCare/SubmitData/SetMinThreshold
       {
         String patientID = in.read_string ();
         String dataType = in.read_string ();
         int value = in.read_long ();
         this.SetMinThreshold (patientID, dataType, value);
         out = $rh.createReply();
         break;
       }

       case 5:  // ERCare/SubmitData/SetMaxThreshold
       {
         String patientID = in.read_string ();
         String dataType = in.read_string ();
         int value = in.read_long ();
         this.SetMaxThreshold (patientID, dataType, value);
         out = $rh.createReply();
         break;
       }

       case 6:  // ERCare/SubmitData/GetValues
       {
         String patientID = in.read_string ();
         String dataType = in.read_string ();
         int $result[] = null;
         $result = this.GetValues (patientID, dataType);
         out = $rh.createReply();
         ERCare.PatientValuesHelper.write (out, $result);
         break;
       }

       default:
         throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
    }

    return out;
  } // _invoke