Skip to content

Commit

Permalink
EA-195 - ADT inpatient requests should be fulfilled by any ADT encoun…
Browse files Browse the repository at this point in the history
…ter (#243)
  • Loading branch information
mseaton authored Sep 6, 2024
1 parent 2d89e88 commit 3c6d21b
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -954,15 +954,9 @@ public List<InpatientRequest> getInpatientRequests(InpatientRequestSearchCriteri

// Get all encounter types that might cause a request to be fulfilled
List<EncounterType> adtEncounterTypes = new ArrayList<>();
if (dispositionTypes.contains(DispositionType.ADMIT)) {
adtEncounterTypes.add(emrApiProperties.getAdmissionEncounterType());
}
if (dispositionTypes.contains(DispositionType.TRANSFER)) {
adtEncounterTypes.add(emrApiProperties.getTransferWithinHospitalEncounterType());
}
if (dispositionTypes.contains(DispositionType.DISCHARGE)) {
adtEncounterTypes.add(emrApiProperties.getExitFromInpatientEncounterType());
}
adtEncounterTypes.add(emrApiProperties.getAdmissionEncounterType());
adtEncounterTypes.add(emrApiProperties.getTransferWithinHospitalEncounterType());
adtEncounterTypes.add(emrApiProperties.getExitFromInpatientEncounterType());

// Disposition Locations are stored as Obs where the valueText is the location id. Collect these values
List<String> dispositionLocationIds = null;
Expand Down

0 comments on commit 3c6d21b

Please sign in to comment.