001/*-
002 * #%L
003 * Smile CDR - CDR
004 * %%
005 * Copyright (C) 2016 - 2024 Smile CDR, Inc.
006 * %%
007 * All rights reserved.
008 * #L%
009 */
010package ca.cdr.api.fhirgw.model;
011
012import org.hl7.fhir.instance.model.api.IBaseResource;
013
014public class ReadResponse extends BaseResponse<ReadResponse> {
015
016        private IBaseResource myResponse;
017
018        /**
019         * Constructor - Create an empty object
020         */
021        public ReadResponse() {
022                super();
023        }
024
025        /**
026         * Copy constructor - Creates a shallow copy only
027         */
028        public ReadResponse(ReadResponse theReadResponse) {
029                super(theReadResponse);
030                myResponse = theReadResponse.getResponse();
031        }
032
033        public IBaseResource getResponse() {
034                return myResponse;
035        }
036
037        public ReadResponse setResponse(IBaseResource theResponse) {
038                myResponse = theResponse;
039                return this;
040        }
041
042        /**
043         * Create a clone of this object using a <b>shallow copy only</b>. Values
044         * are copied by reference only, so things like Resources should only be
045         * modified if you are sure that the changes won't affect the value
046         * stored in cache.
047         */
048        @Override
049        public ReadResponse clone() {
050                return new ReadResponse(this);
051        }
052}