Rebuild caches + fix parse of JSON in FHIRRequestBuilder

This commit is contained in:
dotasek 2022-06-17 18:15:48 -04:00
parent 6695fdb064
commit af7fd15667
15 changed files with 10 additions and 252 deletions

View File

@ -255,7 +255,7 @@ public class FhirRequestBuilder {
byte[] body = response.body().bytes(); byte[] body = response.body().bytes();
String contentType = response.header("Content-Type"); String contentType = response.header("Content-Type");
if (body != null) { if (body != null) {
if (contentType.contains(ResourceFormat.RESOURCE_XML.getHeader()) || contentType.contains("text/xml+fhir")) { if (contentType.contains(ResourceFormat.RESOURCE_XML.getHeader()) || contentType.contains(ResourceFormat.RESOURCE_JSON.getHeader()) || contentType.contains("text/xml+fhir")) {
Resource rf = getParser(format).parse(body); Resource rf = getParser(format).parse(body);
if (rf instanceof Bundle) if (rf instanceof Bundle)
feed = (Bundle) rf; feed = (Bundle) rf;

View File

@ -16,7 +16,7 @@
"version" : "1.0.2-2.0.14", "version" : "1.0.2-2.0.14",
"name" : "FHIR Reference Server Conformance Statement", "name" : "FHIR Reference Server Conformance Statement",
"status" : "active", "status" : "active",
"date" : "2022-06-09T21:15:44.743Z", "date" : "2022-06-17T22:07:09.897Z",
"contact" : [{ "contact" : [{
"telecom" : [{ "telecom" : [{
"system" : "other", "system" : "other",

View File

@ -16,7 +16,7 @@
"version" : "3.0.2-2.0.14", "version" : "3.0.2-2.0.14",
"name" : "FHIR Reference Server Conformance Statement", "name" : "FHIR Reference Server Conformance Statement",
"status" : "active", "status" : "active",
"date" : "2022-06-09T21:14:05.196Z", "date" : "2022-06-15T16:31:15.631Z",
"contact" : [{ "contact" : [{
"telecom" : [{ "telecom" : [{
"system" : "other", "system" : "other",

View File

@ -16,7 +16,7 @@
"version" : "3.0.2-2.0.14", "version" : "3.0.2-2.0.14",
"name" : "FHIR Reference Server Conformance Statement", "name" : "FHIR Reference Server Conformance Statement",
"status" : "active", "status" : "active",
"date" : "2022-06-09T21:13:00.228Z", "date" : "2022-06-15T16:31:15.631Z",
"contact" : [{ "contact" : [{
"telecom" : [{ "telecom" : [{
"system" : "other", "system" : "other",

View File

@ -12,7 +12,7 @@
"version" : "4.0.1-2.0.14", "version" : "4.0.1-2.0.14",
"name" : "FHIR Reference Server Conformance Statement", "name" : "FHIR Reference Server Conformance Statement",
"status" : "active", "status" : "active",
"date" : "2022-06-09T21:09:34.321Z", "date" : "2022-06-17T22:02:53.771Z",
"contact" : [{ "contact" : [{
"telecom" : [{ "telecom" : [{
"system" : "other", "system" : "other",

View File

@ -5,7 +5,7 @@
"version" : "1.0.0", "version" : "1.0.0",
"name" : "FHIR Reference Server Teminology Capability Statement", "name" : "FHIR Reference Server Teminology Capability Statement",
"status" : "active", "status" : "active",
"date" : "2022-06-09T11:12:53.805Z", "date" : "2022-06-17T22:02:55.131Z",
"contact" : [{ "contact" : [{
"telecom" : [{ "telecom" : [{
"system" : "other", "system" : "other",

View File

@ -12,7 +12,7 @@
"version" : "4.0.1-2.0.14", "version" : "4.0.1-2.0.14",
"name" : "FHIR Reference Server Conformance Statement", "name" : "FHIR Reference Server Conformance Statement",
"status" : "active", "status" : "active",
"date" : "2022-06-09T21:16:00.478Z", "date" : "2022-06-17T22:07:43.178Z",
"contact" : [{ "contact" : [{
"telecom" : [{ "telecom" : [{
"system" : "other", "system" : "other",

View File

@ -5,7 +5,7 @@
"version" : "1.0.0", "version" : "1.0.0",
"name" : "FHIR Reference Server Teminology Capability Statement", "name" : "FHIR Reference Server Teminology Capability Statement",
"status" : "active", "status" : "active",
"date" : "2022-06-09T11:12:53.805Z", "date" : "2022-06-17T22:07:43.413Z",
"contact" : [{ "contact" : [{
"telecom" : [{ "telecom" : [{
"system" : "other", "system" : "other",

View File

@ -12,7 +12,7 @@
"version" : "4.0.1-2.0.14", "version" : "4.0.1-2.0.14",
"name" : "FHIR Reference Server Conformance Statement", "name" : "FHIR Reference Server Conformance Statement",
"status" : "active", "status" : "active",
"date" : "2022-06-09T21:12:46.775Z", "date" : "2022-06-17T22:03:23.787Z",
"contact" : [{ "contact" : [{
"telecom" : [{ "telecom" : [{
"system" : "other", "system" : "other",

View File

@ -5,7 +5,7 @@
"version" : "1.0.0", "version" : "1.0.0",
"name" : "FHIR Reference Server Teminology Capability Statement", "name" : "FHIR Reference Server Teminology Capability Statement",
"status" : "active", "status" : "active",
"date" : "2022-06-09T11:12:53.805Z", "date" : "2022-06-17T22:03:23.912Z",
"contact" : [{ "contact" : [{
"telecom" : [{ "telecom" : [{
"system" : "other", "system" : "other",

View File

@ -1,19 +0,0 @@
-------------------------------------------------------------------------------------
{"hierarchical" : false, "valueSet" :{
"resourceType" : "ValueSet",
"compose" : {
"inactive" : true,
"include" : [{
"system" : "urn:iso:std:iso:4217"
}]
}
}}####
e: {
"error" : "java.lang.NullPointerException"
}
-------------------------------------------------------------------------------------
{"hierarchical" : false, "url": "http://hl7.org/fhir/ValueSet/currencies", "version": "4.0.1"}####
e: {
"error" : "java.lang.NullPointerException"
}
-------------------------------------------------------------------------------------

View File

@ -1,11 +0,0 @@
-------------------------------------------------------------------------------------
{"code" : {
"system" : "urn:ietf:bcp:47",
"code" : "fr-CA"
}, "valueSet" :null, "lang":"en-US", "useServer":"true", "useClient":"true", "guessSystem":"false", "valueSetMode":"ALL_CHECKS", "versionFlexible":"true"}####
v: {
"severity" : "error",
"error" : "Attempt to use Terminology server when no Terminology server is available",
"class" : "SERVER_ERROR"
}
-------------------------------------------------------------------------------------

View File

@ -1,90 +0,0 @@
-------------------------------------------------------------------------------------
{"hierarchical" : false, "valueSet" :{
"resourceType" : "ValueSet",
"compose" : {
"inactive" : true,
"include" : [{
"system" : "http://loinc.org",
"concept" : [{
"extension" : [{
"url" : "http://hl7.org/fhir/StructureDefinition/valueset-label",
"valueString" : "A."
}],
"code" : "LA20752-4",
"display" : "Within 24 hours"
},
{
"extension" : [{
"url" : "http://hl7.org/fhir/StructureDefinition/valueset-label",
"valueString" : "B."
}],
"code" : "LA20753-2",
"display" : "After 24 hours but before 3 days"
},
{
"extension" : [{
"url" : "http://hl7.org/fhir/StructureDefinition/valueset-label",
"valueString" : "C."
}],
"code" : "LA20754-0",
"display" : "Three days or later"
},
{
"extension" : [{
"url" : "http://hl7.org/fhir/StructureDefinition/valueset-label",
"valueString" : "D."
}],
"code" : "LA4489-6",
"display" : "Unknown"
}]
}]
}
}}####
e: {
"error" : "java.lang.NullPointerException"
}
-------------------------------------------------------------------------------------
{"hierarchical" : false, "valueSet" :{
"resourceType" : "ValueSet",
"compose" : {
"include" : [{
"system" : "http://loinc.org",
"concept" : [{
"extension" : [{
"url" : "http://hl7.org/fhir/StructureDefinition/valueset-label",
"valueString" : "A."
}],
"code" : "LA20752-4",
"display" : "Within 24 hours"
},
{
"extension" : [{
"url" : "http://hl7.org/fhir/StructureDefinition/valueset-label",
"valueString" : "B."
}],
"code" : "LA20753-2",
"display" : "After 24 hours but before 3 days"
},
{
"extension" : [{
"url" : "http://hl7.org/fhir/StructureDefinition/valueset-label",
"valueString" : "C."
}],
"code" : "LA20754-0",
"display" : "Three days or later"
},
{
"extension" : [{
"url" : "http://hl7.org/fhir/StructureDefinition/valueset-label",
"valueString" : "D."
}],
"code" : "LA4489-6",
"display" : "Unknown"
}]
}]
}
}}####
e: {
"error" : "java.lang.NullPointerException"
}
-------------------------------------------------------------------------------------

View File

@ -1,19 +0,0 @@
-------------------------------------------------------------------------------------
{"hierarchical" : false, "valueSet" :{
"resourceType" : "ValueSet",
"compose" : {
"inactive" : true,
"include" : [{
"system" : "urn:ietf:bcp:13"
}]
}
}}####
e: {
"error" : "java.lang.NullPointerException"
}
-------------------------------------------------------------------------------------
{"hierarchical" : false, "url": "http://hl7.org/fhir/ValueSet/mimetypes", "version": "4.0.1"}####
e: {
"error" : "java.lang.NullPointerException"
}
-------------------------------------------------------------------------------------

View File

@ -1,103 +0,0 @@
-------------------------------------------------------------------------------------
{"hierarchical" : false, "valueSet" :{
"resourceType" : "ValueSet",
"compose" : {
"inactive" : true,
"include" : [{
"system" : "http://unitsofmeasure.org",
"concept" : [{
"extension" : [{
"url" : "http://hl7.org/fhir/StructureDefinition/valueset-concept-definition",
"valueString" : "second"
}],
"code" : "s",
"display" : "second",
"designation" : [{
"language" : "zh",
"value" : "秒"
}]
},
{
"extension" : [{
"url" : "http://hl7.org/fhir/StructureDefinition/valueset-concept-definition",
"valueString" : "minute"
}],
"code" : "min",
"display" : "minute",
"designation" : [{
"language" : "zh",
"value" : "分钟"
}]
},
{
"extension" : [{
"url" : "http://hl7.org/fhir/StructureDefinition/valueset-concept-definition",
"valueString" : "hour"
}],
"code" : "h",
"display" : "hour",
"designation" : [{
"language" : "zh",
"value" : "小时"
}]
},
{
"extension" : [{
"url" : "http://hl7.org/fhir/StructureDefinition/valueset-concept-definition",
"valueString" : "day"
}],
"code" : "d",
"display" : "day",
"designation" : [{
"language" : "zh",
"value" : "天"
}]
},
{
"extension" : [{
"url" : "http://hl7.org/fhir/StructureDefinition/valueset-concept-definition",
"valueString" : "week"
}],
"code" : "wk",
"display" : "week",
"designation" : [{
"language" : "zh",
"value" : "星期"
}]
},
{
"extension" : [{
"url" : "http://hl7.org/fhir/StructureDefinition/valueset-concept-definition",
"valueString" : "month"
}],
"code" : "mo",
"display" : "month",
"designation" : [{
"language" : "zh",
"value" : "月"
}]
},
{
"extension" : [{
"url" : "http://hl7.org/fhir/StructureDefinition/valueset-concept-definition",
"valueString" : "year"
}],
"code" : "a",
"display" : "year",
"designation" : [{
"language" : "zh",
"value" : "年"
}]
}]
}]
}
}}####
e: {
"error" : "java.lang.NullPointerException"
}
-------------------------------------------------------------------------------------
{"hierarchical" : false, "url": "http://hl7.org/fhir/ValueSet/units-of-time", "version": "4.0.1"}####
e: {
"error" : "java.lang.NullPointerException"
}
-------------------------------------------------------------------------------------