|
@@ -134,15 +134,16 @@ const moduleConfig = (config,modules) => {
|
|
|
let activeModule = []
|
|
|
for(let i = 0;i < config.length;i++){
|
|
|
let tmpCode = config[i].code
|
|
|
+ let tmpVal = config[i].value
|
|
|
for(let j = 0;j < modules.length;j++){
|
|
|
let tmpType = modules[j].type
|
|
|
- if(tmpCode=="symptoms_show"&&tmpType==moduleCP['symp']){
|
|
|
+ if(tmpCode=="symptoms_show"&&tmpType==moduleCP['symp']&&tmpVal==1){
|
|
|
activeModule.push(modules[j])
|
|
|
- }else if(tmpCode=="diagnosis_show"&&tmpType==moduleCP['diagT']){
|
|
|
+ }else if(tmpCode=="diagnosis_show"&&tmpType==moduleCP['diagT']&&tmpVal==1){
|
|
|
activeModule.push(modules[j])
|
|
|
- }else if(tmpCode=="omhistory_show"&&tmpType==moduleCP['other']){
|
|
|
+ }else if(tmpCode=="omhistory_show"&&tmpType==moduleCP['other']&&tmpVal==1){
|
|
|
activeModule.push(modules[j])
|
|
|
- }else if(tmpCode=="replenish_show"&&tmpType==moduleCP['suplement']){
|
|
|
+ }else if(tmpCode=="replenish_show"&&tmpType==moduleCP['suplement']&&tmpVal==1){
|
|
|
activeModule.push(modules[j])
|
|
|
}
|
|
|
}
|