-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addeed Practitioner & Medication Request Resources to Patient export.…
… Created MockEncounterRepository.java for testing purposes.
- Loading branch information
Showing
3 changed files
with
190 additions
and
6 deletions.
There are no files selected for viewing
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
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,57 @@ | ||
package mock.femr.data.daos; | ||
|
||
import femr.data.daos.core.IEncounterRepository; | ||
import femr.data.models.core.IPatientEncounter; | ||
import org.joda.time.DateTime; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class MockEncounterRepository implements IEncounterRepository { | ||
public List<IPatientEncounter> mockEncounters = new ArrayList<>(); | ||
|
||
@Override | ||
public IPatientEncounter createPatientEncounter(int patientID, DateTime date, int userId, Integer patientAgeClassificationId, Integer tripId, String languageCode) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public IPatientEncounter deletePatientEncounter(int encounterId, String reason, int userId) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public List<? extends IPatientEncounter> retrievePatientEncounters(DateTime from, DateTime to, Integer tripId) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public IPatientEncounter retrievePatientEncounterById(int id) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public List<? extends IPatientEncounter> retrievePatientEncountersByPatientIdAsc(int patientId) { | ||
return mockEncounters; | ||
} | ||
|
||
@Override | ||
public List<? extends IPatientEncounter> retrievePatientEncountersByPatientIdDesc(int patientId) { | ||
return mockEncounters; | ||
} | ||
|
||
@Override | ||
public IPatientEncounter savePatientEncounterMedicalCheckin(int encounterId, int userId, DateTime date) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public IPatientEncounter savePatientEncounterPharmacyCheckin(int encounterId, int userId, DateTime date) { | ||
return null; | ||
} | ||
|
||
@Override | ||
public IPatientEncounter savePatientEncounterDiabetesScreening(int encounterId, int userId, DateTime date, Boolean isScreened) { | ||
return null; | ||
} | ||
} |