-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from anrouxel/AddPrescription-View
Add prescription view
- Loading branch information
Showing
58 changed files
with
2,733 additions
and
379 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule assets
updated
from 614c01 to 2bf2fd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
app/src/main/java/fr/medicapp/medicapp/dao/MedicationDAO.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package fr.medicapp.medicapp.dao | ||
|
||
import androidx.room.Dao | ||
import androidx.room.Delete | ||
import androidx.room.Insert | ||
import androidx.room.Query | ||
import androidx.room.Update | ||
import fr.medicapp.medicapp.entity.MedicationEntity | ||
import fr.medicapp.medicapp.entity.UserEntity | ||
|
||
@Dao | ||
interface MedicationDAO { | ||
@Query("SELECT * FROM Medications") | ||
fun getAll(): List<MedicationEntity> | ||
|
||
@Query("SELECT * FROM Medications WHERE CommercializationStatus NOT LIKE 'NON COMMERCIALISÉE'") | ||
fun getAllWithoutNotTreadings(): List<MedicationEntity> | ||
|
||
@Query("SELECT * FROM Medications WHERE cisCode = :id") | ||
fun getOne(id: String): MedicationEntity | ||
|
||
@Insert | ||
fun add(t: MedicationEntity) | ||
|
||
@Insert | ||
fun addAll(vararg t: MedicationEntity) | ||
|
||
@Delete | ||
fun delete(t: MedicationEntity) | ||
|
||
@Delete | ||
fun deleteAll(vararg t: MedicationEntity) | ||
|
||
@Update | ||
fun update(t: MedicationEntity) | ||
|
||
@Update | ||
fun updateAll(vararg t: MedicationEntity) | ||
} |
41 changes: 41 additions & 0 deletions
41
app/src/main/java/fr/medicapp/medicapp/dao/NotificationDAO.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package fr.medicapp.medicapp.dao | ||
|
||
import androidx.room.Dao | ||
import androidx.room.Delete | ||
import androidx.room.Insert | ||
import androidx.room.Query | ||
import androidx.room.Update | ||
import fr.medicapp.medicapp.entity.DoctorEntity | ||
import fr.medicapp.medicapp.entity.NotificationEntity | ||
import fr.medicapp.medicapp.entity.SideEffectEntity | ||
|
||
@Dao | ||
interface NotificationDAO { | ||
@Query("SELECT * FROM NotificationEntity") | ||
fun getAll(): List<NotificationEntity> | ||
|
||
@Query("SELECT * FROM NotificationEntity WHERE id = :id") | ||
fun getOne(id: String): NotificationEntity | ||
|
||
@Query("SELECT * FROM NotificationEntity WHERE medicationName = :medicament") | ||
fun getByMedicament(medicament: String): List<NotificationEntity> | ||
|
||
|
||
@Insert | ||
fun add(t: NotificationEntity) | ||
|
||
@Insert | ||
fun addAll(vararg t: NotificationEntity) | ||
|
||
@Delete | ||
fun delete(t: NotificationEntity) | ||
|
||
@Delete | ||
fun deleteAll(vararg t: NotificationEntity) | ||
|
||
@Update | ||
fun update(t: NotificationEntity) | ||
|
||
@Update | ||
fun updateAll(vararg t: NotificationEntity) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.