001/*- 002 * #%L 003 * HAPI FHIR - Master Data Management 004 * %% 005 * Copyright (C) 2014 - 2024 Smile CDR, Inc. 006 * %% 007 * Licensed under the Apache License, Version 2.0 (the "License"); 008 * you may not use this file except in compliance with the License. 009 * You may obtain a copy of the License at 010 * 011 * http://www.apache.org/licenses/LICENSE-2.0 012 * 013 * Unless required by applicable law or agreed to in writing, software 014 * distributed under the License is distributed on an "AS IS" BASIS, 015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 016 * See the License for the specific language governing permissions and 017 * limitations under the License. 018 * #L% 019 */ 020package ca.uhn.fhir.mdm.rules.json; 021 022import ca.uhn.fhir.mdm.rules.matcher.models.MatchTypeEnum; 023import ca.uhn.fhir.model.api.IModelJson; 024import com.fasterxml.jackson.annotation.JsonProperty; 025 026public class MdmMatcherJson implements IModelJson { 027 @JsonProperty(value = "algorithm", required = true) 028 MatchTypeEnum myAlgorithm; 029 030 @JsonProperty(value = "identifierSystem", required = false) 031 String myIdentifierSystem; 032 033 /** 034 * For String value types, should the values be normalized (case, accents) before they are compared 035 */ 036 @JsonProperty(value = "exact") 037 boolean myExact; 038 039 public MatchTypeEnum getAlgorithm() { 040 return myAlgorithm; 041 } 042 043 public MdmMatcherJson setAlgorithm(MatchTypeEnum theAlgorithm) { 044 myAlgorithm = theAlgorithm; 045 return this; 046 } 047 048 public String getIdentifierSystem() { 049 return myIdentifierSystem; 050 } 051 052 public MdmMatcherJson setIdentifierSystem(String theIdentifierSystem) { 053 myIdentifierSystem = theIdentifierSystem; 054 return this; 055 } 056 057 public boolean getExact() { 058 return myExact; 059 } 060 061 public MdmMatcherJson setExact(boolean theExact) { 062 myExact = theExact; 063 return this; 064 } 065}