Skip to content

Commit

Permalink
Add ecw, epic (and stc placeholder) sof hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellrgn committed Feb 27, 2024
1 parent 7b442e8 commit e00d16b
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
3 changes: 3 additions & 0 deletions default.env
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ COMPOSE_FILE=docker-compose.yaml:docker-compose.static-ingress.yaml
# Enable to use development overrides
# COMPOSE_FILE=docker-compose.yaml:docker-compose.dev.yaml

VITE_EPIC_HIMSS_CLIENT_ID=
VITE_ECW_HIMSS_CLIENT_ID=
VITE_STC_HIMSS_CLIENT_ID=
VITE_EPIC_CLIENT_ID=
VITE_CERNER_CLIENT_ID=

Expand Down
4 changes: 3 additions & 1 deletion src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/// <reference types="vite/client" />

interface ImportMetaEnv {
readonly VITE_SHOW_DEMO: boolean
readonly VITE_EPIC_HIMSS_CLIENT_ID: string
readonly VITE_ECW_HIMSS_CLIENT_ID: string
readonly VITE_STC_HIMSS_CLIENT_ID: string
readonly VITE_EPIC_CLIENT_ID: string
readonly VITE_CERNER_CLIENT_ID: string
readonly VITE_API_BASE: string
Expand Down
4 changes: 3 additions & 1 deletion src/lib/FetchSoF.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@
<Label>Fetch via SMART authorization</Label>
{#each SOF_HOSTS as host}
<Input type="radio" bind:group={sofHostSelection} value={host.id} label={host.name}/>
<p class="text-secondary" style="margin-left:25px">{@html host.note}</p>
{#if host.note}
<p class="text-secondary" style="margin-left:25px">{@html host.note}</p>
{/if}
{/each}
</FormGroup>

Expand Down
23 changes: 22 additions & 1 deletion src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,30 @@ export const API_BASE = import.meta.env.VITE_API_BASE;
export const INTERMEDIATE_FHIR_SERVER_BASE = import.meta.env.VITE_INTERMEDIATE_FHIR_SERVER_BASE;

export const SOF_HOSTS = [
{
id: "epic-himss",
name: "Epic - HIMSS Demo",
url: "https://demo/MyChart107/authentication/oauth/start?redirect_uri=https://smart-health-links-ips.cirg.washington.edu/create&response_type=code&client_id=dddddddd-5541-445b-9d7e-000000000005",
clientId: import.meta.env.VITE_EPIC_HIMSS_CLIENT_ID,
note: "hsoni1010 / Cures@2022"
},
{
id: "ecw-himss",
name: "eClinicalWorks - HIMSS Demo",
url: "https://fhirstagingsrv.eclinicalweb.com/fhir/r4/JCBJCD",
clientId: import.meta.env.VITE_ECW_HIMSS_CLIENT_ID,
note: "azzfhir / epic"
},
{
id: "stc-himss",
name: "WA Immunization Registry - HIMSS Demo",
url: "https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4",
clientId: import.meta.env.VITE_STC_HIMSS_CLIENT_ID,
note: "user / pass"
},
{
id: "epic",
name: "EPIC Demo",
name: "Epic Demo",
url: "https://fhir.epic.com/interconnect-fhir-oauth/api/FHIR/R4",
clientId: import.meta.env.VITE_EPIC_CLIENT_ID,
note: "<a href='https://fhir.epic.com/Documentation?docId=testpatients' target='_blank' rel='noreferrer'>Test patient credentials <Icon name='box-arrow-up-right' /></a>"
Expand Down

0 comments on commit e00d16b

Please sign in to comment.