Skip to content

Commit

Permalink
Refactor. Update publishable artifacts names
Browse files Browse the repository at this point in the history
  • Loading branch information
mohan-13 committed May 30, 2024
1 parent d1bf749 commit 54bbd16
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 78 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
file: package/docker/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: bahmni/default-config:${{env.ARTIFACT_VERSION}},bahmni/default-config:latest
tags: bahmni/standard-config:${{env.ARTIFACT_VERSION}},bahmni/standard-config:latest
- name: Push Translations to Transifex
run: |
curl -o transifex.sh https://raw.githubusercontent.com/Bahmni/bahmni-infra-utils/main/transifex.sh
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
persist-credentials: false

- name: Copy Helm Archive
run: mkdir -p helm-charts/default-config/ && cp default-config-${{ env.ARTIFACT_VERSION }}.tgz helm-charts/default-config/
run: mkdir -p helm-charts/standard-config/ && cp standard-config-${{ env.ARTIFACT_VERSION }}.tgz helm-charts/standard-config/

- name: Helm Index
working-directory: helm-charts/
Expand Down
79 changes: 6 additions & 73 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,18 @@
## Default Bahmni configuration and data.
## Default Bahmni configuration and data for Bahmni Standard
======================================================================

#### Deploy
- under server (apache) www directory
- alias root (default-config) to bahmni_config
This repository holds the Bahmni Configurations for Bahmni Standard with CIEL dictionary for metadata.

This repo has been forked from Bahmni/default-config and CIEL metadata is added on top of it.

#### 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](https://ci-bahmni.thoughtworks.com/go/files/Bahmni_MRS_Master/Latest/BuildStage/Latest/FunctionalTests/deployables/)


```
Replace the {Build_Number} variable in the link:
https://ci-bahmni.thoughtworks.com/go/files/Bahmni_MRS_Master/{Build_Number}/BuildStage/Latest/FunctionalTests/deployables/
```
Refer Bahmni Wiki for detailed explanation of each configuration: https://bahmni.atlassian.net/wiki/spaces/BAH/pages/2392073/Implementer+s+Guide

## Docker Image Build
The docker image bahmni/default-config is generated using Github Actions.
The docker image bahmni/standard-config is generated using Github Actions.

In order to build the image in local you can run the following command
```shell
docker build -t bahmni/default-config -f package/docker/Dockerfile .
docker build -t bahmni/standard-config -f package/docker/Dockerfile .
```

To dockerise your implementation specific config repository, follow the steps below:
Expand All @@ -37,54 +21,3 @@ To dockerise your implementation specific config repository, follow the steps be
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)

```javascript

"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)
}
}
}
}

```
2) Registration app.json: example - (Details in comments)

```javascript

"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
}

```
4 changes: 2 additions & 2 deletions package/helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
name: default-config
description: Helm chart for default-config of Bahmni
name: standard-config
description: Helm chart for standard-config of Bahmni
type: application
version: 1.0.0
2 changes: 1 addition & 1 deletion package/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ metadata:

image:
repository: bahmni
name: default-config
name: standard-config
tag: latest

volumes:
Expand Down

0 comments on commit 54bbd16

Please sign in to comment.