Skip to content

Commit

Permalink
Tweak headers to make extract working
Browse files Browse the repository at this point in the history
  • Loading branch information
fongsean committed Jun 20, 2024
1 parent f020811 commit 694df45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function Playground() {

const response = await fetch(defaultExtractEndpoint + '/QuestionnaireResponse/$extract', {
method: 'POST',
headers: HEADERS,
headers: { ...HEADERS, 'Content-Type': 'application/json;charset=utf-8' },
body: JSON.stringify(updatableResponse)
});
setExtracting(false);
Expand All @@ -158,7 +158,7 @@ function Playground() {
});
setExtractedResource(null);
} else {
const extractedResource = response.json();
const extractedResource = await response.json();
setExtractedResource(extractedResource);
}
}
Expand Down
2 changes: 1 addition & 1 deletion services/extract-express/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ app.use(express.urlencoded({ extended: true }));

app.get('/fhir/QuestionnaireResponse/\\$extract', (_, res) => {
res.send(
'This service is healthy!\nPerform a POST request to the same path for structureMap $transform.'
'This service is healthy!\nPerform a POST request to the same path for QuestionnaireResponse $extract.'
);
});

Expand Down

0 comments on commit 694df45

Please sign in to comment.