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.IIdType; 013 014public abstract class BaseWriteResponse<T extends BaseWriteResponse<T>> extends BaseResponse<T> { 015 016 private IIdType myId; 017 018 /** 019 * Constructor - Create an empty object 020 */ 021 public BaseWriteResponse() { 022 super(); 023 } 024 025 /** 026 * Copy constructor - Creates a shallow copy only 027 */ 028 public BaseWriteResponse(T theWriteResponse) { 029 super(theWriteResponse); 030 myId = theWriteResponse.getId(); 031 } 032 033 public IIdType getId() { 034 return myId; 035 } 036 037 public void setId(IIdType theId) { 038 myId = theId; 039 } 040}