mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-03-09 14:33:32 +00:00
Fixes #724 - Resource IDs are now copied when copying instances of subclasses of DomainResource for DSTU2 and DSTU2.1. (STU3 and R4 already had this fix)
This commit is contained in:
parent
0eea7b8f1f
commit
d575fb8ee7
@ -340,6 +340,7 @@ public abstract class DomainResource extends Resource implements IBaseHasExtensi
|
||||
public abstract DomainResource copy();
|
||||
|
||||
public void copyValues(DomainResource dst) {
|
||||
super.copyValues(dst);
|
||||
dst.text = text == null ? null : text.copy();
|
||||
if (contained != null) {
|
||||
dst.contained = new ArrayList<Resource>();
|
||||
|
@ -265,6 +265,7 @@ public abstract class DomainResource extends Resource implements IBaseHasExtensi
|
||||
public abstract DomainResource copy();
|
||||
|
||||
public void copyValues(DomainResource dst) {
|
||||
super.copyValues(dst);
|
||||
dst.text = text == null ? null : text.copy();
|
||||
if (contained != null) {
|
||||
dst.contained = new ArrayList<Resource>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user