|
24 | 24 |
|
25 | 25 | let baseUrl = "https://concept01.ehealthexchange.org:52780/fhirproxy/r4";
|
26 | 26 | let selectedSource = "Meld";
|
27 |
| - let method = 'url'; |
| 27 | + let method = 'destination'; |
28 | 28 | let processing = false;
|
29 | 29 | let fetchError = '';
|
30 | 30 |
|
|
175 | 175 | let url = baseUrl;
|
176 | 176 | let headers = {
|
177 | 177 | accept: 'application/json+fhir',
|
178 |
| - 'X-Request-Id': '5c92758f-79c8-4137-b104-9c0064205407', |
179 | 178 | 'Content-Type': 'application/fhir+json; charset=UTF-8',
|
180 | 179 | 'prefer': 'return=representation'
|
181 | 180 | };
|
182 | 181 | if (method === 'url') {
|
183 | 182 | url = sources[selectedSource].url;
|
184 | 183 | } else if (method === 'destination') {
|
| 184 | + headers['X-Request-Id'] = '5c92758f-79c8-4137-b104-9c0064205407', |
185 | 185 | headers['X-DESTINATION'] = selectedSource,
|
186 | 186 | headers['X-POU'] = 'PUBHLTH'
|
187 | 187 | }
|
|
226 | 226 | let url = baseUrl;
|
227 | 227 | let headers = {
|
228 | 228 | accept: 'application/json+fhir',
|
229 |
| - 'X-Request-Id': '5c92758f-79c8-4137-b104-9c0064205407', |
230 | 229 | 'Content-Type': 'application/fhir+json; charset=UTF-8',
|
231 | 230 | 'prefer': 'return=representation'
|
232 | 231 | };
|
233 | 232 | if (method === 'url') {
|
234 | 233 | url = sources[selectedSource].url;
|
235 | 234 | } else if (method === 'destination') {
|
| 235 | + headers['X-Request-Id'] = '5c92758f-79c8-4137-b104-9c0064205407', |
236 | 236 | headers['X-DESTINATION'] = selectedSource,
|
237 | 237 | headers['X-POU'] = 'PUBHLTH'
|
238 | 238 | }
|
|
302 | 302 | </option>
|
303 | 303 | </Input>
|
304 | 304 | </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} |
305 | 308 | </Col>
|
306 | 309 | </Row>
|
307 | 310 | </FormGroup>
|
|
0 commit comments