Merge pull request #1389 from hapifhir/2023-08-gg-combine-fixes

2023 08 gg combine fixes
This commit is contained in:
Grahame Grieve 2023-08-10 00:04:28 +10:00 committed by GitHub
commit e2f9ee0fb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
947 changed files with 9707 additions and 9639 deletions

View File

@ -86,7 +86,8 @@ public class CPTImporter {
new JsonParser().setOutputStyle(OutputStyle.PRETTY).compose(new FileOutputStream(dst), cs); new JsonParser().setOutputStyle(OutputStyle.PRETTY).compose(new FileOutputStream(dst), cs);
produceDB(Utilities.changeFileExt(dst, ".db"), cs); produceDB(Utilities.changeFileExt(dst, ".db"), cs);
cs.getConcept().removeIf(cc -> !Utilities.existsInList(cc.getCode(), "metadata-kinds", "metadata-designations", "99202", "99203", "25", "P1")); cs.setContent(CodeSystemContentMode.FRAGMENT);
cs.getConcept().removeIf(cc -> !Utilities.existsInList(cc.getCode(), "metadata-kinds", "metadata-designations", "99202", "99203", "0001A", "25", "P1", "1P", "F1"));
new JsonParser().setOutputStyle(OutputStyle.PRETTY).compose(new FileOutputStream(Utilities.changeFileExt(dst, "-fragment.json")), cs); new JsonParser().setOutputStyle(OutputStyle.PRETTY).compose(new FileOutputStream(Utilities.changeFileExt(dst, "-fragment.json")), cs);
produceDB(Utilities.changeFileExt(dst, "-fragment.db"), cs); produceDB(Utilities.changeFileExt(dst, "-fragment.db"), cs);
} }

View File

@ -1083,7 +1083,7 @@ private void generatePropertyMaker(Analysis analysis, TypeInfo ti, String indent
first = false; first = false;
write( "if (name.equals(\""+namet+"\")) {\r\n"); write( "if (name.equals(\""+namet+"\")) {\r\n");
if (isPrimitive(e.typeSummary()) || e.typeSummary().startsWith("canonical(")) if (isPrimitive(e.typeSummary()) || e.typeSummary().startsWith("canonical("))
write(indent+" throw new FHIRException(\"Cannot call addChild on a primitive type "+parent+"."+e.getName()+"\");\r\n"); write(indent+" throw new FHIRException(\"Cannot call addChild on a singleton property "+parent+"."+e.getName()+"\");\r\n");
else if (isAbstract(e.typeSummary())) else if (isAbstract(e.typeSummary()))
write(indent+" throw new FHIRException(\"Cannot call addChild on an abstract type "+parent+"."+e.getName()+"\");\r\n"); write(indent+" throw new FHIRException(\"Cannot call addChild on an abstract type "+parent+"."+e.getName()+"\");\r\n");
else if (e.unbounded()) { else if (e.unbounded()) {

View File

@ -782,12 +782,12 @@ public class Account extends DomainResource {
if (name.equals("identifier")) { if (name.equals("identifier")) {
return addIdentifier(); return addIdentifier();
} else if (name.equals("name")) { } else if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type Account.name"); throw new FHIRException("Cannot call addChild on a singleton property Account.name");
} else if (name.equals("type")) { } else if (name.equals("type")) {
this.type = new CodeableConcept(); this.type = new CodeableConcept();
return this.type; return this.type;
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type Account.status"); throw new FHIRException("Cannot call addChild on a singleton property Account.status");
} else if (name.equals("activePeriod")) { } else if (name.equals("activePeriod")) {
this.activePeriod = new Period(); this.activePeriod = new Period();
return this.activePeriod; return this.activePeriod;
@ -807,7 +807,7 @@ public class Account extends DomainResource {
this.owner = new Reference(); this.owner = new Reference();
return this.owner; return this.owner;
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type Account.description"); throw new FHIRException("Cannot call addChild on a singleton property Account.description");
} else } else
return super.addChild(name); return super.addChild(name);
} }

View File

@ -1011,23 +1011,23 @@ public class Address extends Type implements ICompositeType {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("use")) { if (name.equals("use")) {
throw new FHIRException("Cannot call addChild on a primitive type Address.use"); throw new FHIRException("Cannot call addChild on a singleton property Address.use");
} else if (name.equals("type")) { } else if (name.equals("type")) {
throw new FHIRException("Cannot call addChild on a primitive type Address.type"); throw new FHIRException("Cannot call addChild on a singleton property Address.type");
} else if (name.equals("text")) { } else if (name.equals("text")) {
throw new FHIRException("Cannot call addChild on a primitive type Address.text"); throw new FHIRException("Cannot call addChild on a singleton property Address.text");
} else if (name.equals("line")) { } else if (name.equals("line")) {
throw new FHIRException("Cannot call addChild on a primitive type Address.line"); throw new FHIRException("Cannot call addChild on a singleton property Address.line");
} else if (name.equals("city")) { } else if (name.equals("city")) {
throw new FHIRException("Cannot call addChild on a primitive type Address.city"); throw new FHIRException("Cannot call addChild on a singleton property Address.city");
} else if (name.equals("district")) { } else if (name.equals("district")) {
throw new FHIRException("Cannot call addChild on a primitive type Address.district"); throw new FHIRException("Cannot call addChild on a singleton property Address.district");
} else if (name.equals("state")) { } else if (name.equals("state")) {
throw new FHIRException("Cannot call addChild on a primitive type Address.state"); throw new FHIRException("Cannot call addChild on a singleton property Address.state");
} else if (name.equals("postalCode")) { } else if (name.equals("postalCode")) {
throw new FHIRException("Cannot call addChild on a primitive type Address.postalCode"); throw new FHIRException("Cannot call addChild on a singleton property Address.postalCode");
} else if (name.equals("country")) { } else if (name.equals("country")) {
throw new FHIRException("Cannot call addChild on a primitive type Address.country"); throw new FHIRException("Cannot call addChild on a singleton property Address.country");
} else if (name.equals("period")) { } else if (name.equals("period")) {
this.period = new Period(); this.period = new Period();
return this.period; return this.period;

View File

@ -1443,15 +1443,15 @@ public class AllergyIntolerance extends DomainResource {
this.substance = new CodeableConcept(); this.substance = new CodeableConcept();
return this.substance; return this.substance;
} else if (name.equals("certainty")) { } else if (name.equals("certainty")) {
throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.certainty"); throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.certainty");
} else if (name.equals("manifestation")) { } else if (name.equals("manifestation")) {
return addManifestation(); return addManifestation();
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.description"); throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.description");
} else if (name.equals("onset")) { } else if (name.equals("onset")) {
throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.onset"); throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.onset");
} else if (name.equals("severity")) { } else if (name.equals("severity")) {
throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.severity"); throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.severity");
} else if (name.equals("exposureRoute")) { } else if (name.equals("exposureRoute")) {
this.exposureRoute = new CodeableConcept(); this.exposureRoute = new CodeableConcept();
return this.exposureRoute; return this.exposureRoute;
@ -2433,9 +2433,9 @@ public class AllergyIntolerance extends DomainResource {
if (name.equals("identifier")) { if (name.equals("identifier")) {
return addIdentifier(); return addIdentifier();
} else if (name.equals("onset")) { } else if (name.equals("onset")) {
throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.onset"); throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.onset");
} else if (name.equals("recordedDate")) { } else if (name.equals("recordedDate")) {
throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.recordedDate"); throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.recordedDate");
} else if (name.equals("recorder")) { } else if (name.equals("recorder")) {
this.recorder = new Reference(); this.recorder = new Reference();
return this.recorder; return this.recorder;
@ -2449,15 +2449,15 @@ public class AllergyIntolerance extends DomainResource {
this.substance = new CodeableConcept(); this.substance = new CodeableConcept();
return this.substance; return this.substance;
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.status"); throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.status");
} else if (name.equals("criticality")) { } else if (name.equals("criticality")) {
throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.criticality"); throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.criticality");
} else if (name.equals("type")) { } else if (name.equals("type")) {
throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.type"); throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.type");
} else if (name.equals("category")) { } else if (name.equals("category")) {
throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.category"); throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.category");
} else if (name.equals("lastOccurence")) { } else if (name.equals("lastOccurence")) {
throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.lastOccurence"); throw new FHIRException("Cannot call addChild on a singleton property AllergyIntolerance.lastOccurence");
} else if (name.equals("note")) { } else if (name.equals("note")) {
this.note = new Annotation(); this.note = new Annotation();
return this.note; return this.note;

View File

@ -270,9 +270,9 @@ public class Annotation extends Type implements ICompositeType {
this.author = new StringType(); this.author = new StringType();
return this.author; return this.author;
} else if (name.equals("time")) { } else if (name.equals("time")) {
throw new FHIRException("Cannot call addChild on a primitive type Annotation.time"); throw new FHIRException("Cannot call addChild on a singleton property Annotation.time");
} else if (name.equals("text")) { } else if (name.equals("text")) {
throw new FHIRException("Cannot call addChild on a primitive type Annotation.text"); throw new FHIRException("Cannot call addChild on a singleton property Annotation.text");
} else } else
return super.addChild(name); return super.addChild(name);
} }

View File

@ -853,9 +853,9 @@ public class Appointment extends DomainResource {
this.actor = new Reference(); this.actor = new Reference();
return this.actor; return this.actor;
} else if (name.equals("required")) { } else if (name.equals("required")) {
throw new FHIRException("Cannot call addChild on a primitive type Appointment.required"); throw new FHIRException("Cannot call addChild on a singleton property Appointment.required");
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type Appointment.status"); throw new FHIRException("Cannot call addChild on a singleton property Appointment.status");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1730,7 +1730,7 @@ public class Appointment extends DomainResource {
if (name.equals("identifier")) { if (name.equals("identifier")) {
return addIdentifier(); return addIdentifier();
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type Appointment.status"); throw new FHIRException("Cannot call addChild on a singleton property Appointment.status");
} else if (name.equals("type")) { } else if (name.equals("type")) {
this.type = new CodeableConcept(); this.type = new CodeableConcept();
return this.type; return this.type;
@ -1738,19 +1738,19 @@ public class Appointment extends DomainResource {
this.reason = new CodeableConcept(); this.reason = new CodeableConcept();
return this.reason; return this.reason;
} else if (name.equals("priority")) { } else if (name.equals("priority")) {
throw new FHIRException("Cannot call addChild on a primitive type Appointment.priority"); throw new FHIRException("Cannot call addChild on a singleton property Appointment.priority");
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type Appointment.description"); throw new FHIRException("Cannot call addChild on a singleton property Appointment.description");
} else if (name.equals("start")) { } else if (name.equals("start")) {
throw new FHIRException("Cannot call addChild on a primitive type Appointment.start"); throw new FHIRException("Cannot call addChild on a singleton property Appointment.start");
} else if (name.equals("end")) { } else if (name.equals("end")) {
throw new FHIRException("Cannot call addChild on a primitive type Appointment.end"); throw new FHIRException("Cannot call addChild on a singleton property Appointment.end");
} else if (name.equals("minutesDuration")) { } else if (name.equals("minutesDuration")) {
throw new FHIRException("Cannot call addChild on a primitive type Appointment.minutesDuration"); throw new FHIRException("Cannot call addChild on a singleton property Appointment.minutesDuration");
} else if (name.equals("slot")) { } else if (name.equals("slot")) {
return addSlot(); return addSlot();
} else if (name.equals("comment")) { } else if (name.equals("comment")) {
throw new FHIRException("Cannot call addChild on a primitive type Appointment.comment"); throw new FHIRException("Cannot call addChild on a singleton property Appointment.comment");
} else if (name.equals("participant")) { } else if (name.equals("participant")) {
return addParticipant(); return addParticipant();
} else } else

View File

@ -824,18 +824,18 @@ public class AppointmentResponse extends DomainResource {
this.appointment = new Reference(); this.appointment = new Reference();
return this.appointment; return this.appointment;
} else if (name.equals("start")) { } else if (name.equals("start")) {
throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.start"); throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.start");
} else if (name.equals("end")) { } else if (name.equals("end")) {
throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.end"); throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.end");
} else if (name.equals("participantType")) { } else if (name.equals("participantType")) {
return addParticipantType(); return addParticipantType();
} else if (name.equals("actor")) { } else if (name.equals("actor")) {
this.actor = new Reference(); this.actor = new Reference();
return this.actor; return this.actor;
} else if (name.equals("participantStatus")) { } else if (name.equals("participantStatus")) {
throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.participantStatus"); throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.participantStatus");
} else if (name.equals("comment")) { } else if (name.equals("comment")) {
throw new FHIRException("Cannot call addChild on a primitive type AppointmentResponse.comment"); throw new FHIRException("Cannot call addChild on a singleton property AppointmentResponse.comment");
} else } else
return super.addChild(name); return super.addChild(name);
} }

View File

@ -613,21 +613,21 @@ public class Attachment extends Type implements ICompositeType {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("contentType")) { if (name.equals("contentType")) {
throw new FHIRException("Cannot call addChild on a primitive type Attachment.contentType"); throw new FHIRException("Cannot call addChild on a singleton property Attachment.contentType");
} else if (name.equals("language")) { } else if (name.equals("language")) {
throw new FHIRException("Cannot call addChild on a primitive type Attachment.language"); throw new FHIRException("Cannot call addChild on a singleton property Attachment.language");
} else if (name.equals("data")) { } else if (name.equals("data")) {
throw new FHIRException("Cannot call addChild on a primitive type Attachment.data"); throw new FHIRException("Cannot call addChild on a singleton property Attachment.data");
} else if (name.equals("url")) { } else if (name.equals("url")) {
throw new FHIRException("Cannot call addChild on a primitive type Attachment.url"); throw new FHIRException("Cannot call addChild on a singleton property Attachment.url");
} else if (name.equals("size")) { } else if (name.equals("size")) {
throw new FHIRException("Cannot call addChild on a primitive type Attachment.size"); throw new FHIRException("Cannot call addChild on a singleton property Attachment.size");
} else if (name.equals("hash")) { } else if (name.equals("hash")) {
throw new FHIRException("Cannot call addChild on a primitive type Attachment.hash"); throw new FHIRException("Cannot call addChild on a singleton property Attachment.hash");
} else if (name.equals("title")) { } else if (name.equals("title")) {
throw new FHIRException("Cannot call addChild on a primitive type Attachment.title"); throw new FHIRException("Cannot call addChild on a singleton property Attachment.title");
} else if (name.equals("creation")) { } else if (name.equals("creation")) {
throw new FHIRException("Cannot call addChild on a primitive type Attachment.creation"); throw new FHIRException("Cannot call addChild on a singleton property Attachment.creation");
} else } else
return super.addChild(name); return super.addChild(name);
} }

View File

@ -999,13 +999,13 @@ public class AuditEvent extends DomainResource {
} else if (name.equals("subtype")) { } else if (name.equals("subtype")) {
return addSubtype(); return addSubtype();
} else if (name.equals("action")) { } else if (name.equals("action")) {
throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.action"); throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.action");
} else if (name.equals("dateTime")) { } else if (name.equals("dateTime")) {
throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.dateTime"); throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.dateTime");
} else if (name.equals("outcome")) { } else if (name.equals("outcome")) {
throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.outcome"); throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.outcome");
} else if (name.equals("outcomeDesc")) { } else if (name.equals("outcomeDesc")) {
throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.outcomeDesc"); throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.outcomeDesc");
} else if (name.equals("purposeOfEvent")) { } else if (name.equals("purposeOfEvent")) {
return addPurposeOfEvent(); return addPurposeOfEvent();
} else } else
@ -1772,16 +1772,16 @@ public class AuditEvent extends DomainResource {
this.userId = new Identifier(); this.userId = new Identifier();
return this.userId; return this.userId;
} else if (name.equals("altId")) { } else if (name.equals("altId")) {
throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.altId"); throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.altId");
} else if (name.equals("name")) { } else if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.name"); throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.name");
} else if (name.equals("requestor")) { } else if (name.equals("requestor")) {
throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.requestor"); throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.requestor");
} else if (name.equals("location")) { } else if (name.equals("location")) {
this.location = new Reference(); this.location = new Reference();
return this.location; return this.location;
} else if (name.equals("policy")) { } else if (name.equals("policy")) {
throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.policy"); throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.policy");
} else if (name.equals("media")) { } else if (name.equals("media")) {
this.media = new Coding(); this.media = new Coding();
return this.media; return this.media;
@ -2034,9 +2034,9 @@ public class AuditEvent extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("address")) { if (name.equals("address")) {
throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.address"); throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.address");
} else if (name.equals("type")) { } else if (name.equals("type")) {
throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.type"); throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.type");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -2279,7 +2279,7 @@ public class AuditEvent extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("site")) { if (name.equals("site")) {
throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.site"); throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.site");
} else if (name.equals("identifier")) { } else if (name.equals("identifier")) {
this.identifier = new Identifier(); this.identifier = new Identifier();
return this.identifier; return this.identifier;
@ -2910,11 +2910,11 @@ public class AuditEvent extends DomainResource {
} else if (name.equals("securityLabel")) { } else if (name.equals("securityLabel")) {
return addSecurityLabel(); return addSecurityLabel();
} else if (name.equals("name")) { } else if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.name"); throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.name");
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.description"); throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.description");
} else if (name.equals("query")) { } else if (name.equals("query")) {
throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.query"); throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.query");
} else if (name.equals("detail")) { } else if (name.equals("detail")) {
return addDetail(); return addDetail();
} else } else
@ -3140,9 +3140,9 @@ public class AuditEvent extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("type")) { if (name.equals("type")) {
throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.type"); throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.type");
} else if (name.equals("value")) { } else if (name.equals("value")) {
throw new FHIRException("Cannot call addChild on a primitive type AuditEvent.value"); throw new FHIRException("Cannot call addChild on a singleton property AuditEvent.value");
} else } else
return super.addChild(name); return super.addChild(name);
} }

View File

@ -383,7 +383,7 @@ public class Basic extends DomainResource {
this.author = new Reference(); this.author = new Reference();
return this.author; return this.author;
} else if (name.equals("created")) { } else if (name.equals("created")) {
throw new FHIRException("Cannot call addChild on a primitive type Basic.created"); throw new FHIRException("Cannot call addChild on a singleton property Basic.created");
} else } else
return super.addChild(name); return super.addChild(name);
} }

View File

@ -203,9 +203,9 @@ public class Binary extends BaseBinary implements IBaseBinary {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("contentType")) { if (name.equals("contentType")) {
throw new FHIRException("Cannot call addChild on a primitive type Binary.contentType"); throw new FHIRException("Cannot call addChild on a singleton property Binary.contentType");
} else if (name.equals("content")) { } else if (name.equals("content")) {
throw new FHIRException("Cannot call addChild on a primitive type Binary.content"); throw new FHIRException("Cannot call addChild on a singleton property Binary.content");
} else } else
return super.addChild(name); return super.addChild(name);
} }

View File

@ -421,7 +421,7 @@ public class BodySite extends DomainResource {
} else if (name.equals("modifier")) { } else if (name.equals("modifier")) {
return addModifier(); return addModifier();
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type BodySite.description"); throw new FHIRException("Cannot call addChild on a singleton property BodySite.description");
} else if (name.equals("image")) { } else if (name.equals("image")) {
return addImage(); return addImage();
} else } else

View File

