You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Add Patient crashes app after user presses submit button.
Component
reference app
Crash Log
java.lang.ClassCastException: org.hl7.fhir.r4.model.Bundle cannot be cast to org.hl7.fhir.r4.model.Patient
at com.google.android.fhir.reference.AddPatientViewModel$savePatient$1.invokeSuspend(AddPatientViewModel.kt:53)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.internal.DispatchedContinuationKt.resumeCancellableWith(DispatchedContinuation.kt:342)
at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:30)
at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable$default(Cancellable.kt:27)
at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:109)
at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:158)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56)
at kotlinx.coroutines.BuildersKt.launch(Unknown Source:1)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default(Builders.common.kt:49)
at kotlinx.coroutines.BuildersKt.launch$default(Unknown Source:1)
at com.google.android.fhir.reference.AddPatientViewModel.savePatient(AddPatientViewModel.kt:52)
at com.google.android.fhir.reference.AddPatientFragment.savePatient(AddPatientFragment.kt:97)
at com.google.android.fhir.reference.AddPatientFragment.onSubmitAction(AddPatientFragment.kt:93)
at com.google.android.fhir.reference.AddPatientFragment.onOptionsItemSelected(AddPatientFragment.kt:58)
The text was updated successfully, but these errors were encountered:
Describe the bug
Add Patient crashes app after user presses submit button.
Component
reference app
Crash Log
java.lang.ClassCastException: org.hl7.fhir.r4.model.Bundle cannot be cast to org.hl7.fhir.r4.model.Patient
at com.google.android.fhir.reference.AddPatientViewModel$savePatient$1.invokeSuspend(AddPatientViewModel.kt:53)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.internal.DispatchedContinuationKt.resumeCancellableWith(DispatchedContinuation.kt:342)
at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:30)
at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable$default(Cancellable.kt:27)
at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:109)
at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:158)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56)
at kotlinx.coroutines.BuildersKt.launch(Unknown Source:1)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default(Builders.common.kt:49)
at kotlinx.coroutines.BuildersKt.launch$default(Unknown Source:1)
at com.google.android.fhir.reference.AddPatientViewModel.savePatient(AddPatientViewModel.kt:52)
at com.google.android.fhir.reference.AddPatientFragment.savePatient(AddPatientFragment.kt:97)
at com.google.android.fhir.reference.AddPatientFragment.onSubmitAction(AddPatientFragment.kt:93)
at com.google.android.fhir.reference.AddPatientFragment.onOptionsItemSelected(AddPatientFragment.kt:58)
The text was updated successfully, but these errors were encountered: