Skip to content

Commit

Permalink
Merge branch 'main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Feb 6, 2024
2 parents fb8a613 + 22bb78d commit f6dc340
Show file tree
Hide file tree
Showing 7 changed files with 335 additions and 372 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [2.8.3](https://github.com/Chinlinlee/Burni/compare/v2.8.0...v2.8.3) (2024-02-06)


### Bug Fixes

* [#11](https://github.com/Chinlinlee/Burni/issues/11) ([ba2e2d8](https://github.com/Chinlinlee/Burni/commit/ba2e2d8ca99f11ddc02a143f5d6993871859d742))
* update API broken ([4867f30](https://github.com/Chinlinlee/Burni/commit/4867f301ebee1a1c50c1c42a9c7d976885e9302e))

### [2.8.2](https://github.com/Chinlinlee/Burni/compare/v2.8.0...v2.8.2) (2024-01-24)
patch change

Expand Down
13 changes: 11 additions & 2 deletions api/FHIRApiService/services/base.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,17 @@ class BaseFhirApiService {
item = handleError.processing(item);
}

if ((this.response.getHeader("content-type").includes("xml") ||
this.request.get("accept").includes("xml")) ||
const xmlContentTypes = [
"application/fhir+xml",
"application/xml",
"xml"
];
let firstAcceptType = this.request.headers.accept.split(",").pop();

if ((
this.response.getHeader("content-type").includes("xml") ||
xmlContentTypes.includes(firstAcceptType)
) ||
this.response.locals?._format?.toLowerCase() === "xml"
) {
let fhir = new FHIR();
Expand Down
2 changes: 1 addition & 1 deletion api/FHIRApiService/services/update.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class UpdateService extends BaseFhirApiService {
return {
status: true,
code: 200,
result: newDoc.value.getFHIRField()
result: newDoc.getFHIRField()
};
}

Expand Down
Loading

0 comments on commit f6dc340

Please sign in to comment.