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

Openemr work on 4958 amc patient electronic access #4997

Merged
Prev Previous commit
Next Next commit
Check in missing twig templates.
Missed the template twigs for the portal credentials refactor.
  • Loading branch information
adunsulag committed Mar 8, 2022
commit 9b089babe99279b58f211411012991c216711abb
33 changes: 33 additions & 0 deletions templates/patient/portallogin/email-message.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<html>
<body>
<div class='wrapper'>
{% if portal_onsite_two_enable is not empty %}
{{ "Patient Portal Web Address"|xlt }}:<br />
<a href='{{ portal_onsite_two_address|attr }}' target='_blank'>{{ portal_onsite_two_address|text }}</a>
<br /><br />
{% endif %}
<strong>{{ "Portal Account Name"|xlt }}</strong>: {{ uname }}<br /><br />
<strong>{{ "Login User Name"|xlt }}:</strong> {{ login_uname|text }}
<br /><strong>{{ "Password"|xlt }}:</strong>
{{ pwd|text }}<br /><br />
{% if enforce_signin_email %}
<strong>{{ "Login Trusted Email"|xlt }}</strong>:
{% if email_direct is not empty %}
{{ email_direct|text }}
{% else %}
{{ "Is Required. Contact Provider."|xlt}}
{% endif %}
{% endif %}
<br /><br />
<strong>{{ "You may be required to change your password during first login."|xlt }}</strong><br />
{{ "This is required for your security as well as ours."|xlt }}<br />
{{ "Afterwards however, you may change your portal credentials anytime from portal menu."|xlt }}<br /><br />

<strong>{{ "3rd Party API Access"|xlt }}</strong><br />
<strong>{{ "API Access Address"|xlt }}: </strong>{{ fhir_address }}<br />
<strong>{{ "Technical Requirements Documentation"|xlt }}: </strong><a href='{{ fhir_requirements_address|attr }}' target='_blank'>{{ fhir_requirements_address|text }}</a><br />
{{ "You can use the above API Address with any app of your choice to access your patient data as long as it meets the technical requirements for our service." }}<br /><br />
{{ "Thank you for allowing us to serve you."|xlt }}<br />
</div>
</body>
</html>
16 changes: 16 additions & 0 deletions templates/patient/portallogin/email-message.text.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{% if portal_onsite_two_enable is not empty %}{{ "Patient Portal Web Address"|xlt }}: {{ portal_onsite_two_address|text }}{% endif %}
{{ "Portal Account Name"|xlt }}: {{ uname }}
{{ "Login User Name"|xlt }}: {{ login_uname|text }}
{{ "Password"|xlt }}: {{ pwd|text }}
{% if enforce_signin_email %}{{ "Login Trusted Email"|xlt }}: {% if email_direct is not empty %}{{ email_direct|text }}{% else %}{{ "Is Required. Contact Provider."|xlt}}{% endif %}{% endif %}


{{ "You may be required to change your password during first login."|xlt }}
{{ "This is required for your security as well as ours."|xlt }}
{{ "Afterwards however, you may change your portal credentials anytime from portal menu."|xlt }}
{{ "Thank you for allowing us to serve you."|xlt }}

{{ "3rd Party API Access"|xlt }}
{{ "API Access Address"|xlt }}: {{ fhir_address }}
{{ "You can use the above API Address with any app of your choice to access your patient data as long as it meets the technical requirements for our service." }}
{{ "Technical Requirements Documentation"|xlt }}: {{ fhir_requirements_address }}
93 changes: 93 additions & 0 deletions templates/patient/portallogin/print.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{#
* Portal Login Print Page
*
* @package OpenEMR
* @link http://www.open-emr.org
* @author Stephen Nielson <snielson@discoverandchange.com>
* @copyright Copyright (c) 2022 Discover and Change, Inc.
* @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
#}
<html>
<head>

{% block head %}
{{ setupHeader(['opener']) }}
{% endblock %}
<style>
@media print {
body {
font-size: 24pt !important;
}
.alert {
border: 0 !important;
}
.alert-success {
color: #000 !important;
background-color: #fff !important;
}
}
</style>
<script>
function transmit(){
// get a public key to encrypt the password info and send
document.getElementById('form_save').value='submit';
document.forms[0].submit();
}
{% if (credMessage is not empty) %}
// <?php if (!empty($credMessage)) { ?>
$(function () {
top.printLogPrint(window);
});
{% endif %}
// <?php } ?>
</script>
</head>
<body class="body_top">
<div class="container-fluid">

{% if (credMessage is not empty) %}
<div class="alert alert-success" role="alert">
<p class="font-weight-bold">{{ "Portal Credential Information"|xlt }}</p>
{{ credMessage }}
</div>
{% else %}
<form name="portallogin" action="" method="post">
<input type="hidden" name="csrf_token_form" value="{{ csrfToken|attr }}" />

<p class="text-center font-weight-bold">{{ "Generate Username And Password For"|xlt }} {{ fname|text }}</p>

<div class="form-group">
<label class="font-weight-bold" for="uname">{{ "Account Name"|xlt}}:</label>
<input type="text" class="form-control" name="uname" id="uname" value="{{ uname|attr }}" size="10" readonly />
</div>
<div class="form-group">
<label class="font-weight-bold" for="login_uname">{{ 'Login User Name'|xlt }}:</label>
<input type="text" class="form-control" name="login_uname" id="login_uname" value="{{ login_uname }}" readonly />
</div>
<label class="font-weight-bold" for="pwd">{{ 'Password'|xlt }}:</label>
<div class="input-group">
<input type="text" class="form-control" name="pwd" id="pwd" value="{{ pwd|attr }}" size="14" />
<div class="input-group-append">
<a href="#" class="btn btn-primary" onclick="top.restoreSession(); javascript:document.location.reload()">{{ 'Change'|xlt }}</a>
</div>
</div>
{% if enforce_signin_email %}
<div class="form-group">
<label class="font-weight-bold" for="email_direct">{{ "Login Trusted Email"|xlt }}:</label>
{% if email_direct is not empty %}
{{ email_direct|text }}
{% else %}
{{ "Is Required. Please Add in Contacts."|xlt}}
{% endif %}
</div>
{% endif %}
<hr />
<input type="hidden" name="form_save" id="form_save" />
<a href="#" class="btn btn-primary" onclick="return transmit()">{{ 'Save'|xlt }}</a>
<input type="hidden" name="form_cancel" id="form_cancel" />
<a href="#" class="btn btn-secondary" onclick="top.restoreSession(); dlgclose();">{{ 'Cancel'|xlt }}</a>
</form>
{% endif %}
</div>
</body>
</html>