-
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.
- Loading branch information
Showing
54 changed files
with
1,626 additions
and
232 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
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
44 changes: 44 additions & 0 deletions
44
hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/PreserveStringReader.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,44 @@ | ||
package ca.uhn.fhir.parser; | ||
|
||
import jakarta.annotation.Nonnull; | ||
|
||
import java.io.IOException; | ||
import java.io.Reader; | ||
import java.io.StringWriter; | ||
|
||
public class PreserveStringReader extends Reader { | ||
|
||
private final Reader myReader; | ||
|
||
private final StringWriter myWriter; | ||
|
||
public PreserveStringReader(Reader theReader) { | ||
super(theReader); | ||
myReader = theReader; | ||
myWriter = new StringWriter(); | ||
} | ||
|
||
@Override | ||
public int read(@Nonnull char[] theBuffer, int theOffset, int theLength) throws IOException { | ||
int out = myReader.read(theBuffer, theOffset, theLength); | ||
if (out >= 0) { | ||
myWriter.write(theBuffer, theOffset, out); | ||
} | ||
|
||
return out; | ||
} | ||
|
||
@Override | ||
public void close() throws IOException { | ||
myReader.close(); | ||
myWriter.close(); | ||
} | ||
|
||
public boolean hasString() { | ||
return myWriter.getBuffer().length() > 0; | ||
} | ||
|
||
public String toString() { | ||
return myWriter.toString(); | ||
} | ||
} |
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
Empty file.
2 changes: 1 addition & 1 deletion
2
hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/7_6_0/version.yaml
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
--- | ||
release-date: "2024-11-15" | ||
codename: "TBD" | ||
codename: "Despina" |
5 changes: 5 additions & 0 deletions
5
...g/7_6_1/6424-change-structure-definitions-to-never-expire-in-cache-during-validation.yaml
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,5 @@ | ||
--- | ||
type: change | ||
issue: 6424 | ||
title: "Changed VersionSpecificWorkerContextWrapper to never expire StructureDefinition entries in the cache, | ||
which is needed because the validator makes assumptions about StructureDefinitions never changing." |
7 changes: 7 additions & 0 deletions
7
...main/resources/ca/uhn/hapi/fhir/changelog/7_6_1/6538-improve-transaction-performance.yaml
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,7 @@ | ||
--- | ||
type: perf | ||
issue: 6538 | ||
title: "In HAPI FHIR 8.0.0, transaction processing has been significantly improved thanks | ||
to ticket [#6460](https://github.com/hapifhir/hapi-fhir/pull/6460). This enhancement | ||
has been partially backported to the 7.6.x release line in order to provide partial improvement | ||
prior to the release of HAPI FHIR 8.0.0." |
7 changes: 7 additions & 0 deletions
7
.../main/resources/ca/uhn/hapi/fhir/changelog/7_6_1/6538-improve-validation-performance.yaml
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,7 @@ | ||
--- | ||
type: perf | ||
issue: 6538 | ||
title: "In HAPI FHIR 8.0.0, validation processing has been significantly improved thanks | ||
to ticket [#6508](https://github.com/hapifhir/hapi-fhir/pull/6508). This enhancement | ||
has been partially backported to the 7.6.x release line in order to provide partial improvement | ||
prior to the release of HAPI FHIR 8.0.0." |
12 changes: 12 additions & 0 deletions
12
hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/7_6_1/upgrade.md
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,12 @@ | ||
## Device membership in Patient Compartment | ||
|
||
As of 7.6.1, versions of FHIR below R5 now consider the `Device` resource's `patient` Search Parameter to be in the Patient Compartment. The following features are affected: | ||
|
||
- Patient Search with `_revInclude=*` | ||
- Patient instance-level `$everything` operation | ||
- Patient type-level `$everything` operation | ||
- Automatic Search Narrowing | ||
- Bulk Export | ||
|
||
Previously, there were various shims in the code that permitted similar behaviour in these features. Those shims have been removed. The only remaining component is [Advanced Compartment Authorization](/hapi-fhir/docs/security/authorization_interceptor.html#advanced-compartment-authorization), which can still be used | ||
to add other Search Parameters into a given compartment. |
3 changes: 3 additions & 0 deletions
3
hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/7_6_1/version.yaml
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,3 @@ | ||
--- | ||
release-date: "2024-12-18" | ||
codename: "Despina" |
1 change: 1 addition & 0 deletions
1
...ources/ca/uhn/hapi/fhir/changelog/7_8_0/6536-make-device-part-of-patient-compartment.yaml
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
10 changes: 10 additions & 0 deletions
10
...resources/ca/uhn/hapi/fhir/changelog/7_8_0/6574-storing-raw-json-on-resource-parsing.yaml
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,10 @@ | ||
--- | ||
type: fix | ||
issue: 6574 | ||
jira: SMILE-9432 | ||
title: "The raw json of parsed resources will be kept in the UserData | ||
(key: `RAW_JSON`) of the resource itself. | ||
This is to allow consistency in handling validation downstream, | ||
since otherwise the FhirParser is far more lenient about what | ||
it can parse than $validate is for what it accepts. | ||
" |
7 changes: 7 additions & 0 deletions
7
...ocs/src/main/resources/ca/uhn/hapi/fhir/changelog/7_8_0/6580-migration-result-column.yaml
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,7 @@ | ||
--- | ||
type: add | ||
issue: 6580 | ||
title: "A new `RESULT` column has been added to the database migration table to record the migration execution result. | ||
values are `NOT_APPLIED_SKIPPED` (either skipped via the `skip-versions` flag or if the migration task was stubbed), | ||
`NOT_APPLIED_NOT_FOR_THIS_DATABASE` (does not apply to that database), `NOT_APPLIED_PRECONDITION_NOT_MET` (not run based on a SQL script outcome), | ||
`NOT_APPLIED_ALLOWED_FAILURE` (the migration failed, but it is permitted to fail), `APPLIED`." |
5 changes: 5 additions & 0 deletions
5
...uhn/hapi/fhir/changelog/7_8_0/6587-enhance-vital-signs-narrative-generation-template.yaml
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,5 @@ | ||
--- | ||
type: add | ||
issue: 6587 | ||
title: "Enhanced the IPS vital signs narrative template to include code and value information for | ||
all entries in the `Observation.component` property." |
4 changes: 4 additions & 0 deletions
4
...ources/ca/uhn/hapi/fhir/changelog/7_8_0/6589_optimize_transactions_in_mass_ingestion_mode
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,4 @@ | ||
--- | ||
type: perf | ||
issue: 6589 | ||
title: "When performing data loading into a JPA repository using FHIR transactions with Mass Ingestion Mode enabled, the prefetch routine has been optimized to avoid loading the current resource body/contents, since these are not actually needed in Mass Ingestion mode. This avoids a redundant select statement being issued for each transaction and should improve performance." |
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
19 changes: 19 additions & 0 deletions
19
...server-base/src/main/java/ca/uhn/fhir/jpa/validation/FhirContextValidationSupportSvc.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,19 @@ | ||
package ca.uhn.fhir.jpa.validation; | ||
|
||
import ca.uhn.fhir.context.FhirContext; | ||
|
||
/** | ||
* This bean will set our context to store the raw json of parsed | ||
* resources when they come in for creation. | ||
* - | ||
* This is done so we can ensure that validation is done correctly, | ||
* and the JSONParser is far more lenient than our validators. | ||
* - | ||
* See {@link FhirContext#isStoreResourceJson()} | ||
*/ | ||
public class FhirContextValidationSupportSvc { | ||
|
||
public FhirContextValidationSupportSvc(FhirContext theContext) { | ||
theContext.setStoreRawJson(true); | ||
} | ||
} |
Oops, something went wrong.