-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Start working on subscription processor * Work on new scheduler * Test fixes * Scheduler refactoring * Fix test failure * One more test fix * Updates to scheduler * More scheduler work * Tests now all passing * Ongoing work on export * Ongoing scheduler work * Ongoing testing * Work on export task * Sync master * Ongoing work * Bump xml patch version * Work on provider * Work on bulk * Work on export scheduler * More test fies * More test fixes * Compile fix * Reduce logging * Improve logging * Reuse bulk export jobs * Export provider * Improve logging in bulk export * Work on bulk export service * One more bugfix * Ongoing work on Bulk Data * Add changelog
- Loading branch information
1 parent
882e085
commit 4a751cb
Showing
129 changed files
with
4,153 additions
and
649 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
61 changes: 61 additions & 0 deletions
61
hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/api/PreferHeader.java
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,61 @@ | ||
package ca.uhn.fhir.rest.api; | ||
|
||
import javax.annotation.Nullable; | ||
import java.util.HashMap; | ||
|
||
public class PreferHeader { | ||
|
||
private PreferReturnEnum myReturn; | ||
private boolean myRespondAsync; | ||
|
||
public @Nullable | ||
PreferReturnEnum getReturn() { | ||
return myReturn; | ||
} | ||
|
||
public PreferHeader setReturn(PreferReturnEnum theReturn) { | ||
myReturn = theReturn; | ||
return this; | ||
} | ||
|
||
public boolean getRespondAsync() { | ||
return myRespondAsync; | ||
} | ||
|
||
public PreferHeader setRespondAsync(boolean theRespondAsync) { | ||
myRespondAsync = theRespondAsync; | ||
return this; | ||
} | ||
|
||
/** | ||
* Represents values for "return" value as provided in the the <a href="https://tools.ietf.org/html/rfc7240#section-4.2">HTTP Prefer header</a>. | ||
*/ | ||
public enum PreferReturnEnum { | ||
|
||
REPRESENTATION("representation"), MINIMAL("minimal"), OPERATION_OUTCOME("OperationOutcome"); | ||
|
||
private static HashMap<String, PreferReturnEnum> ourValues; | ||
private String myHeaderValue; | ||
|
||
PreferReturnEnum(String theHeaderValue) { | ||
myHeaderValue = theHeaderValue; | ||
} | ||
|
||
public String getHeaderValue() { | ||
return myHeaderValue; | ||
} | ||
|
||
public static PreferReturnEnum fromHeaderValue(String theHeaderValue) { | ||
if (ourValues == null) { | ||
HashMap<String, PreferReturnEnum> values = new HashMap<>(); | ||
for (PreferReturnEnum next : PreferReturnEnum.values()) { | ||
values.put(next.getHeaderValue(), next); | ||
} | ||
ourValues = values; | ||
} | ||
return ourValues.get(theHeaderValue); | ||
} | ||
|
||
} | ||
|
||
} |
54 changes: 0 additions & 54 deletions
54
hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/api/PreferReturnEnum.java
This file was deleted.
Oops, something went wrong.
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
25 changes: 25 additions & 0 deletions
25
hapi-fhir-base/src/main/java/ca/uhn/fhir/util/ArrayUtil.java
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,25 @@ | ||
package ca.uhn.fhir.util; | ||
|
||
import java.util.Arrays; | ||
import java.util.Set; | ||
import java.util.stream.Collectors; | ||
|
||
import static org.apache.commons.lang3.StringUtils.*; | ||
|
||
public class ArrayUtil { | ||
|
||
/** Non instantiable */ | ||
private ArrayUtil() {} | ||
|
||
/** | ||
* Takes in a list like "foo, bar,, baz" and returns a set containing only ["foo", "bar", "baz"] | ||
*/ | ||
public static Set<String> commaSeparatedListToCleanSet(String theValueAsString) { | ||
Set<String> resourceTypes; | ||
resourceTypes = Arrays.stream(split(theValueAsString, ",")) | ||
.map(t->trim(t)) | ||
.filter(t->isNotBlank(t)) | ||
.collect(Collectors.toSet()); | ||
return resourceTypes; | ||
} | ||
} |
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
20 changes: 20 additions & 0 deletions
20
hapi-fhir-cli/hapi-fhir-cli-jpaserver/src/main/java/ca/uhn/fhir/jpa/demo/CommonConfig.java
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
20 changes: 20 additions & 0 deletions
20
hapi-fhir-cli/hapi-fhir-cli-jpaserver/src/main/java/ca/uhn/fhir/jpa/demo/ContextHolder.java
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
20 changes: 20 additions & 0 deletions
20
...fhir-cli/hapi-fhir-cli-jpaserver/src/main/java/ca/uhn/fhir/jpa/demo/FhirServerConfig.java
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
Oops, something went wrong.