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

RWA-970 - Configure and support different login and visit location setups #20

Open
wants to merge 8 commits into
base: master
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
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
[
{
"id": "${project.parent.groupId}.${project.parent.artifactId}.myAccount.menuItem",
"extensionPointId": "org.openmrs.module.appui.header.userAccount.menuItems",
"type": "link",
"label": "adminui.app.myAccount.label",
"url": "adminui/myaccount/myAccount.page"
},
{
"id": "${project.parent.groupId}.${project.parent.artifactId}.accounts",
"extensionPointId": "systemAdministration.apps",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"extensionPointId": "org.openmrs.module.authenticationui.loginPage.config",
"type": "config",
"extensionParams": {
"show-locations": true,
"require-location": true,
"show-locations": false,
"require-location": false,
"allow-password-reset": true,
"welcome-message": "Welcome to Rwanda EMR"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,15 @@
"icon": "icon-refresh",
"requiredPrivilege": "App: coreapps.systemAdministration",
"order": 95
},
{
"id": "imbemr.adminConfigureLoginLocations",
"extensionPointId": "systemAdministration.apps",
"type": "link",
"label": "imbemr.admin.configureLoginLocations",
"url": "imbemr/admin/configureLoginLocations.page",
"icon": "icon-hospital",
"requiredPrivilege": "App: coreapps.systemAdministration",
"order": 96
}
]
11 changes: 3 additions & 8 deletions configuration/appframework/imbemr/header_extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@
"extensionPointId": "org.openmrs.module.appui.header.config",
"type": "config",
"extensionParams": {
"logo-icon-url": "/ms/uiframework/resource/file/configuration/frontend/rwandaLogo.png"
"custom-provider": "imbemr",
"custom-fragment": "header",
"logo-icon-url": "file:configuration/frontend/rwandaLogo.png"
}
},
{
"id": "imbemr.myAccountHeaderLink",
"extensionPointId": "org.openmrs.module.appui.header.userAccount.menuItems",
"type": "link",
"label": "authenticationui.myAccount.title",
"url": "authenticationui/account/userAccount.page"
}
]

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"provider": "registrationapp",
"fragment": "summary/section",
"fragmentConfig": {
"sectionId": "patient-identification-section"
"sectionId": "patient-identification-section",
"displayEachField": true
}
}
}
Expand Down
124 changes: 97 additions & 27 deletions configuration/appframework/registrationapp/registration_app.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,103 @@
],
"maxPatientSearchResults": 50,
"sections": [
{
"id": "patient-identification-section",
"label": "registrationapp.patient.identifiers.label",
"questions": [
{
"id": "national-ids-questions",
"legend": "imbemr.registration.nationalIds.legend",
"fields": [
{
"type": "patientIdentifier",
"label": "imbemr.identifer.nationalId.label",
"formFieldName": "nationalId",
"uuid": "ed52ec82-4b7c-411b-804a-13bd9651bb3e",
"cssClasses": ["regex"],
"widget": {
"providerName": "uicommons",
"fragmentId": "field/text",
"config": {
"size": "50",
"regex": "(^$)|(^\\d{16}$)"
}
}
},
{
"type": "patientIdentifier",
"label": "imbemr.identifer.applicationNumber.label",
"formFieldName": "applicationNumber",
"uuid": "0f7d2e40-956a-11ef-93fa-0242ac120002",
"widget": {
"providerName": "uicommons",
"fragmentId": "field/text",
"config": {
"size": "50"
}
}
},
{
"type": "patientIdentifier",
"label": "imbemr.identifer.upid.label",
"formFieldName": "upid",
"uuid": "01edaedd-956a-11ef-93fa-0242ac120002",
"widget": {
"providerName": "uicommons",
"fragmentId": "field/text",
"config": {
"size": "50"
}
}
},
{
"type": "patientIdentifier",
"label": "imbemr.identifer.nin.label",
"formFieldName": "nin",
"uuid": "0c69d739-956a-11ef-93fa-0242ac120002",
"widget": {
"providerName": "uicommons",
"fragmentId": "field/text",
"config": {
"size": "50"
}
}
},
{
"type": "patientIdentifier",
"label": "imbemr.identifer.passportNumber.label",
"formFieldName": "passportNumber",
"uuid": "12a72978-956a-11ef-93fa-0242ac120002",
"widget": {
"providerName": "uicommons",
"fragmentId": "field/text",
"config": {
"size": "50"
}
}
},
{
"widget": {
"providerName": "imbemr",
"fragmentId": "field/searchClientRegistry",
"config": {
"formFields": [
{ "formFieldName": "nationalId", "identifierTypeUuid": "ed52ec82-4b7c-411b-804a-13bd9651bb3e" },
{ "formFieldName": "applicationNumber", "identifierTypeUuid": "0f7d2e40-956a-11ef-93fa-0242ac120002" },
{ "formFieldName": "upid", "identifierTypeUuid": "01edaedd-956a-11ef-93fa-0242ac120002" },
{ "formFieldName": "nin", "identifierTypeUuid": "0c69d739-956a-11ef-93fa-0242ac120002" },
{ "formFieldName": "passportNumber", "identifierTypeUuid": "12a72978-956a-11ef-93fa-0242ac120002" }
]
}
}
}
]
}
]
},
{
"id": "demographics"
},
{
"id": "contactInfo",
"label": "registrationapp.patient.contactInfo.label",
Expand Down Expand Up @@ -188,33 +285,6 @@
]
}
]
},
{
"id": "patient-identification-section",
"label": "registrationapp.patient.identifiers.label",
"questions": [
{
"id": "nationalId",
"legend": "imbemr.registration.nationalId.legend",
"fields": [
{
"type": "patientIdentifier",
"label": "imbemr.registration.nationalId.label",
"formFieldName": "nationalId",
"uuid": "ed52ec82-4b7c-411b-804a-13bd9651bb3e",
"cssClasses": ["regex"],
"widget": {
"providerName": "uicommons",
"fragmentId": "field/text",
"config": {
"size": "50",
"regex": "(^$)|(^\\d{16}$)"
}
}
}
]
}
]
}
]
}
Expand Down
4 changes: 4 additions & 0 deletions configuration/globalproperties/gp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
<property>registrationcore.preciseSimilarPatientSearchAlgorithm</property>
<value>imbemr.RwandaPrecisePatientSearchAlgorithm</value>
</globalProperty>
<globalProperty>
<property>registrationcore.mpi.implementation</property>
<value></value>
</globalProperty>

