diff --git a/hapi-deployable-pom/pom.xml b/hapi-deployable-pom/pom.xml
new file mode 100644
index 00000000000..784685bbc06
--- /dev/null
+++ b/hapi-deployable-pom/pom.xml
@@ -0,0 +1,81 @@
+
this
Coding has the same {@link CodingDt#getCode() Code} and {@link CodingDt#getSystem() system} (as compared by simple equals comparison). Does not compare other
- * Codes (e.g. {@link CodingDt#getUse() use}) or any extensions.
+ * Returns true if this
Coding has the same {@link ca.uhn.fhir.model.dstu.composite.InternalCodingDt#getCode() Code} and {@link ca.uhn.fhir.model.dstu.composite.InternalCodingDt#getSystem() system} (as compared by simple equals comparison). Does not compare other
+ * Codes (e.g. {@link ca.uhn.fhir.model.dstu.composite.InternalCodingDt#getUse() use}) or any extensions.
*/
public boolean matchesSystemAndCode(BaseCodingDt theCoding) {
if (theCoding == null) {
return false;
}
- return getCode().equals(theCoding.getCode()) && getSystem().equals(theCoding.getSystem());
+ return getCodeElement().equals(theCoding.getCodeElement()) && getSystemElement().equals(theCoding.getSystemElement());
}
/**
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/base/composite/BaseContainedDt.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/base/composite/BaseContainedDt.java
new file mode 100644
index 00000000000..1aa60ac0327
--- /dev/null
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/base/composite/BaseContainedDt.java
@@ -0,0 +1,25 @@
+package ca.uhn.fhir.model.base.composite;
+
+/*
+ * #%L
+ * HAPI FHIR - Core Library
+ * %%
+ * Copyright (C) 2014 University Health Network
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
+
+public class BaseContainedDt {
+
+}
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/base/composite/BaseIdentifierDt.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/base/composite/BaseIdentifierDt.java
index 3dbf76e9bb0..32647771722 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/base/composite/BaseIdentifierDt.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/base/composite/BaseIdentifierDt.java
@@ -23,9 +23,9 @@ package ca.uhn.fhir.model.base.composite;
import org.apache.commons.lang3.StringUtils;
import ca.uhn.fhir.model.api.BaseIdentifiableElement;
+import ca.uhn.fhir.model.api.BasePrimitive;
import ca.uhn.fhir.model.api.ICompositeDatatype;
import ca.uhn.fhir.model.api.IQueryParameterType;
-import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.UriDt;
import ca.uhn.fhir.rest.param.ParameterUtil;
@@ -38,83 +38,73 @@ public abstract class BaseIdentifierDt extends BaseIdentifiableElement implement
}
/**
- * Gets the value(s) for system (The namespace for the identifier).
- * creating it if it does
- * not exist. Will not return null
.
+ * Gets the value(s) for system (The namespace for the identifier). creating it if it does not exist. Will not return null
.
*
- * - * Definition: - * Establishes the namespace in which set of possible id values is unique. - *
+ *+ * Definition: Establishes the namespace in which set of possible id values is unique. + *
*/ - public abstract UriDt getSystem() ; + public abstract UriDt getSystemElement(); /** - * Gets the value(s) for value (The value that is unique). - * creating it if it does - * not exist. Will not returnnull
.
+ * Gets the value(s) for value (The value that is unique). creating it if it does not exist. Will not return null
.
*
- * - * Definition: - * The portion of the identifier typically displayed to the user and which is unique within the context of the system. - *
+ *+ * Definition: The portion of the identifier typically displayed to the user and which is unique within the context of the system. + *
*/ - public abstract StringDt getValue(); + public abstract StringDt getValueElement(); /** * {@inheritDoc} */ @Override public String getValueAsQueryToken() { - if (getSystem().getValueAsString() != null) { - return ParameterUtil.escape(StringUtils.defaultString(getSystem().getValueAsString())) + '|' + ParameterUtil.escape(getValue().getValueAsString()); - } else { - return ParameterUtil.escape(getValue().getValueAsString()); - } - } + UriDt system = (UriDt) getSystemElement(); + StringDt value = (StringDt) getValueElement(); + if (system.getValueAsString() != null) { + return ParameterUtil.escape(StringUtils.defaultString(system.getValueAsString())) + '|' + ParameterUtil.escape(value.getValueAsString()); + } else { + return ParameterUtil.escape(value.getValueAsString()); + } + } - /** - * Returns true ifthis
identifier has the same {@link IdentifierDt#getValue() value}
- * and {@link IdentifierDt#getSystem() system} (as compared by simple equals comparison).
- * Does not compare other values (e.g. {@link IdentifierDt#getUse() use}) or any extensions.
+ * Returns true if this
identifier has the same {@link ca.uhn.fhir.model.dstu.composite.IdentifierDt#getValue() value} and
+ * {@link ca.uhn.fhir.model.dstu.composite.IdentifierDt#getSystem() system} (as compared by simple equals comparison). Does not compare other values (e.g.
+ * {@link ca.uhn.fhir.model.dstu.composite.IdentifierDt#getUse() use}) or any extensions.
*/
public boolean matchesSystemAndValue(BaseIdentifierDt theIdentifier) {
if (theIdentifier == null) {
return false;
}
- return getValue().equals(theIdentifier.getValue()) && getSystem().equals(theIdentifier.getSystem());
+ return getValueElement().equals(theIdentifier.getValueElement()) && getSystemElement().equals(theIdentifier.getSystemElement());
}
-
-
- /**
+ /**
* Sets the value for system (The namespace for the identifier)
*
- * - * Definition: - * Establishes the namespace in which set of possible id values is unique. - *
+ *+ * Definition: Establishes the namespace in which set of possible id values is unique. + *
*/ - public abstract BaseIdentifierDt setSystem( String theUri); - - + public abstract BaseIdentifierDt setSystem(String theUri); + /** * Sets the value for value (The value that is unique) * - *- * Definition: - * The portion of the identifier typically displayed to the user and which is unique within the context of the system. - *
+ *+ * Definition: The portion of the identifier typically displayed to the user and which is unique within the context of the system. + *
*/ - public abstract BaseIdentifierDt setValue( String theString); - + public abstract BaseIdentifierDt setValue(String theString); + /** * {@inheritDoc} */ @Override public void setValueAsQueryToken(String theQualifier, String theParameter) { - int barIndex = ParameterUtil.nonEscapedIndexOf(theParameter,'|'); + int barIndex = ParameterUtil.nonEscapedIndexOf(theParameter, '|'); if (barIndex != -1) { setSystem(theParameter.substring(0, barIndex)); setValue(ParameterUtil.unescape(theParameter.substring(barIndex + 1))); @@ -122,5 +112,5 @@ public abstract class BaseIdentifierDt extends BaseIdentifiableElement implement setValue(ParameterUtil.unescape(theParameter)); } } - + } diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/base/composite/BaseQuantityDt.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/base/composite/BaseQuantityDt.java index deff9cd2385..bd2f6f56257 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/base/composite/BaseQuantityDt.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/base/composite/BaseQuantityDt.java @@ -50,7 +50,7 @@ public abstract class BaseQuantityDt extends BaseIdentifiableElement implements @Override public void setValueAsQueryToken(String theQualifier, String theValue) { - getComparator().setValue(null); + getComparatorElement().setValue(null); setCode( null); setSystem(null); setUnits( null); @@ -62,16 +62,16 @@ public abstract class BaseQuantityDt extends BaseIdentifiableElement implements String[] parts = theValue.split("\\|"); if (parts.length > 0 && StringUtils.isNotBlank(parts[0])) { if (parts[0].startsWith("<=")) { - getComparator().setValue(QuantityCompararatorEnum.LESSTHAN_OR_EQUALS.getCode()); + getComparatorElement().setValue(QuantityCompararatorEnum.LESSTHAN_OR_EQUALS.getCode()); setValue(new BigDecimal(parts[0].substring(2))); } else if (parts[0].startsWith("<")) { - getComparator().setValue(QuantityCompararatorEnum.LESSTHAN.getCode()); + getComparatorElement().setValue(QuantityCompararatorEnum.LESSTHAN.getCode()); setValue(new BigDecimal(parts[0].substring(1))); } else if (parts[0].startsWith(">=")) { - getComparator().setValue(QuantityCompararatorEnum.GREATERTHAN_OR_EQUALS.getCode()); + getComparatorElement().setValue(QuantityCompararatorEnum.GREATERTHAN_OR_EQUALS.getCode()); setValue(new BigDecimal(parts[0].substring(2))); } else if (parts[0].startsWith(">")) { - getComparator().setValue(QuantityCompararatorEnum.GREATERTHAN.getCode()); + getComparatorElement().setValue(QuantityCompararatorEnum.GREATERTHAN.getCode()); setValue(new BigDecimal(parts[0].substring(1))); } else { setValue(new BigDecimal(parts[0])); @@ -96,24 +96,24 @@ public abstract class BaseQuantityDt extends BaseIdentifiableElement implements * How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value * */ - public abstract BoundCodeDt> getComparator(); + public abstract BoundCodeDt> getComparatorElement(); @Override public String getValueAsQueryToken() { StringBuilder b= new StringBuilder(); - if (getComparator() != null) { - b.append(getComparator().getValue()); + if (getComparatorElement() != null) { + b.append(getComparatorElement().getValue()); } - if (!getValue().isEmpty()) { - b.append(getValue().getValueAsString()); + if (!getValueElement().isEmpty()) { + b.append(getValueElement().getValueAsString()); } b.append('|'); - if (!getSystem().isEmpty()) { - b.append(getSystem().getValueAsString()); + if (!getSystemElement().isEmpty()) { + b.append(getSystemElement().getValueAsString()); } b.append('|'); - if (!getUnits().isEmpty()) { - b.append(getUnits().getValueAsString()); + if (!getUnitsElement().isEmpty()) { + b.append(getUnitsElement().getValueAsString()); } return b.toString(); @@ -150,7 +150,7 @@ public abstract class BaseQuantityDt extends BaseIdentifiableElement implements * The identification of the system that provides the coded form of the unit * */ - public abstract UriDt getSystem(); + public abstract UriDt getSystemElement(); @@ -174,7 +174,7 @@ public abstract class BaseQuantityDt extends BaseIdentifiableElement implements * A computer processable form of the units in some unit representation system * */ - public abstract CodeDt getCode(); + public abstract CodeDt getCodeElement(); /** * Sets the value for code (Coded form of the unit) @@ -195,7 +195,7 @@ public abstract class BaseQuantityDt extends BaseIdentifiableElement implements * A human-readable form of the units * */ - public abstract StringDt getUnits() ; + public abstract StringDt getUnitsElement() ; /** * Gets the value(s) for value (Numerical value (with implicit precision)). * creating it if it does @@ -206,5 +206,5 @@ public abstract class BaseQuantityDt extends BaseIdentifiableElement implements * The value of the measured amount. The value includes an implicit precision in the presentation of the value * */ - public abstract DecimalDt getValue(); + public abstract DecimalDt getValueElement(); } diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/base/resource/BaseConformance.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/base/resource/BaseConformance.java new file mode 100644 index 00000000000..1ee8a06faa2 --- /dev/null +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/base/resource/BaseConformance.java @@ -0,0 +1,35 @@ +package ca.uhn.fhir.model.base.resource; + +/* + * #%L + * HAPI FHIR - Core Library + * %% + * Copyright (C) 2014 University Health Network + * %% + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * #L% + */ + +import ca.uhn.fhir.model.api.BaseResource; +import ca.uhn.fhir.model.api.IResource; +import ca.uhn.fhir.model.api.annotation.ResourceDef; +import ca.uhn.fhir.model.primitive.StringDt; + +//@ResourceDef(name="Conformance") +public abstract class BaseConformance extends BaseResource implements IResource { + + public abstract StringDt getDescriptionElement(); + + public abstract StringDt getPublisherElement(); + +} diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/base/resource/BaseOperationOutcome.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/base/resource/BaseOperationOutcome.java new file mode 100644 index 00000000000..ce4e55a616b --- /dev/null +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/base/resource/BaseOperationOutcome.java @@ -0,0 +1,59 @@ +package ca.uhn.fhir.model.base.resource; + +/* + * #%L + * HAPI FHIR - Core Library + * %% + * Copyright (C) 2014 University Health Network + * %% + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * #L% + */ + +import java.util.List; + +import ca.uhn.fhir.model.api.BaseIdentifiableElement; +import ca.uhn.fhir.model.api.BaseResource; +import ca.uhn.fhir.model.api.IResource; +import ca.uhn.fhir.model.api.IResourceBlock; +import ca.uhn.fhir.model.base.composite.BaseCodingDt; +import ca.uhn.fhir.model.primitive.CodeDt; +import ca.uhn.fhir.model.primitive.StringDt; + +public abstract class BaseOperationOutcome extends BaseResource implements IResource { + + public abstract BaseIssue addIssue(); + + public abstract List extends BaseIssue> getIssue(); + + public abstract BaseIssue getIssueFirstRep(); + + public static abstract class BaseIssue extends BaseIdentifiableElement implements IResourceBlock { + + public abstract CodeDt getSeverityElement(); + + public abstract StringDt getDetailsElement(); + + public abstract BaseCodingDt getType(); + + public abstract BaseIssue addLocation( String theString); + + public abstract BaseIssue setDetails(String theString); + + public abstract StringDt getLocationFirstRep(); + + } + + + +} diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/AdverseReaction.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/AdverseReaction.java deleted file mode 100644 index b3583a7fbb5..00000000000 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/AdverseReaction.java +++ /dev/null @@ -1,980 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - -/* - * #%L - * HAPI FHIR - Core Library - * %% - * Copyright (C) 2014 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - - -import java.util.Date; -import java.util.List; - -import ca.uhn.fhir.model.api.BaseIdentifiableElement; -import ca.uhn.fhir.model.api.BaseResource; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.IResourceBlock; -import ca.uhn.fhir.model.api.Include; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.api.annotation.Block; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.api.annotation.ResourceDef; -import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum; -import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.rest.gclient.DateClientParam; -import ca.uhn.fhir.rest.gclient.ReferenceClientParam; -import ca.uhn.fhir.rest.gclient.TokenClientParam; - - -/** - * HAPI/FHIR AdverseReaction Resource - * (Specific reactions to a substance) - * - *- * Definition: - * Records an unexpected reaction suspected to be related to the exposure of the reaction subject to a substance - *
- * - *- * Requirements: - * Used to track reactions when it is unknown the exact cause but there's a desire to flag/track potential causes. Also used to capture reactions that are significant for inclusion in the health record or as evidence for an allergy or intolerance. - *
- * - *- * Profile Definition: - * http://hl7.org/fhir/profiles/AdverseReaction - *
- * - */ -@ResourceDef(name="AdverseReaction", profile="http://hl7.org/fhir/profiles/AdverseReaction", id="adversereaction") -public class AdverseReaction extends BaseResource implements IResource { - - /** - * Search parameter constant for symptom - *
- * Description: One of the symptoms of the reaction
- * Type: token
- * Path: AdverseReaction.symptom.code
- *
- * Description: One of the symptoms of the reaction
- * Type: token
- * Path: AdverseReaction.symptom.code
- *
- * Description: The name or code of the substance that produces the sensitivity
- * Type: reference
- * Path: AdverseReaction.exposure.substance
- *
- * Description: The name or code of the substance that produces the sensitivity
- * Type: reference
- * Path: AdverseReaction.exposure.substance
- *
- * Description: The date of the reaction
- * Type: date
- * Path: AdverseReaction.date
- *
- * Description: The date of the reaction
- * Type: date
- * Path: AdverseReaction.date
- *
- * Description: The subject that the sensitivity is about
- * Type: reference
- * Path: AdverseReaction.subject
- *
- * Description: The subject that the sensitivity is about
- * Type: reference
- * Path: AdverseReaction.subject
- *
null
.
- *
- * - * Definition: - * This records identifiers associated with this reaction that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- */ - public java.util.List- * Definition: - * This records identifiers associated with this reaction that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- */ - public AdverseReaction setIdentifier(java.util.List- * Definition: - * This records identifiers associated with this reaction that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (External Ids for this adverse reaction), - * creating it if it does not already exist. - * - *- * Definition: - * This records identifiers associated with this reaction that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (External Ids for this adverse reaction) - * - *- * Definition: - * This records identifiers associated with this reaction that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public AdverseReaction addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList- * Definition: - * This records identifiers associated with this reaction that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public AdverseReaction addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayListnull
.
- *
- * - * Definition: - * The date (and possibly time) when the reaction began - *
- */ - public DateTimeDt getDate() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - /** - * Sets the value(s) for date (When the reaction occurred) - * - *- * Definition: - * The date (and possibly time) when the reaction began - *
- */ - public AdverseReaction setDate(DateTimeDt theValue) { - myDate = theValue; - return this; - } - - /** - * Sets the value for date (When the reaction occurred) - * - *- * Definition: - * The date (and possibly time) when the reaction began - *
- */ - public AdverseReaction setDateWithSecondsPrecision( Date theDate) { - myDate = new DateTimeDt(theDate); - return this; - } - - /** - * Sets the value for date (When the reaction occurred) - * - *- * Definition: - * The date (and possibly time) when the reaction began - *
- */ - public AdverseReaction setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - - /** - * Gets the value(s) for subject (Who had the reaction). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The subject of the adverse reaction - *
- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - /** - * Sets the value(s) for subject (Who had the reaction) - * - *- * Definition: - * The subject of the adverse reaction - *
- */ - public AdverseReaction setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for didNotOccurFlag (Indicates lack of reaction). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * If true, indicates that no reaction occurred. - *
- */ - public BooleanDt getDidNotOccurFlag() { - if (myDidNotOccurFlag == null) { - myDidNotOccurFlag = new BooleanDt(); - } - return myDidNotOccurFlag; - } - - /** - * Sets the value(s) for didNotOccurFlag (Indicates lack of reaction) - * - *- * Definition: - * If true, indicates that no reaction occurred. - *
- */ - public AdverseReaction setDidNotOccurFlag(BooleanDt theValue) { - myDidNotOccurFlag = theValue; - return this; - } - - /** - * Sets the value for didNotOccurFlag (Indicates lack of reaction) - * - *- * Definition: - * If true, indicates that no reaction occurred. - *
- */ - public AdverseReaction setDidNotOccurFlag( boolean theBoolean) { - myDidNotOccurFlag = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for recorder (Who recorded the reaction). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Identifies the individual responsible for the information in the reaction record. - *
- */ - public ResourceReferenceDt getRecorder() { - if (myRecorder == null) { - myRecorder = new ResourceReferenceDt(); - } - return myRecorder; - } - - /** - * Sets the value(s) for recorder (Who recorded the reaction) - * - *- * Definition: - * Identifies the individual responsible for the information in the reaction record. - *
- */ - public AdverseReaction setRecorder(ResourceReferenceDt theValue) { - myRecorder = theValue; - return this; - } - - - /** - * Gets the value(s) for symptom (What was reaction?). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The signs and symptoms that were observed as part of the reaction - *
- */ - public java.util.List- * Definition: - * The signs and symptoms that were observed as part of the reaction - *
- */ - public AdverseReaction setSymptom(java.util.List- * Definition: - * The signs and symptoms that were observed as part of the reaction - *
- */ - public Symptom addSymptom() { - Symptom newType = new Symptom(); - getSymptom().add(newType); - return newType; - } - - /** - * Gets the first repetition for symptom (What was reaction?), - * creating it if it does not already exist. - * - *- * Definition: - * The signs and symptoms that were observed as part of the reaction - *
- */ - public Symptom getSymptomFirstRep() { - if (getSymptom().isEmpty()) { - return addSymptom(); - } - return getSymptom().get(0); - } - - /** - * Gets the value(s) for exposure (Suspected substance). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * An exposure to a substance that preceded a reaction occurrence - *
- */ - public java.util.List- * Definition: - * An exposure to a substance that preceded a reaction occurrence - *
- */ - public AdverseReaction setExposure(java.util.List- * Definition: - * An exposure to a substance that preceded a reaction occurrence - *
- */ - public Exposure addExposure() { - Exposure newType = new Exposure(); - getExposure().add(newType); - return newType; - } - - /** - * Gets the first repetition for exposure (Suspected substance), - * creating it if it does not already exist. - * - *- * Definition: - * An exposure to a substance that preceded a reaction occurrence - *
- */ - public Exposure getExposureFirstRep() { - if (getExposure().isEmpty()) { - return addExposure(); - } - return getExposure().get(0); - } - - /** - * Block class for child element: AdverseReaction.symptom (What was reaction?) - * - *- * Definition: - * The signs and symptoms that were observed as part of the reaction - *
- */ - @Block() - public static class Symptom extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="code", type=CodeableConceptDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="E.g. Rash, vomiting", - formalDefinition="Indicates the specific sign or symptom that was observed" - ) - private CodeableConceptDt myCode; - - @Child(name="severity", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="severe | serious | moderate | minor", - formalDefinition="The severity of the sign or symptom" - ) - private BoundCodeDtnull
.
- *
- * - * Definition: - * Indicates the specific sign or symptom that was observed - *
- */ - public CodeableConceptDt getCode() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - /** - * Sets the value(s) for code (E.g. Rash, vomiting) - * - *- * Definition: - * Indicates the specific sign or symptom that was observed - *
- */ - public Symptom setCode(CodeableConceptDt theValue) { - myCode = theValue; - return this; - } - - - /** - * Gets the value(s) for severity (severe | serious | moderate | minor). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The severity of the sign or symptom - *
- */ - public BoundCodeDt- * Definition: - * The severity of the sign or symptom - *
- */ - public Symptom setSeverity(BoundCodeDt- * Definition: - * The severity of the sign or symptom - *
- */ - public Symptom setSeverity(ReactionSeverityEnum theValue) { - getSeverity().setValueAsEnum(theValue); - return this; - } - - - - } - - - /** - * Block class for child element: AdverseReaction.exposure (Suspected substance) - * - *- * Definition: - * An exposure to a substance that preceded a reaction occurrence - *
- */ - @Block() - public static class Exposure extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="date", type=DateTimeDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="When the exposure occurred", - formalDefinition="Identifies the initial date of the exposure that is suspected to be related to the reaction" - ) - private DateTimeDt myDate; - - @Child(name="type", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="drugadmin | immuniz | coincidental", - formalDefinition="The type of exposure: Drug Administration, Immunization, Coincidental" - ) - private BoundCodeDtnull
.
- *
- * - * Definition: - * Identifies the initial date of the exposure that is suspected to be related to the reaction - *
- */ - public DateTimeDt getDate() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - /** - * Sets the value(s) for date (When the exposure occurred) - * - *- * Definition: - * Identifies the initial date of the exposure that is suspected to be related to the reaction - *
- */ - public Exposure setDate(DateTimeDt theValue) { - myDate = theValue; - return this; - } - - /** - * Sets the value for date (When the exposure occurred) - * - *- * Definition: - * Identifies the initial date of the exposure that is suspected to be related to the reaction - *
- */ - public Exposure setDateWithSecondsPrecision( Date theDate) { - myDate = new DateTimeDt(theDate); - return this; - } - - /** - * Sets the value for date (When the exposure occurred) - * - *- * Definition: - * Identifies the initial date of the exposure that is suspected to be related to the reaction - *
- */ - public Exposure setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - - /** - * Gets the value(s) for type (drugadmin | immuniz | coincidental). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The type of exposure: Drug Administration, Immunization, Coincidental - *
- */ - public BoundCodeDt- * Definition: - * The type of exposure: Drug Administration, Immunization, Coincidental - *
- */ - public Exposure setType(BoundCodeDt- * Definition: - * The type of exposure: Drug Administration, Immunization, Coincidental - *
- */ - public Exposure setType(ExposureTypeEnum theValue) { - getType().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for causalityExpectation (likely | unlikely | confirmed | unknown). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * A statement of how confident that the recorder was that this exposure caused the reaction - *
- */ - public BoundCodeDt- * Definition: - * A statement of how confident that the recorder was that this exposure caused the reaction - *
- */ - public Exposure setCausalityExpectation(BoundCodeDt- * Definition: - * A statement of how confident that the recorder was that this exposure caused the reaction - *
- */ - public Exposure setCausalityExpectation(CausalityExpectationEnum theValue) { - getCausalityExpectation().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for substance (Presumed causative substance). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Substance that is presumed to have caused the adverse reaction - *
- */ - public ResourceReferenceDt getSubstance() { - if (mySubstance == null) { - mySubstance = new ResourceReferenceDt(); - } - return mySubstance; - } - - /** - * Sets the value(s) for substance (Presumed causative substance) - * - *- * Definition: - * Substance that is presumed to have caused the adverse reaction - *
- */ - public Exposure setSubstance(ResourceReferenceDt theValue) { - mySubstance = theValue; - return this; - } - - - - } - - - - -} diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Alert.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Alert.java deleted file mode 100644 index 22fa576dda6..00000000000 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Alert.java +++ /dev/null @@ -1,446 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - -/* - * #%L - * HAPI FHIR - Core Library - * %% - * Copyright (C) 2014 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - - -import java.util.List; - -import ca.uhn.fhir.model.api.BaseResource; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.Include; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.api.annotation.ResourceDef; -import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.rest.gclient.ReferenceClientParam; - - -/** - * HAPI/FHIR Alert Resource - * (Key information to flag to healthcare providers) - * - *- * Definition: - * Prospective warnings of potential issues when providing care to the patient - *
- * - *- * Requirements: - * - *
- * - *- * Profile Definition: - * http://hl7.org/fhir/profiles/Alert - *
- * - */ -@ResourceDef(name="Alert", profile="http://hl7.org/fhir/profiles/Alert", id="alert") -public class Alert extends BaseResource implements IResource { - - /** - * Search parameter constant for subject - *
- * Description: The identity of a subject to list alerts for
- * Type: reference
- * Path: Alert.subject
- *
- * Description: The identity of a subject to list alerts for
- * Type: reference
- * Path: Alert.subject
- *
null
.
- *
- * - * Definition: - * Identifier assigned to the alert for external use (outside the FHIR environment) - *
- */ - public java.util.List- * Definition: - * Identifier assigned to the alert for external use (outside the FHIR environment) - *
- */ - public Alert setIdentifier(java.util.List- * Definition: - * Identifier assigned to the alert for external use (outside the FHIR environment) - *
- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (Business identifier), - * creating it if it does not already exist. - * - *- * Definition: - * Identifier assigned to the alert for external use (outside the FHIR environment) - *
- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (Business identifier) - * - *- * Definition: - * Identifier assigned to the alert for external use (outside the FHIR environment) - *
- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Alert addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList- * Definition: - * Identifier assigned to the alert for external use (outside the FHIR environment) - *
- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Alert addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayListnull
.
- *
- * - * Definition: - * Allows an alert to be divided into different categories like clinical, administrative etc. - *
- */ - public CodeableConceptDt getCategory() { - if (myCategory == null) { - myCategory = new CodeableConceptDt(); - } - return myCategory; - } - - /** - * Sets the value(s) for category (Clinical, administrative, etc.) - * - *- * Definition: - * Allows an alert to be divided into different categories like clinical, administrative etc. - *
- */ - public Alert setCategory(CodeableConceptDt theValue) { - myCategory = theValue; - return this; - } - - - /** - * Gets the value(s) for status (active | inactive | entered in error). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Supports basic workflow - *
- */ - public BoundCodeDt- * Definition: - * Supports basic workflow - *
- */ - public Alert setStatus(BoundCodeDt- * Definition: - * Supports basic workflow - *
- */ - public Alert setStatus(AlertStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for subject (Who is alert about?). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The person who this alert concerns - *
- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - /** - * Sets the value(s) for subject (Who is alert about?) - * - *- * Definition: - * The person who this alert concerns - *
- */ - public Alert setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for author (Alert creator). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The person or device that created the alert - *
- */ - public ResourceReferenceDt getAuthor() { - if (myAuthor == null) { - myAuthor = new ResourceReferenceDt(); - } - return myAuthor; - } - - /** - * Sets the value(s) for author (Alert creator) - * - *- * Definition: - * The person or device that created the alert - *
- */ - public Alert setAuthor(ResourceReferenceDt theValue) { - myAuthor = theValue; - return this; - } - - - /** - * Gets the value(s) for note (Text of alert). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The textual component of the alert to display to the user - *
- */ - public StringDt getNote() { - if (myNote == null) { - myNote = new StringDt(); - } - return myNote; - } - - /** - * Sets the value(s) for note (Text of alert) - * - *- * Definition: - * The textual component of the alert to display to the user - *
- */ - public Alert setNote(StringDt theValue) { - myNote = theValue; - return this; - } - - /** - * Sets the value for note (Text of alert) - * - *- * Definition: - * The textual component of the alert to display to the user - *
- */ - public Alert setNote( String theString) { - myNote = new StringDt(theString); - return this; - } - - - - -} diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/AllergyIntolerance.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/AllergyIntolerance.java deleted file mode 100644 index af7d4a83ca9..00000000000 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/AllergyIntolerance.java +++ /dev/null @@ -1,788 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - -/* - * #%L - * HAPI FHIR - Core Library - * %% - * Copyright (C) 2014 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - - -import java.util.Date; -import java.util.List; - -import ca.uhn.fhir.model.api.BaseResource; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.Include; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.api.annotation.ResourceDef; -import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.rest.gclient.DateClientParam; -import ca.uhn.fhir.rest.gclient.ReferenceClientParam; -import ca.uhn.fhir.rest.gclient.TokenClientParam; - - -/** - * HAPI/FHIR AllergyIntolerance Resource - * (Drug, food, environmental and others) - * - *- * Definition: - * Indicates the patient has a susceptibility to an adverse reaction upon exposure to a specified substance - *
- * - *- * Requirements: - * - *
- * - *- * Profile Definition: - * http://hl7.org/fhir/profiles/AllergyIntolerance - *
- * - */ -@ResourceDef(name="AllergyIntolerance", profile="http://hl7.org/fhir/profiles/AllergyIntolerance", id="allergyintolerance") -public class AllergyIntolerance extends BaseResource implements IResource { - - /** - * Search parameter constant for type - *
- * Description: The type of sensitivity
- * Type: token
- * Path: AllergyIntolerance.sensitivityType
- *
- * Description: The type of sensitivity
- * Type: token
- * Path: AllergyIntolerance.sensitivityType
- *
- * Description: The name or code of the substance that produces the sensitivity
- * Type: reference
- * Path: AllergyIntolerance.substance
- *
- * Description: The name or code of the substance that produces the sensitivity
- * Type: reference
- * Path: AllergyIntolerance.substance
- *
- * Description: Recorded date/time.
- * Type: date
- * Path: AllergyIntolerance.recordedDate
- *
- * Description: Recorded date/time.
- * Type: date
- * Path: AllergyIntolerance.recordedDate
- *
- * Description: The status of the sensitivity
- * Type: token
- * Path: AllergyIntolerance.status
- *
- * Description: The status of the sensitivity
- * Type: token
- * Path: AllergyIntolerance.status
- *
- * Description: The subject that the sensitivity is about
- * Type: reference
- * Path: AllergyIntolerance.subject
- *
- * Description: The subject that the sensitivity is about
- * Type: reference
- * Path: AllergyIntolerance.subject
- *
- * Description: Who recorded the sensitivity
- * Type: reference
- * Path: AllergyIntolerance.recorder
- *
- * Description: Who recorded the sensitivity
- * Type: reference
- * Path: AllergyIntolerance.recorder
- *
null
.
- *
- * - * Definition: - * This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- */ - public java.util.List- * Definition: - * This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- */ - public AllergyIntolerance setIdentifier(java.util.List- * Definition: - * This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (External Ids for this item), - * creating it if it does not already exist. - * - *- * Definition: - * This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (External Ids for this item) - * - *- * Definition: - * This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public AllergyIntolerance addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList- * Definition: - * This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public AllergyIntolerance addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayListnull
.
- *
- * - * Definition: - * Criticality of the sensitivity - *
- */ - public BoundCodeDt- * Definition: - * Criticality of the sensitivity - *
- */ - public AllergyIntolerance setCriticality(BoundCodeDt- * Definition: - * Criticality of the sensitivity - *
- */ - public AllergyIntolerance setCriticality(CriticalityEnum theValue) { - getCriticality().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for sensitivityType (allergy | intolerance | unknown). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Type of the sensitivity - *
- */ - public BoundCodeDt- * Definition: - * Type of the sensitivity - *
- */ - public AllergyIntolerance setSensitivityType(BoundCodeDt- * Definition: - * Type of the sensitivity - *
- */ - public AllergyIntolerance setSensitivityType(SensitivityTypeEnum theValue) { - getSensitivityType().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for recordedDate (When recorded). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Date when the sensitivity was recorded - *
- */ - public DateTimeDt getRecordedDate() { - if (myRecordedDate == null) { - myRecordedDate = new DateTimeDt(); - } - return myRecordedDate; - } - - /** - * Sets the value(s) for recordedDate (When recorded) - * - *- * Definition: - * Date when the sensitivity was recorded - *
- */ - public AllergyIntolerance setRecordedDate(DateTimeDt theValue) { - myRecordedDate = theValue; - return this; - } - - /** - * Sets the value for recordedDate (When recorded) - * - *- * Definition: - * Date when the sensitivity was recorded - *
- */ - public AllergyIntolerance setRecordedDateWithSecondsPrecision( Date theDate) { - myRecordedDate = new DateTimeDt(theDate); - return this; - } - - /** - * Sets the value for recordedDate (When recorded) - * - *- * Definition: - * Date when the sensitivity was recorded - *
- */ - public AllergyIntolerance setRecordedDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myRecordedDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - - /** - * Gets the value(s) for status (suspected | confirmed | refuted | resolved). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Status of the sensitivity - *
- */ - public BoundCodeDt- * Definition: - * Status of the sensitivity - *
- */ - public AllergyIntolerance setStatus(BoundCodeDt- * Definition: - * Status of the sensitivity - *
- */ - public AllergyIntolerance setStatus(SensitivityStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for subject (Who the sensitivity is for). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The patient who has the allergy or intolerance - *
- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - /** - * Sets the value(s) for subject (Who the sensitivity is for) - * - *- * Definition: - * The patient who has the allergy or intolerance - *
- */ - public AllergyIntolerance setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for recorder (Who recorded the sensitivity). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Indicates who has responsibility for the record - *
- */ - public ResourceReferenceDt getRecorder() { - if (myRecorder == null) { - myRecorder = new ResourceReferenceDt(); - } - return myRecorder; - } - - /** - * Sets the value(s) for recorder (Who recorded the sensitivity) - * - *- * Definition: - * Indicates who has responsibility for the record - *
- */ - public AllergyIntolerance setRecorder(ResourceReferenceDt theValue) { - myRecorder = theValue; - return this; - } - - - /** - * Gets the value(s) for substance (The substance that causes the sensitivity). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The substance that causes the sensitivity - *
- */ - public ResourceReferenceDt getSubstance() { - if (mySubstance == null) { - mySubstance = new ResourceReferenceDt(); - } - return mySubstance; - } - - /** - * Sets the value(s) for substance (The substance that causes the sensitivity) - * - *- * Definition: - * The substance that causes the sensitivity - *
- */ - public AllergyIntolerance setSubstance(ResourceReferenceDt theValue) { - mySubstance = theValue; - return this; - } - - - /** - * Gets the value(s) for reaction (Reactions associated with the sensitivity). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Reactions associated with the sensitivity - *
- */ - public java.util.List- * Definition: - * Reactions associated with the sensitivity - *
- */ - public AllergyIntolerance setReaction(java.util.List- * Definition: - * Reactions associated with the sensitivity - *
- */ - public ResourceReferenceDt addReaction() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getReaction().add(newType); - return newType; - } - - /** - * Gets the value(s) for sensitivityTest (Observations that confirm or refute). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Observations that confirm or refute the sensitivity - *
- */ - public java.util.List- * Definition: - * Observations that confirm or refute the sensitivity - *
- */ - public AllergyIntolerance setSensitivityTest(java.util.List- * Definition: - * Observations that confirm or refute the sensitivity - *
- */ - public ResourceReferenceDt addSensitivityTest() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getSensitivityTest().add(newType); - return newType; - } - - - -} diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Appointment.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Appointment.java deleted file mode 100644 index fc96dbf6bf9..00000000000 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Appointment.java +++ /dev/null @@ -1,1355 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - -/* - * #%L - * HAPI FHIR - Core Library - * %% - * Copyright (C) 2014 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - - -import java.util.Date; -import java.util.List; - -import ca.uhn.fhir.model.api.BaseIdentifiableElement; -import ca.uhn.fhir.model.api.BaseResource; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.IResourceBlock; -import ca.uhn.fhir.model.api.Include; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.api.annotation.Block; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.api.annotation.ResourceDef; -import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.rest.gclient.DateClientParam; -import ca.uhn.fhir.rest.gclient.ReferenceClientParam; -import ca.uhn.fhir.rest.gclient.StringClientParam; -import ca.uhn.fhir.rest.gclient.TokenClientParam; - - -/** - * HAPI/FHIR Appointment Resource - * ((informative) A scheduled appointment for a patient and/or practitioner(s) where a service may take place) - * - *- * Definition: - * A scheduled appointment for a patient and/or practitioner(s) where a service may take place. - *
- * - *- * Requirements: - * - *
- * - *- * Profile Definition: - * http://hl7.org/fhir/profiles/Appointment - *
- * - */ -@ResourceDef(name="Appointment", profile="http://hl7.org/fhir/profiles/Appointment", id="appointment") -public class Appointment extends BaseResource implements IResource { - - /** - * Search parameter constant for date - *
- * Description: Appointment date/time.
- * Type: date
- * Path: Appointment.start
- *
- * Description: Appointment date/time.
- * Type: date
- * Path: Appointment.start
- *
- * Description: The overall status of the appointment
- * Type: string
- * Path: Appointment.status
- *
- * Description: The overall status of the appointment
- * Type: string
- * Path: Appointment.status
- *
- * Description: The subject that the sensitivity is about
- * Type: reference
- * Path: Appointment.participant.individual
- *
- * Description: The subject that the sensitivity is about
- * Type: reference
- * Path: Appointment.participant.individual
- *
- * Description: The Participation status of the subject, or other participant on the appointment
- * Type: token
- * Path: Appointment.participant.status
- *
- * Description: The Participation status of the subject, or other participant on the appointment
- * Type: token
- * Path: Appointment.participant.status
- *
null
.
- *
- * - * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- */ - public java.util.List- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- */ - public Appointment setIdentifier(java.util.List- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (External Ids for this item), - * creating it if it does not already exist. - * - *- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (External Ids for this item) - * - *- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Appointment addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Appointment addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayListnull
.
- *
- * - * Definition: - * - *
- */ - public IntegerDt getPriority() { - if (myPriority == null) { - myPriority = new IntegerDt(); - } - return myPriority; - } - - /** - * Sets the value(s) for priority (The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority) (Need to change back to CodeableConcept)) - * - *- * Definition: - * - *
- */ - public Appointment setPriority(IntegerDt theValue) { - myPriority = theValue; - return this; - } - - /** - * Sets the value for priority (The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority) (Need to change back to CodeableConcept)) - * - *- * Definition: - * - *
- */ - public Appointment setPriority( int theInteger) { - myPriority = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for status (The overall status of the Appointment). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status - *
- */ - public CodeDt getStatus() { - if (myStatus == null) { - myStatus = new CodeDt(); - } - return myStatus; - } - - /** - * Sets the value(s) for status (The overall status of the Appointment) - * - *- * Definition: - * Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status - *
- */ - public Appointment setStatus(CodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value for status (The overall status of the Appointment) - * - *- * Definition: - * Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status - *
- */ - public Appointment setStatus( String theCode) { - myStatus = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for description (The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public StringDt getDescription() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - /** - * Sets the value(s) for description (The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field) - * - *- * Definition: - * - *
- */ - public Appointment setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - /** - * Sets the value for description (The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field) - * - *- * Definition: - * - *
- */ - public Appointment setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for start (Date/Time that the appointment is to take place). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public InstantDt getStart() { - if (myStart == null) { - myStart = new InstantDt(); - } - return myStart; - } - - /** - * Sets the value(s) for start (Date/Time that the appointment is to take place) - * - *- * Definition: - * - *
- */ - public Appointment setStart(InstantDt theValue) { - myStart = theValue; - return this; - } - - /** - * Sets the value for start (Date/Time that the appointment is to take place) - * - *- * Definition: - * - *
- */ - public Appointment setStart( Date theDate, TemporalPrecisionEnum thePrecision) { - myStart = new InstantDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for start (Date/Time that the appointment is to take place) - * - *- * Definition: - * - *
- */ - public Appointment setStartWithMillisPrecision( Date theDate) { - myStart = new InstantDt(theDate); - return this; - } - - - /** - * Gets the value(s) for end (Date/Time that the appointment is to conclude). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public InstantDt getEnd() { - if (myEnd == null) { - myEnd = new InstantDt(); - } - return myEnd; - } - - /** - * Sets the value(s) for end (Date/Time that the appointment is to conclude) - * - *- * Definition: - * - *
- */ - public Appointment setEnd(InstantDt theValue) { - myEnd = theValue; - return this; - } - - /** - * Sets the value for end (Date/Time that the appointment is to conclude) - * - *- * Definition: - * - *
- */ - public Appointment setEnd( Date theDate, TemporalPrecisionEnum thePrecision) { - myEnd = new InstantDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for end (Date/Time that the appointment is to conclude) - * - *- * Definition: - * - *
- */ - public Appointment setEndWithMillisPrecision( Date theDate) { - myEnd = new InstantDt(theDate); - return this; - } - - - /** - * Gets the value(s) for schedule (The recurrence schedule for the appointment. The end date in the schedule marks the end of the recurrence(s), not the end of an individual appointment). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public ScheduleDt getSchedule() { - if (mySchedule == null) { - mySchedule = new ScheduleDt(); - } - return mySchedule; - } - - /** - * Sets the value(s) for schedule (The recurrence schedule for the appointment. The end date in the schedule marks the end of the recurrence(s), not the end of an individual appointment) - * - *- * Definition: - * - *
- */ - public Appointment setSchedule(ScheduleDt theValue) { - mySchedule = theValue; - return this; - } - - - /** - * Gets the value(s) for timezone (The timezone that the times are to be converted to. Required for recurring appointments to remain accurate where the schedule makes the appointment cross a daylight saving boundry). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The timezone should be a value referenced from a timezone database - *
- */ - public StringDt getTimezone() { - if (myTimezone == null) { - myTimezone = new StringDt(); - } - return myTimezone; - } - - /** - * Sets the value(s) for timezone (The timezone that the times are to be converted to. Required for recurring appointments to remain accurate where the schedule makes the appointment cross a daylight saving boundry) - * - *- * Definition: - * The timezone should be a value referenced from a timezone database - *
- */ - public Appointment setTimezone(StringDt theValue) { - myTimezone = theValue; - return this; - } - - /** - * Sets the value for timezone (The timezone that the times are to be converted to. Required for recurring appointments to remain accurate where the schedule makes the appointment cross a daylight saving boundry) - * - *- * Definition: - * The timezone should be a value referenced from a timezone database - *
- */ - public Appointment setTimezone( String theString) { - myTimezone = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for slot (The slot that this appointment is filling. If provided then the schedule will not be provided as slots are not recursive, and the start/end values MUST be the same as from the slot). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public java.util.List- * Definition: - * - *
- */ - public Appointment setSlot(java.util.List- * Definition: - * - *
- */ - public ResourceReferenceDt addSlot() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getSlot().add(newType); - return newType; - } - - /** - * Gets the value(s) for location (The primary location that this appointment is to take place). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public ResourceReferenceDt getLocation() { - if (myLocation == null) { - myLocation = new ResourceReferenceDt(); - } - return myLocation; - } - - /** - * Sets the value(s) for location (The primary location that this appointment is to take place) - * - *- * Definition: - * - *
- */ - public Appointment setLocation(ResourceReferenceDt theValue) { - myLocation = theValue; - return this; - } - - - /** - * Gets the value(s) for comment (Additional comments about the appointment). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public StringDt getComment() { - if (myComment == null) { - myComment = new StringDt(); - } - return myComment; - } - - /** - * Sets the value(s) for comment (Additional comments about the appointment) - * - *- * Definition: - * - *
- */ - public Appointment setComment(StringDt theValue) { - myComment = theValue; - return this; - } - - /** - * Sets the value for comment (Additional comments about the appointment) - * - *- * Definition: - * - *
- */ - public Appointment setComment( String theString) { - myComment = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for order (An Order that lead to the creation of this appointment). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public ResourceReferenceDt getOrder() { - if (myOrder == null) { - myOrder = new ResourceReferenceDt(); - } - return myOrder; - } - - /** - * Sets the value(s) for order (An Order that lead to the creation of this appointment) - * - *- * Definition: - * - *
- */ - public Appointment setOrder(ResourceReferenceDt theValue) { - myOrder = theValue; - return this; - } - - - /** - * Gets the value(s) for participant (List of participants involved in the appointment). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public java.util.List- * Definition: - * - *
- */ - public Appointment setParticipant(java.util.List- * Definition: - * - *
- */ - public Participant addParticipant() { - Participant newType = new Participant(); - getParticipant().add(newType); - return newType; - } - - /** - * Gets the first repetition for participant (List of participants involved in the appointment), - * creating it if it does not already exist. - * - *- * Definition: - * - *
- */ - public Participant getParticipantFirstRep() { - if (getParticipant().isEmpty()) { - return addParticipant(); - } - return getParticipant().get(0); - } - - /** - * Gets the value(s) for recorder (Who recorded the appointment). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public ResourceReferenceDt getRecorder() { - if (myRecorder == null) { - myRecorder = new ResourceReferenceDt(); - } - return myRecorder; - } - - /** - * Sets the value(s) for recorder (Who recorded the appointment) - * - *- * Definition: - * - *
- */ - public Appointment setRecorder(ResourceReferenceDt theValue) { - myRecorder = theValue; - return this; - } - - - /** - * Gets the value(s) for recordedDate (Date when the sensitivity was recorded). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public DateTimeDt getRecordedDate() { - if (myRecordedDate == null) { - myRecordedDate = new DateTimeDt(); - } - return myRecordedDate; - } - - /** - * Sets the value(s) for recordedDate (Date when the sensitivity was recorded) - * - *- * Definition: - * - *
- */ - public Appointment setRecordedDate(DateTimeDt theValue) { - myRecordedDate = theValue; - return this; - } - - /** - * Sets the value for recordedDate (Date when the sensitivity was recorded) - * - *- * Definition: - * - *
- */ - public Appointment setRecordedDateWithSecondsPrecision( Date theDate) { - myRecordedDate = new DateTimeDt(theDate); - return this; - } - - /** - * Sets the value for recordedDate (Date when the sensitivity was recorded) - * - *- * Definition: - * - *
- */ - public Appointment setRecordedDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myRecordedDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - - /** - * Block class for child element: Appointment.participant (List of participants involved in the appointment) - * - *- * Definition: - * - *
- */ - @Block() - public static class Participant extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="type", type=CodeableConceptDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Role of participant in the appointment", - formalDefinition="" - ) - private java.util.Listnull
.
- *
- * - * Definition: - * - *
- */ - public java.util.List- * Definition: - * - *
- */ - public Participant setType(java.util.List- * Definition: - * - *
- */ - public BoundCodeableConceptDt- * Definition: - * - *
- */ - public BoundCodeableConceptDt- * Definition: - * - *
- */ - public BoundCodeableConceptDt- * Definition: - * - *
- */ - public Participant setType(ParticipantTypeEnum theValue) { - getType().clear(); - addType(theValue); - return this; - } - - - /** - * Gets the value(s) for individual (A Person of device that is participating in the appointment). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public java.util.List- * Definition: - * - *
- */ - public Participant setIndividual(java.util.List- * Definition: - * - *
- */ - public ResourceReferenceDt addIndividual() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getIndividual().add(newType); - return newType; - } - - /** - * Gets the value(s) for required (required | optional | information-only). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Is this participant required to be present at the meeting. This covers a use-case where 2 doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present. - *
- */ - public CodeDt getRequired() { - if (myRequired == null) { - myRequired = new CodeDt(); - } - return myRequired; - } - - /** - * Sets the value(s) for required (required | optional | information-only) - * - *- * Definition: - * Is this participant required to be present at the meeting. This covers a use-case where 2 doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present. - *
- */ - public Participant setRequired(CodeDt theValue) { - myRequired = theValue; - return this; - } - - /** - * Sets the value for required (required | optional | information-only) - * - *- * Definition: - * Is this participant required to be present at the meeting. This covers a use-case where 2 doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present. - *
- */ - public Participant setRequired( String theCode) { - myRequired = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for status (accepted | declined | tentative | in-process | completed | needs-action). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Participation status of the Patient - *
- */ - public CodeDt getStatus() { - if (myStatus == null) { - myStatus = new CodeDt(); - } - return myStatus; - } - - /** - * Sets the value(s) for status (accepted | declined | tentative | in-process | completed | needs-action) - * - *- * Definition: - * Participation status of the Patient - *
- */ - public Participant setStatus(CodeDt theValue) { - myStatus = theValue; - return this; - } - - /** - * Sets the value for status (accepted | declined | tentative | in-process | completed | needs-action) - * - *- * Definition: - * Participation status of the Patient - *
- */ - public Participant setStatus( String theCode) { - myStatus = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for observation (Observations that lead to the creation of this appointment. (Is this 80%)). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public java.util.List- * Definition: - * - *
- */ - public Participant setObservation(java.util.List- * Definition: - * - *
- */ - public ResourceReferenceDt addObservation() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getObservation().add(newType); - return newType; - } - - - } - - - - -} diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/AppointmentResponse.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/AppointmentResponse.java deleted file mode 100644 index b946d191cb6..00000000000 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/AppointmentResponse.java +++ /dev/null @@ -1,894 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - -/* - * #%L - * HAPI FHIR - Core Library - * %% - * Copyright (C) 2014 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - - -import java.util.Date; -import java.util.List; - -import ca.uhn.fhir.model.api.BaseResource; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.Include; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.api.annotation.ResourceDef; -import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum; -import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.InstantDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.rest.gclient.ReferenceClientParam; -import ca.uhn.fhir.rest.gclient.StringClientParam; - - -/** - * HAPI/FHIR AppointmentResponse Resource - * ((informative) A response to a scheduled appointment for a patient and/or practitioner(s)) - * - *- * Definition: - * A scheduled appointment for a patient and/or practitioner(s) where a service may take place. - *
- * - *- * Requirements: - * - *
- * - *- * Profile Definition: - * http://hl7.org/fhir/profiles/AppointmentResponse - *
- * - */ -@ResourceDef(name="AppointmentResponse", profile="http://hl7.org/fhir/profiles/AppointmentResponse", id="appointmentresponse") -public class AppointmentResponse extends BaseResource implements IResource { - - /** - * Search parameter constant for partstatus - *
- * Description: The overall status of the appointment
- * Type: string
- * Path: AppointmentResponse.participantStatus
- *
- * Description: The overall status of the appointment
- * Type: string
- * Path: AppointmentResponse.participantStatus
- *
- * Description: The subject that the appointment response replies for
- * Type: reference
- * Path: AppointmentResponse.individual
- *
- * Description: The subject that the appointment response replies for
- * Type: reference
- * Path: AppointmentResponse.individual
- *
- * Description: The appointment that the response is attached to
- * Type: reference
- * Path: AppointmentResponse.appointment
- *
- * Description: The appointment that the response is attached to
- * Type: reference
- * Path: AppointmentResponse.appointment
- *
null
.
- *
- * - * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- */ - public java.util.List- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- */ - public AppointmentResponse setIdentifier(java.util.List- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (External Ids for this item), - * creating it if it does not already exist. - * - *- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (External Ids for this item) - * - *- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public AppointmentResponse addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList- * Definition: - * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public AppointmentResponse addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayListnull
.
- *
- * - * Definition: - * - *
- */ - public ResourceReferenceDt getAppointment() { - if (myAppointment == null) { - myAppointment = new ResourceReferenceDt(); - } - return myAppointment; - } - - /** - * Sets the value(s) for appointment (Parent appointment that this response is replying to) - * - *- * Definition: - * - *
- */ - public AppointmentResponse setAppointment(ResourceReferenceDt theValue) { - myAppointment = theValue; - return this; - } - - - /** - * Gets the value(s) for participantType (Role of participant in the appointment). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public java.util.List- * Definition: - * - *
- */ - public AppointmentResponse setParticipantType(java.util.List- * Definition: - * - *
- */ - public BoundCodeableConceptDt- * Definition: - * - *
- */ - public BoundCodeableConceptDt- * Definition: - * - *
- */ - public BoundCodeableConceptDt- * Definition: - * - *
- */ - public AppointmentResponse setParticipantType(ParticipantTypeEnum theValue) { - getParticipantType().clear(); - addParticipantType(theValue); - return this; - } - - - /** - * Gets the value(s) for individual (A Person of device that is participating in the appointment). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public java.util.List- * Definition: - * - *
- */ - public AppointmentResponse setIndividual(java.util.List- * Definition: - * - *
- */ - public ResourceReferenceDt addIndividual() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getIndividual().add(newType); - return newType; - } - - /** - * Gets the value(s) for participantStatus (accepted | declined | tentative | in-process | completed | needs-action). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Participation status of the Patient - *
- */ - public CodeDt getParticipantStatus() { - if (myParticipantStatus == null) { - myParticipantStatus = new CodeDt(); - } - return myParticipantStatus; - } - - /** - * Sets the value(s) for participantStatus (accepted | declined | tentative | in-process | completed | needs-action) - * - *- * Definition: - * Participation status of the Patient - *
- */ - public AppointmentResponse setParticipantStatus(CodeDt theValue) { - myParticipantStatus = theValue; - return this; - } - - /** - * Sets the value for participantStatus (accepted | declined | tentative | in-process | completed | needs-action) - * - *- * Definition: - * Participation status of the Patient - *
- */ - public AppointmentResponse setParticipantStatus( String theCode) { - myParticipantStatus = new CodeDt(theCode); - return this; - } - - - /** - * Gets the value(s) for comment (Additional comments about the appointment). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public StringDt getComment() { - if (myComment == null) { - myComment = new StringDt(); - } - return myComment; - } - - /** - * Sets the value(s) for comment (Additional comments about the appointment) - * - *- * Definition: - * - *
- */ - public AppointmentResponse setComment(StringDt theValue) { - myComment = theValue; - return this; - } - - /** - * Sets the value for comment (Additional comments about the appointment) - * - *- * Definition: - * - *
- */ - public AppointmentResponse setComment( String theString) { - myComment = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for start (Date/Time that the appointment is to take place). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public InstantDt getStart() { - if (myStart == null) { - myStart = new InstantDt(); - } - return myStart; - } - - /** - * Sets the value(s) for start (Date/Time that the appointment is to take place) - * - *- * Definition: - * - *
- */ - public AppointmentResponse setStart(InstantDt theValue) { - myStart = theValue; - return this; - } - - /** - * Sets the value for start (Date/Time that the appointment is to take place) - * - *- * Definition: - * - *
- */ - public AppointmentResponse setStart( Date theDate, TemporalPrecisionEnum thePrecision) { - myStart = new InstantDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for start (Date/Time that the appointment is to take place) - * - *- * Definition: - * - *
- */ - public AppointmentResponse setStartWithMillisPrecision( Date theDate) { - myStart = new InstantDt(theDate); - return this; - } - - - /** - * Gets the value(s) for end (Date/Time that the appointment is to conclude). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public InstantDt getEnd() { - if (myEnd == null) { - myEnd = new InstantDt(); - } - return myEnd; - } - - /** - * Sets the value(s) for end (Date/Time that the appointment is to conclude) - * - *- * Definition: - * - *
- */ - public AppointmentResponse setEnd(InstantDt theValue) { - myEnd = theValue; - return this; - } - - /** - * Sets the value for end (Date/Time that the appointment is to conclude) - * - *- * Definition: - * - *
- */ - public AppointmentResponse setEnd( Date theDate, TemporalPrecisionEnum thePrecision) { - myEnd = new InstantDt(theDate, thePrecision); - return this; - } - - /** - * Sets the value for end (Date/Time that the appointment is to conclude) - * - *- * Definition: - * - *
- */ - public AppointmentResponse setEndWithMillisPrecision( Date theDate) { - myEnd = new InstantDt(theDate); - return this; - } - - - /** - * Gets the value(s) for schedule (The recurrence schedule for the appointment. The end date in the schedule marks the end of the recurrence(s), not the end of an individual appointment). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public ScheduleDt getSchedule() { - if (mySchedule == null) { - mySchedule = new ScheduleDt(); - } - return mySchedule; - } - - /** - * Sets the value(s) for schedule (The recurrence schedule for the appointment. The end date in the schedule marks the end of the recurrence(s), not the end of an individual appointment) - * - *- * Definition: - * - *
- */ - public AppointmentResponse setSchedule(ScheduleDt theValue) { - mySchedule = theValue; - return this; - } - - - /** - * Gets the value(s) for timezone (The timezone that the times are to be converted to. Required for recurring appointments to remain accurate where the schedule makes the appointment cross a daylight saving boundry). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The timezone should be a value referenced from a timezone database - *
- */ - public StringDt getTimezone() { - if (myTimezone == null) { - myTimezone = new StringDt(); - } - return myTimezone; - } - - /** - * Sets the value(s) for timezone (The timezone that the times are to be converted to. Required for recurring appointments to remain accurate where the schedule makes the appointment cross a daylight saving boundry) - * - *- * Definition: - * The timezone should be a value referenced from a timezone database - *
- */ - public AppointmentResponse setTimezone(StringDt theValue) { - myTimezone = theValue; - return this; - } - - /** - * Sets the value for timezone (The timezone that the times are to be converted to. Required for recurring appointments to remain accurate where the schedule makes the appointment cross a daylight saving boundry) - * - *- * Definition: - * The timezone should be a value referenced from a timezone database - *
- */ - public AppointmentResponse setTimezone( String theString) { - myTimezone = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for recorder (Who recorded the appointment response). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public ResourceReferenceDt getRecorder() { - if (myRecorder == null) { - myRecorder = new ResourceReferenceDt(); - } - return myRecorder; - } - - /** - * Sets the value(s) for recorder (Who recorded the appointment response) - * - *- * Definition: - * - *
- */ - public AppointmentResponse setRecorder(ResourceReferenceDt theValue) { - myRecorder = theValue; - return this; - } - - - /** - * Gets the value(s) for recordedDate (Date when the response was recorded or last updated). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public DateTimeDt getRecordedDate() { - if (myRecordedDate == null) { - myRecordedDate = new DateTimeDt(); - } - return myRecordedDate; - } - - /** - * Sets the value(s) for recordedDate (Date when the response was recorded or last updated) - * - *- * Definition: - * - *
- */ - public AppointmentResponse setRecordedDate(DateTimeDt theValue) { - myRecordedDate = theValue; - return this; - } - - /** - * Sets the value for recordedDate (Date when the response was recorded or last updated) - * - *- * Definition: - * - *
- */ - public AppointmentResponse setRecordedDateWithSecondsPrecision( Date theDate) { - myRecordedDate = new DateTimeDt(theDate); - return this; - } - - /** - * Sets the value for recordedDate (Date when the response was recorded or last updated) - * - *- * Definition: - * - *
- */ - public AppointmentResponse setRecordedDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myRecordedDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - - - -} diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Availability.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Availability.java deleted file mode 100644 index 5ec3dc3b750..00000000000 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Availability.java +++ /dev/null @@ -1,520 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - -/* - * #%L - * HAPI FHIR - Core Library - * %% - * Copyright (C) 2014 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - - -import java.util.Date; -import java.util.List; - -import ca.uhn.fhir.model.api.BaseResource; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.Include; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.api.annotation.ResourceDef; -import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.rest.gclient.ReferenceClientParam; -import ca.uhn.fhir.rest.gclient.TokenClientParam; - - -/** - * HAPI/FHIR Availability Resource - * ((informative) A container for slot(s) of time that may be available for booking appointments) - * - *- * Definition: - * - *
- * - *- * Requirements: - * - *
- * - *- * Profile Definition: - * http://hl7.org/fhir/profiles/Availability - *
- * - */ -@ResourceDef(name="Availability", profile="http://hl7.org/fhir/profiles/Availability", id="availability") -public class Availability extends BaseResource implements IResource { - - /** - * Search parameter constant for individual - *
- * Description: The individual to find an availability for
- * Type: reference
- * Path: Availability.individual
- *
- * Description: The individual to find an availability for
- * Type: reference
- * Path: Availability.individual
- *
- * Description: The type of appointments that can be booked into associated slot(s)
- * Type: token
- * Path: Availability.type
- *
- * Description: The type of appointments that can be booked into associated slot(s)
- * Type: token
- * Path: Availability.type
- *
null
.
- *
- * - * Definition: - * - *
- */ - public java.util.List- * Definition: - * - *
- */ - public Availability setIdentifier(java.util.List- * Definition: - * - *
- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (External Ids for this item), - * creating it if it does not already exist. - * - *- * Definition: - * - *
- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (External Ids for this item) - * - *- * Definition: - * - *
- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Availability addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList- * Definition: - * - *
- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public Availability addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayListnull
.
- *
- * - * Definition: - * - *
- */ - public CodeableConceptDt getType() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - /** - * Sets the value(s) for type (The type of appointments that can be booked into slots attached to this availability resource (ideally this would be an identifiable service - which is at a location, rather than the location itself) - change to CodeableConcept) - * - *- * Definition: - * - *
- */ - public Availability setType(CodeableConceptDt theValue) { - myType = theValue; - return this; - } - - - /** - * Gets the value(s) for individual (The type of resource this availability resource is providing availability information for). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public ResourceReferenceDt getIndividual() { - if (myIndividual == null) { - myIndividual = new ResourceReferenceDt(); - } - return myIndividual; - } - - /** - * Sets the value(s) for individual (The type of resource this availability resource is providing availability information for) - * - *- * Definition: - * - *
- */ - public Availability setIndividual(ResourceReferenceDt theValue) { - myIndividual = theValue; - return this; - } - - - /** - * Gets the value(s) for period (The period of time that the slots that are attached to this availability resource cover (even if none exist)). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - /** - * Sets the value(s) for period (The period of time that the slots that are attached to this availability resource cover (even if none exist)) - * - *- * Definition: - * - *
- */ - public Availability setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - /** - * Gets the value(s) for comment (Comments on the availability to describe any extended information. Such as custom constraints on the slot(s) that may be associated). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public StringDt getComment() { - if (myComment == null) { - myComment = new StringDt(); - } - return myComment; - } - - /** - * Sets the value(s) for comment (Comments on the availability to describe any extended information. Such as custom constraints on the slot(s) that may be associated) - * - *- * Definition: - * - *
- */ - public Availability setComment(StringDt theValue) { - myComment = theValue; - return this; - } - - /** - * Sets the value for comment (Comments on the availability to describe any extended information. Such as custom constraints on the slot(s) that may be associated) - * - *- * Definition: - * - *
- */ - public Availability setComment( String theString) { - myComment = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for author (Who authored the availability). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public ResourceReferenceDt getAuthor() { - if (myAuthor == null) { - myAuthor = new ResourceReferenceDt(); - } - return myAuthor; - } - - /** - * Sets the value(s) for author (Who authored the availability) - * - *- * Definition: - * - *
- */ - public Availability setAuthor(ResourceReferenceDt theValue) { - myAuthor = theValue; - return this; - } - - - /** - * Gets the value(s) for authorDate (When this availability was created, or last revised). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public DateTimeDt getAuthorDate() { - if (myAuthorDate == null) { - myAuthorDate = new DateTimeDt(); - } - return myAuthorDate; - } - - /** - * Sets the value(s) for authorDate (When this availability was created, or last revised) - * - *- * Definition: - * - *
- */ - public Availability setAuthorDate(DateTimeDt theValue) { - myAuthorDate = theValue; - return this; - } - - /** - * Sets the value for authorDate (When this availability was created, or last revised) - * - *- * Definition: - * - *
- */ - public Availability setAuthorDateWithSecondsPrecision( Date theDate) { - myAuthorDate = new DateTimeDt(theDate); - return this; - } - - /** - * Sets the value for authorDate (When this availability was created, or last revised) - * - *- * Definition: - * - *
- */ - public Availability setAuthorDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myAuthorDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - - - -} diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/CarePlan.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/CarePlan.java deleted file mode 100644 index 267dbaff32f..00000000000 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/CarePlan.java +++ /dev/null @@ -1,2159 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - -/* - * #%L - * HAPI FHIR - Core Library - * %% - * Copyright (C) 2014 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - - -import java.util.Date; -import java.util.List; - -import ca.uhn.fhir.model.api.BaseIdentifiableElement; -import ca.uhn.fhir.model.api.BaseResource; -import ca.uhn.fhir.model.api.IDatatype; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.IResourceBlock; -import ca.uhn.fhir.model.api.Include; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.api.annotation.Block; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.api.annotation.ResourceDef; -import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.composite.QuantityDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.composite.ScheduleDt; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.IdrefDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.rest.gclient.DateClientParam; -import ca.uhn.fhir.rest.gclient.ReferenceClientParam; -import ca.uhn.fhir.rest.gclient.TokenClientParam; - - -/** - * HAPI/FHIR CarePlan Resource - * (Healthcare plan for patient) - * - *- * Definition: - * Describes the intention of how one or more practitioners intend to deliver care for a particular patient for a period of time, possibly limited to care for a specific condition or set of conditions. - *
- * - *- * Requirements: - * - *
- * - *- * Profile Definition: - * http://hl7.org/fhir/profiles/CarePlan - *
- * - */ -@ResourceDef(name="CarePlan", profile="http://hl7.org/fhir/profiles/CarePlan", id="careplan") -public class CarePlan extends BaseResource implements IResource { - - /** - * Search parameter constant for patient - *
- * Description:
- * Type: reference
- * Path: CarePlan.patient
- *
- * Description:
- * Type: reference
- * Path: CarePlan.patient
- *
- * Description:
- * Type: reference
- * Path: CarePlan.concern
- *
- * Description:
- * Type: reference
- * Path: CarePlan.concern
- *
- * Description:
- * Type: date
- * Path: CarePlan.period
- *
- * Description:
- * Type: date
- * Path: CarePlan.period
- *
- * Description:
- * Type: reference
- * Path: CarePlan.participant.member
- *
- * Description:
- * Type: reference
- * Path: CarePlan.participant.member
- *
- * Description:
- * Type: token
- * Path: CarePlan.activity.simple.code
- *
- * Description:
- * Type: token
- * Path: CarePlan.activity.simple.code
- *
- * Description: Specified date occurs within period specified by CarePlan.activity.timingSchedule
- * Type: date
- * Path: CarePlan.activity.simple.timing[x]
- *
- * Description: Specified date occurs within period specified by CarePlan.activity.timingSchedule
- * Type: date
- * Path: CarePlan.activity.simple.timing[x]
- *
- * Description:
- * Type: reference
- * Path: CarePlan.activity.detail
- *
- * Description:
- * Type: reference
- * Path: CarePlan.activity.detail
- *
null
.
- *
- * - * Definition: - * This records identifiers associated with this care plan that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- */ - public java.util.List- * Definition: - * This records identifiers associated with this care plan that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- */ - public CarePlan setIdentifier(java.util.List- * Definition: - * This records identifiers associated with this care plan that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- */ - public IdentifierDt addIdentifier() { - IdentifierDt newType = new IdentifierDt(); - getIdentifier().add(newType); - return newType; - } - - /** - * Gets the first repetition for identifier (External Ids for this plan), - * creating it if it does not already exist. - * - *- * Definition: - * This records identifiers associated with this care plan that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- */ - public IdentifierDt getIdentifierFirstRep() { - if (getIdentifier().isEmpty()) { - return addIdentifier(); - } - return getIdentifier().get(0); - } - /** - * Adds a new value for identifier (External Ids for this plan) - * - *- * Definition: - * This records identifiers associated with this care plan that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public CarePlan addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayList- * Definition: - * This records identifiers associated with this care plan that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation) - *
- * - * @return Returns a reference to this object, to allow for simple chaining. - */ - public CarePlan addIdentifier( String theSystem, String theValue) { - if (myIdentifier == null) { - myIdentifier = new java.util.ArrayListnull
.
- *
- * - * Definition: - * Identifies the patient/subject whose intended care is described by the plan. - *
- */ - public ResourceReferenceDt getPatient() { - if (myPatient == null) { - myPatient = new ResourceReferenceDt(); - } - return myPatient; - } - - /** - * Sets the value(s) for patient (Who care plan is for) - * - *- * Definition: - * Identifies the patient/subject whose intended care is described by the plan. - *
- */ - public CarePlan setPatient(ResourceReferenceDt theValue) { - myPatient = theValue; - return this; - } - - - /** - * Gets the value(s) for status (planned | active | completed). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record. - *
- */ - public BoundCodeDt- * Definition: - * Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record. - *
- */ - public CarePlan setStatus(BoundCodeDt- * Definition: - * Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record. - *
- */ - public CarePlan setStatus(CarePlanStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for period (Time period plan covers). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Indicates when the plan did (or is intended to) come into effect and end. - *
- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - /** - * Sets the value(s) for period (Time period plan covers) - * - *- * Definition: - * Indicates when the plan did (or is intended to) come into effect and end. - *
- */ - public CarePlan setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - /** - * Gets the value(s) for modified (When last updated). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Identifies the most recent date on which the plan has been revised. - *
- */ - public DateTimeDt getModified() { - if (myModified == null) { - myModified = new DateTimeDt(); - } - return myModified; - } - - /** - * Sets the value(s) for modified (When last updated) - * - *- * Definition: - * Identifies the most recent date on which the plan has been revised. - *
- */ - public CarePlan setModified(DateTimeDt theValue) { - myModified = theValue; - return this; - } - - /** - * Sets the value for modified (When last updated) - * - *- * Definition: - * Identifies the most recent date on which the plan has been revised. - *
- */ - public CarePlan setModifiedWithSecondsPrecision( Date theDate) { - myModified = new DateTimeDt(theDate); - return this; - } - - /** - * Sets the value for modified (When last updated) - * - *- * Definition: - * Identifies the most recent date on which the plan has been revised. - *
- */ - public CarePlan setModified( Date theDate, TemporalPrecisionEnum thePrecision) { - myModified = new DateTimeDt(theDate, thePrecision); - return this; - } - - - /** - * Gets the value(s) for concern (Health issues this plan addresses). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan. - *
- */ - public java.util.List- * Definition: - * Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan. - *
- */ - public CarePlan setConcern(java.util.List- * Definition: - * Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan. - *
- */ - public ResourceReferenceDt addConcern() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getConcern().add(newType); - return newType; - } - - /** - * Gets the value(s) for participant (Who's involved in plan?). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Identifies all people and organizations who are expected to be involved in the care envisioned by this plan. - *
- */ - public java.util.List- * Definition: - * Identifies all people and organizations who are expected to be involved in the care envisioned by this plan. - *
- */ - public CarePlan setParticipant(java.util.List- * Definition: - * Identifies all people and organizations who are expected to be involved in the care envisioned by this plan. - *
- */ - public Participant addParticipant() { - Participant newType = new Participant(); - getParticipant().add(newType); - return newType; - } - - /** - * Gets the first repetition for participant (Who's involved in plan?), - * creating it if it does not already exist. - * - *- * Definition: - * Identifies all people and organizations who are expected to be involved in the care envisioned by this plan. - *
- */ - public Participant getParticipantFirstRep() { - if (getParticipant().isEmpty()) { - return addParticipant(); - } - return getParticipant().get(0); - } - - /** - * Gets the value(s) for goal (Desired outcome of plan). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Describes the intended objective(s) of carrying out the Care Plan. - *
- */ - public java.util.List- * Definition: - * Describes the intended objective(s) of carrying out the Care Plan. - *
- */ - public CarePlan setGoal(java.util.List- * Definition: - * Describes the intended objective(s) of carrying out the Care Plan. - *
- */ - public Goal addGoal() { - Goal newType = new Goal(); - getGoal().add(newType); - return newType; - } - - /** - * Gets the first repetition for goal (Desired outcome of plan), - * creating it if it does not already exist. - * - *- * Definition: - * Describes the intended objective(s) of carrying out the Care Plan. - *
- */ - public Goal getGoalFirstRep() { - if (getGoal().isEmpty()) { - return addGoal(); - } - return getGoal().get(0); - } - - /** - * Gets the value(s) for activity (Action to occur as part of plan). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc. - *
- */ - public java.util.List- * Definition: - * Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc. - *
- */ - public CarePlan setActivity(java.util.List- * Definition: - * Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc. - *
- */ - public Activity addActivity() { - Activity newType = new Activity(); - getActivity().add(newType); - return newType; - } - - /** - * Gets the first repetition for activity (Action to occur as part of plan), - * creating it if it does not already exist. - * - *- * Definition: - * Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc. - *
- */ - public Activity getActivityFirstRep() { - if (getActivity().isEmpty()) { - return addActivity(); - } - return getActivity().get(0); - } - - /** - * Gets the value(s) for notes (Comments about the plan). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * General notes about the care plan not covered elsewhere - *
- */ - public StringDt getNotes() { - if (myNotes == null) { - myNotes = new StringDt(); - } - return myNotes; - } - - /** - * Sets the value(s) for notes (Comments about the plan) - * - *- * Definition: - * General notes about the care plan not covered elsewhere - *
- */ - public CarePlan setNotes(StringDt theValue) { - myNotes = theValue; - return this; - } - - /** - * Sets the value for notes (Comments about the plan) - * - *- * Definition: - * General notes about the care plan not covered elsewhere - *
- */ - public CarePlan setNotes( String theString) { - myNotes = new StringDt(theString); - return this; - } - - - /** - * Block class for child element: CarePlan.participant (Who's involved in plan?) - * - *- * Definition: - * Identifies all people and organizations who are expected to be involved in the care envisioned by this plan. - *
- */ - @Block() - public static class Participant extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="role", type=CodeableConceptDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Type of involvement", - formalDefinition="Indicates specific responsibility of an individual within the care plan. E.g. \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc." - ) - private CodeableConceptDt myRole; - - @Child(name="member", order=1, min=1, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class, ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="Who is involved", - formalDefinition="The specific person or organization who is participating/expected to participate in the care plan." - ) - private ResourceReferenceDt myMember; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myRole, myMember); - } - - @Override - publicnull
.
- *
- * - * Definition: - * Indicates specific responsibility of an individual within the care plan. E.g. \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc. - *
- */ - public CodeableConceptDt getRole() { - if (myRole == null) { - myRole = new CodeableConceptDt(); - } - return myRole; - } - - /** - * Sets the value(s) for role (Type of involvement) - * - *- * Definition: - * Indicates specific responsibility of an individual within the care plan. E.g. \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc. - *
- */ - public Participant setRole(CodeableConceptDt theValue) { - myRole = theValue; - return this; - } - - - /** - * Gets the value(s) for member (Who is involved). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The specific person or organization who is participating/expected to participate in the care plan. - *
- */ - public ResourceReferenceDt getMember() { - if (myMember == null) { - myMember = new ResourceReferenceDt(); - } - return myMember; - } - - /** - * Sets the value(s) for member (Who is involved) - * - *- * Definition: - * The specific person or organization who is participating/expected to participate in the care plan. - *
- */ - public Participant setMember(ResourceReferenceDt theValue) { - myMember = theValue; - return this; - } - - - - } - - - /** - * Block class for child element: CarePlan.goal (Desired outcome of plan) - * - *- * Definition: - * Describes the intended objective(s) of carrying out the Care Plan. - *
- */ - @Block() - public static class Goal extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="description", type=StringDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="What's the desired outcome?", - formalDefinition="Human-readable description of a specific desired objective of the care plan." - ) - private StringDt myDescription; - - @Child(name="status", type=CodeDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="in progress | achieved | sustaining | cancelled", - formalDefinition="Indicates whether the goal has been reached and is still considered relevant" - ) - private BoundCodeDtnull
.
- *
- * - * Definition: - * Human-readable description of a specific desired objective of the care plan. - *
- */ - public StringDt getDescription() { - if (myDescription == null) { - myDescription = new StringDt(); - } - return myDescription; - } - - /** - * Sets the value(s) for description (What's the desired outcome?) - * - *- * Definition: - * Human-readable description of a specific desired objective of the care plan. - *
- */ - public Goal setDescription(StringDt theValue) { - myDescription = theValue; - return this; - } - - /** - * Sets the value for description (What's the desired outcome?) - * - *- * Definition: - * Human-readable description of a specific desired objective of the care plan. - *
- */ - public Goal setDescription( String theString) { - myDescription = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for status (in progress | achieved | sustaining | cancelled). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Indicates whether the goal has been reached and is still considered relevant - *
- */ - public BoundCodeDt- * Definition: - * Indicates whether the goal has been reached and is still considered relevant - *
- */ - public Goal setStatus(BoundCodeDt- * Definition: - * Indicates whether the goal has been reached and is still considered relevant - *
- */ - public Goal setStatus(CarePlanGoalStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for notes (Comments about the goal). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Any comments related to the goal - *
- */ - public StringDt getNotes() { - if (myNotes == null) { - myNotes = new StringDt(); - } - return myNotes; - } - - /** - * Sets the value(s) for notes (Comments about the goal) - * - *- * Definition: - * Any comments related to the goal - *
- */ - public Goal setNotes(StringDt theValue) { - myNotes = theValue; - return this; - } - - /** - * Sets the value for notes (Comments about the goal) - * - *- * Definition: - * Any comments related to the goal - *
- */ - public Goal setNotes( String theString) { - myNotes = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for concern (Health issues this goal addresses). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The identified conditions that this goal relates to - the condition that caused it to be created, or that it is intended to address - *
- */ - public java.util.List- * Definition: - * The identified conditions that this goal relates to - the condition that caused it to be created, or that it is intended to address - *
- */ - public Goal setConcern(java.util.List- * Definition: - * The identified conditions that this goal relates to - the condition that caused it to be created, or that it is intended to address - *
- */ - public ResourceReferenceDt addConcern() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getConcern().add(newType); - return newType; - } - - - } - - - /** - * Block class for child element: CarePlan.activity (Action to occur as part of plan) - * - *- * Definition: - * Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc. - *
- */ - @Block() - public static class Activity extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="goal", type=IdrefDt.class, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description( - shortDefinition="Goals this activity relates to", - formalDefinition="Internal reference that identifies the goals that this activity is intended to contribute towards meeting" - ) - private java.util.Listnull
.
- *
- * - * Definition: - * Internal reference that identifies the goals that this activity is intended to contribute towards meeting - *
- */ - public java.util.List- * Definition: - * Internal reference that identifies the goals that this activity is intended to contribute towards meeting - *
- */ - public Activity setGoal(java.util.List- * Definition: - * Internal reference that identifies the goals that this activity is intended to contribute towards meeting - *
- */ - public IdrefDt addGoal() { - IdrefDt newType = new IdrefDt(); - getGoal().add(newType); - return newType; - } - - /** - * Gets the first repetition for goal (Goals this activity relates to), - * creating it if it does not already exist. - * - *- * Definition: - * Internal reference that identifies the goals that this activity is intended to contribute towards meeting - *
- */ - public IdrefDt getGoalFirstRep() { - if (getGoal().isEmpty()) { - return addGoal(); - } - return getGoal().get(0); - } - - /** - * Gets the value(s) for status (not started | scheduled | in progress | on hold | completed | cancelled). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Identifies what progress is being made for the specific activity. - *
- */ - public BoundCodeDt- * Definition: - * Identifies what progress is being made for the specific activity. - *
- */ - public Activity setStatus(BoundCodeDt- * Definition: - * Identifies what progress is being made for the specific activity. - *
- */ - public Activity setStatus(CarePlanActivityStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for prohibited (Do NOT do). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * If true, indicates that the described activity is one that must NOT be engaged in when following the plan. - *
- */ - public BooleanDt getProhibited() { - if (myProhibited == null) { - myProhibited = new BooleanDt(); - } - return myProhibited; - } - - /** - * Sets the value(s) for prohibited (Do NOT do) - * - *- * Definition: - * If true, indicates that the described activity is one that must NOT be engaged in when following the plan. - *
- */ - public Activity setProhibited(BooleanDt theValue) { - myProhibited = theValue; - return this; - } - - /** - * Sets the value for prohibited (Do NOT do) - * - *- * Definition: - * If true, indicates that the described activity is one that must NOT be engaged in when following the plan. - *
- */ - public Activity setProhibited( boolean theBoolean) { - myProhibited = new BooleanDt(theBoolean); - return this; - } - - - /** - * Gets the value(s) for actionResulting (Appointments, orders, etc.). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Resources that describe follow-on actions resulting from the plan, such as drug prescriptions, encounter records, appointments, etc. - *
- */ - public java.util.List- * Definition: - * Resources that describe follow-on actions resulting from the plan, such as drug prescriptions, encounter records, appointments, etc. - *
- */ - public Activity setActionResulting(java.util.List- * Definition: - * Resources that describe follow-on actions resulting from the plan, such as drug prescriptions, encounter records, appointments, etc. - *
- */ - public ResourceReferenceDt addActionResulting() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getActionResulting().add(newType); - return newType; - } - - /** - * Gets the value(s) for notes (Comments about the activity). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Notes about the execution of the activity - *
- */ - public StringDt getNotes() { - if (myNotes == null) { - myNotes = new StringDt(); - } - return myNotes; - } - - /** - * Sets the value(s) for notes (Comments about the activity) - * - *- * Definition: - * Notes about the execution of the activity - *
- */ - public Activity setNotes(StringDt theValue) { - myNotes = theValue; - return this; - } - - /** - * Sets the value for notes (Comments about the activity) - * - *- * Definition: - * Notes about the execution of the activity - *
- */ - public Activity setNotes( String theString) { - myNotes = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for detail (Activity details defined in specific resource). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The details of the proposed activity represented in a specific resource - *
- */ - public ResourceReferenceDt getDetail() { - if (myDetail == null) { - myDetail = new ResourceReferenceDt(); - } - return myDetail; - } - - /** - * Sets the value(s) for detail (Activity details defined in specific resource) - * - *- * Definition: - * The details of the proposed activity represented in a specific resource - *
- */ - public Activity setDetail(ResourceReferenceDt theValue) { - myDetail = theValue; - return this; - } - - - /** - * Gets the value(s) for simple (Activity details summarised here). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * A simple summary of details suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc - *
- */ - public ActivitySimple getSimple() { - if (mySimple == null) { - mySimple = new ActivitySimple(); - } - return mySimple; - } - - /** - * Sets the value(s) for simple (Activity details summarised here) - * - *- * Definition: - * A simple summary of details suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc - *
- */ - public Activity setSimple(ActivitySimple theValue) { - mySimple = theValue; - return this; - } - - - - } - - /** - * Block class for child element: CarePlan.activity.simple (Activity details summarised here) - * - *- * Definition: - * A simple summary of details suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc - *
- */ - @Block() - public static class ActivitySimple extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="category", type=CodeDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="diet | drug | encounter | observation | procedure | supply | other", - formalDefinition="High-level categorization of the type of activity in a care plan." - ) - private BoundCodeDtnull
.
- *
- * - * Definition: - * High-level categorization of the type of activity in a care plan. - *
- */ - public BoundCodeDt- * Definition: - * High-level categorization of the type of activity in a care plan. - *
- */ - public ActivitySimple setCategory(BoundCodeDt- * Definition: - * High-level categorization of the type of activity in a care plan. - *
- */ - public ActivitySimple setCategory(CarePlanActivityCategoryEnum theValue) { - getCategory().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for code (Detail type of activity). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Detailed description of the type of activity. E.g. What lab test, what procedure, what kind of encounter. - *
- */ - public CodeableConceptDt getCode() { - if (myCode == null) { - myCode = new CodeableConceptDt(); - } - return myCode; - } - - /** - * Sets the value(s) for code (Detail type of activity) - * - *- * Definition: - * Detailed description of the type of activity. E.g. What lab test, what procedure, what kind of encounter. - *
- */ - public ActivitySimple setCode(CodeableConceptDt theValue) { - myCode = theValue; - return this; - } - - - /** - * Gets the value(s) for timing[x] (When activity is to occur). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The period, timing or frequency upon which the described activity is to occur. - *
- */ - public IDatatype getTiming() { - return myTiming; - } - - /** - * Sets the value(s) for timing[x] (When activity is to occur) - * - *- * Definition: - * The period, timing or frequency upon which the described activity is to occur. - *
- */ - public ActivitySimple setTiming(IDatatype theValue) { - myTiming = theValue; - return this; - } - - - /** - * Gets the value(s) for location (Where it should happen). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Identifies the facility where the activity will occur. E.g. home, hospital, specific clinic, etc. - *
- */ - public ResourceReferenceDt getLocation() { - if (myLocation == null) { - myLocation = new ResourceReferenceDt(); - } - return myLocation; - } - - /** - * Sets the value(s) for location (Where it should happen) - * - *- * Definition: - * Identifies the facility where the activity will occur. E.g. home, hospital, specific clinic, etc. - *
- */ - public ActivitySimple setLocation(ResourceReferenceDt theValue) { - myLocation = theValue; - return this; - } - - - /** - * Gets the value(s) for performer (Who's responsible?). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Identifies who's expected to be involved in the activity. - *
- */ - public java.util.List- * Definition: - * Identifies who's expected to be involved in the activity. - *
- */ - public ActivitySimple setPerformer(java.util.List- * Definition: - * Identifies who's expected to be involved in the activity. - *
- */ - public ResourceReferenceDt addPerformer() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getPerformer().add(newType); - return newType; - } - - /** - * Gets the value(s) for product (What's administered/supplied). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Identifies the food, drug or other product being consumed or supplied in the activity. - *
- */ - public ResourceReferenceDt getProduct() { - if (myProduct == null) { - myProduct = new ResourceReferenceDt(); - } - return myProduct; - } - - /** - * Sets the value(s) for product (What's administered/supplied) - * - *- * Definition: - * Identifies the food, drug or other product being consumed or supplied in the activity. - *
- */ - public ActivitySimple setProduct(ResourceReferenceDt theValue) { - myProduct = theValue; - return this; - } - - - /** - * Gets the value(s) for dailyAmount (How much consumed/day?). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Identifies the quantity expected to be consumed in a given day. - *
- */ - public QuantityDt getDailyAmount() { - if (myDailyAmount == null) { - myDailyAmount = new QuantityDt(); - } - return myDailyAmount; - } - - /** - * Sets the value(s) for dailyAmount (How much consumed/day?) - * - *- * Definition: - * Identifies the quantity expected to be consumed in a given day. - *
- */ - public ActivitySimple setDailyAmount(QuantityDt theValue) { - myDailyAmount = theValue; - return this; - } - - /** - * Sets the value for dailyAmount (How much consumed/day?) - * - *- * Definition: - * Identifies the quantity expected to be consumed in a given day. - *
- */ - public ActivitySimple setDailyAmount( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - myDailyAmount = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for dailyAmount (How much consumed/day?) - * - *- * Definition: - * Identifies the quantity expected to be consumed in a given day. - *
- */ - public ActivitySimple setDailyAmount( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - myDailyAmount = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for dailyAmount (How much consumed/day?) - * - *- * Definition: - * Identifies the quantity expected to be consumed in a given day. - *
- */ - public ActivitySimple setDailyAmount( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - myDailyAmount = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for dailyAmount (How much consumed/day?) - * - *- * Definition: - * Identifies the quantity expected to be consumed in a given day. - *
- */ - public ActivitySimple setDailyAmount( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - myDailyAmount = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for dailyAmount (How much consumed/day?) - * - *- * Definition: - * Identifies the quantity expected to be consumed in a given day. - *
- */ - public ActivitySimple setDailyAmount( double theValue) { - myDailyAmount = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for dailyAmount (How much consumed/day?) - * - *- * Definition: - * Identifies the quantity expected to be consumed in a given day. - *
- */ - public ActivitySimple setDailyAmount( long theValue) { - myDailyAmount = new QuantityDt(theValue); - return this; - } - - - /** - * Gets the value(s) for quantity (How much is administered/supplied/consumed). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Identifies the quantity expected to be supplied. - *
- */ - public QuantityDt getQuantity() { - if (myQuantity == null) { - myQuantity = new QuantityDt(); - } - return myQuantity; - } - - /** - * Sets the value(s) for quantity (How much is administered/supplied/consumed) - * - *- * Definition: - * Identifies the quantity expected to be supplied. - *
- */ - public ActivitySimple setQuantity(QuantityDt theValue) { - myQuantity = theValue; - return this; - } - - /** - * Sets the value for quantity (How much is administered/supplied/consumed) - * - *- * Definition: - * Identifies the quantity expected to be supplied. - *
- */ - public ActivitySimple setQuantity( QuantityCompararatorEnum theComparator, double theValue, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for quantity (How much is administered/supplied/consumed) - * - *- * Definition: - * Identifies the quantity expected to be supplied. - *
- */ - public ActivitySimple setQuantity( QuantityCompararatorEnum theComparator, long theValue, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theUnits); - return this; - } - - /** - * Sets the value for quantity (How much is administered/supplied/consumed) - * - *- * Definition: - * Identifies the quantity expected to be supplied. - *
- */ - public ActivitySimple setQuantity( QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for quantity (How much is administered/supplied/consumed) - * - *- * Definition: - * Identifies the quantity expected to be supplied. - *
- */ - public ActivitySimple setQuantity( QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits) { - myQuantity = new QuantityDt(theComparator, theValue, theSystem, theUnits); - return this; - } - - /** - * Sets the value for quantity (How much is administered/supplied/consumed) - * - *- * Definition: - * Identifies the quantity expected to be supplied. - *
- */ - public ActivitySimple setQuantity( double theValue) { - myQuantity = new QuantityDt(theValue); - return this; - } - - /** - * Sets the value for quantity (How much is administered/supplied/consumed) - * - *- * Definition: - * Identifies the quantity expected to be supplied. - *
- */ - public ActivitySimple setQuantity( long theValue) { - myQuantity = new QuantityDt(theValue); - return this; - } - - - /** - * Gets the value(s) for details (Extra info on activity occurrence). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * This provides a textual description of constraints on the activity occurrence, including relation to other activities. It may also include objectives, pre-conditions and end-conditions. Finally, it may convey specifics about the activity such as body site, method, route, etc. - *
- */ - public StringDt getDetails() { - if (myDetails == null) { - myDetails = new StringDt(); - } - return myDetails; - } - - /** - * Sets the value(s) for details (Extra info on activity occurrence) - * - *- * Definition: - * This provides a textual description of constraints on the activity occurrence, including relation to other activities. It may also include objectives, pre-conditions and end-conditions. Finally, it may convey specifics about the activity such as body site, method, route, etc. - *
- */ - public ActivitySimple setDetails(StringDt theValue) { - myDetails = theValue; - return this; - } - - /** - * Sets the value for details (Extra info on activity occurrence) - * - *- * Definition: - * This provides a textual description of constraints on the activity occurrence, including relation to other activities. It may also include objectives, pre-conditions and end-conditions. Finally, it may convey specifics about the activity such as body site, method, route, etc. - *
- */ - public ActivitySimple setDetails( String theString) { - myDetails = new StringDt(theString); - return this; - } - - - - } - - - - - -} diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Claim.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Claim.java deleted file mode 100644 index c10a2de0974..00000000000 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Claim.java +++ /dev/null @@ -1,2034 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - -/* - * #%L - * HAPI FHIR - Core Library - * %% - * Copyright (C) 2014 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - - -import java.util.Date; -import java.util.List; - -import ca.uhn.fhir.model.api.BaseIdentifiableElement; -import ca.uhn.fhir.model.api.BaseResource; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.IResourceBlock; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.api.annotation.Block; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.api.annotation.ResourceDef; -import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; -import ca.uhn.fhir.model.dstu.composite.AddressDt; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.composite.HumanNameDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.primitive.DateDt; -import ca.uhn.fhir.model.primitive.DecimalDt; -import ca.uhn.fhir.model.primitive.IntegerDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.rest.gclient.TokenClientParam; - - -/** - * HAPI/FHIR Claim Resource - * (A claim) - * - *- * Definition: - * A claim - *
- * - *- * Requirements: - * - *
- * - *- * Profile Definition: - * http://hl7.org/fhir/profiles/Claim - *
- * - */ -@ResourceDef(name="Claim", profile="http://hl7.org/fhir/profiles/Claim", id="claim") -public class Claim extends BaseResource implements IResource { - - /** - * Search parameter constant for number - *
- * Description:
- * Type: token
- * Path: Claim.number
- *
- * Description:
- * Type: token
- * Path: Claim.number
- *
null
.
- *
- * - * Definition: - * The claim issuer and claim number - *
- */ - public IdentifierDt getNumber() { - if (myNumber == null) { - myNumber = new IdentifierDt(); - } - return myNumber; - } - - /** - * Sets the value(s) for number (Claim/Invoice number) - * - *- * Definition: - * The claim issuer and claim number - *
- */ - public Claim setNumber(IdentifierDt theValue) { - myNumber = theValue; - return this; - } - - /** - * Sets the value for number (Claim/Invoice number) - * - *- * Definition: - * The claim issuer and claim number - *
- */ - public Claim setNumber( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myNumber = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for number (Claim/Invoice number) - * - *- * Definition: - * The claim issuer and claim number - *
- */ - public Claim setNumber( String theSystem, String theValue) { - myNumber = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for servicedate (Date of Service). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The date when the enclosed suite of services were performed or completed - *
- */ - public DateDt getServicedate() { - if (myServicedate == null) { - myServicedate = new DateDt(); - } - return myServicedate; - } - - /** - * Sets the value(s) for servicedate (Date of Service) - * - *- * Definition: - * The date when the enclosed suite of services were performed or completed - *
- */ - public Claim setServicedate(DateDt theValue) { - myServicedate = theValue; - return this; - } - - /** - * Sets the value for servicedate (Date of Service) - * - *- * Definition: - * The date when the enclosed suite of services were performed or completed - *
- */ - public Claim setServicedateWithDayPrecision( Date theDate) { - myServicedate = new DateDt(theDate); - return this; - } - - /** - * Sets the value for servicedate (Date of Service) - * - *- * Definition: - * The date when the enclosed suite of services were performed or completed - *
- */ - public Claim setServicedate( Date theDate, TemporalPrecisionEnum thePrecision) { - myServicedate = new DateDt(theDate, thePrecision); - return this; - } - - - /** - * Gets the value(s) for provider (Responsible practitioner). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The practitioner who is responsible for the services rendered to the patient - *
- */ - public ResourceReferenceDt getProvider() { - if (myProvider == null) { - myProvider = new ResourceReferenceDt(); - } - return myProvider; - } - - /** - * Sets the value(s) for provider (Responsible practitioner) - * - *- * Definition: - * The practitioner who is responsible for the services rendered to the patient - *
- */ - public Claim setProvider(ResourceReferenceDt theValue) { - myProvider = theValue; - return this; - } - - - /** - * Gets the value(s) for billingProvider (Provider who is the payee). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The provider who is to be reimbursed for the claim (the party to whom any benefit is assigned) - *
- */ - public ResourceReferenceDt getBillingProvider() { - if (myBillingProvider == null) { - myBillingProvider = new ResourceReferenceDt(); - } - return myBillingProvider; - } - - /** - * Sets the value(s) for billingProvider (Provider who is the payee) - * - *- * Definition: - * The provider who is to be reimbursed for the claim (the party to whom any benefit is assigned) - *
- */ - public Claim setBillingProvider(ResourceReferenceDt theValue) { - myBillingProvider = theValue; - return this; - } - - - /** - * Gets the value(s) for referrer (Provider who is the payee). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public ResourceReferenceDt getReferrer() { - if (myReferrer == null) { - myReferrer = new ResourceReferenceDt(); - } - return myReferrer; - } - - /** - * Sets the value(s) for referrer (Provider who is the payee) - * - *- * Definition: - * - *
- */ - public Claim setReferrer(ResourceReferenceDt theValue) { - myReferrer = theValue; - return this; - } - - - /** - * Gets the value(s) for reason (Referal Reason). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The reason code for the referral - *
- */ - public CodeableConceptDt getReason() { - if (myReason == null) { - myReason = new CodeableConceptDt(); - } - return myReason; - } - - /** - * Sets the value(s) for reason (Referal Reason) - * - *- * Definition: - * The reason code for the referral - *
- */ - public Claim setReason(CodeableConceptDt theValue) { - myReason = theValue; - return this; - } - - - /** - * Gets the value(s) for patient (Patient Details). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Patient Details. - *
- */ - public Patient getPatient() { - if (myPatient == null) { - myPatient = new Patient(); - } - return myPatient; - } - - /** - * Sets the value(s) for patient (Patient Details) - * - *- * Definition: - * Patient Details. - *
- */ - public Claim setPatient(Patient theValue) { - myPatient = theValue; - return this; - } - - - /** - * Gets the value(s) for coverage (Insurance or medical plan). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Financial instrument by which payment information for health care - *
- */ - public Coverage getCoverage() { - if (myCoverage == null) { - myCoverage = new Coverage(); - } - return myCoverage; - } - - /** - * Sets the value(s) for coverage (Insurance or medical plan) - * - *- * Definition: - * Financial instrument by which payment information for health care - *
- */ - public Claim setCoverage(Coverage theValue) { - myCoverage = theValue; - return this; - } - - - /** - * Gets the value(s) for exception (Eligibility exceptions). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Factors which may influence the appicability of coverage - *
- */ - public CodeableConceptDt getException() { - if (myException == null) { - myException = new CodeableConceptDt(); - } - return myException; - } - - /** - * Sets the value(s) for exception (Eligibility exceptions) - * - *- * Definition: - * Factors which may influence the appicability of coverage - *
- */ - public Claim setException(CodeableConceptDt theValue) { - myException = theValue; - return this; - } - - - /** - * Gets the value(s) for relationship (Patient relationship to subscriber). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The relationship of the patient to the subscriber - *
- */ - public CodeableConceptDt getRelationship() { - if (myRelationship == null) { - myRelationship = new CodeableConceptDt(); - } - return myRelationship; - } - - /** - * Sets the value(s) for relationship (Patient relationship to subscriber) - * - *- * Definition: - * The relationship of the patient to the subscriber - *
- */ - public Claim setRelationship(CodeableConceptDt theValue) { - myRelationship = theValue; - return this; - } - - - /** - * Gets the value(s) for school (Name of School). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Name of school - *
- */ - public StringDt getSchool() { - if (mySchool == null) { - mySchool = new StringDt(); - } - return mySchool; - } - - /** - * Sets the value(s) for school (Name of School) - * - *- * Definition: - * Name of school - *
- */ - public Claim setSchool(StringDt theValue) { - mySchool = theValue; - return this; - } - - /** - * Sets the value for school (Name of School) - * - *- * Definition: - * Name of school - *
- */ - public Claim setSchool( String theString) { - mySchool = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for service (Service Details). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public java.util.List- * Definition: - * - *
- */ - public Claim setService(java.util.List- * Definition: - * - *
- */ - public Service addService() { - Service newType = new Service(); - getService().add(newType); - return newType; - } - - /** - * Gets the first repetition for service (Service Details), - * creating it if it does not already exist. - * - *- * Definition: - * - *
- */ - public Service getServiceFirstRep() { - if (getService().isEmpty()) { - return addService(); - } - return getService().get(0); - } - - /** - * Block class for child element: Claim.patient (Patient Details) - * - *- * Definition: - * Patient Details. - *
- */ - @Block() - public static class Patient extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=HumanNameDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="Patient name", - formalDefinition="The name of the PolicyHolder" - ) - private HumanNameDt myName; - - @Child(name="address", type=AddressDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Patient address", - formalDefinition="The mailing address, typically home, of the PolicyHolder" - ) - private AddressDt myAddress; - - @Child(name="birthdate", type=DateDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Patient date of birth", - formalDefinition="The date of birth of the PolicyHolder" - ) - private DateDt myBirthdate; - - @Child(name="gender", type=CodingDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Gender", - formalDefinition="Gender." - ) - private CodingDt myGender; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myAddress, myBirthdate, myGender); - } - - @Override - publicnull
.
- *
- * - * Definition: - * The name of the PolicyHolder - *
- */ - public HumanNameDt getName() { - if (myName == null) { - myName = new HumanNameDt(); - } - return myName; - } - - /** - * Sets the value(s) for name (Patient name) - * - *- * Definition: - * The name of the PolicyHolder - *
- */ - public Patient setName(HumanNameDt theValue) { - myName = theValue; - return this; - } - - - /** - * Gets the value(s) for address (Patient address). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The mailing address, typically home, of the PolicyHolder - *
- */ - public AddressDt getAddress() { - if (myAddress == null) { - myAddress = new AddressDt(); - } - return myAddress; - } - - /** - * Sets the value(s) for address (Patient address) - * - *- * Definition: - * The mailing address, typically home, of the PolicyHolder - *
- */ - public Patient setAddress(AddressDt theValue) { - myAddress = theValue; - return this; - } - - - /** - * Gets the value(s) for birthdate (Patient date of birth). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The date of birth of the PolicyHolder - *
- */ - public DateDt getBirthdate() { - if (myBirthdate == null) { - myBirthdate = new DateDt(); - } - return myBirthdate; - } - - /** - * Sets the value(s) for birthdate (Patient date of birth) - * - *- * Definition: - * The date of birth of the PolicyHolder - *
- */ - public Patient setBirthdate(DateDt theValue) { - myBirthdate = theValue; - return this; - } - - /** - * Sets the value for birthdate (Patient date of birth) - * - *- * Definition: - * The date of birth of the PolicyHolder - *
- */ - public Patient setBirthdateWithDayPrecision( Date theDate) { - myBirthdate = new DateDt(theDate); - return this; - } - - /** - * Sets the value for birthdate (Patient date of birth) - * - *- * Definition: - * The date of birth of the PolicyHolder - *
- */ - public Patient setBirthdate( Date theDate, TemporalPrecisionEnum thePrecision) { - myBirthdate = new DateDt(theDate, thePrecision); - return this; - } - - - /** - * Gets the value(s) for gender (Gender). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Gender. - *
- */ - public CodingDt getGender() { - if (myGender == null) { - myGender = new CodingDt(); - } - return myGender; - } - - /** - * Sets the value(s) for gender (Gender) - * - *- * Definition: - * Gender. - *
- */ - public Patient setGender(CodingDt theValue) { - myGender = theValue; - return this; - } - - - - } - - - /** - * Block class for child element: Claim.coverage (Insurance or medical plan) - * - *- * Definition: - * Financial instrument by which payment information for health care - *
- */ - @Block() - public static class Coverage extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="issuer", order=0, min=0, max=1, type={ - ca.uhn.fhir.model.dstu.resource.Organization.class }) - @Description( - shortDefinition="An identifier for the plan issuer", - formalDefinition="The program or plan underwriter or payor." - ) - private ResourceReferenceDt myIssuer; - - @Child(name="period", type=PeriodDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Coverage start and end dates", - formalDefinition="Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force." - ) - private PeriodDt myPeriod; - - @Child(name="type", type=CodingDt.class, order=2, min=1, max=1) - @Description( - shortDefinition="Type of coverage", - formalDefinition="The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health." - ) - private CodingDt myType; - - @Child(name="identifier", type=IdentifierDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="The primary coverage ID", - formalDefinition="The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID." - ) - private IdentifierDt myIdentifier; - - @Child(name="group", type=IdentifierDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="An identifier for the group", - formalDefinition="Todo" - ) - private IdentifierDt myGroup; - - @Child(name="plan", type=IdentifierDt.class, order=5, min=0, max=1) - @Description( - shortDefinition="An identifier for the plan", - formalDefinition="Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID." - ) - private IdentifierDt myPlan; - - @Child(name="subplan", type=IdentifierDt.class, order=6, min=0, max=1) - @Description( - shortDefinition="An identifier for the subsection of the plan", - formalDefinition="Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID." - ) - private IdentifierDt mySubplan; - - @Child(name="dependent", type=IntegerDt.class, order=7, min=0, max=1) - @Description( - shortDefinition="The dependent number", - formalDefinition="A unique identifier for a dependent under the coverage." - ) - private IntegerDt myDependent; - - @Child(name="sequence", type=IntegerDt.class, order=8, min=0, max=1) - @Description( - shortDefinition="The plan instance or sequence counter", - formalDefinition="An optional counter for a particular instance of the identified coverage which increments upon each renewal." - ) - private IntegerDt mySequence; - - @Child(name="subscriber", order=9, min=0, max=1) - @Description( - shortDefinition="Planholder information", - formalDefinition="Th demographics for the individual in whose name the insurance coverage is issued." - ) - private CoverageSubscriber mySubscriber; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIssuer, myPeriod, myType, myIdentifier, myGroup, myPlan, mySubplan, myDependent, mySequence, mySubscriber); - } - - @Override - publicnull
.
- *
- * - * Definition: - * The program or plan underwriter or payor. - *
- */ - public ResourceReferenceDt getIssuer() { - if (myIssuer == null) { - myIssuer = new ResourceReferenceDt(); - } - return myIssuer; - } - - /** - * Sets the value(s) for issuer (An identifier for the plan issuer) - * - *- * Definition: - * The program or plan underwriter or payor. - *
- */ - public Coverage setIssuer(ResourceReferenceDt theValue) { - myIssuer = theValue; - return this; - } - - - /** - * Gets the value(s) for period (Coverage start and end dates). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force. - *
- */ - public PeriodDt getPeriod() { - if (myPeriod == null) { - myPeriod = new PeriodDt(); - } - return myPeriod; - } - - /** - * Sets the value(s) for period (Coverage start and end dates) - * - *- * Definition: - * Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force. - *
- */ - public Coverage setPeriod(PeriodDt theValue) { - myPeriod = theValue; - return this; - } - - - /** - * Gets the value(s) for type (Type of coverage). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health. - *
- */ - public CodingDt getType() { - if (myType == null) { - myType = new CodingDt(); - } - return myType; - } - - /** - * Sets the value(s) for type (Type of coverage) - * - *- * Definition: - * The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health. - *
- */ - public Coverage setType(CodingDt theValue) { - myType = theValue; - return this; - } - - - /** - * Gets the value(s) for identifier (The primary coverage ID). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID. - *
- */ - public IdentifierDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - /** - * Sets the value(s) for identifier (The primary coverage ID) - * - *- * Definition: - * The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID. - *
- */ - public Coverage setIdentifier(IdentifierDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (The primary coverage ID) - * - *- * Definition: - * The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID. - *
- */ - public Coverage setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for identifier (The primary coverage ID) - * - *- * Definition: - * The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID. - *
- */ - public Coverage setIdentifier( String theSystem, String theValue) { - myIdentifier = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for group (An identifier for the group). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Todo - *
- */ - public IdentifierDt getGroup() { - if (myGroup == null) { - myGroup = new IdentifierDt(); - } - return myGroup; - } - - /** - * Sets the value(s) for group (An identifier for the group) - * - *- * Definition: - * Todo - *
- */ - public Coverage setGroup(IdentifierDt theValue) { - myGroup = theValue; - return this; - } - - /** - * Sets the value for group (An identifier for the group) - * - *- * Definition: - * Todo - *
- */ - public Coverage setGroup( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myGroup = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for group (An identifier for the group) - * - *- * Definition: - * Todo - *
- */ - public Coverage setGroup( String theSystem, String theValue) { - myGroup = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for plan (An identifier for the plan). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID. - *
- */ - public IdentifierDt getPlan() { - if (myPlan == null) { - myPlan = new IdentifierDt(); - } - return myPlan; - } - - /** - * Sets the value(s) for plan (An identifier for the plan) - * - *- * Definition: - * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID. - *
- */ - public Coverage setPlan(IdentifierDt theValue) { - myPlan = theValue; - return this; - } - - /** - * Sets the value for plan (An identifier for the plan) - * - *- * Definition: - * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID. - *
- */ - public Coverage setPlan( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myPlan = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for plan (An identifier for the plan) - * - *- * Definition: - * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID. - *
- */ - public Coverage setPlan( String theSystem, String theValue) { - myPlan = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for subplan (An identifier for the subsection of the plan). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID. - *
- */ - public IdentifierDt getSubplan() { - if (mySubplan == null) { - mySubplan = new IdentifierDt(); - } - return mySubplan; - } - - /** - * Sets the value(s) for subplan (An identifier for the subsection of the plan) - * - *- * Definition: - * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID. - *
- */ - public Coverage setSubplan(IdentifierDt theValue) { - mySubplan = theValue; - return this; - } - - /** - * Sets the value for subplan (An identifier for the subsection of the plan) - * - *- * Definition: - * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID. - *
- */ - public Coverage setSubplan( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - mySubplan = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for subplan (An identifier for the subsection of the plan) - * - *- * Definition: - * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID. - *
- */ - public Coverage setSubplan( String theSystem, String theValue) { - mySubplan = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for dependent (The dependent number). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * A unique identifier for a dependent under the coverage. - *
- */ - public IntegerDt getDependent() { - if (myDependent == null) { - myDependent = new IntegerDt(); - } - return myDependent; - } - - /** - * Sets the value(s) for dependent (The dependent number) - * - *- * Definition: - * A unique identifier for a dependent under the coverage. - *
- */ - public Coverage setDependent(IntegerDt theValue) { - myDependent = theValue; - return this; - } - - /** - * Sets the value for dependent (The dependent number) - * - *- * Definition: - * A unique identifier for a dependent under the coverage. - *
- */ - public Coverage setDependent( int theInteger) { - myDependent = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for sequence (The plan instance or sequence counter). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * An optional counter for a particular instance of the identified coverage which increments upon each renewal. - *
- */ - public IntegerDt getSequence() { - if (mySequence == null) { - mySequence = new IntegerDt(); - } - return mySequence; - } - - /** - * Sets the value(s) for sequence (The plan instance or sequence counter) - * - *- * Definition: - * An optional counter for a particular instance of the identified coverage which increments upon each renewal. - *
- */ - public Coverage setSequence(IntegerDt theValue) { - mySequence = theValue; - return this; - } - - /** - * Sets the value for sequence (The plan instance or sequence counter) - * - *- * Definition: - * An optional counter for a particular instance of the identified coverage which increments upon each renewal. - *
- */ - public Coverage setSequence( int theInteger) { - mySequence = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for subscriber (Planholder information). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Th demographics for the individual in whose name the insurance coverage is issued. - *
- */ - public CoverageSubscriber getSubscriber() { - if (mySubscriber == null) { - mySubscriber = new CoverageSubscriber(); - } - return mySubscriber; - } - - /** - * Sets the value(s) for subscriber (Planholder information) - * - *- * Definition: - * Th demographics for the individual in whose name the insurance coverage is issued. - *
- */ - public Coverage setSubscriber(CoverageSubscriber theValue) { - mySubscriber = theValue; - return this; - } - - - - } - - /** - * Block class for child element: Claim.coverage.subscriber (Planholder information) - * - *- * Definition: - * Th demographics for the individual in whose name the insurance coverage is issued. - *
- */ - @Block() - public static class CoverageSubscriber extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="name", type=HumanNameDt.class, order=0, min=0, max=1) - @Description( - shortDefinition="PolicyHolder name", - formalDefinition="The name of the PolicyHolder" - ) - private HumanNameDt myName; - - @Child(name="address", type=AddressDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="PolicyHolder address", - formalDefinition="The mailing address, typically home, of the PolicyHolder" - ) - private AddressDt myAddress; - - @Child(name="birthdate", type=DateDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="PolicyHolder date of birth", - formalDefinition="The date of birth of the PolicyHolder" - ) - private DateDt myBirthdate; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myAddress, myBirthdate); - } - - @Override - publicnull
.
- *
- * - * Definition: - * The name of the PolicyHolder - *
- */ - public HumanNameDt getName() { - if (myName == null) { - myName = new HumanNameDt(); - } - return myName; - } - - /** - * Sets the value(s) for name (PolicyHolder name) - * - *- * Definition: - * The name of the PolicyHolder - *
- */ - public CoverageSubscriber setName(HumanNameDt theValue) { - myName = theValue; - return this; - } - - - /** - * Gets the value(s) for address (PolicyHolder address). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The mailing address, typically home, of the PolicyHolder - *
- */ - public AddressDt getAddress() { - if (myAddress == null) { - myAddress = new AddressDt(); - } - return myAddress; - } - - /** - * Sets the value(s) for address (PolicyHolder address) - * - *- * Definition: - * The mailing address, typically home, of the PolicyHolder - *
- */ - public CoverageSubscriber setAddress(AddressDt theValue) { - myAddress = theValue; - return this; - } - - - /** - * Gets the value(s) for birthdate (PolicyHolder date of birth). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The date of birth of the PolicyHolder - *
- */ - public DateDt getBirthdate() { - if (myBirthdate == null) { - myBirthdate = new DateDt(); - } - return myBirthdate; - } - - /** - * Sets the value(s) for birthdate (PolicyHolder date of birth) - * - *- * Definition: - * The date of birth of the PolicyHolder - *
- */ - public CoverageSubscriber setBirthdate(DateDt theValue) { - myBirthdate = theValue; - return this; - } - - /** - * Sets the value for birthdate (PolicyHolder date of birth) - * - *- * Definition: - * The date of birth of the PolicyHolder - *
- */ - public CoverageSubscriber setBirthdateWithDayPrecision( Date theDate) { - myBirthdate = new DateDt(theDate); - return this; - } - - /** - * Sets the value for birthdate (PolicyHolder date of birth) - * - *- * Definition: - * The date of birth of the PolicyHolder - *
- */ - public CoverageSubscriber setBirthdate( Date theDate, TemporalPrecisionEnum thePrecision) { - myBirthdate = new DateDt(theDate, thePrecision); - return this; - } - - - - } - - - - /** - * Block class for child element: Claim.service (Service Details) - * - *- * Definition: - * - *
- */ - @Block() - public static class Service extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="service", type=CodeableConceptDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Professional service code", - formalDefinition="The code for the professional service provided." - ) - private CodeableConceptDt myService; - - @Child(name="instance", type=IntegerDt.class, order=1, min=1, max=1) - @Description( - shortDefinition="Service instance", - formalDefinition="A service line item." - ) - private IntegerDt myInstance; - - @Child(name="fee", type=DecimalDt.class, order=2, min=0, max=1) - @Description( - shortDefinition="Professional fee", - formalDefinition="" - ) - private DecimalDt myFee; - - @Child(name="location", type=CodeableConceptDt.class, order=3, min=0, max=1) - @Description( - shortDefinition="Service Location", - formalDefinition="Code for the oral cavity, tooth, quadrant, sextant or arch." - ) - private CodeableConceptDt myLocation; - - @Child(name="surface", type=CodeableConceptDt.class, order=4, min=0, max=1) - @Description( - shortDefinition="Tooth surface", - formalDefinition="Tooth surface(s) involved in the restoration." - ) - private CodeableConceptDt mySurface; - - @Child(name="lab", order=5, min=0, max=1) - @Description( - shortDefinition="Lab Details", - formalDefinition="" - ) - private ServiceLab myLab; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myService, myInstance, myFee, myLocation, mySurface, myLab); - } - - @Override - publicnull
.
- *
- * - * Definition: - * The code for the professional service provided. - *
- */ - public CodeableConceptDt getService() { - if (myService == null) { - myService = new CodeableConceptDt(); - } - return myService; - } - - /** - * Sets the value(s) for service (Professional service code) - * - *- * Definition: - * The code for the professional service provided. - *
- */ - public Service setService(CodeableConceptDt theValue) { - myService = theValue; - return this; - } - - - /** - * Gets the value(s) for instance (Service instance). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * A service line item. - *
- */ - public IntegerDt getInstance() { - if (myInstance == null) { - myInstance = new IntegerDt(); - } - return myInstance; - } - - /** - * Sets the value(s) for instance (Service instance) - * - *- * Definition: - * A service line item. - *
- */ - public Service setInstance(IntegerDt theValue) { - myInstance = theValue; - return this; - } - - /** - * Sets the value for instance (Service instance) - * - *- * Definition: - * A service line item. - *
- */ - public Service setInstance( int theInteger) { - myInstance = new IntegerDt(theInteger); - return this; - } - - - /** - * Gets the value(s) for fee (Professional fee). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public DecimalDt getFee() { - if (myFee == null) { - myFee = new DecimalDt(); - } - return myFee; - } - - /** - * Sets the value(s) for fee (Professional fee) - * - *- * Definition: - * - *
- */ - public Service setFee(DecimalDt theValue) { - myFee = theValue; - return this; - } - - /** - * Sets the value for fee (Professional fee) - * - *- * Definition: - * - *
- */ - public Service setFee( long theValue) { - myFee = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for fee (Professional fee) - * - *- * Definition: - * - *
- */ - public Service setFee( double theValue) { - myFee = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for fee (Professional fee) - * - *- * Definition: - * - *
- */ - public Service setFee( java.math.BigDecimal theValue) { - myFee = new DecimalDt(theValue); - return this; - } - - - /** - * Gets the value(s) for location (Service Location). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Code for the oral cavity, tooth, quadrant, sextant or arch. - *
- */ - public CodeableConceptDt getLocation() { - if (myLocation == null) { - myLocation = new CodeableConceptDt(); - } - return myLocation; - } - - /** - * Sets the value(s) for location (Service Location) - * - *- * Definition: - * Code for the oral cavity, tooth, quadrant, sextant or arch. - *
- */ - public Service setLocation(CodeableConceptDt theValue) { - myLocation = theValue; - return this; - } - - - /** - * Gets the value(s) for surface (Tooth surface). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Tooth surface(s) involved in the restoration. - *
- */ - public CodeableConceptDt getSurface() { - if (mySurface == null) { - mySurface = new CodeableConceptDt(); - } - return mySurface; - } - - /** - * Sets the value(s) for surface (Tooth surface) - * - *- * Definition: - * Tooth surface(s) involved in the restoration. - *
- */ - public Service setSurface(CodeableConceptDt theValue) { - mySurface = theValue; - return this; - } - - - /** - * Gets the value(s) for lab (Lab Details). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * - *
- */ - public ServiceLab getLab() { - if (myLab == null) { - myLab = new ServiceLab(); - } - return myLab; - } - - /** - * Sets the value(s) for lab (Lab Details) - * - *- * Definition: - * - *
- */ - public Service setLab(ServiceLab theValue) { - myLab = theValue; - return this; - } - - - - } - - /** - * Block class for child element: Claim.service.lab (Lab Details) - * - *- * Definition: - * - *
- */ - @Block() - public static class ServiceLab extends BaseIdentifiableElement implements IResourceBlock { - - @Child(name="service", type=CodeableConceptDt.class, order=0, min=1, max=1) - @Description( - shortDefinition="Lab service code", - formalDefinition="The code for the lab service provided." - ) - private CodeableConceptDt myService; - - @Child(name="fee", type=DecimalDt.class, order=1, min=0, max=1) - @Description( - shortDefinition="Lab fee", - formalDefinition="The amount to reimbuse for a laboratory service." - ) - private DecimalDt myFee; - - - @Override - public boolean isEmpty() { - return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myService, myFee); - } - - @Override - publicnull
.
- *
- * - * Definition: - * The code for the lab service provided. - *
- */ - public CodeableConceptDt getService() { - if (myService == null) { - myService = new CodeableConceptDt(); - } - return myService; - } - - /** - * Sets the value(s) for service (Lab service code) - * - *- * Definition: - * The code for the lab service provided. - *
- */ - public ServiceLab setService(CodeableConceptDt theValue) { - myService = theValue; - return this; - } - - - /** - * Gets the value(s) for fee (Lab fee). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The amount to reimbuse for a laboratory service. - *
- */ - public DecimalDt getFee() { - if (myFee == null) { - myFee = new DecimalDt(); - } - return myFee; - } - - /** - * Sets the value(s) for fee (Lab fee) - * - *- * Definition: - * The amount to reimbuse for a laboratory service. - *
- */ - public ServiceLab setFee(DecimalDt theValue) { - myFee = theValue; - return this; - } - - /** - * Sets the value for fee (Lab fee) - * - *- * Definition: - * The amount to reimbuse for a laboratory service. - *
- */ - public ServiceLab setFee( long theValue) { - myFee = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for fee (Lab fee) - * - *- * Definition: - * The amount to reimbuse for a laboratory service. - *
- */ - public ServiceLab setFee( double theValue) { - myFee = new DecimalDt(theValue); - return this; - } - - /** - * Sets the value for fee (Lab fee) - * - *- * Definition: - * The amount to reimbuse for a laboratory service. - *
- */ - public ServiceLab setFee( java.math.BigDecimal theValue) { - myFee = new DecimalDt(theValue); - return this; - } - - - - } - - - - - -} diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Composition.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Composition.java deleted file mode 100644 index 194be2b3843..00000000000 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Composition.java +++ /dev/null @@ -1,1699 +0,0 @@ - - - - - - - - - - - - - - - - -package ca.uhn.fhir.model.dstu.resource; - -/* - * #%L - * HAPI FHIR - Core Library - * %% - * Copyright (C) 2014 University Health Network - * %% - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * #L% - */ - - -import java.util.Date; -import java.util.List; - -import ca.uhn.fhir.model.api.BaseIdentifiableElement; -import ca.uhn.fhir.model.api.BaseResource; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.IResourceBlock; -import ca.uhn.fhir.model.api.Include; -import ca.uhn.fhir.model.api.TemporalPrecisionEnum; -import ca.uhn.fhir.model.api.annotation.Block; -import ca.uhn.fhir.model.api.annotation.Child; -import ca.uhn.fhir.model.api.annotation.Description; -import ca.uhn.fhir.model.api.annotation.ResourceDef; -import ca.uhn.fhir.model.api.annotation.SearchParamDefinition; -import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt; -import ca.uhn.fhir.model.dstu.composite.CodingDt; -import ca.uhn.fhir.model.dstu.composite.IdentifierDt; -import ca.uhn.fhir.model.dstu.composite.PeriodDt; -import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; -import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum; -import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum; -import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.primitive.BoundCodeDt; -import ca.uhn.fhir.model.primitive.CodeDt; -import ca.uhn.fhir.model.primitive.DateTimeDt; -import ca.uhn.fhir.model.primitive.StringDt; -import ca.uhn.fhir.rest.gclient.DateClientParam; -import ca.uhn.fhir.rest.gclient.ReferenceClientParam; -import ca.uhn.fhir.rest.gclient.TokenClientParam; - - -/** - * HAPI/FHIR Composition Resource - * (A set of resources composed into a single coherent clinical statement with clinical attestation) - * - *- * Definition: - * A set of healthcare-related information that is assembled together into a single logical document that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. - *
- * - *- * Requirements: - * To support documents, and also to capture the EN13606 notion of an attested commit to the patient EHR, and to allow a set of disparate resources at the information/engineering level to be gathered into a clinical statement - *
- * - *- * Profile Definition: - * http://hl7.org/fhir/profiles/Composition - *
- * - */ -@ResourceDef(name="Composition", profile="http://hl7.org/fhir/profiles/Composition", id="composition") -public class Composition extends BaseResource implements IResource { - - /** - * Search parameter constant for type - *
- * Description:
- * Type: token
- * Path: Composition.type
- *
- * Description:
- * Type: token
- * Path: Composition.type
- *
- * Description:
- * Type: token
- * Path: Composition.class
- *
- * Description:
- * Type: token
- * Path: Composition.class
- *
- * Description:
- * Type: date
- * Path: Composition.date
- *
- * Description:
- * Type: date
- * Path: Composition.date
- *
- * Description:
- * Type: reference
- * Path: Composition.subject
- *
- * Description:
- * Type: reference
- * Path: Composition.subject
- *
- * Description:
- * Type: reference
- * Path: Composition.author
- *
- * Description:
- * Type: reference
- * Path: Composition.author
- *
- * Description:
- * Type: reference
- * Path: Composition.attester.party
- *
- * Description:
- * Type: reference
- * Path: Composition.attester.party
- *
- * Description:
- * Type: token
- * Path: Composition.event.code
- *
- * Description:
- * Type: token
- * Path: Composition.event.code
- *
- * Description:
- * Type: token
- * Path: Composition.section.code
- *
- * Description:
- * Type: token
- * Path: Composition.section.code
- *
- * Description:
- * Type: reference
- * Path: Composition.section.content
- *
- * Description:
- * Type: reference
- * Path: Composition.section.content
- *
- * Description:
- * Type: token
- * Path: Composition.identifier
- *
- * Description:
- * Type: token
- * Path: Composition.identifier
- *
null
.
- *
- * - * Definition: - * Logical Identifier for the composition, assigned when created. This identifier stays constant as the composition is changed over time - *
- */ - public IdentifierDt getIdentifier() { - if (myIdentifier == null) { - myIdentifier = new IdentifierDt(); - } - return myIdentifier; - } - - /** - * Sets the value(s) for identifier (Logical identifier of composition (version-independent)) - * - *- * Definition: - * Logical Identifier for the composition, assigned when created. This identifier stays constant as the composition is changed over time - *
- */ - public Composition setIdentifier(IdentifierDt theValue) { - myIdentifier = theValue; - return this; - } - - /** - * Sets the value for identifier (Logical identifier of composition (version-independent)) - * - *- * Definition: - * Logical Identifier for the composition, assigned when created. This identifier stays constant as the composition is changed over time - *
- */ - public Composition setIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { - myIdentifier = new IdentifierDt(theUse, theSystem, theValue, theLabel); - return this; - } - - /** - * Sets the value for identifier (Logical identifier of composition (version-independent)) - * - *- * Definition: - * Logical Identifier for the composition, assigned when created. This identifier stays constant as the composition is changed over time - *
- */ - public Composition setIdentifier( String theSystem, String theValue) { - myIdentifier = new IdentifierDt(theSystem, theValue); - return this; - } - - - /** - * Gets the value(s) for date (Composition editing time). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The composition editing time, when the composition was last logically changed by the author - *
- */ - public DateTimeDt getDate() { - if (myDate == null) { - myDate = new DateTimeDt(); - } - return myDate; - } - - /** - * Sets the value(s) for date (Composition editing time) - * - *- * Definition: - * The composition editing time, when the composition was last logically changed by the author - *
- */ - public Composition setDate(DateTimeDt theValue) { - myDate = theValue; - return this; - } - - /** - * Sets the value for date (Composition editing time) - * - *- * Definition: - * The composition editing time, when the composition was last logically changed by the author - *
- */ - public Composition setDateWithSecondsPrecision( Date theDate) { - myDate = new DateTimeDt(theDate); - return this; - } - - /** - * Sets the value for date (Composition editing time) - * - *- * Definition: - * The composition editing time, when the composition was last logically changed by the author - *
- */ - public Composition setDate( Date theDate, TemporalPrecisionEnum thePrecision) { - myDate = new DateTimeDt(theDate, thePrecision); - return this; - } - - - /** - * Gets the value(s) for type (Kind of composition (LOINC if possible)). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Specifies the particular kind of composition (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the composition - *
- */ - public CodeableConceptDt getType() { - if (myType == null) { - myType = new CodeableConceptDt(); - } - return myType; - } - - /** - * Sets the value(s) for type (Kind of composition (LOINC if possible)) - * - *- * Definition: - * Specifies the particular kind of composition (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the composition - *
- */ - public Composition setType(CodeableConceptDt theValue) { - myType = theValue; - return this; - } - - - /** - * Gets the value(s) for class (Categorization of Composition). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * A categorization for the type of the composition. This may be implied by or derived from the code specified in the Composition Type - *
- */ - public CodeableConceptDt getClassElement() { - if (myClassElement == null) { - myClassElement = new CodeableConceptDt(); - } - return myClassElement; - } - - /** - * Sets the value(s) for class (Categorization of Composition) - * - *- * Definition: - * A categorization for the type of the composition. This may be implied by or derived from the code specified in the Composition Type - *
- */ - public Composition setClassElement(CodeableConceptDt theValue) { - myClassElement = theValue; - return this; - } - - - /** - * Gets the value(s) for title (Human Readable name/title). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Official human-readable label for the composition - *
- */ - public StringDt getTitle() { - if (myTitle == null) { - myTitle = new StringDt(); - } - return myTitle; - } - - /** - * Sets the value(s) for title (Human Readable name/title) - * - *- * Definition: - * Official human-readable label for the composition - *
- */ - public Composition setTitle(StringDt theValue) { - myTitle = theValue; - return this; - } - - /** - * Sets the value for title (Human Readable name/title) - * - *- * Definition: - * Official human-readable label for the composition - *
- */ - public Composition setTitle( String theString) { - myTitle = new StringDt(theString); - return this; - } - - - /** - * Gets the value(s) for status (preliminary | final | appended | amended | entered in error). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document - *
- */ - public BoundCodeDt- * Definition: - * The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document - *
- */ - public Composition setStatus(BoundCodeDt- * Definition: - * The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document - *
- */ - public Composition setStatus(CompositionStatusEnum theValue) { - getStatus().setValueAsEnum(theValue); - return this; - } - - - /** - * Gets the value(s) for confidentiality (As defined by affinity domain). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * The code specifying the level of confidentiality of the Composition - *
- */ - public CodingDt getConfidentiality() { - if (myConfidentiality == null) { - myConfidentiality = new CodingDt(); - } - return myConfidentiality; - } - - /** - * Sets the value(s) for confidentiality (As defined by affinity domain) - * - *- * Definition: - * The code specifying the level of confidentiality of the Composition - *
- */ - public Composition setConfidentiality(CodingDt theValue) { - myConfidentiality = theValue; - return this; - } - - - /** - * Gets the value(s) for subject (Who and/or what the composition is about). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Who or what the composition is about. The composition can be about a person, (patient or healthcare practitioner), a device (I.e. machine) or even a group of subjects (such as a document about a herd of livestock, or a set of patients that share a common exposure) - *
- */ - public ResourceReferenceDt getSubject() { - if (mySubject == null) { - mySubject = new ResourceReferenceDt(); - } - return mySubject; - } - - /** - * Sets the value(s) for subject (Who and/or what the composition is about) - * - *- * Definition: - * Who or what the composition is about. The composition can be about a person, (patient or healthcare practitioner), a device (I.e. machine) or even a group of subjects (such as a document about a herd of livestock, or a set of patients that share a common exposure) - *
- */ - public Composition setSubject(ResourceReferenceDt theValue) { - mySubject = theValue; - return this; - } - - - /** - * Gets the value(s) for author (Who and/or what authored the composition). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * Identifies who is responsible for the information in the composition. (Not necessarily who typed it in.) - *
- */ - public java.util.List- * Definition: - * Identifies who is responsible for the information in the composition. (Not necessarily who typed it in.) - *
- */ - public Composition setAuthor(java.util.List- * Definition: - * Identifies who is responsible for the information in the composition. (Not necessarily who typed it in.) - *
- */ - public ResourceReferenceDt addAuthor() { - ResourceReferenceDt newType = new ResourceReferenceDt(); - getAuthor().add(newType); - return newType; - } - - /** - * Gets the value(s) for attester (Attests to accuracy of composition). - * creating it if it does - * not exist. Will not returnnull
.
- *
- * - * Definition: - * A participant who has attested to the accuracy of the composition/document - *
- */ - public java.util.List