001/*-
002 * #%L
003 * Smile CDR - CDR
004 * %%
005 * Copyright (C) 2016 - 2026 Smile CDR, Inc.
006 * %%
007 * All rights reserved.
008 * #L%
009 */
010package ca.cdr.api.model.json;
011
012import ca.uhn.fhir.model.api.IModelJson;
013import com.fasterxml.jackson.annotation.JsonProperty;
014
015import java.util.ArrayList;
016import java.util.List;
017
018public class MdmAlgorithmsListJson implements IModelJson {
019
020        /**
021         * A list of MatchType algorithms for MDM.
022         */
023        @JsonProperty("matchTypeAlgorithms")
024        private List<MdmAlgorithmJson> myMatchTypeAlgorithms;
025
026        /**
027         * A list of SimilarityType algorithms for MDM.
028         */
029        @JsonProperty("similarityTypeAlgorithms")
030        private List<MdmAlgorithmJson> mySimilarityAlgorithms;
031
032        public MdmAlgorithmsListJson() {
033                // empty constructor for serialization
034        }
035
036        public List<MdmAlgorithmJson> getMatchTypeAlgorithms() {
037                if (myMatchTypeAlgorithms == null) {
038                        myMatchTypeAlgorithms = new ArrayList<>();
039                }
040                return myMatchTypeAlgorithms;
041        }
042
043        public void setMatchTypeAlgorithms(List<MdmAlgorithmJson> theMatchTypeAlgorithms) {
044                myMatchTypeAlgorithms = theMatchTypeAlgorithms;
045        }
046
047        public List<MdmAlgorithmJson> getSimilarityAlgorithms() {
048                if (mySimilarityAlgorithms == null) {
049                        mySimilarityAlgorithms = new ArrayList<>();
050                }
051                return mySimilarityAlgorithms;
052        }
053
054        public void setSimilarityAlgorithms(List<MdmAlgorithmJson> theSimilarityAlgorithms) {
055                mySimilarityAlgorithms = theSimilarityAlgorithms;
056        }
057}