Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
mdnazmulkarim committed Oct 2, 2023
1 parent 5863e9b commit fd4c020
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class InMemoryRepositoryTest {
public InMemoryRepositoryTest() {
repository = new InMemoryFhirRepository(FhirContext.forR4Cached());
Library library1 = new Library();
library1.setId(new IdType("Library","example1"));
library1.setId(new IdType("Library", "example1"));
repository.update(library1);
Library library2 = new Library();
library2.setId(new IdType("Library/example2"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ public <B extends IBaseBundle, T extends IBaseResource> B search(
if (searchParameters == null || searchParameters.isEmpty()) {
resourceIdMap.values().forEach(builder::addCollectionEntry);
} else if (searchParameters.containsKey("_id")) {
var searchParamValue =
new IdType(searchParameters.get("_id").get(0).getValueAsQueryToken(this.context));
var searchParamValue = new IdType(searchParameters.get("_id").get(0).getValueAsQueryToken(this.context));
if (resourceIdMap.containsKey(searchParamValue)) {
builder.addCollectionEntry(resourceIdMap.get(searchParamValue));
}
Expand Down

0 comments on commit fd4c020

Please sign in to comment.