Skip to content

Commit

Permalink
Fixed prescription notification issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SagarS23 committed Aug 5, 2020
1 parent 43f4fdb commit 0b03a6c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ private void getVisits() {
EncounterDAO encounterDAO = new EncounterDAO();
List<EncounterDTO> encounterDTOList = encounterDAO.getAllEncounters();

//Get Visit Note Encounters only, visit note encounter id - d7151f82-c1f3-4152-a605-2f9ea7414a79
//Get Visit Complete Encounters only, visit complete encounter id - bd1fbfaa-f5fb-4ebd-b75c-564506fc309e
if (encounterDTOList.size() > 0) {
for (int i = 0; i < encounterDTOList.size(); i++) {
if (encounterDTOList.get(i).getEncounterTypeUuid().equalsIgnoreCase("d7151f82-c1f3-4152-a605-2f9ea7414a79")) {
if (encounterDTOList.get(i).getEncounterTypeUuid().equalsIgnoreCase("bd1fbfaa-f5fb-4ebd-b75c-564506fc309e")) {
encounterVisitUUID.add(encounterDTOList.get(i).getVisituuid());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ private void getVisits() {
EncounterDAO encounterDAO = new EncounterDAO();
List<EncounterDTO> encounterDTOList = encounterDAO.getAllEncounters();

//Get Visit Note Encounters only, visit note encounter id - d7151f82-c1f3-4152-a605-2f9ea7414a79
//Get Visit Complete Encounters only, visit complete encounter id - bd1fbfaa-f5fb-4ebd-b75c-564506fc309e
if (encounterDTOList.size() > 0) {
for (int i = 0; i < encounterDTOList.size(); i++) {
if (encounterDTOList.get(i).getEncounterTypeUuid().equalsIgnoreCase("d7151f82-c1f3-4152-a605-2f9ea7414a79")) {
if (encounterDTOList.get(i).getEncounterTypeUuid().equalsIgnoreCase("bd1fbfaa-f5fb-4ebd-b75c-564506fc309e")) {
encounterVisitUUID.add(encounterDTOList.get(i).getVisituuid());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public void onResponse(Call<ResponseDTO> call, Response<ResponseDTO> response) {
ArrayList<String> encounterVisitUUID = new ArrayList<String>();
for (int i = 0; i < response.body().getData().getEncounterDTO().size(); i++) {
if (response.body().getData().getEncounterDTO().get(i)
.getEncounterTypeUuid().equalsIgnoreCase("d7151f82-c1f3-4152-a605-2f9ea7414a79")) {
.getEncounterTypeUuid().equalsIgnoreCase("bd1fbfaa-f5fb-4ebd-b75c-564506fc309e")) {
encounterVisitUUID.add(response.body().getData().getEncounterDTO().get(i).getVisituuid());
}
}
Expand Down Expand Up @@ -243,7 +243,7 @@ public void onResponse(Call<ResponseDTO> call, Response<ResponseDTO> response) {
ArrayList<String> encounterVisitUUID = new ArrayList<String>();
for (int i = 0; i < response.body().getData().getEncounterDTO().size(); i++) {
if (response.body().getData().getEncounterDTO().get(i)
.getEncounterTypeUuid().equalsIgnoreCase("d7151f82-c1f3-4152-a605-2f9ea7414a79")) {
.getEncounterTypeUuid().equalsIgnoreCase("bd1fbfaa-f5fb-4ebd-b75c-564506fc309e")) {
encounterVisitUUID.add(response.body().getData().getEncounterDTO().get(i).getVisituuid());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class UuidDictionary {
public static final String ENCOUNTER_ADULTINITIAL = "8d5b27bc-c2cc-11de-8d13-0010c6dffd0f";
public static final String ENCOUNTER_VITALS = "67a71486-1a54-468f-ac3e-7091a9a79584";
public static final String ENCOUNTER_VISIT_NOTE = "d7151f82-c1f3-4152-a605-2f9ea7414a79";
public static final String ENCOUNTER_VISIT_COMPLETE = "bd1fbfaa-f5fb-4ebd-b75c-564506fc309e";
public static final String ENCOUNTER_PATIENT_EXIT_SURVEY = "629a9d0b-48eb-405e-953d-a5964c88dc30";

public static final String EMERGENCY_OBS = "ca5f5dc3-4f0b-4097-9cae-5cf2eb44a09c";
Expand Down

0 comments on commit 0b03a6c

Please sign in to comment.