001package org.hl7.fhir.r5.model;
002
003
004/*
005 * #%L
006 * org.hl7.fhir.r5
007 * %%
008 * Copyright (C) 2014 - 2019 Health Level 7
009 * %%
010 * Licensed under the Apache License, Version 2.0 (the \"License\");
011 * you may not use this file except in compliance with the License.
012 * You may obtain a copy of the License at
013 * 
014 *      http://www.apache.org/licenses/LICENSE-2.0
015 * 
016 * Unless required by applicable law or agreed to in writing, software
017 * distributed under the License is distributed on an \"AS IS\" BASIS,
018 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
019 * See the License for the specific language governing permissions and
020 * limitations under the License.
021 * #L%
022 */
023
024/*
025  Copyright (c) 2011+, HL7, Inc.
026  All rights reserved.
027  
028  Redistribution and use in source and binary forms, with or without modification, \
029  are permitted provided that the following conditions are met:
030  
031   * Redistributions of source code must retain the above copyright notice, this \
032     list of conditions and the following disclaimer.
033   * Redistributions in binary form must reproduce the above copyright notice, \
034     this list of conditions and the following disclaimer in the documentation \
035     and/or other materials provided with the distribution.
036   * Neither the name of HL7 nor the names of its contributors may be used to 
037     endorse or promote products derived from this software without specific 
038     prior written permission.
039  
040  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND \
041  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \
042  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \
043  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \
044  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT \
045  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR \
046  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, \
047  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \
048  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE \
049  POSSIBILITY OF SUCH DAMAGE.
050  */
051
052// Generated on Tue, Dec 31, 2019 12:12+1100 for FHIR vcurrent
053
054import java.util.ArrayList;
055import java.util.Date;
056import java.util.List;
057import org.hl7.fhir.r5.model.Enumerations.*;
058import org.hl7.fhir.instance.model.api.IBaseDatatypeElement;
059import org.hl7.fhir.exceptions.FHIRException;
060import org.hl7.fhir.instance.model.api.ICompositeType;
061import ca.uhn.fhir.model.api.annotation.Child;
062import ca.uhn.fhir.model.api.annotation.ChildOrder;
063import ca.uhn.fhir.model.api.annotation.DatatypeDef;
064import ca.uhn.fhir.model.api.annotation.Description;
065import ca.uhn.fhir.model.api.annotation.Block;
066
067/**
068 * Base StructureDefinition for MarketingStatus Type: The marketing status describes the date when a medicinal product is actually put on the market or the date as of which it is no longer available.
069 */
070@DatatypeDef(name="MarketingStatus")
071public class MarketingStatus extends BackboneType implements ICompositeType {
072
073    /**
074     * The country in which the marketing authorisation has been granted shall be specified It should be specified using the ISO 3166 ‑ 1 alpha-2 code elements.
075     */
076    @Child(name = "country", type = {CodeableConcept.class}, order=0, min=1, max=1, modifier=false, summary=true)
077    @Description(shortDefinition="The country in which the marketing authorisation has been granted shall be specified It should be specified using the ISO 3166 ‑ 1 alpha-2 code elements", formalDefinition="The country in which the marketing authorisation has been granted shall be specified It should be specified using the ISO 3166 ‑ 1 alpha-2 code elements." )
078    protected CodeableConcept country;
079
080    /**
081     * Where a Medicines Regulatory Agency has granted a marketing authorisation for which specific provisions within a jurisdiction apply, the jurisdiction can be specified using an appropriate controlled terminology The controlled term and the controlled term identifier shall be specified.
082     */
083    @Child(name = "jurisdiction", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=true)
084    @Description(shortDefinition="Where a Medicines Regulatory Agency has granted a marketing authorisation for which specific provisions within a jurisdiction apply, the jurisdiction can be specified using an appropriate controlled terminology The controlled term and the controlled term identifier shall be specified", formalDefinition="Where a Medicines Regulatory Agency has granted a marketing authorisation for which specific provisions within a jurisdiction apply, the jurisdiction can be specified using an appropriate controlled terminology The controlled term and the controlled term identifier shall be specified." )
085    protected CodeableConcept jurisdiction;
086
087    /**
088     * This attribute provides information on the status of the marketing of the medicinal product See ISO/TS 20443 for more information and examples.
089     */
090    @Child(name = "status", type = {CodeableConcept.class}, order=2, min=1, max=1, modifier=false, summary=true)
091    @Description(shortDefinition="This attribute provides information on the status of the marketing of the medicinal product See ISO/TS 20443 for more information and examples", formalDefinition="This attribute provides information on the status of the marketing of the medicinal product See ISO/TS 20443 for more information and examples." )
092    protected CodeableConcept status;
093
094    /**
095     * The date when the Medicinal Product is placed on the market by the Marketing Authorisation Holder (or where applicable, the manufacturer/distributor) in a country and/or jurisdiction shall be provided A complete date consisting of day, month and year shall be specified using the ISO 8601 date format NOTE “Placed on the market” refers to the release of the Medicinal Product into the distribution chain.
096     */
097    @Child(name = "dateRange", type = {Period.class}, order=3, min=1, max=1, modifier=false, summary=true)
098    @Description(shortDefinition="The date when the Medicinal Product is placed on the market by the Marketing Authorisation Holder (or where applicable, the manufacturer/distributor) in a country and/or jurisdiction shall be provided A complete date consisting of day, month and year shall be specified using the ISO 8601 date format NOTE “Placed on the market” refers to the release of the Medicinal Product into the distribution chain", formalDefinition="The date when the Medicinal Product is placed on the market by the Marketing Authorisation Holder (or where applicable, the manufacturer/distributor) in a country and/or jurisdiction shall be provided A complete date consisting of day, month and year shall be specified using the ISO 8601 date format NOTE “Placed on the market” refers to the release of the Medicinal Product into the distribution chain." )
099    protected Period dateRange;
100
101    /**
102     * The date when the Medicinal Product is placed on the market by the Marketing Authorisation Holder (or where applicable, the manufacturer/distributor) in a country and/or jurisdiction shall be provided A complete date consisting of day, month and year shall be specified using the ISO 8601 date format NOTE “Placed on the market” refers to the release of the Medicinal Product into the distribution chain.
103     */
104    @Child(name = "restoreDate", type = {DateTimeType.class}, order=4, min=0, max=1, modifier=false, summary=true)
105    @Description(shortDefinition="The date when the Medicinal Product is placed on the market by the Marketing Authorisation Holder (or where applicable, the manufacturer/distributor) in a country and/or jurisdiction shall be provided A complete date consisting of day, month and year shall be specified using the ISO 8601 date format NOTE “Placed on the market” refers to the release of the Medicinal Product into the distribution chain", formalDefinition="The date when the Medicinal Product is placed on the market by the Marketing Authorisation Holder (or where applicable, the manufacturer/distributor) in a country and/or jurisdiction shall be provided A complete date consisting of day, month and year shall be specified using the ISO 8601 date format NOTE “Placed on the market” refers to the release of the Medicinal Product into the distribution chain." )
106    protected DateTimeType restoreDate;
107
108    private static final long serialVersionUID = -1445736863L;
109
110  /**
111   * Constructor
112   */
113    public MarketingStatus() {
114      super();
115    }
116
117  /**
118   * Constructor
119   */
120    public MarketingStatus(CodeableConcept country, CodeableConcept status, Period dateRange) {
121      super();
122      this.setCountry(country);
123      this.setStatus(status);
124      this.setDateRange(dateRange);
125    }
126
127    /**
128     * @return {@link #country} (The country in which the marketing authorisation has been granted shall be specified It should be specified using the ISO 3166 ‑ 1 alpha-2 code elements.)
129     */
130    public CodeableConcept getCountry() { 
131      if (this.country == null)
132        if (Configuration.errorOnAutoCreate())
133          throw new Error("Attempt to auto-create MarketingStatus.country");
134        else if (Configuration.doAutoCreate())
135          this.country = new CodeableConcept(); // cc
136      return this.country;
137    }
138
139    public boolean hasCountry() { 
140      return this.country != null && !this.country.isEmpty();
141    }
142
143    /**
144     * @param value {@link #country} (The country in which the marketing authorisation has been granted shall be specified It should be specified using the ISO 3166 ‑ 1 alpha-2 code elements.)
145     */
146    public MarketingStatus setCountry(CodeableConcept value) { 
147      this.country = value;
148      return this;
149    }
150
151    /**
152     * @return {@link #jurisdiction} (Where a Medicines Regulatory Agency has granted a marketing authorisation for which specific provisions within a jurisdiction apply, the jurisdiction can be specified using an appropriate controlled terminology The controlled term and the controlled term identifier shall be specified.)
153     */
154    public CodeableConcept getJurisdiction() { 
155      if (this.jurisdiction == null)
156        if (Configuration.errorOnAutoCreate())
157          throw new Error("Attempt to auto-create MarketingStatus.jurisdiction");
158        else if (Configuration.doAutoCreate())
159          this.jurisdiction = new CodeableConcept(); // cc
160      return this.jurisdiction;
161    }
162
163    public boolean hasJurisdiction() { 
164      return this.jurisdiction != null && !this.jurisdiction.isEmpty();
165    }
166
167    /**
168     * @param value {@link #jurisdiction} (Where a Medicines Regulatory Agency has granted a marketing authorisation for which specific provisions within a jurisdiction apply, the jurisdiction can be specified using an appropriate controlled terminology The controlled term and the controlled term identifier shall be specified.)
169     */
170    public MarketingStatus setJurisdiction(CodeableConcept value) { 
171      this.jurisdiction = value;
172      return this;
173    }
174
175    /**
176     * @return {@link #status} (This attribute provides information on the status of the marketing of the medicinal product See ISO/TS 20443 for more information and examples.)
177     */
178    public CodeableConcept getStatus() { 
179      if (this.status == null)
180        if (Configuration.errorOnAutoCreate())
181          throw new Error("Attempt to auto-create MarketingStatus.status");
182        else if (Configuration.doAutoCreate())
183          this.status = new CodeableConcept(); // cc
184      return this.status;
185    }
186
187    public boolean hasStatus() { 
188      return this.status != null && !this.status.isEmpty();
189    }
190
191    /**
192     * @param value {@link #status} (This attribute provides information on the status of the marketing of the medicinal product See ISO/TS 20443 for more information and examples.)
193     */
194    public MarketingStatus setStatus(CodeableConcept value) { 
195      this.status = value;
196      return this;
197    }
198
199    /**
200     * @return {@link #dateRange} (The date when the Medicinal Product is placed on the market by the Marketing Authorisation Holder (or where applicable, the manufacturer/distributor) in a country and/or jurisdiction shall be provided A complete date consisting of day, month and year shall be specified using the ISO 8601 date format NOTE “Placed on the market” refers to the release of the Medicinal Product into the distribution chain.)
201     */
202    public Period getDateRange() { 
203      if (this.dateRange == null)
204        if (Configuration.errorOnAutoCreate())
205          throw new Error("Attempt to auto-create MarketingStatus.dateRange");
206        else if (Configuration.doAutoCreate())
207          this.dateRange = new Period(); // cc
208      return this.dateRange;
209    }
210
211    public boolean hasDateRange() { 
212      return this.dateRange != null && !this.dateRange.isEmpty();
213    }
214
215    /**
216     * @param value {@link #dateRange} (The date when the Medicinal Product is placed on the market by the Marketing Authorisation Holder (or where applicable, the manufacturer/distributor) in a country and/or jurisdiction shall be provided A complete date consisting of day, month and year shall be specified using the ISO 8601 date format NOTE “Placed on the market” refers to the release of the Medicinal Product into the distribution chain.)
217     */
218    public MarketingStatus setDateRange(Period value) { 
219      this.dateRange = value;
220      return this;
221    }
222
223    /**
224     * @return {@link #restoreDate} (The date when the Medicinal Product is placed on the market by the Marketing Authorisation Holder (or where applicable, the manufacturer/distributor) in a country and/or jurisdiction shall be provided A complete date consisting of day, month and year shall be specified using the ISO 8601 date format NOTE “Placed on the market” refers to the release of the Medicinal Product into the distribution chain.). This is the underlying object with id, value and extensions. The accessor "getRestoreDate" gives direct access to the value
225     */
226    public DateTimeType getRestoreDateElement() { 
227      if (this.restoreDate == null)
228        if (Configuration.errorOnAutoCreate())
229          throw new Error("Attempt to auto-create MarketingStatus.restoreDate");
230        else if (Configuration.doAutoCreate())
231          this.restoreDate = new DateTimeType(); // bb
232      return this.restoreDate;
233    }
234
235    public boolean hasRestoreDateElement() { 
236      return this.restoreDate != null && !this.restoreDate.isEmpty();
237    }
238
239    public boolean hasRestoreDate() { 
240      return this.restoreDate != null && !this.restoreDate.isEmpty();
241    }
242
243    /**
244     * @param value {@link #restoreDate} (The date when the Medicinal Product is placed on the market by the Marketing Authorisation Holder (or where applicable, the manufacturer/distributor) in a country and/or jurisdiction shall be provided A complete date consisting of day, month and year shall be specified using the ISO 8601 date format NOTE “Placed on the market” refers to the release of the Medicinal Product into the distribution chain.). This is the underlying object with id, value and extensions. The accessor "getRestoreDate" gives direct access to the value
245     */
246    public MarketingStatus setRestoreDateElement(DateTimeType value) { 
247      this.restoreDate = value;
248      return this;
249    }
250
251    /**
252     * @return The date when the Medicinal Product is placed on the market by the Marketing Authorisation Holder (or where applicable, the manufacturer/distributor) in a country and/or jurisdiction shall be provided A complete date consisting of day, month and year shall be specified using the ISO 8601 date format NOTE “Placed on the market” refers to the release of the Medicinal Product into the distribution chain.
253     */
254    public Date getRestoreDate() { 
255      return this.restoreDate == null ? null : this.restoreDate.getValue();
256    }
257
258    /**
259     * @param value The date when the Medicinal Product is placed on the market by the Marketing Authorisation Holder (or where applicable, the manufacturer/distributor) in a country and/or jurisdiction shall be provided A complete date consisting of day, month and year shall be specified using the ISO 8601 date format NOTE “Placed on the market” refers to the release of the Medicinal Product into the distribution chain.
260     */
261    public MarketingStatus setRestoreDate(Date value) { 
262      if (value == null)
263        this.restoreDate = null;
264      else {
265        if (this.restoreDate == null)
266          this.restoreDate = new DateTimeType();
267        this.restoreDate.setValue(value);
268      }
269      return this;
270    }
271
272      protected void listChildren(List<Property> children) {
273        super.listChildren(children);
274        children.add(new Property("country", "CodeableConcept", "The country in which the marketing authorisation has been granted shall be specified It should be specified using the ISO 3166 ‑ 1 alpha-2 code elements.", 0, 1, country));
275        children.add(new Property("jurisdiction", "CodeableConcept", "Where a Medicines Regulatory Agency has granted a marketing authorisation for which specific provisions within a jurisdiction apply, the jurisdiction can be specified using an appropriate controlled terminology The controlled term and the controlled term identifier shall be specified.", 0, 1, jurisdiction));
276        children.add(new Property("status", "CodeableConcept", "This attribute provides information on the status of the marketing of the medicinal product See ISO/TS 20443 for more information and examples.", 0, 1, status));
277        children.add(new Property("dateRange", "Period", "The date when the Medicinal Product is placed on the market by the Marketing Authorisation Holder (or where applicable, the manufacturer/distributor) in a country and/or jurisdiction shall be provided A complete date consisting of day, month and year shall be specified using the ISO 8601 date format NOTE “Placed on the market” refers to the release of the Medicinal Product into the distribution chain.", 0, 1, dateRange));
278        children.add(new Property("restoreDate", "dateTime", "The date when the Medicinal Product is placed on the market by the Marketing Authorisation Holder (or where applicable, the manufacturer/distributor) in a country and/or jurisdiction shall be provided A complete date consisting of day, month and year shall be specified using the ISO 8601 date format NOTE “Placed on the market” refers to the release of the Medicinal Product into the distribution chain.", 0, 1, restoreDate));
279      }
280
281      @Override
282      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
283        switch (_hash) {
284        case 957831062: /*country*/  return new Property("country", "CodeableConcept", "The country in which the marketing authorisation has been granted shall be specified It should be specified using the ISO 3166 ‑ 1 alpha-2 code elements.", 0, 1, country);
285        case -507075711: /*jurisdiction*/  return new Property("jurisdiction", "CodeableConcept", "Where a Medicines Regulatory Agency has granted a marketing authorisation for which specific provisions within a jurisdiction apply, the jurisdiction can be specified using an appropriate controlled terminology The controlled term and the controlled term identifier shall be specified.", 0, 1, jurisdiction);
286        case -892481550: /*status*/  return new Property("status", "CodeableConcept", "This attribute provides information on the status of the marketing of the medicinal product See ISO/TS 20443 for more information and examples.", 0, 1, status);
287        case -261425617: /*dateRange*/  return new Property("dateRange", "Period", "The date when the Medicinal Product is placed on the market by the Marketing Authorisation Holder (or where applicable, the manufacturer/distributor) in a country and/or jurisdiction shall be provided A complete date consisting of day, month and year shall be specified using the ISO 8601 date format NOTE “Placed on the market” refers to the release of the Medicinal Product into the distribution chain.", 0, 1, dateRange);
288        case 329465692: /*restoreDate*/  return new Property("restoreDate", "dateTime", "The date when the Medicinal Product is placed on the market by the Marketing Authorisation Holder (or where applicable, the manufacturer/distributor) in a country and/or jurisdiction shall be provided A complete date consisting of day, month and year shall be specified using the ISO 8601 date format NOTE “Placed on the market” refers to the release of the Medicinal Product into the distribution chain.", 0, 1, restoreDate);
289        default: return super.getNamedProperty(_hash, _name, _checkValid);
290        }
291
292      }
293
294      @Override
295      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
296        switch (hash) {
297        case 957831062: /*country*/ return this.country == null ? new Base[0] : new Base[] {this.country}; // CodeableConcept
298        case -507075711: /*jurisdiction*/ return this.jurisdiction == null ? new Base[0] : new Base[] {this.jurisdiction}; // CodeableConcept
299        case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // CodeableConcept
300        case -261425617: /*dateRange*/ return this.dateRange == null ? new Base[0] : new Base[] {this.dateRange}; // Period
301        case 329465692: /*restoreDate*/ return this.restoreDate == null ? new Base[0] : new Base[] {this.restoreDate}; // DateTimeType
302        default: return super.getProperty(hash, name, checkValid);
303        }
304
305      }
306
307      @Override
308      public Base setProperty(int hash, String name, Base value) throws FHIRException {
309        switch (hash) {
310        case 957831062: // country
311          this.country = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
312          return value;
313        case -507075711: // jurisdiction
314          this.jurisdiction = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
315          return value;
316        case -892481550: // status
317          this.status = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
318          return value;
319        case -261425617: // dateRange
320          this.dateRange = TypeConvertor.castToPeriod(value); // Period
321          return value;
322        case 329465692: // restoreDate
323          this.restoreDate = TypeConvertor.castToDateTime(value); // DateTimeType
324          return value;
325        default: return super.setProperty(hash, name, value);
326        }
327
328      }
329
330      @Override
331      public Base setProperty(String name, Base value) throws FHIRException {
332        if (name.equals("country")) {
333          this.country = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
334        } else if (name.equals("jurisdiction")) {
335          this.jurisdiction = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
336        } else if (name.equals("status")) {
337          this.status = TypeConvertor.castToCodeableConcept(value); // CodeableConcept
338        } else if (name.equals("dateRange")) {
339          this.dateRange = TypeConvertor.castToPeriod(value); // Period
340        } else if (name.equals("restoreDate")) {
341          this.restoreDate = TypeConvertor.castToDateTime(value); // DateTimeType
342        } else
343          return super.setProperty(name, value);
344        return value;
345      }
346
347      @Override
348      public Base makeProperty(int hash, String name) throws FHIRException {
349        switch (hash) {
350        case 957831062:  return getCountry();
351        case -507075711:  return getJurisdiction();
352        case -892481550:  return getStatus();
353        case -261425617:  return getDateRange();
354        case 329465692:  return getRestoreDateElement();
355        default: return super.makeProperty(hash, name);
356        }
357
358      }
359
360      @Override
361      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
362        switch (hash) {
363        case 957831062: /*country*/ return new String[] {"CodeableConcept"};
364        case -507075711: /*jurisdiction*/ return new String[] {"CodeableConcept"};
365        case -892481550: /*status*/ return new String[] {"CodeableConcept"};
366        case -261425617: /*dateRange*/ return new String[] {"Period"};
367        case 329465692: /*restoreDate*/ return new String[] {"dateTime"};
368        default: return super.getTypesForProperty(hash, name);
369        }
370
371      }
372
373      @Override
374      public Base addChild(String name) throws FHIRException {
375        if (name.equals("country")) {
376          this.country = new CodeableConcept();
377          return this.country;
378        }
379        else if (name.equals("jurisdiction")) {
380          this.jurisdiction = new CodeableConcept();
381          return this.jurisdiction;
382        }
383        else if (name.equals("status")) {
384          this.status = new CodeableConcept();
385          return this.status;
386        }
387        else if (name.equals("dateRange")) {
388          this.dateRange = new Period();
389          return this.dateRange;
390        }
391        else if (name.equals("restoreDate")) {
392          throw new FHIRException("Cannot call addChild on a primitive type MarketingStatus.restoreDate");
393        }
394        else
395          return super.addChild(name);
396      }
397
398  public String fhirType() {
399    return "MarketingStatus";
400
401  }
402
403      public MarketingStatus copy() {
404        MarketingStatus dst = new MarketingStatus();
405        copyValues(dst);
406        return dst;
407      }
408
409      public void copyValues(MarketingStatus dst) {
410        super.copyValues(dst);
411        dst.country = country == null ? null : country.copy();
412        dst.jurisdiction = jurisdiction == null ? null : jurisdiction.copy();
413        dst.status = status == null ? null : status.copy();
414        dst.dateRange = dateRange == null ? null : dateRange.copy();
415        dst.restoreDate = restoreDate == null ? null : restoreDate.copy();
416      }
417
418      protected MarketingStatus typedCopy() {
419        return copy();
420      }
421
422      @Override
423      public boolean equalsDeep(Base other_) {
424        if (!super.equalsDeep(other_))
425          return false;
426        if (!(other_ instanceof MarketingStatus))
427          return false;
428        MarketingStatus o = (MarketingStatus) other_;
429        return compareDeep(country, o.country, true) && compareDeep(jurisdiction, o.jurisdiction, true)
430           && compareDeep(status, o.status, true) && compareDeep(dateRange, o.dateRange, true) && compareDeep(restoreDate, o.restoreDate, true)
431          ;
432      }
433
434      @Override
435      public boolean equalsShallow(Base other_) {
436        if (!super.equalsShallow(other_))
437          return false;
438        if (!(other_ instanceof MarketingStatus))
439          return false;
440        MarketingStatus o = (MarketingStatus) other_;
441        return compareValues(restoreDate, o.restoreDate, true);
442      }
443
444      public boolean isEmpty() {
445        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(country, jurisdiction, status
446          , dateRange, restoreDate);
447      }
448
449
450}
451