Skip to content
Merged
Show file tree
Hide file tree
Changes from 53 commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
902df2d
version bump
tadgh Jul 21, 2023
9a996ce
Bump to core release 6.0.22 (#5028)
dotasek Jul 24, 2023
1697783
Resolve 5126 hfj res ver prov might cause migration error on db that …
TynerGjs Jul 26, 2023
ff507cd
5123 - Use DEFAULT partition for server-based requests if none specif…
steve-corbett-smilecdr Jul 27, 2023
4820759
consent remove all suppresses next link in bundle (#5119)
fil512 Jul 27, 2023
e077393
5117 MDM Score for No Match Fields Should Not Be Included in Total Sc…
jdar8 Jul 27, 2023
4ec17c9
_source search parameter needs to support modifiers (#5095)
volodymyr-korzh Jul 31, 2023
ca2c7bd
Fix HFQL docs (#5151)
nathandoef Aug 1, 2023
b816844
Expunge operation on codesystem may throw 500 internal error with pre…
epeartree Aug 2, 2023
d970ca5
documentation update (#5154)
TipzCM Aug 2, 2023
f82da96
Fix hsql jdbc driver deps (#5168)
michaelabuckley Aug 2, 2023
4fc99e7
$delete-expunge over 10k resources will now delete all resources (#5144)
Aug 3, 2023
f6f855b
updating documentation (#5170)
TipzCM Aug 3, 2023
4cd93fd
_source search parameter modifiers for Subscription matching (#5159)
volodymyr-korzh Aug 3, 2023
a6d64bf
Removal of meta tags during updates do not trigger subscription (#5181)
epeartree Aug 8, 2023
7a13fcc
Issue 5173 get gateway everything doesnt return all patients (#5174)
jmarchionatto Aug 8, 2023
5e30780
Do not 500 and continue IG ingestion when different IGs try to save d…
Aug 8, 2023
9792122
Fix link
tadgh Aug 9, 2023
f358a0b
Remove target slf4j version
tadgh Aug 9, 2023
cfe6622
dont use new API for a bit (#5191)
tadgh Aug 9, 2023
ebdecef
Return DropIdGeneratorTask from the Builder to permit clients to muta…
Aug 9, 2023
d306760
Dqm performance bug update and provider loader fix (#5180)
Capt-Mac Aug 10, 2023
c3b8844
bulkExportReuse with POST and GET (#5161)
LalithE Aug 10, 2023
9fa41d3
Reduce size of subscription max results (#5194)
dotasek Aug 10, 2023
f538997
5037 goldenresource remains when target resource deleted (#5038)
jdar8 Aug 10, 2023
0d4c983
dont use new API for a bit (#5190)
tadgh Aug 11, 2023
be1a9d4
licenses
tadgh Aug 11, 2023
7e849a8
Merge branch 'rel_6_8' of github.com:hapifhir/hapi-fhir into rel_6_8
tadgh Aug 11, 2023
204eb37
Fixing terminology upload with large file. (#5204)
epeartree Aug 11, 2023
47a28b7
up version to 6.8.0 from snapshot
Aug 16, 2023
27f7b5d
fix up some duplicate deps for skipping
tadgh Aug 16, 2023
e8d92d3
Force deployment of other projects
tadgh Aug 17, 2023
5ae3a48
make dummy java class to pass sonatype checks
tadgh Aug 17, 2023
8b62689
make dummy java class to pass sonatype checks
tadgh Aug 17, 2023
5398387
Cheeky test removal
tadgh Aug 17, 2023
f336270
Another test removal
tadgh Aug 17, 2023
3eff70b
Updating version to: 6.8.1 post release.
markiantorno Aug 17, 2023
5845216
adding back in tests for release pipelines
markiantorno Aug 17, 2023
8e5f844
Fix bad version insert
tadgh Aug 30, 2023
79177a6
Bump to core library version 6.0.22.2 (#5261)
volodymyr-korzh Aug 31, 2023
d24817f
up version to 6.8.1
Aug 31, 2023
0e54b7c
merge rel6_8
Aug 31, 2023
6008215
Prevent remote deployment
tadgh Sep 3, 2023
51012ba
Updating version to: 6.8.2 post release.
markiantorno Sep 4, 2023
7e56d78
Re-add deploy plugin skip
tadgh Sep 4, 2023
098c8bf
Merge branch 'rel_6_8' of github.com:hapifhir/hapi-fhir into rel_6_8
tadgh Sep 4, 2023
71c3848
re-add version
tadgh Sep 4, 2023
ccc0895
Bump core library version to 6.0.22.2
volodymyr-korzh Sep 5, 2023
20366ce
Bump HAPI to 6.8.2-SNAPSHOT
volodymyr-korzh Sep 5, 2023
528a7be
Fix up version enum
tadgh Sep 5, 2023
c411789
Version bump
tadgh Sep 5, 2023
d94bec7
Updating version to: 6.8.3 post release.
markiantorno Sep 6, 2023
e727e5f
fix merge conflicts
Sep 11, 2023
dcbdeca
mvn spotless:apply
Sep 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import ca.uhn.fhir.parser.json.JsonLikeStructure;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.StreamReadConstraints;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
Expand Down Expand Up @@ -388,6 +389,15 @@ private static ObjectMapper createObjectMapper() {
retVal = retVal.disable(JsonGenerator.Feature.AUTO_CLOSE_TARGET);
retVal = retVal.disable(JsonParser.Feature.AUTO_CLOSE_SOURCE);
retVal = retVal.configure(JsonParser.Feature.ALLOW_SINGLE_QUOTES, true);

retVal.getFactory().setStreamReadConstraints(createStreamReadConstraints());

return retVal;
}

private static StreamReadConstraints createStreamReadConstraints() {
return StreamReadConstraints.builder()
.maxStringLength(Integer.MAX_VALUE)
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,16 @@ public enum VersionEnum {
V6_6_0,
V6_7_0,
V6_8_0,

V6_8_1,
V6_8_2,
V6_9_0,

V7_0_0;


public static VersionEnum latestVersion() {
VersionEnum[] values = VersionEnum.values();
return values[values.length - 1];
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
type: fix
issue: 5205
title: "Previously, uploading a large vocabulary file (like Loinc) through the upload-external-code-system command would
return an error. The issue has been fixed."
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Note: this release has been decommissioned, and you should not be using it. Please upgrade to a newer version.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
release-date: "2023-08-31"
codename: "Yucatán"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Note: this release has been decommissioned, and you should not be using it. Please upgrade to a newer version.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
release-date: "2023-09-05"
codename: "Yucatán"
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@
import ca.uhn.fhir.parser.json.JsonLikeStructure;
import ca.uhn.fhir.parser.json.jackson.JacksonStructure;
import ca.uhn.fhir.parser.view.ExtPatient;
import ca.uhn.fhir.util.AttachmentUtil;
import ca.uhn.fhir.util.ParametersUtil;
import ca.uhn.fhir.util.TestUtil;
import org.apache.commons.io.IOUtils;
import org.hl7.fhir.instance.model.api.IBaseParameters;
import org.hl7.fhir.instance.model.api.IBaseResource;
import org.hl7.fhir.instance.model.api.ICompositeType;
import org.hl7.fhir.r4.model.Extension;
import org.hl7.fhir.r4.model.IntegerType;
import org.hl7.fhir.r4.model.Patient;
Expand All @@ -21,6 +25,7 @@
import org.junit.jupiter.api.Test;

import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import java.io.StringReader;
import java.io.Writer;
Expand Down Expand Up @@ -63,6 +68,22 @@ public void testJsonLikeParseAndEncodeResourceFromXmlToJson() throws Exception {
assertEquals(parsed.getClass().getName(), resource.getClass().getName(), "reparsed resource classes not equal");
}

@Test
public void testJacksonStructureCanLoadLoincTerminogy() throws IOException {
// given
IBaseParameters inputParametersForLoinc = getUploadTerminologyCommandInputParametersForLoinc();
String s = ourCtx.newJsonParser().encodeResourceToString(inputParametersForLoinc);
StringReader stringReader = new StringReader(s);

// when
JsonLikeStructure jsonLikeStructure = new JacksonStructure();
jsonLikeStructure.load(stringReader);

// then
assertNotNull(jsonLikeStructure.getRootObject());

}

/**
* Test JSON-Like writer using custom stream writer
*
Expand Down Expand Up @@ -151,14 +172,34 @@ public void testViewJson() throws Exception {

assertEquals(0, va.getExtension().size());
}


private IBaseParameters getUploadTerminologyCommandInputParametersForLoinc() throws IOException {
IBaseParameters inputParameters = ParametersUtil.newInstance(ourCtx);
ParametersUtil.addParameterToParametersUri(
ourCtx, inputParameters, "system", "http://loinc.org");

try(InputStream inputStream = JsonLikeParserTest.class.getResourceAsStream("/Loinc_2.72.zip")) {

ICompositeType attachment = AttachmentUtil.newInstance(ourCtx);
AttachmentUtil.setContentType(ourCtx, attachment, "application/zip");
AttachmentUtil.setUrl(ourCtx, attachment, "Loinc_2.72.zip");

AttachmentUtil.setData(ourCtx, attachment, IOUtils.toByteArray(inputStream));

ParametersUtil.addParameterToParameters(
ourCtx, inputParameters, "file", attachment);

}

return inputParameters;

}

@AfterAll
public static void afterClassClearContext() {
TestUtil.randomizeLocaleAndTimezone();
}




public static class JsonLikeMapWriter extends BaseJsonLikeWriter {

private Map<String,Object> target;
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@
</licenses>

<properties>
<fhir_core_version>6.0.22</fhir_core_version>
<fhir_core_version>6.0.22.2</fhir_core_version>
<spotless_version>2.37.0</spotless_version>
<ucum_version>1.0.3</ucum_version>
<surefire_jvm_args>-Dfile.encoding=UTF-8 -Xmx2048m</surefire_jvm_args>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/**
* This class exists to satisfy Sonatype.
*/
public class Sample {}