Coder Social home page Coder Social logo

default-config's Introduction

Default Bahmni configuration and data.

======================================================================

Deploy

  • under server (apache) www directory
  • alias root (default-config) to bahmni_config

Dev commands

  • ./scripts/vagrant-link.sh to link default_config to vagrants /var/www/bahmni_config
  • ./scripts/vagrant-database.sh to run liquibase migrations in vagrant

CI Deployment

The default-config.zip is created on the CI Server as part of the Bahmni_MRS_Master pipeline (FunctionalTests job). You can download the latest ZIP from this URL:

Latest Builds: Download Link

Replace the {Build_Number} variable in the link:

https://ci-bahmni.thoughtworks.com/go/files/Bahmni_MRS_Master/{Build_Number}/BuildStage/Latest/FunctionalTests/deployables/

Docker Image Build

The docker image bahmni/default-config is generated using Github Actions.

In order to build the image in local you can run the following command

docker build -t bahmni/default-config -f package/docker/Dockerfile .

To dockerise your implementation specific config repository, follow the steps below:

  1. Copy the package/docker directory to your repository
  2. Add/ remove COPY statements in Dockerfile based on the needs.
  3. Run the following command after updating image repository and image name.

    docker build -t {repository}/{image-name} -f package/docker/Dockerfile .

  4. Also you can add Github Actions from .github/workflows directory.

Configurations

  1. Clinical app.json: example - (Details in comments)
 "config" : {
    "otherInvestigationsMap": {
        "Radiology": "Radiology Order",
        "Endoscopy": "Endoscopy Order"
    },
    "conceptSetUI": {   // all configs for conceptSet added here
        "XCodedConcept": {  // name of the concept
            "autocomplete": true,  // if set to true, it will show autocomplete instead of dropdown for coded concept answers.
            "showAbnormalIndicator": true   //If set to true, will show a checkbox for capturing abnormal observation.
        },
        "Text Complaints": {    //name of the concept
            "freeTextAutocomplete": {   //if present, will show a textbox, with autocomplete for concept name.
                "conceptSetName": "VITALS_CONCEPT",  // autocomplete will search for concepts which are membersOf this conceptSet (Optional)
                "codedConceptName": "Complaints"     // autocomplete will search for concepts which are answersTo this codedConcept (Optional)
            }
        }
    }
}
  1. Registration app.json: example - (Details in comments)
"config" : {
  "autoCompleteFields":["familyName", "caste"],
  "defaultIdentifierPrefix": "GAN",
  "searchByIdForwardUrl": "/patient/{{patientUuid}}?visitType=OPD - RETURNING",
  "conceptSetUI": {
      "temparature": {
          "showAbnormalIndicator": true
      }
  },
  "registrationConceptSet":"",
  "showMiddleName": false,
  "hideFields": ["Height", "Weight", "BMI", "BMI_Status"],  //the fields on screen which should NOT be shown
  "registrationCardPrintLayout": "/bahmni_config/openmrs/apps/registration/registrationCardLayout/print.html",
  "localNameSearch": true,                       // registration search displays parameter for search by local name
  "localNameLabel": "मरीज़ का नाम",                // label to be diplyed for local name search input
  "localNamePlaceholder": "मरीज़ का नाम",          // placeholder to be diplyed for local name search input
  "localNameAttributes": ["givenNameLocal", "familyNameLocal"]  //patient attributes to be search against for local name search
}

default-config's People

Contributors

abishek91 avatar aj-jaswanth avatar angshu avatar binduak avatar buvaneswari-arun avatar charleskimpolo avatar endeepak avatar hanisha93 avatar hemantheverest avatar kravi15 avatar limitless-horizon avatar lipikadugar avatar maheshvadla2304 avatar padmavati avatar petmongrels avatar pramidatumma avatar preethi29 avatar preethisadagopan avatar pushpadumpala avatar rahu1ramesh avatar shashikanthgadgay avatar sidtharthanan avatar su-docker avatar sumanmaity112 avatar sushmav avatar swathivarkala avatar swatigogia2020 avatar umair-fayaz avatar vikashgupta2000 avatar vinkesh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

