package org.odk.collect.android.model;

import android.os.Parcelable;

import auto.parcel.AutoParcel;

/**
 * An object that represents a patient.
 */
@AutoParcel
public abstract class Patient implements Parcelable {

    public abstract String getUuid();
    public abstract String getId();
    public abstract String getGivenName();
    public abstract String getFamilyName();

    public static Patient create(String uuid, String id, String givenName, String familyName) {
        return new AutoParcel_Patient(uuid, id, givenName, familyName);
    }
}

@@ -61,14 +61,9 @@
 rcel
-able;%0A
+;
 %0Aimp
@@ -71,373 +71,931 @@
 rt a
-uto.parcel.AutoParcel;%0A%0A/**%0A * An object that represents a patient.%0A */%0A@AutoParcel%0Apublic abstract class Patient implements Parcelable %7B%0A%0A    public abstract String getUuid();%0A    public abstract String getId();%0A    public abstract String getGivenName();%0A    public abstract String getFamilyName();%0A%0A    public static Patient crea
+ndroid.os.Parcelable;%0A%0A/**%0A * Patient details.%0A */%0Apublic final class Patient implements Parcelable %7B%0A%0A    // TODO: Document this field.%0A    public final String uuid;%0A    // TODO: Document this field.%0A    public final String id;%0A    public final String givenName;%0A    public final String familyName;%0A%0A    public Patient(String uuid, String id, String givenName, String familyName) %7B%0A        this.uuid = uuid;%0A        this.id = id;%0A        this.givenName = givenName;%0A        this.familyName = familyName;%0A    %7D%0A%0A    protected Patient(Parcel in) %7B%0A        uuid = in.readString();%0A        id = in.readString();%0A        givenName = in.readString();%0A        familyName = in.readString();%0A    %7D%0A%0A    @Override%0A    public int describeContents() %7B%0A        return 0;%0A    %7D%0A%0A    @Override%0A    public void writeToParcel(Parcel dest, int flags) %7B%0A        dest.wri
 te
-(
 String
- 
+(
 uuid
-, 
+);%0A        dest.write
 String
- id, 
+(id);%0A        dest.write
 String
- 
+(
 give
@@ -995,33 +995,52 @@
 ng(givenName
-, 
+);%0A        dest.write
 String
- 
+(
 familyName) 
@@ -1042,87 +1042,350 @@
 ame)
- %7B
+;
 %0A    
+%7D%0A%0A
     
-return
+public static final Parcelable.Creator%3CPatient%3E CREATOR =
  new 
-Auto
 Parcel
-_Patient(uuid, id, givenName, familyName);%0A    %7D
+able.Creator%3CPatient%3E() %7B%0A        @Override%0A        public Patient createFromParcel(Parcel in) %7B%0A            return new Patient(in);%0A        %7D%0A%0A        @Override%0A        public Patient%5B%5D newArray(int size) %7B%0A            return new Patient%5Bsize%5D;%0A        %7D%0A    %7D;
 %0A%7D%0A

Remove auto-parcel dependency from ODK collect.