Skip to content

Commit

Permalink
AC-1106: Migrate VisitDAO to Kotlin (#1024)
Browse files Browse the repository at this point in the history
* Rename .java to .kt

* AC-1106: Migrate VisitDAO to Kotlin

* AC-1106: Error fix
  • Loading branch information
shubhamsgit committed Aug 27, 2023
1 parent fa5ea95 commit 31ec37c
Show file tree
Hide file tree
Showing 8 changed files with 243 additions and 253 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class EncounterRepository @Inject constructor(
fun saveEncounter(encounterCreate: Encountercreate): Observable<ResultType> {
return AppDatabaseHelper.createObservableIO(Callable {
val patient = PatientDAO().findPatientByID(encounterCreate.patientId.toString())
val activeVisit = VisitDAO().getActiveVisitByPatientId(encounterCreate.patientId).execute()
val activeVisit = VisitDAO().getActiveVisitByPatientId(encounterCreate.patientId!!).execute()
if (patient == null || activeVisit == null || encounterCreate.synced) {
return@Callable ResultType.EncounterSubmissionError
}
Expand Down

This file was deleted.

Loading

0 comments on commit 31ec37c

Please sign in to comment.