This commit is contained in:
Grahame Grieve 2024-10-09 23:14:11 +08:00
parent fd34048c81
commit b9299fa9e2
3 changed files with 3 additions and 3 deletions

View File

@ -275,7 +275,7 @@ public class FhirRequestBuilder {
case "application/xml":
case "application/fhir+xml":
case "text/xml":
resource = getParser(ResourceFormat.RESOURCE_JSON.getHeader()).parse(response.body().bytes());
resource = getParser(ResourceFormat.RESOURCE_XML.getHeader()).parse(response.body().bytes());
break;
case "text/plain":
resource = outcomeFromTextError(response.body().string());

View File

@ -265,7 +265,7 @@ public class FhirRequestBuilder {
case "application/xml":
case "application/fhir+xml":
case "text/xml":
resource = getParser(ResourceFormat.RESOURCE_JSON.getHeader()).parse(response.body().bytes());
resource = getParser(ResourceFormat.RESOURCE_XML.getHeader()).parse(response.body().bytes());
break;
case "text/plain":
resource = OperationOutcomeUtilities.outcomeFromTextError(response.body().string());

View File

@ -268,7 +268,7 @@ public class FhirRequestBuilder {
case "application/xml":
case "application/fhir+xml":
case "text/xml":
resource = getParser(ResourceFormat.RESOURCE_JSON.getHeader()).parse(response.body().bytes());
resource = getParser(ResourceFormat.RESOURCE_XML.getHeader()).parse(response.body().bytes());
break;
case "text/plain":
resource = OperationOutcomeUtilities.outcomeFromTextError(response.body().string());