@@ -25,6 +25,7 @@ public static List<PendingClaimGQL> fromJson(@NonNull JSONArray array) throws Ex
2525 JSONArray arrayItems = claim .getJSONArray ("items" );
2626 JSONArray arrayServices = claim .getJSONArray ("services" );
2727 JSONObject details = claim .getJSONObject ("details" );
28+ Log .e ("details" , details .toString ());
2829 claims .add ( new PendingClaimGQL (
2930 /* hfCode = */ details .getString ("HFCode" ),
3031 /* claimAdmin */ details .getString ("ClaimAdmin" ),
@@ -40,6 +41,9 @@ public static List<PendingClaimGQL> fromJson(@NonNull JSONArray array) throws Ex
4041 /* icCode3 = */ details .getString ("ICDCode3" ),
4142 /* icdCode4 = */ details .getString ("ICDCode4" ),
4243 /* GuaranteeNumber = */ details .getString ("GuaranteeNumber" ),
44+ /* ReferalHF */ details .getString ("ReferalHF" ),
45+ /* PatientCondition */ details .getString ("PatientCondition" ),
46+ /* PreAuthorization */ details .getString ("PreAuthorization" ),
4347 /* services = */ Service .fromJson (arrayServices ),
4448 /* items = */ Medication .fromJson (arrayItems )
4549 ));
@@ -75,6 +79,12 @@ public static List<PendingClaimGQL> fromJson(@NonNull JSONArray array) throws Ex
7579 private final String icdCode4 ;
7680 @ NonNull
7781 private final String visitType ;
82+ @ Nullable
83+ private final String referalHF ;
84+ @ Nullable
85+ private final String patientCondition ;
86+ @ Nullable
87+ private final String preAuthorization ;
7888 @ NonNull
7989 private final List <PendingClaimGQL .Service > services ;
8090 @ NonNull
@@ -95,6 +105,9 @@ public PendingClaimGQL(
95105 @ Nullable String icdCode3 ,
96106 @ Nullable String icdCode4 ,
97107 @ Nullable String guaranteeNumber ,
108+ @ Nullable String referralHf ,
109+ @ Nullable String patientCondition ,
110+ @ Nullable String preAuthorisation ,
98111 @ NonNull List <PendingClaimGQL .Service > services ,
99112 @ NonNull List <PendingClaimGQL .Medication > medications
100113 ) {
@@ -114,6 +127,9 @@ public PendingClaimGQL(
114127 this .visitType = visitType ;
115128 this .services = services ;
116129 this .medications = medications ;
130+ this .referalHF = referralHf ;
131+ this .patientCondition = patientCondition ;
132+ this .preAuthorization = preAuthorisation ;
117133 }
118134
119135 protected PendingClaimGQL (Parcel in ) {
@@ -131,6 +147,9 @@ protected PendingClaimGQL(Parcel in) {
131147 icdCode3 = in .readString ();
132148 icdCode4 = in .readString ();
133149 visitType = in .readString ();
150+ referalHF = in .readString ();
151+ patientCondition = in .readString ();
152+ preAuthorization = in .readString ();
134153 services = in .createTypedArrayList (PendingClaimGQL .Service .CREATOR );
135154 medications = in .createTypedArrayList (PendingClaimGQL .Medication .CREATOR );
136155 }
@@ -152,6 +171,9 @@ public void writeToParcel(Parcel dest, int flags) {
152171 dest .writeString (visitType );
153172 dest .writeTypedList (services );
154173 dest .writeTypedList (medications );
174+ dest .writeString (referalHF );
175+ dest .writeString (patientCondition );
176+ dest .writeString (preAuthorization );
155177 }
156178
157179 public int describeContents () {
@@ -228,6 +250,15 @@ public String getVisitType() {
228250 return visitType ;
229251 }
230252
253+ @ Nullable
254+ public String getReferalHF (){ return referalHF ; }
255+
256+ @ Nullable
257+ public String getPatientCondition (){ return patientCondition ; }
258+
259+ @ Nullable
260+ public String getPreAuthorization (){ return preAuthorization ; }
261+
231262 @ NonNull
232263 public List <PendingClaimGQL .Service > getServices () {
233264 return services ;
0 commit comments