Merge pull request #1695 from hapifhir/do-20240719-enum-null-checks-r4

Return null for all toCode enum params that are Enum.NULL (r4)
This commit is contained in:
Grahame Grieve 2024-07-20 05:38:09 +08:00 committed by GitHub
commit 3450038645
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
759 changed files with 5210 additions and 3382 deletions

View File

@ -213,7 +213,9 @@ public class Account extends DomainResource {
}
public String toCode(AccountStatus code) {
if (code == AccountStatus.ACTIVE)
if (code == AccountStatus.NULL)
return null;
if (code == AccountStatus.ACTIVE)
return "active";
if (code == AccountStatus.INACTIVE)
return "inactive";
@ -224,7 +226,7 @@ public class Account extends DomainResource {
if (code == AccountStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(AccountStatus code) {
return code.getSystem();
@ -465,9 +467,9 @@ public class Account extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("coverage")) {
this.coverage = null;
@ -805,9 +807,9 @@ public class Account extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("party")) {
this.party = null;
@ -1772,9 +1774,9 @@ public class Account extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -407,7 +407,9 @@ public class ActivityDefinition extends MetadataResource {
}
public String toCode(ActivityDefinitionKind code) {
if (code == ActivityDefinitionKind.APPOINTMENT)
if (code == ActivityDefinitionKind.NULL)
return null;
if (code == ActivityDefinitionKind.APPOINTMENT)
return "Appointment";
if (code == ActivityDefinitionKind.APPOINTMENTRESPONSE)
return "AppointmentResponse";
@ -438,7 +440,7 @@ public class ActivityDefinition extends MetadataResource {
if (code == ActivityDefinitionKind.VISIONPRESCRIPTION)
return "VisionPrescription";
return "?";
}
}
public String toSystem(ActivityDefinitionKind code) {
return code.getSystem();
@ -692,7 +694,9 @@ public class ActivityDefinition extends MetadataResource {
}
public String toCode(RequestIntent code) {
if (code == RequestIntent.PROPOSAL)
if (code == RequestIntent.NULL)
return null;
if (code == RequestIntent.PROPOSAL)
return "proposal";
if (code == RequestIntent.PLAN)
return "plan";
@ -711,7 +715,7 @@ public class ActivityDefinition extends MetadataResource {
if (code == RequestIntent.OPTION)
return "option";
return "?";
}
}
public String toSystem(RequestIntent code) {
return code.getSystem();
@ -864,7 +868,9 @@ public class ActivityDefinition extends MetadataResource {
}
public String toCode(RequestPriority code) {
if (code == RequestPriority.ROUTINE)
if (code == RequestPriority.NULL)
return null;
if (code == RequestPriority.ROUTINE)
return "routine";
if (code == RequestPriority.URGENT)
return "urgent";
@ -873,7 +879,7 @@ public class ActivityDefinition extends MetadataResource {
if (code == RequestPriority.STAT)
return "stat";
return "?";
}
}
public String toSystem(RequestPriority code) {
return code.getSystem();
@ -1024,7 +1030,9 @@ public class ActivityDefinition extends MetadataResource {
}
public String toCode(ActivityParticipantType code) {
if (code == ActivityParticipantType.PATIENT)
if (code == ActivityParticipantType.NULL)
return null;
if (code == ActivityParticipantType.PATIENT)
return "patient";
if (code == ActivityParticipantType.PRACTITIONER)
return "practitioner";
@ -1033,7 +1041,7 @@ public class ActivityDefinition extends MetadataResource {
if (code == ActivityParticipantType.DEVICE)
return "device";
return "?";
}
}
public String toSystem(ActivityParticipantType code) {
return code.getSystem();
@ -1211,9 +1219,9 @@ public class ActivityDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -1517,9 +1525,9 @@ public class ActivityDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("path")) {
this.path = null;
@ -5452,9 +5460,9 @@ public class ActivityDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("url")) {
this.url = null;

View File

@ -215,7 +215,9 @@ public class Address extends Type implements ICompositeType {
}
public String toCode(AddressUse code) {
if (code == AddressUse.HOME)
if (code == AddressUse.NULL)
return null;
if (code == AddressUse.HOME)
return "home";
if (code == AddressUse.WORK)
return "work";
@ -226,7 +228,7 @@ public class Address extends Type implements ICompositeType {
if (code == AddressUse.BILLING)
return "billing";
return "?";
}
}
public String toSystem(AddressUse code) {
return code.getSystem();
@ -359,14 +361,16 @@ public class Address extends Type implements ICompositeType {
}
public String toCode(AddressType code) {
if (code == AddressType.POSTAL)
if (code == AddressType.NULL)
return null;
if (code == AddressType.POSTAL)
return "postal";
if (code == AddressType.PHYSICAL)
return "physical";
if (code == AddressType.BOTH)
return "both";
return "?";
}
}
public String toSystem(AddressType code) {
return code.getSystem();
@ -1177,9 +1181,9 @@ public class Address extends Type implements ICompositeType {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("use")) {
this.use = null;

View File

@ -162,12 +162,14 @@ public class AdverseEvent extends DomainResource {
}
public String toCode(AdverseEventActuality code) {
if (code == AdverseEventActuality.ACTUAL)
if (code == AdverseEventActuality.NULL)
return null;
if (code == AdverseEventActuality.ACTUAL)
return "actual";
if (code == AdverseEventActuality.POTENTIAL)
return "potential";
return "?";
}
}
public String toSystem(AdverseEventActuality code) {
return code.getSystem();
@ -391,9 +393,9 @@ public class AdverseEvent extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("instance")) {
this.instance = null;
@ -775,9 +777,9 @@ public class AdverseEvent extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("assessment")) {
this.assessment = null;
@ -2479,9 +2481,9 @@ public class AdverseEvent extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.identifier = null;

View File

@ -165,12 +165,14 @@ public class AllergyIntolerance extends DomainResource {
}
public String toCode(AllergyIntoleranceType code) {
if (code == AllergyIntoleranceType.ALLERGY)
if (code == AllergyIntoleranceType.NULL)
return null;
if (code == AllergyIntoleranceType.ALLERGY)
return "allergy";
if (code == AllergyIntoleranceType.INTOLERANCE)
return "intolerance";
return "?";
}
}
public String toSystem(AllergyIntoleranceType code) {
return code.getSystem();
@ -328,7 +330,9 @@ public class AllergyIntolerance extends DomainResource {
}
public String toCode(AllergyIntoleranceCategory code) {
if (code == AllergyIntoleranceCategory.FOOD)
if (code == AllergyIntoleranceCategory.NULL)
return null;
if (code == AllergyIntoleranceCategory.FOOD)
return "food";
if (code == AllergyIntoleranceCategory.MEDICATION)
return "medication";
@ -337,7 +341,7 @@ public class AllergyIntolerance extends DomainResource {
if (code == AllergyIntoleranceCategory.BIOLOGIC)
return "biologic";
return "?";
}
}
public String toSystem(AllergyIntoleranceCategory code) {
return code.getSystem();
@ -472,14 +476,16 @@ public class AllergyIntolerance extends DomainResource {
}
public String toCode(AllergyIntoleranceCriticality code) {
if (code == AllergyIntoleranceCriticality.LOW)
if (code == AllergyIntoleranceCriticality.NULL)
return null;
if (code == AllergyIntoleranceCriticality.LOW)
return "low";
if (code == AllergyIntoleranceCriticality.HIGH)
return "high";
if (code == AllergyIntoleranceCriticality.UNABLETOASSESS)
return "unable-to-assess";
return "?";
}
}
public String toSystem(AllergyIntoleranceCriticality code) {
return code.getSystem();
@ -612,14 +618,16 @@ public class AllergyIntolerance extends DomainResource {
}
public String toCode(AllergyIntoleranceSeverity code) {
if (code == AllergyIntoleranceSeverity.MILD)
if (code == AllergyIntoleranceSeverity.NULL)
return null;
if (code == AllergyIntoleranceSeverity.MILD)
return "mild";
if (code == AllergyIntoleranceSeverity.MODERATE)
return "moderate";
if (code == AllergyIntoleranceSeverity.SEVERE)
return "severe";
return "?";
}
}
public String toSystem(AllergyIntoleranceSeverity code) {
return code.getSystem();
@ -1198,9 +1206,9 @@ public class AllergyIntolerance extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("substance")) {
this.substance = null;
@ -2696,9 +2704,9 @@ public class AllergyIntolerance extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -315,7 +315,9 @@ public class Appointment extends DomainResource {
}
public String toCode(AppointmentStatus code) {
if (code == AppointmentStatus.PROPOSED)
if (code == AppointmentStatus.NULL)
return null;
if (code == AppointmentStatus.PROPOSED)
return "proposed";
if (code == AppointmentStatus.PENDING)
return "pending";
@ -336,7 +338,7 @@ public class Appointment extends DomainResource {
if (code == AppointmentStatus.WAITLIST)
return "waitlist";
return "?";
}
}
public String toSystem(AppointmentStatus code) {
return code.getSystem();
@ -471,14 +473,16 @@ public class Appointment extends DomainResource {
}
public String toCode(ParticipantRequired code) {
if (code == ParticipantRequired.REQUIRED)
if (code == ParticipantRequired.NULL)
return null;
if (code == ParticipantRequired.REQUIRED)
return "required";
if (code == ParticipantRequired.OPTIONAL)
return "optional";
if (code == ParticipantRequired.INFORMATIONONLY)
return "information-only";
return "?";
}
}
public String toSystem(ParticipantRequired code) {
return code.getSystem();
@ -633,7 +637,9 @@ public class Appointment extends DomainResource {
}
public String toCode(ParticipationStatus code) {
if (code == ParticipationStatus.ACCEPTED)
if (code == ParticipationStatus.NULL)
return null;
if (code == ParticipationStatus.ACCEPTED)
return "accepted";
if (code == ParticipationStatus.DECLINED)
return "declined";
@ -642,7 +648,7 @@ public class Appointment extends DomainResource {
if (code == ParticipationStatus.NEEDSACTION)
return "needs-action";
return "?";
}
}
public String toSystem(ParticipationStatus code) {
return code.getSystem();
@ -1060,9 +1066,9 @@ public class Appointment extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.getType().remove(castToCodeableConcept(value));
@ -3084,9 +3090,9 @@ public class Appointment extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -197,7 +197,9 @@ public class AppointmentResponse extends DomainResource {
}
public String toCode(ParticipantStatus code) {
if (code == ParticipantStatus.ACCEPTED)
if (code == ParticipantStatus.NULL)
return null;
if (code == ParticipantStatus.ACCEPTED)
return "accepted";
if (code == ParticipantStatus.DECLINED)
return "declined";
@ -206,7 +208,7 @@ public class AppointmentResponse extends DomainResource {
if (code == ParticipantStatus.NEEDSACTION)
return "needs-action";
return "?";
}
}
public String toSystem(ParticipantStatus code) {
return code.getSystem();
@ -911,9 +913,9 @@ public class AppointmentResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -215,7 +215,9 @@ public class AuditEvent extends DomainResource {
}
public String toCode(AuditEventAction code) {
if (code == AuditEventAction.C)
if (code == AuditEventAction.NULL)
return null;
if (code == AuditEventAction.C)
return "C";
if (code == AuditEventAction.R)
return "R";
@ -226,7 +228,7 @@ public class AuditEvent extends DomainResource {
if (code == AuditEventAction.E)
return "E";
return "?";
}
}
public String toSystem(AuditEventAction code) {
return code.getSystem();
@ -380,7 +382,9 @@ public class AuditEvent extends DomainResource {
}
public String toCode(AuditEventOutcome code) {
if (code == AuditEventOutcome._0)
if (code == AuditEventOutcome.NULL)
return null;
if (code == AuditEventOutcome._0)
return "0";
if (code == AuditEventOutcome._4)
return "4";
@ -389,7 +393,7 @@ public class AuditEvent extends DomainResource {
if (code == AuditEventOutcome._12)
return "12";
return "?";
}
}
public String toSystem(AuditEventOutcome code) {
return code.getSystem();
@ -558,7 +562,9 @@ public class AuditEvent extends DomainResource {
}
public String toCode(AuditEventAgentNetworkType code) {
if (code == AuditEventAgentNetworkType._1)
if (code == AuditEventAgentNetworkType.NULL)
return null;
if (code == AuditEventAgentNetworkType._1)
return "1";
if (code == AuditEventAgentNetworkType._2)
return "2";
@ -569,7 +575,7 @@ public class AuditEvent extends DomainResource {
if (code == AuditEventAgentNetworkType._5)
return "5";
return "?";
}
}
public String toSystem(AuditEventAgentNetworkType code) {
return code.getSystem();
@ -1415,9 +1421,9 @@ public class AuditEvent extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -1819,9 +1825,9 @@ public class AuditEvent extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("address")) {
this.address = null;
@ -2201,9 +2207,9 @@ public class AuditEvent extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("site")) {
this.site = null;
@ -2939,9 +2945,9 @@ public class AuditEvent extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("what")) {
this.what = null;
@ -3316,9 +3322,9 @@ public class AuditEvent extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -4203,9 +4209,9 @@ public class AuditEvent extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;

View File

@ -221,7 +221,9 @@ public class BiologicallyDerivedProduct extends DomainResource {
}
public String toCode(BiologicallyDerivedProductCategory code) {
if (code == BiologicallyDerivedProductCategory.ORGAN)
if (code == BiologicallyDerivedProductCategory.NULL)
return null;
if (code == BiologicallyDerivedProductCategory.ORGAN)
return "organ";
if (code == BiologicallyDerivedProductCategory.TISSUE)
return "tissue";
@ -232,7 +234,7 @@ public class BiologicallyDerivedProduct extends DomainResource {
if (code == BiologicallyDerivedProductCategory.BIOLOGICALAGENT)
return "biologicalAgent";
return "?";
}
}
public String toSystem(BiologicallyDerivedProductCategory code) {
return code.getSystem();
@ -350,12 +352,14 @@ public class BiologicallyDerivedProduct extends DomainResource {
}
public String toCode(BiologicallyDerivedProductStatus code) {
if (code == BiologicallyDerivedProductStatus.AVAILABLE)
if (code == BiologicallyDerivedProductStatus.NULL)
return null;
if (code == BiologicallyDerivedProductStatus.AVAILABLE)
return "available";
if (code == BiologicallyDerivedProductStatus.UNAVAILABLE)
return "unavailable";
return "?";
}
}
public String toSystem(BiologicallyDerivedProductStatus code) {
return code.getSystem();
@ -494,14 +498,16 @@ public class BiologicallyDerivedProduct extends DomainResource {
}
public String toCode(BiologicallyDerivedProductStorageScale code) {
if (code == BiologicallyDerivedProductStorageScale.FARENHEIT)
if (code == BiologicallyDerivedProductStorageScale.NULL)
return null;
if (code == BiologicallyDerivedProductStorageScale.FARENHEIT)
return "farenheit";
if (code == BiologicallyDerivedProductStorageScale.CELSIUS)
return "celsius";
if (code == BiologicallyDerivedProductStorageScale.KELVIN)
return "kelvin";
return "?";
}
}
public String toSystem(BiologicallyDerivedProductStorageScale code) {
return code.getSystem();
@ -793,9 +799,9 @@ public class BiologicallyDerivedProduct extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("collector")) {
this.collector = null;
@ -1219,9 +1225,9 @@ public class BiologicallyDerivedProduct extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("description")) {
this.description = null;
@ -1535,9 +1541,9 @@ public class BiologicallyDerivedProduct extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("description")) {
this.description = null;
@ -1958,9 +1964,9 @@ public class BiologicallyDerivedProduct extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("description")) {
this.description = null;
@ -2917,9 +2923,9 @@ public class BiologicallyDerivedProduct extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -294,7 +294,9 @@ public class Bundle extends Resource implements IBaseBundle {
}
public String toCode(BundleType code) {
if (code == BundleType.DOCUMENT)
if (code == BundleType.NULL)
return null;
if (code == BundleType.DOCUMENT)
return "document";
if (code == BundleType.MESSAGE)
return "message";
@ -313,7 +315,7 @@ public class Bundle extends Resource implements IBaseBundle {
if (code == BundleType.COLLECTION)
return "collection";
return "?";
}
}
public String toSystem(BundleType code) {
return code.getSystem();
@ -448,14 +450,16 @@ public class Bundle extends Resource implements IBaseBundle {
}
public String toCode(SearchEntryMode code) {
if (code == SearchEntryMode.MATCH)
if (code == SearchEntryMode.NULL)
return null;
if (code == SearchEntryMode.MATCH)
return "match";
if (code == SearchEntryMode.INCLUDE)
return "include";
if (code == SearchEntryMode.OUTCOME)
return "outcome";
return "?";
}
}
public String toSystem(SearchEntryMode code) {
return code.getSystem();
@ -642,7 +646,9 @@ public class Bundle extends Resource implements IBaseBundle {
}
public String toCode(HTTPVerb code) {
if (code == HTTPVerb.GET)
if (code == HTTPVerb.NULL)
return null;
if (code == HTTPVerb.GET)
return "GET";
if (code == HTTPVerb.HEAD)
return "HEAD";
@ -655,7 +661,7 @@ public class Bundle extends Resource implements IBaseBundle {
if (code == HTTPVerb.PATCH)
return "PATCH";
return "?";
}
}
public String toSystem(HTTPVerb code) {
return code.getSystem();
@ -862,9 +868,9 @@ public class Bundle extends Resource implements IBaseBundle {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("relation")) {
this.relation = null;
@ -1434,9 +1440,9 @@ public class Bundle extends Resource implements IBaseBundle {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("link")) {
this.getLink().remove((BundleLinkComponent) value);
@ -1799,9 +1805,9 @@ public class Bundle extends Resource implements IBaseBundle {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("mode")) {
this.mode = null;
@ -2442,9 +2448,9 @@ public class Bundle extends Resource implements IBaseBundle {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("method")) {
this.method = null;
@ -2998,9 +3004,9 @@ public class Bundle extends Resource implements IBaseBundle {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("status")) {
this.status = null;
@ -3713,9 +3719,9 @@ public class Bundle extends Resource implements IBaseBundle {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.identifier = null;

View File

@ -195,14 +195,16 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(CapabilityStatementKind code) {
if (code == CapabilityStatementKind.INSTANCE)
if (code == CapabilityStatementKind.NULL)
return null;
if (code == CapabilityStatementKind.INSTANCE)
return "instance";
if (code == CapabilityStatementKind.CAPABILITY)
return "capability";
if (code == CapabilityStatementKind.REQUIREMENTS)
return "requirements";
return "?";
}
}
public String toSystem(CapabilityStatementKind code) {
return code.getSystem();
@ -317,12 +319,14 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(RestfulCapabilityMode code) {
if (code == RestfulCapabilityMode.CLIENT)
if (code == RestfulCapabilityMode.NULL)
return null;
if (code == RestfulCapabilityMode.CLIENT)
return "client";
if (code == RestfulCapabilityMode.SERVER)
return "server";
return "?";
}
}
public String toSystem(RestfulCapabilityMode code) {
return code.getSystem();
@ -563,7 +567,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(TypeRestfulInteraction code) {
if (code == TypeRestfulInteraction.READ)
if (code == TypeRestfulInteraction.NULL)
return null;
if (code == TypeRestfulInteraction.READ)
return "read";
if (code == TypeRestfulInteraction.VREAD)
return "vread";
@ -582,7 +588,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
if (code == TypeRestfulInteraction.SEARCHTYPE)
return "search-type";
return "?";
}
}
public String toSystem(TypeRestfulInteraction code) {
return code.getSystem();
@ -716,14 +722,16 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(ResourceVersionPolicy code) {
if (code == ResourceVersionPolicy.NOVERSION)
if (code == ResourceVersionPolicy.NULL)
return null;
if (code == ResourceVersionPolicy.NOVERSION)
return "no-version";
if (code == ResourceVersionPolicy.VERSIONED)
return "versioned";
if (code == ResourceVersionPolicy.VERSIONEDUPDATE)
return "versioned-update";
return "?";
}
}
public String toSystem(ResourceVersionPolicy code) {
return code.getSystem();
@ -876,7 +884,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(ConditionalReadStatus code) {
if (code == ConditionalReadStatus.NOTSUPPORTED)
if (code == ConditionalReadStatus.NULL)
return null;
if (code == ConditionalReadStatus.NOTSUPPORTED)
return "not-supported";
if (code == ConditionalReadStatus.MODIFIEDSINCE)
return "modified-since";
@ -885,7 +895,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
if (code == ConditionalReadStatus.FULLSUPPORT)
return "full-support";
return "?";
}
}
public String toSystem(ConditionalReadStatus code) {
return code.getSystem();
@ -1019,14 +1029,16 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(ConditionalDeleteStatus code) {
if (code == ConditionalDeleteStatus.NOTSUPPORTED)
if (code == ConditionalDeleteStatus.NULL)
return null;
if (code == ConditionalDeleteStatus.NOTSUPPORTED)
return "not-supported";
if (code == ConditionalDeleteStatus.SINGLE)
return "single";
if (code == ConditionalDeleteStatus.MULTIPLE)
return "multiple";
return "?";
}
}
public String toSystem(ConditionalDeleteStatus code) {
return code.getSystem();
@ -1201,7 +1213,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(ReferenceHandlingPolicy code) {
if (code == ReferenceHandlingPolicy.LITERAL)
if (code == ReferenceHandlingPolicy.NULL)
return null;
if (code == ReferenceHandlingPolicy.LITERAL)
return "literal";
if (code == ReferenceHandlingPolicy.LOGICAL)
return "logical";
@ -1212,7 +1226,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
if (code == ReferenceHandlingPolicy.LOCAL)
return "local";
return "?";
}
}
public String toSystem(ReferenceHandlingPolicy code) {
return code.getSystem();
@ -1363,7 +1377,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(SystemRestfulInteraction code) {
if (code == SystemRestfulInteraction.TRANSACTION)
if (code == SystemRestfulInteraction.NULL)
return null;
if (code == SystemRestfulInteraction.TRANSACTION)
return "transaction";
if (code == SystemRestfulInteraction.BATCH)
return "batch";
@ -1372,7 +1388,7 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
if (code == SystemRestfulInteraction.HISTORYSYSTEM)
return "history-system";
return "?";
}
}
public String toSystem(SystemRestfulInteraction code) {
return code.getSystem();
@ -1487,12 +1503,14 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(EventCapabilityMode code) {
if (code == EventCapabilityMode.SENDER)
if (code == EventCapabilityMode.NULL)
return null;
if (code == EventCapabilityMode.SENDER)
return "sender";
if (code == EventCapabilityMode.RECEIVER)
return "receiver";
return "?";
}
}
public String toSystem(EventCapabilityMode code) {
return code.getSystem();
@ -1607,12 +1625,14 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
}
public String toCode(DocumentMode code) {
if (code == DocumentMode.PRODUCER)
if (code == DocumentMode.NULL)
return null;
if (code == DocumentMode.PRODUCER)
return "producer";
if (code == DocumentMode.CONSUMER)
return "consumer";
return "?";
}
}
public String toSystem(DocumentMode code) {
return code.getSystem();
@ -1890,9 +1910,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("name")) {
this.name = null;
@ -2291,9 +2311,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("description")) {
this.description = null;
@ -3071,9 +3091,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("mode")) {
this.mode = null;
@ -3522,9 +3542,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("cors")) {
this.cors = null;
@ -5133,9 +5153,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -5634,9 +5654,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -6110,9 +6130,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("name")) {
this.name = null;
@ -6559,9 +6579,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("name")) {
this.name = null;
@ -6874,9 +6894,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -7341,9 +7361,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("endpoint")) {
this.getEndpoint().remove((CapabilityStatementMessagingEndpointComponent) value);
@ -7645,9 +7665,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("protocol")) {
this.protocol = null;
@ -7950,9 +7970,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("mode")) {
this.mode = null;
@ -8336,9 +8356,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("mode")) {
this.mode = null;
@ -10565,9 +10585,9 @@ public class CapabilityStatement extends MetadataResource implements IBaseConfor
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("url")) {
this.url = null;

View File

@ -260,7 +260,9 @@ public class CarePlan extends DomainResource {
}
public String toCode(CarePlanStatus code) {
if (code == CarePlanStatus.DRAFT)
if (code == CarePlanStatus.NULL)
return null;
if (code == CarePlanStatus.DRAFT)
return "draft";
if (code == CarePlanStatus.ACTIVE)
return "active";
@ -275,7 +277,7 @@ public class CarePlan extends DomainResource {
if (code == CarePlanStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(CarePlanStatus code) {
return code.getSystem();
@ -426,7 +428,9 @@ public class CarePlan extends DomainResource {
}
public String toCode(CarePlanIntent code) {
if (code == CarePlanIntent.PROPOSAL)
if (code == CarePlanIntent.NULL)
return null;
if (code == CarePlanIntent.PROPOSAL)
return "proposal";
if (code == CarePlanIntent.PLAN)
return "plan";
@ -435,7 +439,7 @@ public class CarePlan extends DomainResource {
if (code == CarePlanIntent.OPTION)
return "option";
return "?";
}
}
public String toSystem(CarePlanIntent code) {
return code.getSystem();
@ -658,7 +662,9 @@ public class CarePlan extends DomainResource {
}
public String toCode(CarePlanActivityKind code) {
if (code == CarePlanActivityKind.APPOINTMENT)
if (code == CarePlanActivityKind.NULL)
return null;
if (code == CarePlanActivityKind.APPOINTMENT)
return "Appointment";
if (code == CarePlanActivityKind.COMMUNICATIONREQUEST)
return "CommunicationRequest";
@ -675,7 +681,7 @@ public class CarePlan extends DomainResource {
if (code == CarePlanActivityKind.VISIONPRESCRIPTION)
return "VisionPrescription";
return "?";
}
}
public String toSystem(CarePlanActivityKind code) {
return code.getSystem();
@ -920,7 +926,9 @@ public class CarePlan extends DomainResource {
}
public String toCode(CarePlanActivityStatus code) {
if (code == CarePlanActivityStatus.NOTSTARTED)
if (code == CarePlanActivityStatus.NULL)
return null;
if (code == CarePlanActivityStatus.NOTSTARTED)
return "not-started";
if (code == CarePlanActivityStatus.SCHEDULED)
return "scheduled";
@ -939,7 +947,7 @@ public class CarePlan extends DomainResource {
if (code == CarePlanActivityStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(CarePlanActivityStatus code) {
return code.getSystem();
@ -1384,9 +1392,9 @@ public class CarePlan extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("outcomeCodeableConcept")) {
this.getOutcomeCodeableConcept().remove(castToCodeableConcept(value));
@ -2978,9 +2986,9 @@ public class CarePlan extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("kind")) {
this.kind = null;
@ -5325,9 +5333,9 @@ public class CarePlan extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -216,7 +216,9 @@ public class CareTeam extends DomainResource {
}
public String toCode(CareTeamStatus code) {
if (code == CareTeamStatus.PROPOSED)
if (code == CareTeamStatus.NULL)
return null;
if (code == CareTeamStatus.PROPOSED)
return "proposed";
if (code == CareTeamStatus.ACTIVE)
return "active";
@ -227,7 +229,7 @@ public class CareTeam extends DomainResource {
if (code == CareTeamStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(CareTeamStatus code) {
return code.getSystem();
@ -566,9 +568,9 @@ public class CareTeam extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("role")) {
this.getRole().remove(castToCodeableConcept(value));
@ -1759,9 +1761,9 @@ public class CareTeam extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -159,12 +159,14 @@ public class CatalogEntry extends DomainResource {
}
public String toCode(CatalogEntryRelationType code) {
if (code == CatalogEntryRelationType.TRIGGERS)
if (code == CatalogEntryRelationType.NULL)
return null;
if (code == CatalogEntryRelationType.TRIGGERS)
return "triggers";
if (code == CatalogEntryRelationType.ISREPLACEDBY)
return "is-replaced-by";
return "?";
}
}
public String toSystem(CatalogEntryRelationType code) {
return code.getSystem();
@ -382,9 +384,9 @@ public class CatalogEntry extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("relationtype")) {
this.relationtype = null;
@ -1474,9 +1476,9 @@ public class CatalogEntry extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -263,7 +263,9 @@ public class ChargeItem extends DomainResource {
}
public String toCode(ChargeItemStatus code) {
if (code == ChargeItemStatus.PLANNED)
if (code == ChargeItemStatus.NULL)
return null;
if (code == ChargeItemStatus.PLANNED)
return "planned";
if (code == ChargeItemStatus.BILLABLE)
return "billable";
@ -278,7 +280,7 @@ public class ChargeItem extends DomainResource {
if (code == ChargeItemStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(ChargeItemStatus code) {
return code.getSystem();
@ -467,9 +469,9 @@ public class ChargeItem extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("function")) {
this.function = null;
@ -2692,9 +2694,9 @@ public class ChargeItem extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -253,7 +253,9 @@ public class ChargeItemDefinition extends MetadataResource {
}
public String toCode(ChargeItemDefinitionPriceComponentType code) {
if (code == ChargeItemDefinitionPriceComponentType.BASE)
if (code == ChargeItemDefinitionPriceComponentType.NULL)
return null;
if (code == ChargeItemDefinitionPriceComponentType.BASE)
return "base";
if (code == ChargeItemDefinitionPriceComponentType.SURCHARGE)
return "surcharge";
@ -266,7 +268,7 @@ public class ChargeItemDefinition extends MetadataResource {
if (code == ChargeItemDefinitionPriceComponentType.INFORMATIONAL)
return "informational";
return "?";
}
}
public String toSystem(ChargeItemDefinitionPriceComponentType code) {
return code.getSystem();
@ -579,9 +581,9 @@ public class ChargeItemDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("description")) {
this.description = null;
@ -898,9 +900,9 @@ public class ChargeItemDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("applicability")) {
this.getApplicability().remove((ChargeItemDefinitionApplicabilityComponent) value);
@ -1320,9 +1322,9 @@ public class ChargeItemDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -3290,9 +3292,9 @@ public class ChargeItemDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("url")) {
this.url = null;

View File

@ -198,7 +198,9 @@ public class Claim extends DomainResource {
}
public String toCode(ClaimStatus code) {
if (code == ClaimStatus.ACTIVE)
if (code == ClaimStatus.NULL)
return null;
if (code == ClaimStatus.ACTIVE)
return "active";
if (code == ClaimStatus.CANCELLED)
return "cancelled";
@ -207,7 +209,7 @@ public class Claim extends DomainResource {
if (code == ClaimStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(ClaimStatus code) {
return code.getSystem();
@ -342,14 +344,16 @@ public class Claim extends DomainResource {
}
public String toCode(Use code) {
if (code == Use.CLAIM)
if (code == Use.NULL)
return null;
if (code == Use.CLAIM)
return "claim";
if (code == Use.PREAUTHORIZATION)
return "preauthorization";
if (code == Use.PREDETERMINATION)
return "predetermination";
return "?";
}
}
public String toSystem(Use code) {
return code.getSystem();
@ -570,9 +574,9 @@ public class Claim extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("claim")) {
this.claim = null;
@ -851,9 +855,9 @@ public class Claim extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -1315,9 +1319,9 @@ public class Claim extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("sequence")) {
this.sequence = null;
@ -1970,9 +1974,9 @@ public class Claim extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("sequence")) {
this.sequence = null;
@ -2521,9 +2525,9 @@ public class Claim extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("sequence")) {
this.sequence = null;
@ -3126,9 +3130,9 @@ public class Claim extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("sequence")) {
this.sequence = null;
@ -3875,9 +3879,9 @@ public class Claim extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("sequence")) {
this.sequence = null;
@ -4289,9 +4293,9 @@ public class Claim extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("date")) {
this.date = null;
@ -6037,9 +6041,9 @@ public class Claim extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("sequence")) {
this.sequence = null;
@ -7256,9 +7260,9 @@ public class Claim extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("sequence")) {
this.sequence = null;
@ -8261,9 +8265,9 @@ public class Claim extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("sequence")) {
this.sequence = null;
@ -10370,9 +10374,9 @@ public class Claim extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -199,7 +199,9 @@ public class ClaimResponse extends DomainResource {
}
public String toCode(ClaimResponseStatus code) {
if (code == ClaimResponseStatus.ACTIVE)
if (code == ClaimResponseStatus.NULL)
return null;
if (code == ClaimResponseStatus.ACTIVE)
return "active";
if (code == ClaimResponseStatus.CANCELLED)
return "cancelled";
@ -208,7 +210,7 @@ public class ClaimResponse extends DomainResource {
if (code == ClaimResponseStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(ClaimResponseStatus code) {
return code.getSystem();
@ -343,14 +345,16 @@ public class ClaimResponse extends DomainResource {
}
public String toCode(Use code) {
if (code == Use.CLAIM)
if (code == Use.NULL)
return null;
if (code == Use.CLAIM)
return "claim";
if (code == Use.PREAUTHORIZATION)
return "preauthorization";
if (code == Use.PREDETERMINATION)
return "predetermination";
return "?";
}
}
public String toSystem(Use code) {
return code.getSystem();
@ -503,7 +507,9 @@ public class ClaimResponse extends DomainResource {
}
public String toCode(RemittanceOutcome code) {
if (code == RemittanceOutcome.QUEUED)
if (code == RemittanceOutcome.NULL)
return null;
if (code == RemittanceOutcome.QUEUED)
return "queued";
if (code == RemittanceOutcome.COMPLETE)
return "complete";
@ -512,7 +518,7 @@ public class ClaimResponse extends DomainResource {
if (code == RemittanceOutcome.PARTIAL)
return "partial";
return "?";
}
}
public String toSystem(RemittanceOutcome code) {
return code.getSystem();
@ -892,9 +898,9 @@ public class ClaimResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("itemSequence")) {
this.itemSequence = null;
@ -1326,9 +1332,9 @@ public class ClaimResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("category")) {
this.category = null;
@ -1805,9 +1811,9 @@ public class ClaimResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("detailSequence")) {
this.detailSequence = null;
@ -2223,9 +2229,9 @@ public class ClaimResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("subDetailSequence")) {
this.subDetailSequence = null;
@ -3774,9 +3780,9 @@ public class ClaimResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("itemSequence")) {
this.getItemSequence().remove(castToPositiveInt(value));
@ -4777,9 +4783,9 @@ public class ClaimResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("productOrService")) {
this.productOrService = null;
@ -5570,9 +5576,9 @@ public class ClaimResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("productOrService")) {
this.productOrService = null;
@ -5900,9 +5906,9 @@ public class ClaimResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("category")) {
this.category = null;
@ -6358,9 +6364,9 @@ public class ClaimResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -6806,9 +6812,9 @@ public class ClaimResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("number")) {
this.number = null;
@ -7386,9 +7392,9 @@ public class ClaimResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("sequence")) {
this.sequence = null;
@ -7862,9 +7868,9 @@ public class ClaimResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("itemSequence")) {
this.itemSequence = null;
@ -9912,9 +9918,9 @@ public class ClaimResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -182,14 +182,16 @@ public class ClinicalImpression extends DomainResource {
}
public String toCode(ClinicalImpressionStatus code) {
if (code == ClinicalImpressionStatus.INPROGRESS)
if (code == ClinicalImpressionStatus.NULL)
return null;
if (code == ClinicalImpressionStatus.INPROGRESS)
return "in-progress";
if (code == ClinicalImpressionStatus.COMPLETED)
return "completed";
if (code == ClinicalImpressionStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(ClinicalImpressionStatus code) {
return code.getSystem();
@ -402,9 +404,9 @@ public class ClinicalImpression extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -749,9 +751,9 @@ public class ClinicalImpression extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("itemCodeableConcept")) {
this.itemCodeableConcept = null;
@ -2488,9 +2490,9 @@ public class ClinicalImpression extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -216,7 +216,9 @@ public class CodeSystem extends MetadataResource {
}
public String toCode(CodeSystemHierarchyMeaning code) {
if (code == CodeSystemHierarchyMeaning.GROUPEDBY)
if (code == CodeSystemHierarchyMeaning.NULL)
return null;
if (code == CodeSystemHierarchyMeaning.GROUPEDBY)
return "grouped-by";
if (code == CodeSystemHierarchyMeaning.ISA)
return "is-a";
@ -225,7 +227,7 @@ public class CodeSystem extends MetadataResource {
if (code == CodeSystemHierarchyMeaning.CLASSIFIEDWITH)
return "classified-with";
return "?";
}
}
public String toSystem(CodeSystemHierarchyMeaning code) {
return code.getSystem();
@ -403,7 +405,9 @@ public class CodeSystem extends MetadataResource {
}
public String toCode(CodeSystemContentMode code) {
if (code == CodeSystemContentMode.NOTPRESENT)
if (code == CodeSystemContentMode.NULL)
return null;
if (code == CodeSystemContentMode.NOTPRESENT)
return "not-present";
if (code == CodeSystemContentMode.EXAMPLE)
return "example";
@ -414,7 +418,7 @@ public class CodeSystem extends MetadataResource {
if (code == CodeSystemContentMode.SUPPLEMENT)
return "supplement";
return "?";
}
}
public String toSystem(CodeSystemContentMode code) {
return code.getSystem();
@ -667,7 +671,9 @@ public class CodeSystem extends MetadataResource {
}
public String toCode(FilterOperator code) {
if (code == FilterOperator.EQUAL)
if (code == FilterOperator.NULL)
return null;
if (code == FilterOperator.EQUAL)
return "=";
if (code == FilterOperator.ISA)
return "is-a";
@ -686,7 +692,7 @@ public class CodeSystem extends MetadataResource {
if (code == FilterOperator.EXISTS)
return "exists";
return "?";
}
}
public String toSystem(FilterOperator code) {
return code.getSystem();
@ -894,7 +900,9 @@ public class CodeSystem extends MetadataResource {
}
public String toCode(PropertyType code) {
if (code == PropertyType.CODE)
if (code == PropertyType.NULL)
return null;
if (code == PropertyType.CODE)
return "code";
if (code == PropertyType.CODING)
return "Coding";
@ -909,7 +917,7 @@ public class CodeSystem extends MetadataResource {
if (code == PropertyType.DECIMAL)
return "decimal";
return "?";
}
}
public String toSystem(PropertyType code) {
return code.getSystem();
@ -1279,9 +1287,9 @@ public class CodeSystem extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -1776,9 +1784,9 @@ public class CodeSystem extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -2422,9 +2430,9 @@ public class CodeSystem extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -2817,9 +2825,9 @@ public class CodeSystem extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("language")) {
this.language = null;
@ -3225,9 +3233,9 @@ public class CodeSystem extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -5412,9 +5420,9 @@ public class CodeSystem extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("url")) {
this.url = null;

View File

@ -279,7 +279,9 @@ public class Communication extends DomainResource {
}
public String toCode(CommunicationStatus code) {
if (code == CommunicationStatus.PREPARATION)
if (code == CommunicationStatus.NULL)
return null;
if (code == CommunicationStatus.PREPARATION)
return "preparation";
if (code == CommunicationStatus.INPROGRESS)
return "in-progress";
@ -296,7 +298,7 @@ public class Communication extends DomainResource {
if (code == CommunicationStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(CommunicationStatus code) {
return code.getSystem();
@ -449,7 +451,9 @@ public class Communication extends DomainResource {
}
public String toCode(CommunicationPriority code) {
if (code == CommunicationPriority.ROUTINE)
if (code == CommunicationPriority.NULL)
return null;
if (code == CommunicationPriority.ROUTINE)
return "routine";
if (code == CommunicationPriority.URGENT)
return "urgent";
@ -458,7 +462,7 @@ public class Communication extends DomainResource {
if (code == CommunicationPriority.STAT)
return "stat";
return "?";
}
}
public String toSystem(CommunicationPriority code) {
return code.getSystem();
@ -633,9 +637,9 @@ public class Communication extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("content[x]")) {
this.content = null;
@ -2656,9 +2660,9 @@ public class Communication extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -259,7 +259,9 @@ public class CommunicationRequest extends DomainResource {
}
public String toCode(CommunicationRequestStatus code) {
if (code == CommunicationRequestStatus.DRAFT)
if (code == CommunicationRequestStatus.NULL)
return null;
if (code == CommunicationRequestStatus.DRAFT)
return "draft";
if (code == CommunicationRequestStatus.ACTIVE)
return "active";
@ -274,7 +276,7 @@ public class CommunicationRequest extends DomainResource {
if (code == CommunicationRequestStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(CommunicationRequestStatus code) {
return code.getSystem();
@ -427,7 +429,9 @@ public class CommunicationRequest extends DomainResource {
}
public String toCode(CommunicationPriority code) {
if (code == CommunicationPriority.ROUTINE)
if (code == CommunicationPriority.NULL)
return null;
if (code == CommunicationPriority.ROUTINE)
return "routine";
if (code == CommunicationPriority.URGENT)
return "urgent";
@ -436,7 +440,7 @@ public class CommunicationRequest extends DomainResource {
if (code == CommunicationPriority.STAT)
return "stat";
return "?";
}
}
public String toSystem(CommunicationPriority code) {
return code.getSystem();
@ -611,9 +615,9 @@ public class CommunicationRequest extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("content[x]")) {
this.content = null;
@ -2528,9 +2532,9 @@ public class CommunicationRequest extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -217,7 +217,9 @@ public class CompartmentDefinition extends MetadataResource {
}
public String toCode(CompartmentType code) {
if (code == CompartmentType.PATIENT)
if (code == CompartmentType.NULL)
return null;
if (code == CompartmentType.PATIENT)
return "Patient";
if (code == CompartmentType.ENCOUNTER)
return "Encounter";
@ -228,7 +230,7 @@ public class CompartmentDefinition extends MetadataResource {
if (code == CompartmentType.DEVICE)
return "Device";
return "?";
}
}
public String toSystem(CompartmentType code) {
return code.getSystem();
@ -527,9 +529,9 @@ public class CompartmentDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -1747,9 +1749,9 @@ public class CompartmentDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("url")) {
this.url = null;

View File

@ -209,7 +209,9 @@ public class Composition extends DomainResource {
}
public String toCode(CompositionStatus code) {
if (code == CompositionStatus.PRELIMINARY)
if (code == CompositionStatus.NULL)
return null;
if (code == CompositionStatus.PRELIMINARY)
return "preliminary";
if (code == CompositionStatus.FINAL)
return "final";
@ -218,7 +220,7 @@ public class Composition extends DomainResource {
if (code == CompositionStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(CompositionStatus code) {
return code.getSystem();
@ -405,7 +407,9 @@ public class Composition extends DomainResource {
}
public String toCode(DocumentConfidentiality code) {
if (code == DocumentConfidentiality.U)
if (code == DocumentConfidentiality.NULL)
return null;
if (code == DocumentConfidentiality.U)
return "U";
if (code == DocumentConfidentiality.L)
return "L";
@ -418,7 +422,7 @@ public class Composition extends DomainResource {
if (code == DocumentConfidentiality.V)
return "V";
return "?";
}
}
public String toSystem(DocumentConfidentiality code) {
return code.getSystem();
@ -571,7 +575,9 @@ public class Composition extends DomainResource {
}
public String toCode(CompositionAttestationMode code) {
if (code == CompositionAttestationMode.PERSONAL)
if (code == CompositionAttestationMode.NULL)
return null;
if (code == CompositionAttestationMode.PERSONAL)
return "personal";
if (code == CompositionAttestationMode.PROFESSIONAL)
return "professional";
@ -580,7 +586,7 @@ public class Composition extends DomainResource {
if (code == CompositionAttestationMode.OFFICIAL)
return "official";
return "?";
}
}
public String toSystem(CompositionAttestationMode code) {
return code.getSystem();
@ -732,7 +738,9 @@ public class Composition extends DomainResource {
}
public String toCode(DocumentRelationshipType code) {
if (code == DocumentRelationshipType.REPLACES)
if (code == DocumentRelationshipType.NULL)
return null;
if (code == DocumentRelationshipType.REPLACES)
return "replaces";
if (code == DocumentRelationshipType.TRANSFORMS)
return "transforms";
@ -741,7 +749,7 @@ public class Composition extends DomainResource {
if (code == DocumentRelationshipType.APPENDS)
return "appends";
return "?";
}
}
public String toSystem(DocumentRelationshipType code) {
return code.getSystem();
@ -877,14 +885,16 @@ public class Composition extends DomainResource {
}
public String toCode(SectionMode code) {
if (code == SectionMode.WORKING)
if (code == SectionMode.NULL)
return null;
if (code == SectionMode.WORKING)
return "working";
if (code == SectionMode.SNAPSHOT)
return "snapshot";
if (code == SectionMode.CHANGES)
return "changes";
return "?";
}
}
public String toSystem(SectionMode code) {
return code.getSystem();
@ -1160,9 +1170,9 @@ public class Composition extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("mode")) {
this.mode = null;
@ -1480,9 +1490,9 @@ public class Composition extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -1858,9 +1868,9 @@ public class Composition extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.getCode().remove(castToCodeableConcept(value));
@ -2788,9 +2798,9 @@ public class Composition extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("title")) {
this.title = null;
@ -4175,9 +4185,9 @@ public class Composition extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.identifier = null;

View File

@ -185,14 +185,16 @@ public class ConceptMap extends MetadataResource {
}
public String toCode(ConceptMapGroupUnmappedMode code) {
if (code == ConceptMapGroupUnmappedMode.PROVIDED)
if (code == ConceptMapGroupUnmappedMode.NULL)
return null;
if (code == ConceptMapGroupUnmappedMode.PROVIDED)
return "provided";
if (code == ConceptMapGroupUnmappedMode.FIXED)
return "fixed";
if (code == ConceptMapGroupUnmappedMode.OTHERMAP)
return "other-map";
return "?";
}
}
public String toSystem(ConceptMapGroupUnmappedMode code) {
return code.getSystem();
@ -690,9 +692,9 @@ public class ConceptMap extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("source")) {
this.source = null;
@ -1102,9 +1104,9 @@ public class ConceptMap extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -1749,9 +1751,9 @@ public class ConceptMap extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -2271,9 +2273,9 @@ public class ConceptMap extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("property")) {
this.property = null;
@ -2782,9 +2784,9 @@ public class ConceptMap extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("mode")) {
this.mode = null;
@ -4336,9 +4338,9 @@ public class ConceptMap extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("url")) {
this.url = null;

View File

@ -234,7 +234,9 @@ public class Consent extends DomainResource {
}
public String toCode(ConsentState code) {
if (code == ConsentState.DRAFT)
if (code == ConsentState.NULL)
return null;
if (code == ConsentState.DRAFT)
return "draft";
if (code == ConsentState.PROPOSED)
return "proposed";
@ -247,7 +249,7 @@ public class Consent extends DomainResource {
if (code == ConsentState.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(ConsentState code) {
return code.getSystem();
@ -362,12 +364,14 @@ public class Consent extends DomainResource {
}
public String toCode(ConsentProvisionType code) {
if (code == ConsentProvisionType.DENY)
if (code == ConsentProvisionType.NULL)
return null;
if (code == ConsentProvisionType.DENY)
return "deny";
if (code == ConsentProvisionType.PERMIT)
return "permit";
return "?";
}
}
public String toSystem(ConsentProvisionType code) {
return code.getSystem();
@ -520,7 +524,9 @@ public class Consent extends DomainResource {
}
public String toCode(ConsentDataMeaning code) {
if (code == ConsentDataMeaning.INSTANCE)
if (code == ConsentDataMeaning.NULL)
return null;
if (code == ConsentDataMeaning.INSTANCE)
return "instance";
if (code == ConsentDataMeaning.RELATED)
return "related";
@ -529,7 +535,7 @@ public class Consent extends DomainResource {
if (code == ConsentDataMeaning.AUTHOREDBY)
return "authoredby";
return "?";
}
}
public String toSystem(ConsentDataMeaning code) {
return code.getSystem();
@ -750,9 +756,9 @@ public class Consent extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("authority")) {
this.authority = null;
@ -1111,9 +1117,9 @@ public class Consent extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("verified")) {
this.verified = null;
@ -2057,9 +2063,9 @@ public class Consent extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -2468,9 +2474,9 @@ public class Consent extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("role")) {
this.role = null;
@ -2771,9 +2777,9 @@ public class Consent extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("meaning")) {
this.meaning = null;
@ -3917,9 +3923,9 @@ public class Consent extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -256,7 +256,9 @@ public class ContactPoint extends Type implements ICompositeType {
}
public String toCode(ContactPointSystem code) {
if (code == ContactPointSystem.PHONE)
if (code == ContactPointSystem.NULL)
return null;
if (code == ContactPointSystem.PHONE)
return "phone";
if (code == ContactPointSystem.FAX)
return "fax";
@ -271,7 +273,7 @@ public class ContactPoint extends Type implements ICompositeType {
if (code == ContactPointSystem.OTHER)
return "other";
return "?";
}
}
public String toSystem(ContactPointSystem code) {
return code.getSystem();
@ -447,7 +449,9 @@ public class ContactPoint extends Type implements ICompositeType {
}
public String toCode(ContactPointUse code) {
if (code == ContactPointUse.HOME)
if (code == ContactPointUse.NULL)
return null;
if (code == ContactPointUse.HOME)
return "home";
if (code == ContactPointUse.WORK)
return "work";
@ -458,7 +462,7 @@ public class ContactPoint extends Type implements ICompositeType {
if (code == ContactPointUse.MOBILE)
return "mobile";
return "?";
}
}
public String toSystem(ContactPointUse code) {
return code.getSystem();
@ -869,9 +873,9 @@ public class ContactPoint extends Type implements ICompositeType {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("system")) {
this.system = null;

View File

@ -450,7 +450,9 @@ public class Contract extends DomainResource {
}
public String toCode(ContractStatus code) {
if (code == ContractStatus.AMENDED)
if (code == ContractStatus.NULL)
return null;
if (code == ContractStatus.AMENDED)
return "amended";
if (code == ContractStatus.APPENDED)
return "appended";
@ -481,7 +483,7 @@ public class Contract extends DomainResource {
if (code == ContractStatus.TERMINATED)
return "terminated";
return "?";
}
}
public String toSystem(ContractStatus code) {
return code.getSystem();
@ -885,7 +887,9 @@ public class Contract extends DomainResource {
}
public String toCode(ContractPublicationStatus code) {
if (code == ContractPublicationStatus.AMENDED)
if (code == ContractPublicationStatus.NULL)
return null;
if (code == ContractPublicationStatus.AMENDED)
return "amended";
if (code == ContractPublicationStatus.APPENDED)
return "appended";
@ -916,7 +920,7 @@ public class Contract extends DomainResource {
if (code == ContractPublicationStatus.TERMINATED)
return "terminated";
return "?";
}
}
public String toSystem(ContractPublicationStatus code) {
return code.getSystem();
@ -1417,9 +1421,9 @@ public class Contract extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -2376,9 +2380,9 @@ public class Contract extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.identifier = null;
@ -2950,9 +2954,9 @@ public class Contract extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("number")) {
this.getNumber().remove(castToUnsignedInt(value));
@ -3852,9 +3856,9 @@ public class Contract extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));
@ -4247,9 +4251,9 @@ public class Contract extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("reference")) {
this.getReference().remove(castToReference(value));
@ -4753,9 +4757,9 @@ public class Contract extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("value[x]")) {
this.value = null;
@ -6043,9 +6047,9 @@ public class Contract extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("scope")) {
this.scope = null;
@ -6599,9 +6603,9 @@ public class Contract extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("reference")) {
this.reference = null;
@ -7816,9 +7820,9 @@ public class Contract extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("entity[x]")) {
this.entity = null;
@ -9757,9 +9761,9 @@ public class Contract extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("doNotPerform")) {
this.doNotPerform = null;
@ -10305,9 +10309,9 @@ public class Contract extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("reference")) {
this.getReference().remove(castToReference(value));
@ -10651,9 +10655,9 @@ public class Contract extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -10916,9 +10920,9 @@ public class Contract extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("content[x]")) {
this.content = null;
@ -11147,9 +11151,9 @@ public class Contract extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("content[x]")) {
this.content = null;
@ -11378,9 +11382,9 @@ public class Contract extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("content[x]")) {
this.content = null;
@ -14177,9 +14181,9 @@ public class Contract extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -191,7 +191,9 @@ public class Contributor extends Type implements ICompositeType {
}
public String toCode(ContributorType code) {
if (code == ContributorType.AUTHOR)
if (code == ContributorType.NULL)
return null;
if (code == ContributorType.AUTHOR)
return "author";
if (code == ContributorType.EDITOR)
return "editor";
@ -200,7 +202,7 @@ public class Contributor extends Type implements ICompositeType {
if (code == ContributorType.ENDORSER)
return "endorser";
return "?";
}
}
public String toSystem(ContributorType code) {
return code.getSystem();
@ -480,9 +482,9 @@ public class Contributor extends Type implements ICompositeType {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;

View File

@ -194,7 +194,9 @@ public class Coverage extends DomainResource {
}
public String toCode(CoverageStatus code) {
if (code == CoverageStatus.ACTIVE)
if (code == CoverageStatus.NULL)
return null;
if (code == CoverageStatus.ACTIVE)
return "active";
if (code == CoverageStatus.CANCELLED)
return "cancelled";
@ -203,7 +205,7 @@ public class Coverage extends DomainResource {
if (code == CoverageStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(CoverageStatus code) {
return code.getSystem();
@ -463,9 +465,9 @@ public class Coverage extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -831,9 +833,9 @@ public class Coverage extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -1088,9 +1090,9 @@ public class Coverage extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -2527,9 +2529,9 @@ public class Coverage extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -198,7 +198,9 @@ public class CoverageEligibilityRequest extends DomainResource {
}
public String toCode(EligibilityRequestStatus code) {
if (code == EligibilityRequestStatus.ACTIVE)
if (code == EligibilityRequestStatus.NULL)
return null;
if (code == EligibilityRequestStatus.ACTIVE)
return "active";
if (code == EligibilityRequestStatus.CANCELLED)
return "cancelled";
@ -207,7 +209,7 @@ public class CoverageEligibilityRequest extends DomainResource {
if (code == EligibilityRequestStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(EligibilityRequestStatus code) {
return code.getSystem();
@ -362,7 +364,9 @@ public class CoverageEligibilityRequest extends DomainResource {
}
public String toCode(EligibilityRequestPurpose code) {
if (code == EligibilityRequestPurpose.AUTHREQUIREMENTS)
if (code == EligibilityRequestPurpose.NULL)
return null;
if (code == EligibilityRequestPurpose.AUTHREQUIREMENTS)
return "auth-requirements";
if (code == EligibilityRequestPurpose.BENEFITS)
return "benefits";
@ -371,7 +375,7 @@ public class CoverageEligibilityRequest extends DomainResource {
if (code == EligibilityRequestPurpose.VALIDATION)
return "validation";
return "?";
}
}
public String toSystem(EligibilityRequestPurpose code) {
return code.getSystem();
@ -664,9 +668,9 @@ public class CoverageEligibilityRequest extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("sequence")) {
this.sequence = null;
@ -1072,9 +1076,9 @@ public class CoverageEligibilityRequest extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("focal")) {
this.focal = null;
@ -1898,9 +1902,9 @@ public class CoverageEligibilityRequest extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("supportingInfoSequence")) {
this.getSupportingInfoSequence().remove(castToPositiveInt(value));
@ -2236,9 +2240,9 @@ public class CoverageEligibilityRequest extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("diagnosis[x]")) {
this.diagnosis = null;
@ -3459,9 +3463,9 @@ public class CoverageEligibilityRequest extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -197,7 +197,9 @@ public class CoverageEligibilityResponse extends DomainResource {
}
public String toCode(EligibilityResponseStatus code) {
if (code == EligibilityResponseStatus.ACTIVE)
if (code == EligibilityResponseStatus.NULL)
return null;
if (code == EligibilityResponseStatus.ACTIVE)
return "active";
if (code == EligibilityResponseStatus.CANCELLED)
return "cancelled";
@ -206,7 +208,7 @@ public class CoverageEligibilityResponse extends DomainResource {
if (code == EligibilityResponseStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(EligibilityResponseStatus code) {
return code.getSystem();
@ -361,7 +363,9 @@ public class CoverageEligibilityResponse extends DomainResource {
}
public String toCode(EligibilityResponsePurpose code) {
if (code == EligibilityResponsePurpose.AUTHREQUIREMENTS)
if (code == EligibilityResponsePurpose.NULL)
return null;
if (code == EligibilityResponsePurpose.AUTHREQUIREMENTS)
return "auth-requirements";
if (code == EligibilityResponsePurpose.BENEFITS)
return "benefits";
@ -370,7 +374,7 @@ public class CoverageEligibilityResponse extends DomainResource {
if (code == EligibilityResponsePurpose.VALIDATION)
return "validation";
return "?";
}
}
public String toSystem(EligibilityResponsePurpose code) {
return code.getSystem();
@ -727,9 +731,9 @@ public class CoverageEligibilityResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("coverage")) {
this.coverage = null;
@ -1829,9 +1833,9 @@ public class CoverageEligibilityResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("category")) {
this.category = null;
@ -2377,9 +2381,9 @@ public class CoverageEligibilityResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -2603,9 +2607,9 @@ public class CoverageEligibilityResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -3895,9 +3899,9 @@ public class CoverageEligibilityResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -158,12 +158,14 @@ public class DataRequirement extends Type implements ICompositeType {
}
public String toCode(SortDirection code) {
if (code == SortDirection.ASCENDING)
if (code == SortDirection.NULL)
return null;
if (code == SortDirection.ASCENDING)
return "ascending";
if (code == SortDirection.DESCENDING)
return "descending";
return "?";
}
}
public String toSystem(SortDirection code) {
return code.getSystem();
@ -597,9 +599,9 @@ public class DataRequirement extends Type implements ICompositeType {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("path")) {
this.path = null;
@ -1104,9 +1106,9 @@ public class DataRequirement extends Type implements ICompositeType {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("path")) {
this.path = null;
@ -1434,9 +1436,9 @@ public class DataRequirement extends Type implements ICompositeType {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("path")) {
this.path = null;
@ -2285,9 +2287,9 @@ public class DataRequirement extends Type implements ICompositeType {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;

View File

@ -285,7 +285,9 @@ public class DetectedIssue extends DomainResource {
}
public String toCode(DetectedIssueStatus code) {
if (code == DetectedIssueStatus.REGISTERED)
if (code == DetectedIssueStatus.NULL)
return null;
if (code == DetectedIssueStatus.REGISTERED)
return "registered";
if (code == DetectedIssueStatus.PRELIMINARY)
return "preliminary";
@ -302,7 +304,7 @@ public class DetectedIssue extends DomainResource {
if (code == DetectedIssueStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(DetectedIssueStatus code) {
return code.getSystem();
@ -438,14 +440,16 @@ public class DetectedIssue extends DomainResource {
}
public String toCode(DetectedIssueSeverity code) {
if (code == DetectedIssueSeverity.HIGH)
if (code == DetectedIssueSeverity.NULL)
return null;
if (code == DetectedIssueSeverity.HIGH)
return "high";
if (code == DetectedIssueSeverity.MODERATE)
return "moderate";
if (code == DetectedIssueSeverity.LOW)
return "low";
return "?";
}
}
public String toSystem(DetectedIssueSeverity code) {
return code.getSystem();
@ -669,9 +673,9 @@ public class DetectedIssue extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.getCode().remove(castToCodeableConcept(value));
@ -1032,9 +1036,9 @@ public class DetectedIssue extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("action")) {
this.action = null;
@ -2114,9 +2118,9 @@ public class DetectedIssue extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -235,7 +235,9 @@ public class Device extends DomainResource {
}
public String toCode(UDIEntryType code) {
if (code == UDIEntryType.BARCODE)
if (code == UDIEntryType.NULL)
return null;
if (code == UDIEntryType.BARCODE)
return "barcode";
if (code == UDIEntryType.RFID)
return "rfid";
@ -248,7 +250,7 @@ public class Device extends DomainResource {
if (code == UDIEntryType.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(UDIEntryType code) {
return code.getSystem();
@ -402,7 +404,9 @@ public class Device extends DomainResource {
}
public String toCode(FHIRDeviceStatus code) {
if (code == FHIRDeviceStatus.ACTIVE)
if (code == FHIRDeviceStatus.NULL)
return null;
if (code == FHIRDeviceStatus.ACTIVE)
return "active";
if (code == FHIRDeviceStatus.INACTIVE)
return "inactive";
@ -411,7 +415,7 @@ public class Device extends DomainResource {
if (code == FHIRDeviceStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(FHIRDeviceStatus code) {
return code.getSystem();
@ -598,7 +602,9 @@ public class Device extends DomainResource {
}
public String toCode(DeviceNameType code) {
if (code == DeviceNameType.UDILABELNAME)
if (code == DeviceNameType.NULL)
return null;
if (code == DeviceNameType.UDILABELNAME)
return "udi-label-name";
if (code == DeviceNameType.USERFRIENDLYNAME)
return "user-friendly-name";
@ -611,7 +617,7 @@ public class Device extends DomainResource {
if (code == DeviceNameType.OTHER)
return "other";
return "?";
}
}
public String toSystem(DeviceNameType code) {
return code.getSystem();
@ -1207,9 +1213,9 @@ public class Device extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("deviceIdentifier")) {
this.deviceIdentifier = null;
@ -1541,9 +1547,9 @@ public class Device extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("name")) {
this.name = null;
@ -1810,9 +1816,9 @@ public class Device extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("systemType")) {
this.systemType = null;
@ -2110,9 +2116,9 @@ public class Device extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -2466,9 +2472,9 @@ public class Device extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -4585,9 +4591,9 @@ public class Device extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -230,7 +230,9 @@ public class DeviceDefinition extends DomainResource {
}
public String toCode(DeviceNameType code) {
if (code == DeviceNameType.UDILABELNAME)
if (code == DeviceNameType.NULL)
return null;
if (code == DeviceNameType.UDILABELNAME)
return "udi-label-name";
if (code == DeviceNameType.USERFRIENDLYNAME)
return "user-friendly-name";
@ -243,7 +245,7 @@ public class DeviceDefinition extends DomainResource {
if (code == DeviceNameType.OTHER)
return "other";
return "?";
}
}
public String toSystem(DeviceNameType code) {
return code.getSystem();
@ -534,9 +536,9 @@ public class DeviceDefinition extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("deviceIdentifier")) {
this.deviceIdentifier = null;
@ -838,9 +840,9 @@ public class DeviceDefinition extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("name")) {
this.name = null;
@ -1132,9 +1134,9 @@ public class DeviceDefinition extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("systemType")) {
this.systemType = null;
@ -1396,9 +1398,9 @@ public class DeviceDefinition extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -1746,9 +1748,9 @@ public class DeviceDefinition extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -2100,9 +2102,9 @@ public class DeviceDefinition extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("substance")) {
this.substance = null;
@ -3861,9 +3863,9 @@ public class DeviceDefinition extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -194,7 +194,9 @@ public class DeviceMetric extends DomainResource {
}
public String toCode(DeviceMetricOperationalStatus code) {
if (code == DeviceMetricOperationalStatus.ON)
if (code == DeviceMetricOperationalStatus.NULL)
return null;
if (code == DeviceMetricOperationalStatus.ON)
return "on";
if (code == DeviceMetricOperationalStatus.OFF)
return "off";
@ -203,7 +205,7 @@ public class DeviceMetric extends DomainResource {
if (code == DeviceMetricOperationalStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(DeviceMetricOperationalStatus code) {
return code.getSystem();
@ -426,7 +428,9 @@ public class DeviceMetric extends DomainResource {
}
public String toCode(DeviceMetricColor code) {
if (code == DeviceMetricColor.BLACK)
if (code == DeviceMetricColor.NULL)
return null;
if (code == DeviceMetricColor.BLACK)
return "black";
if (code == DeviceMetricColor.RED)
return "red";
@ -443,7 +447,7 @@ public class DeviceMetric extends DomainResource {
if (code == DeviceMetricColor.WHITE)
return "white";
return "?";
}
}
public String toSystem(DeviceMetricColor code) {
return code.getSystem();
@ -595,7 +599,9 @@ public class DeviceMetric extends DomainResource {
}
public String toCode(DeviceMetricCategory code) {
if (code == DeviceMetricCategory.MEASUREMENT)
if (code == DeviceMetricCategory.NULL)
return null;
if (code == DeviceMetricCategory.MEASUREMENT)
return "measurement";
if (code == DeviceMetricCategory.SETTING)
return "setting";
@ -604,7 +610,7 @@ public class DeviceMetric extends DomainResource {
if (code == DeviceMetricCategory.UNSPECIFIED)
return "unspecified";
return "?";
}
}
public String toSystem(DeviceMetricCategory code) {
return code.getSystem();
@ -755,7 +761,9 @@ public class DeviceMetric extends DomainResource {
}
public String toCode(DeviceMetricCalibrationType code) {
if (code == DeviceMetricCalibrationType.UNSPECIFIED)
if (code == DeviceMetricCalibrationType.NULL)
return null;
if (code == DeviceMetricCalibrationType.UNSPECIFIED)
return "unspecified";
if (code == DeviceMetricCalibrationType.OFFSET)
return "offset";
@ -764,7 +772,7 @@ public class DeviceMetric extends DomainResource {
if (code == DeviceMetricCalibrationType.TWOPOINT)
return "two-point";
return "?";
}
}
public String toSystem(DeviceMetricCalibrationType code) {
return code.getSystem();
@ -916,7 +924,9 @@ public class DeviceMetric extends DomainResource {
}
public String toCode(DeviceMetricCalibrationState code) {
if (code == DeviceMetricCalibrationState.NOTCALIBRATED)
if (code == DeviceMetricCalibrationState.NULL)
return null;
if (code == DeviceMetricCalibrationState.NOTCALIBRATED)
return "not-calibrated";
if (code == DeviceMetricCalibrationState.CALIBRATIONREQUIRED)
return "calibration-required";
@ -925,7 +935,7 @@ public class DeviceMetric extends DomainResource {
if (code == DeviceMetricCalibrationState.UNSPECIFIED)
return "unspecified";
return "?";
}
}
public String toSystem(DeviceMetricCalibrationState code) {
return code.getSystem();
@ -1198,9 +1208,9 @@ public class DeviceMetric extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -2146,9 +2156,9 @@ public class DeviceMetric extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -258,7 +258,9 @@ public class DeviceRequest extends DomainResource {
}
public String toCode(DeviceRequestStatus code) {
if (code == DeviceRequestStatus.DRAFT)
if (code == DeviceRequestStatus.NULL)
return null;
if (code == DeviceRequestStatus.DRAFT)
return "draft";
if (code == DeviceRequestStatus.ACTIVE)
return "active";
@ -273,7 +275,7 @@ public class DeviceRequest extends DomainResource {
if (code == DeviceRequestStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(DeviceRequestStatus code) {
return code.getSystem();
@ -527,7 +529,9 @@ public class DeviceRequest extends DomainResource {
}
public String toCode(RequestIntent code) {
if (code == RequestIntent.PROPOSAL)
if (code == RequestIntent.NULL)
return null;
if (code == RequestIntent.PROPOSAL)
return "proposal";
if (code == RequestIntent.PLAN)
return "plan";
@ -546,7 +550,7 @@ public class DeviceRequest extends DomainResource {
if (code == RequestIntent.OPTION)
return "option";
return "?";
}
}
public String toSystem(RequestIntent code) {
return code.getSystem();
@ -699,7 +703,9 @@ public class DeviceRequest extends DomainResource {
}
public String toCode(RequestPriority code) {
if (code == RequestPriority.ROUTINE)
if (code == RequestPriority.NULL)
return null;
if (code == RequestPriority.ROUTINE)
return "routine";
if (code == RequestPriority.URGENT)
return "urgent";
@ -708,7 +714,7 @@ public class DeviceRequest extends DomainResource {
if (code == RequestPriority.STAT)
return "stat";
return "?";
}
}
public String toSystem(RequestPriority code) {
return code.getSystem();
@ -929,9 +935,9 @@ public class DeviceRequest extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -3069,9 +3075,9 @@ public class DeviceRequest extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -230,7 +230,9 @@ public class DeviceUseStatement extends DomainResource {
}
public String toCode(DeviceUseStatementStatus code) {
if (code == DeviceUseStatementStatus.ACTIVE)
if (code == DeviceUseStatementStatus.NULL)
return null;
if (code == DeviceUseStatementStatus.ACTIVE)
return "active";
if (code == DeviceUseStatementStatus.COMPLETED)
return "completed";
@ -243,7 +245,7 @@ public class DeviceUseStatement extends DomainResource {
if (code == DeviceUseStatementStatus.ONHOLD)
return "on-hold";
return "?";
}
}
public String toSystem(DeviceUseStatementStatus code) {
return code.getSystem();
@ -1365,9 +1367,9 @@ public class DeviceUseStatement extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -319,7 +319,9 @@ public class DiagnosticReport extends DomainResource {
}
public String toCode(DiagnosticReportStatus code) {
if (code == DiagnosticReportStatus.REGISTERED)
if (code == DiagnosticReportStatus.NULL)
return null;
if (code == DiagnosticReportStatus.REGISTERED)
return "registered";
if (code == DiagnosticReportStatus.PARTIAL)
return "partial";
@ -340,7 +342,7 @@ public class DiagnosticReport extends DomainResource {
if (code == DiagnosticReportStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(DiagnosticReportStatus code) {
return code.getSystem();
@ -559,9 +561,9 @@ public class DiagnosticReport extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("comment")) {
this.comment = null;
@ -2264,9 +2266,9 @@ public class DiagnosticReport extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -207,7 +207,9 @@ public class DocumentReference extends DomainResource {
}
public String toCode(ReferredDocumentStatus code) {
if (code == ReferredDocumentStatus.PRELIMINARY)
if (code == ReferredDocumentStatus.NULL)
return null;
if (code == ReferredDocumentStatus.PRELIMINARY)
return "preliminary";
if (code == ReferredDocumentStatus.FINAL)
return "final";
@ -216,7 +218,7 @@ public class DocumentReference extends DomainResource {
if (code == ReferredDocumentStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(ReferredDocumentStatus code) {
return code.getSystem();
@ -368,7 +370,9 @@ public class DocumentReference extends DomainResource {
}
public String toCode(DocumentRelationshipType code) {
if (code == DocumentRelationshipType.REPLACES)
if (code == DocumentRelationshipType.NULL)
return null;
if (code == DocumentRelationshipType.REPLACES)
return "replaces";
if (code == DocumentRelationshipType.TRANSFORMS)
return "transforms";
@ -377,7 +381,7 @@ public class DocumentReference extends DomainResource {
if (code == DocumentRelationshipType.APPENDS)
return "appends";
return "?";
}
}
public String toSystem(DocumentRelationshipType code) {
return code.getSystem();
@ -589,9 +593,9 @@ public class DocumentReference extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -837,9 +841,9 @@ public class DocumentReference extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("attachment")) {
this.attachment = null;
@ -1481,9 +1485,9 @@ public class DocumentReference extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("encounter")) {
this.getEncounter().remove(castToReference(value));
@ -2882,9 +2886,9 @@ public class DocumentReference extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("masterIdentifier")) {
this.masterIdentifier = null;

View File

@ -172,12 +172,14 @@ public class EffectEvidenceSynthesis extends MetadataResource {
}
public String toCode(ExposureState code) {
if (code == ExposureState.EXPOSURE)
if (code == ExposureState.NULL)
return null;
if (code == ExposureState.EXPOSURE)
return "exposure";
if (code == ExposureState.EXPOSUREALTERNATIVE)
return "exposure-alternative";
return "?";
}
}
public String toSystem(ExposureState code) {
return code.getSystem();
@ -448,9 +450,9 @@ public class EffectEvidenceSynthesis extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("description")) {
this.description = null;
@ -893,9 +895,9 @@ public class EffectEvidenceSynthesis extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("description")) {
this.description = null;
@ -1436,9 +1438,9 @@ public class EffectEvidenceSynthesis extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("description")) {
this.description = null;
@ -1938,9 +1940,9 @@ public class EffectEvidenceSynthesis extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -2329,9 +2331,9 @@ public class EffectEvidenceSynthesis extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("rating")) {
this.getRating().remove(castToCodeableConcept(value));
@ -2690,9 +2692,9 @@ public class EffectEvidenceSynthesis extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -5332,9 +5334,9 @@ public class EffectEvidenceSynthesis extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("url")) {
this.url = null;

View File

@ -218,7 +218,9 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
}
public String toCode(PropertyRepresentation code) {
if (code == PropertyRepresentation.XMLATTR)
if (code == PropertyRepresentation.NULL)
return null;
if (code == PropertyRepresentation.XMLATTR)
return "xmlAttr";
if (code == PropertyRepresentation.XMLTEXT)
return "xmlText";
@ -229,7 +231,7 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
if (code == PropertyRepresentation.XHTML)
return "xhtml";
return "?";
}
}
public String toSystem(PropertyRepresentation code) {
return code.getSystem();
@ -403,7 +405,9 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
}
public String toCode(DiscriminatorType code) {
if (code == DiscriminatorType.VALUE)
if (code == DiscriminatorType.NULL)
return null;
if (code == DiscriminatorType.VALUE)
return "value";
if (code == DiscriminatorType.EXISTS)
return "exists";
@ -414,7 +418,7 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
if (code == DiscriminatorType.PROFILE)
return "profile";
return "?";
}
}
public String toSystem(DiscriminatorType code) {
return code.getSystem();
@ -550,14 +554,16 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
}
public String toCode(SlicingRules code) {
if (code == SlicingRules.CLOSED)
if (code == SlicingRules.NULL)
return null;
if (code == SlicingRules.CLOSED)
return "closed";
if (code == SlicingRules.OPEN)
return "open";
if (code == SlicingRules.OPENATEND)
return "openAtEnd";
return "?";
}
}
public String toSystem(SlicingRules code) {
return code.getSystem();
@ -692,14 +698,16 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
}
public String toCode(AggregationMode code) {
if (code == AggregationMode.CONTAINED)
if (code == AggregationMode.NULL)
return null;
if (code == AggregationMode.CONTAINED)
return "contained";
if (code == AggregationMode.REFERENCED)
return "referenced";
if (code == AggregationMode.BUNDLED)
return "bundled";
return "?";
}
}
public String toSystem(AggregationMode code) {
return code.getSystem();
@ -832,14 +840,16 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
}
public String toCode(ReferenceVersionRules code) {
if (code == ReferenceVersionRules.EITHER)
if (code == ReferenceVersionRules.NULL)
return null;
if (code == ReferenceVersionRules.EITHER)
return "either";
if (code == ReferenceVersionRules.INDEPENDENT)
return "independent";
if (code == ReferenceVersionRules.SPECIFIC)
return "specific";
return "?";
}
}
public String toSystem(ReferenceVersionRules code) {
return code.getSystem();
@ -955,12 +965,14 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
}
public String toCode(ConstraintSeverity code) {
if (code == ConstraintSeverity.ERROR)
if (code == ConstraintSeverity.NULL)
return null;
if (code == ConstraintSeverity.ERROR)
return "error";
if (code == ConstraintSeverity.WARNING)
return "warning";
return "?";
}
}
public String toSystem(ConstraintSeverity code) {
return code.getSystem();
@ -1354,9 +1366,9 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("discriminator")) {
this.getDiscriminator().remove((ElementDefinitionSlicingDiscriminatorComponent) value);
@ -1682,9 +1694,9 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -2058,9 +2070,9 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("path")) {
this.path = null;
@ -2735,9 +2747,9 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -3203,9 +3215,9 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("label")) {
this.label = null;
@ -4045,9 +4057,9 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("key")) {
this.key = null;
@ -4480,9 +4492,9 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("strength")) {
this.strength = null;
@ -4930,9 +4942,9 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identity")) {
this.identity = null;
@ -8662,9 +8674,9 @@ public class ElementDefinition extends BackboneType implements ICompositeType {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("path")) {
this.path = null;

View File

@ -289,7 +289,9 @@ public class Encounter extends DomainResource {
}
public String toCode(EncounterStatus code) {
if (code == EncounterStatus.PLANNED)
if (code == EncounterStatus.NULL)
return null;
if (code == EncounterStatus.PLANNED)
return "planned";
if (code == EncounterStatus.ARRIVED)
return "arrived";
@ -308,7 +310,7 @@ public class Encounter extends DomainResource {
if (code == EncounterStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(EncounterStatus code) {
return code.getSystem();
@ -466,7 +468,9 @@ public class Encounter extends DomainResource {
}
public String toCode(EncounterLocationStatus code) {
if (code == EncounterLocationStatus.PLANNED)
if (code == EncounterLocationStatus.NULL)
return null;
if (code == EncounterLocationStatus.PLANNED)
return "planned";
if (code == EncounterLocationStatus.ACTIVE)
return "active";
@ -475,7 +479,7 @@ public class Encounter extends DomainResource {
if (code == EncounterLocationStatus.COMPLETED)
return "completed";
return "?";
}
}
public String toSystem(EncounterLocationStatus code) {
return code.getSystem();
@ -658,9 +662,9 @@ public class Encounter extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("status")) {
this.status = null;
@ -896,9 +900,9 @@ public class Encounter extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("class")) {
this.class_ = null;
@ -1236,9 +1240,9 @@ public class Encounter extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.getType().remove(castToCodeableConcept(value));
@ -1610,9 +1614,9 @@ public class Encounter extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("condition")) {
this.condition = null;
@ -2328,9 +2332,9 @@ public class Encounter extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("preAdmissionIdentifier")) {
this.preAdmissionIdentifier = null;
@ -2828,9 +2832,9 @@ public class Encounter extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("location")) {
this.location = null;
@ -4773,9 +4777,9 @@ public class Encounter extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -231,7 +231,9 @@ public class Endpoint extends DomainResource {
}
public String toCode(EndpointStatus code) {
if (code == EndpointStatus.ACTIVE)
if (code == EndpointStatus.NULL)
return null;
if (code == EndpointStatus.ACTIVE)
return "active";
if (code == EndpointStatus.SUSPENDED)
return "suspended";
@ -244,7 +246,7 @@ public class Endpoint extends DomainResource {
if (code == EndpointStatus.TEST)
return "test";
return "?";
}
}
public String toSystem(EndpointStatus code) {
return code.getSystem();
@ -1132,9 +1134,9 @@ public class Endpoint extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -192,7 +192,9 @@ public class EnrollmentRequest extends DomainResource {
}
public String toCode(EnrollmentRequestStatus code) {
if (code == EnrollmentRequestStatus.ACTIVE)
if (code == EnrollmentRequestStatus.NULL)
return null;
if (code == EnrollmentRequestStatus.ACTIVE)
return "active";
if (code == EnrollmentRequestStatus.CANCELLED)
return "cancelled";
@ -201,7 +203,7 @@ public class EnrollmentRequest extends DomainResource {
if (code == EnrollmentRequestStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(EnrollmentRequestStatus code) {
return code.getSystem();
@ -770,9 +772,9 @@ public class EnrollmentRequest extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -195,7 +195,9 @@ public class EnrollmentResponse extends DomainResource {
}
public String toCode(EnrollmentResponseStatus code) {
if (code == EnrollmentResponseStatus.ACTIVE)
if (code == EnrollmentResponseStatus.NULL)
return null;
if (code == EnrollmentResponseStatus.ACTIVE)
return "active";
if (code == EnrollmentResponseStatus.CANCELLED)
return "cancelled";
@ -204,7 +206,7 @@ public class EnrollmentResponse extends DomainResource {
if (code == EnrollmentResponseStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(EnrollmentResponseStatus code) {
return code.getSystem();
@ -858,9 +860,9 @@ public class EnrollmentResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -133,12 +133,14 @@ public class Enumerations {
}
public String toCode(AbstractType code) {
if (code == AbstractType.TYPE)
if (code == AbstractType.NULL)
return null;
if (code == AbstractType.TYPE)
return "Type";
if (code == AbstractType.ANY)
return "Any";
return "?";
}
}
public String toSystem(AbstractType code) {
return code.getSystem();
@ -286,7 +288,9 @@ public class Enumerations {
}
public String toCode(AdministrativeGender code) {
if (code == AdministrativeGender.MALE)
if (code == AdministrativeGender.NULL)
return null;
if (code == AdministrativeGender.MALE)
return "male";
if (code == AdministrativeGender.FEMALE)
return "female";
@ -295,7 +299,7 @@ public class Enumerations {
if (code == AdministrativeGender.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(AdministrativeGender code) {
return code.getSystem();
@ -479,7 +483,9 @@ public class Enumerations {
}
public String toCode(AgeUnits code) {
if (code == AgeUnits.MIN)
if (code == AgeUnits.NULL)
return null;
if (code == AgeUnits.MIN)
return "min";
if (code == AgeUnits.H)
return "h";
@ -492,7 +498,7 @@ public class Enumerations {
if (code == AgeUnits.A)
return "a";
return "?";
}
}
public String toSystem(AgeUnits code) {
return code.getSystem();
@ -649,7 +655,9 @@ public class Enumerations {
}
public String toCode(BindingStrength code) {
if (code == BindingStrength.REQUIRED)
if (code == BindingStrength.NULL)
return null;
if (code == BindingStrength.REQUIRED)
return "required";
if (code == BindingStrength.EXTENSIBLE)
return "extensible";
@ -658,7 +666,7 @@ public class Enumerations {
if (code == BindingStrength.EXAMPLE)
return "example";
return "?";
}
}
public String toSystem(BindingStrength code) {
return code.getSystem();
@ -930,7 +938,9 @@ public class Enumerations {
}
public String toCode(ConceptMapEquivalence code) {
if (code == ConceptMapEquivalence.RELATEDTO)
if (code == ConceptMapEquivalence.NULL)
return null;
if (code == ConceptMapEquivalence.RELATEDTO)
return "relatedto";
if (code == ConceptMapEquivalence.EQUIVALENT)
return "equivalent";
@ -951,7 +961,7 @@ public class Enumerations {
if (code == ConceptMapEquivalence.DISJOINT)
return "disjoint";
return "?";
}
}
public String toSystem(ConceptMapEquivalence code) {
return code.getSystem();
@ -1305,7 +1315,9 @@ public class Enumerations {
}
public String toCode(DataAbsentReason code) {
if (code == DataAbsentReason.UNKNOWN)
if (code == DataAbsentReason.NULL)
return null;
if (code == DataAbsentReason.UNKNOWN)
return "unknown";
if (code == DataAbsentReason.ASKEDUNKNOWN)
return "asked-unknown";
@ -1336,7 +1348,7 @@ public class Enumerations {
if (code == DataAbsentReason.NOTPERMITTED)
return "not-permitted";
return "?";
}
}
public String toSystem(DataAbsentReason code) {
return code.getSystem();
@ -2605,7 +2617,9 @@ public class Enumerations {
}
public String toCode(DataType code) {
if (code == DataType.ADDRESS)
if (code == DataType.NULL)
return null;
if (code == DataType.ADDRESS)
return "Address";
if (code == DataType.AGE)
return "Age";
@ -2732,7 +2746,7 @@ public class Enumerations {
if (code == DataType.XHTML)
return "xhtml";
return "?";
}
}
public String toSystem(DataType code) {
return code.getSystem();
@ -2926,7 +2940,9 @@ public class Enumerations {
}
public String toCode(DefinitionResourceType code) {
if (code == DefinitionResourceType.ACTIVITYDEFINITION)
if (code == DefinitionResourceType.NULL)
return null;
if (code == DefinitionResourceType.ACTIVITYDEFINITION)
return "ActivityDefinition";
if (code == DefinitionResourceType.EVENTDEFINITION)
return "EventDefinition";
@ -2939,7 +2955,7 @@ public class Enumerations {
if (code == DefinitionResourceType.QUESTIONNAIRE)
return "Questionnaire";
return "?";
}
}
public String toSystem(DefinitionResourceType code) {
return code.getSystem();
@ -3069,14 +3085,16 @@ public class Enumerations {
}
public String toCode(DocumentReferenceStatus code) {
if (code == DocumentReferenceStatus.CURRENT)
if (code == DocumentReferenceStatus.NULL)
return null;
if (code == DocumentReferenceStatus.CURRENT)
return "current";
if (code == DocumentReferenceStatus.SUPERSEDED)
return "superseded";
if (code == DocumentReferenceStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(DocumentReferenceStatus code) {
return code.getSystem();
@ -3773,7 +3791,9 @@ public class Enumerations {
}
public String toCode(EventResourceType code) {
if (code == EventResourceType.CHARGEITEM)
if (code == EventResourceType.NULL)
return null;
if (code == EventResourceType.CHARGEITEM)
return "ChargeItem";
if (code == EventResourceType.CLAIMRESPONSE)
return "ClaimResponse";
@ -3842,7 +3862,7 @@ public class Enumerations {
if (code == EventResourceType.TASK)
return "Task";
return "?";
}
}
public String toSystem(EventResourceType code) {
return code.getSystem();
@ -8085,7 +8105,9 @@ public class Enumerations {
}
public String toCode(FHIRAllTypes code) {
if (code == FHIRAllTypes.ADDRESS)
if (code == FHIRAllTypes.NULL)
return null;
if (code == FHIRAllTypes.ADDRESS)
return "Address";
if (code == FHIRAllTypes.AGE)
return "Age";
@ -8512,7 +8534,7 @@ public class Enumerations {
if (code == FHIRAllTypes.ANY)
return "Any";
return "?";
}
}
public String toSystem(FHIRAllTypes code) {
return code.getSystem();
@ -12719,7 +12741,9 @@ public class Enumerations {
}
public String toCode(FHIRDefinedType code) {
if (code == FHIRDefinedType.ADDRESS)
if (code == FHIRDefinedType.NULL)
return null;
if (code == FHIRDefinedType.ADDRESS)
return "Address";
if (code == FHIRDefinedType.AGE)
return "Age";
@ -13142,7 +13166,7 @@ public class Enumerations {
if (code == FHIRDefinedType.VISIONPRESCRIPTION)
return "VisionPrescription";
return "?";
}
}
public String toSystem(FHIRDefinedType code) {
return code.getSystem();
@ -14340,7 +14364,9 @@ public class Enumerations {
}
public String toCode(FHIRVersion code) {
if (code == FHIRVersion._0_01)
if (code == FHIRVersion.NULL)
return null;
if (code == FHIRVersion._0_01)
return "0.01";
if (code == FHIRVersion._0_05)
return "0.05";
@ -14455,7 +14481,7 @@ public class Enumerations {
if (code == FHIRVersion._5_0_0DRAFTFINAL)
return "5.0.0-draft-final";
return "?";
}
}
public String toSystem(FHIRVersion code) {
return code.getSystem();
@ -14696,7 +14722,9 @@ public class Enumerations {
}
public String toCode(KnowledgeResourceType code) {
if (code == KnowledgeResourceType.ACTIVITYDEFINITION)
if (code == KnowledgeResourceType.NULL)
return null;
if (code == KnowledgeResourceType.ACTIVITYDEFINITION)
return "ActivityDefinition";
if (code == KnowledgeResourceType.CODESYSTEM)
return "CodeSystem";
@ -14715,7 +14743,7 @@ public class Enumerations {
if (code == KnowledgeResourceType.VALUESET)
return "ValueSet";
return "?";
}
}
public String toSystem(KnowledgeResourceType code) {
return code.getSystem();
@ -14791,8 +14819,10 @@ public class Enumerations {
}
public String toCode(MessageEvent code) {
return "?";
}
if (code == MessageEvent.NULL)
return null;
return "?";
}
public String toSystem(MessageEvent code) {
return code.getSystem();
@ -14922,14 +14952,16 @@ public class Enumerations {
}
public String toCode(NoteType code) {
if (code == NoteType.DISPLAY)
if (code == NoteType.NULL)
return null;
if (code == NoteType.DISPLAY)
return "display";
if (code == NoteType.PRINT)
return "print";
if (code == NoteType.PRINTOPER)
return "printoper";
return "?";
}
}
public String toSystem(NoteType code) {
return code.getSystem();
@ -15081,7 +15113,9 @@ public class Enumerations {
}
public String toCode(PublicationStatus code) {
if (code == PublicationStatus.DRAFT)
if (code == PublicationStatus.NULL)
return null;
if (code == PublicationStatus.DRAFT)
return "draft";
if (code == PublicationStatus.ACTIVE)
return "active";
@ -15090,7 +15124,7 @@ public class Enumerations {
if (code == PublicationStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(PublicationStatus code) {
return code.getSystem();
@ -15240,7 +15274,9 @@ public class Enumerations {
}
public String toCode(RemittanceOutcome code) {
if (code == RemittanceOutcome.QUEUED)
if (code == RemittanceOutcome.NULL)
return null;
if (code == RemittanceOutcome.QUEUED)
return "queued";
if (code == RemittanceOutcome.COMPLETE)
return "complete";
@ -15249,7 +15285,7 @@ public class Enumerations {
if (code == RemittanceOutcome.PARTIAL)
return "partial";
return "?";
}
}
public String toSystem(RemittanceOutcome code) {
return code.getSystem();
@ -15599,7 +15635,9 @@ public class Enumerations {
}
public String toCode(RequestResourceType code) {
if (code == RequestResourceType.APPOINTMENT)
if (code == RequestResourceType.NULL)
return null;
if (code == RequestResourceType.APPOINTMENT)
return "Appointment";
if (code == RequestResourceType.APPOINTMENTRESPONSE)
return "AppointmentResponse";
@ -15630,7 +15668,7 @@ public class Enumerations {
if (code == RequestResourceType.VISIONPRESCRIPTION)
return "VisionPrescription";
return "?";
}
}
public String toSystem(RequestResourceType code) {
return code.getSystem();
@ -18644,7 +18682,9 @@ public class Enumerations {
}
public String toCode(ResourceType code) {
if (code == ResourceType.ACCOUNT)
if (code == ResourceType.NULL)
return null;
if (code == ResourceType.ACCOUNT)
return "Account";
if (code == ResourceType.ACTIVITYDEFINITION)
return "ActivityDefinition";
@ -18941,7 +18981,7 @@ public class Enumerations {
if (code == ResourceType.VISIONPRESCRIPTION)
return "VisionPrescription";
return "?";
}
}
public String toSystem(ResourceType code) {
return code.getSystem();
@ -19186,7 +19226,9 @@ public class Enumerations {
}
public String toCode(SearchParamType code) {
if (code == SearchParamType.NUMBER)
if (code == SearchParamType.NULL)
return null;
if (code == SearchParamType.NUMBER)
return "number";
if (code == SearchParamType.DATE)
return "date";
@ -19205,7 +19247,7 @@ public class Enumerations {
if (code == SearchParamType.SPECIAL)
return "special";
return "?";
}
}
public String toSystem(SearchParamType code) {
return code.getSystem();
@ -19390,7 +19432,9 @@ public class Enumerations {
}
public String toCode(SpecialValues code) {
if (code == SpecialValues.TRUE)
if (code == SpecialValues.NULL)
return null;
if (code == SpecialValues.TRUE)
return "true";
if (code == SpecialValues.FALSE)
return "false";
@ -19403,7 +19447,7 @@ public class Enumerations {
if (code == SpecialValues.NILKNOWN)
return "nil-known";
return "?";
}
}
public String toSystem(SpecialValues code) {
return code.getSystem();

View File

@ -259,7 +259,9 @@ public class EpisodeOfCare extends DomainResource {
}
public String toCode(EpisodeOfCareStatus code) {
if (code == EpisodeOfCareStatus.PLANNED)
if (code == EpisodeOfCareStatus.NULL)
return null;
if (code == EpisodeOfCareStatus.PLANNED)
return "planned";
if (code == EpisodeOfCareStatus.WAITLIST)
return "waitlist";
@ -274,7 +276,7 @@ public class EpisodeOfCare extends DomainResource {
if (code == EpisodeOfCareStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(EpisodeOfCareStatus code) {
return code.getSystem();
@ -454,9 +456,9 @@ public class EpisodeOfCare extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("status")) {
this.status = null;
@ -804,9 +806,9 @@ public class EpisodeOfCare extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("condition")) {
this.condition = null;
@ -1944,9 +1946,9 @@ public class EpisodeOfCare extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -184,14 +184,16 @@ public class EvidenceVariable extends MetadataResource {
}
public String toCode(EvidenceVariableType code) {
if (code == EvidenceVariableType.DICHOTOMOUS)
if (code == EvidenceVariableType.NULL)
return null;
if (code == EvidenceVariableType.DICHOTOMOUS)
return "dichotomous";
if (code == EvidenceVariableType.CONTINUOUS)
return "continuous";
if (code == EvidenceVariableType.DESCRIPTIVE)
return "descriptive";
return "?";
}
}
public String toSystem(EvidenceVariableType code) {
return code.getSystem();
@ -378,7 +380,9 @@ public class EvidenceVariable extends MetadataResource {
}
public String toCode(GroupMeasure code) {
if (code == GroupMeasure.MEAN)
if (code == GroupMeasure.NULL)
return null;
if (code == GroupMeasure.MEAN)
return "mean";
if (code == GroupMeasure.MEDIAN)
return "median";
@ -391,7 +395,7 @@ public class EvidenceVariable extends MetadataResource {
if (code == GroupMeasure.MEDIANOFMEDIAN)
return "median-of-median";
return "?";
}
}
public String toSystem(GroupMeasure code) {
return code.getSystem();
@ -1159,9 +1163,9 @@ public class EvidenceVariable extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("description")) {
this.description = null;
@ -3497,9 +3501,9 @@ public class EvidenceVariable extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("url")) {
this.url = null;

View File

@ -163,12 +163,14 @@ public class ExampleScenario extends MetadataResource {
}
public String toCode(ExampleScenarioActorType code) {
if (code == ExampleScenarioActorType.PERSON)
if (code == ExampleScenarioActorType.NULL)
return null;
if (code == ExampleScenarioActorType.PERSON)
return "person";
if (code == ExampleScenarioActorType.ENTITY)
return "entity";
return "?";
}
}
public String toSystem(ExampleScenarioActorType code) {
return code.getSystem();
@ -3186,7 +3188,9 @@ public class ExampleScenario extends MetadataResource {
}
public String toCode(FHIRResourceType code) {
if (code == FHIRResourceType.ACCOUNT)
if (code == FHIRResourceType.NULL)
return null;
if (code == FHIRResourceType.ACCOUNT)
return "Account";
if (code == FHIRResourceType.ACTIVITYDEFINITION)
return "ActivityDefinition";
@ -3483,7 +3487,7 @@ public class ExampleScenario extends MetadataResource {
if (code == FHIRResourceType.VISIONPRESCRIPTION)
return "VisionPrescription";
return "?";
}
}
public String toSystem(FHIRResourceType code) {
return code.getSystem();
@ -3824,9 +3828,9 @@ public class ExampleScenario extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("actorId")) {
this.actorId = null;
@ -4427,9 +4431,9 @@ public class ExampleScenario extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("resourceId")) {
this.resourceId = null;
@ -4765,9 +4769,9 @@ public class ExampleScenario extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("versionId")) {
this.versionId = null;
@ -5056,9 +5060,9 @@ public class ExampleScenario extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("resourceId")) {
this.resourceId = null;
@ -5566,9 +5570,9 @@ public class ExampleScenario extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("title")) {
this.title = null;
@ -6003,9 +6007,9 @@ public class ExampleScenario extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("process")) {
this.getProcess().remove((ExampleScenarioProcessComponent) value);
@ -6839,9 +6843,9 @@ public class ExampleScenario extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("number")) {
this.number = null;
@ -7301,9 +7305,9 @@ public class ExampleScenario extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("title")) {
this.title = null;
@ -8784,9 +8788,9 @@ public class ExampleScenario extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("url")) {
this.url = null;

View File

@ -200,7 +200,9 @@ public class ExplanationOfBenefit extends DomainResource {
}
public String toCode(ExplanationOfBenefitStatus code) {
if (code == ExplanationOfBenefitStatus.ACTIVE)
if (code == ExplanationOfBenefitStatus.NULL)
return null;
if (code == ExplanationOfBenefitStatus.ACTIVE)
return "active";
if (code == ExplanationOfBenefitStatus.CANCELLED)
return "cancelled";
@ -209,7 +211,7 @@ public class ExplanationOfBenefit extends DomainResource {
if (code == ExplanationOfBenefitStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(ExplanationOfBenefitStatus code) {
return code.getSystem();
@ -344,14 +346,16 @@ public class ExplanationOfBenefit extends DomainResource {
}
public String toCode(Use code) {
if (code == Use.CLAIM)
if (code == Use.NULL)
return null;
if (code == Use.CLAIM)
return "claim";
if (code == Use.PREAUTHORIZATION)
return "preauthorization";
if (code == Use.PREDETERMINATION)
return "predetermination";
return "?";
}
}
public String toSystem(Use code) {
return code.getSystem();
@ -504,7 +508,9 @@ public class ExplanationOfBenefit extends DomainResource {
}
public String toCode(RemittanceOutcome code) {
if (code == RemittanceOutcome.QUEUED)
if (code == RemittanceOutcome.NULL)
return null;
if (code == RemittanceOutcome.QUEUED)
return "queued";
if (code == RemittanceOutcome.COMPLETE)
return "complete";
@ -513,7 +519,7 @@ public class ExplanationOfBenefit extends DomainResource {
if (code == RemittanceOutcome.PARTIAL)
return "partial";
return "?";
}
}
public String toSystem(RemittanceOutcome code) {
return code.getSystem();
@ -734,9 +740,9 @@ public class ExplanationOfBenefit extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("claim")) {
this.claim = null;
@ -1007,9 +1013,9 @@ public class ExplanationOfBenefit extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -1471,9 +1477,9 @@ public class ExplanationOfBenefit extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("sequence")) {
this.sequence = null;
@ -2125,9 +2131,9 @@ public class ExplanationOfBenefit extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("sequence")) {
this.sequence = null;
@ -2676,9 +2682,9 @@ public class ExplanationOfBenefit extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("sequence")) {
this.sequence = null;
@ -3281,9 +3287,9 @@ public class ExplanationOfBenefit extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("sequence")) {
this.sequence = null;
@ -3737,9 +3743,9 @@ public class ExplanationOfBenefit extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("focal")) {
this.focal = null;
@ -4104,9 +4110,9 @@ public class ExplanationOfBenefit extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("date")) {
this.date = null;
@ -6015,9 +6021,9 @@ public class ExplanationOfBenefit extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("sequence")) {
this.sequence = null;
@ -6704,9 +6710,9 @@ public class ExplanationOfBenefit extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("category")) {
this.category = null;
@ -7855,9 +7861,9 @@ public class ExplanationOfBenefit extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("sequence")) {
this.sequence = null;
@ -9062,9 +9068,9 @@ public class ExplanationOfBenefit extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("sequence")) {
this.sequence = null;
@ -10729,9 +10735,9 @@ public class ExplanationOfBenefit extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("itemSequence")) {
this.getItemSequence().remove(castToPositiveInt(value));
@ -11732,9 +11738,9 @@ public class ExplanationOfBenefit extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("productOrService")) {
this.productOrService = null;
@ -12525,9 +12531,9 @@ public class ExplanationOfBenefit extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("productOrService")) {
this.productOrService = null;
@ -12855,9 +12861,9 @@ public class ExplanationOfBenefit extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("category")) {
this.category = null;
@ -13304,9 +13310,9 @@ public class ExplanationOfBenefit extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -13748,9 +13754,9 @@ public class ExplanationOfBenefit extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("number")) {
this.number = null;
@ -14411,9 +14417,9 @@ public class ExplanationOfBenefit extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("category")) {
this.category = null;
@ -14864,9 +14870,9 @@ public class ExplanationOfBenefit extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -18040,9 +18046,9 @@ public class ExplanationOfBenefit extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -174,14 +174,16 @@ public class Expression extends Type implements ICompositeType {
}
public String toCode(ExpressionLanguage code) {
if (code == ExpressionLanguage.TEXT_CQL)
if (code == ExpressionLanguage.NULL)
return null;
if (code == ExpressionLanguage.TEXT_CQL)
return "text/cql";
if (code == ExpressionLanguage.TEXT_FHIRPATH)
return "text/fhirpath";
if (code == ExpressionLanguage.APPLICATION_XFHIRQUERY)
return "application/x-fhir-query";
return "?";
}
}
public String toSystem(ExpressionLanguage code) {
return code.getSystem();
@ -621,9 +623,9 @@ public class Expression extends Type implements ICompositeType {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("description")) {
this.description = null;

View File

@ -197,7 +197,9 @@ public class FamilyMemberHistory extends DomainResource {
}
public String toCode(FamilyHistoryStatus code) {
if (code == FamilyHistoryStatus.PARTIAL)
if (code == FamilyHistoryStatus.NULL)
return null;
if (code == FamilyHistoryStatus.PARTIAL)
return "partial";
if (code == FamilyHistoryStatus.COMPLETED)
return "completed";
@ -206,7 +208,7 @@ public class FamilyMemberHistory extends DomainResource {
if (code == FamilyHistoryStatus.HEALTHUNKNOWN)
return "health-unknown";
return "?";
}
}
public String toSystem(FamilyHistoryStatus code) {
return code.getSystem();
@ -676,9 +678,9 @@ public class FamilyMemberHistory extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -2380,9 +2382,9 @@ public class FamilyMemberHistory extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -173,14 +173,16 @@ public class Flag extends DomainResource {
}
public String toCode(FlagStatus code) {
if (code == FlagStatus.ACTIVE)
if (code == FlagStatus.NULL)
return null;
if (code == FlagStatus.ACTIVE)
return "active";
if (code == FlagStatus.INACTIVE)
return "inactive";
if (code == FlagStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(FlagStatus code) {
return code.getSystem();
@ -803,9 +805,9 @@ public class Flag extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -288,7 +288,9 @@ public class Goal extends DomainResource {
}
public String toCode(GoalLifecycleStatus code) {
if (code == GoalLifecycleStatus.PROPOSED)
if (code == GoalLifecycleStatus.NULL)
return null;
if (code == GoalLifecycleStatus.PROPOSED)
return "proposed";
if (code == GoalLifecycleStatus.PLANNED)
return "planned";
@ -307,7 +309,7 @@ public class Goal extends DomainResource {
if (code == GoalLifecycleStatus.REJECTED)
return "rejected";
return "?";
}
}
public String toSystem(GoalLifecycleStatus code) {
return code.getSystem();
@ -754,9 +756,9 @@ public class Goal extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("measure")) {
this.measure = null;
@ -2141,9 +2143,9 @@ public class Goal extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -166,12 +166,14 @@ public class GraphDefinition extends MetadataResource {
}
public String toCode(GraphCompartmentUse code) {
if (code == GraphCompartmentUse.CONDITION)
if (code == GraphCompartmentUse.NULL)
return null;
if (code == GraphCompartmentUse.CONDITION)
return "condition";
if (code == GraphCompartmentUse.REQUIREMENT)
return "requirement";
return "?";
}
}
public String toSystem(GraphCompartmentUse code) {
return code.getSystem();
@ -340,7 +342,9 @@ public class GraphDefinition extends MetadataResource {
}
public String toCode(CompartmentCode code) {
if (code == CompartmentCode.PATIENT)
if (code == CompartmentCode.NULL)
return null;
if (code == CompartmentCode.PATIENT)
return "Patient";
if (code == CompartmentCode.ENCOUNTER)
return "Encounter";
@ -351,7 +355,7 @@ public class GraphDefinition extends MetadataResource {
if (code == CompartmentCode.DEVICE)
return "Device";
return "?";
}
}
public String toSystem(CompartmentCode code) {
return code.getSystem();
@ -503,7 +507,9 @@ public class GraphDefinition extends MetadataResource {
}
public String toCode(GraphCompartmentRule code) {
if (code == GraphCompartmentRule.IDENTICAL)
if (code == GraphCompartmentRule.NULL)
return null;
if (code == GraphCompartmentRule.IDENTICAL)
return "identical";
if (code == GraphCompartmentRule.MATCHING)
return "matching";
@ -512,7 +518,7 @@ public class GraphDefinition extends MetadataResource {
if (code == GraphCompartmentRule.CUSTOM)
return "custom";
return "?";
}
}
public String toSystem(GraphCompartmentRule code) {
return code.getSystem();
@ -999,9 +1005,9 @@ public class GraphDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("path")) {
this.path = null;
@ -1550,9 +1556,9 @@ public class GraphDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -2107,9 +2113,9 @@ public class GraphDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("use")) {
this.use = null;
@ -3412,9 +3418,9 @@ public class GraphDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("url")) {
this.url = null;

View File

@ -233,7 +233,9 @@ public class Group extends DomainResource {
}
public String toCode(GroupType code) {
if (code == GroupType.PERSON)
if (code == GroupType.NULL)
return null;
if (code == GroupType.PERSON)
return "person";
if (code == GroupType.ANIMAL)
return "animal";
@ -246,7 +248,7 @@ public class Group extends DomainResource {
if (code == GroupType.SUBSTANCE)
return "substance";
return "?";
}
}
public String toSystem(GroupType code) {
return code.getSystem();
@ -635,9 +637,9 @@ public class Group extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -1026,9 +1028,9 @@ public class Group extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("entity")) {
this.entity = null;
@ -1914,9 +1916,9 @@ public class Group extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -231,7 +231,9 @@ public class GuidanceResponse extends DomainResource {
}
public String toCode(GuidanceResponseStatus code) {
if (code == GuidanceResponseStatus.SUCCESS)
if (code == GuidanceResponseStatus.NULL)
return null;
if (code == GuidanceResponseStatus.SUCCESS)
return "success";
if (code == GuidanceResponseStatus.DATAREQUESTED)
return "data-requested";
@ -244,7 +246,7 @@ public class GuidanceResponse extends DomainResource {
if (code == GuidanceResponseStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(GuidanceResponseStatus code) {
return code.getSystem();
@ -1606,9 +1608,9 @@ public class GuidanceResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("requestIdentifier")) {
this.requestIdentifier = null;

View File

@ -247,7 +247,9 @@ public class HealthcareService extends DomainResource {
}
public String toCode(DaysOfWeek code) {
if (code == DaysOfWeek.MON)
if (code == DaysOfWeek.NULL)
return null;
if (code == DaysOfWeek.MON)
return "mon";
if (code == DaysOfWeek.TUE)
return "tue";
@ -262,7 +264,7 @@ public class HealthcareService extends DomainResource {
if (code == DaysOfWeek.SUN)
return "sun";
return "?";
}
}
public String toSystem(DaysOfWeek code) {
return code.getSystem();
@ -433,9 +435,9 @@ public class HealthcareService extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -900,9 +902,9 @@ public class HealthcareService extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("daysOfWeek")) {
this.getDaysOfWeek().remove((Enumeration) value);
@ -1194,9 +1196,9 @@ public class HealthcareService extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("description")) {
this.description = null;
@ -3285,9 +3287,9 @@ public class HealthcareService extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -257,7 +257,9 @@ public class HumanName extends Type implements ICompositeType {
}
public String toCode(NameUse code) {
if (code == NameUse.USUAL)
if (code == NameUse.NULL)
return null;
if (code == NameUse.USUAL)
return "usual";
if (code == NameUse.OFFICIAL)
return "official";
@ -272,7 +274,7 @@ public class HumanName extends Type implements ICompositeType {
if (code == NameUse.MAIDEN)
return "maiden";
return "?";
}
}
public String toSystem(NameUse code) {
return code.getSystem();
@ -955,9 +957,9 @@ public class HumanName extends Type implements ICompositeType {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("use")) {
this.use = null;

View File

@ -215,7 +215,9 @@ public class Identifier extends Type implements ICompositeType {
}
public String toCode(IdentifierUse code) {
if (code == IdentifierUse.USUAL)
if (code == IdentifierUse.NULL)
return null;
if (code == IdentifierUse.USUAL)
return "usual";
if (code == IdentifierUse.OFFICIAL)
return "official";
@ -226,7 +228,7 @@ public class Identifier extends Type implements ICompositeType {
if (code == IdentifierUse.OLD)
return "old";
return "?";
}
}
public String toSystem(IdentifierUse code) {
return code.getSystem();
@ -681,9 +683,9 @@ public class Identifier extends Type implements ICompositeType {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("use")) {
this.use = null;

View File

@ -223,7 +223,9 @@ public class ImagingStudy extends DomainResource {
}
public String toCode(ImagingStudyStatus code) {
if (code == ImagingStudyStatus.REGISTERED)
if (code == ImagingStudyStatus.NULL)
return null;
if (code == ImagingStudyStatus.REGISTERED)
return "registered";
if (code == ImagingStudyStatus.AVAILABLE)
return "available";
@ -234,7 +236,7 @@ public class ImagingStudy extends DomainResource {
if (code == ImagingStudyStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(ImagingStudyStatus code) {
return code.getSystem();
@ -1199,9 +1201,9 @@ public class ImagingStudy extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("uid")) {
this.uid = null;
@ -1588,9 +1590,9 @@ public class ImagingStudy extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("function")) {
this.function = null;
@ -1987,9 +1989,9 @@ public class ImagingStudy extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("uid")) {
this.uid = null;
@ -3803,9 +3805,9 @@ public class ImagingStudy extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -177,14 +177,16 @@ public class Immunization extends DomainResource {
}
public String toCode(ImmunizationStatus code) {
if (code == ImmunizationStatus.COMPLETED)
if (code == ImmunizationStatus.NULL)
return null;
if (code == ImmunizationStatus.COMPLETED)
return "completed";
if (code == ImmunizationStatus.ENTEREDINERROR)
return "entered-in-error";
if (code == ImmunizationStatus.NOTDONE)
return "not-done";
return "?";
}
}
public String toSystem(ImmunizationStatus code) {
return code.getSystem();
@ -368,9 +370,9 @@ public class Immunization extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("function")) {
this.function = null;
@ -814,9 +816,9 @@ public class Immunization extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("documentType")) {
this.documentType = null;
@ -1187,9 +1189,9 @@ public class Immunization extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("date")) {
this.date = null;
@ -1752,9 +1754,9 @@ public class Immunization extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("series")) {
this.series = null;
@ -3939,9 +3941,9 @@ public class Immunization extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -158,12 +158,14 @@ public class ImmunizationEvaluation extends DomainResource {
}
public String toCode(ImmunizationEvaluationStatus code) {
if (code == ImmunizationEvaluationStatus.COMPLETED)
if (code == ImmunizationEvaluationStatus.NULL)
return null;
if (code == ImmunizationEvaluationStatus.COMPLETED)
return "completed";
if (code == ImmunizationEvaluationStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(ImmunizationEvaluationStatus code) {
return code.getSystem();
@ -1191,9 +1193,9 @@ public class ImmunizationEvaluation extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -10261,7 +10261,9 @@ public class ImplementationGuide extends MetadataResource {
}
public String toCode(SPDXLicense code) {
if (code == SPDXLicense._0BSD)
if (code == SPDXLicense.NULL)
return null;
if (code == SPDXLicense._0BSD)
return "0BSD";
if (code == SPDXLicense.AAL)
return "AAL";
@ -11378,7 +11380,7 @@ public class ImplementationGuide extends MetadataResource {
if (code == SPDXLicense.ZPL_2_1)
return "ZPL-2.1";
return "?";
}
}
public String toSystem(SPDXLicense code) {
return code.getSystem();
@ -11534,7 +11536,9 @@ public class ImplementationGuide extends MetadataResource {
}
public String toCode(GuidePageGeneration code) {
if (code == GuidePageGeneration.HTML)
if (code == GuidePageGeneration.NULL)
return null;
if (code == GuidePageGeneration.HTML)
return "html";
if (code == GuidePageGeneration.MARKDOWN)
return "markdown";
@ -11543,7 +11547,7 @@ public class ImplementationGuide extends MetadataResource {
if (code == GuidePageGeneration.GENERATED)
return "generated";
return "?";
}
}
public String toSystem(GuidePageGeneration code) {
return code.getSystem();
@ -11824,7 +11828,9 @@ public class ImplementationGuide extends MetadataResource {
}
public String toCode(GuideParameterCode code) {
if (code == GuideParameterCode.APPLY)
if (code == GuideParameterCode.NULL)
return null;
if (code == GuideParameterCode.APPLY)
return "apply";
if (code == GuideParameterCode.PATHRESOURCE)
return "path-resource";
@ -11845,7 +11851,7 @@ public class ImplementationGuide extends MetadataResource {
if (code == GuideParameterCode.HTMLTEMPLATE)
return "html-template";
return "?";
}
}
public String toSystem(GuideParameterCode code) {
return code.getSystem();
@ -12133,9 +12139,9 @@ public class ImplementationGuide extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("uri")) {
this.uri = null;
@ -12432,9 +12438,9 @@ public class ImplementationGuide extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -12930,9 +12936,9 @@ public class ImplementationGuide extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("grouping")) {
this.getGrouping().remove((ImplementationGuideDefinitionGroupingComponent) value);
@ -13277,9 +13283,9 @@ public class ImplementationGuide extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("name")) {
this.name = null;
@ -13932,9 +13938,9 @@ public class ImplementationGuide extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("reference")) {
this.reference = null;
@ -14441,9 +14447,9 @@ public class ImplementationGuide extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("name[x]")) {
this.name = null;
@ -14767,9 +14773,9 @@ public class ImplementationGuide extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -15118,9 +15124,9 @@ public class ImplementationGuide extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -15682,9 +15688,9 @@ public class ImplementationGuide extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("rendering")) {
this.rendering = null;
@ -16121,9 +16127,9 @@ public class ImplementationGuide extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("reference")) {
this.reference = null;
@ -16503,9 +16509,9 @@ public class ImplementationGuide extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("name")) {
this.name = null;
@ -18184,9 +18190,9 @@ public class ImplementationGuide extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("url")) {
this.url = null;

View File

@ -215,7 +215,9 @@ public class Invoice extends DomainResource {
}
public String toCode(InvoiceStatus code) {
if (code == InvoiceStatus.DRAFT)
if (code == InvoiceStatus.NULL)
return null;
if (code == InvoiceStatus.DRAFT)
return "draft";
if (code == InvoiceStatus.ISSUED)
return "issued";
@ -226,7 +228,7 @@ public class Invoice extends DomainResource {
if (code == InvoiceStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(InvoiceStatus code) {
return code.getSystem();
@ -415,7 +417,9 @@ public class Invoice extends DomainResource {
}
public String toCode(InvoicePriceComponentType code) {
if (code == InvoicePriceComponentType.BASE)
if (code == InvoicePriceComponentType.NULL)
return null;
if (code == InvoicePriceComponentType.BASE)
return "base";
if (code == InvoicePriceComponentType.SURCHARGE)
return "surcharge";
@ -428,7 +432,7 @@ public class Invoice extends DomainResource {
if (code == InvoicePriceComponentType.INFORMATIONAL)
return "informational";
return "?";
}
}
public String toSystem(InvoicePriceComponentType code) {
return code.getSystem();
@ -620,9 +624,9 @@ public class Invoice extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("role")) {
this.role = null;
@ -1029,9 +1033,9 @@ public class Invoice extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("sequence")) {
this.sequence = null;
@ -1456,9 +1460,9 @@ public class Invoice extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -2753,9 +2757,9 @@ public class Invoice extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -179,14 +179,16 @@ public class Linkage extends DomainResource {
}
public String toCode(LinkageType code) {
if (code == LinkageType.SOURCE)
if (code == LinkageType.NULL)
return null;
if (code == LinkageType.SOURCE)
return "source";
if (code == LinkageType.ALTERNATE)
return "alternate";
if (code == LinkageType.HISTORICAL)
return "historical";
return "?";
}
}
public String toSystem(LinkageType code) {
return code.getSystem();
@ -400,9 +402,9 @@ public class Linkage extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -777,9 +779,9 @@ public class Linkage extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("active")) {
this.active = null;

View File

@ -176,14 +176,16 @@ public class ListResource extends DomainResource {
}
public String toCode(ListStatus code) {
if (code == ListStatus.CURRENT)
if (code == ListStatus.NULL)
return null;
if (code == ListStatus.CURRENT)
return "current";
if (code == ListStatus.RETIRED)
return "retired";
if (code == ListStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(ListStatus code) {
return code.getSystem();
@ -319,14 +321,16 @@ public class ListResource extends DomainResource {
}
public String toCode(ListMode code) {
if (code == ListMode.WORKING)
if (code == ListMode.NULL)
return null;
if (code == ListMode.WORKING)
return "working";
if (code == ListMode.SNAPSHOT)
return "snapshot";
if (code == ListMode.CHANGES)
return "changes";
return "?";
}
}
public String toSystem(ListMode code) {
return code.getSystem();
@ -650,9 +654,9 @@ public class ListResource extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("flag")) {
this.flag = null;
@ -1715,9 +1719,9 @@ public class ListResource extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -179,14 +179,16 @@ public class Location extends DomainResource {
}
public String toCode(LocationStatus code) {
if (code == LocationStatus.ACTIVE)
if (code == LocationStatus.NULL)
return null;
if (code == LocationStatus.ACTIVE)
return "active";
if (code == LocationStatus.SUSPENDED)
return "suspended";
if (code == LocationStatus.INACTIVE)
return "inactive";
return "?";
}
}
public String toSystem(LocationStatus code) {
return code.getSystem();
@ -304,12 +306,14 @@ public class Location extends DomainResource {
}
public String toCode(LocationMode code) {
if (code == LocationMode.INSTANCE)
if (code == LocationMode.NULL)
return null;
if (code == LocationMode.INSTANCE)
return "instance";
if (code == LocationMode.KIND)
return "kind";
return "?";
}
}
public String toSystem(LocationMode code) {
return code.getSystem();
@ -514,7 +518,9 @@ public class Location extends DomainResource {
}
public String toCode(DaysOfWeek code) {
if (code == DaysOfWeek.MON)
if (code == DaysOfWeek.NULL)
return null;
if (code == DaysOfWeek.MON)
return "mon";
if (code == DaysOfWeek.TUE)
return "tue";
@ -529,7 +535,7 @@ public class Location extends DomainResource {
if (code == DaysOfWeek.SUN)
return "sun";
return "?";
}
}
public String toSystem(DaysOfWeek code) {
return code.getSystem();
@ -899,9 +905,9 @@ public class Location extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("longitude")) {
this.longitude = null;
@ -1352,9 +1358,9 @@ public class Location extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("daysOfWeek")) {
this.getDaysOfWeek().remove((Enumeration) value);
@ -2780,9 +2786,9 @@ public class Location extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -177,14 +177,16 @@ public class MeasureReport extends DomainResource {
}
public String toCode(MeasureReportStatus code) {
if (code == MeasureReportStatus.COMPLETE)
if (code == MeasureReportStatus.NULL)
return null;
if (code == MeasureReportStatus.COMPLETE)
return "complete";
if (code == MeasureReportStatus.PENDING)
return "pending";
if (code == MeasureReportStatus.ERROR)
return "error";
return "?";
}
}
public String toSystem(MeasureReportStatus code) {
return code.getSystem();
@ -338,7 +340,9 @@ public class MeasureReport extends DomainResource {
}
public String toCode(MeasureReportType code) {
if (code == MeasureReportType.INDIVIDUAL)
if (code == MeasureReportType.NULL)
return null;
if (code == MeasureReportType.INDIVIDUAL)
return "individual";
if (code == MeasureReportType.SUBJECTLIST)
return "subject-list";
@ -347,7 +351,7 @@ public class MeasureReport extends DomainResource {
if (code == MeasureReportType.DATACOLLECTION)
return "data-collection";
return "?";
}
}
public String toSystem(MeasureReportType code) {
return code.getSystem();
@ -657,9 +661,9 @@ public class MeasureReport extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -1022,9 +1026,9 @@ public class MeasureReport extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -1330,9 +1334,9 @@ public class MeasureReport extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.getCode().remove(castToCodeableConcept(value));
@ -1736,9 +1740,9 @@ public class MeasureReport extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("value")) {
this.value = null;
@ -2000,9 +2004,9 @@ public class MeasureReport extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -2339,9 +2343,9 @@ public class MeasureReport extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -3322,9 +3326,9 @@ public class MeasureReport extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -279,7 +279,9 @@ public class Media extends DomainResource {
}
public String toCode(MediaStatus code) {
if (code == MediaStatus.PREPARATION)
if (code == MediaStatus.NULL)
return null;
if (code == MediaStatus.PREPARATION)
return "preparation";
if (code == MediaStatus.INPROGRESS)
return "in-progress";
@ -296,7 +298,7 @@ public class Media extends DomainResource {
if (code == MediaStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(MediaStatus code) {
return code.getSystem();
@ -1957,9 +1959,9 @@ public class Media extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -178,14 +178,16 @@ public class Medication extends DomainResource {
}
public String toCode(MedicationStatus code) {
if (code == MedicationStatus.ACTIVE)
if (code == MedicationStatus.NULL)
return null;
if (code == MedicationStatus.ACTIVE)
return "active";
if (code == MedicationStatus.INACTIVE)
return "inactive";
if (code == MedicationStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(MedicationStatus code) {
return code.getSystem();
@ -466,9 +468,9 @@ public class Medication extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("item[x]")) {
this.item = null;
@ -772,9 +774,9 @@ public class Medication extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("lotNumber")) {
this.lotNumber = null;
@ -1431,9 +1433,9 @@ public class Medication extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -258,7 +258,9 @@ public class MedicationAdministration extends DomainResource {
}
public String toCode(MedicationAdministrationStatus code) {
if (code == MedicationAdministrationStatus.INPROGRESS)
if (code == MedicationAdministrationStatus.NULL)
return null;
if (code == MedicationAdministrationStatus.INPROGRESS)
return "in-progress";
if (code == MedicationAdministrationStatus.NOTDONE)
return "not-done";
@ -273,7 +275,7 @@ public class MedicationAdministration extends DomainResource {
if (code == MedicationAdministrationStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(MedicationAdministrationStatus code) {
return code.getSystem();
@ -458,9 +460,9 @@ public class MedicationAdministration extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("function")) {
this.function = null;
@ -1021,9 +1023,9 @@ public class MedicationAdministration extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("text")) {
this.text = null;
@ -2823,9 +2825,9 @@ public class MedicationAdministration extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -295,7 +295,9 @@ public class MedicationDispense extends DomainResource {
}
public String toCode(MedicationDispenseStatus code) {
if (code == MedicationDispenseStatus.PREPARATION)
if (code == MedicationDispenseStatus.NULL)
return null;
if (code == MedicationDispenseStatus.PREPARATION)
return "preparation";
if (code == MedicationDispenseStatus.INPROGRESS)
return "in-progress";
@ -314,7 +316,7 @@ public class MedicationDispense extends DomainResource {
if (code == MedicationDispenseStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(MedicationDispenseStatus code) {
return code.getSystem();
@ -509,9 +511,9 @@ public class MedicationDispense extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("function")) {
this.function = null;
@ -955,9 +957,9 @@ public class MedicationDispense extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("wasSubstituted")) {
this.wasSubstituted = null;
@ -3045,9 +3047,9 @@ public class MedicationDispense extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -175,14 +175,16 @@ public class MedicationKnowledge extends DomainResource {
}
public String toCode(MedicationKnowledgeStatus code) {
if (code == MedicationKnowledgeStatus.ACTIVE)
if (code == MedicationKnowledgeStatus.NULL)
return null;
if (code == MedicationKnowledgeStatus.ACTIVE)
return "active";
if (code == MedicationKnowledgeStatus.INACTIVE)
return "inactive";
if (code == MedicationKnowledgeStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(MedicationKnowledgeStatus code) {
return code.getSystem();
@ -396,9 +398,9 @@ public class MedicationKnowledge extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -662,9 +664,9 @@ public class MedicationKnowledge extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -1025,9 +1027,9 @@ public class MedicationKnowledge extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("item[x]")) {
this.item = null;
@ -1355,9 +1357,9 @@ public class MedicationKnowledge extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -1622,9 +1624,9 @@ public class MedicationKnowledge extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -2012,9 +2014,9 @@ public class MedicationKnowledge extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("dosage")) {
this.getDosage().remove((MedicationKnowledgeAdministrationGuidelinesDosageComponent) value);
@ -2309,9 +2311,9 @@ public class MedicationKnowledge extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -2644,9 +2646,9 @@ public class MedicationKnowledge extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("characteristic[x]")) {
this.characteristic = null;
@ -2933,9 +2935,9 @@ public class MedicationKnowledge extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -3175,9 +3177,9 @@ public class MedicationKnowledge extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -3489,9 +3491,9 @@ public class MedicationKnowledge extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -3931,9 +3933,9 @@ public class MedicationKnowledge extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("regulatoryAuthority")) {
this.regulatoryAuthority = null;
@ -4229,9 +4231,9 @@ public class MedicationKnowledge extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -4422,9 +4424,9 @@ public class MedicationKnowledge extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("schedule")) {
this.schedule = null;
@ -4652,9 +4654,9 @@ public class MedicationKnowledge extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("quantity")) {
this.quantity = null;
@ -4997,9 +4999,9 @@ public class MedicationKnowledge extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("areaUnderCurve")) {
this.getAreaUnderCurve().remove(castToQuantity(value));
@ -6852,9 +6854,9 @@ public class MedicationKnowledge extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;

View File

@ -281,7 +281,9 @@ public class MedicationRequest extends DomainResource {
}
public String toCode(MedicationRequestStatus code) {
if (code == MedicationRequestStatus.ACTIVE)
if (code == MedicationRequestStatus.NULL)
return null;
if (code == MedicationRequestStatus.ACTIVE)
return "active";
if (code == MedicationRequestStatus.ONHOLD)
return "on-hold";
@ -298,7 +300,7 @@ public class MedicationRequest extends DomainResource {
if (code == MedicationRequestStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(MedicationRequestStatus code) {
return code.getSystem();
@ -530,7 +532,9 @@ public class MedicationRequest extends DomainResource {
}
public String toCode(MedicationRequestIntent code) {
if (code == MedicationRequestIntent.PROPOSAL)
if (code == MedicationRequestIntent.NULL)
return null;
if (code == MedicationRequestIntent.PROPOSAL)
return "proposal";
if (code == MedicationRequestIntent.PLAN)
return "plan";
@ -547,7 +551,7 @@ public class MedicationRequest extends DomainResource {
if (code == MedicationRequestIntent.OPTION)
return "option";
return "?";
}
}
public String toSystem(MedicationRequestIntent code) {
return code.getSystem();
@ -700,7 +704,9 @@ public class MedicationRequest extends DomainResource {
}
public String toCode(MedicationRequestPriority code) {
if (code == MedicationRequestPriority.ROUTINE)
if (code == MedicationRequestPriority.NULL)
return null;
if (code == MedicationRequestPriority.ROUTINE)
return "routine";
if (code == MedicationRequestPriority.URGENT)
return "urgent";
@ -709,7 +715,7 @@ public class MedicationRequest extends DomainResource {
if (code == MedicationRequestPriority.STAT)
return "stat";
return "?";
}
}
public String toSystem(MedicationRequestPriority code) {
return code.getSystem();
@ -1189,9 +1195,9 @@ public class MedicationRequest extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("initialFill")) {
this.initialFill = (MedicationRequestDispenseRequestInitialFillComponent) value; // MedicationRequestDispenseRequestInitialFillComponent
@ -1476,9 +1482,9 @@ public class MedicationRequest extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("quantity")) {
this.quantity = null;
@ -1763,9 +1769,9 @@ public class MedicationRequest extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("allowed[x]")) {
this.allowed = null;
@ -4514,9 +4520,9 @@ public class MedicationRequest extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -289,7 +289,9 @@ public class MedicationStatement extends DomainResource {
}
public String toCode(MedicationStatementStatus code) {
if (code == MedicationStatementStatus.ACTIVE)
if (code == MedicationStatementStatus.NULL)
return null;
if (code == MedicationStatementStatus.ACTIVE)
return "active";
if (code == MedicationStatementStatus.COMPLETED)
return "completed";
@ -306,7 +308,7 @@ public class MedicationStatement extends DomainResource {
if (code == MedicationStatementStatus.NOTTAKEN)
return "not-taken";
return "?";
}
}
public String toSystem(MedicationStatementStatus code) {
return code.getSystem();
@ -1794,9 +1796,9 @@ public class MedicationStatement extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -188,14 +188,16 @@ public class MessageDefinition extends MetadataResource {
}
public String toCode(MessageSignificanceCategory code) {
if (code == MessageSignificanceCategory.CONSEQUENCE)
if (code == MessageSignificanceCategory.NULL)
return null;
if (code == MessageSignificanceCategory.CONSEQUENCE)
return "consequence";
if (code == MessageSignificanceCategory.CURRENCY)
return "currency";
if (code == MessageSignificanceCategory.NOTIFICATION)
return "notification";
return "?";
}
}
public String toSystem(MessageSignificanceCategory code) {
return code.getSystem();
@ -346,7 +348,9 @@ public class MessageDefinition extends MetadataResource {
}
public String toCode(MessageheaderResponseRequest code) {
if (code == MessageheaderResponseRequest.ALWAYS)
if (code == MessageheaderResponseRequest.NULL)
return null;
if (code == MessageheaderResponseRequest.ALWAYS)
return "always";
if (code == MessageheaderResponseRequest.ONERROR)
return "on-error";
@ -355,7 +359,7 @@ public class MessageDefinition extends MetadataResource {
if (code == MessageheaderResponseRequest.ONSUCCESS)
return "on-success";
return "?";
}
}
public String toSystem(MessageheaderResponseRequest code) {
return code.getSystem();
@ -731,9 +735,9 @@ public class MessageDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -1055,9 +1059,9 @@ public class MessageDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("message")) {
this.message = null;
@ -3085,9 +3089,9 @@ public class MessageDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("url")) {
this.url = null;

View File

@ -183,14 +183,16 @@ public class MessageHeader extends DomainResource {
}
public String toCode(ResponseType code) {
if (code == ResponseType.OK)
if (code == ResponseType.NULL)
return null;
if (code == ResponseType.OK)
return "ok";
if (code == ResponseType.TRANSIENTERROR)
return "transient-error";
if (code == ResponseType.FATALERROR)
return "fatal-error";
return "?";
}
}
public String toSystem(ResponseType code) {
return code.getSystem();
@ -556,9 +558,9 @@ public class MessageHeader extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("name")) {
this.name = null;
@ -1068,9 +1070,9 @@ public class MessageHeader extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("name")) {
this.name = null;
@ -1476,9 +1478,9 @@ public class MessageHeader extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.identifier = null;
@ -2467,9 +2469,9 @@ public class MessageHeader extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("event[x]")) {
this.event = null;

View File

@ -177,14 +177,16 @@ public class MolecularSequence extends DomainResource {
}
public String toCode(SequenceType code) {
if (code == SequenceType.AA)
if (code == SequenceType.NULL)
return null;
if (code == SequenceType.AA)
return "aa";
if (code == SequenceType.DNA)
return "dna";
if (code == SequenceType.RNA)
return "rna";
return "?";
}
}
public String toSystem(SequenceType code) {
return code.getSystem();
@ -299,12 +301,14 @@ public class MolecularSequence extends DomainResource {
}
public String toCode(OrientationType code) {
if (code == OrientationType.SENSE)
if (code == OrientationType.NULL)
return null;
if (code == OrientationType.SENSE)
return "sense";
if (code == OrientationType.ANTISENSE)
return "antisense";
return "?";
}
}
public String toSystem(OrientationType code) {
return code.getSystem();
@ -419,12 +423,14 @@ public class MolecularSequence extends DomainResource {
}
public String toCode(StrandType code) {
if (code == StrandType.WATSON)
if (code == StrandType.NULL)
return null;
if (code == StrandType.WATSON)
return "watson";
if (code == StrandType.CRICK)
return "crick";
return "?";
}
}
public String toSystem(StrandType code) {
return code.getSystem();
@ -557,14 +563,16 @@ public class MolecularSequence extends DomainResource {
}
public String toCode(QualityType code) {
if (code == QualityType.INDEL)
if (code == QualityType.NULL)
return null;
if (code == QualityType.INDEL)
return "indel";
if (code == QualityType.SNP)
return "snp";
if (code == QualityType.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(QualityType code) {
return code.getSystem();
@ -737,7 +745,9 @@ public class MolecularSequence extends DomainResource {
}
public String toCode(RepositoryType code) {
if (code == RepositoryType.DIRECTLINK)
if (code == RepositoryType.NULL)
return null;
if (code == RepositoryType.DIRECTLINK)
return "directlink";
if (code == RepositoryType.OPENAPI)
return "openapi";
@ -748,7 +758,7 @@ public class MolecularSequence extends DomainResource {
if (code == RepositoryType.OTHER)
return "other";
return "?";
}
}
public String toSystem(RepositoryType code) {
return code.getSystem();
@ -1503,9 +1513,9 @@ public class MolecularSequence extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("chromosome")) {
this.chromosome = null;
@ -2256,9 +2266,9 @@ public class MolecularSequence extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("start")) {
this.start = null;
@ -3724,9 +3734,9 @@ public class MolecularSequence extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -4612,9 +4622,9 @@ public class MolecularSequence extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("score")) {
this.getScore().remove(castToInteger(value));
@ -5319,9 +5329,9 @@ public class MolecularSequence extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -5767,9 +5777,9 @@ public class MolecularSequence extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("variantType")) {
this.variantType = null;
@ -6099,9 +6109,9 @@ public class MolecularSequence extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("start")) {
this.start = null;
@ -6399,9 +6409,9 @@ public class MolecularSequence extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("start")) {
this.start = null;
@ -7769,9 +7779,9 @@ public class MolecularSequence extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -186,14 +186,16 @@ public class NamingSystem extends MetadataResource {
}
public String toCode(NamingSystemType code) {
if (code == NamingSystemType.CODESYSTEM)
if (code == NamingSystemType.NULL)
return null;
if (code == NamingSystemType.CODESYSTEM)
return "codesystem";
if (code == NamingSystemType.IDENTIFIER)
return "identifier";
if (code == NamingSystemType.ROOT)
return "root";
return "?";
}
}
public String toSystem(NamingSystemType code) {
return code.getSystem();
@ -347,7 +349,9 @@ public class NamingSystem extends MetadataResource {
}
public String toCode(NamingSystemIdentifierType code) {
if (code == NamingSystemIdentifierType.NULL)
if (code == NamingSystemIdentifierType.NULL)
return null;
if (code == NamingSystemIdentifierType.NULL)
return null;
if (code == NamingSystemIdentifierType.OID)
return "oid";
@ -358,7 +362,7 @@ public class NamingSystem extends MetadataResource {
if (code == NamingSystemIdentifierType.OTHER)
return "other";
return "?";
}
}
public String toSystem(NamingSystemIdentifierType code) {
return code.getSystem();
@ -771,9 +775,9 @@ public class NamingSystem extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -1891,9 +1895,9 @@ public class NamingSystem extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("name")) {
this.name = null;

View File

@ -198,7 +198,9 @@ public class Narrative extends BaseNarrative implements INarrative {
}
public String toCode(NarrativeStatus code) {
if (code == NarrativeStatus.GENERATED)
if (code == NarrativeStatus.NULL)
return null;
if (code == NarrativeStatus.GENERATED)
return "generated";
if (code == NarrativeStatus.EXTENSIONS)
return "extensions";
@ -207,7 +209,7 @@ public class Narrative extends BaseNarrative implements INarrative {
if (code == NarrativeStatus.EMPTY)
return "empty";
return "?";
}
}
public String toSystem(NarrativeStatus code) {
return code.getSystem();
@ -393,9 +395,9 @@ public class Narrative extends BaseNarrative implements INarrative {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("status")) {
this.status = null;

View File

@ -259,7 +259,9 @@ public class NutritionOrder extends DomainResource {
}
public String toCode(NutritionOrderStatus code) {
if (code == NutritionOrderStatus.DRAFT)
if (code == NutritionOrderStatus.NULL)
return null;
if (code == NutritionOrderStatus.DRAFT)
return "draft";
if (code == NutritionOrderStatus.ACTIVE)
return "active";
@ -274,7 +276,7 @@ public class NutritionOrder extends DomainResource {
if (code == NutritionOrderStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(NutritionOrderStatus code) {
return code.getSystem();
@ -528,7 +530,9 @@ public class NutritionOrder extends DomainResource {
}
public String toCode(NutritiionOrderIntent code) {
if (code == NutritiionOrderIntent.PROPOSAL)
if (code == NutritiionOrderIntent.NULL)
return null;
if (code == NutritiionOrderIntent.PROPOSAL)
return "proposal";
if (code == NutritiionOrderIntent.PLAN)
return "plan";
@ -547,7 +551,7 @@ public class NutritionOrder extends DomainResource {
if (code == NutritiionOrderIntent.OPTION)
return "option";
return "?";
}
}
public String toSystem(NutritiionOrderIntent code) {
return code.getSystem();
@ -1078,9 +1082,9 @@ public class NutritionOrder extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.getType().remove(castToCodeableConcept(value));
@ -1374,9 +1378,9 @@ public class NutritionOrder extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("modifier")) {
this.modifier = null;
@ -1617,9 +1621,9 @@ public class NutritionOrder extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("modifier")) {
this.modifier = null;
@ -2094,9 +2098,9 @@ public class NutritionOrder extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -2871,9 +2875,9 @@ public class NutritionOrder extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("baseFormulaType")) {
this.baseFormulaType = null;
@ -3286,9 +3290,9 @@ public class NutritionOrder extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("schedule")) {
this.schedule = null;
@ -4827,9 +4831,9 @@ public class NutritionOrder extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -283,7 +283,9 @@ public class Observation extends DomainResource {
}
public String toCode(ObservationStatus code) {
if (code == ObservationStatus.REGISTERED)
if (code == ObservationStatus.NULL)
return null;
if (code == ObservationStatus.REGISTERED)
return "registered";
if (code == ObservationStatus.PRELIMINARY)
return "preliminary";
@ -300,7 +302,7 @@ public class Observation extends DomainResource {
if (code == ObservationStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(ObservationStatus code) {
return code.getSystem();
@ -744,9 +746,9 @@ public class Observation extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("low")) {
this.low = null;
@ -1494,9 +1496,9 @@ public class Observation extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("code")) {
this.code = null;
@ -3942,9 +3944,9 @@ public class Observation extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -324,7 +324,9 @@ public class ObservationDefinition extends DomainResource {
}
public String toCode(ObservationDataType code) {
if (code == ObservationDataType.QUANTITY)
if (code == ObservationDataType.NULL)
return null;
if (code == ObservationDataType.QUANTITY)
return "Quantity";
if (code == ObservationDataType.CODEABLECONCEPT)
return "CodeableConcept";
@ -347,7 +349,7 @@ public class ObservationDefinition extends DomainResource {
if (code == ObservationDataType.PERIOD)
return "Period";
return "?";
}
}
public String toSystem(ObservationDataType code) {
return code.getSystem();
@ -481,14 +483,16 @@ public class ObservationDefinition extends DomainResource {
}
public String toCode(ObservationRangeCategory code) {
if (code == ObservationRangeCategory.REFERENCE)
if (code == ObservationRangeCategory.NULL)
return null;
if (code == ObservationRangeCategory.REFERENCE)
return "reference";
if (code == ObservationRangeCategory.CRITICAL)
return "critical";
if (code == ObservationRangeCategory.ABSOLUTE)
return "absolute";
return "?";
}
}
public String toSystem(ObservationRangeCategory code) {
return code.getSystem();
@ -823,9 +827,9 @@ public class ObservationDefinition extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("customaryUnit")) {
this.customaryUnit = null;
@ -1493,9 +1497,9 @@ public class ObservationDefinition extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("category")) {
this.category = null;
@ -2676,9 +2680,9 @@ public class ObservationDefinition extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("category")) {
this.getCategory().remove(castToCodeableConcept(value));

View File

@ -169,12 +169,14 @@ public class OperationDefinition extends MetadataResource {
}
public String toCode(OperationKind code) {
if (code == OperationKind.OPERATION)
if (code == OperationKind.NULL)
return null;
if (code == OperationKind.OPERATION)
return "operation";
if (code == OperationKind.QUERY)
return "query";
return "?";
}
}
public String toSystem(OperationKind code) {
return code.getSystem();
@ -289,12 +291,14 @@ public class OperationDefinition extends MetadataResource {
}
public String toCode(OperationParameterUse code) {
if (code == OperationParameterUse.IN)
if (code == OperationParameterUse.NULL)
return null;
if (code == OperationParameterUse.IN)
return "in";
if (code == OperationParameterUse.OUT)
return "out";
return "?";
}
}
public String toSystem(OperationParameterUse code) {
return code.getSystem();
@ -1197,9 +1201,9 @@ public class OperationDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("name")) {
this.name = null;
@ -1611,9 +1615,9 @@ public class OperationDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("strength")) {
this.strength = null;
@ -1919,9 +1923,9 @@ public class OperationDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("source")) {
this.source = null;
@ -2213,9 +2217,9 @@ public class OperationDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("parameterName")) {
this.getParameterName().remove(castToString(value));
@ -4370,9 +4374,9 @@ public class OperationDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("url")) {
this.url = null;

View File

@ -196,7 +196,9 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
}
public String toCode(IssueSeverity code) {
if (code == IssueSeverity.FATAL)
if (code == IssueSeverity.NULL)
return null;
if (code == IssueSeverity.FATAL)
return "fatal";
if (code == IssueSeverity.ERROR)
return "error";
@ -205,7 +207,7 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
if (code == IssueSeverity.INFORMATION)
return "information";
return "?";
}
}
public String toSystem(IssueSeverity code) {
return code.getSystem();
@ -865,7 +867,9 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
}
public String toCode(IssueType code) {
if (code == IssueType.INVALID)
if (code == IssueType.NULL)
return null;
if (code == IssueType.INVALID)
return "invalid";
if (code == IssueType.STRUCTURE)
return "structure";
@ -928,7 +932,7 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
if (code == IssueType.INFORMATIONAL)
return "informational";
return "?";
}
}
public String toSystem(IssueType code) {
return code.getSystem();
@ -1499,9 +1503,9 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("severity")) {
this.severity = null;
@ -1764,9 +1768,9 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("issue")) {
this.getIssue().remove((OperationOutcomeIssueComponent) value);

View File

@ -156,12 +156,14 @@ public class ParameterDefinition extends Type implements ICompositeType {
}
public String toCode(ParameterUse code) {
if (code == ParameterUse.IN)
if (code == ParameterUse.NULL)
return null;
if (code == ParameterUse.IN)
return "in";
if (code == ParameterUse.OUT)
return "out";
return "?";
}
}
public String toSystem(ParameterUse code) {
return code.getSystem();
@ -748,9 +750,9 @@ public class ParameterDefinition extends Type implements ICompositeType {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("name")) {
this.name = null;

View File

@ -208,7 +208,9 @@ public class Patient extends DomainResource {
}
public String toCode(LinkType code) {
if (code == LinkType.REPLACEDBY)
if (code == LinkType.NULL)
return null;
if (code == LinkType.REPLACEDBY)
return "replaced-by";
if (code == LinkType.REPLACES)
return "replaces";
@ -217,7 +219,7 @@ public class Patient extends DomainResource {
if (code == LinkType.SEEALSO)
return "seealso";
return "?";
}
}
public String toSystem(LinkType code) {
return code.getSystem();
@ -724,9 +726,9 @@ public class Patient extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("relationship")) {
this.getRelationship().remove(castToCodeableConcept(value));
@ -1068,9 +1070,9 @@ public class Patient extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("language")) {
this.language = null;
@ -1364,9 +1366,9 @@ public class Patient extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("other")) {
this.other = null;
@ -2762,9 +2764,9 @@ public class Patient extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -192,7 +192,9 @@ public class PaymentNotice extends DomainResource {
}
public String toCode(PaymentNoticeStatus code) {
if (code == PaymentNoticeStatus.ACTIVE)
if (code == PaymentNoticeStatus.NULL)
return null;
if (code == PaymentNoticeStatus.ACTIVE)
return "active";
if (code == PaymentNoticeStatus.CANCELLED)
return "cancelled";
@ -201,7 +203,7 @@ public class PaymentNotice extends DomainResource {
if (code == PaymentNoticeStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(PaymentNoticeStatus code) {
return code.getSystem();
@ -1088,9 +1090,9 @@ public class PaymentNotice extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -199,7 +199,9 @@ public class PaymentReconciliation extends DomainResource {
}
public String toCode(PaymentReconciliationStatus code) {
if (code == PaymentReconciliationStatus.ACTIVE)
if (code == PaymentReconciliationStatus.NULL)
return null;
if (code == PaymentReconciliationStatus.ACTIVE)
return "active";
if (code == PaymentReconciliationStatus.CANCELLED)
return "cancelled";
@ -208,7 +210,7 @@ public class PaymentReconciliation extends DomainResource {
if (code == PaymentReconciliationStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
}
public String toSystem(PaymentReconciliationStatus code) {
return code.getSystem();
@ -899,9 +901,9 @@ public class PaymentReconciliation extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.identifier = null;
@ -1270,9 +1272,9 @@ public class PaymentReconciliation extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -2416,9 +2418,9 @@ public class PaymentReconciliation extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -196,7 +196,9 @@ public class Person extends DomainResource {
}
public String toCode(IdentityAssuranceLevel code) {
if (code == IdentityAssuranceLevel.LEVEL1)
if (code == IdentityAssuranceLevel.NULL)
return null;
if (code == IdentityAssuranceLevel.LEVEL1)
return "level1";
if (code == IdentityAssuranceLevel.LEVEL2)
return "level2";
@ -205,7 +207,7 @@ public class Person extends DomainResource {
if (code == IdentityAssuranceLevel.LEVEL4)
return "level4";
return "?";
}
}
public String toSystem(IdentityAssuranceLevel code) {
return code.getSystem();
@ -420,9 +422,9 @@ public class Person extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("target")) {
this.target = null;
@ -1272,9 +1274,9 @@ public class Person extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -206,7 +206,9 @@ public class PlanDefinition extends MetadataResource {
}
public String toCode(RequestPriority code) {
if (code == RequestPriority.ROUTINE)
if (code == RequestPriority.NULL)
return null;
if (code == RequestPriority.ROUTINE)
return "routine";
if (code == RequestPriority.URGENT)
return "urgent";
@ -215,7 +217,7 @@ public class PlanDefinition extends MetadataResource {
if (code == RequestPriority.STAT)
return "stat";
return "?";
}
}
public String toSystem(RequestPriority code) {
return code.getSystem();
@ -348,14 +350,16 @@ public class PlanDefinition extends MetadataResource {
}
public String toCode(ActionConditionKind code) {
if (code == ActionConditionKind.APPLICABILITY)
if (code == ActionConditionKind.NULL)
return null;
if (code == ActionConditionKind.APPLICABILITY)
return "applicability";
if (code == ActionConditionKind.START)
return "start";
if (code == ActionConditionKind.STOP)
return "stop";
return "?";
}
}
public String toSystem(ActionConditionKind code) {
return code.getSystem();
@ -596,7 +600,9 @@ public class PlanDefinition extends MetadataResource {
}
public String toCode(ActionRelationshipType code) {
if (code == ActionRelationshipType.BEFORESTART)
if (code == ActionRelationshipType.NULL)
return null;
if (code == ActionRelationshipType.BEFORESTART)
return "before-start";
if (code == ActionRelationshipType.BEFORE)
return "before";
@ -615,7 +621,7 @@ public class PlanDefinition extends MetadataResource {
if (code == ActionRelationshipType.AFTEREND)
return "after-end";
return "?";
}
}
public String toSystem(ActionRelationshipType code) {
return code.getSystem();
@ -766,7 +772,9 @@ public class PlanDefinition extends MetadataResource {
}
public String toCode(ActionParticipantType code) {
if (code == ActionParticipantType.PATIENT)
if (code == ActionParticipantType.NULL)
return null;
if (code == ActionParticipantType.PATIENT)
return "patient";
if (code == ActionParticipantType.PRACTITIONER)
return "practitioner";
@ -775,7 +783,7 @@ public class PlanDefinition extends MetadataResource {
if (code == ActionParticipantType.DEVICE)
return "device";
return "?";
}
}
public String toSystem(ActionParticipantType code) {
return code.getSystem();
@ -919,14 +927,16 @@ public class PlanDefinition extends MetadataResource {
}
public String toCode(ActionGroupingBehavior code) {
if (code == ActionGroupingBehavior.VISUALGROUP)
if (code == ActionGroupingBehavior.NULL)
return null;
if (code == ActionGroupingBehavior.VISUALGROUP)
return "visual-group";
if (code == ActionGroupingBehavior.LOGICALGROUP)
return "logical-group";
if (code == ActionGroupingBehavior.SENTENCEGROUP)
return "sentence-group";
return "?";
}
}
public String toSystem(ActionGroupingBehavior code) {
return code.getSystem();
@ -1115,7 +1125,9 @@ public class PlanDefinition extends MetadataResource {
}
public String toCode(ActionSelectionBehavior code) {
if (code == ActionSelectionBehavior.ANY)
if (code == ActionSelectionBehavior.NULL)
return null;
if (code == ActionSelectionBehavior.ANY)
return "any";
if (code == ActionSelectionBehavior.ALL)
return "all";
@ -1128,7 +1140,7 @@ public class PlanDefinition extends MetadataResource {
if (code == ActionSelectionBehavior.ONEORMORE)
return "one-or-more";
return "?";
}
}
public String toSystem(ActionSelectionBehavior code) {
return code.getSystem();
@ -1265,14 +1277,16 @@ public class PlanDefinition extends MetadataResource {
}
public String toCode(ActionRequiredBehavior code) {
if (code == ActionRequiredBehavior.MUST)
if (code == ActionRequiredBehavior.NULL)
return null;
if (code == ActionRequiredBehavior.MUST)
return "must";
if (code == ActionRequiredBehavior.COULD)
return "could";
if (code == ActionRequiredBehavior.MUSTUNLESSDOCUMENTED)
return "must-unless-documented";
return "?";
}
}
public String toSystem(ActionRequiredBehavior code) {
return code.getSystem();
@ -1393,12 +1407,14 @@ public class PlanDefinition extends MetadataResource {
}
public String toCode(ActionPrecheckBehavior code) {
if (code == ActionPrecheckBehavior.YES)
if (code == ActionPrecheckBehavior.NULL)
return null;
if (code == ActionPrecheckBehavior.YES)
return "yes";
if (code == ActionPrecheckBehavior.NO)
return "no";
return "?";
}
}
public String toSystem(ActionPrecheckBehavior code) {
return code.getSystem();
@ -1513,12 +1529,14 @@ public class PlanDefinition extends MetadataResource {
}
public String toCode(ActionCardinalityBehavior code) {
if (code == ActionCardinalityBehavior.SINGLE)
if (code == ActionCardinalityBehavior.NULL)
return null;
if (code == ActionCardinalityBehavior.SINGLE)
return "single";
if (code == ActionCardinalityBehavior.MULTIPLE)
return "multiple";
return "?";
}
}
public String toSystem(ActionCardinalityBehavior code) {
return code.getSystem();
@ -2012,9 +2030,9 @@ public class PlanDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("category")) {
this.category = null;
@ -2457,9 +2475,9 @@ public class PlanDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("measure")) {
this.measure = null;
@ -4847,9 +4865,9 @@ public class PlanDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("prefix")) {
this.prefix = null;
@ -5451,9 +5469,9 @@ public class PlanDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("kind")) {
this.kind = null;
@ -5835,9 +5853,9 @@ public class PlanDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("actionId")) {
this.actionId = null;
@ -6114,9 +6132,9 @@ public class PlanDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -6416,9 +6434,9 @@ public class PlanDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("path")) {
this.path = null;
@ -8960,9 +8978,9 @@ public class PlanDefinition extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("url")) {
this.url = null;

View File

@ -248,7 +248,9 @@ public class PractitionerRole extends DomainResource {
}
public String toCode(DaysOfWeek code) {
if (code == DaysOfWeek.MON)
if (code == DaysOfWeek.NULL)
return null;
if (code == DaysOfWeek.MON)
return "mon";
if (code == DaysOfWeek.TUE)
return "tue";
@ -263,7 +265,7 @@ public class PractitionerRole extends DomainResource {
if (code == DaysOfWeek.SUN)
return "sun";
return "?";
}
}
public String toSystem(DaysOfWeek code) {
return code.getSystem();
@ -644,9 +646,9 @@ public class PractitionerRole extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("daysOfWeek")) {
this.getDaysOfWeek().remove((Enumeration) value);
@ -938,9 +940,9 @@ public class PractitionerRole extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("description")) {
this.description = null;
@ -2221,9 +2223,9 @@ public class PractitionerRole extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -278,7 +278,9 @@ public class Procedure extends DomainResource {
}
public String toCode(ProcedureStatus code) {
if (code == ProcedureStatus.PREPARATION)
if (code == ProcedureStatus.NULL)
return null;
if (code == ProcedureStatus.PREPARATION)
return "preparation";
if (code == ProcedureStatus.INPROGRESS)
return "in-progress";
@ -295,7 +297,7 @@ public class Procedure extends DomainResource {
if (code == ProcedureStatus.UNKNOWN)
return "unknown";
return "?";
}
}
public String toSystem(ProcedureStatus code) {
return code.getSystem();
@ -561,9 +563,9 @@ public class Procedure extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("function")) {
this.function = null;
@ -846,9 +848,9 @@ public class Procedure extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("action")) {
this.action = null;
@ -3301,9 +3303,9 @@ public class Procedure extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.getIdentifier().remove(castToIdentifier(value));

View File

@ -227,7 +227,9 @@ public class Provenance extends DomainResource {
}
public String toCode(ProvenanceEntityRole code) {
if (code == ProvenanceEntityRole.DERIVATION)
if (code == ProvenanceEntityRole.NULL)
return null;
if (code == ProvenanceEntityRole.DERIVATION)
return "derivation";
if (code == ProvenanceEntityRole.REVISION)
return "revision";
@ -238,7 +240,7 @@ public class Provenance extends DomainResource {
if (code == ProvenanceEntityRole.REMOVAL)
return "removal";
return "?";
}
}
public String toSystem(ProvenanceEntityRole code) {
return code.getSystem();
@ -577,9 +579,9 @@ public class Provenance extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("type")) {
this.type = null;
@ -980,9 +982,9 @@ public class Provenance extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("role")) {
this.role = null;
@ -1920,9 +1922,9 @@ public class Provenance extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("target")) {
this.getTarget().remove(castToReference(value));

View File

@ -194,7 +194,9 @@ public class Quantity extends Type implements ICompositeType, ICoding {
}
public String toCode(QuantityComparator code) {
if (code == QuantityComparator.LESS_THAN)
if (code == QuantityComparator.NULL)
return null;
if (code == QuantityComparator.LESS_THAN)
return "<";
if (code == QuantityComparator.LESS_OR_EQUAL)
return "<=";
@ -203,7 +205,7 @@ public class Quantity extends Type implements ICompositeType, ICoding {
if (code == QuantityComparator.GREATER_THAN)
return ">";
return "?";
}
}
public String toSystem(QuantityComparator code) {
return code.getSystem();
@ -726,9 +728,9 @@ public class Quantity extends Type implements ICompositeType, ICoding {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("value")) {
this.value = null;

View File

@ -451,7 +451,9 @@ public class Questionnaire extends MetadataResource {
}
public String toCode(QuestionnaireItemType code) {
if (code == QuestionnaireItemType.GROUP)
if (code == QuestionnaireItemType.NULL)
return null;
if (code == QuestionnaireItemType.GROUP)
return "group";
if (code == QuestionnaireItemType.DISPLAY)
return "display";
@ -486,7 +488,7 @@ public class Questionnaire extends MetadataResource {
if (code == QuestionnaireItemType.QUANTITY)
return "quantity";
return "?";
}
}
public String toSystem(QuestionnaireItemType code) {
return code.getSystem();
@ -698,7 +700,9 @@ public class Questionnaire extends MetadataResource {
}
public String toCode(QuestionnaireItemOperator code) {
if (code == QuestionnaireItemOperator.EXISTS)
if (code == QuestionnaireItemOperator.NULL)
return null;
if (code == QuestionnaireItemOperator.EXISTS)
return "exists";
if (code == QuestionnaireItemOperator.EQUAL)
return "=";
@ -713,7 +717,7 @@ public class Questionnaire extends MetadataResource {
if (code == QuestionnaireItemOperator.LESS_OR_EQUAL)
return "<=";
return "?";
}
}
public String toSystem(QuestionnaireItemOperator code) {
return code.getSystem();
@ -828,12 +832,14 @@ public class Questionnaire extends MetadataResource {
}
public String toCode(EnableWhenBehavior code) {
if (code == EnableWhenBehavior.ALL)
if (code == EnableWhenBehavior.NULL)
return null;
if (code == EnableWhenBehavior.ALL)
return "all";
if (code == EnableWhenBehavior.ANY)
return "any";
return "?";
}
}
public String toSystem(EnableWhenBehavior code) {
return code.getSystem();
@ -2228,9 +2234,9 @@ public class Questionnaire extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("linkId")) {
this.linkId = null;
@ -2970,9 +2976,9 @@ public class Questionnaire extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("question")) {
this.question = null;
@ -3402,9 +3408,9 @@ public class Questionnaire extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("value[x]")) {
this.value = null;
@ -3860,9 +3866,9 @@ public class Questionnaire extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("value[x]")) {
this.value = null;
@ -5730,9 +5736,9 @@ public class Questionnaire extends MetadataResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("url")) {
this.url = null;

View File

@ -219,7 +219,9 @@ public class QuestionnaireResponse extends DomainResource {
}
public String toCode(QuestionnaireResponseStatus code) {
if (code == QuestionnaireResponseStatus.INPROGRESS)
if (code == QuestionnaireResponseStatus.NULL)
return null;
if (code == QuestionnaireResponseStatus.INPROGRESS)
return "in-progress";
if (code == QuestionnaireResponseStatus.COMPLETED)
return "completed";
@ -230,7 +232,7 @@ public class QuestionnaireResponse extends DomainResource {
if (code == QuestionnaireResponseStatus.STOPPED)
return "stopped";
return "?";
}
}
public String toSystem(QuestionnaireResponseStatus code) {
return code.getSystem();
@ -673,9 +675,9 @@ public class QuestionnaireResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("linkId")) {
this.linkId = null;
@ -1235,9 +1237,9 @@ public class QuestionnaireResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("value[x]")) {
this.value = null;
@ -2300,9 +2302,9 @@ public class QuestionnaireResponse extends DomainResource {
} else
return super.setProperty(name, value);
return value;
}
@Override
}
@Override
public void removeChild(String name, Base value) throws FHIRException {
if (name.equals("identifier")) {
this.identifier = null;

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