Merge pull request #1165 from hapifhir/gg-202303-spec-cs

Gg 202303 spec cs
This commit is contained in:
Grahame Grieve 2023-03-10 22:27:13 +11:00 committed by GitHub
commit ef3f6b2d60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
137 changed files with 1264 additions and 1112 deletions

View File

@ -14,4 +14,15 @@
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<filteredResources>
<filter>
<id>1678393641927</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>

View File

@ -2136,7 +2136,7 @@ private void generatePropertyMaker(Analysis analysis, TypeInfo ti, String indent
write(getTypename(t));
}
write("))\r\n");
write(indent+" throw new Error(\"Not the right type for "+e.getPath()+": \"+value.fhirType());\r\n");
write(indent+" throw new FHIRException(\"Not the right type for "+e.getPath()+": \"+value.fhirType());\r\n");
}
write(indent+" this."+getElementName(e.getName(), true)+" = value;\r\n");
write(indent+" return this;\r\n");

View File

@ -13,7 +13,7 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/resources">
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
<attributes>
<attribute name="test" value="true"/>
<attribute name="maven.pomderived" value="true"/>
@ -21,7 +21,6 @@
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
<attributes>
<attribute name="module" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>

View File

@ -827,21 +827,26 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte
// ok, first we try to expand locally
ValueSetExpanderSimple vse = constructValueSetExpanderSimple();
res = null;
try {
res = vse.expand(vs, p);
allErrors.addAll(vse.getAllErrors());
if (res.getValueset() != null) {
if (!res.getValueset().hasUrl()) {
throw new Error(formatMessage(I18nConstants.NO_URL_IN_EXPAND_VALUE_SET));
}
txCache.cacheExpansion(cacheToken, res, TerminologyCache.TRANSIENT);
return res;
}
} catch (Exception e) {
allErrors.addAll(vse.getAllErrors());
e.printStackTrace();
res = new ValueSetExpansionOutcome(e.getMessage(), TerminologyServiceErrorClass.UNKNOWN);
}
allErrors.addAll(vse.getAllErrors());
if (res.getValueset() != null) {
if (!res.getValueset().hasUrl()) {
throw new Error(formatMessage(I18nConstants.NO_URL_IN_EXPAND_VALUE_SET));
}
txCache.cacheExpansion(cacheToken, res, TerminologyCache.TRANSIENT);
return res;
}
if (res.getErrorClass() == TerminologyServiceErrorClass.INTERNAL_ERROR) { // this class is created specifically to say: don't consult the server
return new ValueSetExpansionOutcome(res.getError(), res.getErrorClass());
}
// if that failed, we try to expand on the server
if (addDependentResources(p, vs)) {
p.addParameter().setName("cache-id").setValue(new StringType(cacheId));

View File

@ -83,6 +83,9 @@ public class FmlParser extends ParserBase {
if (!result.hasChild("status")) {
result.makeElement("status").setValue("draft");
}
if (!result.hasChild("description") && result.hasChild("title")) {
result.makeElement("description").setValue(result.getChildValue("title"));
}
while (lexer.hasToken("conceptmap"))
parseConceptMap(result, lexer);

View File

@ -1582,7 +1582,7 @@ public class ActivityDefinition extends MetadataResource {
*/
public ActivityDefinition setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for ActivityDefinition.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ActivityDefinition.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}
@ -1885,7 +1885,7 @@ public class ActivityDefinition extends MetadataResource {
*/
public ActivityDefinition setSubject(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Reference || value instanceof CanonicalType))
throw new Error("Not the right type for ActivityDefinition.subject[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ActivityDefinition.subject[x]: "+value.fhirType());
this.subject = value;
return this;
}
@ -3234,7 +3234,7 @@ public class ActivityDefinition extends MetadataResource {
*/
public ActivityDefinition setTiming(DataType value) {
if (value != null && !(value instanceof Timing || value instanceof Age || value instanceof Range || value instanceof Duration))
throw new Error("Not the right type for ActivityDefinition.timing[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ActivityDefinition.timing[x]: "+value.fhirType());
this.timing = value;
return this;
}
@ -3285,7 +3285,7 @@ public class ActivityDefinition extends MetadataResource {
*/
public ActivityDefinition setAsNeeded(DataType value) {
if (value != null && !(value instanceof BooleanType || value instanceof CodeableConcept))
throw new Error("Not the right type for ActivityDefinition.asNeeded[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ActivityDefinition.asNeeded[x]: "+value.fhirType());
this.asNeeded = value;
return this;
}
@ -3413,7 +3413,7 @@ public class ActivityDefinition extends MetadataResource {
*/
public ActivityDefinition setProduct(DataType value) {
if (value != null && !(value instanceof Reference || value instanceof CodeableConcept))
throw new Error("Not the right type for ActivityDefinition.product[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ActivityDefinition.product[x]: "+value.fhirType());
this.product = value;
return this;
}

View File

@ -426,7 +426,7 @@ public class ActorDefinition extends CanonicalResource {
*/
public ActorDefinition setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for ActorDefinition.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ActorDefinition.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}

View File

@ -240,7 +240,7 @@ public class AdministrableProductDefinition extends DomainResource {
*/
public AdministrableProductDefinitionPropertyComponent setValue(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Quantity || value instanceof DateType || value instanceof BooleanType || value instanceof MarkdownType || value instanceof Attachment || value instanceof Reference))
throw new Error("Not the right type for AdministrableProductDefinition.property.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for AdministrableProductDefinition.property.value[x]: "+value.fhirType());
this.value = value;
return this;
}

View File

@ -566,7 +566,7 @@ public class AdverseEvent extends DomainResource {
*/
public AdverseEventSuspectEntityComponent setInstance(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Reference))
throw new Error("Not the right type for AdverseEvent.suspectEntity.instance[x]: "+value.fhirType());
throw new FHIRException("Not the right type for AdverseEvent.suspectEntity.instance[x]: "+value.fhirType());
this.instance = value;
return this;
}
@ -1055,7 +1055,7 @@ public class AdverseEvent extends DomainResource {
*/
public AdverseEventContributingFactorComponent setItem(DataType value) {
if (value != null && !(value instanceof Reference || value instanceof CodeableConcept))
throw new Error("Not the right type for AdverseEvent.contributingFactor.item[x]: "+value.fhirType());
throw new FHIRException("Not the right type for AdverseEvent.contributingFactor.item[x]: "+value.fhirType());
this.item = value;
return this;
}
@ -1254,7 +1254,7 @@ public class AdverseEvent extends DomainResource {
*/
public AdverseEventPreventiveActionComponent setItem(DataType value) {
if (value != null && !(value instanceof Reference || value instanceof CodeableConcept))
throw new Error("Not the right type for AdverseEvent.preventiveAction.item[x]: "+value.fhirType());
throw new FHIRException("Not the right type for AdverseEvent.preventiveAction.item[x]: "+value.fhirType());
this.item = value;
return this;
}
@ -1453,7 +1453,7 @@ public class AdverseEvent extends DomainResource {
*/
public AdverseEventMitigatingActionComponent setItem(DataType value) {
if (value != null && !(value instanceof Reference || value instanceof CodeableConcept))
throw new Error("Not the right type for AdverseEvent.mitigatingAction.item[x]: "+value.fhirType());
throw new FHIRException("Not the right type for AdverseEvent.mitigatingAction.item[x]: "+value.fhirType());
this.item = value;
return this;
}
@ -1652,7 +1652,7 @@ public class AdverseEvent extends DomainResource {
*/
public AdverseEventSupportingInfoComponent setItem(DataType value) {
if (value != null && !(value instanceof Reference || value instanceof CodeableConcept))
throw new Error("Not the right type for AdverseEvent.supportingInfo.item[x]: "+value.fhirType());
throw new FHIRException("Not the right type for AdverseEvent.supportingInfo.item[x]: "+value.fhirType());
this.item = value;
return this;
}
@ -2300,7 +2300,7 @@ public class AdverseEvent extends DomainResource {
*/
public AdverseEvent setOccurrence(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Period || value instanceof Timing))
throw new Error("Not the right type for AdverseEvent.occurrence[x]: "+value.fhirType());
throw new FHIRException("Not the right type for AdverseEvent.occurrence[x]: "+value.fhirType());
this.occurrence = value;
return this;
}

View File

@ -1726,7 +1726,7 @@ public class AllergyIntolerance extends DomainResource {
*/
public AllergyIntolerance setOnset(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Age || value instanceof Period || value instanceof Range || value instanceof StringType))
throw new Error("Not the right type for AllergyIntolerance.onset[x]: "+value.fhirType());
throw new FHIRException("Not the right type for AllergyIntolerance.onset[x]: "+value.fhirType());
this.onset = value;
return this;
}

View File

@ -134,7 +134,7 @@ public class Annotation extends DataType implements ICompositeType {
*/
public Annotation setAuthor(DataType value) {
if (value != null && !(value instanceof Reference || value instanceof StringType))
throw new Error("Not the right type for Annotation.author[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Annotation.author[x]: "+value.fhirType());
this.author = value;
return this;
}

View File

@ -1593,7 +1593,7 @@ public class ArtifactAssessment extends DomainResource {
*/
public ArtifactAssessment setCiteAs(DataType value) {
if (value != null && !(value instanceof Reference || value instanceof MarkdownType))
throw new Error("Not the right type for ArtifactAssessment.citeAs[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ArtifactAssessment.citeAs[x]: "+value.fhirType());
this.citeAs = value;
return this;
}
@ -1855,7 +1855,7 @@ public class ArtifactAssessment extends DomainResource {
*/
public ArtifactAssessment setArtifact(DataType value) {
if (value != null && !(value instanceof Reference || value instanceof CanonicalType || value instanceof UriType))
throw new Error("Not the right type for ArtifactAssessment.artifact[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ArtifactAssessment.artifact[x]: "+value.fhirType());
this.artifact = value;
return this;
}

View File

@ -1002,7 +1002,7 @@ public class AuditEvent extends DomainResource {
*/
public AuditEventAgentComponent setNetwork(DataType value) {
if (value != null && !(value instanceof Reference || value instanceof UriType || value instanceof StringType))
throw new Error("Not the right type for AuditEvent.agent.network[x]: "+value.fhirType());
throw new FHIRException("Not the right type for AuditEvent.agent.network[x]: "+value.fhirType());
this.network = value;
return this;
}
@ -2341,7 +2341,7 @@ public class AuditEvent extends DomainResource {
*/
public AuditEventEntityDetailComponent setValue(DataType value) {
if (value != null && !(value instanceof Quantity || value instanceof CodeableConcept || value instanceof StringType || value instanceof BooleanType || value instanceof IntegerType || value instanceof Range || value instanceof Ratio || value instanceof TimeType || value instanceof DateTimeType || value instanceof Period || value instanceof Base64BinaryType))
throw new Error("Not the right type for AuditEvent.entity.detail.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for AuditEvent.entity.detail.value[x]: "+value.fhirType());
this.value = value;
return this;
}
@ -2871,7 +2871,7 @@ public class AuditEvent extends DomainResource {
*/
public AuditEvent setOccurred(DataType value) {
if (value != null && !(value instanceof Period || value instanceof DateTimeType))
throw new Error("Not the right type for AuditEvent.occurred[x]: "+value.fhirType());
throw new FHIRException("Not the right type for AuditEvent.occurred[x]: "+value.fhirType());
this.occurred = value;
return this;
}

View File

@ -179,7 +179,7 @@ public class BiologicallyDerivedProduct extends DomainResource {
*/
public BiologicallyDerivedProductCollectionComponent setCollected(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Period))
throw new Error("Not the right type for BiologicallyDerivedProduct.collection.collected[x]: "+value.fhirType());
throw new FHIRException("Not the right type for BiologicallyDerivedProduct.collection.collected[x]: "+value.fhirType());
this.collected = value;
return this;
}
@ -547,7 +547,7 @@ public class BiologicallyDerivedProduct extends DomainResource {
*/
public BiologicallyDerivedProductPropertyComponent setValue(DataType value) {
if (value != null && !(value instanceof BooleanType || value instanceof IntegerType || value instanceof CodeableConcept || value instanceof Period || value instanceof Quantity || value instanceof Range || value instanceof Ratio || value instanceof StringType || value instanceof Attachment))
throw new Error("Not the right type for BiologicallyDerivedProduct.property.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for BiologicallyDerivedProduct.property.value[x]: "+value.fhirType());
this.value = value;
return this;
}

View File

@ -7185,7 +7185,7 @@ public class CapabilityStatement extends CanonicalResource implements IBaseConfo
*/
public CapabilityStatement setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for CapabilityStatement.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for CapabilityStatement.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}

View File

@ -355,7 +355,7 @@ public class CareTeam extends DomainResource {
*/
public CareTeamParticipantComponent setCoverage(DataType value) {
if (value != null && !(value instanceof Period || value instanceof Timing))
throw new Error("Not the right type for CareTeam.participant.coverage[x]: "+value.fhirType());
throw new FHIRException("Not the right type for CareTeam.participant.coverage[x]: "+value.fhirType());
this.coverage = value;
return this;
}

View File

@ -1051,7 +1051,7 @@ public class ChargeItem extends DomainResource {
*/
public ChargeItem setOccurrence(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Period || value instanceof Timing))
throw new Error("Not the right type for ChargeItem.occurrence[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ChargeItem.occurrence[x]: "+value.fhirType());
this.occurrence = value;
return this;
}

View File

@ -969,7 +969,7 @@ public class ChargeItemDefinition extends MetadataResource {
*/
public ChargeItemDefinition setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for ChargeItemDefinition.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ChargeItemDefinition.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}

View File

@ -8848,7 +8848,7 @@ public class Citation extends MetadataResource {
*/
public Citation setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for Citation.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Citation.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}

View File

@ -619,7 +619,7 @@ public class Claim extends DomainResource {
*/
public ClaimEventComponent setWhen(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Period))
throw new Error("Not the right type for Claim.event.when[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Claim.event.when[x]: "+value.fhirType());
this.when = value;
return this;
}
@ -1357,7 +1357,7 @@ public class Claim extends DomainResource {
*/
public SupportingInformationComponent setTiming(DataType value) {
if (value != null && !(value instanceof DateType || value instanceof Period))
throw new Error("Not the right type for Claim.supportingInfo.timing[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Claim.supportingInfo.timing[x]: "+value.fhirType());
this.timing = value;
return this;
}
@ -1468,7 +1468,7 @@ public class Claim extends DomainResource {
*/
public SupportingInformationComponent setValue(DataType value) {
if (value != null && !(value instanceof BooleanType || value instanceof StringType || value instanceof Quantity || value instanceof Attachment || value instanceof Reference || value instanceof Identifier))
throw new Error("Not the right type for Claim.supportingInfo.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Claim.supportingInfo.value[x]: "+value.fhirType());
this.value = value;
return this;
}
@ -1865,7 +1865,7 @@ public class Claim extends DomainResource {
*/
public DiagnosisComponent setDiagnosis(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Reference))
throw new Error("Not the right type for Claim.diagnosis.diagnosis[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Claim.diagnosis.diagnosis[x]: "+value.fhirType());
this.diagnosis = value;
return this;
}
@ -2367,7 +2367,7 @@ public class Claim extends DomainResource {
*/
public ProcedureComponent setProcedure(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Reference))
throw new Error("Not the right type for Claim.procedure.procedure[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Claim.procedure.procedure[x]: "+value.fhirType());
this.procedure = value;
return this;
}
@ -3318,7 +3318,7 @@ public class Claim extends DomainResource {
*/
public AccidentComponent setLocation(DataType value) {
if (value != null && !(value instanceof Address || value instanceof Reference))
throw new Error("Not the right type for Claim.accident.location[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Claim.accident.location[x]: "+value.fhirType());
this.location = value;
return this;
}
@ -4318,7 +4318,7 @@ public class Claim extends DomainResource {
*/
public ItemComponent setServiced(DataType value) {
if (value != null && !(value instanceof DateType || value instanceof Period))
throw new Error("Not the right type for Claim.item.serviced[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Claim.item.serviced[x]: "+value.fhirType());
this.serviced = value;
return this;
}
@ -4384,7 +4384,7 @@ public class Claim extends DomainResource {
*/
public ItemComponent setLocation(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Address || value instanceof Reference))
throw new Error("Not the right type for Claim.item.location[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Claim.item.location[x]: "+value.fhirType());
this.location = value;
return this;
}

View File

@ -159,7 +159,7 @@ public class ClaimResponse extends DomainResource {
*/
public ClaimResponseEventComponent setWhen(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Period))
throw new Error("Not the right type for ClaimResponse.event.when[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ClaimResponse.event.when[x]: "+value.fhirType());
this.when = value;
return this;
}
@ -3284,7 +3284,7 @@ public class ClaimResponse extends DomainResource {
*/
public AddedItemComponent setServiced(DataType value) {
if (value != null && !(value instanceof DateType || value instanceof Period))
throw new Error("Not the right type for ClaimResponse.addItem.serviced[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ClaimResponse.addItem.serviced[x]: "+value.fhirType());
this.serviced = value;
return this;
}
@ -3350,7 +3350,7 @@ public class ClaimResponse extends DomainResource {
*/
public AddedItemComponent setLocation(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Address || value instanceof Reference))
throw new Error("Not the right type for ClaimResponse.addItem.location[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ClaimResponse.addItem.location[x]: "+value.fhirType());
this.location = value;
return this;
}

View File

@ -699,7 +699,7 @@ public class ClinicalImpression extends DomainResource {
*/
public ClinicalImpression setEffective(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Period))
throw new Error("Not the right type for ClinicalImpression.effective[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ClinicalImpression.effective[x]: "+value.fhirType());
this.effective = value;
return this;
}

View File

@ -1141,7 +1141,7 @@ public class ClinicalUseDefinition extends DomainResource {
*/
public ClinicalUseDefinitionIndicationComponent setDuration(DataType value) {
if (value != null && !(value instanceof Range || value instanceof StringType))
throw new Error("Not the right type for ClinicalUseDefinition.indication.duration[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ClinicalUseDefinition.indication.duration[x]: "+value.fhirType());
this.duration = value;
return this;
}
@ -1999,7 +1999,7 @@ public class ClinicalUseDefinition extends DomainResource {
*/
public ClinicalUseDefinitionInteractionInteractantComponent setItem(DataType value) {
if (value != null && !(value instanceof Reference || value instanceof CodeableConcept))
throw new Error("Not the right type for ClinicalUseDefinition.interaction.interactant.item[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ClinicalUseDefinition.interaction.interactant.item[x]: "+value.fhirType());
this.item = value;
return this;
}

View File

@ -2459,7 +2459,7 @@ public class CodeSystem extends MetadataResource {
*/
public ConceptPropertyComponent setValue(DataType value) {
if (value != null && !(value instanceof CodeType || value instanceof Coding || value instanceof StringType || value instanceof IntegerType || value instanceof BooleanType || value instanceof DateTimeType || value instanceof DecimalType))
throw new Error("Not the right type for CodeSystem.concept.property.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for CodeSystem.concept.property.value[x]: "+value.fhirType());
this.value = value;
return this;
}
@ -3104,7 +3104,7 @@ public class CodeSystem extends MetadataResource {
*/
public CodeSystem setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for CodeSystem.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for CodeSystem.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}

View File

@ -140,7 +140,7 @@ public class Communication extends DomainResource {
*/
public CommunicationPayloadComponent setContent(DataType value) {
if (value != null && !(value instanceof Attachment || value instanceof Reference || value instanceof CodeableConcept))
throw new Error("Not the right type for Communication.payload.content[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Communication.payload.content[x]: "+value.fhirType());
this.content = value;
return this;
}

View File

@ -140,7 +140,7 @@ public class CommunicationRequest extends DomainResource {
*/
public CommunicationRequestPayloadComponent setContent(DataType value) {
if (value != null && !(value instanceof Attachment || value instanceof Reference || value instanceof CodeableConcept))
throw new Error("Not the right type for CommunicationRequest.payload.content[x]: "+value.fhirType());
throw new FHIRException("Not the right type for CommunicationRequest.payload.content[x]: "+value.fhirType());
this.content = value;
return this;
}
@ -1147,7 +1147,7 @@ public class CommunicationRequest extends DomainResource {
*/
public CommunicationRequest setOccurrence(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Period))
throw new Error("Not the right type for CommunicationRequest.occurrence[x]: "+value.fhirType());
throw new FHIRException("Not the right type for CommunicationRequest.occurrence[x]: "+value.fhirType());
this.occurrence = value;
return this;
}

View File

@ -812,7 +812,7 @@ public class CompartmentDefinition extends CanonicalResource {
*/
public CompartmentDefinition setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for CompartmentDefinition.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for CompartmentDefinition.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}

View File

@ -3100,7 +3100,7 @@ public class ConceptMap extends MetadataResource {
*/
public MappingPropertyComponent setValue(DataType value) {
if (value != null && !(value instanceof Coding || value instanceof StringType || value instanceof IntegerType || value instanceof BooleanType || value instanceof DateTimeType || value instanceof DecimalType || value instanceof CodeType))
throw new Error("Not the right type for ConceptMap.group.element.target.property.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ConceptMap.group.element.target.property.value[x]: "+value.fhirType());
this.value = value;
return this;
}
@ -3441,7 +3441,7 @@ public class ConceptMap extends MetadataResource {
*/
public OtherElementComponent setValue(DataType value) {
if (value != null && !(value instanceof CodeType || value instanceof Coding || value instanceof StringType || value instanceof BooleanType || value instanceof Quantity))
throw new Error("Not the right type for ConceptMap.group.element.target.dependsOn.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ConceptMap.group.element.target.dependsOn.value[x]: "+value.fhirType());
this.value = value;
return this;
}
@ -4640,7 +4640,7 @@ public class ConceptMap extends MetadataResource {
*/
public ConceptMap setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for ConceptMap.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ConceptMap.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}
@ -5878,7 +5878,7 @@ public class ConceptMap extends MetadataResource {
*/
public ConceptMap setSourceScope(DataType value) {
if (value != null && !(value instanceof UriType || value instanceof CanonicalType))
throw new Error("Not the right type for ConceptMap.sourceScope[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ConceptMap.sourceScope[x]: "+value.fhirType());
this.sourceScope = value;
return this;
}
@ -5929,7 +5929,7 @@ public class ConceptMap extends MetadataResource {
*/
public ConceptMap setTargetScope(DataType value) {
if (value != null && !(value instanceof UriType || value instanceof CanonicalType))
throw new Error("Not the right type for ConceptMap.targetScope[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ConceptMap.targetScope[x]: "+value.fhirType());
this.targetScope = value;
return this;
}

View File

@ -1076,7 +1076,7 @@ public class Condition extends DomainResource {
*/
public Condition setOnset(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Age || value instanceof Period || value instanceof Range || value instanceof StringType))
throw new Error("Not the right type for Condition.onset[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Condition.onset[x]: "+value.fhirType());
this.onset = value;
return this;
}
@ -1172,7 +1172,7 @@ public class Condition extends DomainResource {
*/
public Condition setAbatement(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Age || value instanceof Period || value instanceof Range || value instanceof StringType))
throw new Error("Not the right type for Condition.abatement[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Condition.abatement[x]: "+value.fhirType());
this.abatement = value;
return this;
}

View File

@ -825,7 +825,7 @@ public class ConditionDefinition extends MetadataResource {
*/
public ConditionDefinitionPreconditionComponent setValue(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Quantity))
throw new Error("Not the right type for ConditionDefinition.precondition.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ConditionDefinition.precondition.value[x]: "+value.fhirType());
this.value = value;
return this;
}
@ -1850,7 +1850,7 @@ public class ConditionDefinition extends MetadataResource {
*/
public ConditionDefinition setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for ConditionDefinition.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ConditionDefinition.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}

View File

@ -1381,7 +1381,7 @@ public class Contract extends DomainResource {
*/
public TermComponent setTopic(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Reference))
throw new Error("Not the right type for Contract.term.topic[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Contract.term.topic[x]: "+value.fhirType());
this.topic = value;
return this;
}
@ -3704,7 +3704,7 @@ public class Contract extends DomainResource {
*/
public AnswerComponent setValue(DataType value) {
if (value != null && !(value instanceof BooleanType || value instanceof DecimalType || value instanceof IntegerType || value instanceof DateType || value instanceof DateTimeType || value instanceof TimeType || value instanceof StringType || value instanceof UriType || value instanceof Attachment || value instanceof Coding || value instanceof Quantity || value instanceof Reference))
throw new Error("Not the right type for Contract.term.offer.answer.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Contract.term.offer.answer.value[x]: "+value.fhirType());
this.value = value;
return this;
}
@ -5568,7 +5568,7 @@ public class Contract extends DomainResource {
*/
public ValuedItemComponent setEntity(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Reference))
throw new Error("Not the right type for Contract.term.asset.valuedItem.entity[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Contract.term.asset.valuedItem.entity[x]: "+value.fhirType());
this.entity = value;
return this;
}
@ -6984,7 +6984,7 @@ public class Contract extends DomainResource {
*/
public ActionComponent setOccurrence(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Period || value instanceof Timing))
throw new Error("Not the right type for Contract.term.action.occurrence[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Contract.term.action.occurrence[x]: "+value.fhirType());
this.occurrence = value;
return this;
}
@ -8539,7 +8539,7 @@ public class Contract extends DomainResource {
*/
public FriendlyLanguageComponent setContent(DataType value) {
if (value != null && !(value instanceof Attachment || value instanceof Reference))
throw new Error("Not the right type for Contract.friendly.content[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Contract.friendly.content[x]: "+value.fhirType());
this.content = value;
return this;
}
@ -8737,7 +8737,7 @@ public class Contract extends DomainResource {
*/
public LegalLanguageComponent setContent(DataType value) {
if (value != null && !(value instanceof Attachment || value instanceof Reference))
throw new Error("Not the right type for Contract.legal.content[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Contract.legal.content[x]: "+value.fhirType());
this.content = value;
return this;
}
@ -8935,7 +8935,7 @@ public class Contract extends DomainResource {
*/
public ComputableLanguageComponent setContent(DataType value) {
if (value != null && !(value instanceof Attachment || value instanceof Reference))
throw new Error("Not the right type for Contract.rule.content[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Contract.rule.content[x]: "+value.fhirType());
this.content = value;
return this;
}
@ -10240,7 +10240,7 @@ public class Contract extends DomainResource {
*/
public Contract setTopic(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Reference))
throw new Error("Not the right type for Contract.topic[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Contract.topic[x]: "+value.fhirType());
this.topic = value;
return this;
}
@ -10763,7 +10763,7 @@ public class Contract extends DomainResource {
*/
public Contract setLegallyBinding(DataType value) {
if (value != null && !(value instanceof Attachment || value instanceof Reference))
throw new Error("Not the right type for Contract.legallyBinding[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Contract.legallyBinding[x]: "+value.fhirType());
this.legallyBinding = value;
return this;
}

View File

@ -912,7 +912,7 @@ public class Coverage extends DomainResource {
*/
public CostToBeneficiaryComponent setValue(DataType value) {
if (value != null && !(value instanceof Quantity || value instanceof Money))
throw new Error("Not the right type for Coverage.costToBeneficiary.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Coverage.costToBeneficiary.value[x]: "+value.fhirType());
this.value = value;
return this;
}

View File

@ -286,7 +286,7 @@ public class CoverageEligibilityRequest extends DomainResource {
*/
public CoverageEligibilityRequestEventComponent setWhen(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Period))
throw new Error("Not the right type for CoverageEligibilityRequest.event.when[x]: "+value.fhirType());
throw new FHIRException("Not the right type for CoverageEligibilityRequest.event.when[x]: "+value.fhirType());
this.when = value;
return this;
}
@ -1807,7 +1807,7 @@ public class CoverageEligibilityRequest extends DomainResource {
*/
public DiagnosisComponent setDiagnosis(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Reference))
throw new Error("Not the right type for CoverageEligibilityRequest.item.diagnosis.diagnosis[x]: "+value.fhirType());
throw new FHIRException("Not the right type for CoverageEligibilityRequest.item.diagnosis.diagnosis[x]: "+value.fhirType());
this.diagnosis = value;
return this;
}
@ -2368,7 +2368,7 @@ public class CoverageEligibilityRequest extends DomainResource {
*/
public CoverageEligibilityRequest setServiced(DataType value) {
if (value != null && !(value instanceof DateType || value instanceof Period))
throw new Error("Not the right type for CoverageEligibilityRequest.serviced[x]: "+value.fhirType());
throw new FHIRException("Not the right type for CoverageEligibilityRequest.serviced[x]: "+value.fhirType());
this.serviced = value;
return this;
}

View File

@ -414,7 +414,7 @@ public class CoverageEligibilityResponse extends DomainResource {
*/
public CoverageEligibilityResponseEventComponent setWhen(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Period))
throw new Error("Not the right type for CoverageEligibilityResponse.event.when[x]: "+value.fhirType());
throw new FHIRException("Not the right type for CoverageEligibilityResponse.event.when[x]: "+value.fhirType());
this.when = value;
return this;
}
@ -2013,7 +2013,7 @@ public class CoverageEligibilityResponse extends DomainResource {
*/
public BenefitComponent setAllowed(DataType value) {
if (value != null && !(value instanceof UnsignedIntType || value instanceof StringType || value instanceof Money))
throw new Error("Not the right type for CoverageEligibilityResponse.insurance.item.benefit.allowed[x]: "+value.fhirType());
throw new FHIRException("Not the right type for CoverageEligibilityResponse.insurance.item.benefit.allowed[x]: "+value.fhirType());
this.allowed = value;
return this;
}
@ -2079,7 +2079,7 @@ public class CoverageEligibilityResponse extends DomainResource {
*/
public BenefitComponent setUsed(DataType value) {
if (value != null && !(value instanceof UnsignedIntType || value instanceof StringType || value instanceof Money))
throw new Error("Not the right type for CoverageEligibilityResponse.insurance.item.benefit.used[x]: "+value.fhirType());
throw new FHIRException("Not the right type for CoverageEligibilityResponse.insurance.item.benefit.used[x]: "+value.fhirType());
this.used = value;
return this;
}
@ -2925,7 +2925,7 @@ public class CoverageEligibilityResponse extends DomainResource {
*/
public CoverageEligibilityResponse setServiced(DataType value) {
if (value != null && !(value instanceof DateType || value instanceof Period))
throw new Error("Not the right type for CoverageEligibilityResponse.serviced[x]: "+value.fhirType());
throw new FHIRException("Not the right type for CoverageEligibilityResponse.serviced[x]: "+value.fhirType());
this.serviced = value;
return this;
}

View File

@ -914,7 +914,7 @@ public class DataRequirement extends DataType implements ICompositeType {
*/
public DataRequirementDateFilterComponent setValue(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Period || value instanceof Duration))
throw new Error("Not the right type for DataRequirement.dateFilter.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for DataRequirement.dateFilter.value[x]: "+value.fhirType());
this.value = value;
return this;
}
@ -1323,7 +1323,7 @@ public class DataRequirement extends DataType implements ICompositeType {
*/
public DataRequirementValueFilterComponent setValue(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Period || value instanceof Duration))
throw new Error("Not the right type for DataRequirement.valueFilter.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for DataRequirement.valueFilter.value[x]: "+value.fhirType());
this.value = value;
return this;
}
@ -1778,8 +1778,8 @@ public class DataRequirement extends DataType implements ICompositeType {
protected DataType subject;
/**
* Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.
* Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.
The value of mustSupport SHALL be a FHIRPath resolvable on the type of the DataRequirement. The path SHALL consist only of identifiers, constant indexers, and .resolve() (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details).
*/
@Child(name = "mustSupport", type = {StringType.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@ -1990,14 +1990,14 @@ The value of mustSupport SHALL be a FHIRPath resolvable on the type of the DataR
*/
public DataRequirement setSubject(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Reference))
throw new Error("Not the right type for DataRequirement.subject[x]: "+value.fhirType());
throw new FHIRException("Not the right type for DataRequirement.subject[x]: "+value.fhirType());
this.subject = value;
return this;
}
/**
* @return {@link #mustSupport} (Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.
* @return {@link #mustSupport} (Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.
The value of mustSupport SHALL be a FHIRPath resolvable on the type of the DataRequirement. The path SHALL consist only of identifiers, constant indexers, and .resolve() (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details).)
*/
public List<StringType> getMustSupport() {
@ -2024,8 +2024,8 @@ The value of mustSupport SHALL be a FHIRPath resolvable on the type of the DataR
}
/**
* @return {@link #mustSupport} (Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.
* @return {@link #mustSupport} (Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.
The value of mustSupport SHALL be a FHIRPath resolvable on the type of the DataRequirement. The path SHALL consist only of identifiers, constant indexers, and .resolve() (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details).)
*/
public StringType addMustSupportElement() {//2
@ -2037,8 +2037,8 @@ The value of mustSupport SHALL be a FHIRPath resolvable on the type of the DataR
}
/**
* @param value {@link #mustSupport} (Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.
* @param value {@link #mustSupport} (Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.
The value of mustSupport SHALL be a FHIRPath resolvable on the type of the DataRequirement. The path SHALL consist only of identifiers, constant indexers, and .resolve() (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details).)
*/
public DataRequirement addMustSupport(String value) { //1
@ -2051,8 +2051,8 @@ The value of mustSupport SHALL be a FHIRPath resolvable on the type of the DataR
}
/**
* @param value {@link #mustSupport} (Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.
* @param value {@link #mustSupport} (Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.
The value of mustSupport SHALL be a FHIRPath resolvable on the type of the DataRequirement. The path SHALL consist only of identifiers, constant indexers, and .resolve() (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details).)
*/
public boolean hasMustSupport(String value) {

View File

@ -1356,7 +1356,7 @@ public class DetectedIssue extends DomainResource {
*/
public DetectedIssue setIdentified(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Period))
throw new Error("Not the right type for DetectedIssue.identified[x]: "+value.fhirType());
throw new FHIRException("Not the right type for DetectedIssue.identified[x]: "+value.fhirType());
this.identified = value;
return this;
}

View File

@ -351,10 +351,10 @@ public class Device extends DomainResource {
protected StringType deviceIdentifier;
/**
* Organization that is charged with issuing UDIs for devices. For example, the US FDA issuers include:
1) GS1: http://hl7.org/fhir/NamingSystem/gs1-di,
2) HIBCC: http://hl7.org/fhir/NamingSystem/hibcc-diI,
3) ICCBBA for blood containers: http://hl7.org/fhir/NamingSystem/iccbba-blood-di,
* Organization that is charged with issuing UDIs for devices. For example, the US FDA issuers include:
1) GS1: http://hl7.org/fhir/NamingSystem/gs1-di,
2) HIBCC: http://hl7.org/fhir/NamingSystem/hibcc-diI,
3) ICCBBA for blood containers: http://hl7.org/fhir/NamingSystem/iccbba-blood-di,
4) ICCBA for other devices: http://hl7.org/fhir/NamingSystem/iccbba-other-di # Informationsstelle für Arzneispezialitäten (IFA GmbH) (EU only): http://hl7.org/fhir/NamingSystem/ifa-gmbh-di.
*/
@Child(name = "issuer", type = {UriType.class}, order=2, min=1, max=1, modifier=false, summary=true)
@ -454,10 +454,10 @@ public class Device extends DomainResource {
}
/**
* @return {@link #issuer} (Organization that is charged with issuing UDIs for devices. For example, the US FDA issuers include:
1) GS1: http://hl7.org/fhir/NamingSystem/gs1-di,
2) HIBCC: http://hl7.org/fhir/NamingSystem/hibcc-diI,
3) ICCBBA for blood containers: http://hl7.org/fhir/NamingSystem/iccbba-blood-di,
* @return {@link #issuer} (Organization that is charged with issuing UDIs for devices. For example, the US FDA issuers include:
1) GS1: http://hl7.org/fhir/NamingSystem/gs1-di,
2) HIBCC: http://hl7.org/fhir/NamingSystem/hibcc-diI,
3) ICCBBA for blood containers: http://hl7.org/fhir/NamingSystem/iccbba-blood-di,
4) ICCBA for other devices: http://hl7.org/fhir/NamingSystem/iccbba-other-di # Informationsstelle für Arzneispezialitäten (IFA GmbH) (EU only): http://hl7.org/fhir/NamingSystem/ifa-gmbh-di.). This is the underlying object with id, value and extensions. The accessor "getIssuer" gives direct access to the value
*/
public UriType getIssuerElement() {
@ -478,10 +478,10 @@ public class Device extends DomainResource {
}
/**
* @param value {@link #issuer} (Organization that is charged with issuing UDIs for devices. For example, the US FDA issuers include:
1) GS1: http://hl7.org/fhir/NamingSystem/gs1-di,
2) HIBCC: http://hl7.org/fhir/NamingSystem/hibcc-diI,
3) ICCBBA for blood containers: http://hl7.org/fhir/NamingSystem/iccbba-blood-di,
* @param value {@link #issuer} (Organization that is charged with issuing UDIs for devices. For example, the US FDA issuers include:
1) GS1: http://hl7.org/fhir/NamingSystem/gs1-di,
2) HIBCC: http://hl7.org/fhir/NamingSystem/hibcc-diI,
3) ICCBBA for blood containers: http://hl7.org/fhir/NamingSystem/iccbba-blood-di,
4) ICCBA for other devices: http://hl7.org/fhir/NamingSystem/iccbba-other-di # Informationsstelle für Arzneispezialitäten (IFA GmbH) (EU only): http://hl7.org/fhir/NamingSystem/ifa-gmbh-di.). This is the underlying object with id, value and extensions. The accessor "getIssuer" gives direct access to the value
*/
public DeviceUdiCarrierComponent setIssuerElement(UriType value) {
@ -490,10 +490,10 @@ public class Device extends DomainResource {
}
/**
* @return Organization that is charged with issuing UDIs for devices. For example, the US FDA issuers include:
1) GS1: http://hl7.org/fhir/NamingSystem/gs1-di,
2) HIBCC: http://hl7.org/fhir/NamingSystem/hibcc-diI,
3) ICCBBA for blood containers: http://hl7.org/fhir/NamingSystem/iccbba-blood-di,
* @return Organization that is charged with issuing UDIs for devices. For example, the US FDA issuers include:
1) GS1: http://hl7.org/fhir/NamingSystem/gs1-di,
2) HIBCC: http://hl7.org/fhir/NamingSystem/hibcc-diI,
3) ICCBBA for blood containers: http://hl7.org/fhir/NamingSystem/iccbba-blood-di,
4) ICCBA for other devices: http://hl7.org/fhir/NamingSystem/iccbba-other-di # Informationsstelle für Arzneispezialitäten (IFA GmbH) (EU only): http://hl7.org/fhir/NamingSystem/ifa-gmbh-di.
*/
public String getIssuer() {
@ -501,10 +501,10 @@ public class Device extends DomainResource {
}
/**
* @param value Organization that is charged with issuing UDIs for devices. For example, the US FDA issuers include:
1) GS1: http://hl7.org/fhir/NamingSystem/gs1-di,
2) HIBCC: http://hl7.org/fhir/NamingSystem/hibcc-diI,
3) ICCBBA for blood containers: http://hl7.org/fhir/NamingSystem/iccbba-blood-di,
* @param value Organization that is charged with issuing UDIs for devices. For example, the US FDA issuers include:
1) GS1: http://hl7.org/fhir/NamingSystem/gs1-di,
2) HIBCC: http://hl7.org/fhir/NamingSystem/hibcc-diI,
3) ICCBBA for blood containers: http://hl7.org/fhir/NamingSystem/iccbba-blood-di,
4) ICCBA for other devices: http://hl7.org/fhir/NamingSystem/iccbba-other-di # Informationsstelle für Arzneispezialitäten (IFA GmbH) (EU only): http://hl7.org/fhir/NamingSystem/ifa-gmbh-di.
*/
public DeviceUdiCarrierComponent setIssuer(String value) {
@ -2031,7 +2031,7 @@ public class Device extends DomainResource {
*/
public DevicePropertyComponent setValue(DataType value) {
if (value != null && !(value instanceof Quantity || value instanceof CodeableConcept || value instanceof StringType || value instanceof BooleanType || value instanceof IntegerType || value instanceof Range || value instanceof Attachment))
throw new Error("Not the right type for Device.property.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Device.property.value[x]: "+value.fhirType());
this.value = value;
return this;
}

View File

@ -1468,7 +1468,7 @@ public class DeviceDefinition extends DomainResource {
protected StringType name;
/**
* The type of deviceName.
* The type of deviceName.
RegisteredName | UserFriendlyName | PatientReportedName.
*/
@Child(name = "type", type = {CodeType.class}, order=2, min=1, max=1, modifier=false, summary=true)
@ -1540,7 +1540,7 @@ RegisteredName | UserFriendlyName | PatientReportedName.
}
/**
* @return {@link #type} (The type of deviceName.
* @return {@link #type} (The type of deviceName.
RegisteredName | UserFriendlyName | PatientReportedName.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
*/
public Enumeration<DeviceNameType> getTypeElement() {
@ -1561,7 +1561,7 @@ RegisteredName | UserFriendlyName | PatientReportedName.). This is the underlyin
}
/**
* @param value {@link #type} (The type of deviceName.
* @param value {@link #type} (The type of deviceName.
RegisteredName | UserFriendlyName | PatientReportedName.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
*/
public DeviceDefinitionDeviceNameComponent setTypeElement(Enumeration<DeviceNameType> value) {
@ -1570,7 +1570,7 @@ RegisteredName | UserFriendlyName | PatientReportedName.). This is the underlyin
}
/**
* @return The type of deviceName.
* @return The type of deviceName.
RegisteredName | UserFriendlyName | PatientReportedName.
*/
public DeviceNameType getType() {
@ -1578,7 +1578,7 @@ RegisteredName | UserFriendlyName | PatientReportedName.
}
/**
* @param value The type of deviceName.
* @param value The type of deviceName.
RegisteredName | UserFriendlyName | PatientReportedName.
*/
public DeviceDefinitionDeviceNameComponent setType(DeviceNameType value) {
@ -3783,7 +3783,7 @@ RegisteredName | UserFriendlyName | PatientReportedName.
*/
public DeviceDefinitionPropertyComponent setValue(DataType value) {
if (value != null && !(value instanceof Quantity || value instanceof CodeableConcept || value instanceof StringType || value instanceof BooleanType || value instanceof IntegerType || value instanceof Range || value instanceof Attachment))
throw new Error("Not the right type for DeviceDefinition.property.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for DeviceDefinition.property.value[x]: "+value.fhirType());
this.value = value;
return this;
}

View File

@ -178,7 +178,7 @@ public class DeviceRequest extends DomainResource {
*/
public DeviceRequestParameterComponent setValue(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Quantity || value instanceof Range || value instanceof BooleanType))
throw new Error("Not the right type for DeviceRequest.parameter.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for DeviceRequest.parameter.value[x]: "+value.fhirType());
this.value = value;
return this;
}
@ -1259,7 +1259,7 @@ public class DeviceRequest extends DomainResource {
*/
public DeviceRequest setOccurrence(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Period || value instanceof Timing))
throw new Error("Not the right type for DeviceRequest.occurrence[x]: "+value.fhirType());
throw new FHIRException("Not the right type for DeviceRequest.occurrence[x]: "+value.fhirType());
this.occurrence = value;
return this;
}

View File

@ -980,7 +980,7 @@ public class DeviceUsage extends DomainResource {
*/
public DeviceUsage setTiming(DataType value) {
if (value != null && !(value instanceof Timing || value instanceof Period || value instanceof DateTimeType))
throw new Error("Not the right type for DeviceUsage.timing[x]: "+value.fhirType());
throw new FHIRException("Not the right type for DeviceUsage.timing[x]: "+value.fhirType());
this.timing = value;
return this;
}

View File

@ -1212,7 +1212,7 @@ public class DiagnosticReport extends DomainResource {
*/
public DiagnosticReport setEffective(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Period))
throw new Error("Not the right type for DiagnosticReport.effective[x]: "+value.fhirType());
throw new FHIRException("Not the right type for DiagnosticReport.effective[x]: "+value.fhirType());
this.effective = value;
return this;
}

View File

@ -986,7 +986,7 @@ public class DocumentReference extends DomainResource {
*/
public DocumentReferenceContentProfileComponent setValue(DataType value) {
if (value != null && !(value instanceof Coding || value instanceof UriType || value instanceof CanonicalType))
throw new Error("Not the right type for DocumentReference.content.profile.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for DocumentReference.content.profile.value[x]: "+value.fhirType());
this.value = value;
return this;
}

View File

@ -154,7 +154,7 @@ public class Dosage extends BackboneType implements ICompositeType {
*/
public DosageDoseAndRateComponent setDose(DataType value) {
if (value != null && !(value instanceof Range || value instanceof Quantity))
throw new Error("Not the right type for Dosage.doseAndRate.dose[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Dosage.doseAndRate.dose[x]: "+value.fhirType());
this.dose = value;
return this;
}
@ -220,7 +220,7 @@ public class Dosage extends BackboneType implements ICompositeType {
*/
public DosageDoseAndRateComponent setRate(DataType value) {
if (value != null && !(value instanceof Ratio || value instanceof Range || value instanceof Quantity))
throw new Error("Not the right type for Dosage.doseAndRate.rate[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Dosage.doseAndRate.rate[x]: "+value.fhirType());
this.rate = value;
return this;
}

View File

@ -483,7 +483,7 @@ public class EventDefinition extends MetadataResource {
*/
public EventDefinition setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for EventDefinition.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for EventDefinition.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}
@ -771,7 +771,7 @@ public class EventDefinition extends MetadataResource {
*/
public EventDefinition setSubject(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Reference))
throw new Error("Not the right type for EventDefinition.subject[x]: "+value.fhirType());
throw new FHIRException("Not the right type for EventDefinition.subject[x]: "+value.fhirType());
this.subject = value;
return this;
}

View File

@ -4049,7 +4049,7 @@ public class Evidence extends MetadataResource {
*/
public Evidence setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for Evidence.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Evidence.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}
@ -4198,7 +4198,7 @@ public class Evidence extends MetadataResource {
*/
public Evidence setCiteAs(DataType value) {
if (value != null && !(value instanceof Reference || value instanceof MarkdownType))
throw new Error("Not the right type for Evidence.citeAs[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Evidence.citeAs[x]: "+value.fhirType());
this.citeAs = value;
return this;
}

View File

@ -674,7 +674,7 @@ public class EvidenceReport extends MetadataResource {
*/
public EvidenceReportSubjectCharacteristicComponent setValue(DataType value) {
if (value != null && !(value instanceof Reference || value instanceof CodeableConcept || value instanceof BooleanType || value instanceof Quantity || value instanceof Range))
throw new Error("Not the right type for EvidenceReport.subject.characteristic.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for EvidenceReport.subject.characteristic.value[x]: "+value.fhirType());
this.value = value;
return this;
}
@ -2833,7 +2833,7 @@ public class EvidenceReport extends MetadataResource {
*/
public EvidenceReport setCiteAs(DataType value) {
if (value != null && !(value instanceof Reference || value instanceof MarkdownType))
throw new Error("Not the right type for EvidenceReport.citeAs[x]: "+value.fhirType());
throw new FHIRException("Not the right type for EvidenceReport.citeAs[x]: "+value.fhirType());
this.citeAs = value;
return this;
}

View File

@ -798,7 +798,7 @@ public class EvidenceVariable extends MetadataResource {
*/
public EvidenceVariableCharacteristicComponent setInstances(DataType value) {
if (value != null && !(value instanceof Quantity || value instanceof Range))
throw new Error("Not the right type for EvidenceVariable.characteristic.instances[x]: "+value.fhirType());
throw new FHIRException("Not the right type for EvidenceVariable.characteristic.instances[x]: "+value.fhirType());
this.instances = value;
return this;
}
@ -849,7 +849,7 @@ public class EvidenceVariable extends MetadataResource {
*/
public EvidenceVariableCharacteristicComponent setDuration(DataType value) {
if (value != null && !(value instanceof Quantity || value instanceof Range))
throw new Error("Not the right type for EvidenceVariable.characteristic.duration[x]: "+value.fhirType());
throw new FHIRException("Not the right type for EvidenceVariable.characteristic.duration[x]: "+value.fhirType());
this.duration = value;
return this;
}
@ -1508,7 +1508,7 @@ public class EvidenceVariable extends MetadataResource {
*/
public EvidenceVariableCharacteristicDefinitionByTypeAndValueComponent setValue(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof BooleanType || value instanceof Quantity || value instanceof Range || value instanceof Reference || value instanceof IdType))
throw new Error("Not the right type for EvidenceVariable.characteristic.definitionByTypeAndValue.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for EvidenceVariable.characteristic.definitionByTypeAndValue.value[x]: "+value.fhirType());
this.value = value;
return this;
}
@ -2301,7 +2301,7 @@ public class EvidenceVariable extends MetadataResource {
*/
public EvidenceVariableCharacteristicTimeFromEventComponent setEvent(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Reference || value instanceof DateTimeType || value instanceof IdType))
throw new Error("Not the right type for EvidenceVariable.characteristic.timeFromEvent.event[x]: "+value.fhirType());
throw new FHIRException("Not the right type for EvidenceVariable.characteristic.timeFromEvent.event[x]: "+value.fhirType());
this.event = value;
return this;
}
@ -2684,7 +2684,7 @@ public class EvidenceVariable extends MetadataResource {
*/
public EvidenceVariableCategoryComponent setValue(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Quantity || value instanceof Range))
throw new Error("Not the right type for EvidenceVariable.category.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for EvidenceVariable.category.value[x]: "+value.fhirType());
this.value = value;
return this;
}
@ -3256,7 +3256,7 @@ public class EvidenceVariable extends MetadataResource {
*/
public EvidenceVariable setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for EvidenceVariable.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for EvidenceVariable.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}

View File

@ -695,7 +695,7 @@ public class ExampleScenario extends CanonicalResource {
*/
public ExampleScenarioInstanceComponent setStructureProfile(DataType value) {
if (value != null && !(value instanceof CanonicalType || value instanceof UriType))
throw new Error("Not the right type for ExampleScenario.instance.structureProfile[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ExampleScenario.instance.structureProfile[x]: "+value.fhirType());
this.structureProfile = value;
return this;
}
@ -4120,7 +4120,7 @@ public class ExampleScenario extends CanonicalResource {
*/
public ExampleScenario setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for ExampleScenario.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ExampleScenario.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}

View File

@ -537,7 +537,7 @@ public class ExplanationOfBenefit extends DomainResource {
*/
public ExplanationOfBenefitEventComponent setWhen(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Period))
throw new Error("Not the right type for ExplanationOfBenefit.event.when[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ExplanationOfBenefit.event.when[x]: "+value.fhirType());
this.when = value;
return this;
}
@ -1477,7 +1477,7 @@ public class ExplanationOfBenefit extends DomainResource {
*/
public SupportingInformationComponent setTiming(DataType value) {
if (value != null && !(value instanceof DateType || value instanceof Period))
throw new Error("Not the right type for ExplanationOfBenefit.supportingInfo.timing[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ExplanationOfBenefit.supportingInfo.timing[x]: "+value.fhirType());
this.timing = value;
return this;
}
@ -1588,7 +1588,7 @@ public class ExplanationOfBenefit extends DomainResource {
*/
public SupportingInformationComponent setValue(DataType value) {
if (value != null && !(value instanceof BooleanType || value instanceof StringType || value instanceof Quantity || value instanceof Attachment || value instanceof Reference || value instanceof Identifier))
throw new Error("Not the right type for ExplanationOfBenefit.supportingInfo.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ExplanationOfBenefit.supportingInfo.value[x]: "+value.fhirType());
this.value = value;
return this;
}
@ -1985,7 +1985,7 @@ public class ExplanationOfBenefit extends DomainResource {
*/
public DiagnosisComponent setDiagnosis(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Reference))
throw new Error("Not the right type for ExplanationOfBenefit.diagnosis.diagnosis[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ExplanationOfBenefit.diagnosis.diagnosis[x]: "+value.fhirType());
this.diagnosis = value;
return this;
}
@ -2487,7 +2487,7 @@ public class ExplanationOfBenefit extends DomainResource {
*/
public ProcedureComponent setProcedure(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Reference))
throw new Error("Not the right type for ExplanationOfBenefit.procedure.procedure[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ExplanationOfBenefit.procedure.procedure[x]: "+value.fhirType());
this.procedure = value;
return this;
}
@ -3202,7 +3202,7 @@ public class ExplanationOfBenefit extends DomainResource {
*/
public AccidentComponent setLocation(DataType value) {
if (value != null && !(value instanceof Address || value instanceof Reference))
throw new Error("Not the right type for ExplanationOfBenefit.accident.location[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ExplanationOfBenefit.accident.location[x]: "+value.fhirType());
this.location = value;
return this;
}
@ -4223,7 +4223,7 @@ public class ExplanationOfBenefit extends DomainResource {
*/
public ItemComponent setServiced(DataType value) {
if (value != null && !(value instanceof DateType || value instanceof Period))
throw new Error("Not the right type for ExplanationOfBenefit.item.serviced[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ExplanationOfBenefit.item.serviced[x]: "+value.fhirType());
this.serviced = value;
return this;
}
@ -4289,7 +4289,7 @@ public class ExplanationOfBenefit extends DomainResource {
*/
public ItemComponent setLocation(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Address || value instanceof Reference))
throw new Error("Not the right type for ExplanationOfBenefit.item.location[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ExplanationOfBenefit.item.location[x]: "+value.fhirType());
this.location = value;
return this;
}
@ -9638,7 +9638,7 @@ public class ExplanationOfBenefit extends DomainResource {
*/
public AddedItemComponent setServiced(DataType value) {
if (value != null && !(value instanceof DateType || value instanceof Period))
throw new Error("Not the right type for ExplanationOfBenefit.addItem.serviced[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ExplanationOfBenefit.addItem.serviced[x]: "+value.fhirType());
this.serviced = value;
return this;
}
@ -9704,7 +9704,7 @@ public class ExplanationOfBenefit extends DomainResource {
*/
public AddedItemComponent setLocation(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Address || value instanceof Reference))
throw new Error("Not the right type for ExplanationOfBenefit.addItem.location[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ExplanationOfBenefit.addItem.location[x]: "+value.fhirType());
this.location = value;
return this;
}
@ -14592,7 +14592,7 @@ public class ExplanationOfBenefit extends DomainResource {
*/
public BenefitComponent setAllowed(DataType value) {
if (value != null && !(value instanceof UnsignedIntType || value instanceof StringType || value instanceof Money))
throw new Error("Not the right type for ExplanationOfBenefit.benefitBalance.financial.allowed[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ExplanationOfBenefit.benefitBalance.financial.allowed[x]: "+value.fhirType());
this.allowed = value;
return this;
}
@ -14643,7 +14643,7 @@ public class ExplanationOfBenefit extends DomainResource {
*/
public BenefitComponent setUsed(DataType value) {
if (value != null && !(value instanceof UnsignedIntType || value instanceof Money))
throw new Error("Not the right type for ExplanationOfBenefit.benefitBalance.financial.used[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ExplanationOfBenefit.benefitBalance.financial.used[x]: "+value.fhirType());
this.used = value;
return this;
}

View File

@ -964,7 +964,7 @@ public class Extension extends BaseExtension implements IBaseExtension<Extension
*/
public Extension setValue(DataType value) {
if (value != null && !(value instanceof Base64BinaryType || value instanceof BooleanType || value instanceof CanonicalType || value instanceof CodeType || value instanceof DateType || value instanceof DateTimeType || value instanceof DecimalType || value instanceof IdType || value instanceof InstantType || value instanceof IntegerType || value instanceof Integer64Type || value instanceof MarkdownType || value instanceof OidType || value instanceof PositiveIntType || value instanceof StringType || value instanceof TimeType || value instanceof UnsignedIntType || value instanceof UriType || value instanceof UrlType || value instanceof UuidType || value instanceof Address || value instanceof Age || value instanceof Annotation || value instanceof Attachment || value instanceof CodeableConcept || value instanceof CodeableReference || value instanceof Coding || value instanceof ContactPoint || value instanceof Count || value instanceof Distance || value instanceof Duration || value instanceof HumanName || value instanceof Identifier || value instanceof Money || value instanceof Period || value instanceof Quantity || value instanceof Range || value instanceof Ratio || value instanceof RatioRange || value instanceof Reference || value instanceof SampledData || value instanceof Signature || value instanceof Timing || value instanceof ContactDetail || value instanceof DataRequirement || value instanceof Expression || value instanceof ParameterDefinition || value instanceof RelatedArtifact || value instanceof TriggerDefinition || value instanceof UsageContext || value instanceof Availability || value instanceof ExtendedContactDetail || value instanceof Dosage || value instanceof Meta))
throw new Error("Not the right type for Extension.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Extension.value[x]: "+value.fhirType());
this.value = value;
return this;
}

View File

@ -616,7 +616,7 @@ public class FamilyMemberHistory extends DomainResource {
*/
public FamilyMemberHistoryConditionComponent setOnset(DataType value) {
if (value != null && !(value instanceof Age || value instanceof Range || value instanceof Period || value instanceof StringType))
throw new Error("Not the right type for FamilyMemberHistory.condition.onset[x]: "+value.fhirType());
throw new FHIRException("Not the right type for FamilyMemberHistory.condition.onset[x]: "+value.fhirType());
this.onset = value;
return this;
}
@ -1109,7 +1109,7 @@ public class FamilyMemberHistory extends DomainResource {
*/
public FamilyMemberHistoryProcedureComponent setPerformed(DataType value) {
if (value != null && !(value instanceof Age || value instanceof Range || value instanceof Period || value instanceof StringType || value instanceof DateTimeType))
throw new Error("Not the right type for FamilyMemberHistory.procedure.performed[x]: "+value.fhirType());
throw new FHIRException("Not the right type for FamilyMemberHistory.procedure.performed[x]: "+value.fhirType());
this.performed = value;
return this;
}
@ -2052,7 +2052,7 @@ public class FamilyMemberHistory extends DomainResource {
*/
public FamilyMemberHistory setBorn(DataType value) {
if (value != null && !(value instanceof Period || value instanceof DateType || value instanceof StringType))
throw new Error("Not the right type for FamilyMemberHistory.born[x]: "+value.fhirType());
throw new FHIRException("Not the right type for FamilyMemberHistory.born[x]: "+value.fhirType());
this.born = value;
return this;
}
@ -2118,7 +2118,7 @@ public class FamilyMemberHistory extends DomainResource {
*/
public FamilyMemberHistory setAge(DataType value) {
if (value != null && !(value instanceof Age || value instanceof Range || value instanceof StringType))
throw new Error("Not the right type for FamilyMemberHistory.age[x]: "+value.fhirType());
throw new FHIRException("Not the right type for FamilyMemberHistory.age[x]: "+value.fhirType());
this.age = value;
return this;
}
@ -2259,7 +2259,7 @@ public class FamilyMemberHistory extends DomainResource {
*/
public FamilyMemberHistory setDeceased(DataType value) {
if (value != null && !(value instanceof BooleanType || value instanceof Age || value instanceof Range || value instanceof DateType || value instanceof StringType))
throw new Error("Not the right type for FamilyMemberHistory.deceased[x]: "+value.fhirType());
throw new FHIRException("Not the right type for FamilyMemberHistory.deceased[x]: "+value.fhirType());
this.deceased = value;
return this;
}

View File

@ -1755,7 +1755,7 @@ public class GenomicStudy extends DomainResource {
*/
public GenomicStudyAnalysisInputComponent setGeneratedBy(DataType value) {
if (value != null && !(value instanceof Identifier || value instanceof Reference))
throw new Error("Not the right type for GenomicStudy.analysis.input.generatedBy[x]: "+value.fhirType());
throw new FHIRException("Not the right type for GenomicStudy.analysis.input.generatedBy[x]: "+value.fhirType());
this.generatedBy = value;
return this;
}

View File

@ -439,7 +439,7 @@ public class Goal extends DomainResource {
*/
public GoalTargetComponent setDetail(DataType value) {
if (value != null && !(value instanceof Quantity || value instanceof Range || value instanceof CodeableConcept || value instanceof StringType || value instanceof BooleanType || value instanceof IntegerType || value instanceof Ratio))
throw new Error("Not the right type for Goal.target.detail[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Goal.target.detail[x]: "+value.fhirType());
this.detail = value;
return this;
}
@ -490,7 +490,7 @@ public class Goal extends DomainResource {
*/
public GoalTargetComponent setDue(DataType value) {
if (value != null && !(value instanceof DateType || value instanceof Duration))
throw new Error("Not the right type for Goal.target.due[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Goal.target.due[x]: "+value.fhirType());
this.due = value;
return this;
}
@ -1156,7 +1156,7 @@ public class Goal extends DomainResource {
*/
public Goal setStart(DataType value) {
if (value != null && !(value instanceof DateType || value instanceof CodeableConcept))
throw new Error("Not the right type for Goal.start[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Goal.start[x]: "+value.fhirType());
this.start = value;
return this;
}

View File

@ -2252,7 +2252,7 @@ public class GraphDefinition extends CanonicalResource {
*/
public GraphDefinition setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for GraphDefinition.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for GraphDefinition.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}

View File

@ -537,7 +537,7 @@ public class Group extends DomainResource {
*/
public GroupCharacteristicComponent setValue(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof BooleanType || value instanceof Quantity || value instanceof Range || value instanceof Reference))
throw new Error("Not the right type for Group.characteristic.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Group.characteristic.value[x]: "+value.fhirType());
this.value = value;
return this;
}
@ -1093,9 +1093,9 @@ public class Group extends DomainResource {
protected Enumeration<GroupType> type;
/**
* Basis for membership in the Group:
* 'definitional': The Group.characteristics specified are both necessary and sufficient to determine membership. All entities that meet the criteria are considered to be members of the group, whether referenced by the group or not. If members are present, they are individuals that happen to be known as meeting the Group.characteristics. The list cannot be presumed to be complete.
* Basis for membership in the Group:
* 'definitional': The Group.characteristics specified are both necessary and sufficient to determine membership. All entities that meet the criteria are considered to be members of the group, whether referenced by the group or not. If members are present, they are individuals that happen to be known as meeting the Group.characteristics. The list cannot be presumed to be complete.
* 'enumerated': The Group.characteristics are necessary but not sufficient to determine membership. Membership is determined by being listed as one of the Group.member.
*/
@Child(name = "membership", type = {CodeType.class}, order=3, min=1, max=1, modifier=false, summary=true)
@ -1314,9 +1314,9 @@ public class Group extends DomainResource {
}
/**
* @return {@link #membership} (Basis for membership in the Group:
* 'definitional': The Group.characteristics specified are both necessary and sufficient to determine membership. All entities that meet the criteria are considered to be members of the group, whether referenced by the group or not. If members are present, they are individuals that happen to be known as meeting the Group.characteristics. The list cannot be presumed to be complete.
* @return {@link #membership} (Basis for membership in the Group:
* 'definitional': The Group.characteristics specified are both necessary and sufficient to determine membership. All entities that meet the criteria are considered to be members of the group, whether referenced by the group or not. If members are present, they are individuals that happen to be known as meeting the Group.characteristics. The list cannot be presumed to be complete.
* 'enumerated': The Group.characteristics are necessary but not sufficient to determine membership. Membership is determined by being listed as one of the Group.member.). This is the underlying object with id, value and extensions. The accessor "getMembership" gives direct access to the value
*/
public Enumeration<GroupMembershipBasis> getMembershipElement() {
@ -1337,9 +1337,9 @@ public class Group extends DomainResource {
}
/**
* @param value {@link #membership} (Basis for membership in the Group:
* 'definitional': The Group.characteristics specified are both necessary and sufficient to determine membership. All entities that meet the criteria are considered to be members of the group, whether referenced by the group or not. If members are present, they are individuals that happen to be known as meeting the Group.characteristics. The list cannot be presumed to be complete.
* @param value {@link #membership} (Basis for membership in the Group:
* 'definitional': The Group.characteristics specified are both necessary and sufficient to determine membership. All entities that meet the criteria are considered to be members of the group, whether referenced by the group or not. If members are present, they are individuals that happen to be known as meeting the Group.characteristics. The list cannot be presumed to be complete.
* 'enumerated': The Group.characteristics are necessary but not sufficient to determine membership. Membership is determined by being listed as one of the Group.member.). This is the underlying object with id, value and extensions. The accessor "getMembership" gives direct access to the value
*/
public Group setMembershipElement(Enumeration<GroupMembershipBasis> value) {
@ -1348,9 +1348,9 @@ public class Group extends DomainResource {
}
/**
* @return Basis for membership in the Group:
* 'definitional': The Group.characteristics specified are both necessary and sufficient to determine membership. All entities that meet the criteria are considered to be members of the group, whether referenced by the group or not. If members are present, they are individuals that happen to be known as meeting the Group.characteristics. The list cannot be presumed to be complete.
* @return Basis for membership in the Group:
* 'definitional': The Group.characteristics specified are both necessary and sufficient to determine membership. All entities that meet the criteria are considered to be members of the group, whether referenced by the group or not. If members are present, they are individuals that happen to be known as meeting the Group.characteristics. The list cannot be presumed to be complete.
* 'enumerated': The Group.characteristics are necessary but not sufficient to determine membership. Membership is determined by being listed as one of the Group.member.
*/
public GroupMembershipBasis getMembership() {
@ -1358,9 +1358,9 @@ public class Group extends DomainResource {
}
/**
* @param value Basis for membership in the Group:
* 'definitional': The Group.characteristics specified are both necessary and sufficient to determine membership. All entities that meet the criteria are considered to be members of the group, whether referenced by the group or not. If members are present, they are individuals that happen to be known as meeting the Group.characteristics. The list cannot be presumed to be complete.
* @param value Basis for membership in the Group:
* 'definitional': The Group.characteristics specified are both necessary and sufficient to determine membership. All entities that meet the criteria are considered to be members of the group, whether referenced by the group or not. If members are present, they are individuals that happen to be known as meeting the Group.characteristics. The list cannot be presumed to be complete.
* 'enumerated': The Group.characteristics are necessary but not sufficient to determine membership. Membership is determined by being listed as one of the Group.member.
*/
public Group setMembership(GroupMembershipBasis value) {

View File

@ -469,7 +469,7 @@ public class GuidanceResponse extends DomainResource {
*/
public GuidanceResponse setModule(DataType value) {
if (value != null && !(value instanceof UriType || value instanceof CanonicalType || value instanceof CodeableConcept))
throw new Error("Not the right type for GuidanceResponse.module[x]: "+value.fhirType());
throw new FHIRException("Not the right type for GuidanceResponse.module[x]: "+value.fhirType());
this.module = value;
return this;
}

View File

@ -2050,7 +2050,7 @@ public class Immunization extends DomainResource {
*/
public Immunization setOccurrence(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof StringType))
throw new Error("Not the right type for Immunization.occurrence[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Immunization.occurrence[x]: "+value.fhirType());
this.occurrence = value;
return this;
}

View File

@ -7890,7 +7890,7 @@ public class ImplementationGuide extends CanonicalResource {
*/
public ImplementationGuideDefinitionPageComponent setSource(DataType value) {
if (value != null && !(value instanceof UrlType || value instanceof StringType || value instanceof MarkdownType))
throw new Error("Not the right type for ImplementationGuide.definition.page.source[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ImplementationGuide.definition.page.source[x]: "+value.fhirType());
this.source = value;
return this;
}
@ -10464,7 +10464,7 @@ public class ImplementationGuide extends CanonicalResource {
*/
public ImplementationGuide setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for ImplementationGuide.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ImplementationGuide.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}

View File

@ -787,7 +787,7 @@ public class Ingredient extends DomainResource {
*/
public IngredientSubstanceStrengthComponent setPresentation(DataType value) {
if (value != null && !(value instanceof Ratio || value instanceof RatioRange || value instanceof CodeableConcept || value instanceof Quantity))
throw new Error("Not the right type for Ingredient.substance.strength.presentation[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Ingredient.substance.strength.presentation[x]: "+value.fhirType());
this.presentation = value;
return this;
}
@ -917,7 +917,7 @@ public class Ingredient extends DomainResource {
*/
public IngredientSubstanceStrengthComponent setConcentration(DataType value) {
if (value != null && !(value instanceof Ratio || value instanceof RatioRange || value instanceof CodeableConcept || value instanceof Quantity))
throw new Error("Not the right type for Ingredient.substance.strength.concentration[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Ingredient.substance.strength.concentration[x]: "+value.fhirType());
this.concentration = value;
return this;
}
@ -1549,7 +1549,7 @@ public class Ingredient extends DomainResource {
*/
public IngredientSubstanceStrengthReferenceStrengthComponent setStrength(DataType value) {
if (value != null && !(value instanceof Ratio || value instanceof RatioRange || value instanceof Quantity))
throw new Error("Not the right type for Ingredient.substance.strength.referenceStrength.strength[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Ingredient.substance.strength.referenceStrength.strength[x]: "+value.fhirType());
this.strength = value;
return this;
}

View File

@ -1476,7 +1476,7 @@ public class InventoryItem extends DomainResource {
*/
public InventoryItemCharacteristicComponent setValue(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof IntegerType || value instanceof DecimalType || value instanceof BooleanType || value instanceof UrlType || value instanceof DateTimeType || value instanceof Quantity || value instanceof Range || value instanceof Ratio || value instanceof Annotation || value instanceof Address || value instanceof Duration || value instanceof CodeableConcept))
throw new Error("Not the right type for InventoryItem.characteristic.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for InventoryItem.characteristic.value[x]: "+value.fhirType());
this.value = value;
return this;
}

View File

@ -544,7 +544,7 @@ public class Invoice extends DomainResource {
*/
public InvoiceLineItemComponent setServiced(DataType value) {
if (value != null && !(value instanceof DateType || value instanceof Period))
throw new Error("Not the right type for Invoice.lineItem.serviced[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Invoice.lineItem.serviced[x]: "+value.fhirType());
this.serviced = value;
return this;
}
@ -595,7 +595,7 @@ public class Invoice extends DomainResource {
*/
public InvoiceLineItemComponent setChargeItem(DataType value) {
if (value != null && !(value instanceof Reference || value instanceof CodeableConcept))
throw new Error("Not the right type for Invoice.lineItem.chargeItem[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Invoice.lineItem.chargeItem[x]: "+value.fhirType());
this.chargeItem = value;
return this;
}
@ -1338,7 +1338,7 @@ public class Invoice extends DomainResource {
*/
public Invoice setPeriod(DataType value) {
if (value != null && !(value instanceof DateType || value instanceof Period))
throw new Error("Not the right type for Invoice.period[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Invoice.period[x]: "+value.fhirType());
this.period = value;
return this;
}

View File

@ -505,7 +505,7 @@ public class Library extends MetadataResource {
*/
public Library setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for Library.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Library.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}
@ -817,7 +817,7 @@ public class Library extends MetadataResource {
*/
public Library setSubject(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Reference))
throw new Error("Not the right type for Library.subject[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Library.subject[x]: "+value.fhirType());
this.subject = value;
return this;
}

View File

@ -232,7 +232,7 @@ public class ManufacturedItemDefinition extends DomainResource {
*/
public ManufacturedItemDefinitionPropertyComponent setValue(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Quantity || value instanceof DateType || value instanceof BooleanType || value instanceof MarkdownType || value instanceof Attachment || value instanceof Reference))
throw new Error("Not the right type for ManufacturedItemDefinition.property.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ManufacturedItemDefinition.property.value[x]: "+value.fhirType());
this.value = value;
return this;
}

View File

@ -609,7 +609,7 @@ public class Measure extends MetadataResource {
*/
public MeasureGroupComponent setSubject(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Reference))
throw new Error("Not the right type for Measure.group.subject[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Measure.group.subject[x]: "+value.fhirType());
this.subject = value;
return this;
}
@ -3611,7 +3611,7 @@ public class Measure extends MetadataResource {
*/
public Measure setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for Measure.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Measure.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}
@ -3899,7 +3899,7 @@ public class Measure extends MetadataResource {
*/
public Measure setSubject(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Reference))
throw new Error("Not the right type for Measure.subject[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Measure.subject[x]: "+value.fhirType());
this.subject = value;
return this;
}

View File

@ -699,7 +699,7 @@ public class MeasureReport extends DomainResource {
*/
public MeasureReportGroupComponent setMeasureScore(DataType value) {
if (value != null && !(value instanceof Quantity || value instanceof DateTimeType || value instanceof CodeableConcept || value instanceof Period || value instanceof Range || value instanceof Duration))
throw new Error("Not the right type for MeasureReport.group.measureScore[x]: "+value.fhirType());
throw new FHIRException("Not the right type for MeasureReport.group.measureScore[x]: "+value.fhirType());
this.measureScore = value;
return this;
}
@ -1882,7 +1882,7 @@ public class MeasureReport extends DomainResource {
*/
public StratifierGroupComponent setValue(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof BooleanType || value instanceof Quantity || value instanceof Range || value instanceof Reference))
throw new Error("Not the right type for MeasureReport.group.stratifier.stratum.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for MeasureReport.group.stratifier.stratum.value[x]: "+value.fhirType());
this.value = value;
return this;
}
@ -2099,7 +2099,7 @@ public class MeasureReport extends DomainResource {
*/
public StratifierGroupComponent setMeasureScore(DataType value) {
if (value != null && !(value instanceof Quantity || value instanceof DateTimeType || value instanceof CodeableConcept || value instanceof Period || value instanceof Range || value instanceof Duration))
throw new Error("Not the right type for MeasureReport.group.stratifier.stratum.measureScore[x]: "+value.fhirType());
throw new FHIRException("Not the right type for MeasureReport.group.stratifier.stratum.measureScore[x]: "+value.fhirType());
this.measureScore = value;
return this;
}
@ -2528,7 +2528,7 @@ public class MeasureReport extends DomainResource {
*/
public StratifierGroupComponentComponent setValue(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof BooleanType || value instanceof Quantity || value instanceof Range || value instanceof Reference))
throw new Error("Not the right type for MeasureReport.group.stratifier.stratum.component.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for MeasureReport.group.stratifier.stratum.component.value[x]: "+value.fhirType());
this.value = value;
return this;
}

View File

@ -337,7 +337,7 @@ public class Medication extends DomainResource {
*/
public MedicationIngredientComponent setStrength(DataType value) {
if (value != null && !(value instanceof Ratio || value instanceof CodeableConcept || value instanceof Quantity))
throw new Error("Not the right type for Medication.ingredient.strength[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Medication.ingredient.strength[x]: "+value.fhirType());
this.strength = value;
return this;
}

View File

@ -686,7 +686,7 @@ public class MedicationAdministration extends DomainResource {
*/
public MedicationAdministrationDosageComponent setRate(DataType value) {
if (value != null && !(value instanceof Ratio || value instanceof Quantity))
throw new Error("Not the right type for MedicationAdministration.dosage.rate[x]: "+value.fhirType());
throw new FHIRException("Not the right type for MedicationAdministration.dosage.rate[x]: "+value.fhirType());
this.rate = value;
return this;
}
@ -1558,7 +1558,7 @@ public class MedicationAdministration extends DomainResource {
*/
public MedicationAdministration setOccurence(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Period || value instanceof Timing))
throw new Error("Not the right type for MedicationAdministration.occurence[x]: "+value.fhirType());
throw new FHIRException("Not the right type for MedicationAdministration.occurence[x]: "+value.fhirType());
this.occurence = value;
return this;
}

View File

@ -829,7 +829,7 @@ public class MedicationKnowledge extends DomainResource {
*/
public MedicationKnowledgeCostComponent setCost(DataType value) {
if (value != null && !(value instanceof Money || value instanceof CodeableConcept))
throw new Error("Not the right type for MedicationKnowledge.cost.cost[x]: "+value.fhirType());
throw new FHIRException("Not the right type for MedicationKnowledge.cost.cost[x]: "+value.fhirType());
this.cost = value;
return this;
}
@ -2216,7 +2216,7 @@ public class MedicationKnowledge extends DomainResource {
*/
public MedicationKnowledgeIndicationGuidelineDosingGuidelinePatientCharacteristicComponent setValue(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Quantity || value instanceof Range))
throw new Error("Not the right type for MedicationKnowledge.indicationGuideline.dosingGuideline.patientCharacteristic.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for MedicationKnowledge.indicationGuideline.dosingGuideline.patientCharacteristic.value[x]: "+value.fhirType());
this.value = value;
return this;
}
@ -2472,7 +2472,7 @@ public class MedicationKnowledge extends DomainResource {
*/
public MedicationKnowledgeMedicineClassificationComponent setSource(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof UriType))
throw new Error("Not the right type for MedicationKnowledge.medicineClassification.source[x]: "+value.fhirType());
throw new FHIRException("Not the right type for MedicationKnowledge.medicineClassification.source[x]: "+value.fhirType());
this.source = value;
return this;
}
@ -3422,7 +3422,7 @@ public class MedicationKnowledge extends DomainResource {
*/
public MedicationKnowledgeStorageGuidelineEnvironmentalSettingComponent setValue(DataType value) {
if (value != null && !(value instanceof Quantity || value instanceof Range || value instanceof CodeableConcept))
throw new Error("Not the right type for MedicationKnowledge.storageGuideline.environmentalSetting.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for MedicationKnowledge.storageGuideline.environmentalSetting.value[x]: "+value.fhirType());
this.value = value;
return this;
}
@ -4997,7 +4997,7 @@ public class MedicationKnowledge extends DomainResource {
*/
public MedicationKnowledgeDefinitionalIngredientComponent setStrength(DataType value) {
if (value != null && !(value instanceof Ratio || value instanceof CodeableConcept || value instanceof Quantity))
throw new Error("Not the right type for MedicationKnowledge.definitional.ingredient.strength[x]: "+value.fhirType());
throw new FHIRException("Not the right type for MedicationKnowledge.definitional.ingredient.strength[x]: "+value.fhirType());
this.strength = value;
return this;
}
@ -5300,7 +5300,7 @@ public class MedicationKnowledge extends DomainResource {
*/
public MedicationKnowledgeDefinitionalDrugCharacteristicComponent setValue(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof StringType || value instanceof Quantity || value instanceof Base64BinaryType || value instanceof Attachment))
throw new Error("Not the right type for MedicationKnowledge.definitional.drugCharacteristic.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for MedicationKnowledge.definitional.drugCharacteristic.value[x]: "+value.fhirType());
this.value = value;
return this;
}

View File

@ -1317,7 +1317,7 @@ public class MedicationRequest extends DomainResource {
*/
public MedicationRequestSubstitutionComponent setAllowed(DataType value) {
if (value != null && !(value instanceof BooleanType || value instanceof CodeableConcept))
throw new Error("Not the right type for MedicationRequest.substitution.allowed[x]: "+value.fhirType());
throw new FHIRException("Not the right type for MedicationRequest.substitution.allowed[x]: "+value.fhirType());
this.allowed = value;
return this;
}

View File

@ -48,8 +48,8 @@ import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
/**
* A record of a medication that is being consumed by a patient. A MedicationStatement may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains.
* A record of a medication that is being consumed by a patient. A MedicationStatement may indicate that the patient may be taking the medication now or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from sources such as the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains.
The primary difference between a medicationstatement and a medicationadministration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medicationstatement is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the Medication Statement information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information.
*/
@ResourceDef(name="MedicationStatement", profile="http://hl7.org/fhir/StructureDefinition/MedicationStatement")
@ -857,7 +857,7 @@ public class MedicationStatement extends DomainResource {
*/
public MedicationStatement setEffective(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Period || value instanceof Timing))
throw new Error("Not the right type for MedicationStatement.effective[x]: "+value.fhirType());
throw new FHIRException("Not the right type for MedicationStatement.effective[x]: "+value.fhirType());
this.effective = value;
return this;
}

View File

@ -1860,7 +1860,7 @@ public class MedicinalProductDefinition extends DomainResource {
*/
public MedicinalProductDefinitionCharacteristicComponent setValue(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof MarkdownType || value instanceof Quantity || value instanceof IntegerType || value instanceof DateType || value instanceof BooleanType || value instanceof Attachment))
throw new Error("Not the right type for MedicinalProductDefinition.characteristic.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for MedicinalProductDefinition.characteristic.value[x]: "+value.fhirType());
this.value = value;
return this;
}

View File

@ -1344,7 +1344,7 @@ public class MessageDefinition extends CanonicalResource {
*/
public MessageDefinition setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for MessageDefinition.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for MessageDefinition.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}
@ -2203,7 +2203,7 @@ public class MessageDefinition extends CanonicalResource {
*/
public MessageDefinition setEvent(DataType value) {
if (value != null && !(value instanceof Coding || value instanceof UriType))
throw new Error("Not the right type for MessageDefinition.event[x]: "+value.fhirType());
throw new FHIRException("Not the right type for MessageDefinition.event[x]: "+value.fhirType());
this.event = value;
return this;
}

View File

@ -250,7 +250,7 @@ public class MessageHeader extends DomainResource {
*/
public MessageDestinationComponent setEndpoint(DataType value) {
if (value != null && !(value instanceof UrlType || value instanceof Reference))
throw new Error("Not the right type for MessageHeader.destination.endpoint[x]: "+value.fhirType());
throw new FHIRException("Not the right type for MessageHeader.destination.endpoint[x]: "+value.fhirType());
this.endpoint = value;
return this;
}
@ -611,7 +611,7 @@ public class MessageHeader extends DomainResource {
*/
public MessageSourceComponent setEndpoint(DataType value) {
if (value != null && !(value instanceof UrlType || value instanceof Reference))
throw new Error("Not the right type for MessageHeader.source.endpoint[x]: "+value.fhirType());
throw new FHIRException("Not the right type for MessageHeader.source.endpoint[x]: "+value.fhirType());
this.endpoint = value;
return this;
}
@ -1384,7 +1384,7 @@ public class MessageHeader extends DomainResource {
*/
public MessageHeader setEvent(DataType value) {
if (value != null && !(value instanceof Coding || value instanceof CanonicalType))
throw new Error("Not the right type for MessageHeader.event[x]: "+value.fhirType());
throw new FHIRException("Not the right type for MessageHeader.event[x]: "+value.fhirType());
this.event = value;
return this;
}

View File

@ -933,7 +933,7 @@ public class MolecularSequence extends DomainResource {
*/
public MolecularSequenceRelativeStartingSequenceComponent setSequence(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof StringType || value instanceof Reference))
throw new Error("Not the right type for MolecularSequence.relative.startingSequence.sequence[x]: "+value.fhirType());
throw new FHIRException("Not the right type for MolecularSequence.relative.startingSequence.sequence[x]: "+value.fhirType());
this.sequence = value;
return this;
}

View File

@ -1271,7 +1271,7 @@ public class NamingSystem extends MetadataResource {
*/
public NamingSystem setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for NamingSystem.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for NamingSystem.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}

View File

@ -1601,7 +1601,7 @@ public class NutritionIntake extends DomainResource {
*/
public NutritionIntake setOccurrence(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Period))
throw new Error("Not the right type for NutritionIntake.occurrence[x]: "+value.fhirType());
throw new FHIRException("Not the right type for NutritionIntake.occurrence[x]: "+value.fhirType());
this.occurrence = value;
return this;
}
@ -1701,7 +1701,7 @@ public class NutritionIntake extends DomainResource {
*/
public NutritionIntake setReported(DataType value) {
if (value != null && !(value instanceof BooleanType || value instanceof Reference))
throw new Error("Not the right type for NutritionIntake.reported[x]: "+value.fhirType());
throw new FHIRException("Not the right type for NutritionIntake.reported[x]: "+value.fhirType());
this.reported = value;
return this;
}

View File

@ -3071,7 +3071,7 @@ public class NutritionOrder extends DomainResource {
*/
public NutritionOrderEnteralFormulaAdministrationComponent setRate(DataType value) {
if (value != null && !(value instanceof Quantity || value instanceof Ratio))
throw new Error("Not the right type for NutritionOrder.enteralFormula.administration.rate[x]: "+value.fhirType());
throw new FHIRException("Not the right type for NutritionOrder.enteralFormula.administration.rate[x]: "+value.fhirType());
this.rate = value;
return this;
}

View File

@ -805,7 +805,7 @@ public class NutritionProduct extends DomainResource {
*/
public NutritionProductCharacteristicComponent setValue(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof StringType || value instanceof Quantity || value instanceof Base64BinaryType || value instanceof Attachment || value instanceof BooleanType))
throw new Error("Not the right type for NutritionProduct.characteristic.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for NutritionProduct.characteristic.value[x]: "+value.fhirType());
this.value = value;
return this;
}

View File

@ -175,7 +175,7 @@ public class Observation extends DomainResource {
protected Reference observation;
/**
* The type of trigger.
* The type of trigger.
Reflex | Repeat | Re-run.
*/
@Child(name = "type", type = {CodeType.class}, order=2, min=1, max=1, modifier=false, summary=true)
@ -233,7 +233,7 @@ Reflex | Repeat | Re-run.
}
/**
* @return {@link #type} (The type of trigger.
* @return {@link #type} (The type of trigger.
Reflex | Repeat | Re-run.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
*/
public Enumeration<TriggeredBytype> getTypeElement() {
@ -254,7 +254,7 @@ Reflex | Repeat | Re-run.). This is the underlying object with id, value and ext
}
/**
* @param value {@link #type} (The type of trigger.
* @param value {@link #type} (The type of trigger.
Reflex | Repeat | Re-run.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
*/
public ObservationTriggeredByComponent setTypeElement(Enumeration<TriggeredBytype> value) {
@ -263,7 +263,7 @@ Reflex | Repeat | Re-run.). This is the underlying object with id, value and ext
}
/**
* @return The type of trigger.
* @return The type of trigger.
Reflex | Repeat | Re-run.
*/
public TriggeredBytype getType() {
@ -271,7 +271,7 @@ Reflex | Repeat | Re-run.
}
/**
* @param value The type of trigger.
* @param value The type of trigger.
Reflex | Repeat | Re-run.
*/
public ObservationTriggeredByComponent setType(TriggeredBytype value) {
@ -1275,7 +1275,7 @@ Reflex | Repeat | Re-run.
*/
public ObservationComponentComponent setValue(DataType value) {
if (value != null && !(value instanceof Quantity || value instanceof CodeableConcept || value instanceof MarkdownType || value instanceof BooleanType || value instanceof IntegerType || value instanceof Range || value instanceof Ratio || value instanceof SampledData || value instanceof TimeType || value instanceof DateTimeType || value instanceof Period || value instanceof Attachment || value instanceof Reference || value instanceof CanonicalType))
throw new Error("Not the right type for Observation.component.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Observation.component.value[x]: "+value.fhirType());
this.value = value;
return this;
}
@ -1973,7 +1973,7 @@ Reflex | Repeat | Re-run.
*/
public Observation setInstantiates(DataType value) {
if (value != null && !(value instanceof CanonicalType || value instanceof Reference))
throw new Error("Not the right type for Observation.instantiates[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Observation.instantiates[x]: "+value.fhirType());
this.instantiates = value;
return this;
}
@ -2436,7 +2436,7 @@ Reflex | Repeat | Re-run.
*/
public Observation setEffective(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Period || value instanceof Timing || value instanceof InstantType))
throw new Error("Not the right type for Observation.effective[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Observation.effective[x]: "+value.fhirType());
this.effective = value;
return this;
}
@ -2769,7 +2769,7 @@ Reflex | Repeat | Re-run.
*/
public Observation setValue(DataType value) {
if (value != null && !(value instanceof Quantity || value instanceof CodeableConcept || value instanceof MarkdownType || value instanceof BooleanType || value instanceof IntegerType || value instanceof Range || value instanceof Ratio || value instanceof SampledData || value instanceof TimeType || value instanceof DateTimeType || value instanceof Period || value instanceof Attachment || value instanceof Reference || value instanceof CanonicalType))
throw new Error("Not the right type for Observation.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Observation.value[x]: "+value.fhirType());
this.value = value;
return this;
}

View File

@ -2477,7 +2477,7 @@ public class ObservationDefinition extends DomainResource {
*/
public ObservationDefinition setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for ObservationDefinition.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ObservationDefinition.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}

View File

@ -2547,7 +2547,7 @@ public class OperationDefinition extends CanonicalResource {
*/
public OperationDefinition setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for OperationDefinition.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for OperationDefinition.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}

View File

@ -1326,7 +1326,7 @@ public class PackagedProductDefinition extends DomainResource {
*/
public PackagedProductDefinitionPackagingPropertyComponent setValue(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Quantity || value instanceof DateType || value instanceof BooleanType || value instanceof Attachment))
throw new Error("Not the right type for PackagedProductDefinition.packaging.property.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for PackagedProductDefinition.packaging.property.value[x]: "+value.fhirType());
this.value = value;
return this;
}

View File

@ -973,7 +973,7 @@ public class Parameters extends Resource implements IBaseParameters {
*/
public ParametersParameterComponent setValue(DataType value) {
if (value != null && !(value instanceof Base64BinaryType || value instanceof BooleanType || value instanceof CanonicalType || value instanceof CodeType || value instanceof DateType || value instanceof DateTimeType || value instanceof DecimalType || value instanceof IdType || value instanceof InstantType || value instanceof IntegerType || value instanceof Integer64Type || value instanceof MarkdownType || value instanceof OidType || value instanceof PositiveIntType || value instanceof StringType || value instanceof TimeType || value instanceof UnsignedIntType || value instanceof UriType || value instanceof UrlType || value instanceof UuidType || value instanceof Address || value instanceof Age || value instanceof Annotation || value instanceof Attachment || value instanceof CodeableConcept || value instanceof CodeableReference || value instanceof Coding || value instanceof ContactPoint || value instanceof Count || value instanceof Distance || value instanceof Duration || value instanceof HumanName || value instanceof Identifier || value instanceof Money || value instanceof Period || value instanceof Quantity || value instanceof Range || value instanceof Ratio || value instanceof RatioRange || value instanceof Reference || value instanceof SampledData || value instanceof Signature || value instanceof Timing || value instanceof ContactDetail || value instanceof DataRequirement || value instanceof Expression || value instanceof ParameterDefinition || value instanceof RelatedArtifact || value instanceof TriggerDefinition || value instanceof UsageContext || value instanceof Availability || value instanceof ExtendedContactDetail || value instanceof Dosage || value instanceof Meta))
throw new Error("Not the right type for Parameters.parameter.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Parameters.parameter.value[x]: "+value.fhirType());
this.value = value;
return this;
}

View File

@ -1178,11 +1178,11 @@ public class Patient extends DomainResource {
protected List<Identifier> identifier;
/**
* Whether this patient record is in active use.
Many systems use this property to mark as non-current patients, such as those that have not been seen for a period of time based on an organization's business rules.
It is often used to filter patient lists to exclude inactive patients
* Whether this patient record is in active use.
Many systems use this property to mark as non-current patients, such as those that have not been seen for a period of time based on an organization's business rules.
It is often used to filter patient lists to exclude inactive patients
Deceased patients may also be marked as inactive for the same reasons, but may be active for some time after death.
*/
@Child(name = "active", type = {BooleanType.class}, order=1, min=0, max=1, modifier=true, summary=true)
@ -1352,11 +1352,11 @@ Deceased patients may also be marked as inactive for the same reasons, but may b
}
/**
* @return {@link #active} (Whether this patient record is in active use.
Many systems use this property to mark as non-current patients, such as those that have not been seen for a period of time based on an organization's business rules.
It is often used to filter patient lists to exclude inactive patients
* @return {@link #active} (Whether this patient record is in active use.
Many systems use this property to mark as non-current patients, such as those that have not been seen for a period of time based on an organization's business rules.
It is often used to filter patient lists to exclude inactive patients
Deceased patients may also be marked as inactive for the same reasons, but may be active for some time after death.). This is the underlying object with id, value and extensions. The accessor "getActive" gives direct access to the value
*/
public BooleanType getActiveElement() {
@ -1377,11 +1377,11 @@ Deceased patients may also be marked as inactive for the same reasons, but may b
}
/**
* @param value {@link #active} (Whether this patient record is in active use.
Many systems use this property to mark as non-current patients, such as those that have not been seen for a period of time based on an organization's business rules.
It is often used to filter patient lists to exclude inactive patients
* @param value {@link #active} (Whether this patient record is in active use.
Many systems use this property to mark as non-current patients, such as those that have not been seen for a period of time based on an organization's business rules.
It is often used to filter patient lists to exclude inactive patients
Deceased patients may also be marked as inactive for the same reasons, but may be active for some time after death.). This is the underlying object with id, value and extensions. The accessor "getActive" gives direct access to the value
*/
public Patient setActiveElement(BooleanType value) {
@ -1390,11 +1390,11 @@ Deceased patients may also be marked as inactive for the same reasons, but may b
}
/**
* @return Whether this patient record is in active use.
Many systems use this property to mark as non-current patients, such as those that have not been seen for a period of time based on an organization's business rules.
It is often used to filter patient lists to exclude inactive patients
* @return Whether this patient record is in active use.
Many systems use this property to mark as non-current patients, such as those that have not been seen for a period of time based on an organization's business rules.
It is often used to filter patient lists to exclude inactive patients
Deceased patients may also be marked as inactive for the same reasons, but may be active for some time after death.
*/
public boolean getActive() {
@ -1402,11 +1402,11 @@ Deceased patients may also be marked as inactive for the same reasons, but may b
}
/**
* @param value Whether this patient record is in active use.
Many systems use this property to mark as non-current patients, such as those that have not been seen for a period of time based on an organization's business rules.
It is often used to filter patient lists to exclude inactive patients
* @param value Whether this patient record is in active use.
Many systems use this property to mark as non-current patients, such as those that have not been seen for a period of time based on an organization's business rules.
It is often used to filter patient lists to exclude inactive patients
Deceased patients may also be marked as inactive for the same reasons, but may be active for some time after death.
*/
public Patient setActive(boolean value) {
@ -1666,7 +1666,7 @@ Deceased patients may also be marked as inactive for the same reasons, but may b
*/
public Patient setDeceased(DataType value) {
if (value != null && !(value instanceof BooleanType || value instanceof DateTimeType))
throw new Error("Not the right type for Patient.deceased[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Patient.deceased[x]: "+value.fhirType());
this.deceased = value;
return this;
}
@ -1794,7 +1794,7 @@ Deceased patients may also be marked as inactive for the same reasons, but may b
*/
public Patient setMultipleBirth(DataType value) {
if (value != null && !(value instanceof BooleanType || value instanceof IntegerType))
throw new Error("Not the right type for Patient.multipleBirth[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Patient.multipleBirth[x]: "+value.fhirType());
this.multipleBirth = value;
return this;
}

View File

@ -529,7 +529,7 @@ public class PaymentReconciliation extends DomainResource {
*/
public PaymentReconciliationAllocationComponent setTargetItem(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Identifier || value instanceof PositiveIntType))
throw new Error("Not the right type for PaymentReconciliation.allocation.targetItem[x]: "+value.fhirType());
throw new FHIRException("Not the right type for PaymentReconciliation.allocation.targetItem[x]: "+value.fhirType());
this.targetItem = value;
return this;
}

View File

@ -1097,7 +1097,7 @@ public class Person extends DomainResource {
*/
public Person setDeceased(DataType value) {
if (value != null && !(value instanceof BooleanType || value instanceof DateTimeType))
throw new Error("Not the right type for Person.deceased[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Person.deceased[x]: "+value.fhirType());
this.deceased = value;
return this;
}

View File

@ -774,7 +774,7 @@ public class PlanDefinition extends MetadataResource {
*/
public PlanDefinitionGoalTargetComponent setDetail(DataType value) {
if (value != null && !(value instanceof Quantity || value instanceof Range || value instanceof CodeableConcept || value instanceof StringType || value instanceof BooleanType || value instanceof IntegerType || value instanceof Ratio))
throw new Error("Not the right type for PlanDefinition.goal.target.detail[x]: "+value.fhirType());
throw new FHIRException("Not the right type for PlanDefinition.goal.target.detail[x]: "+value.fhirType());
this.detail = value;
return this;
}
@ -2434,7 +2434,7 @@ public class PlanDefinition extends MetadataResource {
*/
public PlanDefinitionActionComponent setSubject(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Reference || value instanceof CanonicalType))
throw new Error("Not the right type for PlanDefinition.action.subject[x]: "+value.fhirType());
throw new FHIRException("Not the right type for PlanDefinition.action.subject[x]: "+value.fhirType());
this.subject = value;
return this;
}
@ -2780,7 +2780,7 @@ public class PlanDefinition extends MetadataResource {
*/
public PlanDefinitionActionComponent setTiming(DataType value) {
if (value != null && !(value instanceof Age || value instanceof Duration || value instanceof Range || value instanceof Timing))
throw new Error("Not the right type for PlanDefinition.action.timing[x]: "+value.fhirType());
throw new FHIRException("Not the right type for PlanDefinition.action.timing[x]: "+value.fhirType());
this.timing = value;
return this;
}
@ -3177,7 +3177,7 @@ public class PlanDefinition extends MetadataResource {
*/
public PlanDefinitionActionComponent setDefinition(DataType value) {
if (value != null && !(value instanceof CanonicalType || value instanceof UriType))
throw new Error("Not the right type for PlanDefinition.action.definition[x]: "+value.fhirType());
throw new FHIRException("Not the right type for PlanDefinition.action.definition[x]: "+value.fhirType());
this.definition = value;
return this;
}
@ -5023,7 +5023,7 @@ public class PlanDefinition extends MetadataResource {
*/
public PlanDefinitionActionRelatedActionComponent setOffset(DataType value) {
if (value != null && !(value instanceof Duration || value instanceof Range))
throw new Error("Not the right type for PlanDefinition.action.relatedAction.offset[x]: "+value.fhirType());
throw new FHIRException("Not the right type for PlanDefinition.action.relatedAction.offset[x]: "+value.fhirType());
this.offset = value;
return this;
}
@ -6356,7 +6356,7 @@ public class PlanDefinition extends MetadataResource {
*/
public PlanDefinition setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for PlanDefinition.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for PlanDefinition.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}
@ -6683,7 +6683,7 @@ public class PlanDefinition extends MetadataResource {
*/
public PlanDefinition setSubject(DataType value) {
if (value != null && !(value instanceof CodeableConcept || value instanceof Reference || value instanceof CanonicalType))
throw new Error("Not the right type for PlanDefinition.subject[x]: "+value.fhirType());
throw new FHIRException("Not the right type for PlanDefinition.subject[x]: "+value.fhirType());
this.subject = value;
return this;
}
@ -7896,7 +7896,7 @@ public class PlanDefinition extends MetadataResource {
*/
public PlanDefinition setAsNeeded(DataType value) {
if (value != null && !(value instanceof BooleanType || value instanceof CodeableConcept))
throw new Error("Not the right type for PlanDefinition.asNeeded[x]: "+value.fhirType());
throw new FHIRException("Not the right type for PlanDefinition.asNeeded[x]: "+value.fhirType());
this.asNeeded = value;
return this;
}

View File

@ -133,7 +133,7 @@ public class Population extends BackboneType implements ICompositeType {
*/
public Population setAge(DataType value) {
if (value != null && !(value instanceof Range || value instanceof CodeableConcept))
throw new Error("Not the right type for Population.age[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Population.age[x]: "+value.fhirType());
this.age = value;
return this;
}

View File

@ -670,7 +670,8 @@ public class Practitioner extends DomainResource {
protected DataType deceased;
/**
* Address(es) of the practitioner that are not role specific (typically home address). Work addresses are not typically entered in this property as they are usually role dependent.
* Address(es) of the practitioner that are not role specific (typically home address).
Work addresses are not typically entered in this property as they are usually role dependent.
*/
@Child(name = "address", type = {Address.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Address(es) of the practitioner that are not role specific (typically home address)", formalDefinition="Address(es) of the practitioner that are not role specific (typically home address). \rWork addresses are not typically entered in this property as they are usually role dependent." )
@ -684,14 +685,18 @@ public class Practitioner extends DomainResource {
protected List<Attachment> photo;
/**
* The official qualifications, certifications, accreditations, training, licenses (and other types of educations/skills/capabilities) that authorize or otherwise pertain to the provision of care by the practitioner. For example, a medical license issued by a medical board of licensure authorizing the practitioner to practice medicine within a certain locality.
* The official qualifications, certifications, accreditations, training, licenses (and other types of educations/skills/capabilities) that authorize or otherwise pertain to the provision of care by the practitioner.
For example, a medical license issued by a medical board of licensure authorizing the practitioner to practice medicine within a certain locality.
*/
@Child(name = "qualification", type = {}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Qualifications, certifications, accreditations, licenses, training, etc. pertaining to the provision of care", formalDefinition="The official qualifications, certifications, accreditations, training, licenses (and other types of educations/skills/capabilities) that authorize or otherwise pertain to the provision of care by the practitioner.\r\rFor example, a medical license issued by a medical board of licensure authorizing the practitioner to practice medicine within a certain locality." )
protected List<PractitionerQualificationComponent> qualification;
/**
* A language which may be used to communicate with the practitioner, often for correspondence/administrative purposes. The `PractitionerRole.communication` property should be used for publishing the languages that a practitioner is able to communicate with patients (on a per Organization/Role basis).
* A language which may be used to communicate with the practitioner, often for correspondence/administrative purposes.
The `PractitionerRole.communication` property should be used for publishing the languages that a practitioner is able to communicate with patients (on a per Organization/Role basis).
*/
@Child(name = "communication", type = {}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="A language which may be used to communicate with the practitioner", formalDefinition="A language which may be used to communicate with the practitioner, often for correspondence/administrative purposes.\r\rThe `PractitionerRole.communication` property should be used for publishing the languages that a practitioner is able to communicate with patients (on a per Organization/Role basis)." )
@ -1049,7 +1054,7 @@ public class Practitioner extends DomainResource {
return this.deceased != null && !this.deceased.isEmpty();
}
/**
/**throw new FHIRException("Not the right type for
* @param value {@link #deceased} (Indicates if the practitioner is deceased or not.)
*/
public Practitioner setDeceased(DataType value) {
@ -1060,7 +1065,8 @@ public class Practitioner extends DomainResource {
}
/**
* @return {@link #address} (Address(es) of the practitioner that are not role specific (typically home address). Work addresses are not typically entered in this property as they are usually role dependent.)
* @return {@link #address} (Address(es) of the practitioner that are not role specific (typically home address).
Work addresses are not typically entered in this property as they are usually role dependent.)
*/
public List<Address> getAddress() {
if (this.address == null)
@ -1166,7 +1172,9 @@ public class Practitioner extends DomainResource {
}
/**
* @return {@link #qualification} (The official qualifications, certifications, accreditations, training, licenses (and other types of educations/skills/capabilities) that authorize or otherwise pertain to the provision of care by the practitioner. For example, a medical license issued by a medical board of licensure authorizing the practitioner to practice medicine within a certain locality.)
* @return {@link #qualification} (The official qualifications, certifications, accreditations, training, licenses (and other types of educations/skills/capabilities) that authorize or otherwise pertain to the provision of care by the practitioner.
For example, a medical license issued by a medical board of licensure authorizing the practitioner to practice medicine within a certain locality.)
*/
public List<PractitionerQualificationComponent> getQualification() {
if (this.qualification == null)
@ -1219,7 +1227,9 @@ public class Practitioner extends DomainResource {
}
/**
* @return {@link #communication} (A language which may be used to communicate with the practitioner, often for correspondence/administrative purposes. The `PractitionerRole.communication` property should be used for publishing the languages that a practitioner is able to communicate with patients (on a per Organization/Role basis).)
* @return {@link #communication} (A language which may be used to communicate with the practitioner, often for correspondence/administrative purposes.
The `PractitionerRole.communication` property should be used for publishing the languages that a practitioner is able to communicate with patients (on a per Organization/Role basis).)
*/
public List<PractitionerCommunicationComponent> getCommunication() {
if (this.communication == null)

View File

@ -1396,7 +1396,7 @@ public class Procedure extends DomainResource {
*/
public Procedure setOccurrence(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Period || value instanceof StringType || value instanceof Age || value instanceof Range || value instanceof Timing))
throw new Error("Not the right type for Procedure.occurrence[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Procedure.occurrence[x]: "+value.fhirType());
this.occurrence = value;
return this;
}
@ -1520,7 +1520,7 @@ public class Procedure extends DomainResource {
*/
public Procedure setReported(DataType value) {
if (value != null && !(value instanceof BooleanType || value instanceof Reference))
throw new Error("Not the right type for Procedure.reported[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Procedure.reported[x]: "+value.fhirType());
this.reported = value;
return this;
}

View File

@ -150,7 +150,7 @@ public class ProductShelfLife extends BackboneType implements ICompositeType {
*/
public ProductShelfLife setPeriod(DataType value) {
if (value != null && !(value instanceof Duration || value instanceof StringType))
throw new Error("Not the right type for ProductShelfLife.period[x]: "+value.fhirType());
throw new FHIRException("Not the right type for ProductShelfLife.period[x]: "+value.fhirType());
this.period = value;
return this;
}

View File

@ -1056,7 +1056,7 @@ public class Provenance extends DomainResource {
*/
public Provenance setOccurred(DataType value) {
if (value != null && !(value instanceof Period || value instanceof DateTimeType))
throw new Error("Not the right type for Provenance.occurred[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Provenance.occurred[x]: "+value.fhirType());
this.occurred = value;
return this;
}

View File

@ -2612,7 +2612,7 @@ public QuestionnaireItemComponent getQuestion(String linkId) {
*/
public QuestionnaireItemEnableWhenComponent setAnswer(DataType value) {
if (value != null && !(value instanceof BooleanType || value instanceof DecimalType || value instanceof IntegerType || value instanceof DateType || value instanceof DateTimeType || value instanceof TimeType || value instanceof StringType || value instanceof Coding || value instanceof Quantity || value instanceof Reference))
throw new Error("Not the right type for Questionnaire.item.enableWhen.answer[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Questionnaire.item.enableWhen.answer[x]: "+value.fhirType());
this.answer = value;
return this;
}
@ -2950,7 +2950,7 @@ public QuestionnaireItemComponent getQuestion(String linkId) {
*/
public QuestionnaireItemAnswerOptionComponent setValue(DataType value) {
if (value != null && !(value instanceof IntegerType || value instanceof DateType || value instanceof TimeType || value instanceof StringType || value instanceof Coding || value instanceof Reference))
throw new Error("Not the right type for Questionnaire.item.answerOption.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Questionnaire.item.answerOption.value[x]: "+value.fhirType());
this.value = value;
return this;
}
@ -3379,7 +3379,7 @@ public QuestionnaireItemComponent getQuestion(String linkId) {
*/
public QuestionnaireItemInitialComponent setValue(DataType value) {
if (value != null && !(value instanceof BooleanType || value instanceof DecimalType || value instanceof IntegerType || value instanceof DateType || value instanceof DateTimeType || value instanceof TimeType || value instanceof StringType || value instanceof UriType || value instanceof Attachment || value instanceof Coding || value instanceof Quantity || value instanceof Reference))
throw new Error("Not the right type for Questionnaire.item.initial.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Questionnaire.item.initial.value[x]: "+value.fhirType());
this.value = value;
return this;
}
@ -3942,7 +3942,7 @@ public QuestionnaireItemComponent getQuestion(String linkId) {
*/
public Questionnaire setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for Questionnaire.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Questionnaire.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}

View File

@ -909,7 +909,7 @@ public class QuestionnaireResponse extends DomainResource {
*/
public QuestionnaireResponseItemAnswerComponent setValue(DataType value) {
if (value != null && !(value instanceof BooleanType || value instanceof DecimalType || value instanceof IntegerType || value instanceof DateType || value instanceof DateTimeType || value instanceof TimeType || value instanceof StringType || value instanceof UriType || value instanceof Attachment || value instanceof Coding || value instanceof Quantity || value instanceof Reference))
throw new Error("Not the right type for QuestionnaireResponse.item.answer.value[x]: "+value.fhirType());
throw new FHIRException("Not the right type for QuestionnaireResponse.item.answer.value[x]: "+value.fhirType());
this.value = value;
return this;
}

View File

@ -219,7 +219,7 @@ public class RegulatedAuthorization extends DomainResource {
*/
public RegulatedAuthorizationCaseComponent setDate(DataType value) {
if (value != null && !(value instanceof Period || value instanceof DateTimeType))
throw new Error("Not the right type for RegulatedAuthorization.case.date[x]: "+value.fhirType());
throw new FHIRException("Not the right type for RegulatedAuthorization.case.date[x]: "+value.fhirType());
this.date = value;
return this;
}

View File

@ -1032,7 +1032,7 @@ public class RequestOrchestration extends DomainResource {
*/
public RequestOrchestrationActionComponent setTiming(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Age || value instanceof Period || value instanceof Duration || value instanceof Range || value instanceof Timing))
throw new Error("Not the right type for RequestOrchestration.action.timing[x]: "+value.fhirType());
throw new FHIRException("Not the right type for RequestOrchestration.action.timing[x]: "+value.fhirType());
this.timing = value;
return this;
}
@ -1453,7 +1453,7 @@ public class RequestOrchestration extends DomainResource {
*/
public RequestOrchestrationActionComponent setDefinition(DataType value) {
if (value != null && !(value instanceof CanonicalType || value instanceof UriType))
throw new Error("Not the right type for RequestOrchestration.action.definition[x]: "+value.fhirType());
throw new FHIRException("Not the right type for RequestOrchestration.action.definition[x]: "+value.fhirType());
this.definition = value;
return this;
}
@ -3262,7 +3262,7 @@ public class RequestOrchestration extends DomainResource {
*/
public RequestOrchestrationActionRelatedActionComponent setOffset(DataType value) {
if (value != null && !(value instanceof Duration || value instanceof Range))
throw new Error("Not the right type for RequestOrchestration.action.relatedAction.offset[x]: "+value.fhirType());
throw new FHIRException("Not the right type for RequestOrchestration.action.relatedAction.offset[x]: "+value.fhirType());
this.offset = value;
return this;
}
@ -3710,7 +3710,7 @@ public class RequestOrchestration extends DomainResource {
*/
public RequestOrchestrationActionParticipantComponent setActor(DataType value) {
if (value != null && !(value instanceof CanonicalType || value instanceof Reference))
throw new Error("Not the right type for RequestOrchestration.action.participant.actor[x]: "+value.fhirType());
throw new FHIRException("Not the right type for RequestOrchestration.action.participant.actor[x]: "+value.fhirType());
this.actor = value;
return this;
}

View File

@ -1418,7 +1418,7 @@ public class Requirements extends CanonicalResource {
*/
public Requirements setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for Requirements.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for Requirements.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}
@ -4064,17 +4064,17 @@ public class Requirements extends CanonicalResource {
public static final ca.uhn.fhir.model.api.Include INCLUDE_DERIVED_FROM = new ca.uhn.fhir.model.api.Include("Requirements:derived-from").toLocked();
// Manual code (from Configuration.txt):
public RequirementsStatementComponent findStatement(String key) {
for (RequirementsStatementComponent t : getStatement()) {
if (key.equals(t.getKey())) {
return t;
}
}
return null;
}
public RequirementsStatementComponent findStatement(String key) {
for (RequirementsStatementComponent t : getStatement()) {
if (key.equals(t.getKey())) {
return t;
}
}
return null;
}
// end addition
}

View File

@ -178,7 +178,7 @@ public class RiskAssessment extends DomainResource {
*/
public RiskAssessmentPredictionComponent setProbability(DataType value) {
if (value != null && !(value instanceof DecimalType || value instanceof Range))
throw new Error("Not the right type for RiskAssessment.prediction.probability[x]: "+value.fhirType());
throw new FHIRException("Not the right type for RiskAssessment.prediction.probability[x]: "+value.fhirType());
this.probability = value;
return this;
}
@ -320,7 +320,7 @@ public class RiskAssessment extends DomainResource {
*/
public RiskAssessmentPredictionComponent setWhen(DataType value) {
if (value != null && !(value instanceof Period || value instanceof Range))
throw new Error("Not the right type for RiskAssessment.prediction.when[x]: "+value.fhirType());
throw new FHIRException("Not the right type for RiskAssessment.prediction.when[x]: "+value.fhirType());
this.when = value;
return this;
}
@ -999,7 +999,7 @@ public class RiskAssessment extends DomainResource {
*/
public RiskAssessment setOccurrence(DataType value) {
if (value != null && !(value instanceof DateTimeType || value instanceof Period))
throw new Error("Not the right type for RiskAssessment.occurrence[x]: "+value.fhirType());
throw new FHIRException("Not the right type for RiskAssessment.occurrence[x]: "+value.fhirType());
this.occurrence = value;
return this;
}

View File

@ -859,7 +859,7 @@ public class SearchParameter extends CanonicalResource {
*/
public SearchParameter setVersionAlgorithm(DataType value) {
if (value != null && !(value instanceof StringType || value instanceof Coding))
throw new Error("Not the right type for SearchParameter.versionAlgorithm[x]: "+value.fhirType());
throw new FHIRException("Not the right type for SearchParameter.versionAlgorithm[x]: "+value.fhirType());
this.versionAlgorithm = value;
return this;
}

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