@ -755,9 +755,9 @@ public class Bundle extends Resource implements IBaseBundle {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("relation")) { if (name.equals("relation")) {
throw new FHIRException("Cannot call addChild on a primitive type Bundle.relation"); throw new FHIRException("Cannot call addChild on a singleton property Bundle.relation");
} else if (name.equals("url")) { } else if (name.equals("url")) {
throw new FHIRException("Cannot call addChild on a primitive type Bundle.url"); throw new FHIRException("Cannot call addChild on a singleton property Bundle.url");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1104,7 +1104,7 @@ public class Bundle extends Resource implements IBaseBundle {
if (name.equals("link")) { if (name.equals("link")) {
return addLink(); return addLink();
} else if (name.equals("fullUrl")) { } else if (name.equals("fullUrl")) {
throw new FHIRException("Cannot call addChild on a primitive type Bundle.fullUrl"); throw new FHIRException("Cannot call addChild on a singleton property Bundle.fullUrl");
} else if (name.equals("resource")) { } else if (name.equals("resource")) {
throw new FHIRException("Cannot call addChild on an abstract type Bundle.resource"); throw new FHIRException("Cannot call addChild on an abstract type Bundle.resource");
} else if (name.equals("search")) { } else if (name.equals("search")) {
@ -1332,9 +1332,9 @@ public class Bundle extends Resource implements IBaseBundle {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("mode")) { if (name.equals("mode")) {
throw new FHIRException("Cannot call addChild on a primitive type Bundle.mode"); throw new FHIRException("Cannot call addChild on a singleton property Bundle.mode");
} else if (name.equals("score")) { } else if (name.equals("score")) {
throw new FHIRException("Cannot call addChild on a primitive type Bundle.score"); throw new FHIRException("Cannot call addChild on a singleton property Bundle.score");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1847,17 +1847,17 @@ public class Bundle extends Resource implements IBaseBundle {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("method")) { if (name.equals("method")) {
throw new FHIRException("Cannot call addChild on a primitive type Bundle.method"); throw new FHIRException("Cannot call addChild on a singleton property Bundle.method");
} else if (name.equals("url")) { } else if (name.equals("url")) {
throw new FHIRException("Cannot call addChild on a primitive type Bundle.url"); throw new FHIRException("Cannot call addChild on a singleton property Bundle.url");
} else if (name.equals("ifNoneMatch")) { } else if (name.equals("ifNoneMatch")) {
throw new FHIRException("Cannot call addChild on a primitive type Bundle.ifNoneMatch"); throw new FHIRException("Cannot call addChild on a singleton property Bundle.ifNoneMatch");
} else if (name.equals("ifModifiedSince")) { } else if (name.equals("ifModifiedSince")) {
throw new FHIRException("Cannot call addChild on a primitive type Bundle.ifModifiedSince"); throw new FHIRException("Cannot call addChild on a singleton property Bundle.ifModifiedSince");
} else if (name.equals("ifMatch")) { } else if (name.equals("ifMatch")) {
throw new FHIRException("Cannot call addChild on a primitive type Bundle.ifMatch"); throw new FHIRException("Cannot call addChild on a singleton property Bundle.ifMatch");
} else if (name.equals("ifNoneExist")) { } else if (name.equals("ifNoneExist")) {
throw new FHIRException("Cannot call addChild on a primitive type Bundle.ifNoneExist"); throw new FHIRException("Cannot call addChild on a singleton property Bundle.ifNoneExist");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -2207,13 +2207,13 @@ public class Bundle extends Resource implements IBaseBundle {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("status")) { if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type Bundle.status"); throw new FHIRException("Cannot call addChild on a singleton property Bundle.status");
} else if (name.equals("location")) { } else if (name.equals("location")) {
throw new FHIRException("Cannot call addChild on a primitive type Bundle.location"); throw new FHIRException("Cannot call addChild on a singleton property Bundle.location");
} else if (name.equals("etag")) { } else if (name.equals("etag")) {
throw new FHIRException("Cannot call addChild on a primitive type Bundle.etag"); throw new FHIRException("Cannot call addChild on a singleton property Bundle.etag");
} else if (name.equals("lastModified")) { } else if (name.equals("lastModified")) {
throw new FHIRException("Cannot call addChild on a primitive type Bundle.lastModified"); throw new FHIRException("Cannot call addChild on a singleton property Bundle.lastModified");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -2624,9 +2624,9 @@ public class Bundle extends Resource implements IBaseBundle {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("type")) { if (name.equals("type")) {
throw new FHIRException("Cannot call addChild on a primitive type Bundle.type"); throw new FHIRException("Cannot call addChild on a singleton property Bundle.type");
} else if (name.equals("total")) { } else if (name.equals("total")) {
throw new FHIRException("Cannot call addChild on a primitive type Bundle.total"); throw new FHIRException("Cannot call addChild on a singleton property Bundle.total");
} else if (name.equals("link")) { } else if (name.equals("link")) {
return addLink(); return addLink();
} else if (name.equals("entry")) { } else if (name.equals("entry")) {

View File

@ -718,7 +718,7 @@ public class CarePlan extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("code")) { if (name.equals("code")) {
throw new FHIRException("Cannot call addChild on a primitive type CarePlan.code"); throw new FHIRException("Cannot call addChild on a singleton property CarePlan.code");
} else if (name.equals("plan")) { } else if (name.equals("plan")) {
this.plan = new Reference(); this.plan = new Reference();
return this.plan; return this.plan;
@ -2272,12 +2272,12 @@ public class CarePlan extends DomainResource {
} else if (name.equals("goal")) { } else if (name.equals("goal")) {
return addGoal(); return addGoal();
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type CarePlan.status"); throw new FHIRException("Cannot call addChild on a singleton property CarePlan.status");
} else if (name.equals("statusReason")) { } else if (name.equals("statusReason")) {
this.statusReason = new CodeableConcept(); this.statusReason = new CodeableConcept();
return this.statusReason; return this.statusReason;
} else if (name.equals("prohibited")) { } else if (name.equals("prohibited")) {
throw new FHIRException("Cannot call addChild on a primitive type CarePlan.prohibited"); throw new FHIRException("Cannot call addChild on a singleton property CarePlan.prohibited");
} else if (name.equals("scheduledTiming")) { } else if (name.equals("scheduledTiming")) {
this.scheduled = new Timing(); this.scheduled = new Timing();
return this.scheduled; return this.scheduled;
@ -2305,7 +2305,7 @@ public class CarePlan extends DomainResource {
this.quantity = new SimpleQuantity(); this.quantity = new SimpleQuantity();
return this.quantity; return this.quantity;
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type CarePlan.description"); throw new FHIRException("Cannot call addChild on a singleton property CarePlan.description");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -3468,7 +3468,7 @@ public class CarePlan extends DomainResource {
this.subject = new Reference(); this.subject = new Reference();
return this.subject; return this.subject;
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type CarePlan.status"); throw new FHIRException("Cannot call addChild on a singleton property CarePlan.status");
} else if (name.equals("context")) { } else if (name.equals("context")) {
this.context = new Reference(); this.context = new Reference();
return this.context; return this.context;
@ -3478,11 +3478,11 @@ public class CarePlan extends DomainResource {
} else if (name.equals("author")) { } else if (name.equals("author")) {
return addAuthor(); return addAuthor();
} else if (name.equals("modified")) { } else if (name.equals("modified")) {
throw new FHIRException("Cannot call addChild on a primitive type CarePlan.modified"); throw new FHIRException("Cannot call addChild on a singleton property CarePlan.modified");
} else if (name.equals("category")) { } else if (name.equals("category")) {
return addCategory(); return addCategory();
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type CarePlan.description"); throw new FHIRException("Cannot call addChild on a singleton property CarePlan.description");
} else if (name.equals("addresses")) { } else if (name.equals("addresses")) {
return addAddresses(); return addAddresses();
} else if (name.equals("support")) { } else if (name.equals("support")) {

View File

@ -851,7 +851,7 @@ public class Claim extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("sequence")) { if (name.equals("sequence")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence");
} else if (name.equals("diagnosis")) { } else if (name.equals("diagnosis")) {
this.diagnosis = new Coding(); this.diagnosis = new Coding();
return this.diagnosis; return this.diagnosis;
@ -1422,19 +1422,19 @@ public class Claim extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("sequence")) { if (name.equals("sequence")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence");
} else if (name.equals("focal")) { } else if (name.equals("focal")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.focal"); throw new FHIRException("Cannot call addChild on a singleton property Claim.focal");
} else if (name.equals("coverage")) { } else if (name.equals("coverage")) {
this.coverage = new Reference(); this.coverage = new Reference();
return this.coverage; return this.coverage;
} else if (name.equals("businessArrangement")) { } else if (name.equals("businessArrangement")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.businessArrangement"); throw new FHIRException("Cannot call addChild on a singleton property Claim.businessArrangement");
} else if (name.equals("relationship")) { } else if (name.equals("relationship")) {
this.relationship = new Coding(); this.relationship = new Coding();
return this.relationship; return this.relationship;
} else if (name.equals("preAuthRef")) { } else if (name.equals("preAuthRef")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.preAuthRef"); throw new FHIRException("Cannot call addChild on a singleton property Claim.preAuthRef");
} else if (name.equals("claimResponse")) { } else if (name.equals("claimResponse")) {
this.claimResponse = new Reference(); this.claimResponse = new Reference();
return this.claimResponse; return this.claimResponse;
@ -2451,7 +2451,7 @@ public class Claim extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("sequence")) { if (name.equals("sequence")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence");
} else if (name.equals("type")) { } else if (name.equals("type")) {
this.type = new Coding(); this.type = new Coding();
return this.type; return this.type;
@ -2459,12 +2459,12 @@ public class Claim extends DomainResource {
this.provider = new Reference(); this.provider = new Reference();
return this.provider; return this.provider;
} else if (name.equals("diagnosisLinkId")) { } else if (name.equals("diagnosisLinkId")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.diagnosisLinkId"); throw new FHIRException("Cannot call addChild on a singleton property Claim.diagnosisLinkId");
} else if (name.equals("service")) { } else if (name.equals("service")) {
this.service = new Coding(); this.service = new Coding();
return this.service; return this.service;
} else if (name.equals("serviceDate")) { } else if (name.equals("serviceDate")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.serviceDate"); throw new FHIRException("Cannot call addChild on a singleton property Claim.serviceDate");
} else if (name.equals("quantity")) { } else if (name.equals("quantity")) {
this.quantity = new SimpleQuantity(); this.quantity = new SimpleQuantity();
return this.quantity; return this.quantity;
@ -2472,9 +2472,9 @@ public class Claim extends DomainResource {
this.unitPrice = new Money(); this.unitPrice = new Money();
return this.unitPrice; return this.unitPrice;
} else if (name.equals("factor")) { } else if (name.equals("factor")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.factor"); throw new FHIRException("Cannot call addChild on a singleton property Claim.factor");
} else if (name.equals("points")) { } else if (name.equals("points")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.points"); throw new FHIRException("Cannot call addChild on a singleton property Claim.points");
} else if (name.equals("net")) { } else if (name.equals("net")) {
this.net = new Money(); this.net = new Money();
return this.net; return this.net;
@ -3136,7 +3136,7 @@ public class Claim extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("sequence")) { if (name.equals("sequence")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence");
} else if (name.equals("type")) { } else if (name.equals("type")) {
this.type = new Coding(); this.type = new Coding();
return this.type; return this.type;
@ -3150,9 +3150,9 @@ public class Claim extends DomainResource {
this.unitPrice = new Money(); this.unitPrice = new Money();
return this.unitPrice; return this.unitPrice;
} else if (name.equals("factor")) { } else if (name.equals("factor")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.factor"); throw new FHIRException("Cannot call addChild on a singleton property Claim.factor");
} else if (name.equals("points")) { } else if (name.equals("points")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.points"); throw new FHIRException("Cannot call addChild on a singleton property Claim.points");
} else if (name.equals("net")) { } else if (name.equals("net")) {
this.net = new Money(); this.net = new Money();
return this.net; return this.net;
@ -3715,7 +3715,7 @@ public class Claim extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("sequence")) { if (name.equals("sequence")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.sequence"); throw new FHIRException("Cannot call addChild on a singleton property Claim.sequence");
} else if (name.equals("type")) { } else if (name.equals("type")) {
this.type = new Coding(); this.type = new Coding();
return this.type; return this.type;
@ -3729,9 +3729,9 @@ public class Claim extends DomainResource {
this.unitPrice = new Money(); this.unitPrice = new Money();
return this.unitPrice; return this.unitPrice;
} else if (name.equals("factor")) { } else if (name.equals("factor")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.factor"); throw new FHIRException("Cannot call addChild on a singleton property Claim.factor");
} else if (name.equals("points")) { } else if (name.equals("points")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.points"); throw new FHIRException("Cannot call addChild on a singleton property Claim.points");
} else if (name.equals("net")) { } else if (name.equals("net")) {
this.net = new Money(); this.net = new Money();
return this.net; return this.net;
@ -3988,9 +3988,9 @@ public class Claim extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("initial")) { if (name.equals("initial")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.initial"); throw new FHIRException("Cannot call addChild on a singleton property Claim.initial");
} else if (name.equals("priorDate")) { } else if (name.equals("priorDate")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.priorDate"); throw new FHIRException("Cannot call addChild on a singleton property Claim.priorDate");
} else if (name.equals("priorMaterial")) { } else if (name.equals("priorMaterial")) {
this.priorMaterial = new Coding(); this.priorMaterial = new Coding();
return this.priorMaterial; return this.priorMaterial;
@ -4219,7 +4219,7 @@ public class Claim extends DomainResource {
this.reason = new Coding(); this.reason = new Coding();
return this.reason; return this.reason;
} else if (name.equals("extractionDate")) { } else if (name.equals("extractionDate")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.extractionDate"); throw new FHIRException("Cannot call addChild on a singleton property Claim.extractionDate");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -5987,7 +5987,7 @@ public class Claim extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("type")) { if (name.equals("type")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.type"); throw new FHIRException("Cannot call addChild on a singleton property Claim.type");
} else if (name.equals("identifier")) { } else if (name.equals("identifier")) {
return addIdentifier(); return addIdentifier();
} else if (name.equals("ruleset")) { } else if (name.equals("ruleset")) {
@ -5997,7 +5997,7 @@ public class Claim extends DomainResource {
this.originalRuleset = new Coding(); this.originalRuleset = new Coding();
return this.originalRuleset; return this.originalRuleset;
} else if (name.equals("created")) { } else if (name.equals("created")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.created"); throw new FHIRException("Cannot call addChild on a singleton property Claim.created");
} else if (name.equals("target")) { } else if (name.equals("target")) {
this.target = new Reference(); this.target = new Reference();
return this.target; return this.target;
@ -6008,7 +6008,7 @@ public class Claim extends DomainResource {
this.organization = new Reference(); this.organization = new Reference();
return this.organization; return this.organization;
} else if (name.equals("use")) { } else if (name.equals("use")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.use"); throw new FHIRException("Cannot call addChild on a singleton property Claim.use");
} else if (name.equals("priority")) { } else if (name.equals("priority")) {
this.priority = new Coding(); this.priority = new Coding();
return this.priority; return this.priority;
@ -6045,9 +6045,9 @@ public class Claim extends DomainResource {
} else if (name.equals("exception")) { } else if (name.equals("exception")) {
return addException(); return addException();
} else if (name.equals("school")) { } else if (name.equals("school")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.school"); throw new FHIRException("Cannot call addChild on a singleton property Claim.school");
} else if (name.equals("accident")) { } else if (name.equals("accident")) {
throw new FHIRException("Cannot call addChild on a primitive type Claim.accident"); throw new FHIRException("Cannot call addChild on a singleton property Claim.accident");
} else if (name.equals("accidentType")) { } else if (name.equals("accidentType")) {
this.accidentType = new Coding(); this.accidentType = new Coding();
return this.accidentType; return this.accidentType;

View File

@ -321,9 +321,9 @@ public class ClaimResponse extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("sequenceLinkId")) { if (name.equals("sequenceLinkId")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequenceLinkId"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequenceLinkId");
} else if (name.equals("noteNumber")) { } else if (name.equals("noteNumber")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.noteNumber"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.noteNumber");
} else if (name.equals("adjudication")) { } else if (name.equals("adjudication")) {
return addAdjudication(); return addAdjudication();
} else if (name.equals("detail")) { } else if (name.equals("detail")) {
@ -571,7 +571,7 @@ public class ClaimResponse extends DomainResource {
this.amount = new Money(); this.amount = new Money();
return this.amount; return this.amount;
} else if (name.equals("value")) { } else if (name.equals("value")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.value"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.value");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -815,7 +815,7 @@ public class ClaimResponse extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("sequenceLinkId")) { if (name.equals("sequenceLinkId")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequenceLinkId"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequenceLinkId");
} else if (name.equals("adjudication")) { } else if (name.equals("adjudication")) {
return addAdjudication(); return addAdjudication();
} else if (name.equals("subDetail")) { } else if (name.equals("subDetail")) {
@ -1056,7 +1056,7 @@ public class ClaimResponse extends DomainResource {
this.amount = new Money(); this.amount = new Money();
return this.amount; return this.amount;
} else if (name.equals("value")) { } else if (name.equals("value")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.value"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.value");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1247,7 +1247,7 @@ public class ClaimResponse extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("sequenceLinkId")) { if (name.equals("sequenceLinkId")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequenceLinkId"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequenceLinkId");
} else if (name.equals("adjudication")) { } else if (name.equals("adjudication")) {
return addAdjudication(); return addAdjudication();
} else } else
@ -1479,7 +1479,7 @@ public class ClaimResponse extends DomainResource {
this.amount = new Money(); this.amount = new Money();
return this.amount; return this.amount;
} else if (name.equals("value")) { } else if (name.equals("value")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.value"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.value");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1877,7 +1877,7 @@ public class ClaimResponse extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("sequenceLinkId")) { if (name.equals("sequenceLinkId")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequenceLinkId"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequenceLinkId");
} else if (name.equals("service")) { } else if (name.equals("service")) {
this.service = new Coding(); this.service = new Coding();
return this.service; return this.service;
@ -1885,7 +1885,7 @@ public class ClaimResponse extends DomainResource {
this.fee = new Money(); this.fee = new Money();
return this.fee; return this.fee;
} else if (name.equals("noteNumberLinkId")) { } else if (name.equals("noteNumberLinkId")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.noteNumberLinkId"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.noteNumberLinkId");
} else if (name.equals("adjudication")) { } else if (name.equals("adjudication")) {
return addAdjudication(); return addAdjudication();
} else if (name.equals("detail")) { } else if (name.equals("detail")) {
@ -2143,7 +2143,7 @@ public class ClaimResponse extends DomainResource {
this.amount = new Money(); this.amount = new Money();
return this.amount; return this.amount;
} else if (name.equals("value")) { } else if (name.equals("value")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.value"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.value");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -2585,7 +2585,7 @@ public class ClaimResponse extends DomainResource {
this.amount = new Money(); this.amount = new Money();
return this.amount; return this.amount;
} else if (name.equals("value")) { } else if (name.equals("value")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.value"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.value");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -2920,11 +2920,11 @@ public class ClaimResponse extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("sequenceLinkId")) { if (name.equals("sequenceLinkId")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequenceLinkId"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequenceLinkId");
} else if (name.equals("detailSequenceLinkId")) { } else if (name.equals("detailSequenceLinkId")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.detailSequenceLinkId"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.detailSequenceLinkId");
} else if (name.equals("subdetailSequenceLinkId")) { } else if (name.equals("subdetailSequenceLinkId")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.subdetailSequenceLinkId"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.subdetailSequenceLinkId");
} else if (name.equals("code")) { } else if (name.equals("code")) {
this.code = new Coding(); this.code = new Coding();
return this.code; return this.code;
@ -3168,12 +3168,12 @@ public class ClaimResponse extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("number")) { if (name.equals("number")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.number"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.number");
} else if (name.equals("type")) { } else if (name.equals("type")) {
this.type = new Coding(); this.type = new Coding();
return this.type; return this.type;
} else if (name.equals("text")) { } else if (name.equals("text")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.text"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.text");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -3743,19 +3743,19 @@ public class ClaimResponse extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("sequence")) { if (name.equals("sequence")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.sequence"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.sequence");
} else if (name.equals("focal")) { } else if (name.equals("focal")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.focal"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.focal");
} else if (name.equals("coverage")) { } else if (name.equals("coverage")) {
this.coverage = new Reference(); this.coverage = new Reference();
return this.coverage; return this.coverage;
} else if (name.equals("businessArrangement")) { } else if (name.equals("businessArrangement")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.businessArrangement"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.businessArrangement");
} else if (name.equals("relationship")) { } else if (name.equals("relationship")) {
this.relationship = new Coding(); this.relationship = new Coding();
return this.relationship; return this.relationship;
} else if (name.equals("preAuthRef")) { } else if (name.equals("preAuthRef")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.preAuthRef"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.preAuthRef");
} else if (name.equals("claimResponse")) { } else if (name.equals("claimResponse")) {
this.claimResponse = new Reference(); this.claimResponse = new Reference();
return this.claimResponse; return this.claimResponse;
@ -5173,7 +5173,7 @@ public class ClaimResponse extends DomainResource {
this.originalRuleset = new Coding(); this.originalRuleset = new Coding();
return this.originalRuleset; return this.originalRuleset;
} else if (name.equals("created")) { } else if (name.equals("created")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.created"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.created");
} else if (name.equals("organization")) { } else if (name.equals("organization")) {
this.organization = new Reference(); this.organization = new Reference();
return this.organization; return this.organization;
@ -5184,9 +5184,9 @@ public class ClaimResponse extends DomainResource {
this.requestOrganization = new Reference(); this.requestOrganization = new Reference();
return this.requestOrganization; return this.requestOrganization;
} else if (name.equals("outcome")) { } else if (name.equals("outcome")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.outcome"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.outcome");
} else if (name.equals("disposition")) { } else if (name.equals("disposition")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.disposition"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.disposition");
} else if (name.equals("payeeType")) { } else if (name.equals("payeeType")) {
this.payeeType = new Coding(); this.payeeType = new Coding();
return this.payeeType; return this.payeeType;
@ -5212,7 +5212,7 @@ public class ClaimResponse extends DomainResource {
this.paymentAdjustmentReason = new Coding(); this.paymentAdjustmentReason = new Coding();
return this.paymentAdjustmentReason; return this.paymentAdjustmentReason;
} else if (name.equals("paymentDate")) { } else if (name.equals("paymentDate")) {
throw new FHIRException("Cannot call addChild on a primitive type ClaimResponse.paymentDate"); throw new FHIRException("Cannot call addChild on a singleton property ClaimResponse.paymentDate");
} else if (name.equals("paymentAmount")) { } else if (name.equals("paymentAmount")) {
this.paymentAmount = new Money(); this.paymentAmount = new Money();
return this.paymentAmount; return this.paymentAmount;

View File

@ -528,7 +528,7 @@ public class ClinicalImpression extends DomainResource {
this.item = new CodeableConcept(); this.item = new CodeableConcept();
return this.item; return this.item;
} else if (name.equals("cause")) { } else if (name.equals("cause")) {
throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.cause"); throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.cause");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -707,7 +707,7 @@ public class ClinicalImpression extends DomainResource {
this.item = new CodeableConcept(); this.item = new CodeableConcept();
return this.item; return this.item;
} else if (name.equals("reason")) { } else if (name.equals("reason")) {
throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.reason"); throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.reason");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1931,11 +1931,11 @@ public class ClinicalImpression extends DomainResource {
this.assessor = new Reference(); this.assessor = new Reference();
return this.assessor; return this.assessor;
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.status"); throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.status");
} else if (name.equals("date")) { } else if (name.equals("date")) {
throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.date"); throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.date");
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.description"); throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.description");
} else if (name.equals("previous")) { } else if (name.equals("previous")) {
this.previous = new Reference(); this.previous = new Reference();
return this.previous; return this.previous;
@ -1950,9 +1950,9 @@ public class ClinicalImpression extends DomainResource {
} else if (name.equals("investigations")) { } else if (name.equals("investigations")) {
return addInvestigations(); return addInvestigations();
} else if (name.equals("protocol")) { } else if (name.equals("protocol")) {
throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.protocol"); throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.protocol");
} else if (name.equals("summary")) { } else if (name.equals("summary")) {
throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.summary"); throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.summary");
} else if (name.equals("finding")) { } else if (name.equals("finding")) {
return addFinding(); return addFinding();
} else if (name.equals("resolved")) { } else if (name.equals("resolved")) {
@ -1960,7 +1960,7 @@ public class ClinicalImpression extends DomainResource {
} else if (name.equals("ruledOut")) { } else if (name.equals("ruledOut")) {
return addRuledOut(); return addRuledOut();
} else if (name.equals("prognosis")) { } else if (name.equals("prognosis")) {
throw new FHIRException("Cannot call addChild on a primitive type ClinicalImpression.prognosis"); throw new FHIRException("Cannot call addChild on a singleton property ClinicalImpression.prognosis");
} else if (name.equals("plan")) { } else if (name.equals("plan")) {
return addPlan(); return addPlan();
} else if (name.equals("action")) { } else if (name.equals("action")) {

View File

@ -201,7 +201,7 @@ public class CodeableConcept extends Type implements ICompositeType {
if (name.equals("coding")) { if (name.equals("coding")) {
return addCoding(); return addCoding();
} else if (name.equals("text")) { } else if (name.equals("text")) {
throw new FHIRException("Cannot call addChild on a primitive type CodeableConcept.text"); throw new FHIRException("Cannot call addChild on a singleton property CodeableConcept.text");
} else } else
return super.addChild(name); return super.addChild(name);
} }

View File

@ -441,15 +441,15 @@ public class Coding extends Type implements IBaseCoding, ICompositeType {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("system")) { if (name.equals("system")) {
throw new FHIRException("Cannot call addChild on a primitive type Coding.system"); throw new FHIRException("Cannot call addChild on a singleton property Coding.system");
} else if (name.equals("version")) { } else if (name.equals("version")) {
throw new FHIRException("Cannot call addChild on a primitive type Coding.version"); throw new FHIRException("Cannot call addChild on a singleton property Coding.version");
} else if (name.equals("code")) { } else if (name.equals("code")) {
throw new FHIRException("Cannot call addChild on a primitive type Coding.code"); throw new FHIRException("Cannot call addChild on a singleton property Coding.code");
} else if (name.equals("display")) { } else if (name.equals("display")) {
throw new FHIRException("Cannot call addChild on a primitive type Coding.display"); throw new FHIRException("Cannot call addChild on a singleton property Coding.display");
} else if (name.equals("userSelected")) { } else if (name.equals("userSelected")) {
throw new FHIRException("Cannot call addChild on a primitive type Coding.userSelected"); throw new FHIRException("Cannot call addChild on a singleton property Coding.userSelected");
} else } else
return super.addChild(name); return super.addChild(name);
} }

View File

@ -1263,14 +1263,14 @@ public class Communication extends DomainResource {
} else if (name.equals("medium")) { } else if (name.equals("medium")) {
return addMedium(); return addMedium();
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type Communication.status"); throw new FHIRException("Cannot call addChild on a singleton property Communication.status");
} else if (name.equals("encounter")) { } else if (name.equals("encounter")) {
this.encounter = new Reference(); this.encounter = new Reference();
return this.encounter; return this.encounter;
} else if (name.equals("sent")) { } else if (name.equals("sent")) {
throw new FHIRException("Cannot call addChild on a primitive type Communication.sent"); throw new FHIRException("Cannot call addChild on a singleton property Communication.sent");
} else if (name.equals("received")) { } else if (name.equals("received")) {
throw new FHIRException("Cannot call addChild on a primitive type Communication.received"); throw new FHIRException("Cannot call addChild on a singleton property Communication.received");
} else if (name.equals("reason")) { } else if (name.equals("reason")) {
return addReason(); return addReason();
} else if (name.equals("subject")) { } else if (name.equals("subject")) {

View File

@ -1386,7 +1386,7 @@ public class CommunicationRequest extends DomainResource {
this.requester = new Reference(); this.requester = new Reference();
return this.requester; return this.requester;
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.status"); throw new FHIRException("Cannot call addChild on a singleton property CommunicationRequest.status");
} else if (name.equals("encounter")) { } else if (name.equals("encounter")) {
this.encounter = new Reference(); this.encounter = new Reference();
return this.encounter; return this.encounter;
@ -1399,7 +1399,7 @@ public class CommunicationRequest extends DomainResource {
} else if (name.equals("reason")) { } else if (name.equals("reason")) {
return addReason(); return addReason();
} else if (name.equals("requestedOn")) { } else if (name.equals("requestedOn")) {
throw new FHIRException("Cannot call addChild on a primitive type CommunicationRequest.requestedOn"); throw new FHIRException("Cannot call addChild on a singleton property CommunicationRequest.requestedOn");
} else if (name.equals("subject")) { } else if (name.equals("subject")) {
this.subject = new Reference(); this.subject = new Reference();
return this.subject; return this.subject;

View File

@ -596,9 +596,9 @@ public class Composition extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("mode")) { if (name.equals("mode")) {
throw new FHIRException("Cannot call addChild on a primitive type Composition.mode"); throw new FHIRException("Cannot call addChild on a singleton property Composition.mode");
} else if (name.equals("time")) { } else if (name.equals("time")) {
throw new FHIRException("Cannot call addChild on a primitive type Composition.time"); throw new FHIRException("Cannot call addChild on a singleton property Composition.time");
} else if (name.equals("party")) { } else if (name.equals("party")) {
this.party = new Reference(); this.party = new Reference();
return this.party; return this.party;
@ -1400,7 +1400,7 @@ public class Composition extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("title")) { if (name.equals("title")) {
throw new FHIRException("Cannot call addChild on a primitive type Composition.title"); throw new FHIRException("Cannot call addChild on a singleton property Composition.title");
} else if (name.equals("code")) { } else if (name.equals("code")) {
this.code = new CodeableConcept(); this.code = new CodeableConcept();
return this.code; return this.code;
@ -1408,7 +1408,7 @@ public class Composition extends DomainResource {
this.text = new Narrative(); this.text = new Narrative();
return this.text; return this.text;
} else if (name.equals("mode")) { } else if (name.equals("mode")) {
throw new FHIRException("Cannot call addChild on a primitive type Composition.mode"); throw new FHIRException("Cannot call addChild on a singleton property Composition.mode");
} else if (name.equals("orderedBy")) { } else if (name.equals("orderedBy")) {
this.orderedBy = new CodeableConcept(); this.orderedBy = new CodeableConcept();
return this.orderedBy; return this.orderedBy;
@ -2383,7 +2383,7 @@ public class Composition extends DomainResource {
this.identifier = new Identifier(); this.identifier = new Identifier();
return this.identifier; return this.identifier;
} else if (name.equals("date")) { } else if (name.equals("date")) {
throw new FHIRException("Cannot call addChild on a primitive type Composition.date"); throw new FHIRException("Cannot call addChild on a singleton property Composition.date");
} else if (name.equals("type")) { } else if (name.equals("type")) {
this.type = new CodeableConcept(); this.type = new CodeableConcept();
return this.type; return this.type;
@ -2391,11 +2391,11 @@ public class Composition extends DomainResource {
this.class_ = new CodeableConcept(); this.class_ = new CodeableConcept();
return this.class_; return this.class_;
} else if (name.equals("title")) { } else if (name.equals("title")) {
throw new FHIRException("Cannot call addChild on a primitive type Composition.title"); throw new FHIRException("Cannot call addChild on a singleton property Composition.title");
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type Composition.status"); throw new FHIRException("Cannot call addChild on a singleton property Composition.status");
} else if (name.equals("confidentiality")) { } else if (name.equals("confidentiality")) {
throw new FHIRException("Cannot call addChild on a primitive type Composition.confidentiality"); throw new FHIRException("Cannot call addChild on a singleton property Composition.confidentiality");
} else if (name.equals("subject")) { } else if (name.equals("subject")) {
this.subject = new Reference(); this.subject = new Reference();
return this.subject; return this.subject;

View File

@ -198,7 +198,7 @@ public class ConceptMap extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("name")) { if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.name"); throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.name");
} else if (name.equals("telecom")) { } else if (name.equals("telecom")) {
return addTelecom(); return addTelecom();
} else } else
@ -464,9 +464,9 @@ public class ConceptMap extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("codeSystem")) { if (name.equals("codeSystem")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.codeSystem"); throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.codeSystem");
} else if (name.equals("code")) { } else if (name.equals("code")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.code");
} else if (name.equals("target")) { } else if (name.equals("target")) {
return addTarget(); return addTarget();
} else } else
@ -960,13 +960,13 @@ public class ConceptMap extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("codeSystem")) { if (name.equals("codeSystem")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.codeSystem"); throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.codeSystem");
} else if (name.equals("code")) { } else if (name.equals("code")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.code");
} else if (name.equals("equivalence")) { } else if (name.equals("equivalence")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.equivalence"); throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.equivalence");
} else if (name.equals("comments")) { } else if (name.equals("comments")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.comments"); throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.comments");
} else if (name.equals("dependsOn")) { } else if (name.equals("dependsOn")) {
return addDependsOn(); return addDependsOn();
} else if (name.equals("product")) { } else if (name.equals("product")) {
@ -1286,11 +1286,11 @@ public class ConceptMap extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("element")) { if (name.equals("element")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.element"); throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.element");
} else if (name.equals("codeSystem")) { } else if (name.equals("codeSystem")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.codeSystem"); throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.codeSystem");
} else if (name.equals("code")) { } else if (name.equals("code")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.code");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -2443,32 +2443,32 @@ public class ConceptMap extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("url")) { if (name.equals("url")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.url"); throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.url");
} else if (name.equals("identifier")) { } else if (name.equals("identifier")) {
this.identifier = new Identifier(); this.identifier = new Identifier();
return this.identifier; return this.identifier;
} else if (name.equals("version")) { } else if (name.equals("version")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.version"); throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.version");
} else if (name.equals("name")) { } else if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.name"); throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.name");
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.status"); throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.status");
} else if (name.equals("experimental")) { } else if (name.equals("experimental")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.experimental"); throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.experimental");
} else if (name.equals("publisher")) { } else if (name.equals("publisher")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.publisher"); throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.publisher");
} else if (name.equals("contact")) { } else if (name.equals("contact")) {
return addContact(); return addContact();
} else if (name.equals("date")) { } else if (name.equals("date")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.date"); throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.date");
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.description"); throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.description");
} else if (name.equals("useContext")) { } else if (name.equals("useContext")) {
return addUseContext(); return addUseContext();
} else if (name.equals("requirements")) { } else if (name.equals("requirements")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.requirements"); throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.requirements");
} else if (name.equals("copyright")) { } else if (name.equals("copyright")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.copyright"); throw new FHIRException("Cannot call addChild on a singleton property ConceptMap.copyright");
} else if (name.equals("sourceUri")) { } else if (name.equals("sourceUri")) {
this.source = new UriType(); this.source = new UriType();
return this.source; return this.source;

View File

@ -1729,7 +1729,7 @@ public class Condition extends DomainResource {
this.asserter = new Reference(); this.asserter = new Reference();
return this.asserter; return this.asserter;
} else if (name.equals("dateRecorded")) { } else if (name.equals("dateRecorded")) {
throw new FHIRException("Cannot call addChild on a primitive type Condition.dateRecorded"); throw new FHIRException("Cannot call addChild on a singleton property Condition.dateRecorded");
} else if (name.equals("code")) { } else if (name.equals("code")) {
this.code = new CodeableConcept(); this.code = new CodeableConcept();
return this.code; return this.code;
@ -1737,9 +1737,9 @@ public class Condition extends DomainResource {
this.category = new CodeableConcept(); this.category = new CodeableConcept();
return this.category; return this.category;
} else if (name.equals("clinicalStatus")) { } else if (name.equals("clinicalStatus")) {
throw new FHIRException("Cannot call addChild on a primitive type Condition.clinicalStatus"); throw new FHIRException("Cannot call addChild on a singleton property Condition.clinicalStatus");
} else if (name.equals("verificationStatus")) { } else if (name.equals("verificationStatus")) {
throw new FHIRException("Cannot call addChild on a primitive type Condition.verificationStatus"); throw new FHIRException("Cannot call addChild on a singleton property Condition.verificationStatus");
} else if (name.equals("severity")) { } else if (name.equals("severity")) {
this.severity = new CodeableConcept(); this.severity = new CodeableConcept();
return this.severity; return this.severity;
@ -1784,7 +1784,7 @@ public class Condition extends DomainResource {
} else if (name.equals("bodySite")) { } else if (name.equals("bodySite")) {
return addBodySite(); return addBodySite();
} else if (name.equals("notes")) { } else if (name.equals("notes")) {
throw new FHIRException("Cannot call addChild on a primitive type Condition.notes"); throw new FHIRException("Cannot call addChild on a singleton property Condition.notes");
} else } else
return super.addChild(name); return super.addChild(name);
} }

View File

@ -2033,7 +2033,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("name")) { if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.name"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.name");
} else if (name.equals("telecom")) { } else if (name.equals("telecom")) {
return addTelecom(); return addTelecom();
} else } else
@ -2310,11 +2310,11 @@ public class Conformance extends DomainResource implements IBaseConformance {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("name")) { if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.name"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.name");
} else if (name.equals("version")) { } else if (name.equals("version")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.version"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.version");
} else if (name.equals("releaseDate")) { } else if (name.equals("releaseDate")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.releaseDate"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.releaseDate");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -2533,9 +2533,9 @@ public class Conformance extends DomainResource implements IBaseConformance {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("description")) { if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.description"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.description");
} else if (name.equals("url")) { } else if (name.equals("url")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.url"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.url");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -3153,9 +3153,9 @@ public class Conformance extends DomainResource implements IBaseConformance {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("mode")) { if (name.equals("mode")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.mode"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.mode");
} else if (name.equals("documentation")) { } else if (name.equals("documentation")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.documentation"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.documentation");
} else if (name.equals("security")) { } else if (name.equals("security")) {
this.security = new ConformanceRestSecurityComponent(); this.security = new ConformanceRestSecurityComponent();
return this.security; return this.security;
@ -3164,13 +3164,13 @@ public class Conformance extends DomainResource implements IBaseConformance {
} else if (name.equals("interaction")) { } else if (name.equals("interaction")) {
return addInteraction(); return addInteraction();
} else if (name.equals("transactionMode")) { } else if (name.equals("transactionMode")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.transactionMode"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.transactionMode");
} else if (name.equals("searchParam")) { } else if (name.equals("searchParam")) {
return addSearchParam(); return addSearchParam();
} else if (name.equals("operation")) { } else if (name.equals("operation")) {
return addOperation(); return addOperation();
} else if (name.equals("compartment")) { } else if (name.equals("compartment")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.compartment"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.compartment");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -3519,11 +3519,11 @@ public class Conformance extends DomainResource implements IBaseConformance {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("cors")) { if (name.equals("cors")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.cors"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.cors");
} else if (name.equals("service")) { } else if (name.equals("service")) {
return addService(); return addService();
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.description"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.description");
} else if (name.equals("certificate")) { } else if (name.equals("certificate")) {
return addCertificate(); return addCertificate();
} else } else
@ -3737,9 +3737,9 @@ public class Conformance extends DomainResource implements IBaseConformance {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("type")) { if (name.equals("type")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.type"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.type");
} else if (name.equals("blob")) { } else if (name.equals("blob")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.blob"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.blob");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -4663,28 +4663,28 @@ public class Conformance extends DomainResource implements IBaseConformance {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("type")) { if (name.equals("type")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.type"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.type");
} else if (name.equals("profile")) { } else if (name.equals("profile")) {
this.profile = new Reference(); this.profile = new Reference();
return this.profile; return this.profile;
} else if (name.equals("interaction")) { } else if (name.equals("interaction")) {
return addInteraction(); return addInteraction();
} else if (name.equals("versioning")) { } else if (name.equals("versioning")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.versioning"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.versioning");
} else if (name.equals("readHistory")) { } else if (name.equals("readHistory")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.readHistory"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.readHistory");
} else if (name.equals("updateCreate")) { } else if (name.equals("updateCreate")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.updateCreate"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.updateCreate");
} else if (name.equals("conditionalCreate")) { } else if (name.equals("conditionalCreate")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.conditionalCreate"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.conditionalCreate");
} else if (name.equals("conditionalUpdate")) { } else if (name.equals("conditionalUpdate")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.conditionalUpdate"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.conditionalUpdate");
} else if (name.equals("conditionalDelete")) { } else if (name.equals("conditionalDelete")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.conditionalDelete"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.conditionalDelete");
} else if (name.equals("searchInclude")) { } else if (name.equals("searchInclude")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.searchInclude"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.searchInclude");
} else if (name.equals("searchRevInclude")) { } else if (name.equals("searchRevInclude")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.searchRevInclude"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.searchRevInclude");
} else if (name.equals("searchParam")) { } else if (name.equals("searchParam")) {
return addSearchParam(); return addSearchParam();
} else } else
@ -4955,9 +4955,9 @@ public class Conformance extends DomainResource implements IBaseConformance {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("code")) { if (name.equals("code")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.code"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.code");
} else if (name.equals("documentation")) { } else if (name.equals("documentation")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.documentation"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.documentation");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -5549,19 +5549,19 @@ public class Conformance extends DomainResource implements IBaseConformance {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("name")) { if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.name"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.name");
} else if (name.equals("definition")) { } else if (name.equals("definition")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.definition"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.definition");
} else if (name.equals("type")) { } else if (name.equals("type")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.type"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.type");
} else if (name.equals("documentation")) { } else if (name.equals("documentation")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.documentation"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.documentation");
} else if (name.equals("target")) { } else if (name.equals("target")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.target"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.target");
} else if (name.equals("modifier")) { } else if (name.equals("modifier")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.modifier"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.modifier");
} else if (name.equals("chain")) { } else if (name.equals("chain")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.chain"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.chain");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -5804,9 +5804,9 @@ public class Conformance extends DomainResource implements IBaseConformance {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("code")) { if (name.equals("code")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.code"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.code");
} else if (name.equals("documentation")) { } else if (name.equals("documentation")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.documentation"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.documentation");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -6017,7 +6017,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("name")) { if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.name"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.name");
} else if (name.equals("definition")) { } else if (name.equals("definition")) {
this.definition = new Reference(); this.definition = new Reference();
return this.definition; return this.definition;
@ -6350,9 +6350,9 @@ public class Conformance extends DomainResource implements IBaseConformance {
if (name.equals("endpoint")) { if (name.equals("endpoint")) {
return addEndpoint(); return addEndpoint();
} else if (name.equals("reliableCache")) { } else if (name.equals("reliableCache")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.reliableCache"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.reliableCache");
} else if (name.equals("documentation")) { } else if (name.equals("documentation")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.documentation"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.documentation");
} else if (name.equals("event")) { } else if (name.equals("event")) {
return addEvent(); return addEvent();
} else } else
@ -6556,7 +6556,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
this.protocol = new Coding(); this.protocol = new Coding();
return this.protocol; return this.protocol;
} else if (name.equals("address")) { } else if (name.equals("address")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.address"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.address");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -7080,11 +7080,11 @@ public class Conformance extends DomainResource implements IBaseConformance {
this.code = new Coding(); this.code = new Coding();
return this.code; return this.code;
} else if (name.equals("category")) { } else if (name.equals("category")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.category"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.category");
} else if (name.equals("mode")) { } else if (name.equals("mode")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.mode"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.mode");
} else if (name.equals("focus")) { } else if (name.equals("focus")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.focus"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.focus");
} else if (name.equals("request")) { } else if (name.equals("request")) {
this.request = new Reference(); this.request = new Reference();
return this.request; return this.request;
@ -7092,7 +7092,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
this.response = new Reference(); this.response = new Reference();
return this.response; return this.response;
} else if (name.equals("documentation")) { } else if (name.equals("documentation")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.documentation"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.documentation");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -7393,9 +7393,9 @@ public class Conformance extends DomainResource implements IBaseConformance {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("mode")) { if (name.equals("mode")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.mode"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.mode");
} else if (name.equals("documentation")) { } else if (name.equals("documentation")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.documentation"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.documentation");
} else if (name.equals("profile")) { } else if (name.equals("profile")) {
this.profile = new Reference(); this.profile = new Reference();
return this.profile; return this.profile;
@ -8942,29 +8942,29 @@ public class Conformance extends DomainResource implements IBaseConformance {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("url")) { if (name.equals("url")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.url"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.url");
} else if (name.equals("version")) { } else if (name.equals("version")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.version"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.version");
} else if (name.equals("name")) { } else if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.name"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.name");
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.status"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.status");
} else if (name.equals("experimental")) { } else if (name.equals("experimental")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.experimental"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.experimental");
} else if (name.equals("publisher")) { } else if (name.equals("publisher")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.publisher"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.publisher");
} else if (name.equals("contact")) { } else if (name.equals("contact")) {
return addContact(); return addContact();
} else if (name.equals("date")) { } else if (name.equals("date")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.date"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.date");
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.description"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.description");
} else if (name.equals("requirements")) { } else if (name.equals("requirements")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.requirements"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.requirements");
} else if (name.equals("copyright")) { } else if (name.equals("copyright")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.copyright"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.copyright");
} else if (name.equals("kind")) { } else if (name.equals("kind")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.kind"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.kind");
} else if (name.equals("software")) { } else if (name.equals("software")) {
this.software = new ConformanceSoftwareComponent(); this.software = new ConformanceSoftwareComponent();
return this.software; return this.software;
@ -8972,11 +8972,11 @@ public class Conformance extends DomainResource implements IBaseConformance {
this.implementation = new ConformanceImplementationComponent(); this.implementation = new ConformanceImplementationComponent();
return this.implementation; return this.implementation;
} else if (name.equals("fhirVersion")) { } else if (name.equals("fhirVersion")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.fhirVersion"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.fhirVersion");
} else if (name.equals("acceptUnknown")) { } else if (name.equals("acceptUnknown")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.acceptUnknown"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.acceptUnknown");
} else if (name.equals("format")) { } else if (name.equals("format")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.format"); throw new FHIRException("Cannot call addChild on a singleton property Conformance.format");
} else if (name.equals("profile")) { } else if (name.equals("profile")) {
return addProfile(); return addProfile();
} else if (name.equals("rest")) { } else if (name.equals("rest")) {

View File

@ -735,13 +735,13 @@ public class ContactPoint extends Type implements ICompositeType {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("system")) { if (name.equals("system")) {
throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.system"); throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.system");
} else if (name.equals("value")) { } else if (name.equals("value")) {
throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.value"); throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.value");
} else if (name.equals("use")) { } else if (name.equals("use")) {
throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.use"); throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.use");
} else if (name.equals("rank")) { } else if (name.equals("rank")) {
throw new FHIRException("Cannot call addChild on a primitive type ContactPoint.rank"); throw new FHIRException("Cannot call addChild on a singleton property ContactPoint.rank");
} else if (name.equals("period")) { } else if (name.equals("period")) {
this.period = new Period(); this.period = new Period();
return this.period; return this.period;

View File

@ -750,7 +750,7 @@ public class Contract extends DomainResource {
this.identifier = new Identifier(); this.identifier = new Identifier();
return this.identifier; return this.identifier;
} else if (name.equals("effectiveTime")) { } else if (name.equals("effectiveTime")) {
throw new FHIRException("Cannot call addChild on a primitive type Contract.effectiveTime"); throw new FHIRException("Cannot call addChild on a singleton property Contract.effectiveTime");
} else if (name.equals("quantity")) { } else if (name.equals("quantity")) {
this.quantity = new SimpleQuantity(); this.quantity = new SimpleQuantity();
return this.quantity; return this.quantity;
@ -758,9 +758,9 @@ public class Contract extends DomainResource {
this.unitPrice = new Money(); this.unitPrice = new Money();
return this.unitPrice; return this.unitPrice;
} else if (name.equals("factor")) { } else if (name.equals("factor")) {
throw new FHIRException("Cannot call addChild on a primitive type Contract.factor"); throw new FHIRException("Cannot call addChild on a singleton property Contract.factor");
} else if (name.equals("points")) { } else if (name.equals("points")) {
throw new FHIRException("Cannot call addChild on a primitive type Contract.points"); throw new FHIRException("Cannot call addChild on a singleton property Contract.points");
} else if (name.equals("net")) { } else if (name.equals("net")) {
this.net = new Money(); this.net = new Money();
return this.net; return this.net;
@ -1022,7 +1022,7 @@ public class Contract extends DomainResource {
this.party = new Reference(); this.party = new Reference();
return this.party; return this.party;
} else if (name.equals("signature")) { } else if (name.equals("signature")) {
throw new FHIRException("Cannot call addChild on a primitive type Contract.signature"); throw new FHIRException("Cannot call addChild on a singleton property Contract.signature");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1710,7 +1710,7 @@ public class Contract extends DomainResource {
this.identifier = new Identifier(); this.identifier = new Identifier();
return this.identifier; return this.identifier;
} else if (name.equals("issued")) { } else if (name.equals("issued")) {
throw new FHIRException("Cannot call addChild on a primitive type Contract.issued"); throw new FHIRException("Cannot call addChild on a singleton property Contract.issued");
} else if (name.equals("applies")) { } else if (name.equals("applies")) {
this.applies = new Period(); this.applies = new Period();
return this.applies; return this.applies;
@ -1730,7 +1730,7 @@ public class Contract extends DomainResource {
} else if (name.equals("actor")) { } else if (name.equals("actor")) {
return addActor(); return addActor();
} else if (name.equals("text")) { } else if (name.equals("text")) {
throw new FHIRException("Cannot call addChild on a primitive type Contract.text"); throw new FHIRException("Cannot call addChild on a singleton property Contract.text");
} else if (name.equals("valuedItem")) { } else if (name.equals("valuedItem")) {
return addValuedItem(); return addValuedItem();
} else if (name.equals("group")) { } else if (name.equals("group")) {
@ -2531,7 +2531,7 @@ public class Contract extends DomainResource {
this.identifier = new Identifier(); this.identifier = new Identifier();
return this.identifier; return this.identifier;
} else if (name.equals("effectiveTime")) { } else if (name.equals("effectiveTime")) {
throw new FHIRException("Cannot call addChild on a primitive type Contract.effectiveTime"); throw new FHIRException("Cannot call addChild on a singleton property Contract.effectiveTime");
} else if (name.equals("quantity")) { } else if (name.equals("quantity")) {
this.quantity = new SimpleQuantity(); this.quantity = new SimpleQuantity();
return this.quantity; return this.quantity;
@ -2539,9 +2539,9 @@ public class Contract extends DomainResource {
this.unitPrice = new Money(); this.unitPrice = new Money();
return this.unitPrice; return this.unitPrice;
} else if (name.equals("factor")) { } else if (name.equals("factor")) {
throw new FHIRException("Cannot call addChild on a primitive type Contract.factor"); throw new FHIRException("Cannot call addChild on a singleton property Contract.factor");
} else if (name.equals("points")) { } else if (name.equals("points")) {
throw new FHIRException("Cannot call addChild on a primitive type Contract.points"); throw new FHIRException("Cannot call addChild on a singleton property Contract.points");
} else if (name.equals("net")) { } else if (name.equals("net")) {
this.net = new Money(); this.net = new Money();
return this.net; return this.net;
@ -4148,7 +4148,7 @@ public class Contract extends DomainResource {
this.identifier = new Identifier(); this.identifier = new Identifier();
return this.identifier; return this.identifier;
} else if (name.equals("issued")) { } else if (name.equals("issued")) {
throw new FHIRException("Cannot call addChild on a primitive type Contract.issued"); throw new FHIRException("Cannot call addChild on a singleton property Contract.issued");
} else if (name.equals("applies")) { } else if (name.equals("applies")) {
this.applies = new Period(); this.applies = new Period();
return this.applies; return this.applies;

View File

@ -933,15 +933,15 @@ public class Coverage extends DomainResource {
} else if (name.equals("identifier")) { } else if (name.equals("identifier")) {
return addIdentifier(); return addIdentifier();
} else if (name.equals("group")) { } else if (name.equals("group")) {
throw new FHIRException("Cannot call addChild on a primitive type Coverage.group"); throw new FHIRException("Cannot call addChild on a singleton property Coverage.group");
} else if (name.equals("plan")) { } else if (name.equals("plan")) {
throw new FHIRException("Cannot call addChild on a primitive type Coverage.plan"); throw new FHIRException("Cannot call addChild on a singleton property Coverage.plan");
} else if (name.equals("subPlan")) { } else if (name.equals("subPlan")) {
throw new FHIRException("Cannot call addChild on a primitive type Coverage.subPlan"); throw new FHIRException("Cannot call addChild on a singleton property Coverage.subPlan");
} else if (name.equals("dependent")) { } else if (name.equals("dependent")) {
throw new FHIRException("Cannot call addChild on a primitive type Coverage.dependent"); throw new FHIRException("Cannot call addChild on a singleton property Coverage.dependent");
} else if (name.equals("sequence")) { } else if (name.equals("sequence")) {
throw new FHIRException("Cannot call addChild on a primitive type Coverage.sequence"); throw new FHIRException("Cannot call addChild on a singleton property Coverage.sequence");
} else if (name.equals("subscriber")) { } else if (name.equals("subscriber")) {
this.subscriber = new Reference(); this.subscriber = new Reference();
return this.subscriber; return this.subscriber;

View File

@ -399,7 +399,7 @@ public class DataElement extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("name")) { if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type DataElement.name"); throw new FHIRException("Cannot call addChild on a singleton property DataElement.name");
} else if (name.equals("telecom")) { } else if (name.equals("telecom")) {
return addTelecom(); return addTelecom();
} else } else
@ -756,13 +756,13 @@ public class DataElement extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("identity")) { if (name.equals("identity")) {
throw new FHIRException("Cannot call addChild on a primitive type DataElement.identity"); throw new FHIRException("Cannot call addChild on a singleton property DataElement.identity");
} else if (name.equals("uri")) { } else if (name.equals("uri")) {
throw new FHIRException("Cannot call addChild on a primitive type DataElement.uri"); throw new FHIRException("Cannot call addChild on a singleton property DataElement.uri");
} else if (name.equals("name")) { } else if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type DataElement.name"); throw new FHIRException("Cannot call addChild on a singleton property DataElement.name");
} else if (name.equals("comments")) { } else if (name.equals("comments")) {
throw new FHIRException("Cannot call addChild on a primitive type DataElement.comments"); throw new FHIRException("Cannot call addChild on a singleton property DataElement.comments");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1794,29 +1794,29 @@ public class DataElement extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("url")) { if (name.equals("url")) {
throw new FHIRException("Cannot call addChild on a primitive type DataElement.url"); throw new FHIRException("Cannot call addChild on a singleton property DataElement.url");
} else if (name.equals("identifier")) { } else if (name.equals("identifier")) {
return addIdentifier(); return addIdentifier();
} else if (name.equals("version")) { } else if (name.equals("version")) {
throw new FHIRException("Cannot call addChild on a primitive type DataElement.version"); throw new FHIRException("Cannot call addChild on a singleton property DataElement.version");
} else if (name.equals("name")) { } else if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type DataElement.name"); throw new FHIRException("Cannot call addChild on a singleton property DataElement.name");
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type DataElement.status"); throw new FHIRException("Cannot call addChild on a singleton property DataElement.status");
} else if (name.equals("experimental")) { } else if (name.equals("experimental")) {
throw new FHIRException("Cannot call addChild on a primitive type DataElement.experimental"); throw new FHIRException("Cannot call addChild on a singleton property DataElement.experimental");
} else if (name.equals("publisher")) { } else if (name.equals("publisher")) {
throw new FHIRException("Cannot call addChild on a primitive type DataElement.publisher"); throw new FHIRException("Cannot call addChild on a singleton property DataElement.publisher");
} else if (name.equals("contact")) { } else if (name.equals("contact")) {
return addContact(); return addContact();
} else if (name.equals("date")) { } else if (name.equals("date")) {
throw new FHIRException("Cannot call addChild on a primitive type DataElement.date"); throw new FHIRException("Cannot call addChild on a singleton property DataElement.date");
} else if (name.equals("useContext")) { } else if (name.equals("useContext")) {
return addUseContext(); return addUseContext();
} else if (name.equals("copyright")) { } else if (name.equals("copyright")) {
throw new FHIRException("Cannot call addChild on a primitive type DataElement.copyright"); throw new FHIRException("Cannot call addChild on a singleton property DataElement.copyright");
} else if (name.equals("stringency")) { } else if (name.equals("stringency")) {
throw new FHIRException("Cannot call addChild on a primitive type DataElement.stringency"); throw new FHIRException("Cannot call addChild on a singleton property DataElement.stringency");
} else if (name.equals("mapping")) { } else if (name.equals("mapping")) {
return addMapping(); return addMapping();
} else if (name.equals("element")) { } else if (name.equals("element")) {

View File

@ -405,7 +405,7 @@ public class DetectedIssue extends DomainResource {
this.action = new CodeableConcept(); this.action = new CodeableConcept();
return this.action; return this.action;
} else if (name.equals("date")) { } else if (name.equals("date")) {
throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.date"); throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.date");
} else if (name.equals("author")) { } else if (name.equals("author")) {
this.author = new Reference(); this.author = new Reference();
return this.author; return this.author;
@ -1114,13 +1114,13 @@ public class DetectedIssue extends DomainResource {
this.category = new CodeableConcept(); this.category = new CodeableConcept();
return this.category; return this.category;
} else if (name.equals("severity")) { } else if (name.equals("severity")) {
throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.severity"); throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.severity");
} else if (name.equals("implicated")) { } else if (name.equals("implicated")) {
return addImplicated(); return addImplicated();
} else if (name.equals("detail")) { } else if (name.equals("detail")) {
throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.detail"); throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.detail");
} else if (name.equals("date")) { } else if (name.equals("date")) {
throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.date"); throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.date");
} else if (name.equals("author")) { } else if (name.equals("author")) {
this.author = new Reference(); this.author = new Reference();
return this.author; return this.author;
@ -1128,7 +1128,7 @@ public class DetectedIssue extends DomainResource {
this.identifier = new Identifier(); this.identifier = new Identifier();
return this.identifier; return this.identifier;
} else if (name.equals("reference")) { } else if (name.equals("reference")) {
throw new FHIRException("Cannot call addChild on a primitive type DetectedIssue.reference"); throw new FHIRException("Cannot call addChild on a singleton property DetectedIssue.reference");
} else if (name.equals("mitigation")) { } else if (name.equals("mitigation")) {
return addMitigation(); return addMitigation();
} else } else

View File

@ -1267,21 +1267,21 @@ public class Device extends DomainResource {
} else if (name.equals("note")) { } else if (name.equals("note")) {
return addNote(); return addNote();
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type Device.status"); throw new FHIRException("Cannot call addChild on a singleton property Device.status");
} else if (name.equals("manufacturer")) { } else if (name.equals("manufacturer")) {
throw new FHIRException("Cannot call addChild on a primitive type Device.manufacturer"); throw new FHIRException("Cannot call addChild on a singleton property Device.manufacturer");
} else if (name.equals("model")) { } else if (name.equals("model")) {
throw new FHIRException("Cannot call addChild on a primitive type Device.model"); throw new FHIRException("Cannot call addChild on a singleton property Device.model");
} else if (name.equals("version")) { } else if (name.equals("version")) {
throw new FHIRException("Cannot call addChild on a primitive type Device.version"); throw new FHIRException("Cannot call addChild on a singleton property Device.version");
} else if (name.equals("manufactureDate")) { } else if (name.equals("manufactureDate")) {
throw new FHIRException("Cannot call addChild on a primitive type Device.manufactureDate"); throw new FHIRException("Cannot call addChild on a singleton property Device.manufactureDate");
} else if (name.equals("expiry")) { } else if (name.equals("expiry")) {
throw new FHIRException("Cannot call addChild on a primitive type Device.expiry"); throw new FHIRException("Cannot call addChild on a singleton property Device.expiry");
} else if (name.equals("udi")) { } else if (name.equals("udi")) {
throw new FHIRException("Cannot call addChild on a primitive type Device.udi"); throw new FHIRException("Cannot call addChild on a singleton property Device.udi");
} else if (name.equals("lotNumber")) { } else if (name.equals("lotNumber")) {
throw new FHIRException("Cannot call addChild on a primitive type Device.lotNumber"); throw new FHIRException("Cannot call addChild on a singleton property Device.lotNumber");
} else if (name.equals("owner")) { } else if (name.equals("owner")) {
this.owner = new Reference(); this.owner = new Reference();
return this.owner; return this.owner;
@ -1294,7 +1294,7 @@ public class Device extends DomainResource {
} else if (name.equals("contact")) { } else if (name.equals("contact")) {
return addContact(); return addContact();
} else if (name.equals("url")) { } else if (name.equals("url")) {
throw new FHIRException("Cannot call addChild on a primitive type Device.url"); throw new FHIRException("Cannot call addChild on a singleton property Device.url");
} else } else
return super.addChild(name); return super.addChild(name);
} }

View File

@ -527,7 +527,7 @@ public class DeviceComponent extends DomainResource {
this.componentId = new Identifier(); this.componentId = new Identifier();
return this.componentId; return this.componentId;
} else if (name.equals("productionSpec")) { } else if (name.equals("productionSpec")) {
throw new FHIRException("Cannot call addChild on a primitive type DeviceComponent.productionSpec"); throw new FHIRException("Cannot call addChild on a singleton property DeviceComponent.productionSpec");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1178,7 +1178,7 @@ public class DeviceComponent extends DomainResource {
this.identifier = new Identifier(); this.identifier = new Identifier();
return this.identifier; return this.identifier;
} else if (name.equals("lastSystemChange")) { } else if (name.equals("lastSystemChange")) {
throw new FHIRException("Cannot call addChild on a primitive type DeviceComponent.lastSystemChange"); throw new FHIRException("Cannot call addChild on a singleton property DeviceComponent.lastSystemChange");
} else if (name.equals("source")) { } else if (name.equals("source")) {
this.source = new Reference(); this.source = new Reference();
return this.source; return this.source;
@ -1191,7 +1191,7 @@ public class DeviceComponent extends DomainResource {
this.parameterGroup = new CodeableConcept(); this.parameterGroup = new CodeableConcept();
return this.parameterGroup; return this.parameterGroup;
} else if (name.equals("measurementPrinciple")) { } else if (name.equals("measurementPrinciple")) {
throw new FHIRException("Cannot call addChild on a primitive type DeviceComponent.measurementPrinciple"); throw new FHIRException("Cannot call addChild on a singleton property DeviceComponent.measurementPrinciple");
} else if (name.equals("productionSpecification")) { } else if (name.equals("productionSpecification")) {
return addProductionSpecification(); return addProductionSpecification();
} else if (name.equals("languageCode")) { } else if (name.equals("languageCode")) {

View File

@ -1082,11 +1082,11 @@ public class DeviceMetric extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("type")) { if (name.equals("type")) {
throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.type"); throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.type");
} else if (name.equals("state")) { } else if (name.equals("state")) {
throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.state"); throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.state");
} else if (name.equals("time")) { } else if (name.equals("time")) {
throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.time"); throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.time");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1836,11 +1836,11 @@ public class DeviceMetric extends DomainResource {
this.parent = new Reference(); this.parent = new Reference();
return this.parent; return this.parent;
} else if (name.equals("operationalStatus")) { } else if (name.equals("operationalStatus")) {
throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.operationalStatus"); throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.operationalStatus");
} else if (name.equals("color")) { } else if (name.equals("color")) {
throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.color"); throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.color");
} else if (name.equals("category")) { } else if (name.equals("category")) {
throw new FHIRException("Cannot call addChild on a primitive type DeviceMetric.category"); throw new FHIRException("Cannot call addChild on a singleton property DeviceMetric.category");
} else if (name.equals("measurementPeriod")) { } else if (name.equals("measurementPeriod")) {
this.measurementPeriod = new Timing(); this.measurementPeriod = new Timing();
return this.measurementPeriod; return this.measurementPeriod;

View File

@ -1390,7 +1390,7 @@ public class DeviceUseRequest extends DomainResource {
this.bodySite = new Reference(); this.bodySite = new Reference();
return this.bodySite; return this.bodySite;
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type DeviceUseRequest.status"); throw new FHIRException("Cannot call addChild on a singleton property DeviceUseRequest.status");
} else if (name.equals("device")) { } else if (name.equals("device")) {
this.device = new Reference(); this.device = new Reference();
return this.device; return this.device;
@ -1402,13 +1402,13 @@ public class DeviceUseRequest extends DomainResource {
} else if (name.equals("indication")) { } else if (name.equals("indication")) {
return addIndication(); return addIndication();
} else if (name.equals("notes")) { } else if (name.equals("notes")) {
throw new FHIRException("Cannot call addChild on a primitive type DeviceUseRequest.notes"); throw new FHIRException("Cannot call addChild on a singleton property DeviceUseRequest.notes");
} else if (name.equals("prnReason")) { } else if (name.equals("prnReason")) {
return addPrnReason(); return addPrnReason();
} else if (name.equals("orderedOn")) { } else if (name.equals("orderedOn")) {
throw new FHIRException("Cannot call addChild on a primitive type DeviceUseRequest.orderedOn"); throw new FHIRException("Cannot call addChild on a singleton property DeviceUseRequest.orderedOn");
} else if (name.equals("recordedOn")) { } else if (name.equals("recordedOn")) {
throw new FHIRException("Cannot call addChild on a primitive type DeviceUseRequest.recordedOn"); throw new FHIRException("Cannot call addChild on a singleton property DeviceUseRequest.recordedOn");
} else if (name.equals("subject")) { } else if (name.equals("subject")) {
this.subject = new Reference(); this.subject = new Reference();
return this.subject; return this.subject;
@ -1422,7 +1422,7 @@ public class DeviceUseRequest extends DomainResource {
this.timing = new DateTimeType(); this.timing = new DateTimeType();
return this.timing; return this.timing;
} else if (name.equals("priority")) { } else if (name.equals("priority")) {
throw new FHIRException("Cannot call addChild on a primitive type DeviceUseRequest.priority"); throw new FHIRException("Cannot call addChild on a singleton property DeviceUseRequest.priority");
} else } else
return super.addChild(name); return super.addChild(name);
} }

View File

@ -659,9 +659,9 @@ public class DeviceUseStatement extends DomainResource {
} else if (name.equals("indication")) { } else if (name.equals("indication")) {
return addIndication(); return addIndication();
} else if (name.equals("notes")) { } else if (name.equals("notes")) {
throw new FHIRException("Cannot call addChild on a primitive type DeviceUseStatement.notes"); throw new FHIRException("Cannot call addChild on a singleton property DeviceUseStatement.notes");
} else if (name.equals("recordedOn")) { } else if (name.equals("recordedOn")) {
throw new FHIRException("Cannot call addChild on a primitive type DeviceUseStatement.recordedOn"); throw new FHIRException("Cannot call addChild on a singleton property DeviceUseStatement.recordedOn");
} else if (name.equals("subject")) { } else if (name.equals("subject")) {
this.subject = new Reference(); this.subject = new Reference();
return this.subject; return this.subject;

View File

@ -792,12 +792,12 @@ public class DiagnosticOrder extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("status")) { if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type DiagnosticOrder.status"); throw new FHIRException("Cannot call addChild on a singleton property DiagnosticOrder.status");
} else if (name.equals("description")) { } else if (name.equals("description")) {
this.description = new CodeableConcept(); this.description = new CodeableConcept();
return this.description; return this.description;
} else if (name.equals("dateTime")) { } else if (name.equals("dateTime")) {
throw new FHIRException("Cannot call addChild on a primitive type DiagnosticOrder.dateTime"); throw new FHIRException("Cannot call addChild on a singleton property DiagnosticOrder.dateTime");
} else if (name.equals("actor")) { } else if (name.equals("actor")) {
this.actor = new Reference(); this.actor = new Reference();
return this.actor; return this.actor;
@ -1174,7 +1174,7 @@ public class DiagnosticOrder extends DomainResource {
this.bodySite = new CodeableConcept(); this.bodySite = new CodeableConcept();
return this.bodySite; return this.bodySite;
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type DiagnosticOrder.status"); throw new FHIRException("Cannot call addChild on a singleton property DiagnosticOrder.status");
} else if (name.equals("event")) { } else if (name.equals("event")) {
return addEvent(); return addEvent();
} else } else
@ -2109,9 +2109,9 @@ public class DiagnosticOrder extends DomainResource {
} else if (name.equals("specimen")) { } else if (name.equals("specimen")) {
return addSpecimen(); return addSpecimen();
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type DiagnosticOrder.status"); throw new FHIRException("Cannot call addChild on a singleton property DiagnosticOrder.status");
} else if (name.equals("priority")) { } else if (name.equals("priority")) {
throw new FHIRException("Cannot call addChild on a primitive type DiagnosticOrder.priority"); throw new FHIRException("Cannot call addChild on a singleton property DiagnosticOrder.priority");
} else if (name.equals("event")) { } else if (name.equals("event")) {
return addEvent(); return addEvent();
} else if (name.equals("item")) { } else if (name.equals("item")) {

View File

@ -445,7 +445,7 @@ public class DiagnosticReport extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("comment")) { if (name.equals("comment")) {
throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.comment"); throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.comment");
} else if (name.equals("link")) { } else if (name.equals("link")) {
this.link = new Reference(); this.link = new Reference();
return this.link; return this.link;
@ -1675,7 +1675,7 @@ public class DiagnosticReport extends DomainResource {
if (name.equals("identifier")) { if (name.equals("identifier")) {
return addIdentifier(); return addIdentifier();
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.status"); throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.status");
} else if (name.equals("category")) { } else if (name.equals("category")) {
this.category = new CodeableConcept(); this.category = new CodeableConcept();
return this.category; return this.category;
@ -1695,7 +1695,7 @@ public class DiagnosticReport extends DomainResource {
this.effective = new Period(); this.effective = new Period();
return this.effective; return this.effective;
} else if (name.equals("issued")) { } else if (name.equals("issued")) {
throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.issued"); throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.issued");
} else if (name.equals("performer")) { } else if (name.equals("performer")) {
this.performer = new Reference(); this.performer = new Reference();
return this.performer; return this.performer;
@ -1710,7 +1710,7 @@ public class DiagnosticReport extends DomainResource {
} else if (name.equals("image")) { } else if (name.equals("image")) {
return addImage(); return addImage();
} else if (name.equals("conclusion")) { } else if (name.equals("conclusion")) {
throw new FHIRException("Cannot call addChild on a primitive type DiagnosticReport.conclusion"); throw new FHIRException("Cannot call addChild on a singleton property DiagnosticReport.conclusion");
} else if (name.equals("codedDiagnosis")) { } else if (name.equals("codedDiagnosis")) {
return addCodedDiagnosis(); return addCodedDiagnosis();
} else if (name.equals("presentedForm")) { } else if (name.equals("presentedForm")) {

View File

@ -1200,13 +1200,13 @@ public class DocumentManifest extends DomainResource {
} else if (name.equals("author")) { } else if (name.equals("author")) {
return addAuthor(); return addAuthor();
} else if (name.equals("created")) { } else if (name.equals("created")) {
throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.created"); throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.created");
} else if (name.equals("source")) { } else if (name.equals("source")) {
throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.source"); throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.source");
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.status"); throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.status");
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type DocumentManifest.description"); throw new FHIRException("Cannot call addChild on a singleton property DocumentManifest.description");
} else if (name.equals("content")) { } else if (name.equals("content")) {
return addContent(); return addContent();
} else if (name.equals("related")) { } else if (name.equals("related")) {

View File

@ -367,7 +367,7 @@ public class DocumentReference extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("code")) { if (name.equals("code")) {
throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.code"); throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.code");
} else if (name.equals("target")) { } else if (name.equals("target")) {
this.target = new Reference(); this.target = new Reference();
return this.target; return this.target;
@ -2317,18 +2317,18 @@ public class DocumentReference extends DomainResource {
this.authenticator = new Reference(); this.authenticator = new Reference();
return this.authenticator; return this.authenticator;
} else if (name.equals("created")) { } else if (name.equals("created")) {
throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.created"); throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.created");
} else if (name.equals("indexed")) { } else if (name.equals("indexed")) {
throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.indexed"); throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.indexed");
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.status"); throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.status");
} else if (name.equals("docStatus")) { } else if (name.equals("docStatus")) {
this.docStatus = new CodeableConcept(); this.docStatus = new CodeableConcept();
return this.docStatus; return this.docStatus;
} else if (name.equals("relatesTo")) { } else if (name.equals("relatesTo")) {
return addRelatesTo(); return addRelatesTo();
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type DocumentReference.description"); throw new FHIRException("Cannot call addChild on a singleton property DocumentReference.description");
} else if (name.equals("securityLabel")) { } else if (name.equals("securityLabel")) {
return addSecurityLabel(); return addSecurityLabel();
} else if (name.equals("content")) { } else if (name.equals("content")) {

View File

@ -260,7 +260,7 @@ public abstract class Element extends Base implements IBaseHasExtensions, IBaseE
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("id")) { if (name.equals("id")) {
throw new FHIRException("Cannot call addChild on a primitive type Element.id"); throw new FHIRException("Cannot call addChild on a singleton property Element.id");
} else if (name.equals("extension")) { } else if (name.equals("extension")) {
return addExtension(); return addExtension();
} else } else

View File

@ -862,13 +862,13 @@ public class ElementDefinition extends Type implements ICompositeType {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("discriminator")) { if (name.equals("discriminator")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.discriminator"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.discriminator");
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.description"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.description");
} else if (name.equals("ordered")) { } else if (name.equals("ordered")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.ordered"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.ordered");
} else if (name.equals("rules")) { } else if (name.equals("rules")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.rules"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.rules");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1158,11 +1158,11 @@ public class ElementDefinition extends Type implements ICompositeType {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("path")) { if (name.equals("path")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.path"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.path");
} else if (name.equals("min")) { } else if (name.equals("min")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.min"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.min");
} else if (name.equals("max")) { } else if (name.equals("max")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.max"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.max");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1492,11 +1492,11 @@ public class ElementDefinition extends Type implements ICompositeType {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("code")) { if (name.equals("code")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.code"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.code");
} else if (name.equals("profile")) { } else if (name.equals("profile")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.profile"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.profile");
} else if (name.equals("aggregation")) { } else if (name.equals("aggregation")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.aggregation"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.aggregation");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1932,15 +1932,15 @@ public class ElementDefinition extends Type implements ICompositeType {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("key")) { if (name.equals("key")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.key"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.key");
} else if (name.equals("requirements")) { } else if (name.equals("requirements")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.requirements"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.requirements");
} else if (name.equals("severity")) { } else if (name.equals("severity")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.severity"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.severity");
} else if (name.equals("human")) { } else if (name.equals("human")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.human"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.human");
} else if (name.equals("xpath")) { } else if (name.equals("xpath")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.xpath"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.xpath");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -2233,9 +2233,9 @@ public class ElementDefinition extends Type implements ICompositeType {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("strength")) { if (name.equals("strength")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.strength"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.strength");
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.description"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.description");
} else if (name.equals("valueSetUri")) { } else if (name.equals("valueSetUri")) {
this.valueSet = new UriType(); this.valueSet = new UriType();
return this.valueSet; return this.valueSet;
@ -2516,11 +2516,11 @@ public class ElementDefinition extends Type implements ICompositeType {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("identity")) { if (name.equals("identity")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.identity"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.identity");
} else if (name.equals("language")) { } else if (name.equals("language")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.language"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.language");
} else if (name.equals("map")) { } else if (name.equals("map")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.map"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.map");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -4555,39 +4555,39 @@ public class ElementDefinition extends Type implements ICompositeType {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("path")) { if (name.equals("path")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.path"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.path");
} else if (name.equals("representation")) { } else if (name.equals("representation")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.representation"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.representation");
} else if (name.equals("name")) { } else if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.name"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.name");
} else if (name.equals("label")) { } else if (name.equals("label")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.label"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.label");
} else if (name.equals("code")) { } else if (name.equals("code")) {
return addCode(); return addCode();
} else if (name.equals("slicing")) { } else if (name.equals("slicing")) {
this.slicing = new ElementDefinitionSlicingComponent(); this.slicing = new ElementDefinitionSlicingComponent();
return this.slicing; return this.slicing;
} else if (name.equals("short")) { } else if (name.equals("short")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.short"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.short");
} else if (name.equals("definition")) { } else if (name.equals("definition")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.definition"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.definition");
} else if (name.equals("comments")) { } else if (name.equals("comments")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.comments"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.comments");
} else if (name.equals("requirements")) { } else if (name.equals("requirements")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.requirements"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.requirements");
} else if (name.equals("alias")) { } else if (name.equals("alias")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.alias"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.alias");
} else if (name.equals("min")) { } else if (name.equals("min")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.min"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.min");
} else if (name.equals("max")) { } else if (name.equals("max")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.max"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.max");
} else if (name.equals("base")) { } else if (name.equals("base")) {
this.base = new ElementDefinitionBaseComponent(); this.base = new ElementDefinitionBaseComponent();
return this.base; return this.base;
} else if (name.equals("type")) { } else if (name.equals("type")) {
return addType(); return addType();
} else if (name.equals("nameReference")) { } else if (name.equals("nameReference")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.nameReference"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.nameReference");
} else if (name.equals("defaultValueBoolean")) { } else if (name.equals("defaultValueBoolean")) {
this.defaultValue = new BooleanType(); this.defaultValue = new BooleanType();
return this.defaultValue; return this.defaultValue;
@ -4688,7 +4688,7 @@ public class ElementDefinition extends Type implements ICompositeType {
this.defaultValue = new Meta(); this.defaultValue = new Meta();
return this.defaultValue; return this.defaultValue;
} else if (name.equals("meaningWhenMissing")) { } else if (name.equals("meaningWhenMissing")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.meaningWhenMissing"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.meaningWhenMissing");
} else if (name.equals("fixedBoolean")) { } else if (name.equals("fixedBoolean")) {
this.fixed = new BooleanType(); this.fixed = new BooleanType();
return this.fixed; return this.fixed;
@ -5185,17 +5185,17 @@ public class ElementDefinition extends Type implements ICompositeType {
this.maxValue = new Meta(); this.maxValue = new Meta();
return this.maxValue; return this.maxValue;
} else if (name.equals("maxLength")) { } else if (name.equals("maxLength")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.maxLength"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.maxLength");
} else if (name.equals("condition")) { } else if (name.equals("condition")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.condition"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.condition");
} else if (name.equals("constraint")) { } else if (name.equals("constraint")) {
return addConstraint(); return addConstraint();
} else if (name.equals("mustSupport")) { } else if (name.equals("mustSupport")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.mustSupport"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.mustSupport");
} else if (name.equals("isModifier")) { } else if (name.equals("isModifier")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.isModifier"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.isModifier");
} else if (name.equals("isSummary")) { } else if (name.equals("isSummary")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.isSummary"); throw new FHIRException("Cannot call addChild on a singleton property ElementDefinition.isSummary");
} else if (name.equals("binding")) { } else if (name.equals("binding")) {
this.binding = new ElementDefinitionBindingComponent(); this.binding = new ElementDefinitionBindingComponent();
return this.binding; return this.binding;

View File

@ -485,7 +485,7 @@ public class EligibilityRequest extends DomainResource {
this.originalRuleset = new Coding(); this.originalRuleset = new Coding();
return this.originalRuleset; return this.originalRuleset;
} else if (name.equals("created")) { } else if (name.equals("created")) {
throw new FHIRException("Cannot call addChild on a primitive type EligibilityRequest.created"); throw new FHIRException("Cannot call addChild on a singleton property EligibilityRequest.created");
} else if (name.equals("target")) { } else if (name.equals("target")) {
this.target = new Reference(); this.target = new Reference();
return this.target; return this.target;

View File

@ -693,9 +693,9 @@ public class EligibilityResponse extends DomainResource {
this.request = new Reference(); this.request = new Reference();
return this.request; return this.request;
} else if (name.equals("outcome")) { } else if (name.equals("outcome")) {
throw new FHIRException("Cannot call addChild on a primitive type EligibilityResponse.outcome"); throw new FHIRException("Cannot call addChild on a singleton property EligibilityResponse.outcome");
} else if (name.equals("disposition")) { } else if (name.equals("disposition")) {
throw new FHIRException("Cannot call addChild on a primitive type EligibilityResponse.disposition"); throw new FHIRException("Cannot call addChild on a singleton property EligibilityResponse.disposition");
} else if (name.equals("ruleset")) { } else if (name.equals("ruleset")) {
this.ruleset = new Coding(); this.ruleset = new Coding();
return this.ruleset; return this.ruleset;
@ -703,7 +703,7 @@ public class EligibilityResponse extends DomainResource {
this.originalRuleset = new Coding(); this.originalRuleset = new Coding();
return this.originalRuleset; return this.originalRuleset;
} else if (name.equals("created")) { } else if (name.equals("created")) {
throw new FHIRException("Cannot call addChild on a primitive type EligibilityResponse.created"); throw new FHIRException("Cannot call addChild on a singleton property EligibilityResponse.created");
} else if (name.equals("organization")) { } else if (name.equals("organization")) {
this.organization = new Reference(); this.organization = new Reference();
return this.organization; return this.organization;

View File

@ -789,7 +789,7 @@ public class Encounter extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("status")) { if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type Encounter.status"); throw new FHIRException("Cannot call addChild on a singleton property Encounter.status");
} else if (name.equals("period")) { } else if (name.equals("period")) {
this.period = new Period(); this.period = new Period();
return this.period; return this.period;
@ -2076,7 +2076,7 @@ public class Encounter extends DomainResource {
this.location = new Reference(); this.location = new Reference();
return this.location; return this.location;
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type Encounter.status"); throw new FHIRException("Cannot call addChild on a singleton property Encounter.status");
} else if (name.equals("period")) { } else if (name.equals("period")) {
this.period = new Period(); this.period = new Period();
return this.period; return this.period;
@ -3370,11 +3370,11 @@ public class Encounter extends DomainResource {
if (name.equals("identifier")) { if (name.equals("identifier")) {
return addIdentifier(); return addIdentifier();
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type Encounter.status"); throw new FHIRException("Cannot call addChild on a singleton property Encounter.status");
} else if (name.equals("statusHistory")) { } else if (name.equals("statusHistory")) {
return addStatusHistory(); return addStatusHistory();
} else if (name.equals("class")) { } else if (name.equals("class")) {
throw new FHIRException("Cannot call addChild on a primitive type Encounter.class"); throw new FHIRException("Cannot call addChild on a singleton property Encounter.class");
} else if (name.equals("type")) { } else if (name.equals("type")) {
return addType(); return addType();
} else if (name.equals("priority")) { } else if (name.equals("priority")) {

View File

@ -667,7 +667,7 @@ public class EnrollmentRequest extends DomainResource {
this.originalRuleset = new Coding(); this.originalRuleset = new Coding();
return this.originalRuleset; return this.originalRuleset;
} else if (name.equals("created")) { } else if (name.equals("created")) {
throw new FHIRException("Cannot call addChild on a primitive type EnrollmentRequest.created"); throw new FHIRException("Cannot call addChild on a singleton property EnrollmentRequest.created");
} else if (name.equals("target")) { } else if (name.equals("target")) {
this.target = new Reference(); this.target = new Reference();
return this.target; return this.target;

View File

@ -693,9 +693,9 @@ public class EnrollmentResponse extends DomainResource {
this.request = new Reference(); this.request = new Reference();
return this.request; return this.request;
} else if (name.equals("outcome")) { } else if (name.equals("outcome")) {
throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.outcome"); throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.outcome");
} else if (name.equals("disposition")) { } else if (name.equals("disposition")) {
throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.disposition"); throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.disposition");
} else if (name.equals("ruleset")) { } else if (name.equals("ruleset")) {
this.ruleset = new Coding(); this.ruleset = new Coding();
return this.ruleset; return this.ruleset;
@ -703,7 +703,7 @@ public class EnrollmentResponse extends DomainResource {
this.originalRuleset = new Coding(); this.originalRuleset = new Coding();
return this.originalRuleset; return this.originalRuleset;
} else if (name.equals("created")) { } else if (name.equals("created")) {
throw new FHIRException("Cannot call addChild on a primitive type EnrollmentResponse.created"); throw new FHIRException("Cannot call addChild on a singleton property EnrollmentResponse.created");
} else if (name.equals("organization")) { } else if (name.equals("organization")) {
this.organization = new Reference(); this.organization = new Reference();
return this.organization; return this.organization;

View File

@ -383,7 +383,7 @@ public class EpisodeOfCare extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("status")) { if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type EpisodeOfCare.status"); throw new FHIRException("Cannot call addChild on a singleton property EpisodeOfCare.status");
} else if (name.equals("period")) { } else if (name.equals("period")) {
this.period = new Period(); this.period = new Period();
return this.period; return this.period;
@ -1418,7 +1418,7 @@ public class EpisodeOfCare extends DomainResource {
if (name.equals("identifier")) { if (name.equals("identifier")) {
return addIdentifier(); return addIdentifier();
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type EpisodeOfCare.status"); throw new FHIRException("Cannot call addChild on a singleton property EpisodeOfCare.status");
} else if (name.equals("statusHistory")) { } else if (name.equals("statusHistory")) {
return addStatusHistory(); return addStatusHistory();
} else if (name.equals("type")) { } else if (name.equals("type")) {

View File

@ -693,9 +693,9 @@ public class ExplanationOfBenefit extends DomainResource {
this.request = new Reference(); this.request = new Reference();
return this.request; return this.request;
} else if (name.equals("outcome")) { } else if (name.equals("outcome")) {
throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.outcome"); throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.outcome");
} else if (name.equals("disposition")) { } else if (name.equals("disposition")) {
throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.disposition"); throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.disposition");
} else if (name.equals("ruleset")) { } else if (name.equals("ruleset")) {
this.ruleset = new Coding(); this.ruleset = new Coding();
return this.ruleset; return this.ruleset;
@ -703,7 +703,7 @@ public class ExplanationOfBenefit extends DomainResource {
this.originalRuleset = new Coding(); this.originalRuleset = new Coding();
return this.originalRuleset; return this.originalRuleset;
} else if (name.equals("created")) { } else if (name.equals("created")) {
throw new FHIRException("Cannot call addChild on a primitive type ExplanationOfBenefit.created"); throw new FHIRException("Cannot call addChild on a singleton property ExplanationOfBenefit.created");
} else if (name.equals("organization")) { } else if (name.equals("organization")) {
this.organization = new Reference(); this.organization = new Reference();
return this.organization; return this.organization;

View File

@ -177,7 +177,7 @@ public class Extension extends BaseExtension implements IBaseExtension<Extension
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("url")) { if (name.equals("url")) {
throw new FHIRException("Cannot call addChild on a primitive type Extension.url"); throw new FHIRException("Cannot call addChild on a singleton property Extension.url");
} else if (name.equals("valueBoolean")) { } else if (name.equals("valueBoolean")) {
this.value = new BooleanType(); this.value = new BooleanType();
return this.value; return this.value;

View File

@ -1389,16 +1389,16 @@ public class FamilyMemberHistory extends DomainResource {
this.patient = new Reference(); this.patient = new Reference();
return this.patient; return this.patient;
} else if (name.equals("date")) { } else if (name.equals("date")) {
throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.date"); throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.date");
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.status"); throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.status");
} else if (name.equals("name")) { } else if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.name"); throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.name");
} else if (name.equals("relationship")) { } else if (name.equals("relationship")) {
this.relationship = new CodeableConcept(); this.relationship = new CodeableConcept();
return this.relationship; return this.relationship;
} else if (name.equals("gender")) { } else if (name.equals("gender")) {
throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.gender"); throw new FHIRException("Cannot call addChild on a singleton property FamilyMemberHistory.gender");
} else if (name.equals("bornPeriod")) { } else if (name.equals("bornPeriod")) {
this.born = new Period(); this.born = new Period();
return this.born; return this.born;

View File

@ -659,7 +659,7 @@ public class Flag extends DomainResource {
this.category = new CodeableConcept(); this.category = new CodeableConcept();
return this.category; return this.category;
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type Flag.status"); throw new FHIRException("Cannot call addChild on a singleton property Flag.status");
} else if (name.equals("period")) { } else if (name.equals("period")) {
this.period = new Period(); this.period = new Period();
return this.period; return this.period;

View File

@ -1326,11 +1326,11 @@ public class Goal extends DomainResource {
} else if (name.equals("category")) { } else if (name.equals("category")) {
return addCategory(); return addCategory();
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type Goal.description"); throw new FHIRException("Cannot call addChild on a singleton property Goal.description");
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type Goal.status"); throw new FHIRException("Cannot call addChild on a singleton property Goal.status");
} else if (name.equals("statusDate")) { } else if (name.equals("statusDate")) {
throw new FHIRException("Cannot call addChild on a primitive type Goal.statusDate"); throw new FHIRException("Cannot call addChild on a singleton property Goal.statusDate");
} else if (name.equals("statusReason")) { } else if (name.equals("statusReason")) {
this.statusReason = new CodeableConcept(); this.statusReason = new CodeableConcept();
return this.statusReason; return this.statusReason;

View File

@ -531,7 +531,7 @@ public class Group extends DomainResource {
this.value = new Range(); this.value = new Range();
return this.value; return this.value;
} else if (name.equals("exclude")) { } else if (name.equals("exclude")) {
throw new FHIRException("Cannot call addChild on a primitive type Group.exclude"); throw new FHIRException("Cannot call addChild on a singleton property Group.exclude");
} else if (name.equals("period")) { } else if (name.equals("period")) {
this.period = new Period(); this.period = new Period();
return this.period; return this.period;
@ -793,7 +793,7 @@ public class Group extends DomainResource {
this.period = new Period(); this.period = new Period();
return this.period; return this.period;
} else if (name.equals("inactive")) { } else if (name.equals("inactive")) {
throw new FHIRException("Cannot call addChild on a primitive type Group.inactive"); throw new FHIRException("Cannot call addChild on a singleton property Group.inactive");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1340,16 +1340,16 @@ public class Group extends DomainResource {
if (name.equals("identifier")) { if (name.equals("identifier")) {
return addIdentifier(); return addIdentifier();
} else if (name.equals("type")) { } else if (name.equals("type")) {
throw new FHIRException("Cannot call addChild on a primitive type Group.type"); throw new FHIRException("Cannot call addChild on a singleton property Group.type");
} else if (name.equals("actual")) { } else if (name.equals("actual")) {
throw new FHIRException("Cannot call addChild on a primitive type Group.actual"); throw new FHIRException("Cannot call addChild on a singleton property Group.actual");
} else if (name.equals("code")) { } else if (name.equals("code")) {
this.code = new CodeableConcept(); this.code = new CodeableConcept();
return this.code; return this.code;
} else if (name.equals("name")) { } else if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type Group.name"); throw new FHIRException("Cannot call addChild on a singleton property Group.name");
} else if (name.equals("quantity")) { } else if (name.equals("quantity")) {
throw new FHIRException("Cannot call addChild on a primitive type Group.quantity"); throw new FHIRException("Cannot call addChild on a singleton property Group.quantity");
} else if (name.equals("characteristic")) { } else if (name.equals("characteristic")) {
return addCharacteristic(); return addCharacteristic();
} else if (name.equals("member")) { } else if (name.equals("member")) {

View File

@ -749,13 +749,13 @@ public class HealthcareService extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("daysOfWeek")) { if (name.equals("daysOfWeek")) {
throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.daysOfWeek"); throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.daysOfWeek");
} else if (name.equals("allDay")) { } else if (name.equals("allDay")) {
throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.allDay"); throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.allDay");
} else if (name.equals("availableStartTime")) { } else if (name.equals("availableStartTime")) {
throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.availableStartTime"); throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.availableStartTime");
} else if (name.equals("availableEndTime")) { } else if (name.equals("availableEndTime")) {
throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.availableEndTime"); throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.availableEndTime");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -949,7 +949,7 @@ public class HealthcareService extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("description")) { if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.description"); throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.description");
} else if (name.equals("during")) { } else if (name.equals("during")) {
this.during = new Period(); this.during = new Period();
return this.during; return this.during;
@ -2412,11 +2412,11 @@ public class HealthcareService extends DomainResource {
this.location = new Reference(); this.location = new Reference();
return this.location; return this.location;
} else if (name.equals("serviceName")) { } else if (name.equals("serviceName")) {
throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.serviceName"); throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.serviceName");
} else if (name.equals("comment")) { } else if (name.equals("comment")) {
throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.comment"); throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.comment");
} else if (name.equals("extraDetails")) { } else if (name.equals("extraDetails")) {
throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.extraDetails"); throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.extraDetails");
} else if (name.equals("photo")) { } else if (name.equals("photo")) {
this.photo = new Attachment(); this.photo = new Attachment();
return this.photo; return this.photo;
@ -2430,23 +2430,23 @@ public class HealthcareService extends DomainResource {
this.eligibility = new CodeableConcept(); this.eligibility = new CodeableConcept();
return this.eligibility; return this.eligibility;
} else if (name.equals("eligibilityNote")) { } else if (name.equals("eligibilityNote")) {
throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.eligibilityNote"); throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.eligibilityNote");
} else if (name.equals("programName")) { } else if (name.equals("programName")) {
throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.programName"); throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.programName");
} else if (name.equals("characteristic")) { } else if (name.equals("characteristic")) {
return addCharacteristic(); return addCharacteristic();
} else if (name.equals("referralMethod")) { } else if (name.equals("referralMethod")) {
return addReferralMethod(); return addReferralMethod();
} else if (name.equals("publicKey")) { } else if (name.equals("publicKey")) {
throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.publicKey"); throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.publicKey");
} else if (name.equals("appointmentRequired")) { } else if (name.equals("appointmentRequired")) {
throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.appointmentRequired"); throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.appointmentRequired");
} else if (name.equals("availableTime")) { } else if (name.equals("availableTime")) {
return addAvailableTime(); return addAvailableTime();
} else if (name.equals("notAvailable")) { } else if (name.equals("notAvailable")) {
return addNotAvailable(); return addNotAvailable();
} else if (name.equals("availabilityExceptions")) { } else if (name.equals("availabilityExceptions")) {
throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.availabilityExceptions"); throw new FHIRException("Cannot call addChild on a singleton property HealthcareService.availabilityExceptions");
} else } else
return super.addChild(name); return super.addChild(name);
} }

View File

@ -750,17 +750,17 @@ public class HumanName extends Type implements ICompositeType {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("use")) { if (name.equals("use")) {
throw new FHIRException("Cannot call addChild on a primitive type HumanName.use"); throw new FHIRException("Cannot call addChild on a singleton property HumanName.use");
} else if (name.equals("text")) { } else if (name.equals("text")) {
throw new FHIRException("Cannot call addChild on a primitive type HumanName.text"); throw new FHIRException("Cannot call addChild on a singleton property HumanName.text");
} else if (name.equals("family")) { } else if (name.equals("family")) {
throw new FHIRException("Cannot call addChild on a primitive type HumanName.family"); throw new FHIRException("Cannot call addChild on a singleton property HumanName.family");
} else if (name.equals("given")) { } else if (name.equals("given")) {
throw new FHIRException("Cannot call addChild on a primitive type HumanName.given"); throw new FHIRException("Cannot call addChild on a singleton property HumanName.given");
} else if (name.equals("prefix")) { } else if (name.equals("prefix")) {
throw new FHIRException("Cannot call addChild on a primitive type HumanName.prefix"); throw new FHIRException("Cannot call addChild on a singleton property HumanName.prefix");
} else if (name.equals("suffix")) { } else if (name.equals("suffix")) {
throw new FHIRException("Cannot call addChild on a primitive type HumanName.suffix"); throw new FHIRException("Cannot call addChild on a singleton property HumanName.suffix");
} else if (name.equals("period")) { } else if (name.equals("period")) {
this.period = new Period(); this.period = new Period();
return this.period; return this.period;

View File

@ -570,14 +570,14 @@ public class Identifier extends Type implements ICompositeType {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("use")) { if (name.equals("use")) {
throw new FHIRException("Cannot call addChild on a primitive type Identifier.use"); throw new FHIRException("Cannot call addChild on a singleton property Identifier.use");
} else if (name.equals("type")) { } else if (name.equals("type")) {
this.type = new CodeableConcept(); this.type = new CodeableConcept();
return this.type; return this.type;
} else if (name.equals("system")) { } else if (name.equals("system")) {
throw new FHIRException("Cannot call addChild on a primitive type Identifier.system"); throw new FHIRException("Cannot call addChild on a singleton property Identifier.system");
} else if (name.equals("value")) { } else if (name.equals("value")) {
throw new FHIRException("Cannot call addChild on a primitive type Identifier.value"); throw new FHIRException("Cannot call addChild on a singleton property Identifier.value");
} else if (name.equals("period")) { } else if (name.equals("period")) {
this.period = new Period(); this.period = new Period();
return this.period; return this.period;

View File

@ -346,9 +346,9 @@ public class ImagingObjectSelection extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("uid")) { if (name.equals("uid")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.uid"); throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.uid");
} else if (name.equals("url")) { } else if (name.equals("url")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.url"); throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.url");
} else if (name.equals("imagingStudy")) { } else if (name.equals("imagingStudy")) {
this.imagingStudy = new Reference(); this.imagingStudy = new Reference();
return this.imagingStudy; return this.imagingStudy;
@ -620,9 +620,9 @@ public class ImagingObjectSelection extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("uid")) { if (name.equals("uid")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.uid"); throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.uid");
} else if (name.equals("url")) { } else if (name.equals("url")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.url"); throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.url");
} else if (name.equals("instance")) { } else if (name.equals("instance")) {
return addInstance(); return addInstance();
} else } else
@ -943,11 +943,11 @@ public class ImagingObjectSelection extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("sopClass")) { if (name.equals("sopClass")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.sopClass"); throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.sopClass");
} else if (name.equals("uid")) { } else if (name.equals("uid")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.uid"); throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.uid");
} else if (name.equals("url")) { } else if (name.equals("url")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.url"); throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.url");
} else if (name.equals("frames")) { } else if (name.equals("frames")) {
return addFrames(); return addFrames();
} else } else
@ -1161,9 +1161,9 @@ public class ImagingObjectSelection extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("frameNumbers")) { if (name.equals("frameNumbers")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.frameNumbers"); throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.frameNumbers");
} else if (name.equals("url")) { } else if (name.equals("url")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.url"); throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.url");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1734,7 +1734,7 @@ public class ImagingObjectSelection extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("uid")) { if (name.equals("uid")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.uid"); throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.uid");
} else if (name.equals("patient")) { } else if (name.equals("patient")) {
this.patient = new Reference(); this.patient = new Reference();
return this.patient; return this.patient;
@ -1742,12 +1742,12 @@ public class ImagingObjectSelection extends DomainResource {
this.title = new CodeableConcept(); this.title = new CodeableConcept();
return this.title; return this.title;
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.description"); throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.description");
} else if (name.equals("author")) { } else if (name.equals("author")) {
this.author = new Reference(); this.author = new Reference();
return this.author; return this.author;
} else if (name.equals("authoringTime")) { } else if (name.equals("authoringTime")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.authoringTime"); throw new FHIRException("Cannot call addChild on a singleton property ImagingObjectSelection.authoringTime");
} else if (name.equals("study")) { } else if (name.equals("study")) {
return addStudy(); return addStudy();
} else } else

