Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT MERGE - VACMS 20740 - Use new medical records widget when not cerner #2467

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/site/paragraphs/react_widget.drupal.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,14 @@
}

{% endcomment %}

{% if entity.fieldCtaWidget %}
<div data-template="paragraphs/react_widget" data-entity-id="{{ entity.entityId }}" class="cta-widget" data-widget-type="cta" data-app-id="{{ entity.fieldWidgetType }}"></div>
{% if entity.fieldWidgetType == 'health-records' and fieldOffice.entity.fieldVamcEhrSystem and fieldOffice.entity.fieldVamcEhrSystem != 'cerner' %}
{% assign appId = 'modern-get-medical-records-page' %}
{% else %}
{% assign appId = entity.fieldWidgetType %}
{% endif %}
<div data-template="paragraphs/react_widget" data-entity-id="{{ entity.entityId }}" class="cta-widget" data-widget-type="cta" data-app-id="{{ appId }}"></div>
{% else %}
<div
data-template="paragraphs/react_widget"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ module.exports = `
entity {
entityId
entityLabel
... on NodeHealthCareRegionPage {
fieldVamcEhrSystem
}
reverseFieldRegionPageNode(
limit: 50,
filter: {
Expand Down
Loading