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