mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-16 18:05:19 +00:00
Branch now builds successfully
This commit is contained in:
parent
a044eb51d7
commit
34d3695c6c
@ -6,16 +6,16 @@
|
||||
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
|
||||
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
|
||||
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
|
||||
<dependent-module archiveName="hapi-fhir-jpaserver-base-0.8.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/hapi-fhir-jpaserver-base/hapi-fhir-jpaserver-base">
|
||||
<dependent-module archiveName="hapi-fhir-jpaserver-base-0.9-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/hapi-fhir-jpaserver-base/hapi-fhir-jpaserver-base">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="hapi-fhir-base-0.8.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/hapi-fhir-base/hapi-fhir-base">
|
||||
<dependent-module archiveName="hapi-fhir-base-0.9-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/hapi-fhir-base/hapi-fhir-base">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module archiveName="hapi-fhir-structures-dstu-0.8.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/hapi-fhir-structures-dstu/hapi-fhir-structures-dstu">
|
||||
<dependent-module archiveName="hapi-fhir-structures-dstu-0.9-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/hapi-fhir-structures-dstu/hapi-fhir-structures-dstu">
|
||||
<dependency-type>uses</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module deploy-path="/" handle="module:/overlay/var/M2_REPO/ca/uhn/hapi/fhir/hapi-fhir-testpage-overlay/0.8/hapi-fhir-testpage-overlay-0.8.war?unpackFolder=target/m2e-wtp/overlays&includes=**/**&excludes=META-INF/MANIFEST.MF">
|
||||
<dependent-module deploy-path="/" handle="module:/overlay/prj/hapi-fhir-testpage-overlay?includes=**/**&excludes=META-INF/MANIFEST.MF">
|
||||
<dependency-type>consumes</dependency-type>
|
||||
</dependent-module>
|
||||
<dependent-module deploy-path="/" handle="module:/overlay/slf/?includes=**/**&excludes=META-INF/MANIFEST.MF">
|
||||
|
@ -2,6 +2,4 @@ eclipse.preferences.version=1
|
||||
encoding//src/main/java=UTF-8
|
||||
encoding//src/test/java=UTF-8
|
||||
encoding//src/test/resources=UTF-8
|
||||
encoding//target/generated-resources/tinder=UTF-8
|
||||
encoding//target/generated-sources/tinder=UTF-8
|
||||
encoding/<project>=UTF-8
|
||||
|
@ -33,6 +33,5 @@
|
||||
<attribute name="maven.pomderived" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/hapi-fhir-structures-dev"/>
|
||||
<classpathentry kind="output" path="target/classes"/>
|
||||
</classpath>
|
||||
|
@ -21,17 +21,19 @@
|
||||
<artifactId>hapi-fhir-base</artifactId>
|
||||
<version>0.9-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<!--
|
||||
<dependency>
|
||||
<groupId>ca.uhn.hapi.fhir</groupId>
|
||||
<artifactId>hapi-fhir-structures-dstu</artifactId>
|
||||
<version>0.9-SNAPSHOT</version>
|
||||
<version>0.8</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ca.uhn.hapi.fhir</groupId>
|
||||
<artifactId>hapi-fhir-structures-dev</artifactId>
|
||||
<version>0.9-SNAPSHOT</version>
|
||||
<version>0.8</version>
|
||||
</dependency>
|
||||
|
||||
-->
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.velocity</groupId>
|
||||
<artifactId>velocity</artifactId>
|
||||
|
@ -0,0 +1,87 @@
|
||||
package ca.uhn.fhir.model.dev;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR Structures - DEV (FHIR Latest)
|
||||
* %%
|
||||
* 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.io.InputStream;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import ca.uhn.fhir.context.ConfigurationException;
|
||||
import ca.uhn.fhir.context.FhirVersionEnum;
|
||||
import ca.uhn.fhir.context.RuntimeResourceDefinition;
|
||||
import ca.uhn.fhir.model.api.IFhirVersion;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dev.resource.Profile;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.rest.server.IResourceProvider;
|
||||
import ca.uhn.fhir.rest.server.RestfulServer;
|
||||
import ca.uhn.fhir.rest.server.provider.dev.ServerConformanceProvider;
|
||||
import ca.uhn.fhir.rest.server.provider.dev.ServerProfileProvider;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
public class FhirDev implements IFhirVersion {
|
||||
|
||||
private String myId;
|
||||
|
||||
@Override
|
||||
public Object createServerConformanceProvider(RestfulServer theServer) {
|
||||
return new ServerConformanceProvider(theServer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IResource generateProfile(RuntimeResourceDefinition theRuntimeResourceDefinition, String theServerBase) {
|
||||
Profile retVal = new Profile();
|
||||
|
||||
RuntimeResourceDefinition def = theRuntimeResourceDefinition;
|
||||
|
||||
myId = def.getId();
|
||||
if (StringUtils.isBlank(myId)) {
|
||||
myId = theRuntimeResourceDefinition.getName().toLowerCase();
|
||||
}
|
||||
|
||||
retVal.setId(new IdDt(myId));
|
||||
return retVal;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IResourceProvider createServerProfilesProvider(RestfulServer theRestfulServer) {
|
||||
return new ServerProfileProvider(theRestfulServer);
|
||||
}
|
||||
|
||||
@Override
|
||||
public FhirVersionEnum getVersion() {
|
||||
return FhirVersionEnum.DEV;
|
||||
}
|
||||
|
||||
@Override
|
||||
public InputStream getFhirVersionPropertiesFile() {
|
||||
InputStream str = FhirDev.class.getResourceAsStream("/ca/uhn/fhir/model/dev/fhirversion.properties");
|
||||
if (str == null) {
|
||||
str = FhirDev.class.getResourceAsStream("ca/uhn/fhir/model/dev/fhirversion.properties");
|
||||
}
|
||||
if (str == null) {
|
||||
throw new ConfigurationException("Can not find model property file on classpath: " + "/ca/uhn/fhir/model/dev/fhirversion.properties");
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,635 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.composite;
|
||||
|
||||
import java.net.URI;
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.primitive.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.model.base.composite.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>AddressDt</b> Datatype
|
||||
* (Address)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* There is a variety of postal address formats defined around the world. This format defines a superset that is the basis for all addresses around the world
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
* Need to be able to record postal addresses, along with notes about their use
|
||||
* </p>
|
||||
*/
|
||||
@DatatypeDef(name="AddressDt")
|
||||
public class AddressDt
|
||||
extends BaseIdentifiableElement implements ICompositeDatatype
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public AddressDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
|
||||
@Child(name="use", type=CodeDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Address.use",
|
||||
formalDefinition="The purpose of this address"
|
||||
)
|
||||
private BoundCodeDt<AddressUseEnum> myUse;
|
||||
|
||||
@Child(name="text", type=StringDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Address.text",
|
||||
formalDefinition="A full text representation of the address"
|
||||
)
|
||||
private StringDt myText;
|
||||
|
||||
@Child(name="line", type=StringDt.class, order=2, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="Address.line",
|
||||
formalDefinition="This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information"
|
||||
)
|
||||
private java.util.List<StringDt> myLine;
|
||||
|
||||
@Child(name="city", type=StringDt.class, order=3, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Address.city",
|
||||
formalDefinition="The name of the city, town, village or other community or delivery center."
|
||||
)
|
||||
private StringDt myCity;
|
||||
|
||||
@Child(name="state", type=StringDt.class, order=4, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Address.state",
|
||||
formalDefinition="Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes)."
|
||||
)
|
||||
private StringDt myState;
|
||||
|
||||
@Child(name="postalCode", type=StringDt.class, order=5, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Address.postalCode",
|
||||
formalDefinition="A postal code designating a region defined by the postal service."
|
||||
)
|
||||
private StringDt myPostalCode;
|
||||
|
||||
@Child(name="country", type=StringDt.class, order=6, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Address.country",
|
||||
formalDefinition="Country - a nation as commonly understood or generally accepted"
|
||||
)
|
||||
private StringDt myCountry;
|
||||
|
||||
@Child(name="period", type=PeriodDt.class, order=7, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Address.period",
|
||||
formalDefinition="Time period when address was/is in use"
|
||||
)
|
||||
private PeriodDt myPeriod;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myUse, myText, myLine, myCity, myState, myPostalCode, myCountry, myPeriod);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myUse, myText, myLine, myCity, myState, myPostalCode, myCountry, myPeriod);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>use</b> (Address.use).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The purpose of this address
|
||||
* </p>
|
||||
*/
|
||||
public BoundCodeDt<AddressUseEnum> getUseElement() {
|
||||
if (myUse == null) {
|
||||
myUse = new BoundCodeDt<AddressUseEnum>(AddressUseEnum.VALUESET_BINDER);
|
||||
}
|
||||
return myUse;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>use</b> (Address.use).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The purpose of this address
|
||||
* </p>
|
||||
*/
|
||||
public String getUse() {
|
||||
return getUseElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>use</b> (Address.use)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The purpose of this address
|
||||
* </p>
|
||||
*/
|
||||
public AddressDt setUse(BoundCodeDt<AddressUseEnum> theValue) {
|
||||
myUse = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>use</b> (Address.use)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The purpose of this address
|
||||
* </p>
|
||||
*/
|
||||
public AddressDt setUse(AddressUseEnum theValue) {
|
||||
getUseElement().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>text</b> (Address.text).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A full text representation of the address
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getTextElement() {
|
||||
if (myText == null) {
|
||||
myText = new StringDt();
|
||||
}
|
||||
return myText;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>text</b> (Address.text).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A full text representation of the address
|
||||
* </p>
|
||||
*/
|
||||
public String getText() {
|
||||
return getTextElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>text</b> (Address.text)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A full text representation of the address
|
||||
* </p>
|
||||
*/
|
||||
public AddressDt setText(StringDt theValue) {
|
||||
myText = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>text</b> (Address.text)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A full text representation of the address
|
||||
* </p>
|
||||
*/
|
||||
public AddressDt setText( String theString) {
|
||||
myText = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>line</b> (Address.line).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<StringDt> getLine() {
|
||||
if (myLine == null) {
|
||||
myLine = new java.util.ArrayList<StringDt>();
|
||||
}
|
||||
return myLine;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>line</b> (Address.line)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information
|
||||
* </p>
|
||||
*/
|
||||
public AddressDt setLine(java.util.List<StringDt> theValue) {
|
||||
myLine = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>line</b> (Address.line)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information
|
||||
* </p>
|
||||
*/
|
||||
public StringDt addLine() {
|
||||
StringDt newType = new StringDt();
|
||||
getLine().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>line</b> (Address.line),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getLineFirstRep() {
|
||||
if (getLine().isEmpty()) {
|
||||
return addLine();
|
||||
}
|
||||
return getLine().get(0);
|
||||
}
|
||||
/**
|
||||
* Adds a new value for <b>line</b> (Address.line)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information
|
||||
* </p>
|
||||
*
|
||||
* @return Returns a reference to this object, to allow for simple chaining.
|
||||
*/
|
||||
public AddressDt addLine( String theString) {
|
||||
if (myLine == null) {
|
||||
myLine = new java.util.ArrayList<StringDt>();
|
||||
}
|
||||
myLine.add(new StringDt(theString));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>city</b> (Address.city).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The name of the city, town, village or other community or delivery center.
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getCityElement() {
|
||||
if (myCity == null) {
|
||||
myCity = new StringDt();
|
||||
}
|
||||
return myCity;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>city</b> (Address.city).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The name of the city, town, village or other community or delivery center.
|
||||
* </p>
|
||||
*/
|
||||
public String getCity() {
|
||||
return getCityElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>city</b> (Address.city)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The name of the city, town, village or other community or delivery center.
|
||||
* </p>
|
||||
*/
|
||||
public AddressDt setCity(StringDt theValue) {
|
||||
myCity = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>city</b> (Address.city)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The name of the city, town, village or other community or delivery center.
|
||||
* </p>
|
||||
*/
|
||||
public AddressDt setCity( String theString) {
|
||||
myCity = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>state</b> (Address.state).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes).
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getStateElement() {
|
||||
if (myState == null) {
|
||||
myState = new StringDt();
|
||||
}
|
||||
return myState;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>state</b> (Address.state).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes).
|
||||
* </p>
|
||||
*/
|
||||
public String getState() {
|
||||
return getStateElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>state</b> (Address.state)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes).
|
||||
* </p>
|
||||
*/
|
||||
public AddressDt setState(StringDt theValue) {
|
||||
myState = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>state</b> (Address.state)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes).
|
||||
* </p>
|
||||
*/
|
||||
public AddressDt setState( String theString) {
|
||||
myState = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>postalCode</b> (Address.postalCode).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A postal code designating a region defined by the postal service.
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getPostalCodeElement() {
|
||||
if (myPostalCode == null) {
|
||||
myPostalCode = new StringDt();
|
||||
}
|
||||
return myPostalCode;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>postalCode</b> (Address.postalCode).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A postal code designating a region defined by the postal service.
|
||||
* </p>
|
||||
*/
|
||||
public String getPostalCode() {
|
||||
return getPostalCodeElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>postalCode</b> (Address.postalCode)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A postal code designating a region defined by the postal service.
|
||||
* </p>
|
||||
*/
|
||||
public AddressDt setPostalCode(StringDt theValue) {
|
||||
myPostalCode = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>postalCode</b> (Address.postalCode)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A postal code designating a region defined by the postal service.
|
||||
* </p>
|
||||
*/
|
||||
public AddressDt setPostalCode( String theString) {
|
||||
myPostalCode = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>country</b> (Address.country).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Country - a nation as commonly understood or generally accepted
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getCountryElement() {
|
||||
if (myCountry == null) {
|
||||
myCountry = new StringDt();
|
||||
}
|
||||
return myCountry;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>country</b> (Address.country).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Country - a nation as commonly understood or generally accepted
|
||||
* </p>
|
||||
*/
|
||||
public String getCountry() {
|
||||
return getCountryElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>country</b> (Address.country)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Country - a nation as commonly understood or generally accepted
|
||||
* </p>
|
||||
*/
|
||||
public AddressDt setCountry(StringDt theValue) {
|
||||
myCountry = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>country</b> (Address.country)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Country - a nation as commonly understood or generally accepted
|
||||
* </p>
|
||||
*/
|
||||
public AddressDt setCountry( String theString) {
|
||||
myCountry = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>period</b> (Address.period).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Time period when address was/is in use
|
||||
* </p>
|
||||
*/
|
||||
public PeriodDt getPeriod() {
|
||||
if (myPeriod == null) {
|
||||
myPeriod = new PeriodDt();
|
||||
}
|
||||
return myPeriod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>period</b> (Address.period)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Time period when address was/is in use
|
||||
* </p>
|
||||
*/
|
||||
public AddressDt setPeriod(PeriodDt theValue) {
|
||||
myPeriod = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package ca.uhn.fhir.model.dev.composite;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR Structures - DEV (FHIR Latest)
|
||||
* %%
|
||||
* 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 AgeDt extends QuantityDt {
|
||||
|
||||
}
|
@ -0,0 +1,576 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.composite;
|
||||
|
||||
import java.net.URI;
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.primitive.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.model.base.composite.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>AttachmentDt</b> Datatype
|
||||
* (Attachment)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* For referring to data content defined in other formats.
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
* Many models need to include data defined in other specifications that is complex and opaque to the healthcare model. This includes documents, media recordings, structured data, etc.
|
||||
* </p>
|
||||
*/
|
||||
@DatatypeDef(name="AttachmentDt")
|
||||
public class AttachmentDt
|
||||
extends BaseIdentifiableElement implements ICompositeDatatype
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public AttachmentDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
|
||||
@Child(name="contentType", type=CodeDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Attachment.contentType",
|
||||
formalDefinition="Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate"
|
||||
)
|
||||
private CodeDt myContentType;
|
||||
|
||||
@Child(name="language", type=CodeDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Attachment.language",
|
||||
formalDefinition="The human language of the content. The value can be any valid value according to BCP 47"
|
||||
)
|
||||
private CodeDt myLanguage;
|
||||
|
||||
@Child(name="data", type=Base64BinaryDt.class, order=2, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Attachment.data",
|
||||
formalDefinition="The actual data of the attachment - a sequence of bytes. In XML, represented using base64"
|
||||
)
|
||||
private Base64BinaryDt myData;
|
||||
|
||||
@Child(name="url", type=UriDt.class, order=3, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Attachment.url",
|
||||
formalDefinition="An alternative location where the data can be accessed"
|
||||
)
|
||||
private UriDt myUrl;
|
||||
|
||||
@Child(name="size", type=IntegerDt.class, order=4, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Attachment.size",
|
||||
formalDefinition="The number of bytes of data that make up this attachment."
|
||||
)
|
||||
private IntegerDt mySize;
|
||||
|
||||
@Child(name="hash", type=Base64BinaryDt.class, order=5, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Attachment.hash",
|
||||
formalDefinition="The calculated hash of the data using SHA-1. Represented using base64"
|
||||
)
|
||||
private Base64BinaryDt myHash;
|
||||
|
||||
@Child(name="title", type=StringDt.class, order=6, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Attachment.title",
|
||||
formalDefinition="A label or set of text to display in place of the data"
|
||||
)
|
||||
private StringDt myTitle;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myContentType, myLanguage, myData, myUrl, mySize, myHash, myTitle);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myContentType, myLanguage, myData, myUrl, mySize, myHash, myTitle);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>contentType</b> (Attachment.contentType).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate
|
||||
* </p>
|
||||
*/
|
||||
public CodeDt getContentTypeElement() {
|
||||
if (myContentType == null) {
|
||||
myContentType = new CodeDt();
|
||||
}
|
||||
return myContentType;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>contentType</b> (Attachment.contentType).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate
|
||||
* </p>
|
||||
*/
|
||||
public String getContentType() {
|
||||
return getContentTypeElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>contentType</b> (Attachment.contentType)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate
|
||||
* </p>
|
||||
*/
|
||||
public AttachmentDt setContentType(CodeDt theValue) {
|
||||
myContentType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>contentType</b> (Attachment.contentType)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate
|
||||
* </p>
|
||||
*/
|
||||
public AttachmentDt setContentType( String theCode) {
|
||||
myContentType = new CodeDt(theCode);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>language</b> (Attachment.language).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The human language of the content. The value can be any valid value according to BCP 47
|
||||
* </p>
|
||||
*/
|
||||
public CodeDt getLanguageElement() {
|
||||
if (myLanguage == null) {
|
||||
myLanguage = new CodeDt();
|
||||
}
|
||||
return myLanguage;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>language</b> (Attachment.language).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The human language of the content. The value can be any valid value according to BCP 47
|
||||
* </p>
|
||||
*/
|
||||
public String getLanguage() {
|
||||
return getLanguageElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>language</b> (Attachment.language)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The human language of the content. The value can be any valid value according to BCP 47
|
||||
* </p>
|
||||
*/
|
||||
public AttachmentDt setLanguage(CodeDt theValue) {
|
||||
myLanguage = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>language</b> (Attachment.language)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The human language of the content. The value can be any valid value according to BCP 47
|
||||
* </p>
|
||||
*/
|
||||
public AttachmentDt setLanguage( String theCode) {
|
||||
myLanguage = new CodeDt(theCode);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>data</b> (Attachment.data).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The actual data of the attachment - a sequence of bytes. In XML, represented using base64
|
||||
* </p>
|
||||
*/
|
||||
public Base64BinaryDt getDataElement() {
|
||||
if (myData == null) {
|
||||
myData = new Base64BinaryDt();
|
||||
}
|
||||
return myData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>data</b> (Attachment.data).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The actual data of the attachment - a sequence of bytes. In XML, represented using base64
|
||||
* </p>
|
||||
*/
|
||||
public byte[] getData() {
|
||||
return getDataElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>data</b> (Attachment.data)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The actual data of the attachment - a sequence of bytes. In XML, represented using base64
|
||||
* </p>
|
||||
*/
|
||||
public AttachmentDt setData(Base64BinaryDt theValue) {
|
||||
myData = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>data</b> (Attachment.data)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The actual data of the attachment - a sequence of bytes. In XML, represented using base64
|
||||
* </p>
|
||||
*/
|
||||
public AttachmentDt setData( byte[] theBytes) {
|
||||
myData = new Base64BinaryDt(theBytes);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>url</b> (Attachment.url).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* An alternative location where the data can be accessed
|
||||
* </p>
|
||||
*/
|
||||
public UriDt getUrlElement() {
|
||||
if (myUrl == null) {
|
||||
myUrl = new UriDt();
|
||||
}
|
||||
return myUrl;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>url</b> (Attachment.url).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* An alternative location where the data can be accessed
|
||||
* </p>
|
||||
*/
|
||||
public URI getUrl() {
|
||||
return getUrlElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>url</b> (Attachment.url)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* An alternative location where the data can be accessed
|
||||
* </p>
|
||||
*/
|
||||
public AttachmentDt setUrl(UriDt theValue) {
|
||||
myUrl = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>url</b> (Attachment.url)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* An alternative location where the data can be accessed
|
||||
* </p>
|
||||
*/
|
||||
public AttachmentDt setUrl( String theUri) {
|
||||
myUrl = new UriDt(theUri);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>size</b> (Attachment.size).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The number of bytes of data that make up this attachment.
|
||||
* </p>
|
||||
*/
|
||||
public IntegerDt getSizeElement() {
|
||||
if (mySize == null) {
|
||||
mySize = new IntegerDt();
|
||||
}
|
||||
return mySize;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>size</b> (Attachment.size).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The number of bytes of data that make up this attachment.
|
||||
* </p>
|
||||
*/
|
||||
public Integer getSize() {
|
||||
return getSizeElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>size</b> (Attachment.size)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The number of bytes of data that make up this attachment.
|
||||
* </p>
|
||||
*/
|
||||
public AttachmentDt setSize(IntegerDt theValue) {
|
||||
mySize = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>size</b> (Attachment.size)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The number of bytes of data that make up this attachment.
|
||||
* </p>
|
||||
*/
|
||||
public AttachmentDt setSize( int theInteger) {
|
||||
mySize = new IntegerDt(theInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>hash</b> (Attachment.hash).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The calculated hash of the data using SHA-1. Represented using base64
|
||||
* </p>
|
||||
*/
|
||||
public Base64BinaryDt getHashElement() {
|
||||
if (myHash == null) {
|
||||
myHash = new Base64BinaryDt();
|
||||
}
|
||||
return myHash;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>hash</b> (Attachment.hash).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The calculated hash of the data using SHA-1. Represented using base64
|
||||
* </p>
|
||||
*/
|
||||
public byte[] getHash() {
|
||||
return getHashElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>hash</b> (Attachment.hash)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The calculated hash of the data using SHA-1. Represented using base64
|
||||
* </p>
|
||||
*/
|
||||
public AttachmentDt setHash(Base64BinaryDt theValue) {
|
||||
myHash = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>hash</b> (Attachment.hash)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The calculated hash of the data using SHA-1. Represented using base64
|
||||
* </p>
|
||||
*/
|
||||
public AttachmentDt setHash( byte[] theBytes) {
|
||||
myHash = new Base64BinaryDt(theBytes);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>title</b> (Attachment.title).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A label or set of text to display in place of the data
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getTitleElement() {
|
||||
if (myTitle == null) {
|
||||
myTitle = new StringDt();
|
||||
}
|
||||
return myTitle;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>title</b> (Attachment.title).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A label or set of text to display in place of the data
|
||||
* </p>
|
||||
*/
|
||||
public String getTitle() {
|
||||
return getTitleElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>title</b> (Attachment.title)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A label or set of text to display in place of the data
|
||||
* </p>
|
||||
*/
|
||||
public AttachmentDt setTitle(StringDt theValue) {
|
||||
myTitle = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>title</b> (Attachment.title)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A label or set of text to display in place of the data
|
||||
* </p>
|
||||
*/
|
||||
public AttachmentDt setTitle( String theString) {
|
||||
myTitle = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,123 @@
|
||||
package ca.uhn.fhir.model.dev.composite;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR Structures - DEV (FHIR Latest)
|
||||
* %%
|
||||
* 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 static org.apache.commons.lang3.StringUtils.defaultString;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
||||
import ca.uhn.fhir.model.api.IBoundCodeableConcept;
|
||||
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
|
||||
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
|
||||
|
||||
@DatatypeDef(name = "CodeableConcept", isSpecialization = true)
|
||||
public class BoundCodeableConceptDt<T extends Enum<?>> extends CodeableConceptDt implements IBoundCodeableConcept {
|
||||
|
||||
private IValueSetEnumBinder<T> myBinder;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public BoundCodeableConceptDt(IValueSetEnumBinder<T> theBinder) {
|
||||
myBinder = theBinder;
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public BoundCodeableConceptDt(IValueSetEnumBinder<T> theBinder, T theValue) {
|
||||
myBinder = theBinder;
|
||||
setValueAsEnum(theValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public BoundCodeableConceptDt(IValueSetEnumBinder<T> theBinder, Collection<T> theValues) {
|
||||
myBinder = theBinder;
|
||||
setValueAsEnum(theValues);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the {@link #getCoding()} to contain a coding with the code and
|
||||
* system defined by the given enumerated types, AND clearing any existing
|
||||
* codings first. If theValue is null, existing codings are cleared and no
|
||||
* codings are added.
|
||||
*
|
||||
* @param theValue
|
||||
* The value to add, or <code>null</code>
|
||||
*/
|
||||
public void setValueAsEnum(Collection<T> theValues) {
|
||||
getCoding().clear();
|
||||
if (theValues != null) {
|
||||
for (T next : theValues) {
|
||||
getCoding().add(new CodingDt(myBinder.toSystemString(next), myBinder.toCodeString(next)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the {@link #getCoding()} to contain a coding with the code and
|
||||
* system defined by the given enumerated type, AND clearing any existing
|
||||
* codings first. If theValue is null, existing codings are cleared and no
|
||||
* codings are added.
|
||||
*
|
||||
* @param theValue
|
||||
* The value to add, or <code>null</code>
|
||||
*/
|
||||
public void setValueAsEnum(T theValue) {
|
||||
getCoding().clear();
|
||||
if (theValue == null) {
|
||||
return;
|
||||
}
|
||||
getCoding().add(new CodingDt(myBinder.toSystemString(theValue), myBinder.toCodeString(theValue)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Loops through the {@link #getCoding() codings} in this codeable concept
|
||||
* and returns the first bound enumerated type that matches. <b>Use
|
||||
* caution</b> using this method, see the return description for more
|
||||
* information.
|
||||
*
|
||||
* @return Returns the bound enumerated type, or <code>null</code> if none
|
||||
* are found. Note that a null return value doesn't neccesarily
|
||||
* imply that this Codeable Concept has no codes, only that it has
|
||||
* no codes that match the enum.
|
||||
*/
|
||||
public Set<T> getValueAsEnum() {
|
||||
Set<T> retVal = new HashSet<T>();
|
||||
for (CodingDt next : getCoding()) {
|
||||
if (next == null) {
|
||||
continue;
|
||||
}
|
||||
T nextT = myBinder.fromCodeString(defaultString(next.getCodeElement().getValue()), defaultString(next.getSystemElement().getValueAsString()));
|
||||
if (nextT != null) {
|
||||
retVal.add(nextT);
|
||||
} else {
|
||||
// TODO: throw special exception type?
|
||||
}
|
||||
}
|
||||
return retVal;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,244 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.composite;
|
||||
|
||||
import java.net.URI;
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.primitive.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.model.base.composite.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>CodeableConceptDt</b> Datatype
|
||||
* (CodeableConcept)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
* This is a common pattern in healthcare - a concept that may be defined by one or more codes from formal definitions including LOINC and SNOMED CT, and/or defined by the provision of text that captures a human sense of the concept
|
||||
* </p>
|
||||
*/
|
||||
@DatatypeDef(name="CodeableConceptDt")
|
||||
public class CodeableConceptDt
|
||||
extends BaseIdentifiableElement implements ICompositeDatatype
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public CodeableConceptDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor which creates a CodeableConceptDt with one coding repetition, containing
|
||||
* the given system and code
|
||||
*/
|
||||
public CodeableConceptDt(String theSystem, String theCode) {
|
||||
addCoding().setSystem(theSystem).setCode(theCode);
|
||||
}
|
||||
|
||||
@Child(name="coding", type=CodingDt.class, order=0, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="CodeableConcept.coding",
|
||||
formalDefinition="A reference to a code defined by a terminology system"
|
||||
)
|
||||
private java.util.List<CodingDt> myCoding;
|
||||
|
||||
@Child(name="text", type=StringDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="CodeableConcept.text",
|
||||
formalDefinition="A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user"
|
||||
)
|
||||
private StringDt myText;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCoding, myText);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCoding, myText);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>coding</b> (CodeableConcept.coding).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A reference to a code defined by a terminology system
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<CodingDt> getCoding() {
|
||||
if (myCoding == null) {
|
||||
myCoding = new java.util.ArrayList<CodingDt>();
|
||||
}
|
||||
return myCoding;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>coding</b> (CodeableConcept.coding)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A reference to a code defined by a terminology system
|
||||
* </p>
|
||||
*/
|
||||
public CodeableConceptDt setCoding(java.util.List<CodingDt> theValue) {
|
||||
myCoding = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>coding</b> (CodeableConcept.coding)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A reference to a code defined by a terminology system
|
||||
* </p>
|
||||
*/
|
||||
public CodingDt addCoding() {
|
||||
CodingDt newType = new CodingDt();
|
||||
getCoding().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>coding</b> (CodeableConcept.coding),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A reference to a code defined by a terminology system
|
||||
* </p>
|
||||
*/
|
||||
public CodingDt getCodingFirstRep() {
|
||||
if (getCoding().isEmpty()) {
|
||||
return addCoding();
|
||||
}
|
||||
return getCoding().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>text</b> (CodeableConcept.text).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getTextElement() {
|
||||
if (myText == null) {
|
||||
myText = new StringDt();
|
||||
}
|
||||
return myText;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>text</b> (CodeableConcept.text).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user
|
||||
* </p>
|
||||
*/
|
||||
public String getText() {
|
||||
return getTextElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>text</b> (CodeableConcept.text)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user
|
||||
* </p>
|
||||
*/
|
||||
public CodeableConceptDt setText(StringDt theValue) {
|
||||
myText = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>text</b> (CodeableConcept.text)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user
|
||||
* </p>
|
||||
*/
|
||||
public CodeableConceptDt setText( String theString) {
|
||||
myText = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,496 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.composite;
|
||||
|
||||
import java.net.URI;
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.primitive.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.model.base.composite.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>CodingDt</b> Datatype
|
||||
* (Coding)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A reference to a code defined by a terminology system
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
* References to codes are very common in healthcare models
|
||||
* </p>
|
||||
*/
|
||||
@DatatypeDef(name="CodingDt")
|
||||
public class CodingDt
|
||||
extends BaseCodingDt implements ICompositeDatatype
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public CodingDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new Coding with the given system and code
|
||||
*/
|
||||
public CodingDt(String theSystem, String theCode) {
|
||||
setSystem(theSystem);
|
||||
setCode(theCode);
|
||||
}
|
||||
|
||||
/**
|
||||
* Copy constructor: Creates a new Coding with the system and code copied out of the given coding
|
||||
*/
|
||||
public CodingDt(BaseCodingDt theCoding) {
|
||||
this(theCoding.getSystemElement().getValueAsString(), theCoding.getCodeElement().getValue());
|
||||
}
|
||||
|
||||
|
||||
@Child(name="system", type=UriDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Coding.system",
|
||||
formalDefinition="The identification of the code system that defines the meaning of the symbol in the code."
|
||||
)
|
||||
private UriDt mySystem;
|
||||
|
||||
@Child(name="version", type=StringDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Coding.version",
|
||||
formalDefinition="The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged"
|
||||
)
|
||||
private StringDt myVersion;
|
||||
|
||||
@Child(name="code", type=CodeDt.class, order=2, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Coding.code",
|
||||
formalDefinition="A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)"
|
||||
)
|
||||
private CodeDt myCode;
|
||||
|
||||
@Child(name="display", type=StringDt.class, order=3, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Coding.display",
|
||||
formalDefinition="A representation of the meaning of the code in the system, following the rules of the system."
|
||||
)
|
||||
private StringDt myDisplay;
|
||||
|
||||
@Child(name="primary", type=BooleanDt.class, order=4, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Coding.primary",
|
||||
formalDefinition="Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays)"
|
||||
)
|
||||
private BooleanDt myPrimary;
|
||||
|
||||
@Child(name="valueSet", order=5, min=0, max=1, type={
|
||||
ca.uhn.fhir.model.dev.resource.ValueSet.class })
|
||||
@Description(
|
||||
shortDefinition="Coding.valueSet",
|
||||
formalDefinition="The set of possible coded values this coding was chosen from or constrained by"
|
||||
)
|
||||
private ResourceReferenceDt myValueSet;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myVersion, myCode, myDisplay, myPrimary, myValueSet);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myVersion, myCode, myDisplay, myPrimary, myValueSet);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>system</b> (Coding.system).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The identification of the code system that defines the meaning of the symbol in the code.
|
||||
* </p>
|
||||
*/
|
||||
public UriDt getSystemElement() {
|
||||
if (mySystem == null) {
|
||||
mySystem = new UriDt();
|
||||
}
|
||||
return mySystem;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>system</b> (Coding.system).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The identification of the code system that defines the meaning of the symbol in the code.
|
||||
* </p>
|
||||
*/
|
||||
public URI getSystem() {
|
||||
return getSystemElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>system</b> (Coding.system)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The identification of the code system that defines the meaning of the symbol in the code.
|
||||
* </p>
|
||||
*/
|
||||
public CodingDt setSystem(UriDt theValue) {
|
||||
mySystem = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>system</b> (Coding.system)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The identification of the code system that defines the meaning of the symbol in the code.
|
||||
* </p>
|
||||
*/
|
||||
public CodingDt setSystem( String theUri) {
|
||||
mySystem = new UriDt(theUri);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>version</b> (Coding.version).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getVersionElement() {
|
||||
if (myVersion == null) {
|
||||
myVersion = new StringDt();
|
||||
}
|
||||
return myVersion;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>version</b> (Coding.version).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged
|
||||
* </p>
|
||||
*/
|
||||
public String getVersion() {
|
||||
return getVersionElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>version</b> (Coding.version)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged
|
||||
* </p>
|
||||
*/
|
||||
public CodingDt setVersion(StringDt theValue) {
|
||||
myVersion = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>version</b> (Coding.version)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged
|
||||
* </p>
|
||||
*/
|
||||
public CodingDt setVersion( String theString) {
|
||||
myVersion = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>code</b> (Coding.code).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)
|
||||
* </p>
|
||||
*/
|
||||
public CodeDt getCodeElement() {
|
||||
if (myCode == null) {
|
||||
myCode = new CodeDt();
|
||||
}
|
||||
return myCode;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>code</b> (Coding.code).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)
|
||||
* </p>
|
||||
*/
|
||||
public String getCode() {
|
||||
return getCodeElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>code</b> (Coding.code)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)
|
||||
* </p>
|
||||
*/
|
||||
public CodingDt setCode(CodeDt theValue) {
|
||||
myCode = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>code</b> (Coding.code)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)
|
||||
* </p>
|
||||
*/
|
||||
public CodingDt setCode( String theCode) {
|
||||
myCode = new CodeDt(theCode);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>display</b> (Coding.display).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A representation of the meaning of the code in the system, following the rules of the system.
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getDisplayElement() {
|
||||
if (myDisplay == null) {
|
||||
myDisplay = new StringDt();
|
||||
}
|
||||
return myDisplay;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>display</b> (Coding.display).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A representation of the meaning of the code in the system, following the rules of the system.
|
||||
* </p>
|
||||
*/
|
||||
public String getDisplay() {
|
||||
return getDisplayElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>display</b> (Coding.display)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A representation of the meaning of the code in the system, following the rules of the system.
|
||||
* </p>
|
||||
*/
|
||||
public CodingDt setDisplay(StringDt theValue) {
|
||||
myDisplay = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>display</b> (Coding.display)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A representation of the meaning of the code in the system, following the rules of the system.
|
||||
* </p>
|
||||
*/
|
||||
public CodingDt setDisplay( String theString) {
|
||||
myDisplay = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>primary</b> (Coding.primary).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays)
|
||||
* </p>
|
||||
*/
|
||||
public BooleanDt getPrimaryElement() {
|
||||
if (myPrimary == null) {
|
||||
myPrimary = new BooleanDt();
|
||||
}
|
||||
return myPrimary;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>primary</b> (Coding.primary).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays)
|
||||
* </p>
|
||||
*/
|
||||
public Boolean getPrimary() {
|
||||
return getPrimaryElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>primary</b> (Coding.primary)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays)
|
||||
* </p>
|
||||
*/
|
||||
public CodingDt setPrimary(BooleanDt theValue) {
|
||||
myPrimary = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>primary</b> (Coding.primary)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays)
|
||||
* </p>
|
||||
*/
|
||||
public CodingDt setPrimary( boolean theBoolean) {
|
||||
myPrimary = new BooleanDt(theBoolean);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>valueSet</b> (Coding.valueSet).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The set of possible coded values this coding was chosen from or constrained by
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getValueSet() {
|
||||
if (myValueSet == null) {
|
||||
myValueSet = new ResourceReferenceDt();
|
||||
}
|
||||
return myValueSet;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>valueSet</b> (Coding.valueSet)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The set of possible coded values this coding was chosen from or constrained by
|
||||
* </p>
|
||||
*/
|
||||
public CodingDt setValueSet(ResourceReferenceDt theValue) {
|
||||
myValueSet = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,344 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.composite;
|
||||
|
||||
import java.net.URI;
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.primitive.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.model.base.composite.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>ContactPointDt</b> Datatype
|
||||
* (ContactPoint)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Details for All kinds of technology mediated contact points for a person or organization, including telephone, email, etc.
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
* Need to track phone, fax, mobile, sms numbers, email addresses, twitter tags, etc.
|
||||
* </p>
|
||||
*/
|
||||
@DatatypeDef(name="ContactPointDt")
|
||||
public class ContactPointDt
|
||||
extends BaseIdentifiableElement implements ICompositeDatatype
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public ContactPointDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
|
||||
@Child(name="system", type=CodeDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="ContactPoint.system",
|
||||
formalDefinition="Telecommunications form for contact point - what communications system is required to make use of the contact"
|
||||
)
|
||||
private BoundCodeDt<ContactPointSystemEnum> mySystem;
|
||||
|
||||
@Child(name="value", type=StringDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="ContactPoint.value",
|
||||
formalDefinition="The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address)."
|
||||
)
|
||||
private StringDt myValue;
|
||||
|
||||
@Child(name="use", type=CodeDt.class, order=2, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="ContactPoint.use",
|
||||
formalDefinition="Identifies the purpose for the contact point"
|
||||
)
|
||||
private BoundCodeDt<ContactPointUseEnum> myUse;
|
||||
|
||||
@Child(name="period", type=PeriodDt.class, order=3, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="ContactPoint.period",
|
||||
formalDefinition="Time period when the contact point was/is in use"
|
||||
)
|
||||
private PeriodDt myPeriod;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myValue, myUse, myPeriod);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySystem, myValue, myUse, myPeriod);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>system</b> (ContactPoint.system).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Telecommunications form for contact point - what communications system is required to make use of the contact
|
||||
* </p>
|
||||
*/
|
||||
public BoundCodeDt<ContactPointSystemEnum> getSystemElement() {
|
||||
if (mySystem == null) {
|
||||
mySystem = new BoundCodeDt<ContactPointSystemEnum>(ContactPointSystemEnum.VALUESET_BINDER);
|
||||
}
|
||||
return mySystem;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>system</b> (ContactPoint.system).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Telecommunications form for contact point - what communications system is required to make use of the contact
|
||||
* </p>
|
||||
*/
|
||||
public String getSystem() {
|
||||
return getSystemElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>system</b> (ContactPoint.system)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Telecommunications form for contact point - what communications system is required to make use of the contact
|
||||
* </p>
|
||||
*/
|
||||
public ContactPointDt setSystem(BoundCodeDt<ContactPointSystemEnum> theValue) {
|
||||
mySystem = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>system</b> (ContactPoint.system)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Telecommunications form for contact point - what communications system is required to make use of the contact
|
||||
* </p>
|
||||
*/
|
||||
public ContactPointDt setSystem(ContactPointSystemEnum theValue) {
|
||||
getSystemElement().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>value</b> (ContactPoint.value).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address).
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getValueElement() {
|
||||
if (myValue == null) {
|
||||
myValue = new StringDt();
|
||||
}
|
||||
return myValue;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>value</b> (ContactPoint.value).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address).
|
||||
* </p>
|
||||
*/
|
||||
public String getValue() {
|
||||
return getValueElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>value</b> (ContactPoint.value)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address).
|
||||
* </p>
|
||||
*/
|
||||
public ContactPointDt setValue(StringDt theValue) {
|
||||
myValue = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>value</b> (ContactPoint.value)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address).
|
||||
* </p>
|
||||
*/
|
||||
public ContactPointDt setValue( String theString) {
|
||||
myValue = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>use</b> (ContactPoint.use).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies the purpose for the contact point
|
||||
* </p>
|
||||
*/
|
||||
public BoundCodeDt<ContactPointUseEnum> getUseElement() {
|
||||
if (myUse == null) {
|
||||
myUse = new BoundCodeDt<ContactPointUseEnum>(ContactPointUseEnum.VALUESET_BINDER);
|
||||
}
|
||||
return myUse;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>use</b> (ContactPoint.use).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies the purpose for the contact point
|
||||
* </p>
|
||||
*/
|
||||
public String getUse() {
|
||||
return getUseElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>use</b> (ContactPoint.use)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies the purpose for the contact point
|
||||
* </p>
|
||||
*/
|
||||
public ContactPointDt setUse(BoundCodeDt<ContactPointUseEnum> theValue) {
|
||||
myUse = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>use</b> (ContactPoint.use)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies the purpose for the contact point
|
||||
* </p>
|
||||
*/
|
||||
public ContactPointDt setUse(ContactPointUseEnum theValue) {
|
||||
getUseElement().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>period</b> (ContactPoint.period).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Time period when the contact point was/is in use
|
||||
* </p>
|
||||
*/
|
||||
public PeriodDt getPeriod() {
|
||||
if (myPeriod == null) {
|
||||
myPeriod = new PeriodDt();
|
||||
}
|
||||
return myPeriod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>period</b> (ContactPoint.period)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Time period when the contact point was/is in use
|
||||
* </p>
|
||||
*/
|
||||
public ContactPointDt setPeriod(PeriodDt theValue) {
|
||||
myPeriod = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package ca.uhn.fhir.model.dev.composite;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR Structures - DEV (FHIR Latest)
|
||||
* %%
|
||||
* 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 CountDt extends QuantityDt {
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package ca.uhn.fhir.model.dev.composite;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR Structures - DEV (FHIR Latest)
|
||||
* %%
|
||||
* 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 DistanceDt extends QuantityDt {
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package ca.uhn.fhir.model.dev.composite;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR Structures - DEV (FHIR Latest)
|
||||
* %%
|
||||
* 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 DurationDt extends QuantityDt {
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,624 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.composite;
|
||||
|
||||
import java.net.URI;
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.primitive.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.model.base.composite.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>HumanNameDt</b> Datatype
|
||||
* (HumanName)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A human's name with the ability to identify parts and usage
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
* Need to be able to record names, along with notes about their use
|
||||
* </p>
|
||||
*/
|
||||
@DatatypeDef(name="HumanNameDt")
|
||||
public class HumanNameDt
|
||||
extends BaseHumanNameDt implements ICompositeDatatype
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public HumanNameDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
|
||||
@Child(name="use", type=CodeDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="HumanName.use",
|
||||
formalDefinition="Identifies the purpose for this name"
|
||||
)
|
||||
private BoundCodeDt<NameUseEnum> myUse;
|
||||
|
||||
@Child(name="text", type=StringDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="HumanName.text",
|
||||
formalDefinition="A full text representation of the name"
|
||||
)
|
||||
private StringDt myText;
|
||||
|
||||
@Child(name="family", type=StringDt.class, order=2, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="HumanName.family",
|
||||
formalDefinition="The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father."
|
||||
)
|
||||
private java.util.List<StringDt> myFamily;
|
||||
|
||||
@Child(name="given", type=StringDt.class, order=3, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="HumanName.given",
|
||||
formalDefinition="Given name"
|
||||
)
|
||||
private java.util.List<StringDt> myGiven;
|
||||
|
||||
@Child(name="prefix", type=StringDt.class, order=4, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="HumanName.prefix",
|
||||
formalDefinition="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name"
|
||||
)
|
||||
private java.util.List<StringDt> myPrefix;
|
||||
|
||||
@Child(name="suffix", type=StringDt.class, order=5, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="HumanName.suffix",
|
||||
formalDefinition="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name"
|
||||
)
|
||||
private java.util.List<StringDt> mySuffix;
|
||||
|
||||
@Child(name="period", type=PeriodDt.class, order=6, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="HumanName.period",
|
||||
formalDefinition="Indicates the period of time when this name was valid for the named person."
|
||||
)
|
||||
private PeriodDt myPeriod;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myUse, myText, myFamily, myGiven, myPrefix, mySuffix, myPeriod);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myUse, myText, myFamily, myGiven, myPrefix, mySuffix, myPeriod);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>use</b> (HumanName.use).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies the purpose for this name
|
||||
* </p>
|
||||
*/
|
||||
public BoundCodeDt<NameUseEnum> getUseElement() {
|
||||
if (myUse == null) {
|
||||
myUse = new BoundCodeDt<NameUseEnum>(NameUseEnum.VALUESET_BINDER);
|
||||
}
|
||||
return myUse;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>use</b> (HumanName.use).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies the purpose for this name
|
||||
* </p>
|
||||
*/
|
||||
public String getUse() {
|
||||
return getUseElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>use</b> (HumanName.use)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies the purpose for this name
|
||||
* </p>
|
||||
*/
|
||||
public HumanNameDt setUse(BoundCodeDt<NameUseEnum> theValue) {
|
||||
myUse = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>use</b> (HumanName.use)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies the purpose for this name
|
||||
* </p>
|
||||
*/
|
||||
public HumanNameDt setUse(NameUseEnum theValue) {
|
||||
getUseElement().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>text</b> (HumanName.text).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A full text representation of the name
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getTextElement() {
|
||||
if (myText == null) {
|
||||
myText = new StringDt();
|
||||
}
|
||||
return myText;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>text</b> (HumanName.text).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A full text representation of the name
|
||||
* </p>
|
||||
*/
|
||||
public String getText() {
|
||||
return getTextElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>text</b> (HumanName.text)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A full text representation of the name
|
||||
* </p>
|
||||
*/
|
||||
public HumanNameDt setText(StringDt theValue) {
|
||||
myText = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>text</b> (HumanName.text)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A full text representation of the name
|
||||
* </p>
|
||||
*/
|
||||
public HumanNameDt setText( String theString) {
|
||||
myText = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>family</b> (HumanName.family).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<StringDt> getFamily() {
|
||||
if (myFamily == null) {
|
||||
myFamily = new java.util.ArrayList<StringDt>();
|
||||
}
|
||||
return myFamily;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>family</b> (HumanName.family)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.
|
||||
* </p>
|
||||
*/
|
||||
public HumanNameDt setFamily(java.util.List<StringDt> theValue) {
|
||||
myFamily = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>family</b> (HumanName.family)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.
|
||||
* </p>
|
||||
*/
|
||||
public StringDt addFamily() {
|
||||
StringDt newType = new StringDt();
|
||||
getFamily().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>family</b> (HumanName.family),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getFamilyFirstRep() {
|
||||
if (getFamily().isEmpty()) {
|
||||
return addFamily();
|
||||
}
|
||||
return getFamily().get(0);
|
||||
}
|
||||
/**
|
||||
* Adds a new value for <b>family</b> (HumanName.family)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.
|
||||
* </p>
|
||||
*
|
||||
* @return Returns a reference to this object, to allow for simple chaining.
|
||||
*/
|
||||
public HumanNameDt addFamily( String theString) {
|
||||
if (myFamily == null) {
|
||||
myFamily = new java.util.ArrayList<StringDt>();
|
||||
}
|
||||
myFamily.add(new StringDt(theString));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>given</b> (HumanName.given).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Given name
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<StringDt> getGiven() {
|
||||
if (myGiven == null) {
|
||||
myGiven = new java.util.ArrayList<StringDt>();
|
||||
}
|
||||
return myGiven;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>given</b> (HumanName.given)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Given name
|
||||
* </p>
|
||||
*/
|
||||
public HumanNameDt setGiven(java.util.List<StringDt> theValue) {
|
||||
myGiven = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>given</b> (HumanName.given)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Given name
|
||||
* </p>
|
||||
*/
|
||||
public StringDt addGiven() {
|
||||
StringDt newType = new StringDt();
|
||||
getGiven().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>given</b> (HumanName.given),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Given name
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getGivenFirstRep() {
|
||||
if (getGiven().isEmpty()) {
|
||||
return addGiven();
|
||||
}
|
||||
return getGiven().get(0);
|
||||
}
|
||||
/**
|
||||
* Adds a new value for <b>given</b> (HumanName.given)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Given name
|
||||
* </p>
|
||||
*
|
||||
* @return Returns a reference to this object, to allow for simple chaining.
|
||||
*/
|
||||
public HumanNameDt addGiven( String theString) {
|
||||
if (myGiven == null) {
|
||||
myGiven = new java.util.ArrayList<StringDt>();
|
||||
}
|
||||
myGiven.add(new StringDt(theString));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>prefix</b> (HumanName.prefix).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<StringDt> getPrefix() {
|
||||
if (myPrefix == null) {
|
||||
myPrefix = new java.util.ArrayList<StringDt>();
|
||||
}
|
||||
return myPrefix;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>prefix</b> (HumanName.prefix)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name
|
||||
* </p>
|
||||
*/
|
||||
public HumanNameDt setPrefix(java.util.List<StringDt> theValue) {
|
||||
myPrefix = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>prefix</b> (HumanName.prefix)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name
|
||||
* </p>
|
||||
*/
|
||||
public StringDt addPrefix() {
|
||||
StringDt newType = new StringDt();
|
||||
getPrefix().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>prefix</b> (HumanName.prefix),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getPrefixFirstRep() {
|
||||
if (getPrefix().isEmpty()) {
|
||||
return addPrefix();
|
||||
}
|
||||
return getPrefix().get(0);
|
||||
}
|
||||
/**
|
||||
* Adds a new value for <b>prefix</b> (HumanName.prefix)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name
|
||||
* </p>
|
||||
*
|
||||
* @return Returns a reference to this object, to allow for simple chaining.
|
||||
*/
|
||||
public HumanNameDt addPrefix( String theString) {
|
||||
if (myPrefix == null) {
|
||||
myPrefix = new java.util.ArrayList<StringDt>();
|
||||
}
|
||||
myPrefix.add(new StringDt(theString));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>suffix</b> (HumanName.suffix).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<StringDt> getSuffix() {
|
||||
if (mySuffix == null) {
|
||||
mySuffix = new java.util.ArrayList<StringDt>();
|
||||
}
|
||||
return mySuffix;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>suffix</b> (HumanName.suffix)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name
|
||||
* </p>
|
||||
*/
|
||||
public HumanNameDt setSuffix(java.util.List<StringDt> theValue) {
|
||||
mySuffix = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>suffix</b> (HumanName.suffix)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name
|
||||
* </p>
|
||||
*/
|
||||
public StringDt addSuffix() {
|
||||
StringDt newType = new StringDt();
|
||||
getSuffix().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>suffix</b> (HumanName.suffix),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getSuffixFirstRep() {
|
||||
if (getSuffix().isEmpty()) {
|
||||
return addSuffix();
|
||||
}
|
||||
return getSuffix().get(0);
|
||||
}
|
||||
/**
|
||||
* Adds a new value for <b>suffix</b> (HumanName.suffix)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name
|
||||
* </p>
|
||||
*
|
||||
* @return Returns a reference to this object, to allow for simple chaining.
|
||||
*/
|
||||
public HumanNameDt addSuffix( String theString) {
|
||||
if (mySuffix == null) {
|
||||
mySuffix = new java.util.ArrayList<StringDt>();
|
||||
}
|
||||
mySuffix.add(new StringDt(theString));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>period</b> (HumanName.period).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Indicates the period of time when this name was valid for the named person.
|
||||
* </p>
|
||||
*/
|
||||
public PeriodDt getPeriod() {
|
||||
if (myPeriod == null) {
|
||||
myPeriod = new PeriodDt();
|
||||
}
|
||||
return myPeriod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>period</b> (HumanName.period)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Indicates the period of time when this name was valid for the named person.
|
||||
* </p>
|
||||
*/
|
||||
public HumanNameDt setPeriod(PeriodDt theValue) {
|
||||
myPeriod = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,477 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.composite;
|
||||
|
||||
import java.net.URI;
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.primitive.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.model.base.composite.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>IdentifierDt</b> Datatype
|
||||
* (Identifier)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A technical identifier - identifies some entity uniquely and unambiguously
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
* Need to be able to identify things with confidence and be sure that the identification is not subject to misinterpretation
|
||||
* </p>
|
||||
*/
|
||||
@DatatypeDef(name="IdentifierDt")
|
||||
public class IdentifierDt
|
||||
extends BaseIdentifierDt implements ICompositeDatatype
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public IdentifierDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new identifier with the given system and value
|
||||
*/
|
||||
@SimpleSetter
|
||||
public IdentifierDt(@SimpleSetter.Parameter(name="theSystem") String theSystem, @SimpleSetter.Parameter(name="theValue") String theValue) {
|
||||
setSystem(theSystem);
|
||||
setValue(theValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new identifier with the given system and value
|
||||
*/
|
||||
@SimpleSetter
|
||||
public IdentifierDt(@SimpleSetter.Parameter(name="theUse") IdentifierUseEnum theUse, @SimpleSetter.Parameter(name="theSystem") String theSystem, @SimpleSetter.Parameter(name="theValue") String theValue, @SimpleSetter.Parameter(name="theLabel") String theLabel) {
|
||||
setUse(theUse);
|
||||
setSystem(theSystem);
|
||||
setValue(theValue);
|
||||
setLabel(theLabel);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "IdentifierDt[" + getValueAsQueryToken() + "]";
|
||||
}
|
||||
|
||||
@Child(name="use", type=CodeDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Identifier.use",
|
||||
formalDefinition="The purpose of this identifier"
|
||||
)
|
||||
private BoundCodeDt<IdentifierUseEnum> myUse;
|
||||
|
||||
@Child(name="label", type=StringDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Identifier.label",
|
||||
formalDefinition="A text string for the identifier that can be displayed to a human so they can recognize the identifier"
|
||||
)
|
||||
private StringDt myLabel;
|
||||
|
||||
@Child(name="system", type=UriDt.class, order=2, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Identifier.system",
|
||||
formalDefinition="Establishes the namespace in which set of possible id values is unique."
|
||||
)
|
||||
private UriDt mySystem;
|
||||
|
||||
@Child(name="value", type=StringDt.class, order=3, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Identifier.value",
|
||||
formalDefinition="The portion of the identifier typically displayed to the user and which is unique within the context of the system."
|
||||
)
|
||||
private StringDt myValue;
|
||||
|
||||
@Child(name="period", type=PeriodDt.class, order=4, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Identifier.period",
|
||||
formalDefinition="Time period during which identifier is/was valid for use"
|
||||
)
|
||||
private PeriodDt myPeriod;
|
||||
|
||||
@Child(name="assigner", order=5, min=0, max=1, type={
|
||||
ca.uhn.fhir.model.dev.resource.Organization.class })
|
||||
@Description(
|
||||
shortDefinition="Identifier.assigner",
|
||||
formalDefinition="Organization that issued/manages the identifier"
|
||||
)
|
||||
private ResourceReferenceDt myAssigner;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myUse, myLabel, mySystem, myValue, myPeriod, myAssigner);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myUse, myLabel, mySystem, myValue, myPeriod, myAssigner);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>use</b> (Identifier.use).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The purpose of this identifier
|
||||
* </p>
|
||||
*/
|
||||
public BoundCodeDt<IdentifierUseEnum> getUseElement() {
|
||||
if (myUse == null) {
|
||||
myUse = new BoundCodeDt<IdentifierUseEnum>(IdentifierUseEnum.VALUESET_BINDER);
|
||||
}
|
||||
return myUse;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>use</b> (Identifier.use).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The purpose of this identifier
|
||||
* </p>
|
||||
*/
|
||||
public String getUse() {
|
||||
return getUseElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>use</b> (Identifier.use)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The purpose of this identifier
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt setUse(BoundCodeDt<IdentifierUseEnum> theValue) {
|
||||
myUse = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>use</b> (Identifier.use)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The purpose of this identifier
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt setUse(IdentifierUseEnum theValue) {
|
||||
getUseElement().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>label</b> (Identifier.label).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A text string for the identifier that can be displayed to a human so they can recognize the identifier
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getLabelElement() {
|
||||
if (myLabel == null) {
|
||||
myLabel = new StringDt();
|
||||
}
|
||||
return myLabel;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>label</b> (Identifier.label).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A text string for the identifier that can be displayed to a human so they can recognize the identifier
|
||||
* </p>
|
||||
*/
|
||||
public String getLabel() {
|
||||
return getLabelElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>label</b> (Identifier.label)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A text string for the identifier that can be displayed to a human so they can recognize the identifier
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt setLabel(StringDt theValue) {
|
||||
myLabel = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>label</b> (Identifier.label)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A text string for the identifier that can be displayed to a human so they can recognize the identifier
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt setLabel( String theString) {
|
||||
myLabel = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>system</b> (Identifier.system).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Establishes the namespace in which set of possible id values is unique.
|
||||
* </p>
|
||||
*/
|
||||
public UriDt getSystemElement() {
|
||||
if (mySystem == null) {
|
||||
mySystem = new UriDt();
|
||||
}
|
||||
return mySystem;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>system</b> (Identifier.system).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Establishes the namespace in which set of possible id values is unique.
|
||||
* </p>
|
||||
*/
|
||||
public URI getSystem() {
|
||||
return getSystemElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>system</b> (Identifier.system)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Establishes the namespace in which set of possible id values is unique.
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt setSystem(UriDt theValue) {
|
||||
mySystem = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>system</b> (Identifier.system)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Establishes the namespace in which set of possible id values is unique.
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt setSystem( String theUri) {
|
||||
mySystem = new UriDt(theUri);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>value</b> (Identifier.value).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The portion of the identifier typically displayed to the user and which is unique within the context of the system.
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getValueElement() {
|
||||
if (myValue == null) {
|
||||
myValue = new StringDt();
|
||||
}
|
||||
return myValue;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>value</b> (Identifier.value).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The portion of the identifier typically displayed to the user and which is unique within the context of the system.
|
||||
* </p>
|
||||
*/
|
||||
public String getValue() {
|
||||
return getValueElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>value</b> (Identifier.value)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The portion of the identifier typically displayed to the user and which is unique within the context of the system.
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt setValue(StringDt theValue) {
|
||||
myValue = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>value</b> (Identifier.value)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The portion of the identifier typically displayed to the user and which is unique within the context of the system.
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt setValue( String theString) {
|
||||
myValue = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>period</b> (Identifier.period).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Time period during which identifier is/was valid for use
|
||||
* </p>
|
||||
*/
|
||||
public PeriodDt getPeriod() {
|
||||
if (myPeriod == null) {
|
||||
myPeriod = new PeriodDt();
|
||||
}
|
||||
return myPeriod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>period</b> (Identifier.period)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Time period during which identifier is/was valid for use
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt setPeriod(PeriodDt theValue) {
|
||||
myPeriod = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>assigner</b> (Identifier.assigner).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Organization that issued/manages the identifier
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getAssigner() {
|
||||
if (myAssigner == null) {
|
||||
myAssigner = new ResourceReferenceDt();
|
||||
}
|
||||
return myAssigner;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>assigner</b> (Identifier.assigner)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Organization that issued/manages the identifier
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt setAssigner(ResourceReferenceDt theValue) {
|
||||
myAssigner = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package ca.uhn.fhir.model.dev.composite;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR Structures - DEV (FHIR Latest)
|
||||
* %%
|
||||
* 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 MoneyDt extends QuantityDt {
|
||||
|
||||
}
|
@ -0,0 +1,262 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.composite;
|
||||
|
||||
import java.net.URI;
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.primitive.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.model.base.composite.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>PeriodDt</b> Datatype
|
||||
* (Period)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A time period defined by a start and end date and optionally time.
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
@DatatypeDef(name="PeriodDt")
|
||||
public class PeriodDt
|
||||
extends BaseIdentifiableElement implements ICompositeDatatype
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public PeriodDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
|
||||
@Child(name="start", type=DateTimeDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Period.start",
|
||||
formalDefinition="The start of the period. The boundary is inclusive."
|
||||
)
|
||||
private DateTimeDt myStart;
|
||||
|
||||
@Child(name="end", type=DateTimeDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Period.end",
|
||||
formalDefinition="The end of the period. If the end of the period is missing, it means that the period is ongoing"
|
||||
)
|
||||
private DateTimeDt myEnd;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myStart, myEnd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myStart, myEnd);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>start</b> (Period.start).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The start of the period. The boundary is inclusive.
|
||||
* </p>
|
||||
*/
|
||||
public DateTimeDt getStartElement() {
|
||||
if (myStart == null) {
|
||||
myStart = new DateTimeDt();
|
||||
}
|
||||
return myStart;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>start</b> (Period.start).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The start of the period. The boundary is inclusive.
|
||||
* </p>
|
||||
*/
|
||||
public Date getStart() {
|
||||
return getStartElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>start</b> (Period.start)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The start of the period. The boundary is inclusive.
|
||||
* </p>
|
||||
*/
|
||||
public PeriodDt setStart(DateTimeDt theValue) {
|
||||
myStart = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>start</b> (Period.start)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The start of the period. The boundary is inclusive.
|
||||
* </p>
|
||||
*/
|
||||
public PeriodDt setStart( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myStart = new DateTimeDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>start</b> (Period.start)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The start of the period. The boundary is inclusive.
|
||||
* </p>
|
||||
*/
|
||||
public PeriodDt setStartWithSecondsPrecision( Date theDate) {
|
||||
myStart = new DateTimeDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>end</b> (Period.end).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The end of the period. If the end of the period is missing, it means that the period is ongoing
|
||||
* </p>
|
||||
*/
|
||||
public DateTimeDt getEndElement() {
|
||||
if (myEnd == null) {
|
||||
myEnd = new DateTimeDt();
|
||||
}
|
||||
return myEnd;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>end</b> (Period.end).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The end of the period. If the end of the period is missing, it means that the period is ongoing
|
||||
* </p>
|
||||
*/
|
||||
public Date getEnd() {
|
||||
return getEndElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>end</b> (Period.end)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The end of the period. If the end of the period is missing, it means that the period is ongoing
|
||||
* </p>
|
||||
*/
|
||||
public PeriodDt setEnd(DateTimeDt theValue) {
|
||||
myEnd = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>end</b> (Period.end)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The end of the period. If the end of the period is missing, it means that the period is ongoing
|
||||
* </p>
|
||||
*/
|
||||
public PeriodDt setEnd( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myEnd = new DateTimeDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>end</b> (Period.end)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The end of the period. If the end of the period is missing, it means that the period is ongoing
|
||||
* </p>
|
||||
*/
|
||||
public PeriodDt setEndWithSecondsPrecision( Date theDate) {
|
||||
myEnd = new DateTimeDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,527 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.composite;
|
||||
|
||||
import java.net.URI;
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.primitive.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.model.base.composite.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>QuantityDt</b> Datatype
|
||||
* (Quantity)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
* Need to able to capture all sorts of measured values, even if the measured value are not precisely quantified. Values include exact measures such as 3.51g, customary units such as 3 tablets, and currencies such as $100.32USD
|
||||
* </p>
|
||||
*/
|
||||
@DatatypeDef(name="QuantityDt")
|
||||
public class QuantityDt
|
||||
extends BaseQuantityDt implements ICompositeDatatype
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public QuantityDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
@SimpleSetter
|
||||
public QuantityDt(@SimpleSetter.Parameter(name="theValue") double theValue) {
|
||||
setValue(theValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
@SimpleSetter
|
||||
public QuantityDt(@SimpleSetter.Parameter(name="theValue") long theValue) {
|
||||
setValue(theValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
@SimpleSetter
|
||||
public QuantityDt(@SimpleSetter.Parameter(name = "theComparator") QuantityComparatorEnum theComparator, @SimpleSetter.Parameter(name = "theValue") double theValue,
|
||||
@SimpleSetter.Parameter(name = "theUnits") String theUnits) {
|
||||
setValue(theValue);
|
||||
setComparator(theComparator);
|
||||
setUnits(theUnits);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
@SimpleSetter
|
||||
public QuantityDt(@SimpleSetter.Parameter(name = "theComparator") QuantityComparatorEnum theComparator, @SimpleSetter.Parameter(name = "theValue") long theValue,
|
||||
@SimpleSetter.Parameter(name = "theUnits") String theUnits) {
|
||||
setValue(theValue);
|
||||
setComparator(theComparator);
|
||||
setUnits(theUnits);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
@SimpleSetter
|
||||
public QuantityDt(@SimpleSetter.Parameter(name="theComparator") QuantityComparatorEnum theComparator, @SimpleSetter.Parameter(name="theValue") double theValue, @SimpleSetter.Parameter(name="theSystem") String theSystem, @SimpleSetter.Parameter(name="theUnits") String theUnits) {
|
||||
setValue(theValue);
|
||||
setComparator(theComparator);
|
||||
setSystem(theSystem);
|
||||
setUnits(theUnits);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
@SimpleSetter
|
||||
public QuantityDt(@SimpleSetter.Parameter(name="theComparator") QuantityComparatorEnum theComparator, @SimpleSetter.Parameter(name="theValue") long theValue, @SimpleSetter.Parameter(name="theSystem") String theSystem, @SimpleSetter.Parameter(name="theUnits") String theUnits) {
|
||||
setValue(theValue);
|
||||
setComparator(theComparator);
|
||||
setSystem(theSystem);
|
||||
setUnits(theUnits);
|
||||
}
|
||||
|
||||
|
||||
@Child(name="value", type=DecimalDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Quantity.value",
|
||||
formalDefinition="The value of the measured amount. The value includes an implicit precision in the presentation of the value"
|
||||
)
|
||||
private DecimalDt myValue;
|
||||
|
||||
@Child(name="comparator", type=CodeDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Quantity.comparator",
|
||||
formalDefinition="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"
|
||||
)
|
||||
private BoundCodeDt<QuantityComparatorEnum> myComparator;
|
||||
|
||||
@Child(name="units", type=StringDt.class, order=2, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Quantity.units",
|
||||
formalDefinition="A human-readable form of the units"
|
||||
)
|
||||
private StringDt myUnits;
|
||||
|
||||
@Child(name="system", type=UriDt.class, order=3, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Quantity.system",
|
||||
formalDefinition="The identification of the system that provides the coded form of the unit"
|
||||
)
|
||||
private UriDt mySystem;
|
||||
|
||||
@Child(name="code", type=CodeDt.class, order=4, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Quantity.code",
|
||||
formalDefinition="A computer processable form of the units in some unit representation system"
|
||||
)
|
||||
private CodeDt myCode;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myValue, myComparator, myUnits, mySystem, myCode);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myValue, myComparator, myUnits, mySystem, myCode);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>value</b> (Quantity.value).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The value of the measured amount. The value includes an implicit precision in the presentation of the value
|
||||
* </p>
|
||||
*/
|
||||
public DecimalDt getValueElement() {
|
||||
if (myValue == null) {
|
||||
myValue = new DecimalDt();
|
||||
}
|
||||
return myValue;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>value</b> (Quantity.value).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The value of the measured amount. The value includes an implicit precision in the presentation of the value
|
||||
* </p>
|
||||
*/
|
||||
public BigDecimal getValue() {
|
||||
return getValueElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>value</b> (Quantity.value)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The value of the measured amount. The value includes an implicit precision in the presentation of the value
|
||||
* </p>
|
||||
*/
|
||||
public QuantityDt setValue(DecimalDt theValue) {
|
||||
myValue = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>value</b> (Quantity.value)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The value of the measured amount. The value includes an implicit precision in the presentation of the value
|
||||
* </p>
|
||||
*/
|
||||
public QuantityDt setValue( long theValue) {
|
||||
myValue = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>value</b> (Quantity.value)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The value of the measured amount. The value includes an implicit precision in the presentation of the value
|
||||
* </p>
|
||||
*/
|
||||
public QuantityDt setValue( double theValue) {
|
||||
myValue = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>value</b> (Quantity.value)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The value of the measured amount. The value includes an implicit precision in the presentation of the value
|
||||
* </p>
|
||||
*/
|
||||
public QuantityDt setValue( java.math.BigDecimal theValue) {
|
||||
myValue = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>comparator</b> (Quantity.comparator).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* 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
|
||||
* </p>
|
||||
*/
|
||||
public BoundCodeDt<QuantityComparatorEnum> getComparatorElement() {
|
||||
if (myComparator == null) {
|
||||
myComparator = new BoundCodeDt<QuantityComparatorEnum>(QuantityComparatorEnum.VALUESET_BINDER);
|
||||
}
|
||||
return myComparator;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>comparator</b> (Quantity.comparator).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* 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
|
||||
* </p>
|
||||
*/
|
||||
public String getComparator() {
|
||||
return getComparatorElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>comparator</b> (Quantity.comparator)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* 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
|
||||
* </p>
|
||||
*/
|
||||
public QuantityDt setComparator(BoundCodeDt<QuantityComparatorEnum> theValue) {
|
||||
myComparator = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>comparator</b> (Quantity.comparator)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* 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
|
||||
* </p>
|
||||
*/
|
||||
public QuantityDt setComparator(QuantityComparatorEnum theValue) {
|
||||
getComparatorElement().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>units</b> (Quantity.units).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A human-readable form of the units
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getUnitsElement() {
|
||||
if (myUnits == null) {
|
||||
myUnits = new StringDt();
|
||||
}
|
||||
return myUnits;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>units</b> (Quantity.units).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A human-readable form of the units
|
||||
* </p>
|
||||
*/
|
||||
public String getUnits() {
|
||||
return getUnitsElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>units</b> (Quantity.units)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A human-readable form of the units
|
||||
* </p>
|
||||
*/
|
||||
public QuantityDt setUnits(StringDt theValue) {
|
||||
myUnits = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>units</b> (Quantity.units)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A human-readable form of the units
|
||||
* </p>
|
||||
*/
|
||||
public QuantityDt setUnits( String theString) {
|
||||
myUnits = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>system</b> (Quantity.system).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The identification of the system that provides the coded form of the unit
|
||||
* </p>
|
||||
*/
|
||||
public UriDt getSystemElement() {
|
||||
if (mySystem == null) {
|
||||
mySystem = new UriDt();
|
||||
}
|
||||
return mySystem;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>system</b> (Quantity.system).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The identification of the system that provides the coded form of the unit
|
||||
* </p>
|
||||
*/
|
||||
public URI getSystem() {
|
||||
return getSystemElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>system</b> (Quantity.system)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The identification of the system that provides the coded form of the unit
|
||||
* </p>
|
||||
*/
|
||||
public QuantityDt setSystem(UriDt theValue) {
|
||||
mySystem = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>system</b> (Quantity.system)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The identification of the system that provides the coded form of the unit
|
||||
* </p>
|
||||
*/
|
||||
public QuantityDt setSystem( String theUri) {
|
||||
mySystem = new UriDt(theUri);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>code</b> (Quantity.code).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A computer processable form of the units in some unit representation system
|
||||
* </p>
|
||||
*/
|
||||
public CodeDt getCodeElement() {
|
||||
if (myCode == null) {
|
||||
myCode = new CodeDt();
|
||||
}
|
||||
return myCode;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>code</b> (Quantity.code).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A computer processable form of the units in some unit representation system
|
||||
* </p>
|
||||
*/
|
||||
public String getCode() {
|
||||
return getCodeElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>code</b> (Quantity.code)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A computer processable form of the units in some unit representation system
|
||||
* </p>
|
||||
*/
|
||||
public QuantityDt setCode(CodeDt theValue) {
|
||||
myCode = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>code</b> (Quantity.code)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A computer processable form of the units in some unit representation system
|
||||
* </p>
|
||||
*/
|
||||
public QuantityDt setCode( String theCode) {
|
||||
myCode = new CodeDt(theCode);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,180 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.composite;
|
||||
|
||||
import java.net.URI;
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.primitive.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.model.base.composite.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>RangeDt</b> Datatype
|
||||
* (Range)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A set of ordered Quantities defined by a low and high limit.
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
* Need to be able to specify ranges of values
|
||||
* </p>
|
||||
*/
|
||||
@DatatypeDef(name="RangeDt")
|
||||
public class RangeDt
|
||||
extends BaseIdentifiableElement implements ICompositeDatatype
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public RangeDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
|
||||
@Child(name="low", type=QuantityDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Range.low",
|
||||
formalDefinition="The low limit. The boundary is inclusive."
|
||||
)
|
||||
private QuantityDt myLow;
|
||||
|
||||
@Child(name="high", type=QuantityDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Range.high",
|
||||
formalDefinition="The high limit. The boundary is inclusive."
|
||||
)
|
||||
private QuantityDt myHigh;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myLow, myHigh);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myLow, myHigh);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>low</b> (Range.low).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The low limit. The boundary is inclusive.
|
||||
* </p>
|
||||
*/
|
||||
public QuantityDt getLow() {
|
||||
if (myLow == null) {
|
||||
myLow = new QuantityDt();
|
||||
}
|
||||
return myLow;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>low</b> (Range.low)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The low limit. The boundary is inclusive.
|
||||
* </p>
|
||||
*/
|
||||
public RangeDt setLow(QuantityDt theValue) {
|
||||
myLow = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>high</b> (Range.high).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The high limit. The boundary is inclusive.
|
||||
* </p>
|
||||
*/
|
||||
public QuantityDt getHigh() {
|
||||
if (myHigh == null) {
|
||||
myHigh = new QuantityDt();
|
||||
}
|
||||
return myHigh;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>high</b> (Range.high)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The high limit. The boundary is inclusive.
|
||||
* </p>
|
||||
*/
|
||||
public RangeDt setHigh(QuantityDt theValue) {
|
||||
myHigh = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,180 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.composite;
|
||||
|
||||
import java.net.URI;
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.primitive.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.model.base.composite.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>RatioDt</b> Datatype
|
||||
* (Ratio)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A relationship of two Quantity values - expressed as a numerator and a denominator.
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
* Need to able to capture ratios for some measurements (titers) and some rates (costs)
|
||||
* </p>
|
||||
*/
|
||||
@DatatypeDef(name="RatioDt")
|
||||
public class RatioDt
|
||||
extends BaseIdentifiableElement implements ICompositeDatatype
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public RatioDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
|
||||
@Child(name="numerator", type=QuantityDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Ratio.numerator",
|
||||
formalDefinition="The value of the numerator"
|
||||
)
|
||||
private QuantityDt myNumerator;
|
||||
|
||||
@Child(name="denominator", type=QuantityDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Ratio.denominator",
|
||||
formalDefinition="The value of the denominator"
|
||||
)
|
||||
private QuantityDt myDenominator;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myNumerator, myDenominator);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myNumerator, myDenominator);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>numerator</b> (Ratio.numerator).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The value of the numerator
|
||||
* </p>
|
||||
*/
|
||||
public QuantityDt getNumerator() {
|
||||
if (myNumerator == null) {
|
||||
myNumerator = new QuantityDt();
|
||||
}
|
||||
return myNumerator;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>numerator</b> (Ratio.numerator)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The value of the numerator
|
||||
* </p>
|
||||
*/
|
||||
public RatioDt setNumerator(QuantityDt theValue) {
|
||||
myNumerator = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>denominator</b> (Ratio.denominator).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The value of the denominator
|
||||
* </p>
|
||||
*/
|
||||
public QuantityDt getDenominator() {
|
||||
if (myDenominator == null) {
|
||||
myDenominator = new QuantityDt();
|
||||
}
|
||||
return myDenominator;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>denominator</b> (Ratio.denominator)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The value of the denominator
|
||||
* </p>
|
||||
*/
|
||||
public RatioDt setDenominator(QuantityDt theValue) {
|
||||
myDenominator = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,236 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.composite;
|
||||
|
||||
import java.net.URI;
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.primitive.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.model.base.composite.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>ReferenceDt</b> Datatype
|
||||
* (Reference)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A reference from one resource to another
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
@DatatypeDef(name="ReferenceDt")
|
||||
public class ReferenceDt
|
||||
extends BaseIdentifiableElement implements ICompositeDatatype
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public ReferenceDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
|
||||
@Child(name="reference", type=StringDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Reference.reference",
|
||||
formalDefinition="A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources"
|
||||
)
|
||||
private StringDt myReference;
|
||||
|
||||
@Child(name="display", type=StringDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Reference.display",
|
||||
formalDefinition="Plain text narrative that identifies the resource in addition to the resource reference"
|
||||
)
|
||||
private StringDt myDisplay;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myReference, myDisplay);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myReference, myDisplay);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>reference</b> (Reference.reference).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getReferenceElement() {
|
||||
if (myReference == null) {
|
||||
myReference = new StringDt();
|
||||
}
|
||||
return myReference;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>reference</b> (Reference.reference).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources
|
||||
* </p>
|
||||
*/
|
||||
public String getReference() {
|
||||
return getReferenceElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>reference</b> (Reference.reference)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources
|
||||
* </p>
|
||||
*/
|
||||
public ReferenceDt setReference(StringDt theValue) {
|
||||
myReference = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>reference</b> (Reference.reference)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources
|
||||
* </p>
|
||||
*/
|
||||
public ReferenceDt setReference( String theString) {
|
||||
myReference = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>display</b> (Reference.display).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Plain text narrative that identifies the resource in addition to the resource reference
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getDisplayElement() {
|
||||
if (myDisplay == null) {
|
||||
myDisplay = new StringDt();
|
||||
}
|
||||
return myDisplay;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>display</b> (Reference.display).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Plain text narrative that identifies the resource in addition to the resource reference
|
||||
* </p>
|
||||
*/
|
||||
public String getDisplay() {
|
||||
return getDisplayElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>display</b> (Reference.display)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Plain text narrative that identifies the resource in addition to the resource reference
|
||||
* </p>
|
||||
*/
|
||||
public ReferenceDt setDisplay(StringDt theValue) {
|
||||
myDisplay = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>display</b> (Reference.display)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Plain text narrative that identifies the resource in addition to the resource reference
|
||||
* </p>
|
||||
*/
|
||||
public ReferenceDt setDisplay( String theString) {
|
||||
myDisplay = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,652 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.composite;
|
||||
|
||||
import java.net.URI;
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.primitive.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.model.base.composite.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>SampledDataDt</b> Datatype
|
||||
* (SampledData)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
* There is a need for a concise way to handle the data produced by devices that sample a physical state at a high frequency
|
||||
* </p>
|
||||
*/
|
||||
@DatatypeDef(name="SampledDataDt")
|
||||
public class SampledDataDt
|
||||
extends BaseIdentifiableElement implements ICompositeDatatype
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public SampledDataDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
|
||||
@Child(name="origin", type=QuantityDt.class, order=0, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="SampledData.origin",
|
||||
formalDefinition="The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series"
|
||||
)
|
||||
private QuantityDt myOrigin;
|
||||
|
||||
@Child(name="period", type=DecimalDt.class, order=1, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="SampledData.period",
|
||||
formalDefinition="The length of time between sampling times, measured in milliseconds"
|
||||
)
|
||||
private DecimalDt myPeriod;
|
||||
|
||||
@Child(name="factor", type=DecimalDt.class, order=2, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="SampledData.factor",
|
||||
formalDefinition="A correction factor that is applied to the sampled data points before they are added to the origin"
|
||||
)
|
||||
private DecimalDt myFactor;
|
||||
|
||||
@Child(name="lowerLimit", type=DecimalDt.class, order=3, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="SampledData.lowerLimit",
|
||||
formalDefinition="The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit)"
|
||||
)
|
||||
private DecimalDt myLowerLimit;
|
||||
|
||||
@Child(name="upperLimit", type=DecimalDt.class, order=4, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="SampledData.upperLimit",
|
||||
formalDefinition="The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit)"
|
||||
)
|
||||
private DecimalDt myUpperLimit;
|
||||
|
||||
@Child(name="dimensions", type=IntegerDt.class, order=5, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="SampledData.dimensions",
|
||||
formalDefinition="The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once"
|
||||
)
|
||||
private IntegerDt myDimensions;
|
||||
|
||||
@Child(name="data", type=StringDt.class, order=6, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="SampledData.data",
|
||||
formalDefinition="A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value"
|
||||
)
|
||||
private StringDt myData;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myOrigin, myPeriod, myFactor, myLowerLimit, myUpperLimit, myDimensions, myData);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myOrigin, myPeriod, myFactor, myLowerLimit, myUpperLimit, myDimensions, myData);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>origin</b> (SampledData.origin).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series
|
||||
* </p>
|
||||
*/
|
||||
public QuantityDt getOrigin() {
|
||||
if (myOrigin == null) {
|
||||
myOrigin = new QuantityDt();
|
||||
}
|
||||
return myOrigin;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>origin</b> (SampledData.origin)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series
|
||||
* </p>
|
||||
*/
|
||||
public SampledDataDt setOrigin(QuantityDt theValue) {
|
||||
myOrigin = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>period</b> (SampledData.period).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The length of time between sampling times, measured in milliseconds
|
||||
* </p>
|
||||
*/
|
||||
public DecimalDt getPeriodElement() {
|
||||
if (myPeriod == null) {
|
||||
myPeriod = new DecimalDt();
|
||||
}
|
||||
return myPeriod;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>period</b> (SampledData.period).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The length of time between sampling times, measured in milliseconds
|
||||
* </p>
|
||||
*/
|
||||
public BigDecimal getPeriod() {
|
||||
return getPeriodElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>period</b> (SampledData.period)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The length of time between sampling times, measured in milliseconds
|
||||
* </p>
|
||||
*/
|
||||
public SampledDataDt setPeriod(DecimalDt theValue) {
|
||||
myPeriod = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>period</b> (SampledData.period)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The length of time between sampling times, measured in milliseconds
|
||||
* </p>
|
||||
*/
|
||||
public SampledDataDt setPeriod( long theValue) {
|
||||
myPeriod = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>period</b> (SampledData.period)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The length of time between sampling times, measured in milliseconds
|
||||
* </p>
|
||||
*/
|
||||
public SampledDataDt setPeriod( double theValue) {
|
||||
myPeriod = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>period</b> (SampledData.period)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The length of time between sampling times, measured in milliseconds
|
||||
* </p>
|
||||
*/
|
||||
public SampledDataDt setPeriod( java.math.BigDecimal theValue) {
|
||||
myPeriod = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>factor</b> (SampledData.factor).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A correction factor that is applied to the sampled data points before they are added to the origin
|
||||
* </p>
|
||||
*/
|
||||
public DecimalDt getFactorElement() {
|
||||
if (myFactor == null) {
|
||||
myFactor = new DecimalDt();
|
||||
}
|
||||
return myFactor;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>factor</b> (SampledData.factor).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A correction factor that is applied to the sampled data points before they are added to the origin
|
||||
* </p>
|
||||
*/
|
||||
public BigDecimal getFactor() {
|
||||
return getFactorElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>factor</b> (SampledData.factor)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A correction factor that is applied to the sampled data points before they are added to the origin
|
||||
* </p>
|
||||
*/
|
||||
public SampledDataDt setFactor(DecimalDt theValue) {
|
||||
myFactor = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>factor</b> (SampledData.factor)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A correction factor that is applied to the sampled data points before they are added to the origin
|
||||
* </p>
|
||||
*/
|
||||
public SampledDataDt setFactor( long theValue) {
|
||||
myFactor = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>factor</b> (SampledData.factor)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A correction factor that is applied to the sampled data points before they are added to the origin
|
||||
* </p>
|
||||
*/
|
||||
public SampledDataDt setFactor( double theValue) {
|
||||
myFactor = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>factor</b> (SampledData.factor)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A correction factor that is applied to the sampled data points before they are added to the origin
|
||||
* </p>
|
||||
*/
|
||||
public SampledDataDt setFactor( java.math.BigDecimal theValue) {
|
||||
myFactor = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>lowerLimit</b> (SampledData.lowerLimit).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit)
|
||||
* </p>
|
||||
*/
|
||||
public DecimalDt getLowerLimitElement() {
|
||||
if (myLowerLimit == null) {
|
||||
myLowerLimit = new DecimalDt();
|
||||
}
|
||||
return myLowerLimit;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>lowerLimit</b> (SampledData.lowerLimit).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit)
|
||||
* </p>
|
||||
*/
|
||||
public BigDecimal getLowerLimit() {
|
||||
return getLowerLimitElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>lowerLimit</b> (SampledData.lowerLimit)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit)
|
||||
* </p>
|
||||
*/
|
||||
public SampledDataDt setLowerLimit(DecimalDt theValue) {
|
||||
myLowerLimit = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>lowerLimit</b> (SampledData.lowerLimit)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit)
|
||||
* </p>
|
||||
*/
|
||||
public SampledDataDt setLowerLimit( long theValue) {
|
||||
myLowerLimit = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>lowerLimit</b> (SampledData.lowerLimit)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit)
|
||||
* </p>
|
||||
*/
|
||||
public SampledDataDt setLowerLimit( double theValue) {
|
||||
myLowerLimit = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>lowerLimit</b> (SampledData.lowerLimit)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The lower limit of detection of the measured points. This is needed if any of the data points have the value \"L\" (lower than detection limit)
|
||||
* </p>
|
||||
*/
|
||||
public SampledDataDt setLowerLimit( java.math.BigDecimal theValue) {
|
||||
myLowerLimit = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>upperLimit</b> (SampledData.upperLimit).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit)
|
||||
* </p>
|
||||
*/
|
||||
public DecimalDt getUpperLimitElement() {
|
||||
if (myUpperLimit == null) {
|
||||
myUpperLimit = new DecimalDt();
|
||||
}
|
||||
return myUpperLimit;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>upperLimit</b> (SampledData.upperLimit).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit)
|
||||
* </p>
|
||||
*/
|
||||
public BigDecimal getUpperLimit() {
|
||||
return getUpperLimitElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>upperLimit</b> (SampledData.upperLimit)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit)
|
||||
* </p>
|
||||
*/
|
||||
public SampledDataDt setUpperLimit(DecimalDt theValue) {
|
||||
myUpperLimit = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>upperLimit</b> (SampledData.upperLimit)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit)
|
||||
* </p>
|
||||
*/
|
||||
public SampledDataDt setUpperLimit( long theValue) {
|
||||
myUpperLimit = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>upperLimit</b> (SampledData.upperLimit)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit)
|
||||
* </p>
|
||||
*/
|
||||
public SampledDataDt setUpperLimit( double theValue) {
|
||||
myUpperLimit = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>upperLimit</b> (SampledData.upperLimit)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The upper limit of detection of the measured points. This is needed if any of the data points have the value \"U\" (higher than detection limit)
|
||||
* </p>
|
||||
*/
|
||||
public SampledDataDt setUpperLimit( java.math.BigDecimal theValue) {
|
||||
myUpperLimit = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>dimensions</b> (SampledData.dimensions).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once
|
||||
* </p>
|
||||
*/
|
||||
public IntegerDt getDimensionsElement() {
|
||||
if (myDimensions == null) {
|
||||
myDimensions = new IntegerDt();
|
||||
}
|
||||
return myDimensions;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>dimensions</b> (SampledData.dimensions).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once
|
||||
* </p>
|
||||
*/
|
||||
public Integer getDimensions() {
|
||||
return getDimensionsElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>dimensions</b> (SampledData.dimensions)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once
|
||||
* </p>
|
||||
*/
|
||||
public SampledDataDt setDimensions(IntegerDt theValue) {
|
||||
myDimensions = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>dimensions</b> (SampledData.dimensions)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once
|
||||
* </p>
|
||||
*/
|
||||
public SampledDataDt setDimensions( int theInteger) {
|
||||
myDimensions = new IntegerDt(theInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>data</b> (SampledData.data).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getDataElement() {
|
||||
if (myData == null) {
|
||||
myData = new StringDt();
|
||||
}
|
||||
return myData;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>data</b> (SampledData.data).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value
|
||||
* </p>
|
||||
*/
|
||||
public String getData() {
|
||||
return getDataElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>data</b> (SampledData.data)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value
|
||||
* </p>
|
||||
*/
|
||||
public SampledDataDt setData(StringDt theValue) {
|
||||
myData = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>data</b> (SampledData.data)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value
|
||||
* </p>
|
||||
*/
|
||||
public SampledDataDt setData( String theString) {
|
||||
myData = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,683 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.composite;
|
||||
|
||||
import java.net.URI;
|
||||
import java.math.BigDecimal;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.primitive.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.model.base.composite.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointSystemEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContactPointUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.PropertyRepresentationEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuantityComparatorEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>TimingDt</b> Datatype
|
||||
* (Timing)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Specifies an event that may occur multiple times. Timing schedules are used for to record when things are expected or requested to occur.
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
* Need to able to track proposed timing schedules. There are several different ways to do this: one or more specified times, a simple rules like three times a day, or before/after meals
|
||||
* </p>
|
||||
*/
|
||||
@DatatypeDef(name="TimingDt")
|
||||
public class TimingDt
|
||||
extends BaseIdentifiableElement implements ICompositeDatatype
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public TimingDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
|
||||
@Child(name="event", type=PeriodDt.class, order=0, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="Timing.event",
|
||||
formalDefinition="Identifies specific time periods when the event should occur"
|
||||
)
|
||||
private java.util.List<PeriodDt> myEvent;
|
||||
|
||||
@Child(name="repeat", order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Timing.repeat",
|
||||
formalDefinition="Identifies a repeating pattern to the intended time periods."
|
||||
)
|
||||
private Repeat myRepeat;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myEvent, myRepeat);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myEvent, myRepeat);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>event</b> (Timing.event).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies specific time periods when the event should occur
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<PeriodDt> getEvent() {
|
||||
if (myEvent == null) {
|
||||
myEvent = new java.util.ArrayList<PeriodDt>();
|
||||
}
|
||||
return myEvent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>event</b> (Timing.event)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies specific time periods when the event should occur
|
||||
* </p>
|
||||
*/
|
||||
public TimingDt setEvent(java.util.List<PeriodDt> theValue) {
|
||||
myEvent = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>event</b> (Timing.event)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies specific time periods when the event should occur
|
||||
* </p>
|
||||
*/
|
||||
public PeriodDt addEvent() {
|
||||
PeriodDt newType = new PeriodDt();
|
||||
getEvent().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>event</b> (Timing.event),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies specific time periods when the event should occur
|
||||
* </p>
|
||||
*/
|
||||
public PeriodDt getEventFirstRep() {
|
||||
if (getEvent().isEmpty()) {
|
||||
return addEvent();
|
||||
}
|
||||
return getEvent().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>repeat</b> (Timing.repeat).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies a repeating pattern to the intended time periods.
|
||||
* </p>
|
||||
*/
|
||||
public Repeat getRepeat() {
|
||||
if (myRepeat == null) {
|
||||
myRepeat = new Repeat();
|
||||
}
|
||||
return myRepeat;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>repeat</b> (Timing.repeat)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies a repeating pattern to the intended time periods.
|
||||
* </p>
|
||||
*/
|
||||
public TimingDt setRepeat(Repeat theValue) {
|
||||
myRepeat = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Block class for child element: <b>Timing.repeat</b> (Timing.repeat)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies a repeating pattern to the intended time periods.
|
||||
* </p>
|
||||
*/
|
||||
@Block()
|
||||
public static class Repeat
|
||||
extends BaseIdentifiableElement implements IResourceBlock {
|
||||
|
||||
@Child(name="frequency", type=IntegerDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Timing.repeat.frequency",
|
||||
formalDefinition="Indicates how often the event should occur."
|
||||
)
|
||||
private IntegerDt myFrequency;
|
||||
|
||||
@Child(name="when", type=CodeDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Timing.repeat.when",
|
||||
formalDefinition="Identifies the occurrence of daily life that determines timing"
|
||||
)
|
||||
private BoundCodeDt<EventTimingEnum> myWhen;
|
||||
|
||||
@Child(name="duration", type=DecimalDt.class, order=2, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="Timing.repeat.duration",
|
||||
formalDefinition="How long each repetition should last"
|
||||
)
|
||||
private DecimalDt myDuration;
|
||||
|
||||
@Child(name="units", type=CodeDt.class, order=3, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="Timing.repeat.units",
|
||||
formalDefinition="The units of time for the duration"
|
||||
)
|
||||
private BoundCodeDt<UnitsOfTimeEnum> myUnits;
|
||||
|
||||
@Child(name="count", type=IntegerDt.class, order=4, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Timing.repeat.count",
|
||||
formalDefinition="A total count of the desired number of repetitions"
|
||||
)
|
||||
private IntegerDt myCount;
|
||||
|
||||
@Child(name="end", type=DateTimeDt.class, order=5, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Timing.repeat.end",
|
||||
formalDefinition="When to stop repeating the timing schedule"
|
||||
)
|
||||
private DateTimeDt myEnd;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myFrequency, myWhen, myDuration, myUnits, myCount, myEnd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myFrequency, myWhen, myDuration, myUnits, myCount, myEnd);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>frequency</b> (Timing.repeat.frequency).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Indicates how often the event should occur.
|
||||
* </p>
|
||||
*/
|
||||
public IntegerDt getFrequencyElement() {
|
||||
if (myFrequency == null) {
|
||||
myFrequency = new IntegerDt();
|
||||
}
|
||||
return myFrequency;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>frequency</b> (Timing.repeat.frequency).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Indicates how often the event should occur.
|
||||
* </p>
|
||||
*/
|
||||
public Integer getFrequency() {
|
||||
return getFrequencyElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>frequency</b> (Timing.repeat.frequency)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Indicates how often the event should occur.
|
||||
* </p>
|
||||
*/
|
||||
public Repeat setFrequency(IntegerDt theValue) {
|
||||
myFrequency = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>frequency</b> (Timing.repeat.frequency)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Indicates how often the event should occur.
|
||||
* </p>
|
||||
*/
|
||||
public Repeat setFrequency( int theInteger) {
|
||||
myFrequency = new IntegerDt(theInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>when</b> (Timing.repeat.when).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies the occurrence of daily life that determines timing
|
||||
* </p>
|
||||
*/
|
||||
public BoundCodeDt<EventTimingEnum> getWhenElement() {
|
||||
if (myWhen == null) {
|
||||
myWhen = new BoundCodeDt<EventTimingEnum>(EventTimingEnum.VALUESET_BINDER);
|
||||
}
|
||||
return myWhen;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>when</b> (Timing.repeat.when).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies the occurrence of daily life that determines timing
|
||||
* </p>
|
||||
*/
|
||||
public String getWhen() {
|
||||
return getWhenElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>when</b> (Timing.repeat.when)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies the occurrence of daily life that determines timing
|
||||
* </p>
|
||||
*/
|
||||
public Repeat setWhen(BoundCodeDt<EventTimingEnum> theValue) {
|
||||
myWhen = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>when</b> (Timing.repeat.when)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies the occurrence of daily life that determines timing
|
||||
* </p>
|
||||
*/
|
||||
public Repeat setWhen(EventTimingEnum theValue) {
|
||||
getWhenElement().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>duration</b> (Timing.repeat.duration).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* How long each repetition should last
|
||||
* </p>
|
||||
*/
|
||||
public DecimalDt getDurationElement() {
|
||||
if (myDuration == null) {
|
||||
myDuration = new DecimalDt();
|
||||
}
|
||||
return myDuration;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>duration</b> (Timing.repeat.duration).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* How long each repetition should last
|
||||
* </p>
|
||||
*/
|
||||
public BigDecimal getDuration() {
|
||||
return getDurationElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>duration</b> (Timing.repeat.duration)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* How long each repetition should last
|
||||
* </p>
|
||||
*/
|
||||
public Repeat setDuration(DecimalDt theValue) {
|
||||
myDuration = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>duration</b> (Timing.repeat.duration)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* How long each repetition should last
|
||||
* </p>
|
||||
*/
|
||||
public Repeat setDuration( long theValue) {
|
||||
myDuration = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>duration</b> (Timing.repeat.duration)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* How long each repetition should last
|
||||
* </p>
|
||||
*/
|
||||
public Repeat setDuration( double theValue) {
|
||||
myDuration = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>duration</b> (Timing.repeat.duration)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* How long each repetition should last
|
||||
* </p>
|
||||
*/
|
||||
public Repeat setDuration( java.math.BigDecimal theValue) {
|
||||
myDuration = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>units</b> (Timing.repeat.units).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The units of time for the duration
|
||||
* </p>
|
||||
*/
|
||||
public BoundCodeDt<UnitsOfTimeEnum> getUnitsElement() {
|
||||
if (myUnits == null) {
|
||||
myUnits = new BoundCodeDt<UnitsOfTimeEnum>(UnitsOfTimeEnum.VALUESET_BINDER);
|
||||
}
|
||||
return myUnits;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>units</b> (Timing.repeat.units).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The units of time for the duration
|
||||
* </p>
|
||||
*/
|
||||
public String getUnits() {
|
||||
return getUnitsElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>units</b> (Timing.repeat.units)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The units of time for the duration
|
||||
* </p>
|
||||
*/
|
||||
public Repeat setUnits(BoundCodeDt<UnitsOfTimeEnum> theValue) {
|
||||
myUnits = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>units</b> (Timing.repeat.units)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The units of time for the duration
|
||||
* </p>
|
||||
*/
|
||||
public Repeat setUnits(UnitsOfTimeEnum theValue) {
|
||||
getUnitsElement().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>count</b> (Timing.repeat.count).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A total count of the desired number of repetitions
|
||||
* </p>
|
||||
*/
|
||||
public IntegerDt getCountElement() {
|
||||
if (myCount == null) {
|
||||
myCount = new IntegerDt();
|
||||
}
|
||||
return myCount;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>count</b> (Timing.repeat.count).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A total count of the desired number of repetitions
|
||||
* </p>
|
||||
*/
|
||||
public Integer getCount() {
|
||||
return getCountElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>count</b> (Timing.repeat.count)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A total count of the desired number of repetitions
|
||||
* </p>
|
||||
*/
|
||||
public Repeat setCount(IntegerDt theValue) {
|
||||
myCount = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>count</b> (Timing.repeat.count)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A total count of the desired number of repetitions
|
||||
* </p>
|
||||
*/
|
||||
public Repeat setCount( int theInteger) {
|
||||
myCount = new IntegerDt(theInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>end</b> (Timing.repeat.end).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* When to stop repeating the timing schedule
|
||||
* </p>
|
||||
*/
|
||||
public DateTimeDt getEndElement() {
|
||||
if (myEnd == null) {
|
||||
myEnd = new DateTimeDt();
|
||||
}
|
||||
return myEnd;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>end</b> (Timing.repeat.end).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* When to stop repeating the timing schedule
|
||||
* </p>
|
||||
*/
|
||||
public Date getEnd() {
|
||||
return getEndElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>end</b> (Timing.repeat.end)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* When to stop repeating the timing schedule
|
||||
* </p>
|
||||
*/
|
||||
public Repeat setEnd(DateTimeDt theValue) {
|
||||
myEnd = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>end</b> (Timing.repeat.end)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* When to stop repeating the timing schedule
|
||||
* </p>
|
||||
*/
|
||||
public Repeat setEnd( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myEnd = new DateTimeDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>end</b> (Timing.repeat.end)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* When to stop repeating the timing schedule
|
||||
* </p>
|
||||
*/
|
||||
public Repeat setEndWithSecondsPrecision( Date theDate) {
|
||||
myEnd = new DateTimeDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,657 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.resource;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.net.URI;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.rest.gclient.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdministrativeGenderEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCertaintyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCriticalityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AlertStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.AllergyIntolerance;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnswerFormatEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Appointment;
|
||||
import ca.uhn.fhir.model.dev.valueset.AppointmentStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dev.resource.CarePlan;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanGoalStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CausalityExpectationEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionAttestationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConceptMapEquivalenceEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Condition;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConditionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ContactPointDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Contract;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractSubtypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTermTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataAbsentReasonEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Device;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticReport;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentManifest;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentReference;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentReferenceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ElementDefinitionDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaAdditiveTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.EpisodeOfCare;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExcludeFoodModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExposureTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.FamilyHistory;
|
||||
import ca.uhn.fhir.model.dev.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FluidConsistencyTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FoodTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Group;
|
||||
import ca.uhn.fhir.model.dev.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dev.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dev.resource.Immunization;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImmunizationRecommendation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRouteCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ListModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Location;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Media;
|
||||
import ca.uhn.fhir.model.dev.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Medication;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationAdministration;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationAdministrationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationDispense;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationPrescription;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationPrescriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationStatement;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Microarray;
|
||||
import ca.uhn.fhir.model.dev.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Namespace;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceIdentifierTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutrientModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutritionOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Observation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationInterpretationCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationReliabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationDefinition;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationOutcome;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationParameterUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Order;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrderOutcomeStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantRequiredEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Patient;
|
||||
import ca.uhn.fhir.model.dev.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PriorityCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Procedure;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProcedureRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Profile;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProvenanceEntityRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.QueryOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Questionnaire;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireAnswersStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.RangeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.RatioDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReactionSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ReferralRequest;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReferralStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResponseTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulConformanceModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulSecurityServiceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Schedule;
|
||||
import ca.uhn.fhir.model.dev.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventActionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectLifecycleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectSensitivityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventParticipantNetworkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventSourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.SecurityGroup;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingAnalysis;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingLab;
|
||||
import ca.uhn.fhir.model.dev.resource.Slot;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlotStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionChannelTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Substance;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplementTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Supply;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyItemTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SystemRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.TextureModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.TimingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.TypeRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dev.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.ExtensionDt;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dev.composite.AgeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.BoundCodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.dev.composite.MoneyDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Binary;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.TimeDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>Alert</b> Resource
|
||||
* ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Prospective warnings of potential issues when providing care to the patient
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Profile Definition:</b>
|
||||
* <a href="http://hl7.org/fhir/profiles/Alert">http://hl7.org/fhir/profiles/Alert</a>
|
||||
* </p>
|
||||
*
|
||||
*/
|
||||
@ResourceDef(name="Alert", profile="http://hl7.org/fhir/profiles/Alert", id="alert")
|
||||
public class Alert
|
||||
extends BaseResource implements IResource {
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>subject</b>
|
||||
* <p>
|
||||
* Description: <b>The identity of a subject to list alerts for</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Alert.subject</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="subject", path="Alert.subject", description="The identity of a subject to list alerts for", type="reference" )
|
||||
public static final String SP_SUBJECT = "subject";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>subject</b>
|
||||
* <p>
|
||||
* Description: <b>The identity of a subject to list alerts for</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Alert.subject</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>patient</b>
|
||||
* <p>
|
||||
* Description: <b>The identity of a subject to list alerts for</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Alert.subject</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="patient", path="Alert.subject", description="The identity of a subject to list alerts for", type="reference" )
|
||||
public static final String SP_PATIENT = "patient";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>patient</b>
|
||||
* <p>
|
||||
* Description: <b>The identity of a subject to list alerts for</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Alert.subject</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT);
|
||||
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Alert.subject</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_SUBJECT = new Include("Alert.subject");
|
||||
|
||||
|
||||
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Identifier assigned to the alert for external use (outside the FHIR environment)"
|
||||
)
|
||||
private java.util.List<IdentifierDt> myIdentifier;
|
||||
|
||||
@Child(name="category", type=CodeableConceptDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Allows an alert to be divided into different categories like clinical, administrative etc."
|
||||
)
|
||||
private CodeableConceptDt myCategory;
|
||||
|
||||
@Child(name="status", type=CodeDt.class, order=2, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="AlertStatus",
|
||||
formalDefinition="Supports basic workflow"
|
||||
)
|
||||
private BoundCodeDt<AlertStatusEnum> myStatus;
|
||||
|
||||
@Child(name="subject", order=3, min=1, max=1, type={
|
||||
ca.uhn.fhir.model.dev.resource.Patient.class })
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="The person who this alert concerns"
|
||||
)
|
||||
private ResourceReferenceDt mySubject;
|
||||
|
||||
@Child(name="author", order=4, min=0, max=1, type={
|
||||
ca.uhn.fhir.model.dev.resource.Practitioner.class, ca.uhn.fhir.model.dev.resource.Patient.class, ca.uhn.fhir.model.dev.resource.Device.class })
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="The person or device that created the alert"
|
||||
)
|
||||
private ResourceReferenceDt myAuthor;
|
||||
|
||||
@Child(name="note", type=StringDt.class, order=5, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="The textual component of the alert to display to the user"
|
||||
)
|
||||
private StringDt myNote;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myCategory, myStatus, mySubject, myAuthor, myNote);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myCategory, myStatus, mySubject, myAuthor, myNote);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>identifier</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifier assigned to the alert for external use (outside the FHIR environment)
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<IdentifierDt> getIdentifier() {
|
||||
if (myIdentifier == null) {
|
||||
myIdentifier = new java.util.ArrayList<IdentifierDt>();
|
||||
}
|
||||
return myIdentifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>identifier</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifier assigned to the alert for external use (outside the FHIR environment)
|
||||
* </p>
|
||||
*/
|
||||
public Alert setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>identifier</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifier assigned to the alert for external use (outside the FHIR environment)
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt addIdentifier() {
|
||||
IdentifierDt newType = new IdentifierDt();
|
||||
getIdentifier().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>identifier</b> (),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifier assigned to the alert for external use (outside the FHIR environment)
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt getIdentifierFirstRep() {
|
||||
if (getIdentifier().isEmpty()) {
|
||||
return addIdentifier();
|
||||
}
|
||||
return getIdentifier().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>category</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Allows an alert to be divided into different categories like clinical, administrative etc.
|
||||
* </p>
|
||||
*/
|
||||
public CodeableConceptDt getCategory() {
|
||||
if (myCategory == null) {
|
||||
myCategory = new CodeableConceptDt();
|
||||
}
|
||||
return myCategory;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>category</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Allows an alert to be divided into different categories like clinical, administrative etc.
|
||||
* </p>
|
||||
*/
|
||||
public Alert setCategory(CodeableConceptDt theValue) {
|
||||
myCategory = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>status</b> (AlertStatus).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Supports basic workflow
|
||||
* </p>
|
||||
*/
|
||||
public BoundCodeDt<AlertStatusEnum> getStatusElement() {
|
||||
if (myStatus == null) {
|
||||
myStatus = new BoundCodeDt<AlertStatusEnum>(AlertStatusEnum.VALUESET_BINDER);
|
||||
}
|
||||
return myStatus;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>status</b> (AlertStatus).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Supports basic workflow
|
||||
* </p>
|
||||
*/
|
||||
public String getStatus() {
|
||||
return getStatusElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>status</b> (AlertStatus)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Supports basic workflow
|
||||
* </p>
|
||||
*/
|
||||
public Alert setStatus(BoundCodeDt<AlertStatusEnum> theValue) {
|
||||
myStatus = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>status</b> (AlertStatus)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Supports basic workflow
|
||||
* </p>
|
||||
*/
|
||||
public Alert setStatus(AlertStatusEnum theValue) {
|
||||
getStatusElement().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>subject</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The person who this alert concerns
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getSubject() {
|
||||
if (mySubject == null) {
|
||||
mySubject = new ResourceReferenceDt();
|
||||
}
|
||||
return mySubject;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>subject</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The person who this alert concerns
|
||||
* </p>
|
||||
*/
|
||||
public Alert setSubject(ResourceReferenceDt theValue) {
|
||||
mySubject = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>author</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The person or device that created the alert
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getAuthor() {
|
||||
if (myAuthor == null) {
|
||||
myAuthor = new ResourceReferenceDt();
|
||||
}
|
||||
return myAuthor;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>author</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The person or device that created the alert
|
||||
* </p>
|
||||
*/
|
||||
public Alert setAuthor(ResourceReferenceDt theValue) {
|
||||
myAuthor = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>note</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The textual component of the alert to display to the user
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getNoteElement() {
|
||||
if (myNote == null) {
|
||||
myNote = new StringDt();
|
||||
}
|
||||
return myNote;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>note</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The textual component of the alert to display to the user
|
||||
* </p>
|
||||
*/
|
||||
public String getNote() {
|
||||
return getNoteElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>note</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The textual component of the alert to display to the user
|
||||
* </p>
|
||||
*/
|
||||
public Alert setNote(StringDt theValue) {
|
||||
myNote = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>note</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The textual component of the alert to display to the user
|
||||
* </p>
|
||||
*/
|
||||
public Alert setNote( String theString) {
|
||||
myNote = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String getResourceName() {
|
||||
return "Alert";
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,731 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.resource;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.net.URI;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.rest.gclient.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdministrativeGenderEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCertaintyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCriticalityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AlertStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.AllergyIntolerance;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnswerFormatEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Appointment;
|
||||
import ca.uhn.fhir.model.dev.valueset.AppointmentStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dev.resource.CarePlan;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanGoalStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CausalityExpectationEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionAttestationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConceptMapEquivalenceEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Condition;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConditionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ContactPointDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Contract;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractSubtypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTermTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataAbsentReasonEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Device;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticReport;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentManifest;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentReference;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentReferenceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ElementDefinitionDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaAdditiveTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.EpisodeOfCare;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExcludeFoodModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExposureTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.FamilyHistory;
|
||||
import ca.uhn.fhir.model.dev.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FluidConsistencyTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FoodTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Group;
|
||||
import ca.uhn.fhir.model.dev.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dev.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dev.resource.Immunization;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImmunizationRecommendation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRouteCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ListModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Location;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Media;
|
||||
import ca.uhn.fhir.model.dev.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Medication;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationAdministration;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationAdministrationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationDispense;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationPrescription;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationPrescriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationStatement;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Microarray;
|
||||
import ca.uhn.fhir.model.dev.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Namespace;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceIdentifierTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutrientModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutritionOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Observation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationInterpretationCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationReliabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationDefinition;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationOutcome;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationParameterUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Order;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrderOutcomeStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantRequiredEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Patient;
|
||||
import ca.uhn.fhir.model.dev.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PriorityCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Procedure;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProcedureRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Profile;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProvenanceEntityRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.QueryOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Questionnaire;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireAnswersStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.RangeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.RatioDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReactionSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ReferralRequest;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReferralStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResponseTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulConformanceModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulSecurityServiceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Schedule;
|
||||
import ca.uhn.fhir.model.dev.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventActionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectLifecycleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectSensitivityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventParticipantNetworkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventSourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.SecurityGroup;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingAnalysis;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingLab;
|
||||
import ca.uhn.fhir.model.dev.resource.Slot;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlotStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionChannelTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Substance;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplementTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Supply;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyItemTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SystemRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.TextureModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.TimingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.TypeRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dev.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.ExtensionDt;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dev.composite.AgeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.BoundCodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.dev.composite.MoneyDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Binary;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.TimeDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>Availability</b> Resource
|
||||
* ((informative) A container for slot(s) of time that may be available for booking appointments)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Profile Definition:</b>
|
||||
* <a href="http://hl7.org/fhir/profiles/Availability">http://hl7.org/fhir/profiles/Availability</a>
|
||||
* </p>
|
||||
*
|
||||
*/
|
||||
@ResourceDef(name="Availability", profile="http://hl7.org/fhir/profiles/Availability", id="availability")
|
||||
public class Availability
|
||||
extends BaseResource implements IResource {
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>actor</b>
|
||||
* <p>
|
||||
* Description: <b>The individual(HealthcareService, Practitioner, Location, ...) to find an availability for</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Availability.actor</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="actor", path="Availability.actor", description="The individual(HealthcareService, Practitioner, Location, ...) to find an availability for", type="reference" )
|
||||
public static final String SP_ACTOR = "actor";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>actor</b>
|
||||
* <p>
|
||||
* Description: <b>The individual(HealthcareService, Practitioner, Location, ...) to find an availability for</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Availability.actor</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam ACTOR = new ReferenceClientParam(SP_ACTOR);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>type</b>
|
||||
* <p>
|
||||
* Description: <b>The type of appointments that can be booked into associated slot(s)</b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Availability.type</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="type", path="Availability.type", description="The type of appointments that can be booked into associated slot(s)", type="token" )
|
||||
public static final String SP_TYPE = "type";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>type</b>
|
||||
* <p>
|
||||
* Description: <b>The type of appointments that can be booked into associated slot(s)</b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Availability.type</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>date</b>
|
||||
* <p>
|
||||
* Description: <b>Search for availability resources that have a period that contains this date specified</b><br/>
|
||||
* Type: <b>date</b><br/>
|
||||
* Path: <b>Availability.planningHorizon</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="date", path="Availability.planningHorizon", description="Search for availability resources that have a period that contains this date specified", type="date" )
|
||||
public static final String SP_DATE = "date";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>date</b>
|
||||
* <p>
|
||||
* Description: <b>Search for availability resources that have a period that contains this date specified</b><br/>
|
||||
* Type: <b>date</b><br/>
|
||||
* Path: <b>Availability.planningHorizon</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final DateClientParam DATE = new DateClientParam(SP_DATE);
|
||||
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Availability.actor</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_ACTOR = new Include("Availability.actor");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Availability.planningHorizon</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_PLANNINGHORIZON = new Include("Availability.planningHorizon");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Availability.type</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_TYPE = new Include("Availability.type");
|
||||
|
||||
|
||||
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="External Ids for this item",
|
||||
formalDefinition=""
|
||||
)
|
||||
private java.util.List<IdentifierDt> myIdentifier;
|
||||
|
||||
@Child(name="type", type=CodeableConceptDt.class, order=1, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="The schedule type can be used for the categorization of healthcare services or other appointment types",
|
||||
formalDefinition=""
|
||||
)
|
||||
private java.util.List<CodeableConceptDt> myType;
|
||||
|
||||
@Child(name="actor", order=2, min=1, max=1, type={
|
||||
IResource.class })
|
||||
@Description(
|
||||
shortDefinition="The resource this availability resource is providing availability information for. These are expected to usually be one of HealthcareService, Location, Practitioner, Device, Patient or RelatedPerson",
|
||||
formalDefinition=""
|
||||
)
|
||||
private ResourceReferenceDt myActor;
|
||||
|
||||
@Child(name="planningHorizon", type=PeriodDt.class, order=3, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="The period of time that the slots that are attached to this availability resource cover (even if none exist). These cover the amount of time that an organization's planning horizon; the interval for which they are currently accepting appointments. This does not define a \"template\" for planning outside these dates",
|
||||
formalDefinition=""
|
||||
)
|
||||
private PeriodDt myPlanningHorizon;
|
||||
|
||||
@Child(name="comment", type=StringDt.class, order=4, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Comments on the availability to describe any extended information. Such as custom constraints on the slot(s) that may be associated",
|
||||
formalDefinition=""
|
||||
)
|
||||
private StringDt myComment;
|
||||
|
||||
@Child(name="lastModified", type=DateTimeDt.class, order=5, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="When this availability was created, or last revised",
|
||||
formalDefinition=""
|
||||
)
|
||||
private DateTimeDt myLastModified;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myType, myActor, myPlanningHorizon, myComment, myLastModified);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myType, myActor, myPlanningHorizon, myComment, myLastModified);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>identifier</b> (External Ids for this item).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<IdentifierDt> getIdentifier() {
|
||||
if (myIdentifier == null) {
|
||||
myIdentifier = new java.util.ArrayList<IdentifierDt>();
|
||||
}
|
||||
return myIdentifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>identifier</b> (External Ids for this item)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Availability setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>identifier</b> (External Ids for this item)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt addIdentifier() {
|
||||
IdentifierDt newType = new IdentifierDt();
|
||||
getIdentifier().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>identifier</b> (External Ids for this item),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt getIdentifierFirstRep() {
|
||||
if (getIdentifier().isEmpty()) {
|
||||
return addIdentifier();
|
||||
}
|
||||
return getIdentifier().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>type</b> (The schedule type can be used for the categorization of healthcare services or other appointment types).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<CodeableConceptDt> getType() {
|
||||
if (myType == null) {
|
||||
myType = new java.util.ArrayList<CodeableConceptDt>();
|
||||
}
|
||||
return myType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>type</b> (The schedule type can be used for the categorization of healthcare services or other appointment types)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Availability setType(java.util.List<CodeableConceptDt> theValue) {
|
||||
myType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>type</b> (The schedule type can be used for the categorization of healthcare services or other appointment types)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public CodeableConceptDt addType() {
|
||||
CodeableConceptDt newType = new CodeableConceptDt();
|
||||
getType().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>type</b> (The schedule type can be used for the categorization of healthcare services or other appointment types),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public CodeableConceptDt getTypeFirstRep() {
|
||||
if (getType().isEmpty()) {
|
||||
return addType();
|
||||
}
|
||||
return getType().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>actor</b> (The resource this availability resource is providing availability information for. These are expected to usually be one of HealthcareService, Location, Practitioner, Device, Patient or RelatedPerson).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getActor() {
|
||||
if (myActor == null) {
|
||||
myActor = new ResourceReferenceDt();
|
||||
}
|
||||
return myActor;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>actor</b> (The resource this availability resource is providing availability information for. These are expected to usually be one of HealthcareService, Location, Practitioner, Device, Patient or RelatedPerson)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Availability setActor(ResourceReferenceDt theValue) {
|
||||
myActor = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>planningHorizon</b> (The period of time that the slots that are attached to this availability resource cover (even if none exist). These cover the amount of time that an organization's planning horizon; the interval for which they are currently accepting appointments. This does not define a \"template\" for planning outside these dates).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public PeriodDt getPlanningHorizon() {
|
||||
if (myPlanningHorizon == null) {
|
||||
myPlanningHorizon = new PeriodDt();
|
||||
}
|
||||
return myPlanningHorizon;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>planningHorizon</b> (The period of time that the slots that are attached to this availability resource cover (even if none exist). These cover the amount of time that an organization's planning horizon; the interval for which they are currently accepting appointments. This does not define a \"template\" for planning outside these dates)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Availability setPlanningHorizon(PeriodDt theValue) {
|
||||
myPlanningHorizon = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>comment</b> (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 return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getCommentElement() {
|
||||
if (myComment == null) {
|
||||
myComment = new StringDt();
|
||||
}
|
||||
return myComment;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>comment</b> (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 return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public String getComment() {
|
||||
return getCommentElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>comment</b> (Comments on the availability to describe any extended information. Such as custom constraints on the slot(s) that may be associated)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Availability setComment(StringDt theValue) {
|
||||
myComment = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>comment</b> (Comments on the availability to describe any extended information. Such as custom constraints on the slot(s) that may be associated)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Availability setComment( String theString) {
|
||||
myComment = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>lastModified</b> (When this availability was created, or last revised).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public DateTimeDt getLastModifiedElement() {
|
||||
if (myLastModified == null) {
|
||||
myLastModified = new DateTimeDt();
|
||||
}
|
||||
return myLastModified;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>lastModified</b> (When this availability was created, or last revised).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Date getLastModified() {
|
||||
return getLastModifiedElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>lastModified</b> (When this availability was created, or last revised)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Availability setLastModified(DateTimeDt theValue) {
|
||||
myLastModified = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>lastModified</b> (When this availability was created, or last revised)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Availability setLastModified( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myLastModified = new DateTimeDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>lastModified</b> (When this availability was created, or last revised)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Availability setLastModifiedWithSecondsPrecision( Date theDate) {
|
||||
myLastModified = new DateTimeDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String getResourceName() {
|
||||
return "Availability";
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,641 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.resource;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.net.URI;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.rest.gclient.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdministrativeGenderEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCertaintyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCriticalityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AlertStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.AllergyIntolerance;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnswerFormatEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Appointment;
|
||||
import ca.uhn.fhir.model.dev.valueset.AppointmentStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dev.resource.CarePlan;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanGoalStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CausalityExpectationEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionAttestationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConceptMapEquivalenceEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Condition;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConditionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ContactPointDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Contract;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractSubtypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTermTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataAbsentReasonEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Device;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticReport;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentManifest;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentReference;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentReferenceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ElementDefinitionDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaAdditiveTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.EpisodeOfCare;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExcludeFoodModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExposureTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.FamilyHistory;
|
||||
import ca.uhn.fhir.model.dev.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FluidConsistencyTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FoodTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Group;
|
||||
import ca.uhn.fhir.model.dev.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dev.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dev.resource.Immunization;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImmunizationRecommendation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRouteCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ListModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Location;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Media;
|
||||
import ca.uhn.fhir.model.dev.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Medication;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationAdministration;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationAdministrationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationDispense;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationPrescription;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationPrescriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationStatement;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Microarray;
|
||||
import ca.uhn.fhir.model.dev.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Namespace;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceIdentifierTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutrientModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutritionOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Observation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationInterpretationCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationReliabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationDefinition;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationOutcome;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationParameterUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Order;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrderOutcomeStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantRequiredEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Patient;
|
||||
import ca.uhn.fhir.model.dev.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PriorityCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Procedure;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProcedureRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Profile;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProvenanceEntityRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.QueryOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Questionnaire;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireAnswersStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.RangeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.RatioDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReactionSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ReferralRequest;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReferralStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResponseTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulConformanceModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulSecurityServiceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Schedule;
|
||||
import ca.uhn.fhir.model.dev.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventActionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectLifecycleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectSensitivityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventParticipantNetworkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventSourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.SecurityGroup;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingAnalysis;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingLab;
|
||||
import ca.uhn.fhir.model.dev.resource.Slot;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlotStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionChannelTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Substance;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplementTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Supply;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyItemTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SystemRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.TextureModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.TimingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.TypeRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dev.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.ExtensionDt;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dev.composite.AgeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.BoundCodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.dev.composite.MoneyDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Binary;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.TimeDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>OperationOutcome</b> Resource
|
||||
* ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A collection of error, warning or information messages that result from a system action
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Profile Definition:</b>
|
||||
* <a href="http://hl7.org/fhir/profiles/OperationOutcome">http://hl7.org/fhir/profiles/OperationOutcome</a>
|
||||
* </p>
|
||||
*
|
||||
*/
|
||||
@ResourceDef(name="OperationOutcome", profile="http://hl7.org/fhir/profiles/OperationOutcome", id="operationoutcome")
|
||||
public class OperationOutcome
|
||||
extends ca.uhn.fhir.model.base.resource.BaseOperationOutcome implements IResource {
|
||||
|
||||
|
||||
|
||||
@Child(name="issue", order=0, min=1, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="An error, warning or information message that results from a system action"
|
||||
)
|
||||
private java.util.List<Issue> myIssue;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIssue);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIssue);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>issue</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* An error, warning or information message that results from a system action
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<Issue> getIssue() {
|
||||
if (myIssue == null) {
|
||||
myIssue = new java.util.ArrayList<Issue>();
|
||||
}
|
||||
return myIssue;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>issue</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* An error, warning or information message that results from a system action
|
||||
* </p>
|
||||
*/
|
||||
public OperationOutcome setIssue(java.util.List<Issue> theValue) {
|
||||
myIssue = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>issue</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* An error, warning or information message that results from a system action
|
||||
* </p>
|
||||
*/
|
||||
public Issue addIssue() {
|
||||
Issue newType = new Issue();
|
||||
getIssue().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>issue</b> (),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* An error, warning or information message that results from a system action
|
||||
* </p>
|
||||
*/
|
||||
public Issue getIssueFirstRep() {
|
||||
if (getIssue().isEmpty()) {
|
||||
return addIssue();
|
||||
}
|
||||
return getIssue().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Block class for child element: <b>OperationOutcome.issue</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* An error, warning or information message that results from a system action
|
||||
* </p>
|
||||
*/
|
||||
@Block()
|
||||
public static class Issue
|
||||
extends BaseIssue implements IResourceBlock {
|
||||
|
||||
@Child(name="severity", type=CodeDt.class, order=0, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="IssueSeverity",
|
||||
formalDefinition="Indicates whether the issue indicates a variation from successful processing"
|
||||
)
|
||||
private BoundCodeDt<IssueSeverityEnum> mySeverity;
|
||||
|
||||
@Child(name="type", type=CodingDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="IssueType",
|
||||
formalDefinition="A code indicating the type of error, warning or information message."
|
||||
)
|
||||
private CodingDt myType;
|
||||
|
||||
@Child(name="details", type=StringDt.class, order=2, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Additional description of the issue"
|
||||
)
|
||||
private StringDt myDetails;
|
||||
|
||||
@Child(name="location", type=StringDt.class, order=3, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="A simple XPath limited to element names, repetition indicators and the default child access that identifies one of the elements in the resource that caused this issue to be raised."
|
||||
)
|
||||
private java.util.List<StringDt> myLocation;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySeverity, myType, myDetails, myLocation);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySeverity, myType, myDetails, myLocation);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>severity</b> (IssueSeverity).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Indicates whether the issue indicates a variation from successful processing
|
||||
* </p>
|
||||
*/
|
||||
public BoundCodeDt<IssueSeverityEnum> getSeverityElement() {
|
||||
if (mySeverity == null) {
|
||||
mySeverity = new BoundCodeDt<IssueSeverityEnum>(IssueSeverityEnum.VALUESET_BINDER);
|
||||
}
|
||||
return mySeverity;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>severity</b> (IssueSeverity).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Indicates whether the issue indicates a variation from successful processing
|
||||
* </p>
|
||||
*/
|
||||
public String getSeverity() {
|
||||
return getSeverityElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>severity</b> (IssueSeverity)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Indicates whether the issue indicates a variation from successful processing
|
||||
* </p>
|
||||
*/
|
||||
public Issue setSeverity(BoundCodeDt<IssueSeverityEnum> theValue) {
|
||||
mySeverity = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>severity</b> (IssueSeverity)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Indicates whether the issue indicates a variation from successful processing
|
||||
* </p>
|
||||
*/
|
||||
public Issue setSeverity(IssueSeverityEnum theValue) {
|
||||
getSeverityElement().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>type</b> (IssueType).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A code indicating the type of error, warning or information message.
|
||||
* </p>
|
||||
*/
|
||||
public CodingDt getType() {
|
||||
if (myType == null) {
|
||||
myType = new CodingDt();
|
||||
}
|
||||
return myType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>type</b> (IssueType)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A code indicating the type of error, warning or information message.
|
||||
* </p>
|
||||
*/
|
||||
public Issue setType(CodingDt theValue) {
|
||||
myType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>details</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Additional description of the issue
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getDetailsElement() {
|
||||
if (myDetails == null) {
|
||||
myDetails = new StringDt();
|
||||
}
|
||||
return myDetails;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>details</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Additional description of the issue
|
||||
* </p>
|
||||
*/
|
||||
public String getDetails() {
|
||||
return getDetailsElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>details</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Additional description of the issue
|
||||
* </p>
|
||||
*/
|
||||
public Issue setDetails(StringDt theValue) {
|
||||
myDetails = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>details</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Additional description of the issue
|
||||
* </p>
|
||||
*/
|
||||
public Issue setDetails( String theString) {
|
||||
myDetails = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>location</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A simple XPath limited to element names, repetition indicators and the default child access that identifies one of the elements in the resource that caused this issue to be raised.
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<StringDt> getLocation() {
|
||||
if (myLocation == null) {
|
||||
myLocation = new java.util.ArrayList<StringDt>();
|
||||
}
|
||||
return myLocation;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>location</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A simple XPath limited to element names, repetition indicators and the default child access that identifies one of the elements in the resource that caused this issue to be raised.
|
||||
* </p>
|
||||
*/
|
||||
public Issue setLocation(java.util.List<StringDt> theValue) {
|
||||
myLocation = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>location</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A simple XPath limited to element names, repetition indicators and the default child access that identifies one of the elements in the resource that caused this issue to be raised.
|
||||
* </p>
|
||||
*/
|
||||
public StringDt addLocation() {
|
||||
StringDt newType = new StringDt();
|
||||
getLocation().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>location</b> (),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A simple XPath limited to element names, repetition indicators and the default child access that identifies one of the elements in the resource that caused this issue to be raised.
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getLocationFirstRep() {
|
||||
if (getLocation().isEmpty()) {
|
||||
return addLocation();
|
||||
}
|
||||
return getLocation().get(0);
|
||||
}
|
||||
/**
|
||||
* Adds a new value for <b>location</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A simple XPath limited to element names, repetition indicators and the default child access that identifies one of the elements in the resource that caused this issue to be raised.
|
||||
* </p>
|
||||
*
|
||||
* @return Returns a reference to this object, to allow for simple chaining.
|
||||
*/
|
||||
public Issue addLocation( String theString) {
|
||||
if (myLocation == null) {
|
||||
myLocation = new java.util.ArrayList<StringDt>();
|
||||
}
|
||||
myLocation.add(new StringDt(theString));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String getResourceName() {
|
||||
return "OperationOutcome";
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,904 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.resource;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.net.URI;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.rest.gclient.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdministrativeGenderEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCertaintyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCriticalityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AlertStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.AllergyIntolerance;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnswerFormatEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Appointment;
|
||||
import ca.uhn.fhir.model.dev.valueset.AppointmentStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dev.resource.CarePlan;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanGoalStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CausalityExpectationEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionAttestationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConceptMapEquivalenceEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Condition;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConditionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ContactPointDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Contract;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractSubtypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTermTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataAbsentReasonEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Device;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticReport;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentManifest;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentReference;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentReferenceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ElementDefinitionDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaAdditiveTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.EpisodeOfCare;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExcludeFoodModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExposureTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.FamilyHistory;
|
||||
import ca.uhn.fhir.model.dev.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FluidConsistencyTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FoodTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Group;
|
||||
import ca.uhn.fhir.model.dev.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dev.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dev.resource.Immunization;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImmunizationRecommendation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRouteCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ListModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Location;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Media;
|
||||
import ca.uhn.fhir.model.dev.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Medication;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationAdministration;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationAdministrationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationDispense;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationPrescription;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationPrescriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationStatement;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Microarray;
|
||||
import ca.uhn.fhir.model.dev.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Namespace;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceIdentifierTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutrientModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutritionOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Observation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationInterpretationCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationReliabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationDefinition;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationOutcome;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationParameterUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Order;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrderOutcomeStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantRequiredEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Patient;
|
||||
import ca.uhn.fhir.model.dev.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PriorityCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Procedure;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProcedureRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Profile;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProvenanceEntityRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.QueryOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Questionnaire;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireAnswersStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.RangeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.RatioDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReactionSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ReferralRequest;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReferralStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResponseTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulConformanceModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulSecurityServiceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Schedule;
|
||||
import ca.uhn.fhir.model.dev.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventActionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectLifecycleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectSensitivityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventParticipantNetworkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventSourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.SecurityGroup;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingAnalysis;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingLab;
|
||||
import ca.uhn.fhir.model.dev.resource.Slot;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlotStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionChannelTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Substance;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplementTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Supply;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyItemTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SystemRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.TextureModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.TimingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.TypeRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dev.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.ExtensionDt;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dev.composite.AgeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.BoundCodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.dev.composite.MoneyDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Binary;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.TimeDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>OrderResponse</b> Resource
|
||||
* ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A response to an order
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Profile Definition:</b>
|
||||
* <a href="http://hl7.org/fhir/profiles/OrderResponse">http://hl7.org/fhir/profiles/OrderResponse</a>
|
||||
* </p>
|
||||
*
|
||||
*/
|
||||
@ResourceDef(name="OrderResponse", profile="http://hl7.org/fhir/profiles/OrderResponse", id="orderresponse")
|
||||
public class OrderResponse
|
||||
extends BaseResource implements IResource {
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>request</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>OrderResponse.request</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="request", path="OrderResponse.request", description="", type="reference" )
|
||||
public static final String SP_REQUEST = "request";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>request</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>OrderResponse.request</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam REQUEST = new ReferenceClientParam(SP_REQUEST);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>date</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>date</b><br/>
|
||||
* Path: <b>OrderResponse.date</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="date", path="OrderResponse.date", description="", type="date" )
|
||||
public static final String SP_DATE = "date";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>date</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>date</b><br/>
|
||||
* Path: <b>OrderResponse.date</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final DateClientParam DATE = new DateClientParam(SP_DATE);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>who</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>OrderResponse.who</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="who", path="OrderResponse.who", description="", type="reference" )
|
||||
public static final String SP_WHO = "who";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>who</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>OrderResponse.who</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam WHO = new ReferenceClientParam(SP_WHO);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>code</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>OrderResponse.code</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="code", path="OrderResponse.code", description="", type="token" )
|
||||
public static final String SP_CODE = "code";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>code</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>OrderResponse.code</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam CODE = new TokenClientParam(SP_CODE);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>fulfillment</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>OrderResponse.fulfillment</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="fulfillment", path="OrderResponse.fulfillment", description="", type="reference" )
|
||||
public static final String SP_FULFILLMENT = "fulfillment";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>fulfillment</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>OrderResponse.fulfillment</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam FULFILLMENT = new ReferenceClientParam(SP_FULFILLMENT);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>patient</b>
|
||||
* <p>
|
||||
* Description: <b>The patient the reuqest order is related to</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b></b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="patient", path="", description="The patient the reuqest order is related to", type="reference" )
|
||||
public static final String SP_PATIENT = "patient";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>patient</b>
|
||||
* <p>
|
||||
* Description: <b>The patient the reuqest order is related to</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b></b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT);
|
||||
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b></b>".
|
||||
*/
|
||||
public static final Include INCLUDE_ = new Include("");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>OrderResponse.code</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_CODE = new Include("OrderResponse.code");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>OrderResponse.date</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_DATE = new Include("OrderResponse.date");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>OrderResponse.fulfillment</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_FULFILLMENT = new Include("OrderResponse.fulfillment");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>OrderResponse.request</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_REQUEST = new Include("OrderResponse.request");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>OrderResponse.who</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_WHO = new Include("OrderResponse.who");
|
||||
|
||||
|
||||
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems"
|
||||
)
|
||||
private java.util.List<IdentifierDt> myIdentifier;
|
||||
|
||||
@Child(name="request", order=1, min=1, max=1, type={
|
||||
ca.uhn.fhir.model.dev.resource.Order.class })
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="A reference to the order that this is in response to"
|
||||
)
|
||||
private ResourceReferenceDt myRequest;
|
||||
|
||||
@Child(name="date", type=DateTimeDt.class, order=2, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="The date and time at which this order response was made (created/posted)"
|
||||
)
|
||||
private DateTimeDt myDate;
|
||||
|
||||
@Child(name="who", order=3, min=0, max=1, type={
|
||||
ca.uhn.fhir.model.dev.resource.Practitioner.class, ca.uhn.fhir.model.dev.resource.Organization.class, ca.uhn.fhir.model.dev.resource.Device.class })
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="The person, organization, or device credited with making the response"
|
||||
)
|
||||
private ResourceReferenceDt myWho;
|
||||
|
||||
@Child(name="authority", order=4, min=0, max=1, type={
|
||||
CodeableConceptDt.class, IResource.class })
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="A reference to an authority policy that is the reason for the response. Usually this is used when the order is rejected, to provide a reason for rejection"
|
||||
)
|
||||
private IDatatype myAuthority;
|
||||
|
||||
@Child(name="code", type=CodeDt.class, order=5, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="OrderOutcomeStatus",
|
||||
formalDefinition="What this response says about the status of the original order"
|
||||
)
|
||||
private BoundCodeDt<OrderOutcomeStatusEnum> myCode;
|
||||
|
||||
@Child(name="description", type=StringDt.class, order=6, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Additional description about the response - e.g. a text description provided by a human user when making decisions about the order"
|
||||
)
|
||||
private StringDt myDescription;
|
||||
|
||||
@Child(name="fulfillment", order=7, min=0, max=Child.MAX_UNLIMITED, type={
|
||||
IResource.class })
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Links to resources that provide details of the outcome of performing the order. E.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order"
|
||||
)
|
||||
private java.util.List<ResourceReferenceDt> myFulfillment;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myRequest, myDate, myWho, myAuthority, myCode, myDescription, myFulfillment);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myRequest, myDate, myWho, myAuthority, myCode, myDescription, myFulfillment);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>identifier</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<IdentifierDt> getIdentifier() {
|
||||
if (myIdentifier == null) {
|
||||
myIdentifier = new java.util.ArrayList<IdentifierDt>();
|
||||
}
|
||||
return myIdentifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>identifier</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>identifier</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt addIdentifier() {
|
||||
IdentifierDt newType = new IdentifierDt();
|
||||
getIdentifier().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>identifier</b> (),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt getIdentifierFirstRep() {
|
||||
if (getIdentifier().isEmpty()) {
|
||||
return addIdentifier();
|
||||
}
|
||||
return getIdentifier().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>request</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A reference to the order that this is in response to
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getRequest() {
|
||||
if (myRequest == null) {
|
||||
myRequest = new ResourceReferenceDt();
|
||||
}
|
||||
return myRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>request</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A reference to the order that this is in response to
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setRequest(ResourceReferenceDt theValue) {
|
||||
myRequest = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>date</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The date and time at which this order response was made (created/posted)
|
||||
* </p>
|
||||
*/
|
||||
public DateTimeDt getDateElement() {
|
||||
if (myDate == null) {
|
||||
myDate = new DateTimeDt();
|
||||
}
|
||||
return myDate;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>date</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The date and time at which this order response was made (created/posted)
|
||||
* </p>
|
||||
*/
|
||||
public Date getDate() {
|
||||
return getDateElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>date</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The date and time at which this order response was made (created/posted)
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setDate(DateTimeDt theValue) {
|
||||
myDate = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>date</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The date and time at which this order response was made (created/posted)
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setDate( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myDate = new DateTimeDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>date</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The date and time at which this order response was made (created/posted)
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setDateWithSecondsPrecision( Date theDate) {
|
||||
myDate = new DateTimeDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>who</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The person, organization, or device credited with making the response
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getWho() {
|
||||
if (myWho == null) {
|
||||
myWho = new ResourceReferenceDt();
|
||||
}
|
||||
return myWho;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>who</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The person, organization, or device credited with making the response
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setWho(ResourceReferenceDt theValue) {
|
||||
myWho = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>authority[x]</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A reference to an authority policy that is the reason for the response. Usually this is used when the order is rejected, to provide a reason for rejection
|
||||
* </p>
|
||||
*/
|
||||
public IDatatype getAuthority() {
|
||||
return myAuthority;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>authority[x]</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A reference to an authority policy that is the reason for the response. Usually this is used when the order is rejected, to provide a reason for rejection
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setAuthority(IDatatype theValue) {
|
||||
myAuthority = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>code</b> (OrderOutcomeStatus).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* What this response says about the status of the original order
|
||||
* </p>
|
||||
*/
|
||||
public BoundCodeDt<OrderOutcomeStatusEnum> getCodeElement() {
|
||||
if (myCode == null) {
|
||||
myCode = new BoundCodeDt<OrderOutcomeStatusEnum>(OrderOutcomeStatusEnum.VALUESET_BINDER);
|
||||
}
|
||||
return myCode;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>code</b> (OrderOutcomeStatus).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* What this response says about the status of the original order
|
||||
* </p>
|
||||
*/
|
||||
public String getCode() {
|
||||
return getCodeElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>code</b> (OrderOutcomeStatus)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* What this response says about the status of the original order
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setCode(BoundCodeDt<OrderOutcomeStatusEnum> theValue) {
|
||||
myCode = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>code</b> (OrderOutcomeStatus)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* What this response says about the status of the original order
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setCode(OrderOutcomeStatusEnum theValue) {
|
||||
getCodeElement().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>description</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Additional description about the response - e.g. a text description provided by a human user when making decisions about the order
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getDescriptionElement() {
|
||||
if (myDescription == null) {
|
||||
myDescription = new StringDt();
|
||||
}
|
||||
return myDescription;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>description</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Additional description about the response - e.g. a text description provided by a human user when making decisions about the order
|
||||
* </p>
|
||||
*/
|
||||
public String getDescription() {
|
||||
return getDescriptionElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>description</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Additional description about the response - e.g. a text description provided by a human user when making decisions about the order
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setDescription(StringDt theValue) {
|
||||
myDescription = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>description</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Additional description about the response - e.g. a text description provided by a human user when making decisions about the order
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setDescription( String theString) {
|
||||
myDescription = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>fulfillment</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Links to resources that provide details of the outcome of performing the order. E.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<ResourceReferenceDt> getFulfillment() {
|
||||
if (myFulfillment == null) {
|
||||
myFulfillment = new java.util.ArrayList<ResourceReferenceDt>();
|
||||
}
|
||||
return myFulfillment;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>fulfillment</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Links to resources that provide details of the outcome of performing the order. E.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setFulfillment(java.util.List<ResourceReferenceDt> theValue) {
|
||||
myFulfillment = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>fulfillment</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Links to resources that provide details of the outcome of performing the order. E.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt addFulfillment() {
|
||||
ResourceReferenceDt newType = new ResourceReferenceDt();
|
||||
getFulfillment().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String getResourceName() {
|
||||
return "OrderResponse";
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,656 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.resource;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.net.URI;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.rest.gclient.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdministrativeGenderEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCertaintyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCriticalityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AlertStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.AllergyIntolerance;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnswerFormatEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Appointment;
|
||||
import ca.uhn.fhir.model.dev.valueset.AppointmentStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dev.resource.CarePlan;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanGoalStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CausalityExpectationEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionAttestationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConceptMapEquivalenceEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Condition;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConditionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ContactPointDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Contract;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractSubtypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTermTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataAbsentReasonEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Device;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticReport;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentManifest;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentReference;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentReferenceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ElementDefinitionDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaAdditiveTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.EpisodeOfCare;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExcludeFoodModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExposureTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.FamilyHistory;
|
||||
import ca.uhn.fhir.model.dev.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FluidConsistencyTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FoodTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Group;
|
||||
import ca.uhn.fhir.model.dev.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dev.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dev.resource.Immunization;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImmunizationRecommendation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRouteCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ListModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Location;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Media;
|
||||
import ca.uhn.fhir.model.dev.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Medication;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationAdministration;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationAdministrationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationDispense;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationPrescription;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationPrescriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationStatement;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Microarray;
|
||||
import ca.uhn.fhir.model.dev.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Namespace;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceIdentifierTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutrientModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutritionOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Observation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationInterpretationCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationReliabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationDefinition;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationOutcome;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationParameterUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Order;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrderOutcomeStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantRequiredEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Patient;
|
||||
import ca.uhn.fhir.model.dev.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PriorityCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Procedure;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProcedureRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Profile;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProvenanceEntityRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.QueryOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Questionnaire;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireAnswersStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.RangeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.RatioDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReactionSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ReferralRequest;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReferralStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResponseTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulConformanceModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulSecurityServiceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Schedule;
|
||||
import ca.uhn.fhir.model.dev.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventActionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectLifecycleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectSensitivityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventParticipantNetworkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventSourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.SecurityGroup;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingAnalysis;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingLab;
|
||||
import ca.uhn.fhir.model.dev.resource.Slot;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlotStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionChannelTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Substance;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplementTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Supply;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyItemTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SystemRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.TextureModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.TimingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.TypeRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dev.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.ExtensionDt;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dev.composite.AgeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.BoundCodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.dev.composite.MoneyDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Binary;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.TimeDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>Other</b> Resource
|
||||
* ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Other is a conformant for handling resource concepts not yet defined for FHIR or outside HL7's scope of interest
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
* Need some way to safely (without breaking interoperability) allow implementers to exchange content not supported by the initial set of declared resources.
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Profile Definition:</b>
|
||||
* <a href="http://hl7.org/fhir/profiles/Other">http://hl7.org/fhir/profiles/Other</a>
|
||||
* </p>
|
||||
*
|
||||
*/
|
||||
@ResourceDef(name="Other", profile="http://hl7.org/fhir/profiles/Other", id="other")
|
||||
public class Other
|
||||
extends BaseResource implements IResource {
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>subject</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Other.subject</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="subject", path="Other.subject", description="", type="reference" )
|
||||
public static final String SP_SUBJECT = "subject";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>subject</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Other.subject</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>created</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>date</b><br/>
|
||||
* Path: <b>Other.created</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="created", path="Other.created", description="", type="date" )
|
||||
public static final String SP_CREATED = "created";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>created</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>date</b><br/>
|
||||
* Path: <b>Other.created</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final DateClientParam CREATED = new DateClientParam(SP_CREATED);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>code</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Other.code</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="code", path="Other.code", description="", type="token" )
|
||||
public static final String SP_CODE = "code";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>code</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Other.code</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam CODE = new TokenClientParam(SP_CODE);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>patient</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Other.subject</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="patient", path="Other.subject", description="", type="reference" )
|
||||
public static final String SP_PATIENT = "patient";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>patient</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Other.subject</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT);
|
||||
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Other.code</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_CODE = new Include("Other.code");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Other.created</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_CREATED = new Include("Other.created");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Other.subject</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_SUBJECT = new Include("Other.subject");
|
||||
|
||||
|
||||
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Identifier assigned to the resource for business purposes, outside the context of FHIR"
|
||||
)
|
||||
private java.util.List<IdentifierDt> myIdentifier;
|
||||
|
||||
@Child(name="code", type=CodeableConceptDt.class, order=1, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="OtherResourceType",
|
||||
formalDefinition="Identifies the 'type' of resource - equivalent to the resource name for other resources."
|
||||
)
|
||||
private CodeableConceptDt myCode;
|
||||
|
||||
@Child(name="subject", order=2, min=0, max=1, type={
|
||||
IResource.class })
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Identifies the patient, practitioner, device or any other resource that is the \"focus\" of this resoruce."
|
||||
)
|
||||
private ResourceReferenceDt mySubject;
|
||||
|
||||
@Child(name="author", order=3, min=0, max=1, type={
|
||||
ca.uhn.fhir.model.dev.resource.Practitioner.class, ca.uhn.fhir.model.dev.resource.Patient.class, ca.uhn.fhir.model.dev.resource.RelatedPerson.class })
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Indicates who was responsible for creating the resource instance"
|
||||
)
|
||||
private ResourceReferenceDt myAuthor;
|
||||
|
||||
@Child(name="created", type=DateDt.class, order=4, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Identifies when the resource was first created"
|
||||
)
|
||||
private DateDt myCreated;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myCode, mySubject, myAuthor, myCreated);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myCode, mySubject, myAuthor, myCreated);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>identifier</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifier assigned to the resource for business purposes, outside the context of FHIR
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<IdentifierDt> getIdentifier() {
|
||||
if (myIdentifier == null) {
|
||||
myIdentifier = new java.util.ArrayList<IdentifierDt>();
|
||||
}
|
||||
return myIdentifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>identifier</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifier assigned to the resource for business purposes, outside the context of FHIR
|
||||
* </p>
|
||||
*/
|
||||
public Other setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>identifier</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifier assigned to the resource for business purposes, outside the context of FHIR
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt addIdentifier() {
|
||||
IdentifierDt newType = new IdentifierDt();
|
||||
getIdentifier().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>identifier</b> (),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifier assigned to the resource for business purposes, outside the context of FHIR
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt getIdentifierFirstRep() {
|
||||
if (getIdentifier().isEmpty()) {
|
||||
return addIdentifier();
|
||||
}
|
||||
return getIdentifier().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>code</b> (OtherResourceType).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies the 'type' of resource - equivalent to the resource name for other resources.
|
||||
* </p>
|
||||
*/
|
||||
public CodeableConceptDt getCode() {
|
||||
if (myCode == null) {
|
||||
myCode = new CodeableConceptDt();
|
||||
}
|
||||
return myCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>code</b> (OtherResourceType)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies the 'type' of resource - equivalent to the resource name for other resources.
|
||||
* </p>
|
||||
*/
|
||||
public Other setCode(CodeableConceptDt theValue) {
|
||||
myCode = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>subject</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies the patient, practitioner, device or any other resource that is the \"focus\" of this resoruce.
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getSubject() {
|
||||
if (mySubject == null) {
|
||||
mySubject = new ResourceReferenceDt();
|
||||
}
|
||||
return mySubject;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>subject</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies the patient, practitioner, device or any other resource that is the \"focus\" of this resoruce.
|
||||
* </p>
|
||||
*/
|
||||
public Other setSubject(ResourceReferenceDt theValue) {
|
||||
mySubject = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>author</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Indicates who was responsible for creating the resource instance
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getAuthor() {
|
||||
if (myAuthor == null) {
|
||||
myAuthor = new ResourceReferenceDt();
|
||||
}
|
||||
return myAuthor;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>author</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Indicates who was responsible for creating the resource instance
|
||||
* </p>
|
||||
*/
|
||||
public Other setAuthor(ResourceReferenceDt theValue) {
|
||||
myAuthor = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>created</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies when the resource was first created
|
||||
* </p>
|
||||
*/
|
||||
public DateDt getCreatedElement() {
|
||||
if (myCreated == null) {
|
||||
myCreated = new DateDt();
|
||||
}
|
||||
return myCreated;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>created</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies when the resource was first created
|
||||
* </p>
|
||||
*/
|
||||
public Date getCreated() {
|
||||
return getCreatedElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>created</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies when the resource was first created
|
||||
* </p>
|
||||
*/
|
||||
public Other setCreated(DateDt theValue) {
|
||||
myCreated = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>created</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies when the resource was first created
|
||||
* </p>
|
||||
*/
|
||||
public Other setCreated( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myCreated = new DateDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>created</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies when the resource was first created
|
||||
* </p>
|
||||
*/
|
||||
public Other setCreatedWithDayPrecision( Date theDate) {
|
||||
myCreated = new DateDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String getResourceName() {
|
||||
return "Other";
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,960 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.resource;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.net.URI;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.rest.gclient.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdministrativeGenderEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCertaintyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCriticalityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AlertStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.AllergyIntolerance;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnswerFormatEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Appointment;
|
||||
import ca.uhn.fhir.model.dev.valueset.AppointmentStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dev.resource.CarePlan;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanGoalStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CausalityExpectationEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionAttestationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConceptMapEquivalenceEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Condition;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConditionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ContactPointDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Contract;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractSubtypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTermTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataAbsentReasonEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Device;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticReport;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentManifest;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentReference;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentReferenceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ElementDefinitionDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaAdditiveTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.EpisodeOfCare;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExcludeFoodModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExposureTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.FamilyHistory;
|
||||
import ca.uhn.fhir.model.dev.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FluidConsistencyTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FoodTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Group;
|
||||
import ca.uhn.fhir.model.dev.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dev.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dev.resource.Immunization;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImmunizationRecommendation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRouteCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ListModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Location;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Media;
|
||||
import ca.uhn.fhir.model.dev.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Medication;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationAdministration;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationAdministrationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationDispense;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationPrescription;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationPrescriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationStatement;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Microarray;
|
||||
import ca.uhn.fhir.model.dev.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Namespace;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceIdentifierTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutrientModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutritionOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Observation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationInterpretationCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationReliabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationDefinition;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationOutcome;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationParameterUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Order;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrderOutcomeStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantRequiredEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Patient;
|
||||
import ca.uhn.fhir.model.dev.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PriorityCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Procedure;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProcedureRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Profile;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProvenanceEntityRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.QueryOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Questionnaire;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireAnswersStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.RangeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.RatioDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReactionSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ReferralRequest;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReferralStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResponseTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulConformanceModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulSecurityServiceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Schedule;
|
||||
import ca.uhn.fhir.model.dev.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventActionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectLifecycleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectSensitivityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventParticipantNetworkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventSourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.SecurityGroup;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingAnalysis;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingLab;
|
||||
import ca.uhn.fhir.model.dev.resource.Slot;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlotStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionChannelTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Substance;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplementTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Supply;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyItemTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SystemRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.TextureModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.TimingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.TypeRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dev.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.ExtensionDt;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dev.composite.AgeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.BoundCodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.dev.composite.MoneyDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Binary;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.TimeDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>RelatedPerson</b> Resource
|
||||
* ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Information about a person that is involved in the care for a patient, but who is not the target of healthcare, nor has a formal responsibility in the care process
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
* Need to track persons related to the patient or the healthcare process.
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Profile Definition:</b>
|
||||
* <a href="http://hl7.org/fhir/profiles/RelatedPerson">http://hl7.org/fhir/profiles/RelatedPerson</a>
|
||||
* </p>
|
||||
*
|
||||
*/
|
||||
@ResourceDef(name="RelatedPerson", profile="http://hl7.org/fhir/profiles/RelatedPerson", id="relatedperson")
|
||||
public class RelatedPerson
|
||||
extends BaseResource implements IResource {
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>identifier</b>
|
||||
* <p>
|
||||
* Description: <b>A patient Identifier</b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>RelatedPerson.identifier</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="identifier", path="RelatedPerson.identifier", description="A patient Identifier", type="token" )
|
||||
public static final String SP_IDENTIFIER = "identifier";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>identifier</b>
|
||||
* <p>
|
||||
* Description: <b>A patient Identifier</b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>RelatedPerson.identifier</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>name</b>
|
||||
* <p>
|
||||
* Description: <b>A portion of name in any name part</b><br/>
|
||||
* Type: <b>string</b><br/>
|
||||
* Path: <b>RelatedPerson.name</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="name", path="RelatedPerson.name", description="A portion of name in any name part", type="string" )
|
||||
public static final String SP_NAME = "name";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>name</b>
|
||||
* <p>
|
||||
* Description: <b>A portion of name in any name part</b><br/>
|
||||
* Type: <b>string</b><br/>
|
||||
* Path: <b>RelatedPerson.name</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final StringClientParam NAME = new StringClientParam(SP_NAME);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>phonetic</b>
|
||||
* <p>
|
||||
* Description: <b>A portion of name using some kind of phonetic matching algorithm</b><br/>
|
||||
* Type: <b>string</b><br/>
|
||||
* Path: <b></b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="phonetic", path="", description="A portion of name using some kind of phonetic matching algorithm", type="string" )
|
||||
public static final String SP_PHONETIC = "phonetic";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>phonetic</b>
|
||||
* <p>
|
||||
* Description: <b>A portion of name using some kind of phonetic matching algorithm</b><br/>
|
||||
* Type: <b>string</b><br/>
|
||||
* Path: <b></b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final StringClientParam PHONETIC = new StringClientParam(SP_PHONETIC);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>telecom</b>
|
||||
* <p>
|
||||
* Description: <b>The value in any kind of contact</b><br/>
|
||||
* Type: <b>string</b><br/>
|
||||
* Path: <b>RelatedPerson.telecom</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="telecom", path="RelatedPerson.telecom", description="The value in any kind of contact", type="string" )
|
||||
public static final String SP_TELECOM = "telecom";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>telecom</b>
|
||||
* <p>
|
||||
* Description: <b>The value in any kind of contact</b><br/>
|
||||
* Type: <b>string</b><br/>
|
||||
* Path: <b>RelatedPerson.telecom</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final StringClientParam TELECOM = new StringClientParam(SP_TELECOM);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>address</b>
|
||||
* <p>
|
||||
* Description: <b>An address in any kind of address/part</b><br/>
|
||||
* Type: <b>string</b><br/>
|
||||
* Path: <b>RelatedPerson.address</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="address", path="RelatedPerson.address", description="An address in any kind of address/part", type="string" )
|
||||
public static final String SP_ADDRESS = "address";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>address</b>
|
||||
* <p>
|
||||
* Description: <b>An address in any kind of address/part</b><br/>
|
||||
* Type: <b>string</b><br/>
|
||||
* Path: <b>RelatedPerson.address</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final StringClientParam ADDRESS = new StringClientParam(SP_ADDRESS);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>gender</b>
|
||||
* <p>
|
||||
* Description: <b>Gender of the person</b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>RelatedPerson.gender</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="gender", path="RelatedPerson.gender", description="Gender of the person", type="token" )
|
||||
public static final String SP_GENDER = "gender";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>gender</b>
|
||||
* <p>
|
||||
* Description: <b>Gender of the person</b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>RelatedPerson.gender</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam GENDER = new TokenClientParam(SP_GENDER);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>patient</b>
|
||||
* <p>
|
||||
* Description: <b>The patient this person is related to</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>RelatedPerson.patient</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="patient", path="RelatedPerson.patient", description="The patient this person is related to", type="reference" )
|
||||
public static final String SP_PATIENT = "patient";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>patient</b>
|
||||
* <p>
|
||||
* Description: <b>The patient this person is related to</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>RelatedPerson.patient</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam PATIENT = new ReferenceClientParam(SP_PATIENT);
|
||||
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b></b>".
|
||||
*/
|
||||
public static final Include INCLUDE_ = new Include("");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>RelatedPerson.address</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_ADDRESS = new Include("RelatedPerson.address");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>RelatedPerson.gender</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_GENDER = new Include("RelatedPerson.gender");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>RelatedPerson.identifier</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_IDENTIFIER = new Include("RelatedPerson.identifier");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>RelatedPerson.name</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_NAME = new Include("RelatedPerson.name");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>RelatedPerson.patient</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_PATIENT = new Include("RelatedPerson.patient");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>RelatedPerson.telecom</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_TELECOM = new Include("RelatedPerson.telecom");
|
||||
|
||||
|
||||
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Identifier for a person within a particular scope."
|
||||
)
|
||||
private java.util.List<IdentifierDt> myIdentifier;
|
||||
|
||||
@Child(name="patient", order=1, min=1, max=1, type={
|
||||
ca.uhn.fhir.model.dev.resource.Patient.class })
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="The patient this person is related to"
|
||||
)
|
||||
private ResourceReferenceDt myPatient;
|
||||
|
||||
@Child(name="relationship", type=CodeableConceptDt.class, order=2, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="PatientRelationshipType",
|
||||
formalDefinition="The nature of the relationship between a patient and the related person"
|
||||
)
|
||||
private BoundCodeableConceptDt<PatientRelationshipTypeEnum> myRelationship;
|
||||
|
||||
@Child(name="name", type=HumanNameDt.class, order=3, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="A name associated with the person"
|
||||
)
|
||||
private HumanNameDt myName;
|
||||
|
||||
@Child(name="telecom", type=ContactPointDt.class, order=4, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="A contact detail for the person, e.g. a telephone number or an email address."
|
||||
)
|
||||
private java.util.List<ContactPointDt> myTelecom;
|
||||
|
||||
@Child(name="gender", type=CodeDt.class, order=5, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="AdministrativeGender",
|
||||
formalDefinition="Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes."
|
||||
)
|
||||
private BoundCodeDt<AdministrativeGenderEnum> myGender;
|
||||
|
||||
@Child(name="address", type=AddressDt.class, order=6, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Address where the related person can be contacted or visited"
|
||||
)
|
||||
private AddressDt myAddress;
|
||||
|
||||
@Child(name="photo", type=AttachmentDt.class, order=7, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Image of the person"
|
||||
)
|
||||
private java.util.List<AttachmentDt> myPhoto;
|
||||
|
||||
@Child(name="period", type=PeriodDt.class, order=8, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="The period of time that this relationship is considered to be valid. If there are no dates defined, then the interval is unknown."
|
||||
)
|
||||
private PeriodDt myPeriod;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myPatient, myRelationship, myName, myTelecom, myGender, myAddress, myPhoto, myPeriod);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myPatient, myRelationship, myName, myTelecom, myGender, myAddress, myPhoto, myPeriod);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>identifier</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifier for a person within a particular scope.
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<IdentifierDt> getIdentifier() {
|
||||
if (myIdentifier == null) {
|
||||
myIdentifier = new java.util.ArrayList<IdentifierDt>();
|
||||
}
|
||||
return myIdentifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>identifier</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifier for a person within a particular scope.
|
||||
* </p>
|
||||
*/
|
||||
public RelatedPerson setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>identifier</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifier for a person within a particular scope.
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt addIdentifier() {
|
||||
IdentifierDt newType = new IdentifierDt();
|
||||
getIdentifier().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>identifier</b> (),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifier for a person within a particular scope.
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt getIdentifierFirstRep() {
|
||||
if (getIdentifier().isEmpty()) {
|
||||
return addIdentifier();
|
||||
}
|
||||
return getIdentifier().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>patient</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The patient this person is related to
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getPatient() {
|
||||
if (myPatient == null) {
|
||||
myPatient = new ResourceReferenceDt();
|
||||
}
|
||||
return myPatient;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>patient</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The patient this person is related to
|
||||
* </p>
|
||||
*/
|
||||
public RelatedPerson setPatient(ResourceReferenceDt theValue) {
|
||||
myPatient = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>relationship</b> (PatientRelationshipType).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The nature of the relationship between a patient and the related person
|
||||
* </p>
|
||||
*/
|
||||
public BoundCodeableConceptDt<PatientRelationshipTypeEnum> getRelationship() {
|
||||
if (myRelationship == null) {
|
||||
myRelationship = new BoundCodeableConceptDt<PatientRelationshipTypeEnum>(PatientRelationshipTypeEnum.VALUESET_BINDER);
|
||||
}
|
||||
return myRelationship;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>relationship</b> (PatientRelationshipType)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The nature of the relationship between a patient and the related person
|
||||
* </p>
|
||||
*/
|
||||
public RelatedPerson setRelationship(BoundCodeableConceptDt<PatientRelationshipTypeEnum> theValue) {
|
||||
myRelationship = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>relationship</b> (PatientRelationshipType)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The nature of the relationship between a patient and the related person
|
||||
* </p>
|
||||
*/
|
||||
public RelatedPerson setRelationship(PatientRelationshipTypeEnum theValue) {
|
||||
getRelationship().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>name</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A name associated with the person
|
||||
* </p>
|
||||
*/
|
||||
public HumanNameDt getName() {
|
||||
if (myName == null) {
|
||||
myName = new HumanNameDt();
|
||||
}
|
||||
return myName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>name</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A name associated with the person
|
||||
* </p>
|
||||
*/
|
||||
public RelatedPerson setName(HumanNameDt theValue) {
|
||||
myName = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>telecom</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A contact detail for the person, e.g. a telephone number or an email address.
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<ContactPointDt> getTelecom() {
|
||||
if (myTelecom == null) {
|
||||
myTelecom = new java.util.ArrayList<ContactPointDt>();
|
||||
}
|
||||
return myTelecom;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>telecom</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A contact detail for the person, e.g. a telephone number or an email address.
|
||||
* </p>
|
||||
*/
|
||||
public RelatedPerson setTelecom(java.util.List<ContactPointDt> theValue) {
|
||||
myTelecom = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>telecom</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A contact detail for the person, e.g. a telephone number or an email address.
|
||||
* </p>
|
||||
*/
|
||||
public ContactPointDt addTelecom() {
|
||||
ContactPointDt newType = new ContactPointDt();
|
||||
getTelecom().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>telecom</b> (),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A contact detail for the person, e.g. a telephone number or an email address.
|
||||
* </p>
|
||||
*/
|
||||
public ContactPointDt getTelecomFirstRep() {
|
||||
if (getTelecom().isEmpty()) {
|
||||
return addTelecom();
|
||||
}
|
||||
return getTelecom().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>gender</b> (AdministrativeGender).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.
|
||||
* </p>
|
||||
*/
|
||||
public BoundCodeDt<AdministrativeGenderEnum> getGenderElement() {
|
||||
if (myGender == null) {
|
||||
myGender = new BoundCodeDt<AdministrativeGenderEnum>(AdministrativeGenderEnum.VALUESET_BINDER);
|
||||
}
|
||||
return myGender;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>gender</b> (AdministrativeGender).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.
|
||||
* </p>
|
||||
*/
|
||||
public String getGender() {
|
||||
return getGenderElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>gender</b> (AdministrativeGender)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.
|
||||
* </p>
|
||||
*/
|
||||
public RelatedPerson setGender(BoundCodeDt<AdministrativeGenderEnum> theValue) {
|
||||
myGender = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>gender</b> (AdministrativeGender)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.
|
||||
* </p>
|
||||
*/
|
||||
public RelatedPerson setGender(AdministrativeGenderEnum theValue) {
|
||||
getGenderElement().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>address</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Address where the related person can be contacted or visited
|
||||
* </p>
|
||||
*/
|
||||
public AddressDt getAddress() {
|
||||
if (myAddress == null) {
|
||||
myAddress = new AddressDt();
|
||||
}
|
||||
return myAddress;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>address</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Address where the related person can be contacted or visited
|
||||
* </p>
|
||||
*/
|
||||
public RelatedPerson setAddress(AddressDt theValue) {
|
||||
myAddress = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>photo</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Image of the person
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<AttachmentDt> getPhoto() {
|
||||
if (myPhoto == null) {
|
||||
myPhoto = new java.util.ArrayList<AttachmentDt>();
|
||||
}
|
||||
return myPhoto;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>photo</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Image of the person
|
||||
* </p>
|
||||
*/
|
||||
public RelatedPerson setPhoto(java.util.List<AttachmentDt> theValue) {
|
||||
myPhoto = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>photo</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Image of the person
|
||||
* </p>
|
||||
*/
|
||||
public AttachmentDt addPhoto() {
|
||||
AttachmentDt newType = new AttachmentDt();
|
||||
getPhoto().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>photo</b> (),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Image of the person
|
||||
* </p>
|
||||
*/
|
||||
public AttachmentDt getPhotoFirstRep() {
|
||||
if (getPhoto().isEmpty()) {
|
||||
return addPhoto();
|
||||
}
|
||||
return getPhoto().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>period</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The period of time that this relationship is considered to be valid. If there are no dates defined, then the interval is unknown.
|
||||
* </p>
|
||||
*/
|
||||
public PeriodDt getPeriod() {
|
||||
if (myPeriod == null) {
|
||||
myPeriod = new PeriodDt();
|
||||
}
|
||||
return myPeriod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>period</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The period of time that this relationship is considered to be valid. If there are no dates defined, then the interval is unknown.
|
||||
* </p>
|
||||
*/
|
||||
public RelatedPerson setPeriod(PeriodDt theValue) {
|
||||
myPeriod = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String getResourceName() {
|
||||
return "RelatedPerson";
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,768 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.resource;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.net.URI;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.rest.gclient.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdministrativeGenderEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCertaintyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCriticalityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AlertStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.AllergyIntolerance;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnswerFormatEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Appointment;
|
||||
import ca.uhn.fhir.model.dev.valueset.AppointmentStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dev.resource.CarePlan;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanGoalStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CausalityExpectationEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionAttestationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConceptMapEquivalenceEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Condition;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConditionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ContactPointDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Contract;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractSubtypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTermTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataAbsentReasonEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Device;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticReport;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentManifest;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentReference;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentReferenceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ElementDefinitionDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaAdditiveTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.EpisodeOfCare;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExcludeFoodModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExposureTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.FamilyHistory;
|
||||
import ca.uhn.fhir.model.dev.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FluidConsistencyTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FoodTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Group;
|
||||
import ca.uhn.fhir.model.dev.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dev.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dev.resource.Immunization;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImmunizationRecommendation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRouteCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ListModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Location;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Media;
|
||||
import ca.uhn.fhir.model.dev.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Medication;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationAdministration;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationAdministrationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationDispense;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationPrescription;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationPrescriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationStatement;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Microarray;
|
||||
import ca.uhn.fhir.model.dev.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Namespace;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceIdentifierTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutrientModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutritionOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Observation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationInterpretationCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationReliabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationDefinition;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationOutcome;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationParameterUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Order;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrderOutcomeStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantRequiredEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Patient;
|
||||
import ca.uhn.fhir.model.dev.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PriorityCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Procedure;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProcedureRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Profile;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProvenanceEntityRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.QueryOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Questionnaire;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireAnswersStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.RangeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.RatioDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReactionSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ReferralRequest;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReferralStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResponseTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulConformanceModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulSecurityServiceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Schedule;
|
||||
import ca.uhn.fhir.model.dev.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventActionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectLifecycleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectSensitivityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventParticipantNetworkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventSourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.SecurityGroup;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingAnalysis;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingLab;
|
||||
import ca.uhn.fhir.model.dev.resource.Slot;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlotStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionChannelTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Substance;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplementTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Supply;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyItemTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SystemRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.TextureModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.TimingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.TypeRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dev.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.ExtensionDt;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dev.composite.AgeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.BoundCodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.dev.composite.MoneyDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Binary;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.TimeDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>Remittance</b> Resource
|
||||
* ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A remittance
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Profile Definition:</b>
|
||||
* <a href="http://hl7.org/fhir/profiles/Remittance">http://hl7.org/fhir/profiles/Remittance</a>
|
||||
* </p>
|
||||
*
|
||||
*/
|
||||
@ResourceDef(name="Remittance", profile="http://hl7.org/fhir/profiles/Remittance", id="remittance")
|
||||
public class Remittance
|
||||
extends BaseResource implements IResource {
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>identifier</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Remittance.identifier</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="identifier", path="Remittance.identifier", description="", type="token" )
|
||||
public static final String SP_IDENTIFIER = "identifier";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>identifier</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Remittance.identifier</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>service</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Remittance.service.code</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="service", path="Remittance.service.code", description="", type="token" )
|
||||
public static final String SP_SERVICE = "service";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>service</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Remittance.service.code</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam SERVICE = new TokenClientParam(SP_SERVICE);
|
||||
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Remittance.identifier</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_IDENTIFIER = new Include("Remittance.identifier");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Remittance.service.code</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_SERVICE_CODE = new Include("Remittance.service.code");
|
||||
|
||||
|
||||
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="The remittance identifier"
|
||||
)
|
||||
private IdentifierDt myIdentifier;
|
||||
|
||||
@Child(name="service", order=1, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="A service paid as part of remittance"
|
||||
)
|
||||
private java.util.List<Service> myService;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myService);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myService);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>identifier</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The remittance identifier
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt getIdentifier() {
|
||||
if (myIdentifier == null) {
|
||||
myIdentifier = new IdentifierDt();
|
||||
}
|
||||
return myIdentifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>identifier</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The remittance identifier
|
||||
* </p>
|
||||
*/
|
||||
public Remittance setIdentifier(IdentifierDt theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>service</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A service paid as part of remittance
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<Service> getService() {
|
||||
if (myService == null) {
|
||||
myService = new java.util.ArrayList<Service>();
|
||||
}
|
||||
return myService;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>service</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A service paid as part of remittance
|
||||
* </p>
|
||||
*/
|
||||
public Remittance setService(java.util.List<Service> theValue) {
|
||||
myService = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>service</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A service paid as part of remittance
|
||||
* </p>
|
||||
*/
|
||||
public Service addService() {
|
||||
Service newType = new Service();
|
||||
getService().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>service</b> (),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A service paid as part of remittance
|
||||
* </p>
|
||||
*/
|
||||
public Service getServiceFirstRep() {
|
||||
if (getService().isEmpty()) {
|
||||
return addService();
|
||||
}
|
||||
return getService().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Block class for child element: <b>Remittance.service</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A service paid as part of remittance
|
||||
* </p>
|
||||
*/
|
||||
@Block()
|
||||
public static class Service
|
||||
extends BaseIdentifiableElement implements IResourceBlock {
|
||||
|
||||
@Child(name="instance", type=IntegerDt.class, order=0, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="The service instance number for the original transaction"
|
||||
)
|
||||
private IntegerDt myInstance;
|
||||
|
||||
@Child(name="code", type=CodeableConceptDt.class, order=1, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="ServiceCode",
|
||||
formalDefinition="The code for the professional service"
|
||||
)
|
||||
private CodeableConceptDt myCode;
|
||||
|
||||
@Child(name="rate", type=DecimalDt.class, order=2, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="The percent of the service fee which would be elegible for coverage"
|
||||
)
|
||||
private DecimalDt myRate;
|
||||
|
||||
@Child(name="benefit", type=DecimalDt.class, order=3, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="The amount payable for a submitted service (includes both professional and lab fees.)"
|
||||
)
|
||||
private DecimalDt myBenefit;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myInstance, myCode, myRate, myBenefit);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myInstance, myCode, myRate, myBenefit);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>instance</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The service instance number for the original transaction
|
||||
* </p>
|
||||
*/
|
||||
public IntegerDt getInstanceElement() {
|
||||
if (myInstance == null) {
|
||||
myInstance = new IntegerDt();
|
||||
}
|
||||
return myInstance;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>instance</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The service instance number for the original transaction
|
||||
* </p>
|
||||
*/
|
||||
public Integer getInstance() {
|
||||
return getInstanceElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>instance</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The service instance number for the original transaction
|
||||
* </p>
|
||||
*/
|
||||
public Service setInstance(IntegerDt theValue) {
|
||||
myInstance = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>instance</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The service instance number for the original transaction
|
||||
* </p>
|
||||
*/
|
||||
public Service setInstance( int theInteger) {
|
||||
myInstance = new IntegerDt(theInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>code</b> (ServiceCode).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The code for the professional service
|
||||
* </p>
|
||||
*/
|
||||
public CodeableConceptDt getCode() {
|
||||
if (myCode == null) {
|
||||
myCode = new CodeableConceptDt();
|
||||
}
|
||||
return myCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>code</b> (ServiceCode)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The code for the professional service
|
||||
* </p>
|
||||
*/
|
||||
public Service setCode(CodeableConceptDt theValue) {
|
||||
myCode = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>rate</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The percent of the service fee which would be elegible for coverage
|
||||
* </p>
|
||||
*/
|
||||
public DecimalDt getRateElement() {
|
||||
if (myRate == null) {
|
||||
myRate = new DecimalDt();
|
||||
}
|
||||
return myRate;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>rate</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The percent of the service fee which would be elegible for coverage
|
||||
* </p>
|
||||
*/
|
||||
public BigDecimal getRate() {
|
||||
return getRateElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>rate</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The percent of the service fee which would be elegible for coverage
|
||||
* </p>
|
||||
*/
|
||||
public Service setRate(DecimalDt theValue) {
|
||||
myRate = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>rate</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The percent of the service fee which would be elegible for coverage
|
||||
* </p>
|
||||
*/
|
||||
public Service setRate( long theValue) {
|
||||
myRate = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>rate</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The percent of the service fee which would be elegible for coverage
|
||||
* </p>
|
||||
*/
|
||||
public Service setRate( double theValue) {
|
||||
myRate = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>rate</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The percent of the service fee which would be elegible for coverage
|
||||
* </p>
|
||||
*/
|
||||
public Service setRate( java.math.BigDecimal theValue) {
|
||||
myRate = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>benefit</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The amount payable for a submitted service (includes both professional and lab fees.)
|
||||
* </p>
|
||||
*/
|
||||
public DecimalDt getBenefitElement() {
|
||||
if (myBenefit == null) {
|
||||
myBenefit = new DecimalDt();
|
||||
}
|
||||
return myBenefit;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>benefit</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The amount payable for a submitted service (includes both professional and lab fees.)
|
||||
* </p>
|
||||
*/
|
||||
public BigDecimal getBenefit() {
|
||||
return getBenefitElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>benefit</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The amount payable for a submitted service (includes both professional and lab fees.)
|
||||
* </p>
|
||||
*/
|
||||
public Service setBenefit(DecimalDt theValue) {
|
||||
myBenefit = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>benefit</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The amount payable for a submitted service (includes both professional and lab fees.)
|
||||
* </p>
|
||||
*/
|
||||
public Service setBenefit( long theValue) {
|
||||
myBenefit = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>benefit</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The amount payable for a submitted service (includes both professional and lab fees.)
|
||||
* </p>
|
||||
*/
|
||||
public Service setBenefit( double theValue) {
|
||||
myBenefit = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>benefit</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The amount payable for a submitted service (includes both professional and lab fees.)
|
||||
* </p>
|
||||
*/
|
||||
public Service setBenefit( java.math.BigDecimal theValue) {
|
||||
myBenefit = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String getResourceName() {
|
||||
return "Remittance";
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,731 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.resource;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.net.URI;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.rest.gclient.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdministrativeGenderEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCertaintyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCriticalityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AlertStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.AllergyIntolerance;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnswerFormatEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Appointment;
|
||||
import ca.uhn.fhir.model.dev.valueset.AppointmentStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dev.resource.CarePlan;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanGoalStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CausalityExpectationEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionAttestationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConceptMapEquivalenceEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Condition;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConditionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ContactPointDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Contract;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractSubtypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTermTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataAbsentReasonEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Device;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticReport;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentManifest;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentReference;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentReferenceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ElementDefinitionDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaAdditiveTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.EpisodeOfCare;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExcludeFoodModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExposureTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.FamilyHistory;
|
||||
import ca.uhn.fhir.model.dev.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FluidConsistencyTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FoodTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Group;
|
||||
import ca.uhn.fhir.model.dev.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dev.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dev.resource.Immunization;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImmunizationRecommendation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRouteCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ListModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Location;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Media;
|
||||
import ca.uhn.fhir.model.dev.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Medication;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationAdministration;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationAdministrationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationDispense;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationPrescription;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationPrescriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationStatement;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Microarray;
|
||||
import ca.uhn.fhir.model.dev.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Namespace;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceIdentifierTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutrientModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutritionOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Observation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationInterpretationCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationReliabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationDefinition;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationOutcome;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationParameterUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Order;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrderOutcomeStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantRequiredEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Patient;
|
||||
import ca.uhn.fhir.model.dev.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PriorityCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Procedure;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProcedureRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Profile;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProvenanceEntityRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.QueryOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Questionnaire;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireAnswersStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.RangeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.RatioDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReactionSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ReferralRequest;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReferralStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResponseTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulConformanceModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulSecurityServiceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Schedule;
|
||||
import ca.uhn.fhir.model.dev.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventActionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectLifecycleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectSensitivityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventParticipantNetworkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventSourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.SecurityGroup;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingAnalysis;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingLab;
|
||||
import ca.uhn.fhir.model.dev.resource.Slot;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlotStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionChannelTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Substance;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplementTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Supply;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyItemTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SystemRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.TextureModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.TimingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.TypeRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dev.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.ExtensionDt;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dev.composite.AgeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.BoundCodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.dev.composite.MoneyDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Binary;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.TimeDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>Schedule</b> Resource
|
||||
* ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Profile Definition:</b>
|
||||
* <a href="http://hl7.org/fhir/profiles/Schedule">http://hl7.org/fhir/profiles/Schedule</a>
|
||||
* </p>
|
||||
*
|
||||
*/
|
||||
@ResourceDef(name="Schedule", profile="http://hl7.org/fhir/profiles/Schedule", id="schedule")
|
||||
public class Schedule
|
||||
extends BaseResource implements IResource {
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>actor</b>
|
||||
* <p>
|
||||
* Description: <b>The individual(HealthcareService, Practitioner, Location, ...) to find a Schedule for</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Schedule.actor</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="actor", path="Schedule.actor", description="The individual(HealthcareService, Practitioner, Location, ...) to find a Schedule for", type="reference" )
|
||||
public static final String SP_ACTOR = "actor";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>actor</b>
|
||||
* <p>
|
||||
* Description: <b>The individual(HealthcareService, Practitioner, Location, ...) to find a Schedule for</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Schedule.actor</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam ACTOR = new ReferenceClientParam(SP_ACTOR);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>type</b>
|
||||
* <p>
|
||||
* Description: <b>The type of appointments that can be booked into associated slot(s)</b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Schedule.type</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="type", path="Schedule.type", description="The type of appointments that can be booked into associated slot(s)", type="token" )
|
||||
public static final String SP_TYPE = "type";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>type</b>
|
||||
* <p>
|
||||
* Description: <b>The type of appointments that can be booked into associated slot(s)</b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Schedule.type</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>date</b>
|
||||
* <p>
|
||||
* Description: <b>Search for Schedule resources that have a period that contains this date specified</b><br/>
|
||||
* Type: <b>date</b><br/>
|
||||
* Path: <b>Schedule.planningHorizon</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="date", path="Schedule.planningHorizon", description="Search for Schedule resources that have a period that contains this date specified", type="date" )
|
||||
public static final String SP_DATE = "date";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>date</b>
|
||||
* <p>
|
||||
* Description: <b>Search for Schedule resources that have a period that contains this date specified</b><br/>
|
||||
* Type: <b>date</b><br/>
|
||||
* Path: <b>Schedule.planningHorizon</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final DateClientParam DATE = new DateClientParam(SP_DATE);
|
||||
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Schedule.actor</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_ACTOR = new Include("Schedule.actor");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Schedule.planningHorizon</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_PLANNINGHORIZON = new Include("Schedule.planningHorizon");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Schedule.type</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_TYPE = new Include("Schedule.type");
|
||||
|
||||
|
||||
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition=""
|
||||
)
|
||||
private java.util.List<IdentifierDt> myIdentifier;
|
||||
|
||||
@Child(name="type", type=CodeableConceptDt.class, order=1, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="ActType",
|
||||
formalDefinition=""
|
||||
)
|
||||
private java.util.List<CodeableConceptDt> myType;
|
||||
|
||||
@Child(name="actor", order=2, min=1, max=1, type={
|
||||
IResource.class })
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition=""
|
||||
)
|
||||
private ResourceReferenceDt myActor;
|
||||
|
||||
@Child(name="planningHorizon", type=PeriodDt.class, order=3, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition=""
|
||||
)
|
||||
private PeriodDt myPlanningHorizon;
|
||||
|
||||
@Child(name="comment", type=StringDt.class, order=4, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition=""
|
||||
)
|
||||
private StringDt myComment;
|
||||
|
||||
@Child(name="lastModified", type=DateTimeDt.class, order=5, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition=""
|
||||
)
|
||||
private DateTimeDt myLastModified;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myType, myActor, myPlanningHorizon, myComment, myLastModified);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myType, myActor, myPlanningHorizon, myComment, myLastModified);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>identifier</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<IdentifierDt> getIdentifier() {
|
||||
if (myIdentifier == null) {
|
||||
myIdentifier = new java.util.ArrayList<IdentifierDt>();
|
||||
}
|
||||
return myIdentifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>identifier</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Schedule setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>identifier</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt addIdentifier() {
|
||||
IdentifierDt newType = new IdentifierDt();
|
||||
getIdentifier().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>identifier</b> (),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt getIdentifierFirstRep() {
|
||||
if (getIdentifier().isEmpty()) {
|
||||
return addIdentifier();
|
||||
}
|
||||
return getIdentifier().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>type</b> (ActType).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<CodeableConceptDt> getType() {
|
||||
if (myType == null) {
|
||||
myType = new java.util.ArrayList<CodeableConceptDt>();
|
||||
}
|
||||
return myType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>type</b> (ActType)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Schedule setType(java.util.List<CodeableConceptDt> theValue) {
|
||||
myType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>type</b> (ActType)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public CodeableConceptDt addType() {
|
||||
CodeableConceptDt newType = new CodeableConceptDt();
|
||||
getType().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>type</b> (ActType),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public CodeableConceptDt getTypeFirstRep() {
|
||||
if (getType().isEmpty()) {
|
||||
return addType();
|
||||
}
|
||||
return getType().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>actor</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getActor() {
|
||||
if (myActor == null) {
|
||||
myActor = new ResourceReferenceDt();
|
||||
}
|
||||
return myActor;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>actor</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Schedule setActor(ResourceReferenceDt theValue) {
|
||||
myActor = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>planningHorizon</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public PeriodDt getPlanningHorizon() {
|
||||
if (myPlanningHorizon == null) {
|
||||
myPlanningHorizon = new PeriodDt();
|
||||
}
|
||||
return myPlanningHorizon;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>planningHorizon</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Schedule setPlanningHorizon(PeriodDt theValue) {
|
||||
myPlanningHorizon = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>comment</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getCommentElement() {
|
||||
if (myComment == null) {
|
||||
myComment = new StringDt();
|
||||
}
|
||||
return myComment;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>comment</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public String getComment() {
|
||||
return getCommentElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>comment</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Schedule setComment(StringDt theValue) {
|
||||
myComment = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>comment</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Schedule setComment( String theString) {
|
||||
myComment = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>lastModified</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public DateTimeDt getLastModifiedElement() {
|
||||
if (myLastModified == null) {
|
||||
myLastModified = new DateTimeDt();
|
||||
}
|
||||
return myLastModified;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>lastModified</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Date getLastModified() {
|
||||
return getLastModifiedElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>lastModified</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Schedule setLastModified(DateTimeDt theValue) {
|
||||
myLastModified = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>lastModified</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Schedule setLastModified( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myLastModified = new DateTimeDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>lastModified</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Schedule setLastModifiedWithSecondsPrecision( Date theDate) {
|
||||
myLastModified = new DateTimeDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String getResourceName() {
|
||||
return "Schedule";
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,799 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.resource;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.net.URI;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.rest.gclient.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdministrativeGenderEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCertaintyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCriticalityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AlertStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.AllergyIntolerance;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnswerFormatEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Appointment;
|
||||
import ca.uhn.fhir.model.dev.valueset.AppointmentStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dev.resource.CarePlan;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanGoalStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CausalityExpectationEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionAttestationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConceptMapEquivalenceEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Condition;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConditionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ContactPointDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Contract;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractSubtypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTermTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataAbsentReasonEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Device;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticReport;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentManifest;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentReference;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentReferenceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ElementDefinitionDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaAdditiveTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.EpisodeOfCare;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExcludeFoodModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExposureTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.FamilyHistory;
|
||||
import ca.uhn.fhir.model.dev.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FluidConsistencyTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FoodTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Group;
|
||||
import ca.uhn.fhir.model.dev.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dev.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dev.resource.Immunization;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImmunizationRecommendation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRouteCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ListModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Location;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Media;
|
||||
import ca.uhn.fhir.model.dev.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Medication;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationAdministration;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationAdministrationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationDispense;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationPrescription;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationPrescriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationStatement;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Microarray;
|
||||
import ca.uhn.fhir.model.dev.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Namespace;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceIdentifierTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutrientModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutritionOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Observation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationInterpretationCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationReliabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationDefinition;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationOutcome;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationParameterUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Order;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrderOutcomeStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantRequiredEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Patient;
|
||||
import ca.uhn.fhir.model.dev.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PriorityCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Procedure;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProcedureRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Profile;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProvenanceEntityRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.QueryOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Questionnaire;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireAnswersStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.RangeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.RatioDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReactionSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ReferralRequest;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReferralStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResponseTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulConformanceModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulSecurityServiceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Schedule;
|
||||
import ca.uhn.fhir.model.dev.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventActionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectLifecycleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectSensitivityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventParticipantNetworkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventSourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.SecurityGroup;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingAnalysis;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingLab;
|
||||
import ca.uhn.fhir.model.dev.resource.Slot;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlotStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionChannelTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Substance;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplementTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Supply;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyItemTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SystemRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.TextureModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.TimingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.TypeRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dev.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.ExtensionDt;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dev.composite.AgeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.BoundCodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.dev.composite.MoneyDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Binary;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.TimeDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>SecurityClaim</b> Resource
|
||||
* ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The definition of a security claim that may be made
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Profile Definition:</b>
|
||||
* <a href="http://hl7.org/fhir/profiles/SecurityClaim">http://hl7.org/fhir/profiles/SecurityClaim</a>
|
||||
* </p>
|
||||
*
|
||||
*/
|
||||
@ResourceDef(name="SecurityClaim", profile="http://hl7.org/fhir/profiles/SecurityClaim", id="securityclaim")
|
||||
public class SecurityClaim
|
||||
extends BaseResource implements IResource {
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>type</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>SecurityClaim.type</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="type", path="SecurityClaim.type", description="", type="token" )
|
||||
public static final String SP_TYPE = "type";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>type</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>SecurityClaim.type</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>name</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>string</b><br/>
|
||||
* Path: <b>SecurityClaim.name</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="name", path="SecurityClaim.name", description="", type="string" )
|
||||
public static final String SP_NAME = "name";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>name</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>string</b><br/>
|
||||
* Path: <b>SecurityClaim.name</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final StringClientParam NAME = new StringClientParam(SP_NAME);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>valueset</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>SecurityClaim.valueSet</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="valueset", path="SecurityClaim.valueSet", description="", type="reference" )
|
||||
public static final String SP_VALUESET = "valueset";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>valueset</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>SecurityClaim.valueSet</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam VALUESET = new ReferenceClientParam(SP_VALUESET);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>value</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>SecurityClaim.value.code</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="value", path="SecurityClaim.value.code", description="", type="token" )
|
||||
public static final String SP_VALUE = "value";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>value</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>SecurityClaim.value.code</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam VALUE = new TokenClientParam(SP_VALUE);
|
||||
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>SecurityClaim.name</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_NAME = new Include("SecurityClaim.name");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>SecurityClaim.type</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_TYPE = new Include("SecurityClaim.type");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>SecurityClaim.value.code</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_VALUE_CODE = new Include("SecurityClaim.value.code");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>SecurityClaim.valueSet</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_VALUESET = new Include("SecurityClaim.valueSet");
|
||||
|
||||
|
||||
@Child(name="type", type=UriDt.class, order=0, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Formal identifier for the claim type"
|
||||
)
|
||||
private UriDt myType;
|
||||
|
||||
@Child(name="name", type=StringDt.class, order=1, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Human description of the claim type"
|
||||
)
|
||||
private StringDt myName;
|
||||
|
||||
@Child(name="valueSet", order=2, min=0, max=1, type={
|
||||
ca.uhn.fhir.model.dev.resource.ValueSet.class })
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="A set of codes that can be used for this claim type"
|
||||
)
|
||||
private ResourceReferenceDt myValueSet;
|
||||
|
||||
@Child(name="value", order=3, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Enumeration of possible values for this type"
|
||||
)
|
||||
private java.util.List<Value> myValue;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myName, myValueSet, myValue);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myName, myValueSet, myValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>type</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Formal identifier for the claim type
|
||||
* </p>
|
||||
*/
|
||||
public UriDt getTypeElement() {
|
||||
if (myType == null) {
|
||||
myType = new UriDt();
|
||||
}
|
||||
return myType;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>type</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Formal identifier for the claim type
|
||||
* </p>
|
||||
*/
|
||||
public URI getType() {
|
||||
return getTypeElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>type</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Formal identifier for the claim type
|
||||
* </p>
|
||||
*/
|
||||
public SecurityClaim setType(UriDt theValue) {
|
||||
myType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>type</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Formal identifier for the claim type
|
||||
* </p>
|
||||
*/
|
||||
public SecurityClaim setType( String theUri) {
|
||||
myType = new UriDt(theUri);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>name</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Human description of the claim type
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getNameElement() {
|
||||
if (myName == null) {
|
||||
myName = new StringDt();
|
||||
}
|
||||
return myName;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>name</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Human description of the claim type
|
||||
* </p>
|
||||
*/
|
||||
public String getName() {
|
||||
return getNameElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>name</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Human description of the claim type
|
||||
* </p>
|
||||
*/
|
||||
public SecurityClaim setName(StringDt theValue) {
|
||||
myName = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>name</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Human description of the claim type
|
||||
* </p>
|
||||
*/
|
||||
public SecurityClaim setName( String theString) {
|
||||
myName = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>valueSet</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A set of codes that can be used for this claim type
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getValueSet() {
|
||||
if (myValueSet == null) {
|
||||
myValueSet = new ResourceReferenceDt();
|
||||
}
|
||||
return myValueSet;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>valueSet</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A set of codes that can be used for this claim type
|
||||
* </p>
|
||||
*/
|
||||
public SecurityClaim setValueSet(ResourceReferenceDt theValue) {
|
||||
myValueSet = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>value</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Enumeration of possible values for this type
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<Value> getValue() {
|
||||
if (myValue == null) {
|
||||
myValue = new java.util.ArrayList<Value>();
|
||||
}
|
||||
return myValue;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>value</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Enumeration of possible values for this type
|
||||
* </p>
|
||||
*/
|
||||
public SecurityClaim setValue(java.util.List<Value> theValue) {
|
||||
myValue = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>value</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Enumeration of possible values for this type
|
||||
* </p>
|
||||
*/
|
||||
public Value addValue() {
|
||||
Value newType = new Value();
|
||||
getValue().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>value</b> (),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Enumeration of possible values for this type
|
||||
* </p>
|
||||
*/
|
||||
public Value getValueFirstRep() {
|
||||
if (getValue().isEmpty()) {
|
||||
return addValue();
|
||||
}
|
||||
return getValue().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Block class for child element: <b>SecurityClaim.value</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Enumeration of possible values for this type
|
||||
* </p>
|
||||
*/
|
||||
@Block()
|
||||
public static class Value
|
||||
extends BaseIdentifiableElement implements IResourceBlock {
|
||||
|
||||
@Child(name="code", type=StringDt.class, order=0, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="A value that can be used"
|
||||
)
|
||||
private StringDt myCode;
|
||||
|
||||
@Child(name="description", type=StringDt.class, order=1, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="The meaning of the code"
|
||||
)
|
||||
private StringDt myDescription;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myDescription);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myCode, myDescription);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>code</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A value that can be used
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getCodeElement() {
|
||||
if (myCode == null) {
|
||||
myCode = new StringDt();
|
||||
}
|
||||
return myCode;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>code</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A value that can be used
|
||||
* </p>
|
||||
*/
|
||||
public String getCode() {
|
||||
return getCodeElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>code</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A value that can be used
|
||||
* </p>
|
||||
*/
|
||||
public Value setCode(StringDt theValue) {
|
||||
myCode = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>code</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A value that can be used
|
||||
* </p>
|
||||
*/
|
||||
public Value setCode( String theString) {
|
||||
myCode = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>description</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The meaning of the code
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getDescriptionElement() {
|
||||
if (myDescription == null) {
|
||||
myDescription = new StringDt();
|
||||
}
|
||||
return myDescription;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>description</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The meaning of the code
|
||||
* </p>
|
||||
*/
|
||||
public String getDescription() {
|
||||
return getDescriptionElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>description</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The meaning of the code
|
||||
* </p>
|
||||
*/
|
||||
public Value setDescription(StringDt theValue) {
|
||||
myDescription = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>description</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The meaning of the code
|
||||
* </p>
|
||||
*/
|
||||
public Value setDescription( String theString) {
|
||||
myDescription = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String getResourceName() {
|
||||
return "SecurityClaim";
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,846 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.resource;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.net.URI;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.rest.gclient.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdministrativeGenderEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCertaintyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCriticalityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AlertStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.AllergyIntolerance;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnswerFormatEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Appointment;
|
||||
import ca.uhn.fhir.model.dev.valueset.AppointmentStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dev.resource.CarePlan;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanGoalStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CausalityExpectationEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionAttestationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConceptMapEquivalenceEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Condition;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConditionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ContactPointDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Contract;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractSubtypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTermTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataAbsentReasonEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Device;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticReport;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentManifest;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentReference;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentReferenceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ElementDefinitionDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaAdditiveTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.EpisodeOfCare;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExcludeFoodModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExposureTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.FamilyHistory;
|
||||
import ca.uhn.fhir.model.dev.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FluidConsistencyTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FoodTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Group;
|
||||
import ca.uhn.fhir.model.dev.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dev.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dev.resource.Immunization;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImmunizationRecommendation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRouteCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ListModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Location;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Media;
|
||||
import ca.uhn.fhir.model.dev.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Medication;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationAdministration;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationAdministrationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationDispense;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationPrescription;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationPrescriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationStatement;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Microarray;
|
||||
import ca.uhn.fhir.model.dev.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Namespace;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceIdentifierTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutrientModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutritionOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Observation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationInterpretationCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationReliabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationDefinition;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationOutcome;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationParameterUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Order;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrderOutcomeStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantRequiredEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Patient;
|
||||
import ca.uhn.fhir.model.dev.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PriorityCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Procedure;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProcedureRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Profile;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProvenanceEntityRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.QueryOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Questionnaire;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireAnswersStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.RangeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.RatioDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReactionSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ReferralRequest;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReferralStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResponseTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulConformanceModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulSecurityServiceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Schedule;
|
||||
import ca.uhn.fhir.model.dev.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventActionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectLifecycleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectSensitivityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventParticipantNetworkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventSourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.SecurityGroup;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingAnalysis;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingLab;
|
||||
import ca.uhn.fhir.model.dev.resource.Slot;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlotStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionChannelTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Substance;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplementTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Supply;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyItemTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SystemRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.TextureModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.TimingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.TypeRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dev.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.ExtensionDt;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dev.composite.AgeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.BoundCodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.dev.composite.MoneyDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Binary;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.TimeDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>SecurityGroup</b> Resource
|
||||
* ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A human or a software device that uses a software application/service
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Profile Definition:</b>
|
||||
* <a href="http://hl7.org/fhir/profiles/SecurityGroup">http://hl7.org/fhir/profiles/SecurityGroup</a>
|
||||
* </p>
|
||||
*
|
||||
*/
|
||||
@ResourceDef(name="SecurityGroup", profile="http://hl7.org/fhir/profiles/SecurityGroup", id="securitygroup")
|
||||
public class SecurityGroup
|
||||
extends BaseResource implements IResource {
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>identifier</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>SecurityGroup.identifier</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="identifier", path="SecurityGroup.identifier", description="", type="token" )
|
||||
public static final String SP_IDENTIFIER = "identifier";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>identifier</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>SecurityGroup.identifier</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>name</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>string</b><br/>
|
||||
* Path: <b>SecurityGroup.name</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="name", path="SecurityGroup.name", description="", type="string" )
|
||||
public static final String SP_NAME = "name";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>name</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>string</b><br/>
|
||||
* Path: <b>SecurityGroup.name</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final StringClientParam NAME = new StringClientParam(SP_NAME);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>type</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>SecurityGroup.claim.type</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="type", path="SecurityGroup.claim.type", description="", type="token" )
|
||||
public static final String SP_TYPE = "type";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>type</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>SecurityGroup.claim.type</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>claim</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>SecurityGroup.claim.value</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="claim", path="SecurityGroup.claim.value", description="", type="token" )
|
||||
public static final String SP_CLAIM = "claim";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>claim</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>SecurityGroup.claim.value</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam CLAIM = new TokenClientParam(SP_CLAIM);
|
||||
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>SecurityGroup.claim.type</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_CLAIM_TYPE = new Include("SecurityGroup.claim.type");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>SecurityGroup.claim.value</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_CLAIM_VALUE = new Include("SecurityGroup.claim.value");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>SecurityGroup.identifier</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_IDENTIFIER = new Include("SecurityGroup.identifier");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>SecurityGroup.name</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_NAME = new Include("SecurityGroup.name");
|
||||
|
||||
|
||||
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Identifiers that identify this group on external systems"
|
||||
)
|
||||
private java.util.List<IdentifierDt> myIdentifier;
|
||||
|
||||
@Child(name="name", type=StringDt.class, order=1, min=1, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Human usable name for this Group"
|
||||
)
|
||||
private java.util.List<StringDt> myName;
|
||||
|
||||
@Child(name="description", type=StringDt.class, order=2, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Additional textual information to futher characterise/identify this group for human use"
|
||||
)
|
||||
private StringDt myDescription;
|
||||
|
||||
@Child(name="claim", order=3, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Claims (e.g. rights/roles) associated this group, and inherited by all principals assigned to this group"
|
||||
)
|
||||
private java.util.List<Claim> myClaim;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myName, myDescription, myClaim);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myName, myDescription, myClaim);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>identifier</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifiers that identify this group on external systems
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<IdentifierDt> getIdentifier() {
|
||||
if (myIdentifier == null) {
|
||||
myIdentifier = new java.util.ArrayList<IdentifierDt>();
|
||||
}
|
||||
return myIdentifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>identifier</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifiers that identify this group on external systems
|
||||
* </p>
|
||||
*/
|
||||
public SecurityGroup setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>identifier</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifiers that identify this group on external systems
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt addIdentifier() {
|
||||
IdentifierDt newType = new IdentifierDt();
|
||||
getIdentifier().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>identifier</b> (),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifiers that identify this group on external systems
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt getIdentifierFirstRep() {
|
||||
if (getIdentifier().isEmpty()) {
|
||||
return addIdentifier();
|
||||
}
|
||||
return getIdentifier().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>name</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Human usable name for this Group
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<StringDt> getName() {
|
||||
if (myName == null) {
|
||||
myName = new java.util.ArrayList<StringDt>();
|
||||
}
|
||||
return myName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>name</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Human usable name for this Group
|
||||
* </p>
|
||||
*/
|
||||
public SecurityGroup setName(java.util.List<StringDt> theValue) {
|
||||
myName = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>name</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Human usable name for this Group
|
||||
* </p>
|
||||
*/
|
||||
public StringDt addName() {
|
||||
StringDt newType = new StringDt();
|
||||
getName().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>name</b> (),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Human usable name for this Group
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getNameFirstRep() {
|
||||
if (getName().isEmpty()) {
|
||||
return addName();
|
||||
}
|
||||
return getName().get(0);
|
||||
}
|
||||
/**
|
||||
* Adds a new value for <b>name</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Human usable name for this Group
|
||||
* </p>
|
||||
*
|
||||
* @return Returns a reference to this object, to allow for simple chaining.
|
||||
*/
|
||||
public SecurityGroup addName( String theString) {
|
||||
if (myName == null) {
|
||||
myName = new java.util.ArrayList<StringDt>();
|
||||
}
|
||||
myName.add(new StringDt(theString));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>description</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Additional textual information to futher characterise/identify this group for human use
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getDescriptionElement() {
|
||||
if (myDescription == null) {
|
||||
myDescription = new StringDt();
|
||||
}
|
||||
return myDescription;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>description</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Additional textual information to futher characterise/identify this group for human use
|
||||
* </p>
|
||||
*/
|
||||
public String getDescription() {
|
||||
return getDescriptionElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>description</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Additional textual information to futher characterise/identify this group for human use
|
||||
* </p>
|
||||
*/
|
||||
public SecurityGroup setDescription(StringDt theValue) {
|
||||
myDescription = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>description</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Additional textual information to futher characterise/identify this group for human use
|
||||
* </p>
|
||||
*/
|
||||
public SecurityGroup setDescription( String theString) {
|
||||
myDescription = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>claim</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Claims (e.g. rights/roles) associated this group, and inherited by all principals assigned to this group
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<Claim> getClaim() {
|
||||
if (myClaim == null) {
|
||||
myClaim = new java.util.ArrayList<Claim>();
|
||||
}
|
||||
return myClaim;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>claim</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Claims (e.g. rights/roles) associated this group, and inherited by all principals assigned to this group
|
||||
* </p>
|
||||
*/
|
||||
public SecurityGroup setClaim(java.util.List<Claim> theValue) {
|
||||
myClaim = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>claim</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Claims (e.g. rights/roles) associated this group, and inherited by all principals assigned to this group
|
||||
* </p>
|
||||
*/
|
||||
public Claim addClaim() {
|
||||
Claim newType = new Claim();
|
||||
getClaim().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>claim</b> (),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Claims (e.g. rights/roles) associated this group, and inherited by all principals assigned to this group
|
||||
* </p>
|
||||
*/
|
||||
public Claim getClaimFirstRep() {
|
||||
if (getClaim().isEmpty()) {
|
||||
return addClaim();
|
||||
}
|
||||
return getClaim().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Block class for child element: <b>SecurityGroup.claim</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Claims (e.g. rights/roles) associated this group, and inherited by all principals assigned to this group
|
||||
* </p>
|
||||
*/
|
||||
@Block()
|
||||
public static class Claim
|
||||
extends BaseIdentifiableElement implements IResourceBlock {
|
||||
|
||||
@Child(name="type", type=UriDt.class, order=0, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Logical or literal reference to type of claim. See \"Security Claim Types\" for further information"
|
||||
)
|
||||
private UriDt myType;
|
||||
|
||||
@Child(name="value", type=StringDt.class, order=1, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Claim value. This is usually a URI, but depends on the type"
|
||||
)
|
||||
private StringDt myValue;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myValue);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>type</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Logical or literal reference to type of claim. See \"Security Claim Types\" for further information
|
||||
* </p>
|
||||
*/
|
||||
public UriDt getTypeElement() {
|
||||
if (myType == null) {
|
||||
myType = new UriDt();
|
||||
}
|
||||
return myType;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>type</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Logical or literal reference to type of claim. See \"Security Claim Types\" for further information
|
||||
* </p>
|
||||
*/
|
||||
public URI getType() {
|
||||
return getTypeElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>type</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Logical or literal reference to type of claim. See \"Security Claim Types\" for further information
|
||||
* </p>
|
||||
*/
|
||||
public Claim setType(UriDt theValue) {
|
||||
myType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>type</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Logical or literal reference to type of claim. See \"Security Claim Types\" for further information
|
||||
* </p>
|
||||
*/
|
||||
public Claim setType( String theUri) {
|
||||
myType = new UriDt(theUri);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>value</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Claim value. This is usually a URI, but depends on the type
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getValueElement() {
|
||||
if (myValue == null) {
|
||||
myValue = new StringDt();
|
||||
}
|
||||
return myValue;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>value</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Claim value. This is usually a URI, but depends on the type
|
||||
* </p>
|
||||
*/
|
||||
public String getValue() {
|
||||
return getValueElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>value</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Claim value. This is usually a URI, but depends on the type
|
||||
* </p>
|
||||
*/
|
||||
public Claim setValue(StringDt theValue) {
|
||||
myValue = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>value</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Claim value. This is usually a URI, but depends on the type
|
||||
* </p>
|
||||
*/
|
||||
public Claim setValue( String theString) {
|
||||
myValue = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String getResourceName() {
|
||||
return "SecurityGroup";
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,933 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.resource;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.net.URI;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.rest.gclient.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdministrativeGenderEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCertaintyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCriticalityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AlertStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.AllergyIntolerance;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnswerFormatEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Appointment;
|
||||
import ca.uhn.fhir.model.dev.valueset.AppointmentStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dev.resource.CarePlan;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanGoalStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CausalityExpectationEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionAttestationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConceptMapEquivalenceEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Condition;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConditionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ContactPointDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Contract;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractSubtypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTermTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataAbsentReasonEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Device;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticReport;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentManifest;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentReference;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentReferenceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ElementDefinitionDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaAdditiveTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.EpisodeOfCare;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExcludeFoodModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExposureTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.FamilyHistory;
|
||||
import ca.uhn.fhir.model.dev.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FluidConsistencyTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FoodTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Group;
|
||||
import ca.uhn.fhir.model.dev.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dev.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dev.resource.Immunization;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImmunizationRecommendation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRouteCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ListModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Location;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Media;
|
||||
import ca.uhn.fhir.model.dev.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Medication;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationAdministration;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationAdministrationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationDispense;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationPrescription;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationPrescriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationStatement;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Microarray;
|
||||
import ca.uhn.fhir.model.dev.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Namespace;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceIdentifierTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutrientModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutritionOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Observation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationInterpretationCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationReliabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationDefinition;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationOutcome;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationParameterUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Order;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrderOutcomeStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantRequiredEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Patient;
|
||||
import ca.uhn.fhir.model.dev.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PriorityCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Procedure;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProcedureRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Profile;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProvenanceEntityRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.QueryOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Questionnaire;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireAnswersStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.RangeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.RatioDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReactionSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ReferralRequest;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReferralStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResponseTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulConformanceModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulSecurityServiceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Schedule;
|
||||
import ca.uhn.fhir.model.dev.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventActionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectLifecycleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectSensitivityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventParticipantNetworkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventSourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.SecurityGroup;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingAnalysis;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingLab;
|
||||
import ca.uhn.fhir.model.dev.resource.Slot;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlotStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionChannelTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Substance;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplementTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Supply;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyItemTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SystemRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.TextureModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.TimingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.TypeRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dev.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.ExtensionDt;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dev.composite.AgeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.BoundCodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.dev.composite.MoneyDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Binary;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.TimeDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>SequencingAnalysis</b> Resource
|
||||
* ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Computational analysis on a patient's genetic raw file
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Profile Definition:</b>
|
||||
* <a href="http://hl7.org/fhir/profiles/SequencingAnalysis">http://hl7.org/fhir/profiles/SequencingAnalysis</a>
|
||||
* </p>
|
||||
*
|
||||
*/
|
||||
@ResourceDef(name="SequencingAnalysis", profile="http://hl7.org/fhir/profiles/SequencingAnalysis", id="sequencinganalysis")
|
||||
public class SequencingAnalysis
|
||||
extends BaseResource implements IResource {
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>subject</b>
|
||||
* <p>
|
||||
* Description: <b>Subject of the analysis</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>SequencingAnalysis.subject</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="subject", path="SequencingAnalysis.subject", description="Subject of the analysis", type="reference" )
|
||||
public static final String SP_SUBJECT = "subject";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>subject</b>
|
||||
* <p>
|
||||
* Description: <b>Subject of the analysis</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>SequencingAnalysis.subject</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>date</b>
|
||||
* <p>
|
||||
* Description: <b>Date when result of the analysis is updated</b><br/>
|
||||
* Type: <b>date</b><br/>
|
||||
* Path: <b>SequencingAnalysis.date</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="date", path="SequencingAnalysis.date", description="Date when result of the analysis is updated", type="date" )
|
||||
public static final String SP_DATE = "date";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>date</b>
|
||||
* <p>
|
||||
* Description: <b>Date when result of the analysis is updated</b><br/>
|
||||
* Type: <b>date</b><br/>
|
||||
* Path: <b>SequencingAnalysis.date</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final DateClientParam DATE = new DateClientParam(SP_DATE);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>genome</b>
|
||||
* <p>
|
||||
* Description: <b>Name of the reference genome used in the analysis</b><br/>
|
||||
* Type: <b>string</b><br/>
|
||||
* Path: <b>SequencingAnalysis.genome.name</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="genome", path="SequencingAnalysis.genome.name", description="Name of the reference genome used in the analysis", type="string" )
|
||||
public static final String SP_GENOME = "genome";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>genome</b>
|
||||
* <p>
|
||||
* Description: <b>Name of the reference genome used in the analysis</b><br/>
|
||||
* Type: <b>string</b><br/>
|
||||
* Path: <b>SequencingAnalysis.genome.name</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final StringClientParam GENOME = new StringClientParam(SP_GENOME);
|
||||
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>SequencingAnalysis.date</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_DATE = new Include("SequencingAnalysis.date");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>SequencingAnalysis.genome.name</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_GENOME_NAME = new Include("SequencingAnalysis.genome.name");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>SequencingAnalysis.subject</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_SUBJECT = new Include("SequencingAnalysis.subject");
|
||||
|
||||
|
||||
@Child(name="subject", order=0, min=0, max=1, type={
|
||||
ca.uhn.fhir.model.dev.resource.Patient.class })
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Subject of the analysis"
|
||||
)
|
||||
private ResourceReferenceDt mySubject;
|
||||
|
||||
@Child(name="date", type=DateDt.class, order=1, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Date when result of the analysis is updated"
|
||||
)
|
||||
private DateDt myDate;
|
||||
|
||||
@Child(name="name", type=StringDt.class, order=2, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Name of the analysis"
|
||||
)
|
||||
private StringDt myName;
|
||||
|
||||
@Child(name="genome", order=3, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Reference genome used in the analysis"
|
||||
)
|
||||
private Genome myGenome;
|
||||
|
||||
@Child(name="file", type=AttachmentDt.class, order=4, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Files uploaded as result of the analysis"
|
||||
)
|
||||
private java.util.List<AttachmentDt> myFile;
|
||||
|
||||
@Child(name="inputLab", order=5, min=0, max=Child.MAX_UNLIMITED, type={
|
||||
ca.uhn.fhir.model.dev.resource.SequencingLab.class })
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="SequencingLab taken into account of the analysis"
|
||||
)
|
||||
private java.util.List<ResourceReferenceDt> myInputLab;
|
||||
|
||||
@Child(name="inputAnalysis", order=6, min=0, max=Child.MAX_UNLIMITED, type={
|
||||
ca.uhn.fhir.model.dev.resource.SequencingAnalysis.class })
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="SequencingAnalysis taken into account of the analysis"
|
||||
)
|
||||
private java.util.List<ResourceReferenceDt> myInputAnalysis;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySubject, myDate, myName, myGenome, myFile, myInputLab, myInputAnalysis);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySubject, myDate, myName, myGenome, myFile, myInputLab, myInputAnalysis);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>subject</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Subject of the analysis
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getSubject() {
|
||||
if (mySubject == null) {
|
||||
mySubject = new ResourceReferenceDt();
|
||||
}
|
||||
return mySubject;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>subject</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Subject of the analysis
|
||||
* </p>
|
||||
*/
|
||||
public SequencingAnalysis setSubject(ResourceReferenceDt theValue) {
|
||||
mySubject = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>date</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Date when result of the analysis is updated
|
||||
* </p>
|
||||
*/
|
||||
public DateDt getDateElement() {
|
||||
if (myDate == null) {
|
||||
myDate = new DateDt();
|
||||
}
|
||||
return myDate;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>date</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Date when result of the analysis is updated
|
||||
* </p>
|
||||
*/
|
||||
public Date getDate() {
|
||||
return getDateElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>date</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Date when result of the analysis is updated
|
||||
* </p>
|
||||
*/
|
||||
public SequencingAnalysis setDate(DateDt theValue) {
|
||||
myDate = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>date</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Date when result of the analysis is updated
|
||||
* </p>
|
||||
*/
|
||||
public SequencingAnalysis setDate( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myDate = new DateDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>date</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Date when result of the analysis is updated
|
||||
* </p>
|
||||
*/
|
||||
public SequencingAnalysis setDateWithDayPrecision( Date theDate) {
|
||||
myDate = new DateDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>name</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Name of the analysis
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getNameElement() {
|
||||
if (myName == null) {
|
||||
myName = new StringDt();
|
||||
}
|
||||
return myName;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>name</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Name of the analysis
|
||||
* </p>
|
||||
*/
|
||||
public String getName() {
|
||||
return getNameElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>name</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Name of the analysis
|
||||
* </p>
|
||||
*/
|
||||
public SequencingAnalysis setName(StringDt theValue) {
|
||||
myName = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>name</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Name of the analysis
|
||||
* </p>
|
||||
*/
|
||||
public SequencingAnalysis setName( String theString) {
|
||||
myName = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>genome</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Reference genome used in the analysis
|
||||
* </p>
|
||||
*/
|
||||
public Genome getGenome() {
|
||||
if (myGenome == null) {
|
||||
myGenome = new Genome();
|
||||
}
|
||||
return myGenome;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>genome</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Reference genome used in the analysis
|
||||
* </p>
|
||||
*/
|
||||
public SequencingAnalysis setGenome(Genome theValue) {
|
||||
myGenome = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>file</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Files uploaded as result of the analysis
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<AttachmentDt> getFile() {
|
||||
if (myFile == null) {
|
||||
myFile = new java.util.ArrayList<AttachmentDt>();
|
||||
}
|
||||
return myFile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>file</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Files uploaded as result of the analysis
|
||||
* </p>
|
||||
*/
|
||||
public SequencingAnalysis setFile(java.util.List<AttachmentDt> theValue) {
|
||||
myFile = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>file</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Files uploaded as result of the analysis
|
||||
* </p>
|
||||
*/
|
||||
public AttachmentDt addFile() {
|
||||
AttachmentDt newType = new AttachmentDt();
|
||||
getFile().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>file</b> (),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Files uploaded as result of the analysis
|
||||
* </p>
|
||||
*/
|
||||
public AttachmentDt getFileFirstRep() {
|
||||
if (getFile().isEmpty()) {
|
||||
return addFile();
|
||||
}
|
||||
return getFile().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>inputLab </b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* SequencingLab taken into account of the analysis
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<ResourceReferenceDt> getInputLab() {
|
||||
if (myInputLab == null) {
|
||||
myInputLab = new java.util.ArrayList<ResourceReferenceDt>();
|
||||
}
|
||||
return myInputLab;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>inputLab </b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* SequencingLab taken into account of the analysis
|
||||
* </p>
|
||||
*/
|
||||
public SequencingAnalysis setInputLab(java.util.List<ResourceReferenceDt> theValue) {
|
||||
myInputLab = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>inputLab </b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* SequencingLab taken into account of the analysis
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt addInputLab() {
|
||||
ResourceReferenceDt newType = new ResourceReferenceDt();
|
||||
getInputLab().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>inputAnalysis </b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* SequencingAnalysis taken into account of the analysis
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<ResourceReferenceDt> getInputAnalysis() {
|
||||
if (myInputAnalysis == null) {
|
||||
myInputAnalysis = new java.util.ArrayList<ResourceReferenceDt>();
|
||||
}
|
||||
return myInputAnalysis;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>inputAnalysis </b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* SequencingAnalysis taken into account of the analysis
|
||||
* </p>
|
||||
*/
|
||||
public SequencingAnalysis setInputAnalysis(java.util.List<ResourceReferenceDt> theValue) {
|
||||
myInputAnalysis = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>inputAnalysis </b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* SequencingAnalysis taken into account of the analysis
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt addInputAnalysis() {
|
||||
ResourceReferenceDt newType = new ResourceReferenceDt();
|
||||
getInputAnalysis().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Block class for child element: <b>SequencingAnalysis.genome</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Reference genome used in the analysis
|
||||
* </p>
|
||||
*/
|
||||
@Block()
|
||||
public static class Genome
|
||||
extends BaseIdentifiableElement implements IResourceBlock {
|
||||
|
||||
@Child(name="name", type=CodeDt.class, order=0, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="ReferenceGenome",
|
||||
formalDefinition="Name of the reference genome"
|
||||
)
|
||||
private CodeDt myName;
|
||||
|
||||
@Child(name="build", type=StringDt.class, order=1, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Build number of the refernece genome"
|
||||
)
|
||||
private StringDt myBuild;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myBuild);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myBuild);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>name</b> (ReferenceGenome).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Name of the reference genome
|
||||
* </p>
|
||||
*/
|
||||
public CodeDt getNameElement() {
|
||||
if (myName == null) {
|
||||
myName = new CodeDt();
|
||||
}
|
||||
return myName;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>name</b> (ReferenceGenome).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Name of the reference genome
|
||||
* </p>
|
||||
*/
|
||||
public String getName() {
|
||||
return getNameElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>name</b> (ReferenceGenome)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Name of the reference genome
|
||||
* </p>
|
||||
*/
|
||||
public Genome setName(CodeDt theValue) {
|
||||
myName = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>name</b> (ReferenceGenome)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Name of the reference genome
|
||||
* </p>
|
||||
*/
|
||||
public Genome setName( String theCode) {
|
||||
myName = new CodeDt(theCode);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>build</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Build number of the refernece genome
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getBuildElement() {
|
||||
if (myBuild == null) {
|
||||
myBuild = new StringDt();
|
||||
}
|
||||
return myBuild;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>build</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Build number of the refernece genome
|
||||
* </p>
|
||||
*/
|
||||
public String getBuild() {
|
||||
return getBuildElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>build</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Build number of the refernece genome
|
||||
* </p>
|
||||
*/
|
||||
public Genome setBuild(StringDt theValue) {
|
||||
myBuild = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>build</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Build number of the refernece genome
|
||||
* </p>
|
||||
*/
|
||||
public Genome setBuild( String theString) {
|
||||
myBuild = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String getResourceName() {
|
||||
return "SequencingAnalysis";
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,987 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.resource;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.net.URI;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.rest.gclient.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdministrativeGenderEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCertaintyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCriticalityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AlertStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.AllergyIntolerance;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnswerFormatEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Appointment;
|
||||
import ca.uhn.fhir.model.dev.valueset.AppointmentStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dev.resource.CarePlan;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanGoalStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CausalityExpectationEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionAttestationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConceptMapEquivalenceEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Condition;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConditionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ContactPointDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Contract;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractSubtypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTermTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataAbsentReasonEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Device;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticReport;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentManifest;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentReference;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentReferenceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ElementDefinitionDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaAdditiveTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.EpisodeOfCare;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExcludeFoodModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExposureTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.FamilyHistory;
|
||||
import ca.uhn.fhir.model.dev.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FluidConsistencyTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FoodTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Group;
|
||||
import ca.uhn.fhir.model.dev.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dev.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dev.resource.Immunization;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImmunizationRecommendation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRouteCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ListModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Location;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Media;
|
||||
import ca.uhn.fhir.model.dev.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Medication;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationAdministration;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationAdministrationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationDispense;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationPrescription;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationPrescriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationStatement;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Microarray;
|
||||
import ca.uhn.fhir.model.dev.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Namespace;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceIdentifierTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutrientModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutritionOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Observation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationInterpretationCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationReliabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationDefinition;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationOutcome;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationParameterUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Order;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrderOutcomeStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantRequiredEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Patient;
|
||||
import ca.uhn.fhir.model.dev.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PriorityCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Procedure;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProcedureRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Profile;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProvenanceEntityRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.QueryOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Questionnaire;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireAnswersStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.RangeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.RatioDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReactionSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ReferralRequest;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReferralStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResponseTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulConformanceModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulSecurityServiceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Schedule;
|
||||
import ca.uhn.fhir.model.dev.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventActionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectLifecycleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectSensitivityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventParticipantNetworkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventSourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.SecurityGroup;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingAnalysis;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingLab;
|
||||
import ca.uhn.fhir.model.dev.resource.Slot;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlotStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionChannelTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Substance;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplementTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Supply;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyItemTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SystemRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.TextureModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.TimingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.TypeRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dev.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.ExtensionDt;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dev.composite.AgeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.BoundCodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.dev.composite.MoneyDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Binary;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.TimeDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>Slot</b> Resource
|
||||
* ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Profile Definition:</b>
|
||||
* <a href="http://hl7.org/fhir/profiles/Slot">http://hl7.org/fhir/profiles/Slot</a>
|
||||
* </p>
|
||||
*
|
||||
*/
|
||||
@ResourceDef(name="Slot", profile="http://hl7.org/fhir/profiles/Slot", id="slot")
|
||||
public class Slot
|
||||
extends BaseResource implements IResource {
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>slottype</b>
|
||||
* <p>
|
||||
* Description: <b>The type of appointments that can be booked into the slot</b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Slot.type</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="slottype", path="Slot.type", description="The type of appointments that can be booked into the slot", type="token" )
|
||||
public static final String SP_SLOTTYPE = "slottype";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>slottype</b>
|
||||
* <p>
|
||||
* Description: <b>The type of appointments that can be booked into the slot</b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Slot.type</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam SLOTTYPE = new TokenClientParam(SP_SLOTTYPE);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>schedule</b>
|
||||
* <p>
|
||||
* Description: <b>The Schedule Resource that we are seeking a slot within</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Slot.schedule</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="schedule", path="Slot.schedule", description="The Schedule Resource that we are seeking a slot within", type="reference" )
|
||||
public static final String SP_SCHEDULE = "schedule";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>schedule</b>
|
||||
* <p>
|
||||
* Description: <b>The Schedule Resource that we are seeking a slot within</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Slot.schedule</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam SCHEDULE = new ReferenceClientParam(SP_SCHEDULE);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>start</b>
|
||||
* <p>
|
||||
* Description: <b>Appointment date/time.</b><br/>
|
||||
* Type: <b>date</b><br/>
|
||||
* Path: <b>Slot.start</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="start", path="Slot.start", description="Appointment date/time.", type="date" )
|
||||
public static final String SP_START = "start";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>start</b>
|
||||
* <p>
|
||||
* Description: <b>Appointment date/time.</b><br/>
|
||||
* Type: <b>date</b><br/>
|
||||
* Path: <b>Slot.start</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final DateClientParam START = new DateClientParam(SP_START);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>fbtype</b>
|
||||
* <p>
|
||||
* Description: <b>The free/busy status of the appointment</b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Slot.freeBusyType</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="fbtype", path="Slot.freeBusyType", description="The free/busy status of the appointment", type="token" )
|
||||
public static final String SP_FBTYPE = "fbtype";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>fbtype</b>
|
||||
* <p>
|
||||
* Description: <b>The free/busy status of the appointment</b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Slot.freeBusyType</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam FBTYPE = new TokenClientParam(SP_FBTYPE);
|
||||
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Slot.freeBusyType</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_FREEBUSYTYPE = new Include("Slot.freeBusyType");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Slot.schedule</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_SCHEDULE = new Include("Slot.schedule");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Slot.start</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_START = new Include("Slot.start");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Slot.type</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_TYPE = new Include("Slot.type");
|
||||
|
||||
|
||||
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition=""
|
||||
)
|
||||
private java.util.List<IdentifierDt> myIdentifier;
|
||||
|
||||
@Child(name="type", type=CodeableConceptDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition=""
|
||||
)
|
||||
private CodeableConceptDt myType;
|
||||
|
||||
@Child(name="schedule", order=2, min=1, max=1, type={
|
||||
ca.uhn.fhir.model.dev.resource.Schedule.class })
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition=""
|
||||
)
|
||||
private ResourceReferenceDt mySchedule;
|
||||
|
||||
@Child(name="freeBusyType", type=CodeDt.class, order=3, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="SlotStatus",
|
||||
formalDefinition=""
|
||||
)
|
||||
private BoundCodeDt<SlotStatusEnum> myFreeBusyType;
|
||||
|
||||
@Child(name="start", type=InstantDt.class, order=4, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition=""
|
||||
)
|
||||
private InstantDt myStart;
|
||||
|
||||
@Child(name="end", type=InstantDt.class, order=5, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition=""
|
||||
)
|
||||
private InstantDt myEnd;
|
||||
|
||||
@Child(name="overbooked", type=BooleanDt.class, order=6, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition=""
|
||||
)
|
||||
private BooleanDt myOverbooked;
|
||||
|
||||
@Child(name="comment", type=StringDt.class, order=7, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition=""
|
||||
)
|
||||
private StringDt myComment;
|
||||
|
||||
@Child(name="lastModified", type=DateTimeDt.class, order=8, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition=""
|
||||
)
|
||||
private DateTimeDt myLastModified;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myType, mySchedule, myFreeBusyType, myStart, myEnd, myOverbooked, myComment, myLastModified);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myType, mySchedule, myFreeBusyType, myStart, myEnd, myOverbooked, myComment, myLastModified);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>identifier</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<IdentifierDt> getIdentifier() {
|
||||
if (myIdentifier == null) {
|
||||
myIdentifier = new java.util.ArrayList<IdentifierDt>();
|
||||
}
|
||||
return myIdentifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>identifier</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Slot setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>identifier</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt addIdentifier() {
|
||||
IdentifierDt newType = new IdentifierDt();
|
||||
getIdentifier().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>identifier</b> (),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt getIdentifierFirstRep() {
|
||||
if (getIdentifier().isEmpty()) {
|
||||
return addIdentifier();
|
||||
}
|
||||
return getIdentifier().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>type</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public CodeableConceptDt getType() {
|
||||
if (myType == null) {
|
||||
myType = new CodeableConceptDt();
|
||||
}
|
||||
return myType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>type</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Slot setType(CodeableConceptDt theValue) {
|
||||
myType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>schedule</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getSchedule() {
|
||||
if (mySchedule == null) {
|
||||
mySchedule = new ResourceReferenceDt();
|
||||
}
|
||||
return mySchedule;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>schedule</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Slot setSchedule(ResourceReferenceDt theValue) {
|
||||
mySchedule = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>freeBusyType</b> (SlotStatus).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public BoundCodeDt<SlotStatusEnum> getFreeBusyTypeElement() {
|
||||
if (myFreeBusyType == null) {
|
||||
myFreeBusyType = new BoundCodeDt<SlotStatusEnum>(SlotStatusEnum.VALUESET_BINDER);
|
||||
}
|
||||
return myFreeBusyType;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>freeBusyType</b> (SlotStatus).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public String getFreeBusyType() {
|
||||
return getFreeBusyTypeElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>freeBusyType</b> (SlotStatus)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Slot setFreeBusyType(BoundCodeDt<SlotStatusEnum> theValue) {
|
||||
myFreeBusyType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>freeBusyType</b> (SlotStatus)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Slot setFreeBusyType(SlotStatusEnum theValue) {
|
||||
getFreeBusyTypeElement().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>start</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public InstantDt getStartElement() {
|
||||
if (myStart == null) {
|
||||
myStart = new InstantDt();
|
||||
}
|
||||
return myStart;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>start</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Date getStart() {
|
||||
return getStartElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>start</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Slot setStart(InstantDt theValue) {
|
||||
myStart = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>start</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Slot setStartWithMillisPrecision( Date theDate) {
|
||||
myStart = new InstantDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>start</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Slot setStart( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myStart = new InstantDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>end</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public InstantDt getEndElement() {
|
||||
if (myEnd == null) {
|
||||
myEnd = new InstantDt();
|
||||
}
|
||||
return myEnd;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>end</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Date getEnd() {
|
||||
return getEndElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>end</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Slot setEnd(InstantDt theValue) {
|
||||
myEnd = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>end</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Slot setEndWithMillisPrecision( Date theDate) {
|
||||
myEnd = new InstantDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>end</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Slot setEnd( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myEnd = new InstantDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>overbooked</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public BooleanDt getOverbookedElement() {
|
||||
if (myOverbooked == null) {
|
||||
myOverbooked = new BooleanDt();
|
||||
}
|
||||
return myOverbooked;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>overbooked</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Boolean getOverbooked() {
|
||||
return getOverbookedElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>overbooked</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Slot setOverbooked(BooleanDt theValue) {
|
||||
myOverbooked = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>overbooked</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Slot setOverbooked( boolean theBoolean) {
|
||||
myOverbooked = new BooleanDt(theBoolean);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>comment</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getCommentElement() {
|
||||
if (myComment == null) {
|
||||
myComment = new StringDt();
|
||||
}
|
||||
return myComment;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>comment</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public String getComment() {
|
||||
return getCommentElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>comment</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Slot setComment(StringDt theValue) {
|
||||
myComment = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>comment</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Slot setComment( String theString) {
|
||||
myComment = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>lastModified</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public DateTimeDt getLastModifiedElement() {
|
||||
if (myLastModified == null) {
|
||||
myLastModified = new DateTimeDt();
|
||||
}
|
||||
return myLastModified;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>lastModified</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Date getLastModified() {
|
||||
return getLastModifiedElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>lastModified</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Slot setLastModified(DateTimeDt theValue) {
|
||||
myLastModified = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>lastModified</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Slot setLastModified( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myLastModified = new DateTimeDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>lastModified</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Slot setLastModifiedWithSecondsPrecision( Date theDate) {
|
||||
myLastModified = new DateTimeDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String getResourceName() {
|
||||
return "Slot";
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,943 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dev.resource;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.net.URI;
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.rest.gclient.*;
|
||||
|
||||
import ca.uhn.fhir.model.dev.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdministrativeGenderEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCertaintyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskCriticalityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AdverseReactionRiskTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AlertStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.AllergyIntolerance;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.AnswerFormatEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Appointment;
|
||||
import ca.uhn.fhir.model.dev.valueset.AppointmentStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dev.resource.CarePlan;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanActivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanGoalStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CarePlanStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CausalityExpectationEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionAttestationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.CompositionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConceptMapEquivalenceEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Condition;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConditionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ContactPointDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Contract;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractSubtypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTermTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ContractTypeCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DataAbsentReasonEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Device;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DiagnosticReport;
|
||||
import ca.uhn.fhir.model.dev.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentManifest;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.DocumentReference;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentReferenceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.DocumentRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.ElementDefinitionDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaAdditiveTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.EnteralFormulaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.EpisodeOfCare;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExcludeFoodModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ExposureTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.FamilyHistory;
|
||||
import ca.uhn.fhir.model.dev.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FluidConsistencyTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.FoodTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Group;
|
||||
import ca.uhn.fhir.model.dev.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dev.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dev.resource.Immunization;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ImmunizationRecommendation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRecommendationStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ImmunizationRouteCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.IssueTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ListModeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Location;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.LocationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Media;
|
||||
import ca.uhn.fhir.model.dev.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Medication;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationAdministration;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationAdministrationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationDispense;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationPrescription;
|
||||
import ca.uhn.fhir.model.dev.valueset.MedicationPrescriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.MedicationStatement;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Microarray;
|
||||
import ca.uhn.fhir.model.dev.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Namespace;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceIdentifierTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NamespaceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutrientModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.NutritionOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Observation;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationInterpretationCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationReliabilityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ObservationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationDefinition;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationKindEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.OperationOutcome;
|
||||
import ca.uhn.fhir.model.dev.valueset.OperationParameterUseEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Order;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrderOutcomeStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Organization;
|
||||
import ca.uhn.fhir.model.dev.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantRequiredEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ParticipationStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Patient;
|
||||
import ca.uhn.fhir.model.dev.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.PriorityCodesEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Procedure;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProcedureRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Profile;
|
||||
import ca.uhn.fhir.model.dev.valueset.ProvenanceEntityRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.QueryOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Questionnaire;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireAnswersStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.QuestionnaireStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.RangeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.RatioDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReactionSeverityEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ReferralRequest;
|
||||
import ca.uhn.fhir.model.dev.valueset.ReferralStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.ResponseTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulConformanceModeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.RestfulSecurityServiceEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dev.resource.Schedule;
|
||||
import ca.uhn.fhir.model.dev.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventActionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectLifecycleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectRoleEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectSensitivityEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventObjectTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventParticipantNetworkTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SecurityEventSourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.SecurityGroup;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingAnalysis;
|
||||
import ca.uhn.fhir.model.dev.resource.SequencingLab;
|
||||
import ca.uhn.fhir.model.dev.resource.Slot;
|
||||
import ca.uhn.fhir.model.dev.valueset.SlotStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionChannelTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubscriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Substance;
|
||||
import ca.uhn.fhir.model.dev.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplementTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.Supply;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyItemTypeEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SupplyStatusEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.SystemRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dev.valueset.TextureModifierEnum;
|
||||
import ca.uhn.fhir.model.dev.composite.TimingDt;
|
||||
import ca.uhn.fhir.model.dev.valueset.TypeRestfulInteractionEnum;
|
||||
import ca.uhn.fhir.model.dev.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dev.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.ExtensionDt;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dev.composite.AgeDt;
|
||||
import ca.uhn.fhir.model.dev.composite.BoundCodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dev.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.dev.composite.MoneyDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Binary;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.TimeDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>Substance</b> Resource
|
||||
* ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Profile Definition:</b>
|
||||
* <a href="http://hl7.org/fhir/profiles/Substance">http://hl7.org/fhir/profiles/Substance</a>
|
||||
* </p>
|
||||
*
|
||||
*/
|
||||
@ResourceDef(name="Substance", profile="http://hl7.org/fhir/profiles/Substance", id="substance")
|
||||
public class Substance
|
||||
extends BaseResource implements IResource {
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>type</b>
|
||||
* <p>
|
||||
* Description: <b>The type of the substance</b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Substance.type</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="type", path="Substance.type", description="The type of the substance", type="token" )
|
||||
public static final String SP_TYPE = "type";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>type</b>
|
||||
* <p>
|
||||
* Description: <b>The type of the substance</b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Substance.type</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>identifier</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Substance.instance.identifier</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="identifier", path="Substance.instance.identifier", description="", type="token" )
|
||||
public static final String SP_IDENTIFIER = "identifier";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>identifier</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Substance.instance.identifier</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>expiry</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>date</b><br/>
|
||||
* Path: <b>Substance.instance.expiry</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="expiry", path="Substance.instance.expiry", description="", type="date" )
|
||||
public static final String SP_EXPIRY = "expiry";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>expiry</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>date</b><br/>
|
||||
* Path: <b>Substance.instance.expiry</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final DateClientParam EXPIRY = new DateClientParam(SP_EXPIRY);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>quantity</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>number</b><br/>
|
||||
* Path: <b>Substance.instance.quantity</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="quantity", path="Substance.instance.quantity", description="", type="number" )
|
||||
public static final String SP_QUANTITY = "quantity";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>quantity</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>number</b><br/>
|
||||
* Path: <b>Substance.instance.quantity</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final NumberClientParam QUANTITY = new NumberClientParam(SP_QUANTITY);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>substance</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Substance.ingredient.substance</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="substance", path="Substance.ingredient.substance", description="", type="reference" )
|
||||
public static final String SP_SUBSTANCE = "substance";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>substance</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Substance.ingredient.substance</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam SUBSTANCE = new ReferenceClientParam(SP_SUBSTANCE);
|
||||
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Substance.ingredient.substance</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_INGREDIENT_SUBSTANCE = new Include("Substance.ingredient.substance");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Substance.instance.expiry</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_INSTANCE_EXPIRY = new Include("Substance.instance.expiry");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Substance.instance.identifier</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_INSTANCE_IDENTIFIER = new Include("Substance.instance.identifier");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Substance.instance.quantity</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_INSTANCE_QUANTITY = new Include("Substance.instance.quantity");
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Substance.type</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_TYPE = new Include("Substance.type");
|
||||
|
||||
|
||||
@Child(name="type", type=CodeableConceptDt.class, order=0, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="SubstanceType",
|
||||
formalDefinition="A code (or set of codes) that identify this substance"
|
||||
)
|
||||
private BoundCodeableConceptDt<SubstanceTypeEnum> myType;
|
||||
|
||||
@Child(name="description", type=StringDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="A description of the substance - its appearance, handling requirements, and other usage notes"
|
||||
)
|
||||
private StringDt myDescription;
|
||||
|
||||
@Child(name="instance", order=2, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance"
|
||||
)
|
||||
private Instance myInstance;
|
||||
|
||||
@Child(name="ingredient", order=3, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="A substance can be composed of other substances"
|
||||
)
|
||||
private java.util.List<Ingredient> myIngredient;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myDescription, myInstance, myIngredient);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, myDescription, myInstance, myIngredient);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>type</b> (SubstanceType).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A code (or set of codes) that identify this substance
|
||||
* </p>
|
||||
*/
|
||||
public BoundCodeableConceptDt<SubstanceTypeEnum> getType() {
|
||||
if (myType == null) {
|
||||
myType = new BoundCodeableConceptDt<SubstanceTypeEnum>(SubstanceTypeEnum.VALUESET_BINDER);
|
||||
}
|
||||
return myType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>type</b> (SubstanceType)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A code (or set of codes) that identify this substance
|
||||
* </p>
|
||||
*/
|
||||
public Substance setType(BoundCodeableConceptDt<SubstanceTypeEnum> theValue) {
|
||||
myType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>type</b> (SubstanceType)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A code (or set of codes) that identify this substance
|
||||
* </p>
|
||||
*/
|
||||
public Substance setType(SubstanceTypeEnum theValue) {
|
||||
getType().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>description</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A description of the substance - its appearance, handling requirements, and other usage notes
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getDescriptionElement() {
|
||||
if (myDescription == null) {
|
||||
myDescription = new StringDt();
|
||||
}
|
||||
return myDescription;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>description</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A description of the substance - its appearance, handling requirements, and other usage notes
|
||||
* </p>
|
||||
*/
|
||||
public String getDescription() {
|
||||
return getDescriptionElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>description</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A description of the substance - its appearance, handling requirements, and other usage notes
|
||||
* </p>
|
||||
*/
|
||||
public Substance setDescription(StringDt theValue) {
|
||||
myDescription = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>description</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A description of the substance - its appearance, handling requirements, and other usage notes
|
||||
* </p>
|
||||
*/
|
||||
public Substance setDescription( String theString) {
|
||||
myDescription = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>instance</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance
|
||||
* </p>
|
||||
*/
|
||||
public Instance getInstance() {
|
||||
if (myInstance == null) {
|
||||
myInstance = new Instance();
|
||||
}
|
||||
return myInstance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>instance</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance
|
||||
* </p>
|
||||
*/
|
||||
public Substance setInstance(Instance theValue) {
|
||||
myInstance = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>ingredient</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A substance can be composed of other substances
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<Ingredient> getIngredient() {
|
||||
if (myIngredient == null) {
|
||||
myIngredient = new java.util.ArrayList<Ingredient>();
|
||||
}
|
||||
return myIngredient;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>ingredient</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A substance can be composed of other substances
|
||||
* </p>
|
||||
*/
|
||||
public Substance setIngredient(java.util.List<Ingredient> theValue) {
|
||||
myIngredient = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>ingredient</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A substance can be composed of other substances
|
||||
* </p>
|
||||
*/
|
||||
public Ingredient addIngredient() {
|
||||
Ingredient newType = new Ingredient();
|
||||
getIngredient().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>ingredient</b> (),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A substance can be composed of other substances
|
||||
* </p>
|
||||
*/
|
||||
public Ingredient getIngredientFirstRep() {
|
||||
if (getIngredient().isEmpty()) {
|
||||
return addIngredient();
|
||||
}
|
||||
return getIngredient().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Block class for child element: <b>Substance.instance</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance
|
||||
* </p>
|
||||
*/
|
||||
@Block()
|
||||
public static class Instance
|
||||
extends BaseIdentifiableElement implements IResourceBlock {
|
||||
|
||||
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Identifier associated with the package/container (usually a label affixed directly)"
|
||||
)
|
||||
private IdentifierDt myIdentifier;
|
||||
|
||||
@Child(name="expiry", type=DateTimeDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry."
|
||||
)
|
||||
private DateTimeDt myExpiry;
|
||||
|
||||
@Child(name="quantity", type=QuantityDt.class, order=2, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="The amount of the substance"
|
||||
)
|
||||
private QuantityDt myQuantity;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myExpiry, myQuantity);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myExpiry, myQuantity);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>identifier</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifier associated with the package/container (usually a label affixed directly)
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt getIdentifier() {
|
||||
if (myIdentifier == null) {
|
||||
myIdentifier = new IdentifierDt();
|
||||
}
|
||||
return myIdentifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>identifier</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifier associated with the package/container (usually a label affixed directly)
|
||||
* </p>
|
||||
*/
|
||||
public Instance setIdentifier(IdentifierDt theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>expiry</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.
|
||||
* </p>
|
||||
*/
|
||||
public DateTimeDt getExpiryElement() {
|
||||
if (myExpiry == null) {
|
||||
myExpiry = new DateTimeDt();
|
||||
}
|
||||
return myExpiry;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>expiry</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.
|
||||
* </p>
|
||||
*/
|
||||
public Date getExpiry() {
|
||||
return getExpiryElement().getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>expiry</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.
|
||||
* </p>
|
||||
*/
|
||||
public Instance setExpiry(DateTimeDt theValue) {
|
||||
myExpiry = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>expiry</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.
|
||||
* </p>
|
||||
*/
|
||||
public Instance setExpiry( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myExpiry = new DateTimeDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>expiry</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.
|
||||
* </p>
|
||||
*/
|
||||
public Instance setExpiryWithSecondsPrecision( Date theDate) {
|
||||
myExpiry = new DateTimeDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>quantity</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The amount of the substance
|
||||
* </p>
|
||||
*/
|
||||
public QuantityDt getQuantity() {
|
||||
if (myQuantity == null) {
|
||||
myQuantity = new QuantityDt();
|
||||
}
|
||||
return myQuantity;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>quantity</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The amount of the substance
|
||||
* </p>
|
||||
*/
|
||||
public Instance setQuantity(QuantityDt theValue) {
|
||||
myQuantity = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Block class for child element: <b>Substance.ingredient</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A substance can be composed of other substances
|
||||
* </p>
|
||||
*/
|
||||
@Block()
|
||||
public static class Ingredient
|
||||
extends BaseIdentifiableElement implements IResourceBlock {
|
||||
|
||||
@Child(name="quantity", type=RatioDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="The amount of the ingredient in the substance - a concentration ratio"
|
||||
)
|
||||
private RatioDt myQuantity;
|
||||
|
||||
@Child(name="substance", order=1, min=1, max=1, type={
|
||||
ca.uhn.fhir.model.dev.resource.Substance.class })
|
||||
@Description(
|
||||
shortDefinition="",
|
||||
formalDefinition="Another substance that is a component of this substance"
|
||||
)
|
||||
private ResourceReferenceDt mySubstance;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myQuantity, mySubstance);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myQuantity, mySubstance);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>quantity</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The amount of the ingredient in the substance - a concentration ratio
|
||||
* </p>
|
||||
*/
|
||||
public RatioDt getQuantity() {
|
||||
if (myQuantity == null) {
|
||||
myQuantity = new RatioDt();
|
||||
}
|
||||
return myQuantity;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>quantity</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The amount of the ingredient in the substance - a concentration ratio
|
||||
* </p>
|
||||
*/
|
||||
public Ingredient setQuantity(RatioDt theValue) {
|
||||
myQuantity = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>substance</b> ().
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Another substance that is a component of this substance
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getSubstance() {
|
||||
if (mySubstance == null) {
|
||||
mySubstance = new ResourceReferenceDt();
|
||||
}
|
||||
return mySubstance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>substance</b> ()
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Another substance that is a component of this substance
|
||||
* </p>
|
||||
*/
|
||||
public Ingredient setSubstance(ResourceReferenceDt theValue) {
|
||||
mySubstance = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public String getResourceName() {
|
||||
return "Substance";
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user