View File

@ -856,20 +856,20 @@ public class ImagingStudy extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("number")) { if (name.equals("number")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.number"); throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.number");
} else if (name.equals("modality")) { } else if (name.equals("modality")) {
this.modality = new Coding(); this.modality = new Coding();
return this.modality; return this.modality;
} else if (name.equals("uid")) { } else if (name.equals("uid")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.uid"); throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.uid");
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.description"); throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.description");
} else if (name.equals("numberOfInstances")) { } else if (name.equals("numberOfInstances")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.numberOfInstances"); throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.numberOfInstances");
} else if (name.equals("availability")) { } else if (name.equals("availability")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.availability"); throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.availability");
} else if (name.equals("url")) { } else if (name.equals("url")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.url"); throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.url");
} else if (name.equals("bodySite")) { } else if (name.equals("bodySite")) {
this.bodySite = new Coding(); this.bodySite = new Coding();
return this.bodySite; return this.bodySite;
@ -877,7 +877,7 @@ public class ImagingStudy extends DomainResource {
this.laterality = new Coding(); this.laterality = new Coding();
return this.laterality; return this.laterality;
} else if (name.equals("started")) { } else if (name.equals("started")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.started"); throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.started");
} else if (name.equals("instance")) { } else if (name.equals("instance")) {
return addInstance(); return addInstance();
} else } else
@ -1362,15 +1362,15 @@ public class ImagingStudy extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("number")) { if (name.equals("number")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.number"); throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.number");
} else if (name.equals("uid")) { } else if (name.equals("uid")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.uid"); throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.uid");
} else if (name.equals("sopClass")) { } else if (name.equals("sopClass")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.sopClass"); throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.sopClass");
} else if (name.equals("type")) { } else if (name.equals("type")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.type"); throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.type");
} else if (name.equals("title")) { } else if (name.equals("title")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.title"); throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.title");
} else if (name.equals("content")) { } else if (name.equals("content")) {
return addContent(); return addContent();
} else } else
@ -2503,12 +2503,12 @@ public class ImagingStudy extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("started")) { if (name.equals("started")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.started"); throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.started");
} else if (name.equals("patient")) { } else if (name.equals("patient")) {
this.patient = new Reference(); this.patient = new Reference();
return this.patient; return this.patient;
} else if (name.equals("uid")) { } else if (name.equals("uid")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.uid"); throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.uid");
} else if (name.equals("accession")) { } else if (name.equals("accession")) {
this.accession = new Identifier(); this.accession = new Identifier();
return this.accession; return this.accession;
@ -2522,20 +2522,20 @@ public class ImagingStudy extends DomainResource {
this.referrer = new Reference(); this.referrer = new Reference();
return this.referrer; return this.referrer;
} else if (name.equals("availability")) { } else if (name.equals("availability")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.availability"); throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.availability");
} else if (name.equals("url")) { } else if (name.equals("url")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.url"); throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.url");
} else if (name.equals("numberOfSeries")) { } else if (name.equals("numberOfSeries")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.numberOfSeries"); throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.numberOfSeries");
} else if (name.equals("numberOfInstances")) { } else if (name.equals("numberOfInstances")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.numberOfInstances"); throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.numberOfInstances");
} else if (name.equals("procedure")) { } else if (name.equals("procedure")) {
return addProcedure(); return addProcedure();
} else if (name.equals("interpreter")) { } else if (name.equals("interpreter")) {
this.interpreter = new Reference(); this.interpreter = new Reference();
return this.interpreter; return this.interpreter;
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.description"); throw new FHIRException("Cannot call addChild on a singleton property ImagingStudy.description");
} else if (name.equals("series")) { } else if (name.equals("series")) {
return addSeries(); return addSeries();
} else } else

