Skip to content
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
1,061 changes: 400 additions & 661 deletions LICENSE

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Copyright (C) 2013 OpenMRS, Inc
# NOTICE

This product includes software developed under the stewardship of the Bahmni Coalition, under fiscal sponsorship of OpenMRS, Inc. (http://www.openmrs.org/)
## Implementer Interface

This product includes software developed at ThoughtWorks, Inc. (http://www.thoughtworks.com/)
Copyright © 2026 OpenMRS Inc

### Contributors

This repository has got source code generated at Thoughtworks.
9 changes: 9 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

var webpackCfg = require('./webpack.test.config');

module.exports = function (config) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "implementer-interface",
"version": "1.2.0",
"description": "App for implementer interfaces like form builder, reports, etc.",
"license": "GPL-2.0",
"license": "MPL-2.0",
"main": "index.js",
"engines": {
"yarn": ">=1.22.0",
Expand Down
7 changes: 7 additions & 0 deletions package/scripts/postinstall.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at https://www.bahmni.org/license/mplv2hd.
#
# Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
# graphic logo is a trademark of OpenMRS Inc.

#!/bin/bash

if [ -f /etc/bahmni-installer/bahmni.conf ]; then
Expand Down
7 changes: 7 additions & 0 deletions package/scripts/preinstall.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at https://www.bahmni.org/license/mplv2hd.
#
# Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
# graphic logo is a trademark of OpenMRS Inc.

#!/bin/bash

rm -rf /opt/bahmni-implementer-interface/
Expand Down
7 changes: 7 additions & 0 deletions package/scripts/preuninstall.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at https://www.bahmni.org/license/mplv2hd.
#
# Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
# graphic logo is a trademark of OpenMRS Inc.

#!/bin/bash
if [ $1 -eq 0 ]; then
rm -rf /var/www/implementer_interface
Expand Down
7 changes: 7 additions & 0 deletions scripts/vagrant-link.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at https://www.bahmni.org/license/mplv2hd.
#
# Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
# graphic logo is a trademark of OpenMRS Inc.

#!/bin/sh -x -e

PATH_OF_CURRENT_SCRIPT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Expand Down
7 changes: 7 additions & 0 deletions scripts/vagrant_functions.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at https://www.bahmni.org/license/mplv2hd.
#
# Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
# graphic logo is a trademark of OpenMRS Inc.

#!/bin/bash

TEMP_SCRIPT_DIR=`dirname -- "$0"`
Expand Down
9 changes: 9 additions & 0 deletions src/common/App.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React from 'react';
import PropTypes from 'prop-types';
const App = ({ children }) => <div id="container">{children}</div>;
Expand Down
9 changes: 9 additions & 0 deletions src/common/Dashboard.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React from 'react';
import { Link } from 'react-router-dom';
import FormBuilderHeader from 'form-builder/components/FormBuilderHeader.jsx';
Expand Down
9 changes: 9 additions & 0 deletions src/common/Notification.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React from 'react';
import PropTypes from 'prop-types';

Expand Down
9 changes: 9 additions & 0 deletions src/common/Spinner.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React from 'react';
import PropTypes from 'prop-types';

Expand Down
9 changes: 9 additions & 0 deletions src/common/apis/formPrivilegesApi.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import { httpInterceptor } from 'common/utils/httpInterceptor';
import { formBuilderConstants } from 'form-builder/constants';
import { UrlHelper } from 'form-builder/helpers/UrlHelper';
Expand Down
9 changes: 9 additions & 0 deletions src/common/apis/formTranslationApi.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import { httpInterceptor } from 'common/utils/httpInterceptor';
import { formBuilderConstants } from 'form-builder/constants';
import { UrlHelper } from 'form-builder/helpers/UrlHelper';
Expand Down
9 changes: 9 additions & 0 deletions src/common/constants.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

const noOfFormsExportLimit = 20;
export const commonConstants = {
responseType: {
Expand Down
9 changes: 9 additions & 0 deletions src/common/reducers/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import { combineReducers } from 'redux';
import formBuilder from 'form-builder/reducers';

Expand Down
9 changes: 9 additions & 0 deletions src/common/utils/dateUtils.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import moment from 'moment';

export const dateUtils = {
Expand Down
9 changes: 9 additions & 0 deletions src/common/utils/encodingUtils.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

export function utf8ToBase64(str) {
if (str === undefined || str === null || str === '') {
return '';
Expand All @@ -22,7 +31,7 @@
const decoder = new TextDecoder();
return decoder.decode(bytes);
} catch (e) {
console.error('Error decoding base64 string:', e);

Check warning on line 34 in src/common/utils/encodingUtils.js

View workflow job for this annotation

GitHub Actions / Build & Package

Unexpected console statement
return '';
}
}
9 changes: 9 additions & 0 deletions src/common/utils/httpInterceptor.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import 'whatwg-fetch';

export const httpInterceptor = {
Expand Down
9 changes: 9 additions & 0 deletions src/form-builder/actions/control.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

export const selectControl = (metadata, isConceptMapEvent) => ({ type: 'SELECT_CONTROL', metadata,
isConceptMapEvent });

Expand Down Expand Up @@ -43,4 +52,4 @@

export const deleteControl = (controlIds) => ({ type: 'DELETE_CONTROL', controlIds });

export const formDefVersionUpdate = (version) => ({ type: 'FORM_DEFINITION_VERSION_UPDATE', version });

Check warning on line 55 in src/form-builder/actions/control.js

View workflow job for this annotation

GitHub Actions / Build & Package

Line 55 exceeds the maximum line length of 100
9 changes: 9 additions & 0 deletions src/form-builder/components/Canvas.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React, { Component } from 'react';
import PropTypes from 'prop-types';
import each from 'lodash/each';
Expand Down
9 changes: 9 additions & 0 deletions src/form-builder/components/ControlPool.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { DescriptorParser as Descriptor } from 'form-builder/helpers/descriptorParser';
Expand Down
9 changes: 9 additions & 0 deletions src/form-builder/components/ControlPoolElement.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React from 'react';
import PropTypes from 'prop-types';
import { Draggable } from 'bahmni-form-controls';
Expand Down
9 changes: 9 additions & 0 deletions src/form-builder/components/ControlPropertiesContainer.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { AutoComplete } from 'bahmni-form-controls';
Expand Down
9 changes: 9 additions & 0 deletions src/form-builder/components/ControlReduxWrapper.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
Expand Down
9 changes: 9 additions & 0 deletions src/form-builder/components/CreateFormModal.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
Expand Down
9 changes: 9 additions & 0 deletions src/form-builder/components/DeleteControlModal.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React, { Component } from 'react';
import PropTypes from 'prop-types';

Expand Down
9 changes: 9 additions & 0 deletions src/form-builder/components/DraggableComponent.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import { Component } from 'react';

export class DraggableComponent extends Component {
Expand Down
9 changes: 9 additions & 0 deletions src/form-builder/components/EditModal.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React, { Component } from 'react';
import PropTypes from 'prop-types';

Expand Down
9 changes: 9 additions & 0 deletions src/form-builder/components/FormBuilder.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React, { Component } from 'react';
import PropTypes from 'prop-types';
import FormList from 'form-builder/components/FormList.jsx';
Expand Down
9 changes: 9 additions & 0 deletions src/form-builder/components/FormBuilderBreadcrumbs.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at https://www.bahmni.org/license/mplv2hd.
*
* Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
* graphic logo is a trademark of OpenMRS Inc.
*/

import React from 'react';
import PropTypes from 'prop-types';
import { NavLink } from 'react-router-dom';
Expand Down
Loading