Skip to content

Commit c210d66

Browse files
committed
chore: updating accepted content type for pdf call
1 parent 1d0d9f7 commit c210d66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/(fhir)/fhir/resources/sykmelding/write-to-ehr/route.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export async function POST(request: Request): Promise<Response> {
5252
// Doesn't already exist, and hasn't returned invalid FHIR response, we can try and create it
5353
const createdDocRef = await serverFhirResources.createDocumentReference(
5454
sykmeldingBase64,
55-
'Sykmelding for Foo Bar',
55+
'Sykmelding title goes here',
5656
sykmeldingId,
5757
) // TODO title
5858
if ('errorType' in createdDocRef) {

src/services/syk-inn-api/SykInnApiService.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const sykInnApiService = {
8686
method: 'GET',
8787
headers: {
8888
'Content-Type': 'application/json',
89-
sykmeldingId: sykmeldingId,
89+
Accept: 'application/pdf',
9090
HPR: hpr,
9191
},
9292
responseSchema: 'ArrayBuffer',

0 commit comments

Comments
 (0)