diff --git a/Dockerfile b/Dockerfile index 96399c7a..3b9d1a58 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,8 @@ RUN ./fix-popper.sh COPY . . RUN npm run build +RUN cp -r build/ips/assets build/assets + RUN cp build/404.html build/index.html CMD ["npm", "run", "start"] \ No newline at end of file diff --git a/src/routes/home/+page.svelte b/src/routes/home/+page.svelte index 5ebca59d..ac85281d 100644 --- a/src/routes/home/+page.svelte +++ b/src/routes/home/+page.svelte @@ -1,10 +1,10 @@
- - - -

Test System - no protected health information -

+ +

Test System - no protected health information

-

The WA Verify+ system enhances the WA Verify COVID-19 vaccination verification system which, since 2021, has allowed people receiving COVID-19 vaccinations in Washington State to access and share that information using SMART Health Card QR codes. -

+

The WA Verify+ system enhances the WA Verify COVID-19 vaccination verification system which, since 2021, has allowed people receiving COVID-19 vaccinations in Washington State to access and share that information using SMART Health Card QR codes.

-

WA Verify+ allows people to access augment, and electively share their own health data using the Intternational Patient Summary (IPS) standard. IPS data include important clinical data, immunizations, advance directives, and other data useful for urgent medical care. This data may be helpful to those traveling, to parents or caregivers, and to anyone who wants to be able to see their own records, or securely share their data with healthcare providers or others of their choosing. WA Verify+ uses the secure, patient-controlled SMART Health Link (SHL) standard to allow people to share information collected and stored on their behalf by the Washington State Department of Health. +

WA Verify+ allows people to access augment, and electively share their own health data using the Intternational Patient Summary (IPS) standard. IPS data include important clinical data, immunizations, advance directives, and other data useful for urgent medical care. This data may be helpful to those traveling, to parents or caregivers, and to anyone who wants to be able to see their own records, or securely share their data with healthcare providers or others of their choosing. WA Verify+ uses the secure, patient-controlled SMART Health Link (SHL) standard to allow people to share information collected and stored on their behalf by the Washington State Department of Health.

-

This system generates QR codes and links which demonstrate the ability of WA Verify+ to facilitate sharing directly controlled by individuals. You can see a list of SHLs previously generated on this device, and you can generate a new SHL.

-
+

This system generates QR codes and links which demonstrate the ability of WA Verify+ to facilitate sharing directly controlled by individuals. You can see a list of SHLs previously generated on this device, and you can generate a new SHL.

+
diff --git a/static/ips/assets/js/renderIPS.js b/static/ips/assets/js/renderIPS.js index 53eb36a2..a0ae175a 100644 --- a/static/ips/assets/js/renderIPS.js +++ b/static/ips/assets/js/renderIPS.js @@ -40,8 +40,10 @@ $(document).ready(function () { }); }); } - $('#FhirDropdown').attr('href', "javascript:mode='Entries'; $('#mode').html('Displaying FHIR Entries'); updateFromText();"); - $('#NarrativeDropdown').attr('href', "javascript:mode='Text'; $('#mode').html('Displaying Narrative'); updateFromText();"); + + $('#FhirDropdown').on('click', () => updateDisplayMode('Entries')); + $('#NarrativeDropdown').on('click', () => updateDisplayMode('Text')); + if (footerLength === 1) { $("#footer").load(config.html_dir + "footer.html", function () { // no actions on footer currently @@ -53,6 +55,21 @@ $(window).on('load', function () { $("#content").show(); }); +const updateDisplayMode = function (displayMode) { + let dropdown = $('#mode'); + + if (displayMode == 'Entries') { + var newText = 'Displaying FHIR Entries'; + } else if (displayMode == 'Text') { + var newText = 'Displaying Narrative'; + } + if (newText) { + mode = displayMode + dropdown.html(newText); + } + updateFromText(); +}; + // Clear data button function. Should be called on all new data loads const clearData = function () { // clear textbox diff --git a/static/ips/index.html b/static/ips/index.html index 473f1bfd..ddda521c 100644 --- a/static/ips/index.html +++ b/static/ips/index.html @@ -21,16 +21,20 @@ crossorigin="anonymous"> - + - - + + + IPS Viewer +