// Merge - Merge two arrays of Diseases
// Support "or" and "and" logic operator
Merge two arrays of Diseases
Support "or" and "and" logic operator
// Merge - Merge two arrays of Diseases // Support " or " and " and " logic operator
func Merge(list1 []*Disease, list2 []*Disease, operator string) []*Disease {
	switch operator {
	case "and":
		return andMerge(list1, list2)
	case "or":
		return orMerge(list1, list2)
	default:
		fmt.Println("Operator <" + operator + "> not suported for merging")
		return nil
	}
}
func Merge ( list1 [ ] * Disease , list2 [ ] * Disease , operator string ) [ ] * Disease { switch operator { case " " : return andMerge ( list1 , list2 ) case " " : return orMerge ( list1 , list2 ) default : fmt . Println ( " " + operator + " " ) return nil } }
Merge two arrays of Diseases
Support "or" and "and" logic operator
Merge two arrays of Diseases Support " or " and " and " logic operator