// Path: src/main/java/org/motechproject/ws/rct/RCTRegistrationConfirmation.java
// public class RCTRegistrationConfirmation {
// 
//     private String text;
// 
//     private Boolean errors;
// 
//     public RCTRegistrationConfirmation() {
//         
//     }
// 
//     public RCTRegistrationConfirmation(String text, Boolean errors){
//         this.text = text;
//         this.errors = errors;
//     }
// 
//     @Override
//     public String toString() {
//         return text;
//     }
// 
//     public void setText(String text) {
//         this.text = text;
//     }
// 
//     public String getText(){
//         return text;
//     }
// 
//     public Boolean getErrors() {
//         return errors;
//     }
// 
//     public void setErrors(Boolean errors) {
//         this.errors = errors;
//     }
// }


import org.motechproject.ws.*;
import org.motechproject.ws.rct.RCTRegistrationConfirmation;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import java.util.Date;

                                   @WebParam(name = "facilityId") Integer facilityId,
                                   @WebParam(name = "firstName") String firstName,
                                   @WebParam(name = "lastName") String lastName,
                                   @WebParam(name = "preferredName") String preferredName,
                                   @WebParam(name = "birthDate") Date birthDate,
                                   @WebParam(name = "nhis") String nhis,
                                   @WebParam(name = "phoneNumber") String phoneNumber)
            throws ValidationException;

    @WebMethod
    public Patient queryPatient(@WebParam(name = "staffId") Integer staffId,
                                @WebParam(name = "facilityId") Integer facilityId,
                                @WebParam(name = "motechId") Integer motechId)
            throws ValidationException;

    @WebMethod
    public String[] getPatientEnrollments(
            @WebParam(name = "motechId") Integer motechId)
            throws ValidationException;

    @WebMethod
    public void log(@WebParam(name = "type") LogType type,
                    @WebParam(name = "message") String message);

    @WebMethod
    public void setMessageStatus(
            @WebParam(name = "messageId") String messageId,
            @WebParam(name = "success") Boolean success);

    @WebMethod

// Path: src/main/java/org/motechproject/ws/rct/RCTRegistrationConfirmation.java
// public class RCTRegistrationConfirmation {
// 
//     private String text;
// 
//     private Boolean errors;
// 
//     public RCTRegistrationConfirmation() {
//         
//     }
// 
//     public RCTRegistrationConfirmation(String text, Boolean errors){
//         this.text = text;
//         this.errors = errors;
//     }
// 
//     @Override
//     public String toString() {
//         return text;
//     }
// 
//     public void setText(String text) {
//         this.text = text;
//     }
// 
//     public String getText(){
//         return text;
//     }
// 
//     public Boolean getErrors() {
//         return errors;
//     }
// 
//     public void setErrors(Boolean errors) {
//         this.errors = errors;
//     }
// }


// Path: src/main/java/org/motechproject/ws/server/RegistrarService.java
import org.motechproject.ws.*;
import org.motechproject.ws.rct.RCTRegistrationConfirmation;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import java.util.Date;

                                   @WebParam(name = "facilityId") Integer facilityId,
                                   @WebParam(name = "firstName") String firstName,
                                   @WebParam(name = "lastName") String lastName,
                                   @WebParam(name = "preferredName") String preferredName,
                                   @WebParam(name = "birthDate") Date birthDate,
                                   @WebParam(name = "nhis") String nhis,
                                   @WebParam(name = "phoneNumber") String phoneNumber)
            throws ValidationException;

    @WebMethod
    public Patient queryPatient(@WebParam(name = "staffId") Integer staffId,
                                @WebParam(name = "facilityId") Integer facilityId,
                                @WebParam(name = "motechId") Integer motechId)
            throws ValidationException;

    @WebMethod
    public String[] getPatientEnrollments(
            @WebParam(name = "motechId") Integer motechId)
            throws ValidationException;

    @WebMethod
    public void log(@WebParam(name = "type") LogType type,
                    @WebParam(name = "message") String message);

    @WebMethod
    public void setMessageStatus(
            @WebParam(name = "messageId") String messageId,
            @WebParam(name = "success") Boolean success);

    @WebMethod

    public RCTRegistrationConfirmation registerForRCT(@WebParam(name = "staffId") Integer staffId,
