- Project Title: OpenMRS Android SDK
- Primary Mentor: Rishabh Agarwal
- Backup Mentor: Abert Namanya
- Student: Shubham Sharma
- Project Link: Wiki Page Link
This file contains hidden or 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
| @Test | |
| fun createTimeSlotWithQuery_success_returnsTimeSlot() { | |
| val startDate = "2023-07-15T10:00:00Z" | |
| val endDate = "2023-07-15T11:00:00Z" | |
| val appointmentBlockGet = appointmentBlockGet | |
| enqueueMockResponse("mocked_responses/AppointmentRepository/TimeSlotCreate-success.json") | |
| val result: TimeSlot = appointmentRepository.createTimeSlot(startDate, endDate, appointmentBlockGet).toBlocking().first() | |
| assertEquals(result.endDate, endDate) |
This file contains hidden or 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
| fun getAllEncountersByPatientUuidAndSaveLocally(uuid: String): Observable<List<Encounter>> { | |
| val encounterList: MutableList<Encounter> = mutableListOf() | |
| if (!NetworkUtils.isOnline()) throw Exception("Must be online to fetch encounters") | |
| restApi.getAllEncountersForPatientByPatientUuid(uuid).execute().run { | |
| if (isSuccessful && this.body() != null) { | |
| val encounterResources: List<Resource> = this.body()!!.results | |
| for (encounterResource in encounterResources) { | |
| getEncounterByUuid(encounterResource.uuid!!).subscribeOn(Schedulers.io()) |
This file contains hidden or 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
| #include<bits/stdc++.h> | |
| using namespace std; | |
| int findnum(int x1, int y1){ //function that returns the element with an index | |
| int sum1=1; | |
| for(int i=0;i<(x1-1);i++){ | |
| sum1=sum1+(2+i); | |
| } | |