use of org.hl7.fhir.dstu3.model.Enumerations.PublicationStatusEnumFactory in project org.hl7.fhir.core by hapifhir.
the class SearchParameter method setProperty.
@Override
public Base setProperty(String name, Base value) throws FHIRException {
if (name.equals("url")) {
// UriType
this.url = castToUri(value);
} else if (name.equals("version")) {
// StringType
this.version = castToString(value);
} else if (name.equals("name")) {
// StringType
this.name = castToString(value);
} else if (name.equals("status")) {
value = new PublicationStatusEnumFactory().fromType(castToCode(value));
// Enumeration<PublicationStatus>
this.status = (Enumeration) value;
} else if (name.equals("experimental")) {
// BooleanType
this.experimental = castToBoolean(value);
} else if (name.equals("date")) {
// DateTimeType
this.date = castToDateTime(value);
} else if (name.equals("publisher")) {
// StringType
this.publisher = castToString(value);
} else if (name.equals("contact")) {
this.getContact().add(castToContactDetail(value));
} else if (name.equals("useContext")) {
this.getUseContext().add(castToUsageContext(value));
} else if (name.equals("jurisdiction")) {
this.getJurisdiction().add(castToCodeableConcept(value));
} else if (name.equals("purpose")) {
// MarkdownType
this.purpose = castToMarkdown(value);
} else if (name.equals("code")) {
// CodeType
this.code = castToCode(value);
} else if (name.equals("base")) {
this.getBase().add(castToCode(value));
} else if (name.equals("type")) {
value = new SearchParamTypeEnumFactory().fromType(castToCode(value));
// Enumeration<SearchParamType>
this.type = (Enumeration) value;
} else if (name.equals("derivedFrom")) {
// UriType
this.derivedFrom = castToUri(value);
} else if (name.equals("description")) {
// MarkdownType
this.description = castToMarkdown(value);
} else if (name.equals("expression")) {
// StringType
this.expression = castToString(value);
} else if (name.equals("xpath")) {
// StringType
this.xpath = castToString(value);
} else if (name.equals("xpathUsage")) {
value = new XPathUsageTypeEnumFactory().fromType(castToCode(value));
// Enumeration<XPathUsageType>
this.xpathUsage = (Enumeration) value;
} else if (name.equals("target")) {
this.getTarget().add(castToCode(value));
} else if (name.equals("comparator")) {
value = new SearchComparatorEnumFactory().fromType(castToCode(value));
this.getComparator().add((Enumeration) value);
} else if (name.equals("modifier")) {
value = new SearchModifierCodeEnumFactory().fromType(castToCode(value));
this.getModifier().add((Enumeration) value);
} else if (name.equals("chain")) {
this.getChain().add(castToString(value));
} else if (name.equals("component")) {
this.getComponent().add((SearchParameterComponentComponent) value);
} else
return super.setProperty(name, value);
return value;
}
use of org.hl7.fhir.dstu3.model.Enumerations.PublicationStatusEnumFactory in project org.hl7.fhir.core by hapifhir.
the class NamingSystem method setProperty.
@Override
public Base setProperty(String name, Base value) throws FHIRException {
if (name.equals("name")) {
// StringType
this.name = castToString(value);
} else if (name.equals("status")) {
value = new PublicationStatusEnumFactory().fromType(castToCode(value));
// Enumeration<PublicationStatus>
this.status = (Enumeration) value;
} else if (name.equals("kind")) {
value = new NamingSystemTypeEnumFactory().fromType(castToCode(value));
// Enumeration<NamingSystemType>
this.kind = (Enumeration) value;
} else if (name.equals("date")) {
// DateTimeType
this.date = castToDateTime(value);
} else if (name.equals("publisher")) {
// StringType
this.publisher = castToString(value);
} else if (name.equals("contact")) {
this.getContact().add(castToContactDetail(value));
} else if (name.equals("responsible")) {
// StringType
this.responsible = castToString(value);
} else if (name.equals("type")) {
// CodeableConcept
this.type = castToCodeableConcept(value);
} else if (name.equals("description")) {
// MarkdownType
this.description = castToMarkdown(value);
} else if (name.equals("useContext")) {
this.getUseContext().add(castToUsageContext(value));
} else if (name.equals("jurisdiction")) {
this.getJurisdiction().add(castToCodeableConcept(value));
} else if (name.equals("usage")) {
// StringType
this.usage = castToString(value);
} else if (name.equals("uniqueId")) {
this.getUniqueId().add((NamingSystemUniqueIdComponent) value);
} else if (name.equals("replacedBy")) {
// Reference
this.replacedBy = castToReference(value);
} else
return super.setProperty(name, value);
return value;
}
use of org.hl7.fhir.dstu3.model.Enumerations.PublicationStatusEnumFactory in project org.hl7.fhir.core by hapifhir.
the class OperationDefinition method setProperty.
@Override
public Base setProperty(String name, Base value) throws FHIRException {
if (name.equals("url")) {
// UriType
this.url = castToUri(value);
} else if (name.equals("version")) {
// StringType
this.version = castToString(value);
} else if (name.equals("name")) {
// StringType
this.name = castToString(value);
} else if (name.equals("status")) {
value = new PublicationStatusEnumFactory().fromType(castToCode(value));
// Enumeration<PublicationStatus>
this.status = (Enumeration) value;
} else if (name.equals("kind")) {
value = new OperationKindEnumFactory().fromType(castToCode(value));
// Enumeration<OperationKind>
this.kind = (Enumeration) value;
} else if (name.equals("experimental")) {
// BooleanType
this.experimental = castToBoolean(value);
} else if (name.equals("date")) {
// DateTimeType
this.date = castToDateTime(value);
} else if (name.equals("publisher")) {
// StringType
this.publisher = castToString(value);
} else if (name.equals("contact")) {
this.getContact().add(castToContactDetail(value));
} else if (name.equals("description")) {
// MarkdownType
this.description = castToMarkdown(value);
} else if (name.equals("useContext")) {
this.getUseContext().add(castToUsageContext(value));
} else if (name.equals("jurisdiction")) {
this.getJurisdiction().add(castToCodeableConcept(value));
} else if (name.equals("purpose")) {
// MarkdownType
this.purpose = castToMarkdown(value);
} else if (name.equals("idempotent")) {
// BooleanType
this.idempotent = castToBoolean(value);
} else if (name.equals("code")) {
// CodeType
this.code = castToCode(value);
} else if (name.equals("comment")) {
// StringType
this.comment = castToString(value);
} else if (name.equals("base")) {
// Reference
this.base = castToReference(value);
} else if (name.equals("resource")) {
this.getResource().add(castToCode(value));
} else if (name.equals("system")) {
// BooleanType
this.system = castToBoolean(value);
} else if (name.equals("type")) {
// BooleanType
this.type = castToBoolean(value);
} else if (name.equals("instance")) {
// BooleanType
this.instance = castToBoolean(value);
} else if (name.equals("parameter")) {
this.getParameter().add((OperationDefinitionParameterComponent) value);
} else if (name.equals("overload")) {
this.getOverload().add((OperationDefinitionOverloadComponent) value);
} else
return super.setProperty(name, value);
return value;
}
use of org.hl7.fhir.dstu3.model.Enumerations.PublicationStatusEnumFactory in project org.hl7.fhir.core by hapifhir.
the class StructureDefinition method setProperty.
@Override
public Base setProperty(String name, Base value) throws FHIRException {
if (name.equals("url")) {
// UriType
this.url = castToUri(value);
} else if (name.equals("identifier")) {
this.getIdentifier().add(castToIdentifier(value));
} else if (name.equals("version")) {
// StringType
this.version = castToString(value);
} else if (name.equals("name")) {
// StringType
this.name = castToString(value);
} else if (name.equals("title")) {
// StringType
this.title = castToString(value);
} else if (name.equals("status")) {
value = new PublicationStatusEnumFactory().fromType(castToCode(value));
// Enumeration<PublicationStatus>
this.status = (Enumeration) value;
} else if (name.equals("experimental")) {
// BooleanType
this.experimental = castToBoolean(value);
} else if (name.equals("date")) {
// DateTimeType
this.date = castToDateTime(value);
} else if (name.equals("publisher")) {
// StringType
this.publisher = castToString(value);
} else if (name.equals("contact")) {
this.getContact().add(castToContactDetail(value));
} else if (name.equals("description")) {
// MarkdownType
this.description = castToMarkdown(value);
} else if (name.equals("useContext")) {
this.getUseContext().add(castToUsageContext(value));
} else if (name.equals("jurisdiction")) {
this.getJurisdiction().add(castToCodeableConcept(value));
} else if (name.equals("purpose")) {
// MarkdownType
this.purpose = castToMarkdown(value);
} else if (name.equals("copyright")) {
// MarkdownType
this.copyright = castToMarkdown(value);
} else if (name.equals("keyword")) {
this.getKeyword().add(castToCoding(value));
} else if (name.equals("fhirVersion")) {
// IdType
this.fhirVersion = castToId(value);
} else if (name.equals("mapping")) {
this.getMapping().add((StructureDefinitionMappingComponent) value);
} else if (name.equals("kind")) {
value = new StructureDefinitionKindEnumFactory().fromType(castToCode(value));
// Enumeration<StructureDefinitionKind>
this.kind = (Enumeration) value;
} else if (name.equals("abstract")) {
// BooleanType
this.abstract_ = castToBoolean(value);
} else if (name.equals("contextType")) {
value = new ExtensionContextEnumFactory().fromType(castToCode(value));
// Enumeration<ExtensionContext>
this.contextType = (Enumeration) value;
} else if (name.equals("context")) {
this.getContext().add(castToString(value));
} else if (name.equals("contextInvariant")) {
this.getContextInvariant().add(castToString(value));
} else if (name.equals("type")) {
// CodeType
this.type = castToCode(value);
} else if (name.equals("baseDefinition")) {
// UriType
this.baseDefinition = castToUri(value);
} else if (name.equals("derivation")) {
value = new TypeDerivationRuleEnumFactory().fromType(castToCode(value));
// Enumeration<TypeDerivationRule>
this.derivation = (Enumeration) value;
} else if (name.equals("snapshot")) {
// StructureDefinitionSnapshotComponent
this.snapshot = (StructureDefinitionSnapshotComponent) value;
} else if (name.equals("differential")) {
// StructureDefinitionDifferentialComponent
this.differential = (StructureDefinitionDifferentialComponent) value;
} else
return super.setProperty(name, value);
return value;
}
use of org.hl7.fhir.dstu3.model.Enumerations.PublicationStatusEnumFactory in project org.hl7.fhir.core by hapifhir.
the class CompartmentDefinition method setProperty.
@Override
public Base setProperty(String name, Base value) throws FHIRException {
if (name.equals("url")) {
// UriType
this.url = castToUri(value);
} else if (name.equals("name")) {
// StringType
this.name = castToString(value);
} else if (name.equals("title")) {
// StringType
this.title = castToString(value);
} else if (name.equals("status")) {
value = new PublicationStatusEnumFactory().fromType(castToCode(value));
// Enumeration<PublicationStatus>
this.status = (Enumeration) value;
} else if (name.equals("experimental")) {
// BooleanType
this.experimental = castToBoolean(value);
} else if (name.equals("date")) {
// DateTimeType
this.date = castToDateTime(value);
} else if (name.equals("publisher")) {
// StringType
this.publisher = castToString(value);
} else if (name.equals("contact")) {
this.getContact().add(castToContactDetail(value));
} else if (name.equals("description")) {
// MarkdownType
this.description = castToMarkdown(value);
} else if (name.equals("purpose")) {
// MarkdownType
this.purpose = castToMarkdown(value);
} else if (name.equals("useContext")) {
this.getUseContext().add(castToUsageContext(value));
} else if (name.equals("jurisdiction")) {
this.getJurisdiction().add(castToCodeableConcept(value));
} else if (name.equals("code")) {
value = new CompartmentTypeEnumFactory().fromType(castToCode(value));
// Enumeration<CompartmentType>
this.code = (Enumeration) value;
} else if (name.equals("search")) {
// BooleanType
this.search = castToBoolean(value);
} else if (name.equals("resource")) {
this.getResource().add((CompartmentDefinitionResourceComponent) value);
} else
return super.setProperty(name, value);
return value;
}
Aggregations