default-config's Issues

The metadata.json file for the box 'bahmni-team/bahmni' was not found

currently, I am working on bahmni customization. I installed bahmni on my pc of windows 11 OS. first it worked but changes made from default config doesn’t sync to UI. so I uninstalled and reinstalled every of the required files. and I am stuck. vagrant up keeps bringing errors. It says : The “metadata.json” file for the box ‘bahmni-team/bahmni’ was not found. Boxes require this file in order for Vagrant to determine the provider it was made for. If you made the box, please add a “metadata.json” file to it. If someone else made the box, please notify the box creator that the box is corrupt. Documentation for box file format can be found at the URL below https://developer.hashicorp.com/vagrant/docs/boxes/format

I need help.

Problem in installing bahmni for production on ubuntu 14.04

I am trying to install bahmni for development on my ubuntu 14.04 server. I am following instruction for installation which are mentioned on that page https://bahmni.atlassian.net/wiki/display/BAH/Bahmni+Using+Docker, and following instruction under that heading "Configuring Bahmni For Development". I did these steps

step 1: I created a directory named "bahmni-code-dev"
step 2: I clone these repositiories in "bahmni-code-dev" directory

'default-config - https://github.com/Bhamni/default-config.git
openmrs-distro-bahmni - https://github.com/Bhamni/openmrs-distro-bahmni
openmrs-module-bahmniapps - https://github.com/Bhamni/openmrs-module-bahmniapps'

Step 3: I build the project by that command "mvn clean install"
step 4: id did "cd openmrs-module-bahmniapps/ui"
step 5: then i did

'npm install -g bower
npm install -g grunt-cli
gem install compass'

step 6: i did "npm install"
step 7: then i did "bower install"
step 8: then i did "grunt", (grunt shows success message at the end)

Now i am not clear with points which are mentioned under heading "Building bahmni-core". Is it really necessary to build "bahmni-core" for developement.

Please guide me how can i change ports and where to locate files for that

Thank you

Reports default SQL location needs to be updated.

When running with default config, the bahmni-reports container loads up the config (including SQL reports) under /etc instead of /var/www

As such the sqlPath for those reports that use it in the openmrs/apps/reports/reports.json should probably be updated to start with /etc instead of /var/www.

Let me know if this is already fixed, and I'm just using the wrong branch.

In case anyone else runs into this error, this is what I got when trying to run the 'Generic Laboratory Services' report:
I encountered a "500 Internal Server Error" in my browser, and the following StackTrace in my docker logs

bahmni-standard-reports-1                | java.lang.NullPointerException
bahmni-standard-reports-1                | 	at org.antlr.runtime.ANTLRStringStream.<init>(ANTLRStringStream.java:75)
bahmni-standard-reports-1                | 	at org.stringtemplate.v4.compiler.Compiler.compile(Compiler.java:111)
bahmni-standard-reports-1                | 	at org.stringtemplate.v4.STGroup.compile(STGroup.java:427)
bahmni-standard-reports-1                | 	at org.stringtemplate.v4.ST.<init>(ST.java:142)
bahmni-standard-reports-1                | 	at org.stringtemplate.v4.ST.<init>(ST.java:136)
bahmni-standard-reports-1                | 	at org.bahmni.reports.template.SqlReportTemplate.getSqlString(SqlReportTemplate.java:57)
bahmni-standard-reports-1                | 	at org.bahmni.reports.template.SqlReportTemplate.build(SqlReportTemplate.java:32)
bahmni-standard-reports-1                | 	at org.bahmni.reports.util.BahmniReportUtil.build(BahmniReportUtil.java:33)
bahmni-standard-reports-1                | 	at org.bahmni.reports.web.ReportGenerator.invoke(ReportGenerator.java:60)
bahmni-standard-reports-1                | 	at org.bahmni.reports.web.MainReportController.getReport(MainReportController.java:68)

until I updated the location of the file manually in the reports.json file to be /etc/bahmni_config/openmrs/apps/reports/sql/testCount.sql.

Let me know if there's any other info you need, or if I should try and fork and do a pull request if that would be most helpful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.