View File

@ -454,12 +454,12 @@ public class Immunization extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("date")) { if (name.equals("date")) {
throw new FHIRException("Cannot call addChild on a primitive type Immunization.date"); throw new FHIRException("Cannot call addChild on a singleton property Immunization.date");
} else if (name.equals("detail")) { } else if (name.equals("detail")) {
this.detail = new Reference(); this.detail = new Reference();
return this.detail; return this.detail;
} else if (name.equals("reported")) { } else if (name.equals("reported")) {
throw new FHIRException("Cannot call addChild on a primitive type Immunization.reported"); throw new FHIRException("Cannot call addChild on a singleton property Immunization.reported");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1007,16 +1007,16 @@ public class Immunization extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("doseSequence")) { if (name.equals("doseSequence")) {
throw new FHIRException("Cannot call addChild on a primitive type Immunization.doseSequence"); throw new FHIRException("Cannot call addChild on a singleton property Immunization.doseSequence");
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type Immunization.description"); throw new FHIRException("Cannot call addChild on a singleton property Immunization.description");
} else if (name.equals("authority")) { } else if (name.equals("authority")) {
this.authority = new Reference(); this.authority = new Reference();
return this.authority; return this.authority;
} else if (name.equals("series")) { } else if (name.equals("series")) {
throw new FHIRException("Cannot call addChild on a primitive type Immunization.series"); throw new FHIRException("Cannot call addChild on a singleton property Immunization.series");
} else if (name.equals("seriesDoses")) { } else if (name.equals("seriesDoses")) {
throw new FHIRException("Cannot call addChild on a primitive type Immunization.seriesDoses"); throw new FHIRException("Cannot call addChild on a singleton property Immunization.seriesDoses");
} else if (name.equals("targetDisease")) { } else if (name.equals("targetDisease")) {
return addTargetDisease(); return addTargetDisease();
} else if (name.equals("doseStatus")) { } else if (name.equals("doseStatus")) {
@ -2335,9 +2335,9 @@ public class Immunization extends DomainResource {
if (name.equals("identifier")) { if (name.equals("identifier")) {
return addIdentifier(); return addIdentifier();
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type Immunization.status"); throw new FHIRException("Cannot call addChild on a singleton property Immunization.status");
} else if (name.equals("date")) { } else if (name.equals("date")) {
throw new FHIRException("Cannot call addChild on a primitive type Immunization.date"); throw new FHIRException("Cannot call addChild on a singleton property Immunization.date");
} else if (name.equals("vaccineCode")) { } else if (name.equals("vaccineCode")) {
this.vaccineCode = new CodeableConcept(); this.vaccineCode = new CodeableConcept();
return this.vaccineCode; return this.vaccineCode;
@ -2345,9 +2345,9 @@ public class Immunization extends DomainResource {
this.patient = new Reference(); this.patient = new Reference();
return this.patient; return this.patient;
} else if (name.equals("wasNotGiven")) { } else if (name.equals("wasNotGiven")) {
throw new FHIRException("Cannot call addChild on a primitive type Immunization.wasNotGiven"); throw new FHIRException("Cannot call addChild on a singleton property Immunization.wasNotGiven");
} else if (name.equals("reported")) { } else if (name.equals("reported")) {
throw new FHIRException("Cannot call addChild on a primitive type Immunization.reported"); throw new FHIRException("Cannot call addChild on a singleton property Immunization.reported");
} else if (name.equals("performer")) { } else if (name.equals("performer")) {
this.performer = new Reference(); this.performer = new Reference();
return this.performer; return this.performer;
@ -2364,9 +2364,9 @@ public class Immunization extends DomainResource {
this.location = new Reference(); this.location = new Reference();
return this.location; return this.location;
} else if (name.equals("lotNumber")) { } else if (name.equals("lotNumber")) {
throw new FHIRException("Cannot call addChild on a primitive type Immunization.lotNumber"); throw new FHIRException("Cannot call addChild on a singleton property Immunization.lotNumber");
} else if (name.equals("expirationDate")) { } else if (name.equals("expirationDate")) {
throw new FHIRException("Cannot call addChild on a primitive type Immunization.expirationDate"); throw new FHIRException("Cannot call addChild on a singleton property Immunization.expirationDate");
} else if (name.equals("site")) { } else if (name.equals("site")) {
this.site = new CodeableConcept(); this.site = new CodeableConcept();
return this.site; return this.site;

View File

@ -552,12 +552,12 @@ public class ImmunizationRecommendation extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("date")) { if (name.equals("date")) {
throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.date"); throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.date");
} else if (name.equals("vaccineCode")) { } else if (name.equals("vaccineCode")) {
this.vaccineCode = new CodeableConcept(); this.vaccineCode = new CodeableConcept();
return this.vaccineCode; return this.vaccineCode;
} else if (name.equals("doseNumber")) { } else if (name.equals("doseNumber")) {
throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.doseNumber"); throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.doseNumber");
} else if (name.equals("forecastStatus")) { } else if (name.equals("forecastStatus")) {
this.forecastStatus = new CodeableConcept(); this.forecastStatus = new CodeableConcept();
return this.forecastStatus; return this.forecastStatus;
@ -783,7 +783,7 @@ public class ImmunizationRecommendation extends DomainResource {
this.code = new CodeableConcept(); this.code = new CodeableConcept();
return this.code; return this.code;
} else if (name.equals("value")) { } else if (name.equals("value")) {
throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.value"); throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.value");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1135,14 +1135,14 @@ public class ImmunizationRecommendation extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("doseSequence")) { if (name.equals("doseSequence")) {
throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.doseSequence"); throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.doseSequence");
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.description"); throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.description");
} else if (name.equals("authority")) { } else if (name.equals("authority")) {
this.authority = new Reference(); this.authority = new Reference();
return this.authority; return this.authority;
} else if (name.equals("series")) { } else if (name.equals("series")) {
throw new FHIRException("Cannot call addChild on a primitive type ImmunizationRecommendation.series"); throw new FHIRException("Cannot call addChild on a singleton property ImmunizationRecommendation.series");
} else } else
return super.addChild(name); return super.addChild(name);
} }

View File

@ -741,7 +741,7 @@ public class ImplementationGuide extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("name")) { if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name");
} else if (name.equals("telecom")) { } else if (name.equals("telecom")) {
return addTelecom(); return addTelecom();
} else } else
@ -946,9 +946,9 @@ public class ImplementationGuide extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("type")) { if (name.equals("type")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.type"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.type");
} else if (name.equals("uri")) { } else if (name.equals("uri")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.uri"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.uri");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1212,9 +1212,9 @@ public class ImplementationGuide extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("name")) { if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name");
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.description"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.description");
} else if (name.equals("resource")) { } else if (name.equals("resource")) {
return addResource(); return addResource();
} else } else
@ -1714,13 +1714,13 @@ public class ImplementationGuide extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("purpose")) { if (name.equals("purpose")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.purpose"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.purpose");
} else if (name.equals("name")) { } else if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name");
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.description"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.description");
} else if (name.equals("acronym")) { } else if (name.equals("acronym")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.acronym"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.acronym");
} else if (name.equals("sourceUri")) { } else if (name.equals("sourceUri")) {
this.source = new UriType(); this.source = new UriType();
return this.source; return this.source;
@ -1946,7 +1946,7 @@ public class ImplementationGuide extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("type")) { if (name.equals("type")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.type"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.type");
} else if (name.equals("profile")) { } else if (name.equals("profile")) {
this.profile = new Reference(); this.profile = new Reference();
return this.profile; return this.profile;
@ -2484,17 +2484,17 @@ public class ImplementationGuide extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("source")) { if (name.equals("source")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.source"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.source");
} else if (name.equals("name")) { } else if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name");
} else if (name.equals("kind")) { } else if (name.equals("kind")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.kind"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.kind");
} else if (name.equals("type")) { } else if (name.equals("type")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.type"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.type");
} else if (name.equals("package")) { } else if (name.equals("package")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.package"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.package");
} else if (name.equals("format")) { } else if (name.equals("format")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.format"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.format");
} else if (name.equals("page")) { } else if (name.equals("page")) {
return addPage(); return addPage();
} else } else
@ -3739,29 +3739,29 @@ public class ImplementationGuide extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("url")) { if (name.equals("url")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.url"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.url");
} else if (name.equals("version")) { } else if (name.equals("version")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.version"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.version");
} else if (name.equals("name")) { } else if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.name");
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.status"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.status");
} else if (name.equals("experimental")) { } else if (name.equals("experimental")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.experimental"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.experimental");
} else if (name.equals("publisher")) { } else if (name.equals("publisher")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.publisher"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.publisher");
} else if (name.equals("contact")) { } else if (name.equals("contact")) {
return addContact(); return addContact();
} else if (name.equals("date")) { } else if (name.equals("date")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.date"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.date");
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.description"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.description");
} else if (name.equals("useContext")) { } else if (name.equals("useContext")) {
return addUseContext(); return addUseContext();
} else if (name.equals("copyright")) { } else if (name.equals("copyright")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.copyright"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.copyright");
} else if (name.equals("fhirVersion")) { } else if (name.equals("fhirVersion")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.fhirVersion"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.fhirVersion");
} else if (name.equals("dependency")) { } else if (name.equals("dependency")) {
return addDependency(); return addDependency();
} else if (name.equals("package")) { } else if (name.equals("package")) {
@ -3769,7 +3769,7 @@ public class ImplementationGuide extends DomainResource {
} else if (name.equals("global")) { } else if (name.equals("global")) {
return addGlobal(); return addGlobal();
} else if (name.equals("binary")) { } else if (name.equals("binary")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.binary"); throw new FHIRException("Cannot call addChild on a singleton property ImplementationGuide.binary");
} else if (name.equals("page")) { } else if (name.equals("page")) {
this.page = new ImplementationGuidePageComponent(); this.page = new ImplementationGuidePageComponent();
return this.page; return this.page;

View File

@ -577,9 +577,9 @@ public class List_ extends DomainResource {
this.flag = new CodeableConcept(); this.flag = new CodeableConcept();
return this.flag; return this.flag;
} else if (name.equals("deleted")) { } else if (name.equals("deleted")) {
throw new FHIRException("Cannot call addChild on a primitive type List_.deleted"); throw new FHIRException("Cannot call addChild on a singleton property List_.deleted");
} else if (name.equals("date")) { } else if (name.equals("date")) {
throw new FHIRException("Cannot call addChild on a primitive type List_.date"); throw new FHIRException("Cannot call addChild on a singleton property List_.date");
} else if (name.equals("item")) { } else if (name.equals("item")) {
this.item = new Reference(); this.item = new Reference();
return this.item; return this.item;
@ -1424,7 +1424,7 @@ public class List_ extends DomainResource {
if (name.equals("identifier")) { if (name.equals("identifier")) {
return addIdentifier(); return addIdentifier();
} else if (name.equals("title")) { } else if (name.equals("title")) {
throw new FHIRException("Cannot call addChild on a primitive type List_.title"); throw new FHIRException("Cannot call addChild on a singleton property List_.title");
} else if (name.equals("code")) { } else if (name.equals("code")) {
this.code = new CodeableConcept(); this.code = new CodeableConcept();
return this.code; return this.code;
@ -1438,16 +1438,16 @@ public class List_ extends DomainResource {
this.encounter = new Reference(); this.encounter = new Reference();
return this.encounter; return this.encounter;
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type List_.status"); throw new FHIRException("Cannot call addChild on a singleton property List_.status");
} else if (name.equals("date")) { } else if (name.equals("date")) {
throw new FHIRException("Cannot call addChild on a primitive type List_.date"); throw new FHIRException("Cannot call addChild on a singleton property List_.date");
} else if (name.equals("orderedBy")) { } else if (name.equals("orderedBy")) {
this.orderedBy = new CodeableConcept(); this.orderedBy = new CodeableConcept();
return this.orderedBy; return this.orderedBy;
} else if (name.equals("mode")) { } else if (name.equals("mode")) {
throw new FHIRException("Cannot call addChild on a primitive type List_.mode"); throw new FHIRException("Cannot call addChild on a singleton property List_.mode");
} else if (name.equals("note")) { } else if (name.equals("note")) {
throw new FHIRException("Cannot call addChild on a primitive type List_.note"); throw new FHIRException("Cannot call addChild on a singleton property List_.note");
} else if (name.equals("entry")) { } else if (name.equals("entry")) {
return addEntry(); return addEntry();
} else if (name.equals("emptyReason")) { } else if (name.equals("emptyReason")) {

View File

@ -544,11 +544,11 @@ public class Location extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("longitude")) { if (name.equals("longitude")) {
throw new FHIRException("Cannot call addChild on a primitive type Location.longitude"); throw new FHIRException("Cannot call addChild on a singleton property Location.longitude");
} else if (name.equals("latitude")) { } else if (name.equals("latitude")) {
throw new FHIRException("Cannot call addChild on a primitive type Location.latitude"); throw new FHIRException("Cannot call addChild on a singleton property Location.latitude");
} else if (name.equals("altitude")) { } else if (name.equals("altitude")) {
throw new FHIRException("Cannot call addChild on a primitive type Location.altitude"); throw new FHIRException("Cannot call addChild on a singleton property Location.altitude");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1295,13 +1295,13 @@ public class Location extends DomainResource {
if (name.equals("identifier")) { if (name.equals("identifier")) {
return addIdentifier(); return addIdentifier();
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type Location.status"); throw new FHIRException("Cannot call addChild on a singleton property Location.status");
} else if (name.equals("name")) { } else if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type Location.name"); throw new FHIRException("Cannot call addChild on a singleton property Location.name");
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type Location.description"); throw new FHIRException("Cannot call addChild on a singleton property Location.description");
} else if (name.equals("mode")) { } else if (name.equals("mode")) {
throw new FHIRException("Cannot call addChild on a primitive type Location.mode"); throw new FHIRException("Cannot call addChild on a singleton property Location.mode");
} else if (name.equals("type")) { } else if (name.equals("type")) {
this.type = new CodeableConcept(); this.type = new CodeableConcept();
return this.type; return this.type;

View File

@ -930,7 +930,7 @@ public class Media extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("type")) { if (name.equals("type")) {
throw new FHIRException("Cannot call addChild on a primitive type Media.type"); throw new FHIRException("Cannot call addChild on a singleton property Media.type");
} else if (name.equals("subtype")) { } else if (name.equals("subtype")) {
this.subtype = new CodeableConcept(); this.subtype = new CodeableConcept();
return this.subtype; return this.subtype;
@ -946,15 +946,15 @@ public class Media extends DomainResource {
this.view = new CodeableConcept(); this.view = new CodeableConcept();
return this.view; return this.view;
} else if (name.equals("deviceName")) { } else if (name.equals("deviceName")) {
throw new FHIRException("Cannot call addChild on a primitive type Media.deviceName"); throw new FHIRException("Cannot call addChild on a singleton property Media.deviceName");
} else if (name.equals("height")) { } else if (name.equals("height")) {
throw new FHIRException("Cannot call addChild on a primitive type Media.height"); throw new FHIRException("Cannot call addChild on a singleton property Media.height");
} else if (name.equals("width")) { } else if (name.equals("width")) {
throw new FHIRException("Cannot call addChild on a primitive type Media.width"); throw new FHIRException("Cannot call addChild on a singleton property Media.width");
} else if (name.equals("frames")) { } else if (name.equals("frames")) {
throw new FHIRException("Cannot call addChild on a primitive type Media.frames"); throw new FHIRException("Cannot call addChild on a singleton property Media.frames");
} else if (name.equals("duration")) { } else if (name.equals("duration")) {
throw new FHIRException("Cannot call addChild on a primitive type Media.duration"); throw new FHIRException("Cannot call addChild on a singleton property Media.duration");
} else if (name.equals("content")) { } else if (name.equals("content")) {
this.content = new Attachment(); this.content = new Attachment();
return this.content; return this.content;

View File

@ -627,9 +627,9 @@ public class Medication extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("lotNumber")) { if (name.equals("lotNumber")) {
throw new FHIRException("Cannot call addChild on a primitive type Medication.lotNumber"); throw new FHIRException("Cannot call addChild on a singleton property Medication.lotNumber");
} else if (name.equals("expirationDate")) { } else if (name.equals("expirationDate")) {
throw new FHIRException("Cannot call addChild on a primitive type Medication.expirationDate"); throw new FHIRException("Cannot call addChild on a singleton property Medication.expirationDate");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1306,7 +1306,7 @@ public class Medication extends DomainResource {
this.code = new CodeableConcept(); this.code = new CodeableConcept();
return this.code; return this.code;
} else if (name.equals("isBrand")) { } else if (name.equals("isBrand")) {
throw new FHIRException("Cannot call addChild on a primitive type Medication.isBrand"); throw new FHIRException("Cannot call addChild on a singleton property Medication.isBrand");
} else if (name.equals("manufacturer")) { } else if (name.equals("manufacturer")) {
this.manufacturer = new Reference(); this.manufacturer = new Reference();
return this.manufacturer; return this.manufacturer;

View File

@ -619,7 +619,7 @@ public class MedicationAdministration extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("text")) { if (name.equals("text")) {
throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.text"); throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.text");
} else if (name.equals("siteCodeableConcept")) { } else if (name.equals("siteCodeableConcept")) {
this.site = new CodeableConcept(); this.site = new CodeableConcept();
return this.site; return this.site;
@ -1691,7 +1691,7 @@ public class MedicationAdministration extends DomainResource {
if (name.equals("identifier")) { if (name.equals("identifier")) {
return addIdentifier(); return addIdentifier();
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.status"); throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.status");
} else if (name.equals("patient")) { } else if (name.equals("patient")) {
this.patient = new Reference(); this.patient = new Reference();
return this.patient; return this.patient;
@ -1705,7 +1705,7 @@ public class MedicationAdministration extends DomainResource {
this.prescription = new Reference(); this.prescription = new Reference();
return this.prescription; return this.prescription;
} else if (name.equals("wasNotGiven")) { } else if (name.equals("wasNotGiven")) {
throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.wasNotGiven"); throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.wasNotGiven");
} else if (name.equals("reasonNotGiven")) { } else if (name.equals("reasonNotGiven")) {
return addReasonNotGiven(); return addReasonNotGiven();
} else if (name.equals("reasonGiven")) { } else if (name.equals("reasonGiven")) {
@ -1725,7 +1725,7 @@ public class MedicationAdministration extends DomainResource {
} else if (name.equals("device")) { } else if (name.equals("device")) {
return addDevice(); return addDevice();
} else if (name.equals("note")) { } else if (name.equals("note")) {
throw new FHIRException("Cannot call addChild on a primitive type MedicationAdministration.note"); throw new FHIRException("Cannot call addChild on a singleton property MedicationAdministration.note");
} else if (name.equals("dosage")) { } else if (name.equals("dosage")) {
this.dosage = new MedicationAdministrationDosageComponent(); this.dosage = new MedicationAdministrationDosageComponent();
return this.dosage; return this.dosage;

View File

@ -857,7 +857,7 @@ public class MedicationDispense extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("text")) { if (name.equals("text")) {
throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.text"); throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.text");
} else if (name.equals("additionalInstructions")) { } else if (name.equals("additionalInstructions")) {
this.additionalInstructions = new CodeableConcept(); this.additionalInstructions = new CodeableConcept();
return this.additionalInstructions; return this.additionalInstructions;
@ -2260,7 +2260,7 @@ public class MedicationDispense extends DomainResource {
this.identifier = new Identifier(); this.identifier = new Identifier();
return this.identifier; return this.identifier;
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.status"); throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.status");
} else if (name.equals("patient")) { } else if (name.equals("patient")) {
this.patient = new Reference(); this.patient = new Reference();
return this.patient; return this.patient;
@ -2285,16 +2285,16 @@ public class MedicationDispense extends DomainResource {
this.medication = new Reference(); this.medication = new Reference();
return this.medication; return this.medication;
} else if (name.equals("whenPrepared")) { } else if (name.equals("whenPrepared")) {
throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.whenPrepared"); throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.whenPrepared");
} else if (name.equals("whenHandedOver")) { } else if (name.equals("whenHandedOver")) {
throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.whenHandedOver"); throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.whenHandedOver");
} else if (name.equals("destination")) { } else if (name.equals("destination")) {
this.destination = new Reference(); this.destination = new Reference();
return this.destination; return this.destination;
} else if (name.equals("receiver")) { } else if (name.equals("receiver")) {
return addReceiver(); return addReceiver();
} else if (name.equals("note")) { } else if (name.equals("note")) {
throw new FHIRException("Cannot call addChild on a primitive type MedicationDispense.note"); throw new FHIRException("Cannot call addChild on a singleton property MedicationDispense.note");
} else if (name.equals("dosageInstruction")) { } else if (name.equals("dosageInstruction")) {
return addDosageInstruction(); return addDosageInstruction();
} else if (name.equals("substitution")) { } else if (name.equals("substitution")) {

View File

@ -881,7 +881,7 @@ public class MedicationOrder extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("text")) { if (name.equals("text")) {
throw new FHIRException("Cannot call addChild on a primitive type MedicationOrder.text"); throw new FHIRException("Cannot call addChild on a singleton property MedicationOrder.text");
} else if (name.equals("additionalInstructions")) { } else if (name.equals("additionalInstructions")) {
this.additionalInstructions = new CodeableConcept(); this.additionalInstructions = new CodeableConcept();
return this.additionalInstructions; return this.additionalInstructions;
@ -1303,7 +1303,7 @@ public class MedicationOrder extends DomainResource {
this.validityPeriod = new Period(); this.validityPeriod = new Period();
return this.validityPeriod; return this.validityPeriod;
} else if (name.equals("numberOfRepeatsAllowed")) { } else if (name.equals("numberOfRepeatsAllowed")) {
throw new FHIRException("Cannot call addChild on a primitive type MedicationOrder.numberOfRepeatsAllowed"); throw new FHIRException("Cannot call addChild on a singleton property MedicationOrder.numberOfRepeatsAllowed");
} else if (name.equals("quantity")) { } else if (name.equals("quantity")) {
this.quantity = new SimpleQuantity(); this.quantity = new SimpleQuantity();
return this.quantity; return this.quantity;
@ -2519,11 +2519,11 @@ public class MedicationOrder extends DomainResource {
if (name.equals("identifier")) { if (name.equals("identifier")) {
return addIdentifier(); return addIdentifier();
} else if (name.equals("dateWritten")) { } else if (name.equals("dateWritten")) {
throw new FHIRException("Cannot call addChild on a primitive type MedicationOrder.dateWritten"); throw new FHIRException("Cannot call addChild on a singleton property MedicationOrder.dateWritten");
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type MedicationOrder.status"); throw new FHIRException("Cannot call addChild on a singleton property MedicationOrder.status");
} else if (name.equals("dateEnded")) { } else if (name.equals("dateEnded")) {
throw new FHIRException("Cannot call addChild on a primitive type MedicationOrder.dateEnded"); throw new FHIRException("Cannot call addChild on a singleton property MedicationOrder.dateEnded");
} else if (name.equals("reasonEnded")) { } else if (name.equals("reasonEnded")) {
this.reasonEnded = new CodeableConcept(); this.reasonEnded = new CodeableConcept();
return this.reasonEnded; return this.reasonEnded;
@ -2543,7 +2543,7 @@ public class MedicationOrder extends DomainResource {
this.reason = new Reference(); this.reason = new Reference();
return this.reason; return this.reason;
} else if (name.equals("note")) { } else if (name.equals("note")) {
throw new FHIRException("Cannot call addChild on a primitive type MedicationOrder.note"); throw new FHIRException("Cannot call addChild on a singleton property MedicationOrder.note");
} else if (name.equals("medicationCodeableConcept")) { } else if (name.equals("medicationCodeableConcept")) {
this.medication = new CodeableConcept(); this.medication = new CodeableConcept();
return this.medication; return this.medication;

View File

@ -813,7 +813,7 @@ public class MedicationStatement extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("text")) { if (name.equals("text")) {
throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.text"); throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.text");
} else if (name.equals("timing")) { } else if (name.equals("timing")) {
this.timing = new Timing(); this.timing = new Timing();
return this.timing; return this.timing;
@ -1829,11 +1829,11 @@ public class MedicationStatement extends DomainResource {
this.informationSource = new Reference(); this.informationSource = new Reference();
return this.informationSource; return this.informationSource;
} else if (name.equals("dateAsserted")) { } else if (name.equals("dateAsserted")) {
throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.dateAsserted"); throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.dateAsserted");
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.status"); throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.status");
} else if (name.equals("wasNotTaken")) { } else if (name.equals("wasNotTaken")) {
throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.wasNotTaken"); throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.wasNotTaken");
} else if (name.equals("reasonNotTaken")) { } else if (name.equals("reasonNotTaken")) {
return addReasonNotTaken(); return addReasonNotTaken();
} else if (name.equals("reasonForUseCodeableConcept")) { } else if (name.equals("reasonForUseCodeableConcept")) {
@ -1849,7 +1849,7 @@ public class MedicationStatement extends DomainResource {
this.effective = new Period(); this.effective = new Period();
return this.effective; return this.effective;
} else if (name.equals("note")) { } else if (name.equals("note")) {
throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.note"); throw new FHIRException("Cannot call addChild on a singleton property MedicationStatement.note");
} else if (name.equals("supportingInformation")) { } else if (name.equals("supportingInformation")) {
return addSupportingInformation(); return addSupportingInformation();
} else if (name.equals("medicationCodeableConcept")) { } else if (name.equals("medicationCodeableConcept")) {

View File

@ -419,9 +419,9 @@ public class MessageHeader extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("identifier")) { if (name.equals("identifier")) {
throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.identifier"); throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.identifier");
} else if (name.equals("code")) { } else if (name.equals("code")) {
throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.code"); throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.code");
} else if (name.equals("details")) { } else if (name.equals("details")) {
this.details = new Reference(); this.details = new Reference();
return this.details; return this.details;
@ -808,16 +808,16 @@ public class MessageHeader extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("name")) { if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.name"); throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.name");
} else if (name.equals("software")) { } else if (name.equals("software")) {
throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.software"); throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.software");
} else if (name.equals("version")) { } else if (name.equals("version")) {
throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.version"); throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.version");
} else if (name.equals("contact")) { } else if (name.equals("contact")) {
this.contact = new ContactPoint(); this.contact = new ContactPoint();
return this.contact; return this.contact;
} else if (name.equals("endpoint")) { } else if (name.equals("endpoint")) {
throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.endpoint"); throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.endpoint");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1101,12 +1101,12 @@ public class MessageHeader extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("name")) { if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.name"); throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.name");
} else if (name.equals("target")) { } else if (name.equals("target")) {
this.target = new Reference(); this.target = new Reference();
return this.target; return this.target;
} else if (name.equals("endpoint")) { } else if (name.equals("endpoint")) {
throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.endpoint"); throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.endpoint");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1852,7 +1852,7 @@ public class MessageHeader extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("timestamp")) { if (name.equals("timestamp")) {
throw new FHIRException("Cannot call addChild on a primitive type MessageHeader.timestamp"); throw new FHIRException("Cannot call addChild on a singleton property MessageHeader.timestamp");
} else if (name.equals("event")) { } else if (name.equals("event")) {
this.event = new Coding(); this.event = new Coding();
return this.event; return this.event;

View File

@ -436,11 +436,11 @@ public class Meta extends Type implements IBaseMetaType {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("versionId")) { if (name.equals("versionId")) {
throw new FHIRException("Cannot call addChild on a primitive type Meta.versionId"); throw new FHIRException("Cannot call addChild on a singleton property Meta.versionId");
} else if (name.equals("lastUpdated")) { } else if (name.equals("lastUpdated")) {
throw new FHIRException("Cannot call addChild on a primitive type Meta.lastUpdated"); throw new FHIRException("Cannot call addChild on a singleton property Meta.lastUpdated");
} else if (name.equals("profile")) { } else if (name.equals("profile")) {
throw new FHIRException("Cannot call addChild on a primitive type Meta.profile"); throw new FHIRException("Cannot call addChild on a singleton property Meta.profile");
} else if (name.equals("security")) { } else if (name.equals("security")) {
return addSecurity(); return addSecurity();
} else if (name.equals("tag")) { } else if (name.equals("tag")) {

View File

@ -486,7 +486,7 @@ public class NamingSystem extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("name")) { if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.name"); throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.name");
} else if (name.equals("telecom")) { } else if (name.equals("telecom")) {
return addTelecom(); return addTelecom();
} else } else
@ -810,11 +810,11 @@ public class NamingSystem extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("type")) { if (name.equals("type")) {
throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.type"); throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.type");
} else if (name.equals("value")) { } else if (name.equals("value")) {
throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.value"); throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.value");
} else if (name.equals("preferred")) { } else if (name.equals("preferred")) {
throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.preferred"); throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.preferred");
} else if (name.equals("period")) { } else if (name.equals("period")) {
this.period = new Period(); this.period = new Period();
return this.period; return this.period;
@ -1744,28 +1744,28 @@ public class NamingSystem extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("name")) { if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.name"); throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.name");
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.status"); throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.status");
} else if (name.equals("kind")) { } else if (name.equals("kind")) {
throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.kind"); throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.kind");
} else if (name.equals("publisher")) { } else if (name.equals("publisher")) {
throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.publisher"); throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.publisher");
} else if (name.equals("contact")) { } else if (name.equals("contact")) {
return addContact(); return addContact();
} else if (name.equals("responsible")) { } else if (name.equals("responsible")) {
throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.responsible"); throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.responsible");
} else if (name.equals("date")) { } else if (name.equals("date")) {
throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.date"); throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.date");
} else if (name.equals("type")) { } else if (name.equals("type")) {
this.type = new CodeableConcept(); this.type = new CodeableConcept();
return this.type; return this.type;
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.description"); throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.description");
} else if (name.equals("useContext")) { } else if (name.equals("useContext")) {
return addUseContext(); return addUseContext();
} else if (name.equals("usage")) { } else if (name.equals("usage")) {
throw new FHIRException("Cannot call addChild on a primitive type NamingSystem.usage"); throw new FHIRException("Cannot call addChild on a singleton property NamingSystem.usage");
} else if (name.equals("uniqueId")) { } else if (name.equals("uniqueId")) {
return addUniqueId(); return addUniqueId();
} else if (name.equals("replacedBy")) { } else if (name.equals("replacedBy")) {

View File

@ -336,7 +336,7 @@ public class Narrative extends BaseNarrative implements INarrative {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("status")) { if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type Narrative.status"); throw new FHIRException("Cannot call addChild on a singleton property Narrative.status");
} else } else
return super.addChild(name); return super.addChild(name);
} }

View File

@ -670,7 +670,7 @@ public class NutritionOrder extends DomainResource {
} else if (name.equals("fluidConsistencyType")) { } else if (name.equals("fluidConsistencyType")) {
return addFluidConsistencyType(); return addFluidConsistencyType();
} else if (name.equals("instruction")) { } else if (name.equals("instruction")) {
throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.instruction"); throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.instruction");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1355,14 +1355,14 @@ public class NutritionOrder extends DomainResource {
this.type = new CodeableConcept(); this.type = new CodeableConcept();
return this.type; return this.type;
} else if (name.equals("productName")) { } else if (name.equals("productName")) {
throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.productName"); throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.productName");
} else if (name.equals("schedule")) { } else if (name.equals("schedule")) {
return addSchedule(); return addSchedule();
} else if (name.equals("quantity")) { } else if (name.equals("quantity")) {
this.quantity = new SimpleQuantity(); this.quantity = new SimpleQuantity();
return this.quantity; return this.quantity;
} else if (name.equals("instruction")) { } else if (name.equals("instruction")) {
throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.instruction"); throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.instruction");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1945,12 +1945,12 @@ public class NutritionOrder extends DomainResource {
this.baseFormulaType = new CodeableConcept(); this.baseFormulaType = new CodeableConcept();
return this.baseFormulaType; return this.baseFormulaType;
} else if (name.equals("baseFormulaProductName")) { } else if (name.equals("baseFormulaProductName")) {
throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.baseFormulaProductName"); throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.baseFormulaProductName");
} else if (name.equals("additiveType")) { } else if (name.equals("additiveType")) {
this.additiveType = new CodeableConcept(); this.additiveType = new CodeableConcept();
return this.additiveType; return this.additiveType;
} else if (name.equals("additiveProductName")) { } else if (name.equals("additiveProductName")) {
throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.additiveProductName"); throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.additiveProductName");
} else if (name.equals("caloricDensity")) { } else if (name.equals("caloricDensity")) {
this.caloricDensity = new SimpleQuantity(); this.caloricDensity = new SimpleQuantity();
return this.caloricDensity; return this.caloricDensity;
@ -1963,7 +1963,7 @@ public class NutritionOrder extends DomainResource {
this.maxVolumeToDeliver = new SimpleQuantity(); this.maxVolumeToDeliver = new SimpleQuantity();
return this.maxVolumeToDeliver; return this.maxVolumeToDeliver;
} else if (name.equals("administrationInstruction")) { } else if (name.equals("administrationInstruction")) {
throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.administrationInstruction"); throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.administrationInstruction");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -3089,9 +3089,9 @@ public class NutritionOrder extends DomainResource {
this.encounter = new Reference(); this.encounter = new Reference();
return this.encounter; return this.encounter;
} else if (name.equals("dateTime")) { } else if (name.equals("dateTime")) {
throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.dateTime"); throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.dateTime");
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type NutritionOrder.status"); throw new FHIRException("Cannot call addChild on a singleton property NutritionOrder.status");
} else if (name.equals("allergyIntolerance")) { } else if (name.equals("allergyIntolerance")) {
return addAllergyIntolerance(); return addAllergyIntolerance();
} else if (name.equals("foodPreferenceModifier")) { } else if (name.equals("foodPreferenceModifier")) {

View File

@ -755,7 +755,7 @@ public class Observation extends DomainResource {
this.age = new Range(); this.age = new Range();
return this.age; return this.age;
} else if (name.equals("text")) { } else if (name.equals("text")) {
throw new FHIRException("Cannot call addChild on a primitive type Observation.text"); throw new FHIRException("Cannot call addChild on a singleton property Observation.text");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -979,7 +979,7 @@ public class Observation extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("type")) { if (name.equals("type")) {
throw new FHIRException("Cannot call addChild on a primitive type Observation.type"); throw new FHIRException("Cannot call addChild on a singleton property Observation.type");
} else if (name.equals("target")) { } else if (name.equals("target")) {
this.target = new Reference(); this.target = new Reference();
return this.target; return this.target;
@ -2837,7 +2837,7 @@ public class Observation extends DomainResource {
if (name.equals("identifier")) { if (name.equals("identifier")) {
return addIdentifier(); return addIdentifier();
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type Observation.status"); throw new FHIRException("Cannot call addChild on a singleton property Observation.status");
} else if (name.equals("category")) { } else if (name.equals("category")) {
this.category = new CodeableConcept(); this.category = new CodeableConcept();
return this.category; return this.category;
@ -2857,7 +2857,7 @@ public class Observation extends DomainResource {
this.effective = new Period(); this.effective = new Period();
return this.effective; return this.effective;
} else if (name.equals("issued")) { } else if (name.equals("issued")) {
throw new FHIRException("Cannot call addChild on a primitive type Observation.issued"); throw new FHIRException("Cannot call addChild on a singleton property Observation.issued");
} else if (name.equals("performer")) { } else if (name.equals("performer")) {
return addPerformer(); return addPerformer();
} else if (name.equals("valueQuantity")) { } else if (name.equals("valueQuantity")) {
@ -2897,7 +2897,7 @@ public class Observation extends DomainResource {
this.interpretation = new CodeableConcept(); this.interpretation = new CodeableConcept();
return this.interpretation; return this.interpretation;
} else if (name.equals("comments")) { } else if (name.equals("comments")) {
throw new FHIRException("Cannot call addChild on a primitive type Observation.comments"); throw new FHIRException("Cannot call addChild on a singleton property Observation.comments");
} else if (name.equals("bodySite")) { } else if (name.equals("bodySite")) {
this.bodySite = new CodeableConcept(); this.bodySite = new CodeableConcept();
return this.bodySite; return this.bodySite;

View File

@ -424,7 +424,7 @@ public class OperationDefinition extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("name")) { if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.name"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.name");
} else if (name.equals("telecom")) { } else if (name.equals("telecom")) {
return addTelecom(); return addTelecom();
} else } else
@ -1056,17 +1056,17 @@ public class OperationDefinition extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("name")) { if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.name"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.name");
} else if (name.equals("use")) { } else if (name.equals("use")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.use"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.use");
} else if (name.equals("min")) { } else if (name.equals("min")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.min"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.min");
} else if (name.equals("max")) { } else if (name.equals("max")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.max"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.max");
} else if (name.equals("documentation")) { } else if (name.equals("documentation")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.documentation"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.documentation");
} else if (name.equals("type")) { } else if (name.equals("type")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.type"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.type");
} else if (name.equals("profile")) { } else if (name.equals("profile")) {
this.profile = new Reference(); this.profile = new Reference();
return this.profile; return this.profile;
@ -1314,7 +1314,7 @@ public class OperationDefinition extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("strength")) { if (name.equals("strength")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.strength"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.strength");
} else if (name.equals("valueSetUri")) { } else if (name.equals("valueSetUri")) {
this.valueSet = new UriType(); this.valueSet = new UriType();
return this.valueSet; return this.valueSet;
@ -2711,42 +2711,42 @@ public class OperationDefinition extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("url")) { if (name.equals("url")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.url"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.url");
} else if (name.equals("version")) { } else if (name.equals("version")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.version"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.version");
} else if (name.equals("name")) { } else if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.name"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.name");
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.status"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.status");
} else if (name.equals("kind")) { } else if (name.equals("kind")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.kind"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.kind");
} else if (name.equals("experimental")) { } else if (name.equals("experimental")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.experimental"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.experimental");
} else if (name.equals("publisher")) { } else if (name.equals("publisher")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.publisher"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.publisher");
} else if (name.equals("contact")) { } else if (name.equals("contact")) {
return addContact(); return addContact();
} else if (name.equals("date")) { } else if (name.equals("date")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.date"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.date");
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.description"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.description");
} else if (name.equals("requirements")) { } else if (name.equals("requirements")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.requirements"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.requirements");
} else if (name.equals("idempotent")) { } else if (name.equals("idempotent")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.idempotent"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.idempotent");
} else if (name.equals("code")) { } else if (name.equals("code")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.code"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.code");
} else if (name.equals("notes")) { } else if (name.equals("notes")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.notes"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.notes");
} else if (name.equals("base")) { } else if (name.equals("base")) {
this.base = new Reference(); this.base = new Reference();
return this.base; return this.base;
} else if (name.equals("system")) { } else if (name.equals("system")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.system"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.system");
} else if (name.equals("type")) { } else if (name.equals("type")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.type"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.type");
} else if (name.equals("instance")) { } else if (name.equals("instance")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationDefinition.instance"); throw new FHIRException("Cannot call addChild on a singleton property OperationDefinition.instance");
} else if (name.equals("parameter")) { } else if (name.equals("parameter")) {
return addParameter(); return addParameter();
} else } else