<!-- HFE -->
<globalProperty>
Expand Down
7 changes: 7 additions & 0 deletions configuration/globalresources/styles/global.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
header {
background-color:#00473f;
}
.login-header-image {
padding: 8px;
}
body {
max-width: unset !important;
width: 1500px;
Expand Down Expand Up @@ -47,4 +50,8 @@ label {
background: #5b57a6;
color: white;
font-weight: bold;
}

#national-ids-questions > h3 {
font-weight: bold;
}
22 changes: 20 additions & 2 deletions configuration/messageproperties/messages_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,12 @@ adminui.concepts.label=Concepts
authentication.2fa.enableMessage=Please enable two-factor authentication for enhanced account security
coreapps.patientdashboard.activeDrugOrders=REGIMENS

imbemr.login.chooseLocation.title=Choose login location
imbemr.login.chooseVisitLocation.title=Choose your facility
imbemr.login.chooseLoginLocation.title=Choose the location at which you are providing services
imbemr.login.warning.invalidLoginLocations=Location tags are not properly configured in this system, click here to complete the necessary setup
imbemr.admin.configureLoginLocations=Configure Login Locations

imbemr.all=All
imbemr.encounterList=List of Encounters
imbemr.encounterList.encounterType=Encounter Type
Expand Down Expand Up @@ -427,8 +433,18 @@ imbemr.registration.religion.legend=Religion
imbemr.registration.religion.label=Religion
imbemr.registration.healthCenter.legend=Health Facility
imbemr.registration.healthCenter.label=Health Facility
imbemr.registration.nationalId.legend=National ID
imbemr.registration.nationalId.label=National ID

imbemr.registration.nationalIds.legend=National Identifiers
imbemr.identifer.nationalId.label=National ID
imbemr.identifer.applicationNumber.label=NID Application Number
imbemr.identifer.upid.label=UPID
imbemr.identifer.nin.label=NIN
imbemr.identifer.passportNumber.label=Passport Number
imbemr.clientRegistry.search=Search National Registry
imbemr.clientRegistry.matchFound=Patient Match Found
imbemr.clientRegistry.noMatchFound=No Match Found
imbemr.clientRegistry.import=Import Patient Details
imbemr.clientRegistry.close=Close

imbemr.startVisit=Start Patient Visit
imbemr.startVisit.retrospective=Enter Past Visit
Expand Down Expand Up @@ -473,3 +489,5 @@ imbemr.patientName=Patient Name
imbemr.expired=Expired

imbemr.todaysRegistration=Today's registration

ui.i18n.PatientIdentifierType.name.4e458867-9a68-4e55-9fe0-fb49fac4e6b0=Primary Care ID
4 changes: 4 additions & 0 deletions configuration/patientidentifiertypes/identifierTypes.csv
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
Uuid,Name,Description,Required,Format,Format description,Validator,Location behavior,Uniqueness behavior,Void/Retire
ed52ec82-4b7c-411b-804a-13bd9651bb3e,Rwanda National ID,National ID card with photo distributed to all Rwandan adults by the Rwandan Government from 2008,false,[0-9]{16},16 numbers found on the ID card,,NOT_USED,,
01edaedd-956a-11ef-93fa-0242ac120002,UPID,UPID,false,,,,NOT_USED,,
0c69d739-956a-11ef-93fa-0242ac120002,NIN,NIN,false,,,,NOT_USED,,
0f7d2e40-956a-11ef-93fa-0242ac120002,NID Application Number,National ID Application Number,false,,,,NOT_USED,,
12a72978-956a-11ef-93fa-0242ac120002,Passport Number,Passport Number,false,,,,NOT_USED,,
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<adminuiVersion>1.7.0-SNAPSHOT</adminuiVersion>
<allergyuiVersion>1.8.6-SNAPSHOT</allergyuiVersion>
<appframeworkVersion>2.18.0-SNAPSHOT</appframeworkVersion>
<appuiVersion>1.17.0</appuiVersion>
<appuiVersion>1.18.0-SNAPSHOT</appuiVersion>
<attachmentsVersion>2.8.0</attachmentsVersion>
<authenticationVersion>1.1.0-SNAPSHOT</authenticationVersion>
<authenticationuiVersion>1.1.0-SNAPSHOT</authenticationuiVersion>
Expand Down
Loading