Skip to content

Commit 41e1b81

Browse files
committed
Fix query headers and add note to document eHE proxy cert fix
1 parent aec2d37 commit 41e1b81

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/lib/FetchTEFCA.svelte

+6-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
2525
let baseUrl = "https://concept01.ehealthexchange.org:52780/fhirproxy/r4";
2626
let selectedSource = "Meld";
27-
let method = 'url';
27+
let method = 'destination';
2828
let processing = false;
2929
let fetchError = '';
3030
@@ -175,13 +175,13 @@
175175
let url = baseUrl;
176176
let headers = {
177177
accept: 'application/json+fhir',
178-
'X-Request-Id': '5c92758f-79c8-4137-b104-9c0064205407',
179178
'Content-Type': 'application/fhir+json; charset=UTF-8',
180179
'prefer': 'return=representation'
181180
};
182181
if (method === 'url') {
183182
url = sources[selectedSource].url;
184183
} else if (method === 'destination') {
184+
headers['X-Request-Id'] = '5c92758f-79c8-4137-b104-9c0064205407',
185185
headers['X-DESTINATION'] = selectedSource,
186186
headers['X-POU'] = 'PUBHLTH'
187187
}
@@ -226,13 +226,13 @@
226226
let url = baseUrl;
227227
let headers = {
228228
accept: 'application/json+fhir',
229-
'X-Request-Id': '5c92758f-79c8-4137-b104-9c0064205407',
230229
'Content-Type': 'application/fhir+json; charset=UTF-8',
231230
'prefer': 'return=representation'
232231
};
233232
if (method === 'url') {
234233
url = sources[selectedSource].url;
235234
} else if (method === 'destination') {
235+
headers['X-Request-Id'] = '5c92758f-79c8-4137-b104-9c0064205407',
236236
headers['X-DESTINATION'] = selectedSource,
237237
headers['X-POU'] = 'PUBHLTH'
238238
}
@@ -302,6 +302,9 @@
302302
</option>
303303
</Input>
304304
</FormGroup>
305+
{#if method === 'destination'}
306+
<p style="font-size:small" class="text-danger">Please <a href="https://concept01.ehealthexchange.org:52780/" target="_blank" rel="noreferrer">click here</a> and trust the site in your browser to perform this proxied query</p>
307+
{/if}
305308
</Col>
306309
</Row>
307310
</FormGroup>

0 commit comments

Comments
 (0)