View File

@ -1245,16 +1245,16 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("severity")) { if (name.equals("severity")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.severity"); throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.severity");
} else if (name.equals("code")) { } else if (name.equals("code")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.code"); throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.code");
} else if (name.equals("details")) { } else if (name.equals("details")) {
this.details = new CodeableConcept(); this.details = new CodeableConcept();
return this.details; return this.details;
} else if (name.equals("diagnostics")) { } else if (name.equals("diagnostics")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.diagnostics"); throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.diagnostics");
} else if (name.equals("location")) { } else if (name.equals("location")) {
throw new FHIRException("Cannot call addChild on a primitive type OperationOutcome.location"); throw new FHIRException("Cannot call addChild on a singleton property OperationOutcome.location");
} else } else
return super.addChild(name); return super.addChild(name);
} }

View File

@ -688,7 +688,7 @@ public class Order extends DomainResource {
if (name.equals("identifier")) { if (name.equals("identifier")) {
return addIdentifier(); return addIdentifier();
} else if (name.equals("date")) { } else if (name.equals("date")) {
throw new FHIRException("Cannot call addChild on a primitive type Order.date"); throw new FHIRException("Cannot call addChild on a singleton property Order.date");
} else if (name.equals("subject")) { } else if (name.equals("subject")) {
this.subject = new Reference(); this.subject = new Reference();
return this.subject; return this.subject;

View File

@ -817,14 +817,14 @@ public class OrderResponse extends DomainResource {
this.request = new Reference(); this.request = new Reference();
return this.request; return this.request;
} else if (name.equals("date")) { } else if (name.equals("date")) {
throw new FHIRException("Cannot call addChild on a primitive type OrderResponse.date"); throw new FHIRException("Cannot call addChild on a singleton property OrderResponse.date");
} else if (name.equals("who")) { } else if (name.equals("who")) {
this.who = new Reference(); this.who = new Reference();
return this.who; return this.who;
} else if (name.equals("orderStatus")) { } else if (name.equals("orderStatus")) {
throw new FHIRException("Cannot call addChild on a primitive type OrderResponse.orderStatus"); throw new FHIRException("Cannot call addChild on a singleton property OrderResponse.orderStatus");
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type OrderResponse.description"); throw new FHIRException("Cannot call addChild on a singleton property OrderResponse.description");
} else if (name.equals("fulfillment")) { } else if (name.equals("fulfillment")) {
return addFulfillment(); return addFulfillment();
} else } else

View File

@ -767,12 +767,12 @@ public class Organization extends DomainResource {
if (name.equals("identifier")) { if (name.equals("identifier")) {
return addIdentifier(); return addIdentifier();
} else if (name.equals("active")) { } else if (name.equals("active")) {
throw new FHIRException("Cannot call addChild on a primitive type Organization.active"); throw new FHIRException("Cannot call addChild on a singleton property Organization.active");
} else if (name.equals("type")) { } else if (name.equals("type")) {
this.type = new CodeableConcept(); this.type = new CodeableConcept();
return this.type; return this.type;
} else if (name.equals("name")) { } else if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type Organization.name"); throw new FHIRException("Cannot call addChild on a singleton property Organization.name");
} else if (name.equals("telecom")) { } else if (name.equals("telecom")) {
return addTelecom(); return addTelecom();
} else if (name.equals("address")) { } else if (name.equals("address")) {

View File

@ -259,7 +259,7 @@ public class Parameters extends Resource implements IBaseParameters {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("name")) { if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type Parameters.name"); throw new FHIRException("Cannot call addChild on a singleton property Parameters.name");
} else if (name.equals("valueBoolean")) { } else if (name.equals("valueBoolean")) {
this.value = new BooleanType(); this.value = new BooleanType();
return this.value; return this.value;

View File

@ -590,7 +590,7 @@ public class Patient extends DomainResource {
this.address = new Address(); this.address = new Address();
return this.address; return this.address;
} else if (name.equals("gender")) { } else if (name.equals("gender")) {
throw new FHIRException("Cannot call addChild on a primitive type Patient.gender"); throw new FHIRException("Cannot call addChild on a singleton property Patient.gender");
} else if (name.equals("organization")) { } else if (name.equals("organization")) {
this.organization = new Reference(); this.organization = new Reference();
return this.organization; return this.organization;
@ -1013,7 +1013,7 @@ public class Patient extends DomainResource {
this.language = new CodeableConcept(); this.language = new CodeableConcept();
return this.language; return this.language;
} else if (name.equals("preferred")) { } else if (name.equals("preferred")) {
throw new FHIRException("Cannot call addChild on a primitive type Patient.preferred"); throw new FHIRException("Cannot call addChild on a singleton property Patient.preferred");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1226,7 +1226,7 @@ public class Patient extends DomainResource {
this.other = new Reference(); this.other = new Reference();
return this.other; return this.other;
} else if (name.equals("type")) { } else if (name.equals("type")) {
throw new FHIRException("Cannot call addChild on a primitive type Patient.type"); throw new FHIRException("Cannot call addChild on a singleton property Patient.type");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -2254,15 +2254,15 @@ public class Patient extends DomainResource {
if (name.equals("identifier")) { if (name.equals("identifier")) {
return addIdentifier(); return addIdentifier();
} else if (name.equals("active")) { } else if (name.equals("active")) {
throw new FHIRException("Cannot call addChild on a primitive type Patient.active"); throw new FHIRException("Cannot call addChild on a singleton property Patient.active");
} else if (name.equals("name")) { } else if (name.equals("name")) {
return addName(); return addName();
} else if (name.equals("telecom")) { } else if (name.equals("telecom")) {
return addTelecom(); return addTelecom();
} else if (name.equals("gender")) { } else if (name.equals("gender")) {
throw new FHIRException("Cannot call addChild on a primitive type Patient.gender"); throw new FHIRException("Cannot call addChild on a singleton property Patient.gender");
} else if (name.equals("birthDate")) { } else if (name.equals("birthDate")) {
throw new FHIRException("Cannot call addChild on a primitive type Patient.birthDate"); throw new FHIRException("Cannot call addChild on a singleton property Patient.birthDate");
} else if (name.equals("deceasedBoolean")) { } else if (name.equals("deceasedBoolean")) {
this.deceased = new BooleanType(); this.deceased = new BooleanType();
return this.deceased; return this.deceased;

View File

@ -656,7 +656,7 @@ public class PaymentNotice extends DomainResource {
this.originalRuleset = new Coding(); this.originalRuleset = new Coding();
return this.originalRuleset; return this.originalRuleset;
} else if (name.equals("created")) { } else if (name.equals("created")) {
throw new FHIRException("Cannot call addChild on a primitive type PaymentNotice.created"); throw new FHIRException("Cannot call addChild on a singleton property PaymentNotice.created");
} else if (name.equals("target")) { } else if (name.equals("target")) {
this.target = new Reference(); this.target = new Reference();
return this.target; return this.target;

View File

@ -499,7 +499,7 @@ public class PaymentReconciliation extends DomainResource {
this.payee = new Reference(); this.payee = new Reference();
return this.payee; return this.payee;
} else if (name.equals("date")) { } else if (name.equals("date")) {
throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.date"); throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.date");
} else if (name.equals("amount")) { } else if (name.equals("amount")) {
this.amount = new Money(); this.amount = new Money();
return this.amount; return this.amount;
@ -682,7 +682,7 @@ public class PaymentReconciliation extends DomainResource {
this.type = new Coding(); this.type = new Coding();
return this.type; return this.type;
} else if (name.equals("text")) { } else if (name.equals("text")) {
throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.text"); throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.text");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1589,9 +1589,9 @@ public class PaymentReconciliation extends DomainResource {
this.request = new Reference(); this.request = new Reference();
return this.request; return this.request;
} else if (name.equals("outcome")) { } else if (name.equals("outcome")) {
throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.outcome"); throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.outcome");
} else if (name.equals("disposition")) { } else if (name.equals("disposition")) {
throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.disposition"); throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.disposition");
} else if (name.equals("ruleset")) { } else if (name.equals("ruleset")) {
this.ruleset = new Coding(); this.ruleset = new Coding();
return this.ruleset; return this.ruleset;
@ -1599,7 +1599,7 @@ public class PaymentReconciliation extends DomainResource {
this.originalRuleset = new Coding(); this.originalRuleset = new Coding();
return this.originalRuleset; return this.originalRuleset;
} else if (name.equals("created")) { } else if (name.equals("created")) {
throw new FHIRException("Cannot call addChild on a primitive type PaymentReconciliation.created"); throw new FHIRException("Cannot call addChild on a singleton property PaymentReconciliation.created");
} else if (name.equals("period")) { } else if (name.equals("period")) {
this.period = new Period(); this.period = new Period();
return this.period; return this.period;

View File

@ -211,9 +211,9 @@ public class Period extends Type implements ICompositeType {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("start")) { if (name.equals("start")) {
throw new FHIRException("Cannot call addChild on a primitive type Period.start"); throw new FHIRException("Cannot call addChild on a singleton property Period.start");
} else if (name.equals("end")) { } else if (name.equals("end")) {
throw new FHIRException("Cannot call addChild on a primitive type Period.end"); throw new FHIRException("Cannot call addChild on a singleton property Period.end");
} else } else
return super.addChild(name); return super.addChild(name);
} }

View File

@ -373,7 +373,7 @@ public class Person extends DomainResource {
this.target = new Reference(); this.target = new Reference();
return this.target; return this.target;
} else if (name.equals("assurance")) { } else if (name.equals("assurance")) {
throw new FHIRException("Cannot call addChild on a primitive type Person.assurance"); throw new FHIRException("Cannot call addChild on a singleton property Person.assurance");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1010,9 +1010,9 @@ public class Person extends DomainResource {
} else if (name.equals("telecom")) { } else if (name.equals("telecom")) {
return addTelecom(); return addTelecom();
} else if (name.equals("gender")) { } else if (name.equals("gender")) {
throw new FHIRException("Cannot call addChild on a primitive type Person.gender"); throw new FHIRException("Cannot call addChild on a singleton property Person.gender");
} else if (name.equals("birthDate")) { } else if (name.equals("birthDate")) {
throw new FHIRException("Cannot call addChild on a primitive type Person.birthDate"); throw new FHIRException("Cannot call addChild on a singleton property Person.birthDate");
} else if (name.equals("address")) { } else if (name.equals("address")) {
return addAddress(); return addAddress();
} else if (name.equals("photo")) { } else if (name.equals("photo")) {
@ -1022,7 +1022,7 @@ public class Person extends DomainResource {
this.managingOrganization = new Reference(); this.managingOrganization = new Reference();
return this.managingOrganization; return this.managingOrganization;
} else if (name.equals("active")) { } else if (name.equals("active")) {
throw new FHIRException("Cannot call addChild on a primitive type Person.active"); throw new FHIRException("Cannot call addChild on a singleton property Person.active");
} else if (name.equals("link")) { } else if (name.equals("link")) {
return addLink(); return addLink();
} else } else

View File

@ -1462,7 +1462,7 @@ public class Practitioner extends DomainResource {
if (name.equals("identifier")) { if (name.equals("identifier")) {
return addIdentifier(); return addIdentifier();
} else if (name.equals("active")) { } else if (name.equals("active")) {
throw new FHIRException("Cannot call addChild on a primitive type Practitioner.active"); throw new FHIRException("Cannot call addChild on a singleton property Practitioner.active");
} else if (name.equals("name")) { } else if (name.equals("name")) {
this.name = new HumanName(); this.name = new HumanName();
return this.name; return this.name;
@ -1471,9 +1471,9 @@ public class Practitioner extends DomainResource {
} else if (name.equals("address")) { } else if (name.equals("address")) {
return addAddress(); return addAddress();
} else if (name.equals("gender")) { } else if (name.equals("gender")) {
throw new FHIRException("Cannot call addChild on a primitive type Practitioner.gender"); throw new FHIRException("Cannot call addChild on a singleton property Practitioner.gender");
} else if (name.equals("birthDate")) { } else if (name.equals("birthDate")) {
throw new FHIRException("Cannot call addChild on a primitive type Practitioner.birthDate"); throw new FHIRException("Cannot call addChild on a singleton property Practitioner.birthDate");
} else if (name.equals("photo")) { } else if (name.equals("photo")) {
return addPhoto(); return addPhoto();
} else if (name.equals("practitionerRole")) { } else if (name.equals("practitionerRole")) {

View File

@ -1901,7 +1901,7 @@ public class Procedure extends DomainResource {
this.subject = new Reference(); this.subject = new Reference();
return this.subject; return this.subject;
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type Procedure.status"); throw new FHIRException("Cannot call addChild on a singleton property Procedure.status");
} else if (name.equals("category")) { } else if (name.equals("category")) {
this.category = new CodeableConcept(); this.category = new CodeableConcept();
return this.category; return this.category;
@ -1909,7 +1909,7 @@ public class Procedure extends DomainResource {
this.code = new CodeableConcept(); this.code = new CodeableConcept();
return this.code; return this.code;
} else if (name.equals("notPerformed")) { } else if (name.equals("notPerformed")) {
throw new FHIRException("Cannot call addChild on a primitive type Procedure.notPerformed"); throw new FHIRException("Cannot call addChild on a singleton property Procedure.notPerformed");
} else if (name.equals("reasonNotPerformed")) { } else if (name.equals("reasonNotPerformed")) {
return addReasonNotPerformed(); return addReasonNotPerformed();
} else if (name.equals("bodySite")) { } else if (name.equals("bodySite")) {

View File

@ -1433,7 +1433,7 @@ public class ProcedureRequest extends DomainResource {
this.performer = new Reference(); this.performer = new Reference();
return this.performer; return this.performer;
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type ProcedureRequest.status"); throw new FHIRException("Cannot call addChild on a singleton property ProcedureRequest.status");
} else if (name.equals("notes")) { } else if (name.equals("notes")) {
return addNotes(); return addNotes();
} else if (name.equals("asNeededBoolean")) { } else if (name.equals("asNeededBoolean")) {
@ -1443,12 +1443,12 @@ public class ProcedureRequest extends DomainResource {
this.asNeeded = new CodeableConcept(); this.asNeeded = new CodeableConcept();
return this.asNeeded; return this.asNeeded;
} else if (name.equals("orderedOn")) { } else if (name.equals("orderedOn")) {
throw new FHIRException("Cannot call addChild on a primitive type ProcedureRequest.orderedOn"); throw new FHIRException("Cannot call addChild on a singleton property ProcedureRequest.orderedOn");
} else if (name.equals("orderer")) { } else if (name.equals("orderer")) {
this.orderer = new Reference(); this.orderer = new Reference();
return this.orderer; return this.orderer;
} else if (name.equals("priority")) { } else if (name.equals("priority")) {
throw new FHIRException("Cannot call addChild on a primitive type ProcedureRequest.priority"); throw new FHIRException("Cannot call addChild on a singleton property ProcedureRequest.priority");
} else } else
return super.addChild(name); return super.addChild(name);
} }

View File

@ -294,7 +294,7 @@ public class ProcessRequest extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("sequenceLinkId")) { if (name.equals("sequenceLinkId")) {
throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.sequenceLinkId"); throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.sequenceLinkId");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1330,7 +1330,7 @@ public class ProcessRequest extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("action")) { if (name.equals("action")) {
throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.action"); throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.action");
} else if (name.equals("identifier")) { } else if (name.equals("identifier")) {
return addIdentifier(); return addIdentifier();
} else if (name.equals("ruleset")) { } else if (name.equals("ruleset")) {
@ -1340,7 +1340,7 @@ public class ProcessRequest extends DomainResource {
this.originalRuleset = new Coding(); this.originalRuleset = new Coding();
return this.originalRuleset; return this.originalRuleset;
} else if (name.equals("created")) { } else if (name.equals("created")) {
throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.created"); throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.created");
} else if (name.equals("target")) { } else if (name.equals("target")) {
this.target = new Reference(); this.target = new Reference();
return this.target; return this.target;
@ -1357,15 +1357,15 @@ public class ProcessRequest extends DomainResource {
this.response = new Reference(); this.response = new Reference();
return this.response; return this.response;
} else if (name.equals("nullify")) { } else if (name.equals("nullify")) {
throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.nullify"); throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.nullify");
} else if (name.equals("reference")) { } else if (name.equals("reference")) {
throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.reference"); throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.reference");
} else if (name.equals("item")) { } else if (name.equals("item")) {
return addItem(); return addItem();
} else if (name.equals("include")) { } else if (name.equals("include")) {
throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.include"); throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.include");
} else if (name.equals("exclude")) { } else if (name.equals("exclude")) {
throw new FHIRException("Cannot call addChild on a primitive type ProcessRequest.exclude"); throw new FHIRException("Cannot call addChild on a singleton property ProcessRequest.exclude");
} else if (name.equals("period")) { } else if (name.equals("period")) {
this.period = new Period(); this.period = new Period();
return this.period; return this.period;

View File

@ -175,7 +175,7 @@ public class ProcessResponse extends DomainResource {
this.type = new Coding(); this.type = new Coding();
return this.type; return this.type;
} else if (name.equals("text")) { } else if (name.equals("text")) {
throw new FHIRException("Cannot call addChild on a primitive type ProcessResponse.text"); throw new FHIRException("Cannot call addChild on a singleton property ProcessResponse.text");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -971,7 +971,7 @@ public class ProcessResponse extends DomainResource {
this.outcome = new Coding(); this.outcome = new Coding();
return this.outcome; return this.outcome;
} else if (name.equals("disposition")) { } else if (name.equals("disposition")) {
throw new FHIRException("Cannot call addChild on a primitive type ProcessResponse.disposition"); throw new FHIRException("Cannot call addChild on a singleton property ProcessResponse.disposition");
} else if (name.equals("ruleset")) { } else if (name.equals("ruleset")) {
this.ruleset = new Coding(); this.ruleset = new Coding();
return this.ruleset; return this.ruleset;
@ -979,7 +979,7 @@ public class ProcessResponse extends DomainResource {
this.originalRuleset = new Coding(); this.originalRuleset = new Coding();
return this.originalRuleset; return this.originalRuleset;
} else if (name.equals("created")) { } else if (name.equals("created")) {
throw new FHIRException("Cannot call addChild on a primitive type ProcessResponse.created"); throw new FHIRException("Cannot call addChild on a singleton property ProcessResponse.created");
} else if (name.equals("organization")) { } else if (name.equals("organization")) {
this.organization = new Reference(); this.organization = new Reference();
return this.organization; return this.organization;

View File

@ -648,7 +648,7 @@ public class Provenance extends DomainResource {
this.type = new CodeableConcept(); this.type = new CodeableConcept();
return this.type; return this.type;
} else if (name.equals("target")) { } else if (name.equals("target")) {
throw new FHIRException("Cannot call addChild on a primitive type Provenance.target"); throw new FHIRException("Cannot call addChild on a singleton property Provenance.target");
} else } else
return super.addChild(name); return super.addChild(name);
} }
@ -1003,14 +1003,14 @@ public class Provenance extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("role")) { if (name.equals("role")) {
throw new FHIRException("Cannot call addChild on a primitive type Provenance.role"); throw new FHIRException("Cannot call addChild on a singleton property Provenance.role");
} else if (name.equals("type")) { } else if (name.equals("type")) {
this.type = new Coding(); this.type = new Coding();
return this.type; return this.type;
} else if (name.equals("reference")) { } else if (name.equals("reference")) {
throw new FHIRException("Cannot call addChild on a primitive type Provenance.reference"); throw new FHIRException("Cannot call addChild on a singleton property Provenance.reference");
} else if (name.equals("display")) { } else if (name.equals("display")) {
throw new FHIRException("Cannot call addChild on a primitive type Provenance.display"); throw new FHIRException("Cannot call addChild on a singleton property Provenance.display");
} else if (name.equals("agent")) { } else if (name.equals("agent")) {
this.agent = new ProvenanceAgentComponent(); this.agent = new ProvenanceAgentComponent();
return this.agent; return this.agent;
@ -1689,7 +1689,7 @@ public class Provenance extends DomainResource {
this.period = new Period(); this.period = new Period();
return this.period; return this.period;
} else if (name.equals("recorded")) { } else if (name.equals("recorded")) {
throw new FHIRException("Cannot call addChild on a primitive type Provenance.recorded"); throw new FHIRException("Cannot call addChild on a singleton property Provenance.recorded");
} else if (name.equals("reason")) { } else if (name.equals("reason")) {
return addReason(); return addReason();
} else if (name.equals("activity")) { } else if (name.equals("activity")) {
@ -1699,7 +1699,7 @@ public class Provenance extends DomainResource {
this.location = new Reference(); this.location = new Reference();
return this.location; return this.location;
} else if (name.equals("policy")) { } else if (name.equals("policy")) {
throw new FHIRException("Cannot call addChild on a primitive type Provenance.policy"); throw new FHIRException("Cannot call addChild on a singleton property Provenance.policy");
} else if (name.equals("agent")) { } else if (name.equals("agent")) {
return addAgent(); return addAgent();
} else if (name.equals("entity")) { } else if (name.equals("entity")) {

View File

@ -574,15 +574,15 @@ public class Quantity extends Type implements ICompositeType {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("value")) { if (name.equals("value")) {
throw new FHIRException("Cannot call addChild on a primitive type Quantity.value"); throw new FHIRException("Cannot call addChild on a singleton property Quantity.value");
} else if (name.equals("comparator")) { } else if (name.equals("comparator")) {
throw new FHIRException("Cannot call addChild on a primitive type Quantity.comparator"); throw new FHIRException("Cannot call addChild on a singleton property Quantity.comparator");
} else if (name.equals("unit")) { } else if (name.equals("unit")) {
throw new FHIRException("Cannot call addChild on a primitive type Quantity.unit"); throw new FHIRException("Cannot call addChild on a singleton property Quantity.unit");
} else if (name.equals("system")) { } else if (name.equals("system")) {
throw new FHIRException("Cannot call addChild on a primitive type Quantity.system"); throw new FHIRException("Cannot call addChild on a singleton property Quantity.system");
} else if (name.equals("code")) { } else if (name.equals("code")) {
throw new FHIRException("Cannot call addChild on a primitive type Quantity.code"); throw new FHIRException("Cannot call addChild on a singleton property Quantity.code");
} else } else
return super.addChild(name); return super.addChild(name);
} }

View File

@ -1089,17 +1089,17 @@ public class Questionnaire extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("linkId")) { if (name.equals("linkId")) {
throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.linkId"); throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.linkId");
} else if (name.equals("title")) { } else if (name.equals("title")) {
throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.title"); throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.title");
} else if (name.equals("concept")) { } else if (name.equals("concept")) {
return addConcept(); return addConcept();
} else if (name.equals("text")) { } else if (name.equals("text")) {
throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.text"); throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.text");
} else if (name.equals("required")) { } else if (name.equals("required")) {
throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.required"); throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.required");
} else if (name.equals("repeats")) { } else if (name.equals("repeats")) {
throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.repeats"); throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.repeats");
} else if (name.equals("group")) { } else if (name.equals("group")) {
return addGroup(); return addGroup();
} else if (name.equals("question")) { } else if (name.equals("question")) {
@ -1794,17 +1794,17 @@ public class Questionnaire extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("linkId")) { if (name.equals("linkId")) {
throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.linkId"); throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.linkId");
} else if (name.equals("concept")) { } else if (name.equals("concept")) {
return addConcept(); return addConcept();
} else if (name.equals("text")) { } else if (name.equals("text")) {
throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.text"); throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.text");
} else if (name.equals("type")) { } else if (name.equals("type")) {
throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.type"); throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.type");
} else if (name.equals("required")) { } else if (name.equals("required")) {
throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.required"); throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.required");
} else if (name.equals("repeats")) { } else if (name.equals("repeats")) {
throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.repeats"); throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.repeats");
} else if (name.equals("options")) { } else if (name.equals("options")) {
this.options = new Reference(); this.options = new Reference();
return this.options; return this.options;
@ -2417,17 +2417,17 @@ public class Questionnaire extends DomainResource {
if (name.equals("identifier")) { if (name.equals("identifier")) {
return addIdentifier(); return addIdentifier();
} else if (name.equals("version")) { } else if (name.equals("version")) {
throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.version"); throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.version");
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.status"); throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.status");
} else if (name.equals("date")) { } else if (name.equals("date")) {
throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.date"); throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.date");
} else if (name.equals("publisher")) { } else if (name.equals("publisher")) {
throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.publisher"); throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.publisher");
} else if (name.equals("telecom")) { } else if (name.equals("telecom")) {
return addTelecom(); return addTelecom();
} else if (name.equals("subjectType")) { } else if (name.equals("subjectType")) {
throw new FHIRException("Cannot call addChild on a primitive type Questionnaire.subjectType"); throw new FHIRException("Cannot call addChild on a singleton property Questionnaire.subjectType");
} else if (name.equals("group")) { } else if (name.equals("group")) {
this.group = new GroupComponent(); this.group = new GroupComponent();
return this.group; return this.group;

View File

@ -590,11 +590,11 @@ public class QuestionnaireResponse extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("linkId")) { if (name.equals("linkId")) {
throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.linkId"); throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.linkId");
} else if (name.equals("title")) { } else if (name.equals("title")) {
throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.title"); throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.title");
} else if (name.equals("text")) { } else if (name.equals("text")) {
throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.text"); throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.text");
} else if (name.equals("subject")) { } else if (name.equals("subject")) {
this.subject = new Reference(); this.subject = new Reference();
return this.subject; return this.subject;
@ -879,9 +879,9 @@ public class QuestionnaireResponse extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("linkId")) { if (name.equals("linkId")) {
throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.linkId"); throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.linkId");
} else if (name.equals("text")) { } else if (name.equals("text")) {
throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.text"); throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.text");
} else if (name.equals("answer")) { } else if (name.equals("answer")) {
return addAnswer(); return addAnswer();
} else } else
@ -1952,7 +1952,7 @@ public class QuestionnaireResponse extends DomainResource {
this.questionnaire = new Reference(); this.questionnaire = new Reference();
return this.questionnaire; return this.questionnaire;
} else if (name.equals("status")) { } else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.status"); throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.status");
} else if (name.equals("subject")) { } else if (name.equals("subject")) {
this.subject = new Reference(); this.subject = new Reference();
return this.subject; return this.subject;
@ -1960,7 +1960,7 @@ public class QuestionnaireResponse extends DomainResource {
this.author = new Reference(); this.author = new Reference();
return this.author; return this.author;
} else if (name.equals("authored")) { } else if (name.equals("authored")) {
throw new FHIRException("Cannot call addChild on a primitive type QuestionnaireResponse.authored"); throw new FHIRException("Cannot call addChild on a singleton property QuestionnaireResponse.authored");
} else if (name.equals("source")) { } else if (name.equals("source")) {
this.source = new Reference(); this.source = new Reference();
return this.source; return this.source;

View File

@ -256,9 +256,9 @@ public class Reference extends BaseReference implements IBaseReference, IComposi
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("reference")) { if (name.equals("reference")) {
throw new FHIRException("Cannot call addChild on a primitive type Reference.reference"); throw new FHIRException("Cannot call addChild on a singleton property Reference.reference");
} else if (name.equals("display")) { } else if (name.equals("display")) {
throw new FHIRException("Cannot call addChild on a primitive type Reference.display"); throw new FHIRException("Cannot call addChild on a singleton property Reference.display");
} else } else
return super.addChild(name); return super.addChild(name);
} }

