Skip to content

Commit

Permalink
Fix MIME type to match R4 and remove unnecessary configs
Browse files Browse the repository at this point in the history
This commit fixes the MIME type which was set to `application/json+fhir`
where the official MIME type expected by the IBM FHIR server is
`application/fhir+json`.
  • Loading branch information
luisgarcc committed Mar 3, 2021
1 parent 54b3175 commit 9abb972
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 7 deletions.
11 changes: 11 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>alvearie-patient-browser</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
4 changes: 2 additions & 2 deletions build/js/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/js/index.js.32d42d9429ac669cc962.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions config-genrator/generate_config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function requestPromise(options) {
strictSSL: false,
proxy : app.proxy,
headers : {
accept: "application/json+fhir"
accept: "application/fhir+json"
}
}),
(error, res) => {
Expand Down Expand Up @@ -179,7 +179,7 @@ getFhirVersion().then(version => {
strictSSL: false,
proxy : app.proxy,
headers : {
accept: "application/json+fhir"
accept: "application/fhir+json"
}
}, resources => {
let conditions = {};
Expand Down
2 changes: 1 addition & 1 deletion src/lib/PatientSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ export default class PatientSearch
processData: false,
data,
headers: {
accept: "application/json+fhir",
accept: "application/fhir+json",
"content-type": "application/x-www-form-urlencoded"
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ export function request(options) {
options = typeof options == "string" ? { url : options } : options || {};
let cfg = $.extend(true, options, {
headers: {
Accept: "application/json+fhir"
Accept: "application/fhir+json"
}
})

Expand Down

0 comments on commit 9abb972

Please sign in to comment.