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