View File

@ -1279,11 +1279,11 @@ public class ReferralRequest extends DomainResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("status")) { if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type ReferralRequest.status"); throw new FHIRException("Cannot call addChild on a singleton property ReferralRequest.status");
} else if (name.equals("identifier")) { } else if (name.equals("identifier")) {
return addIdentifier(); return addIdentifier();
} else if (name.equals("date")) { } else if (name.equals("date")) {
throw new FHIRException("Cannot call addChild on a primitive type ReferralRequest.date"); throw new FHIRException("Cannot call addChild on a singleton property ReferralRequest.date");
} else if (name.equals("type")) { } else if (name.equals("type")) {
this.type = new CodeableConcept(); this.type = new CodeableConcept();
return this.type; return this.type;
@ -1305,12 +1305,12 @@ public class ReferralRequest extends DomainResource {
this.encounter = new Reference(); this.encounter = new Reference();
return this.encounter; return this.encounter;
} else if (name.equals("dateSent")) { } else if (name.equals("dateSent")) {
throw new FHIRException("Cannot call addChild on a primitive type ReferralRequest.dateSent"); throw new FHIRException("Cannot call addChild on a singleton property ReferralRequest.dateSent");
} else if (name.equals("reason")) { } else if (name.equals("reason")) {
this.reason = new CodeableConcept(); this.reason = new CodeableConcept();
return this.reason; return this.reason;
} else if (name.equals("description")) { } else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type ReferralRequest.description"); throw new FHIRException("Cannot call addChild on a singleton property ReferralRequest.description");
} else if (name.equals("serviceRequested")) { } else if (name.equals("serviceRequested")) {
return addServiceRequested(); return addServiceRequested();
} else if (name.equals("supportingInformation")) { } else if (name.equals("supportingInformation")) {

View File

@ -626,9 +626,9 @@ public class RelatedPerson extends DomainResource {
} else if (name.equals("telecom")) { } else if (name.equals("telecom")) {
return addTelecom(); return addTelecom();
} else if (name.equals("gender")) { } else if (name.equals("gender")) {
throw new FHIRException("Cannot call addChild on a primitive type RelatedPerson.gender"); throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.gender");
} else if (name.equals("birthDate")) { } else if (name.equals("birthDate")) {
throw new FHIRException("Cannot call addChild on a primitive type RelatedPerson.birthDate"); throw new FHIRException("Cannot call addChild on a singleton property RelatedPerson.birthDate");
} else if (name.equals("address")) { } else if (name.equals("address")) {
return addAddress(); return addAddress();
} else if (name.equals("photo")) { } else if (name.equals("photo")) {

View File

@ -317,14 +317,14 @@ public abstract class Resource extends BaseResource implements IAnyResource {
@Override @Override
public Base addChild(String name) throws FHIRException { public Base addChild(String name) throws FHIRException {
if (name.equals("id")) { if (name.equals("id")) {
throw new FHIRException("Cannot call addChild on a primitive type Resource.id"); throw new FHIRException("Cannot call addChild on a singleton property Resource.id");
} else if (name.equals("meta")) { } else if (name.equals("meta")) {
this.meta = new Meta(); this.meta = new Meta();
return this.meta; return this.meta;
} else if (name.equals("implicitRules")) { } else if (name.equals("implicitRules")) {
throw new FHIRException("Cannot call addChild on a primitive type Resource.implicitRules"); throw new FHIRException("Cannot call addChild on a singleton property Resource.implicitRules");
} else if (name.equals("language")) { } else if (name.equals("language")) {
throw new FHIRException("Cannot call addChild on a primitive type Resource.language"); throw new FHIRException("Cannot call addChild on a singleton property Resource.language");
} else } else
return super.addChild(name); return super.addChild(name);
} }

Some files were not shown because too many files have changed in this diff Show More