fix list issues #722

This commit is contained in:
Grahame Grieve 2022-02-14 09:15:30 +11:00
parent 2dfa821e12
commit e36e1d2973
1 changed files with 10 additions and 10 deletions

View File

@ -686,7 +686,7 @@ public class ListResource extends DomainResource {
public Enumeration<ListStatus> getStatusElement() {
if (this.status == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ListResource.status");
throw new Error("Attempt to auto-create List.status");
else if (Configuration.doAutoCreate())
this.status = new Enumeration<ListStatus>(new ListStatusEnumFactory()); // bb
return this.status;
@ -731,7 +731,7 @@ public class ListResource extends DomainResource {
public Enumeration<ListMode> getModeElement() {
if (this.mode == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ListResource.mode");
throw new Error("Attempt to auto-create List.mode");
else if (Configuration.doAutoCreate())
this.mode = new Enumeration<ListMode>(new ListModeEnumFactory()); // bb
return this.mode;
@ -776,7 +776,7 @@ public class ListResource extends DomainResource {
public StringType getTitleElement() {
if (this.title == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ListResource.title");
throw new Error("Attempt to auto-create List.title");
else if (Configuration.doAutoCreate())
this.title = new StringType(); // bb
return this.title;
@ -825,7 +825,7 @@ public class ListResource extends DomainResource {
public CodeableConcept getCode() {
if (this.code == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ListResource.code");
throw new Error("Attempt to auto-create List.code");
else if (Configuration.doAutoCreate())
this.code = new CodeableConcept(); // cc
return this.code;
@ -849,7 +849,7 @@ public class ListResource extends DomainResource {
public Reference getSubject() {
if (this.subject == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ListResource.subject");
throw new Error("Attempt to auto-create List.subject");
else if (Configuration.doAutoCreate())
this.subject = new Reference(); // cc
return this.subject;
@ -873,7 +873,7 @@ public class ListResource extends DomainResource {
public Reference getEncounter() {
if (this.encounter == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ListResource.encounter");
throw new Error("Attempt to auto-create List.encounter");
else if (Configuration.doAutoCreate())
this.encounter = new Reference(); // cc
return this.encounter;
@ -897,7 +897,7 @@ public class ListResource extends DomainResource {
public DateTimeType getDateElement() {
if (this.date == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ListResource.date");
throw new Error("Attempt to auto-create List.date");
else if (Configuration.doAutoCreate())
this.date = new DateTimeType(); // bb
return this.date;
@ -946,7 +946,7 @@ public class ListResource extends DomainResource {
public Reference getSource() {
if (this.source == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ListResource.source");
throw new Error("Attempt to auto-create List.source");
else if (Configuration.doAutoCreate())
this.source = new Reference(); // cc
return this.source;
@ -970,7 +970,7 @@ public class ListResource extends DomainResource {
public CodeableConcept getOrderedBy() {
if (this.orderedBy == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ListResource.orderedBy");
throw new Error("Attempt to auto-create List.orderedBy");
else if (Configuration.doAutoCreate())
this.orderedBy = new CodeableConcept(); // cc
return this.orderedBy;
@ -1100,7 +1100,7 @@ public class ListResource extends DomainResource {
public CodeableConcept getEmptyReason() {
if (this.emptyReason == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ListResource.emptyReason");
throw new Error("Attempt to auto-create List.emptyReason");
else if (Configuration.doAutoCreate())
this.emptyReason = new CodeableConcept(); // cc
return this.emptyReason;