Skip to content

Commit

Permalink
fixed conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
gabordikan committed Aug 7, 2024
2 parents 01ec49f + 64728c6 commit 8db946e
Show file tree
Hide file tree
Showing 11 changed files with 134 additions and 61 deletions.
25 changes: 7 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ OpenEyes™ is the leading open source Electronic Patient Record (EPR) for ophth
- [Description](#Description)
- [Disclaimer](#Disclaimer)
- [Quick Start](#Quick-Start)
- [Setup](#Setup)
- [Issues and support](#issues-and-support)
- [Resources](#Resources)
- [Contributing](#Contributing)
Expand All @@ -36,33 +37,21 @@ OpenEyes is provided under an GNU Affero GPL v3.0 (AGPL v3.0) license and all

# Setup
---------
1. These instructions are for an Ubuntu 18.04 machine, although it may work for 16.04, 20.04 and Ubuntu variants but it was built and tested for Ubuntu 18.04. So step one is to build an Ubuntu 18.04 machine, and perform software updates as required sudo apt-get update
2. Install Git sudo apt-get install git
3. Clone the openeyes repo:
- a. `cd /var`
- b. `sudo mkdir www`
- c. `cd www`
- d. `sudo git clone https://github.com/AppertaFoundation/openeyes.git`
4. Run `sudo bash /var/www/openeyes/protected/scripts/install-system.sh`
- (this installs and configures the necessary services, such as the Apache webserver)
5. When that completes successfully, restart the Apache service using `sudo systemctl restart apache2`
6. Run `sudo bash /var/www/openeyes/protected/scripts/install-oe.sh`
- (this installs OpenEyes itself. You will need to select option 1 to accept the terms and conditions, and then slightly later, say that Yes you want to run Composer as superuser in spite of the warning).

Assuming those scripts run successfully (you should get a message confirming successful installation or otherwise), you can then open your browser on the Ubuntu machine and navigate to localhost. The OpenEyes login screen will appear, and you can login with credentials username `admin` and password `admin`.

Detailed installation instructions to build each version can be found on the project wiki page [here](https://github.com/AppertaFoundation/openeyes/wiki/Installation-Instructions-v4.0.3).

# Issues and support

Issues in the core should be logged through the [github issues system](https://github.com/AppertaFoundation/openeyes/issues/new).

Please be aware that no service level agreement exists for the open source project and no support can be given via github. The team will do their best to fix any critical issues reported, but no guarantees are given.

For official implementation and support, with Service Level Agreements on resolution times, please contact our commercial partner Toukan Labs at <[email protected]>
Official implementation and support is available from our Accredited Professional Services Partner Network. A list of available partners can be found at the following link [openeyes.apperta.org](openeyes.apperta.org).

# Resources
---------

This is the main repository for development of the core OpenEyes framework. Event type modules are being developed in other repositories both by ourselves and third party developers. You may also be interested in our [EyeDraw repository](https://github.com/appertafoundation/EyeDraw) - this code is used by OpenEyes but may also be used independently.
This is the main repository for development of the core OpenEyes framework. Event type modules are being developed in other repositories both by ourselves and Accredited Contributors. You may also be interested in our [EyeDraw repository](https://github.com/appertafoundation/EyeDraw); this code is used by OpenEyes but may also be used independently.

The principal source of information on OpenEyes is [the OpenEyes website](http://openeyes.apperta.org)

Expand All @@ -81,6 +70,6 @@ OpenEyes follows the [gitflow](http://nvie.com/posts/a-successful-git-branching-

-----------------------------------
# Copyright and license
- Code and documentation copyright 2019–2021 the [Apperta Foundation](https://apperta.org/)
- Code and documentation copyright 2019–2024 the [Apperta Foundation](https://apperta.org/)
- Code released under the [GNU Affero General Public License v3.0](https://github.com/AppertaFoundation/openeyes/blob/master/LICENSE)
- Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).
- Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).
Binary file added protected/assets/img/logo/apperta-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions protected/assets/img/logo/dpga_logo_2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions protected/assets/img/logo/logo-dha.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added protected/assets/img/logo/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added protected/assets/img/logo/oe-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 12 additions & 2 deletions protected/commands/ImportDrugsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public function getHelp()

private function _getImportDir()
{
return getenv('DMD_EXTRACT_FOLDER') ?? Yii::getPathOfAlias('application') . '/data/dmd_data';
return getenv('DMD_EXTRACT_FOLDER') ?: Yii::getPathOfAlias('application') . '/data/dmd_data';
}

public function getParams($params)
Expand Down Expand Up @@ -473,6 +473,10 @@ public function createInsertSqlCommands($xmlArray, $type, $tablesData)

$k = array_keys($rows);

if (!isset($k[0])) {
continue;
}

if ($k[0] == '0') {
$subsubnode = $rows;
} else {
Expand All @@ -482,7 +486,13 @@ public function createInsertSqlCommands($xmlArray, $type, $tablesData)
$multipleValues = '';
$multipleValuesMaxCount = 100;
$multipleValuesCurrentCount = 0;
$rowCount = sizeof($subsubnode);


if (is_null($subsubnode)) {
continue;
}

$rowCount = count($subsubnode);
foreach ($subsubnode as $rowIndex => $oneRow) {
if ($limit <= $i++ && $limit != 0) {
break;
Expand Down
1 change: 1 addition & 0 deletions protected/config/core/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,7 @@
/** END SINGLE SIGN-ON PARAMS */
'breakglass_enabled' => $breakGlassEnabled,
'user_breakglass_field' => $userBreakGlassField,
'enable_default_support_text' => true,
),
);

Expand Down
Loading

0 comments on commit 8db946e

Please sign in to comment.