Skip to content

Commit

Permalink
TLC-182: Modified distro to be Bahmni/w Ozone
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruhanga committed Feb 13, 2025
1 parent 9fad2b9 commit 21ebfe9
Show file tree
Hide file tree
Showing 189 changed files with 2,562 additions and 2,198 deletions.
20 changes: 20 additions & 0 deletions assembly.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2
http://maven.apache.org/xsd/assembly-1.1.2.xsd"
>
<id>zip-distro-dir</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<outputDirectory>.</outputDirectory>
<directory>${project.build.directory}/${project.artifactId}-${project.version}</directory>
</fileSet>
</fileSets>
</assembly>
120 changes: 0 additions & 120 deletions configs/bahmni/frontend/openmrs/apps/clinical/medication.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
Bahmni.ConceptSet.FormConditions.rules = {
'Cambodia_Head Circumference' : function (formName, formFieldValues, patient) {
var patientAge = patient['age'];

if (patientAge < 5) {
return {
show: ["Cambodia_Head Circumference"]
};
} else {
return {
hide: ["Cambodia_Head Circumference"]
};
}
},
'Cambodia_Past Medical History' : function (formName, formFieldValues) {
var fieldValue = formFieldValues['Cambodia_Past Medical History'];
var sections = {
Expand Down Expand Up @@ -296,21 +283,5 @@ Bahmni.ConceptSet.FormConditions.rules = {
hide: ["Cambodia_Tetanus5, Date Given"]
};
}
},
'Cambodia_Genitourinary Female Symptoms' : function (formName, formFieldValues, patient) {
var fieldValue = formFieldValues['Cambodia_Genitourinary Female Symptoms'];
var patientGender = patient['gender'];
var sections = {
"show": [],
"hide": []
};
if (patientGender == 'M') {
sections.hide.push("Cambodia_Genitourinary Female Symptoms");
sections.hide.push("Cambodia_Genitourinary Female Exam Abnormalities");
} else if (patientGender == 'F') {
sections.hide.push("Cambodia_Genitourinary Male Symptoms");
sections.hide.push("Cambodia_Genitourinary Male Exam Abnormalities");
}
return sections;
}
};
Loading

0 comments on commit 21ebfe9

Please sign in to comment.