More work on JSON parser, and contained resources

This commit is contained in:
jamesagnew 2014-03-16 15:09:30 -04:00
parent be7a31c4c5
commit 5088850e6b
206 changed files with 22716 additions and 1581 deletions

View File

@ -1,70 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry including="**/*.java" kind="src" path="src/test/java"/>
<classpathentry excluding="**/*.java" kind="src" path="src/test/resources"/>
<classpathentry including="**/*.java" kind="src" output="target/test-classes" path="src/test/java"/>
<classpathentry excluding="**/*.java" kind="src" output="target/test-classes" path="src/test/resources"/>
<classpathentry including="**/*.java" kind="src" path="src/main/java"/>
<classpathentry kind="src" path="src/site/example/java"/>
<classpathentry kind="var" path="M2_REPO/javax/json/javax.json-api/1.0/javax.json-api-1.0.jar" sourcepath="M2_REPO/javax/json/javax.json-api/1.0/javax.json-api-1.0-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/javax/servlet/javax.servlet-api/3.0.1/javax.servlet-api-3.0.1.jar" sourcepath="M2_REPO/javax/servlet/javax.servlet-api/3.0.1/javax.servlet-api-3.0.1-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/Users/james/.m2/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar" sourcepath="M2_REPO/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar" sourcepath="M2_REPO/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0-sources.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="var" path="M2_REPO/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar" sourcepath="M2_REPO/com/google/code/gson/gson/2.2.4/gson-2.2.4-sources.jar">
<classpathentry kind="var" path="M2_REPO/commons-beanutils/commons-beanutils/1.8.0/commons-beanutils-1.8.0.jar" sourcepath="M2_REPO/commons-beanutils/commons-beanutils/1.8.0/commons-beanutils-1.8.0-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/commons-codec/commons-codec/1.9/commons-codec-1.9.jar" sourcepath="M2_REPO/commons-codec/commons-codec/1.9/commons-codec-1.9-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/t3903uhn/.m2/repository/com/google/code/gson/gson/2.2.4/gson-2.2.4-javadoc.jar!/"/>
<attribute name="javadoc_location" value="jar:file:/Users/james/.m2/repository/commons-codec/commons-codec/1.9/commons-codec-1.9-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/codehaus/woodstox/woodstox-core-asl/4.2.0/woodstox-core-asl-4.2.0.jar" sourcepath="M2_REPO/org/codehaus/woodstox/woodstox-core-asl/4.2.0/woodstox-core-asl-4.2.0-sources.jar">
<classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar" sourcepath="M2_REPO/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/t3903uhn/.m2/repository/org/codehaus/woodstox/woodstox-core-asl/4.2.0/woodstox-core-asl-4.2.0-javadoc.jar!/"/>
<attribute name="javadoc_location" value="jar:file:/Users/james/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar" sourcepath="M2_REPO/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/commons-io/commons-io/2.4/commons-io-2.4.jar" sourcepath="M2_REPO/commons-io/commons-io/2.4/commons-io-2.4-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/Users/james/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/codehaus/woodstox/stax2-api/3.1.1/stax2-api-3.1.1.jar" sourcepath="M2_REPO/org/codehaus/woodstox/stax2-api/3.1.1/stax2-api-3.1.1-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/apache/commons/commons-lang3/3.2.1/commons-lang3-3.2.1.jar" sourcepath="M2_REPO/org/apache/commons/commons-lang3/3.2.1/commons-lang3-3.2.1-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/t3903uhn/.m2/repository/org/apache/commons/commons-lang3/3.2.1/commons-lang3-3.2.1-javadoc.jar!/"/>
<attribute name="javadoc_location" value="jar:file:/Users/james/.m2/repository/org/apache/commons/commons-lang3/3.2.1/commons-lang3-3.2.1-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/commons-codec/commons-codec/1.9/commons-codec-1.9.jar" sourcepath="M2_REPO/commons-codec/commons-codec/1.9/commons-codec-1.9-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.7.6/slf4j-api-1.7.6.jar" sourcepath="M2_REPO/org/slf4j/slf4j-api/1.7.6/slf4j-api-1.7.6-sources.jar">
<classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar" sourcepath="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/net/sf/ezmorph/ezmorph/1.0.6/ezmorph-1.0.6.jar" sourcepath="M2_REPO/net/sf/ezmorph/ezmorph/1.0.6/ezmorph-1.0.6-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar" sourcepath="M2_REPO/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/t3903uhn/.m2/repository/org/slf4j/slf4j-api/1.7.6/slf4j-api-1.7.6-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/ch/qos/logback/logback-classic/1.1.1/logback-classic-1.1.1.jar" sourcepath="M2_REPO/ch/qos/logback/logback-classic/1.1.1/logback-classic-1.1.1-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/t3903uhn/.m2/repository/ch/qos/logback/logback-classic/1.1.1/logback-classic-1.1.1-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/ch/qos/logback/logback-core/1.1.1/logback-core-1.1.1.jar" sourcepath="M2_REPO/ch/qos/logback/logback-core/1.1.1/logback-core-1.1.1-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/t3903uhn/.m2/repository/ch/qos/logback/logback-core/1.1.1/logback-core-1.1.1-javadoc.jar!/"/>
<attribute name="javadoc_location" value="jar:file:/Users/james/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar" sourcepath="M2_REPO/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar" sourcepath="M2_REPO/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar" sourcepath="M2_REPO/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/junit/junit/4.11/junit-4.11.jar" sourcepath="M2_REPO/junit/junit/4.11/junit-4.11-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/t3903uhn/.m2/repository/junit/junit/4.11/junit-4.11-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar" sourcepath="M2_REPO/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/home/t3903uhn/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/commons-io/commons-io/2.4/commons-io-2.4.jar" sourcepath="M2_REPO/commons-io/commons-io/2.4/commons-io-2.4-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/xmlunit/xmlunit/1.5/xmlunit-1.5.jar" sourcepath="M2_REPO/xmlunit/xmlunit/1.5/xmlunit-1.5-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/jetty-servlets/9.1.1.v20140108/jetty-servlets-9.1.1.v20140108.jar" sourcepath="M2_REPO/org/eclipse/jetty/jetty-servlets/9.1.1.v20140108/jetty-servlets-9.1.1.v20140108-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/glassfish/javax.json/1.0.4/javax.json-1.0.4.jar" sourcepath="M2_REPO/org/glassfish/javax.json/1.0.4/javax.json-1.0.4-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/jetty-continuation/9.1.1.v20140108/jetty-continuation-9.1.1.v20140108.jar" sourcepath="M2_REPO/org/eclipse/jetty/jetty-continuation/9.1.1.v20140108/jetty-continuation-9.1.1.v20140108-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/jetty-http/9.1.1.v20140108/jetty-http-9.1.1.v20140108.jar" sourcepath="M2_REPO/org/eclipse/jetty/jetty-http/9.1.1.v20140108/jetty-http-9.1.1.v20140108-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/jetty-util/9.1.1.v20140108/jetty-util-9.1.1.v20140108.jar" sourcepath="M2_REPO/org/eclipse/jetty/jetty-util/9.1.1.v20140108/jetty-util-9.1.1.v20140108-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/jetty-io/9.1.1.v20140108/jetty-io-9.1.1.v20140108.jar" sourcepath="M2_REPO/org/eclipse/jetty/jetty-io/9.1.1.v20140108/jetty-io-9.1.1.v20140108-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/jetty-servlet/9.1.1.v20140108/jetty-servlet-9.1.1.v20140108.jar" sourcepath="M2_REPO/org/eclipse/jetty/jetty-servlet/9.1.1.v20140108/jetty-servlet-9.1.1.v20140108-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/jetty-security/9.1.1.v20140108/jetty-security-9.1.1.v20140108.jar" sourcepath="M2_REPO/org/eclipse/jetty/jetty-security/9.1.1.v20140108/jetty-security-9.1.1.v20140108-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/jetty-server/9.1.1.v20140108/jetty-server-9.1.1.v20140108.jar" sourcepath="M2_REPO/org/eclipse/jetty/jetty-server/9.1.1.v20140108/jetty-server-9.1.1.v20140108-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/mockito/mockito-all/1.9.5/mockito-all-1.9.5.jar" sourcepath="M2_REPO/org/mockito/mockito-all/1.9.5/mockito-all-1.9.5-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1.jar" sourcepath="M2_REPO/commons-httpclient/commons-httpclient/3.1/commons-httpclient-3.1-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/directory-naming/naming-java/0.8/naming-java-0.8.jar"/>
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/jetty-servlet/9.1.1.v20140108/jetty-servlet-9.1.1.v20140108.jar" sourcepath="M2_REPO/org/eclipse/jetty/jetty-servlet/9.1.1.v20140108/jetty-servlet-9.1.1.v20140108-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/jetty-servlets/9.1.1.v20140108/jetty-servlets-9.1.1.v20140108.jar" sourcepath="M2_REPO/org/eclipse/jetty/jetty-servlets/9.1.1.v20140108/jetty-servlets-9.1.1.v20140108-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/eclipse/jetty/jetty-util/9.1.1.v20140108/jetty-util-9.1.1.v20140108.jar" sourcepath="M2_REPO/org/eclipse/jetty/jetty-util/9.1.1.v20140108/jetty-util-9.1.1.v20140108-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/net/sf/json-lib/json-lib/2.4/json-lib-2.4-jdk15.jar" sourcepath="M2_REPO/net/sf/json-lib/json-lib/2.4/json-lib-2.4-jdk15-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/net/sf/json-lib/json-lib/2.4/json-lib-2.4-jdk15-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/junit/junit/4.11/junit-4.11.jar" sourcepath="M2_REPO/junit/junit/4.11/junit-4.11-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/Users/james/.m2/repository/junit/junit/4.11/junit-4.11-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/ch/qos/logback/logback-classic/1.1.1/logback-classic-1.1.1.jar" sourcepath="M2_REPO/ch/qos/logback/logback-classic/1.1.1/logback-classic-1.1.1-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/Users/james/.m2/repository/ch/qos/logback/logback-classic/1.1.1/logback-classic-1.1.1-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/ch/qos/logback/logback-core/1.1.1/logback-core-1.1.1.jar" sourcepath="M2_REPO/ch/qos/logback/logback-core/1.1.1/logback-core-1.1.1-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/Users/james/.m2/repository/ch/qos/logback/logback-core/1.1.1/logback-core-1.1.1-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/mockito/mockito-all/1.9.5/mockito-all-1.9.5.jar" sourcepath="M2_REPO/org/mockito/mockito-all/1.9.5/mockito-all-1.9.5-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/Users/james/.m2/repository/org/mockito/mockito-all/1.9.5/mockito-all-1.9.5-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/directory-naming/naming-core/0.8/naming-core-0.8.jar"/>
<classpathentry kind="output" path="bin"/>
<classpathentry kind="var" path="M2_REPO/directory-naming/naming-java/0.8/naming-java-0.8.jar"/>
<classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.7.6/slf4j-api-1.7.6.jar" sourcepath="M2_REPO/org/slf4j/slf4j-api/1.7.6/slf4j-api-1.7.6-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/Users/james/.m2/repository/org/slf4j/slf4j-api/1.7.6/slf4j-api-1.7.6-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/org/codehaus/woodstox/stax2-api/3.1.1/stax2-api-3.1.1.jar" sourcepath="M2_REPO/org/codehaus/woodstox/stax2-api/3.1.1/stax2-api-3.1.1-sources.jar"/>
<classpathentry kind="var" path="M2_REPO/org/codehaus/woodstox/woodstox-core-asl/4.2.0/woodstox-core-asl-4.2.0.jar" sourcepath="M2_REPO/org/codehaus/woodstox/woodstox-core-asl/4.2.0/woodstox-core-asl-4.2.0-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/Users/james/.m2/repository/org/codehaus/woodstox/woodstox-core-asl/4.2.0/woodstox-core-asl-4.2.0-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="var" path="M2_REPO/xmlunit/xmlunit/1.5/xmlunit-1.5.jar" sourcepath="M2_REPO/xmlunit/xmlunit/1.5/xmlunit-1.5-sources.jar">
<attributes>
<attribute name="javadoc_location" value="jar:file:/Users/james/.m2/repository/xmlunit/xmlunit/1.5/xmlunit-1.5-javadoc.jar!/"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>

View File

@ -1,4 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>hapi-fhir-base</name>
<comment>NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse.</comment>

View File

@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8

View File

@ -40,4 +40,6 @@ Issues:
* CarePlan.Activity has a type of "xmlIdRef" which is a weird datatype. The example here:
http://www.hl7.org/implement/standards/fhir/careplan-example-integrated.xml.html
seems to use an extension to model that element instead of the goal type too.
seems to use an extension to model that element instead of the goal type too.
* Would like a standardized (but optional) HTTP parameter for pretty-printing. Suggest: _pretty=true

View File

@ -18,12 +18,24 @@
<dependencies>
<!-- JSON -->
<!--
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.4</version>
</dependency>
-->
<dependency>
<groupId>javax.json</groupId>
<artifactId>javax.json-api</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.json</artifactId>
<version>1.0.4</version>
</dependency>
<!-- XML -->
<dependency>
<groupId>org.codehaus.woodstox</groupId>
@ -80,7 +92,7 @@
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
@ -115,6 +127,20 @@
<version>1.9.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.4</version>
<classifier>jdk15</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.4</version>
<classifier>jdk15-sources</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
@ -196,6 +222,10 @@
</plugins>
</reporting>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
</plugins>

View File

@ -58,8 +58,8 @@ public abstract class BaseRuntimeDeclaredChildDefinition extends BaseRuntimeChil
final Class<?> targetReturnType = myField.getType();
try {
String elementName = myElementName;
if ("Class".equals(elementName)) {
elementName = "ClassElement"; // because getClass() is reserved
if ("class".equals(elementName.toLowerCase())) {
elementName = "classElement"; // because getClass() is reserved
}
final Method accessor = BeanUtils.findAccessor(declaringClass, targetReturnType, elementName);
final Method mutator = BeanUtils.findMutator(declaringClass, targetReturnType, elementName);

View File

@ -41,8 +41,8 @@ public class FhirContext {
return myIdToResourceDefinition.get(theId);
}
public Map<Class<? extends IElement>, BaseRuntimeElementDefinition<?>> getClassToElementDefinition() {
return myClassToElementDefinition;
public BaseRuntimeElementDefinition<?> getElementDefinition(Class<? extends IElement> theElementType) {
return myClassToElementDefinition.get(theElementType);
}
public RuntimeResourceDefinition getResourceDefinition(Class<? extends IResource> theResourceType) {

View File

@ -0,0 +1,7 @@
package ca.uhn.fhir.context;
public interface IRuntimeDatatypeDefinition {
boolean isSpecialization();
}

View File

@ -17,6 +17,7 @@ import java.util.Set;
import java.util.TreeMap;
import java.util.TreeSet;
import ca.uhn.fhir.model.api.BaseResourceReference;
import ca.uhn.fhir.model.api.CodeableConceptElement;
import ca.uhn.fhir.model.api.ICodeEnum;
import ca.uhn.fhir.model.api.ICompositeDatatype;
@ -27,7 +28,6 @@ import ca.uhn.fhir.model.api.IPrimitiveDatatype;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.api.IResourceBlock;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
import ca.uhn.fhir.model.api.BaseResourceReference;
import ca.uhn.fhir.model.api.annotation.Block;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.CodeTableDef;
@ -42,6 +42,7 @@ import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.DateDt;
import ca.uhn.fhir.model.primitive.ICodedDatatype;
import ca.uhn.fhir.model.primitive.XhtmlDt;
import ca.uhn.fhir.util.ReflectionUtil;
class ModelScanner {
private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(ModelScanner.class);
@ -92,7 +93,7 @@ class ModelScanner {
private Class<?> determineElementType(Field next) {
Class<?> nextElementType = next.getType();
if (List.class.equals(nextElementType)) {
nextElementType = getGenericCollectionTypeOfField(next);
nextElementType = ReflectionUtil.getGenericCollectionTypeOfField(next);
} else if (Collection.class.isAssignableFrom(nextElementType)) {
throw new ConfigurationException("Field '" + next.getName() + "' in type '" + next.getClass().getCanonicalName() + "' is a Collection - Only java.util.List curently supported");
}
@ -231,12 +232,7 @@ class ModelScanner {
private void scanCompositeDatatype(Class<? extends ICompositeDatatype> theClass, DatatypeDef theDatatypeDefinition) {
ourLog.debug("Scanning resource class: {}", theClass.getName());
String resourceName = theDatatypeDefinition.name();
if (isBlank(resourceName)) {
throw new ConfigurationException("Resource type @" + ResourceDef.class.getSimpleName() + " annotation contains no resource name: " + theClass.getCanonicalName());
}
RuntimeCompositeDatatypeDefinition resourceDef = new RuntimeCompositeDatatypeDefinition(resourceName, theClass);
RuntimeCompositeDatatypeDefinition resourceDef = new RuntimeCompositeDatatypeDefinition(theDatatypeDefinition, theClass);
myClassToElementDefinitions.put(theClass, resourceDef);
scanCompositeElementForChildren(theClass, resourceDef, null);
}
@ -368,7 +364,7 @@ class ModelScanner {
List<Class<? extends IResource>> refTypesList = new ArrayList<Class<? extends IResource>>();
for (Class<? extends IElement> nextType : childAnnotation.type()) {
if (IResource.class.isAssignableFrom(nextType) == false) {
throw new ConfigurationException("Field '" + next.getName() + "' is of type " + ResourceReferenceDt.class + " but contains a non-resource type: " + nextType.getCanonicalName());
throw new ConfigurationException("Field '" + next.getName() + "' in class '" + next.getDeclaringClass().getSimpleName() + "' is of type " + ResourceReferenceDt.class + " but contains a non-resource type: " + nextType.getCanonicalName());
}
refTypesList.add((Class<? extends IResource>) nextType);
addScanAlso(nextType);
@ -444,7 +440,7 @@ class ModelScanner {
Class<XhtmlDt> clazz = (Class<XhtmlDt>) theClass;
resourceDef = new RuntimePrimitiveDatatypeNarrativeDefinition(resourceName, clazz);
} else {
resourceDef = new RuntimePrimitiveDatatypeDefinition(resourceName, theClass);
resourceDef = new RuntimePrimitiveDatatypeDefinition(theDatatypeDefinition, theClass);
}
myClassToElementDefinitions.put(theClass, resourceDef);
@ -506,26 +502,5 @@ class ModelScanner {
return type;
}
private static Class<?> getGenericCollectionTypeOfField(Field next) {
// Type genericSuperclass = next.getType().getGenericSuperclass();
Class<?> type;
// if (genericSuperclass == null) {
ParameterizedType collectionType = (ParameterizedType) next.getGenericType();
Type firstArg = collectionType.getActualTypeArguments()[0];
if (ParameterizedType.class.isAssignableFrom(firstArg.getClass())) {
ParameterizedType pt = ((ParameterizedType) firstArg);
type = (Class<?>) pt.getRawType();
// firstArg = pt.getActualTypeArguments()[0];
// type = (Class<?>) firstArg;
} else {
type = (Class<?>) firstArg;
}
// }else {
// Type[] actualTypeArguments = ((ParameterizedType)
// genericSuperclass).getActualTypeArguments();
// type = (Class<?>) actualTypeArguments[0];
// }
return type;
}
}

View File

@ -5,11 +5,12 @@ import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import ca.uhn.fhir.model.api.BaseResourceReference;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.api.BaseResourceReference;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
@ -22,7 +23,7 @@ public class RuntimeChildResourceDefinition extends BaseRuntimeDeclaredChildDefi
public RuntimeChildResourceDefinition(Field theField, String theElementName, Child theChildAnnotation, Description theDescriptionAnnotation, List<Class<? extends IResource>> theResourceTypes) {
super(theField, theChildAnnotation, theDescriptionAnnotation, theElementName);
myResourceTypes = theResourceTypes;
if (theResourceTypes == null || theResourceTypes.isEmpty()) {
throw new ConfigurationException("Field '" + theField.getName() + "' on type '" + theField.getDeclaringClass().getCanonicalName() + "' has no resource types noted");
}
@ -58,16 +59,28 @@ public class RuntimeChildResourceDefinition extends BaseRuntimeDeclaredChildDefi
void sealAndInitialize(Map<Class<? extends IElement>, BaseRuntimeElementDefinition<?>> theClassToElementDefinitions) {
myRuntimeDef = new RuntimeResourceReferenceDefinition(getElementName(), myResourceTypes);
myRuntimeDef.sealAndInitialize(theClassToElementDefinitions);
myValidChildNames = new HashSet<String>();
myValidChildNames.add(getElementName());
myValidChildNames.add(getElementName() + "Resource");
for (Class<? extends IResource> next : myResourceTypes) {
RuntimeResourceDefinition nextDef = (RuntimeResourceDefinition) theClassToElementDefinitions.get(next);
myValidChildNames.add(getElementName() + nextDef.getName());
if (next == IResource.class) {
for (Entry<Class<? extends IElement>, BaseRuntimeElementDefinition<?>> nextEntry : theClassToElementDefinitions.entrySet()) {
if (IResource.class.isAssignableFrom(nextEntry.getKey())) {
RuntimeResourceDefinition nextDef = (RuntimeResourceDefinition) nextEntry.getValue();
myValidChildNames.add(getElementName() + nextDef.getName());
}
}
} else {
RuntimeResourceDefinition nextDef = (RuntimeResourceDefinition) theClassToElementDefinitions.get(next);
if (nextDef == null) {
throw new ConfigurationException("Can't find child of type: " + next.getCanonicalName() + " in " + getField().getDeclaringClass());
}
myValidChildNames.add(getElementName() + nextDef.getName());
}
}
myValidChildNames = Collections.unmodifiableSet(myValidChildNames);
}
}

View File

@ -8,10 +8,10 @@ import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import ca.uhn.fhir.model.api.BaseResourceReference;
import ca.uhn.fhir.model.api.IDatatype;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.api.BaseResourceReference;
import ca.uhn.fhir.model.api.UndeclaredExtension;
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
@ -52,9 +52,11 @@ public class RuntimeChildUndeclaredExtensionDefinition extends BaseRuntimeChildD
Map<String, BaseRuntimeElementDefinition<?>> datatypeAttributeNameToDefinition=new HashMap<String, BaseRuntimeElementDefinition<?>>();
for (BaseRuntimeElementDefinition<?> next : theClassToElementDefinitions.values()) {
if (next instanceof RuntimePrimitiveDatatypeDefinition || next instanceof RuntimeCompositeDatatypeDefinition) {
String attrName = "value" + next.getName().substring(0, 1).toUpperCase() + next.getName().substring(1);
datatypeAttributeNameToDefinition.put(attrName, next);
if (next instanceof IRuntimeDatatypeDefinition) {
if (!((IRuntimeDatatypeDefinition) next).isSpecialization()) {
String attrName = "value" + next.getName().substring(0, 1).toUpperCase() + next.getName().substring(1);
datatypeAttributeNameToDefinition.put(attrName, next);
}
}
}
@ -71,7 +73,7 @@ public class RuntimeChildUndeclaredExtensionDefinition extends BaseRuntimeChildD
}
// Resource Reference
myDatatypeToAttributeName.put(BaseResourceReference.class, "valueReference");
myDatatypeToAttributeName.put(ResourceReferenceDt.class, "valueReference");
List<Class<? extends IResource>> types = new ArrayList<Class<? extends IResource>>();
types.add(IResource.class);
RuntimeResourceReferenceDefinition def = new RuntimeResourceReferenceDefinition("valueResource", types);

View File

@ -1,12 +1,28 @@
package ca.uhn.fhir.context;
import ca.uhn.fhir.context.BaseRuntimeElementDefinition.ChildTypeEnum;
import static org.apache.commons.lang3.StringUtils.*;
import ca.uhn.fhir.model.api.ICompositeDatatype;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
public class RuntimeCompositeDatatypeDefinition extends BaseRuntimeElementCompositeDefinition<ICompositeDatatype> {
public class RuntimeCompositeDatatypeDefinition extends BaseRuntimeElementCompositeDefinition<ICompositeDatatype> implements IRuntimeDatatypeDefinition {
public RuntimeCompositeDatatypeDefinition(String theName, Class<? extends ICompositeDatatype> theImplementingClass) {
super(theName, theImplementingClass);
private boolean mySpecialization;
public RuntimeCompositeDatatypeDefinition(DatatypeDef theDef, Class<? extends ICompositeDatatype> theImplementingClass) {
super(theDef.name(), theImplementingClass);
String resourceName = theDef.name();
if (isBlank(resourceName)) {
throw new ConfigurationException("Resource type @" + ResourceDef.class.getSimpleName() + " annotation contains no resource name: " + theImplementingClass.getCanonicalName());
}
mySpecialization = theDef.isSpecialization();
}
public boolean isSpecialization() {
return mySpecialization;
}
@Override

View File

@ -1,14 +1,32 @@
package ca.uhn.fhir.context;
import static org.apache.commons.lang3.StringUtils.*;
import java.util.Map;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.IPrimitiveDatatype;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
public class RuntimePrimitiveDatatypeDefinition extends BaseRuntimeElementDefinition<IPrimitiveDatatype<?>>{
public class RuntimePrimitiveDatatypeDefinition extends BaseRuntimeElementDefinition<IPrimitiveDatatype<?>> implements IRuntimeDatatypeDefinition {
public RuntimePrimitiveDatatypeDefinition(String theName, Class<? extends IPrimitiveDatatype<?>> theImplementingClass) {
super(theName, theImplementingClass);
private boolean mySpecialization;
public RuntimePrimitiveDatatypeDefinition(DatatypeDef theDef, Class<? extends IPrimitiveDatatype<?>> theImplementingClass) {
super(theDef.name(), theImplementingClass);
String resourceName = theDef.name();
if (isBlank(resourceName)) {
throw new ConfigurationException("Resource type @" + ResourceDef.class.getSimpleName() + " annotation contains no resource name: " + theImplementingClass.getCanonicalName());
}
mySpecialization = theDef.isSpecialization();
}
@Override
public boolean isSpecialization() {
return mySpecialization;
}
@Override

View File

@ -1,6 +1,5 @@
package ca.uhn.fhir.context;
import ca.uhn.fhir.context.BaseRuntimeElementDefinition.ChildTypeEnum;
import ca.uhn.fhir.model.api.IResourceBlock;
public class RuntimeResourceBlockDefinition extends BaseRuntimeElementCompositeDefinition<IResourceBlock> {

View File

@ -4,9 +4,9 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import ca.uhn.fhir.model.api.BaseResourceReference;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.api.BaseResourceReference;
public class RuntimeResourceReferenceDefinition extends BaseRuntimeElementDefinition<BaseResourceReference> {

View File

@ -3,7 +3,7 @@ package ca.uhn.fhir.model.api;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.util.ElementUtil;
public class BaseBundle implements IElement {
public class BaseBundle extends BaseElement implements IElement {
private StringDt myAuthorName;
private StringDt myAuthorUri;

View File

@ -24,10 +24,10 @@ public abstract class BaseElement implements IElement, ISupportsUndeclaredExtens
return Collections.unmodifiableList(retVal);
}
// @Override
// public IdDt getId() {
// return myId;
// }
@Override
public IdDt getId() {
return myId;
}
@Override
public List<UndeclaredExtension> getUndeclaredExtensions() {
@ -67,9 +67,9 @@ public abstract class BaseElement implements IElement, ISupportsUndeclaredExtens
return true;
}
// @Override
// public void setId(IdDt theId) {
// myId = theId;
// }
@Override
public void setId(IdDt theId) {
myId = theId;
}
}

View File

@ -16,8 +16,8 @@ import ca.uhn.fhir.rest.client.api.IRestfulClient;
public abstract class BaseResourceReference extends BaseElement {
private IResource myResource;
private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(BaseResourceReference.class);
private IResource myResource;
/**
* Gets the value(s) for <b>reference</b> (Relative, internal or absolute URL reference). creating it if it does not exist. Will not return <code>null</code>.
@ -30,6 +30,23 @@ public abstract class BaseResourceReference extends BaseElement {
*/
public abstract StringDt getReference();
/**
* Gets the actual loaded and parsed resource instance, <b>if it is already present</b>. This
* method will return the resource instance only if it has previously been loaded using
* {@link #loadResource(IRestfulClient)} or it was contained within the resource containing
* this resource.
*
* @see See {@link #loadResource(IRestfulClient)}
* @see See the FHIR specification section on <a href="http://www.hl7.org/implement/standards/fhir/references.html#id>contained resources</a>
*/
public IResource getResource() {
return myResource;
}
public String getResourceUrl() {
return getReference().getValue();
}
/**
* Returns the referenced resource, fetching it <b>if it has not already been loaded</b>. This method invokes the HTTP client to retrieve the resource unless it has already been loaded, or was a
* contained resource in which case it is simply returned.
@ -62,8 +79,8 @@ public abstract class BaseResourceReference extends BaseElement {
return myResource;
}
public String getResourceUrl() {
return getReference().getValue();
public void setResource(IResource theResource) {
myResource = theResource;
}
}

View File

@ -16,7 +16,7 @@ public class Bundle extends BaseBundle implements IElement {
*****************************************************/
//@formatter:on
private List<BundleEntry> myEntries;
private StringDt myId;
private StringDt myBundleId;
private StringDt myLinkBase;
private StringDt myLinkFirst;
private StringDt myLinkLast;
@ -32,7 +32,7 @@ public class Bundle extends BaseBundle implements IElement {
public boolean isEmpty() {
//@formatter:off
return super.isEmpty() &&
ElementUtil.isEmpty(myId, myLinkBase, myLinkFirst, myLinkLast, myLinkNext, myLinkPrevious, myLinkSelf, myPublished, myTitle, myTotalResults) &&
ElementUtil.isEmpty(myBundleId, myLinkBase, myLinkFirst, myLinkLast, myLinkNext, myLinkPrevious, myLinkSelf, myPublished, myTitle, myTotalResults) &&
ElementUtil.isEmpty(myEntries);
//@formatter:on
}
@ -53,11 +53,11 @@ public class Bundle extends BaseBundle implements IElement {
return myEntries;
}
public StringDt getId() {
if (myId == null) {
myId = new StringDt();
public StringDt getBundleId() {
if (myBundleId == null) {
myBundleId = new StringDt();
}
return myId;
return myBundleId;
}
public StringDt getLinkBase() {

View File

@ -2,7 +2,7 @@ package ca.uhn.fhir.model.api;
import org.apache.commons.lang3.StringUtils;
public class BundleCategory implements IElement {
public class BundleCategory extends BaseElement implements IElement {
private String myLabel;
private String myScheme;

View File

@ -4,7 +4,6 @@ import java.util.ArrayList;
import java.util.List;
import ca.uhn.fhir.model.primitive.InstantDt;
import ca.uhn.fhir.model.primitive.IntegerDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.XhtmlDt;
import ca.uhn.fhir.util.ElementUtil;
@ -16,7 +15,7 @@ public class BundleEntry extends BaseBundle {
* NB: add any new fields to the isEmpty() method!!!
*****************************************************/
//@formatter:on
private StringDt myId;
private StringDt myEntryId;
private StringDt myLinkSelf;
private InstantDt myPublished;
private IResource myResource;
@ -29,16 +28,16 @@ public class BundleEntry extends BaseBundle {
public boolean isEmpty() {
//@formatter:off
return super.isEmpty() &&
ElementUtil.isEmpty(myId, myLinkSelf, myPublished, myResource, myTitle, myUpdated, mySummary) &&
ElementUtil.isEmpty(myEntryId, myLinkSelf, myPublished, myResource, myTitle, myUpdated, mySummary) &&
ElementUtil.isEmpty(myCategories);
//@formatter:on
}
public StringDt getId() {
if (myId == null) {
myId = new StringDt();
public StringDt getEntryId() {
if (myEntryId == null) {
myEntryId = new StringDt();
}
return myId;
return myEntryId;
}
public StringDt getLinkSelf() {

View File

@ -2,4 +2,9 @@ package ca.uhn.fhir.model.api;
public interface ICompositeElement extends IElement {
/**
* Returns a list containing all child elements
*/
public java.util.List<IElement> getAllPopulatedChildElements();
}

View File

@ -2,12 +2,13 @@ package ca.uhn.fhir.model.api;
import ca.uhn.fhir.model.primitive.IdDt;
public interface IElement {
boolean isEmpty();
// public void setId(IdDt theId);
//
// public IdDt getId();
public void setId(IdDt theId);
public IdDt getId();
}

View File

@ -0,0 +1,28 @@
package ca.uhn.fhir.model.api;
import java.util.List;
public interface IQueryParameterOr {
/**
* Sets the value of this type using the <b>token</b> format. This
* format is used in HTTP queries as a parameter format.
*
* @see See FHIR specification
* <a href="http://www.hl7.org/implement/standards/fhir/search.html#ptypes">2.2.2 Search Parameter Types</a>
* for information on the <b>token</b> format
*/
public void setValuesAsQueryTokens(List<String> theParameters);
/**
* Returns the value of this type using the <b>token</b> format. This
* format is used in HTTP queries as a parameter format.
*
* @see See FHIR specification
* <a href="http://www.hl7.org/implement/standards/fhir/search.html#ptypes">2.2.2 Search Parameter Types</a>
* for information on the <b>token</b> format
*/
public List<String> getValuesAsQueryTokens();
}

View File

@ -1,7 +1,5 @@
package ca.uhn.fhir.model.api;
import java.util.HashMap;
import java.util.Map;
public abstract class ValueSetRegistry {

View File

@ -5,10 +5,25 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.CodeDt;
@Retention(RetentionPolicy.RUNTIME)
@Target(value= {ElementType.TYPE})
public @interface DatatypeDef {
/**
* The defined name of this datatype
*/
String name();
/**
* Set this to true (default is false) for any types that are
* really only a specialization of another type. For example,
* {@link BoundCodeDt} is really just a specific type of
* {@link CodeDt} and not a separate datatype, so it should
* have this set to true.
*/
boolean isSpecialization() default false;
}

View File

@ -16,12 +16,16 @@
package ca.uhn.fhir.model.dstu.composite;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import ca.uhn.fhir.model.dstu.resource.*;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.ICompositeDatatype;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.StringDt;
/**
* HAPI/FHIR <b>Address</b> Datatype
@ -61,7 +65,7 @@ public class AddressDt
shortDefinition="Street name, number, direction & P.O. Box etc",
formalDefinition="This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information"
)
private List<StringDt> myLine;
private java.util.List<StringDt> myLine;
@Child(name="city", type=StringDt.class, order=3, min=0, max=1)
@Description(
@ -103,6 +107,11 @@ public class AddressDt
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myUse, myText, myLine, myCity, myState, myZip, myCountry, myPeriod);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myUse, myText, myLine, myCity, myState, myZip, myCountry, myPeriod);
}
/**
* Gets the value(s) for <b>use</b> (home | work | temp | old - purpose of this address).
@ -200,9 +209,9 @@ public class AddressDt
* This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information
* </p>
*/
public List<StringDt> getLine() {
public java.util.List<StringDt> getLine() {
if (myLine == null) {
myLine = new ArrayList<StringDt>();
myLine = new java.util.ArrayList<StringDt>();
}
return myLine;
}
@ -215,7 +224,7 @@ public class AddressDt
* This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information
* </p>
*/
public void setLine(List<StringDt> theValue) {
public void setLine(java.util.List<StringDt> theValue) {
myLine = theValue;
}
@ -243,7 +252,7 @@ public class AddressDt
*/
public void addLine( String theString) {
if (myLine == null) {
myLine = new ArrayList<StringDt>();
myLine = new java.util.ArrayList<StringDt>();
}
myLine.add(new StringDt(theString));
}

View File

@ -16,12 +16,17 @@
package ca.uhn.fhir.model.dstu.composite;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import ca.uhn.fhir.model.dstu.resource.*;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.ICompositeDatatype;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.IntegerDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.UriDt;
/**
* HAPI/FHIR <b>Attachment</b> Datatype
@ -96,6 +101,11 @@ public class AttachmentDt
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myContentType, myLanguage, myData, myUrl, mySize, myHash, myTitle);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myContentType, myLanguage, myData, myUrl, mySize, myHash, myTitle);
}
/**
* Gets the value(s) for <b>contentType</b> (Mime type of the content, with charset etc.).

View File

@ -16,12 +16,13 @@
package ca.uhn.fhir.model.dstu.composite;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import ca.uhn.fhir.model.dstu.resource.*;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.ICompositeDatatype;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.primitive.StringDt;
/**
* HAPI/FHIR <b>CodeableConcept</b> Datatype
@ -47,7 +48,7 @@ public class CodeableConceptDt
shortDefinition="Code defined by a terminology system",
formalDefinition="A reference to a code defined by a terminology system"
)
private List<CodingDt> myCoding;
private java.util.List<CodingDt> myCoding;
@Child(name="text", type=StringDt.class, order=1, min=0, max=1)
@Description(
@ -61,6 +62,11 @@ public class CodeableConceptDt
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCoding, myText);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myCoding, myText);
}
/**
* Gets the value(s) for <b>coding</b> (Code defined by a terminology system).
@ -72,9 +78,9 @@ public class CodeableConceptDt
* A reference to a code defined by a terminology system
* </p>
*/
public List<CodingDt> getCoding() {
public java.util.List<CodingDt> getCoding() {
if (myCoding == null) {
myCoding = new ArrayList<CodingDt>();
myCoding = new java.util.ArrayList<CodingDt>();
}
return myCoding;
}
@ -87,7 +93,7 @@ public class CodeableConceptDt
* A reference to a code defined by a terminology system
* </p>
*/
public void setCoding(List<CodingDt> theValue) {
public void setCoding(java.util.List<CodingDt> theValue) {
myCoding = theValue;
}

View File

@ -16,12 +16,17 @@
package ca.uhn.fhir.model.dstu.composite;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import ca.uhn.fhir.model.dstu.resource.*;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.ICompositeDatatype;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.IQueryParameterType;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.primitive.BooleanDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.UriDt;
/**
* HAPI/FHIR <b>Coding</b> Datatype
@ -39,8 +44,22 @@ import ca.uhn.fhir.model.dstu.resource.*;
*/
@DatatypeDef(name="Coding")
public class CodingDt
extends BaseElement implements ICompositeDatatype {
extends BaseElement implements ICompositeDatatype , IQueryParameterType {
/**
* Creates a new Coding
*/
public CodingDt() {
// nothing
}
/**
* Creates a new Coding with the given system and code
*/
public CodingDt(String theSystem, String theCode) {
setSystem(theSystem);
setCode(theCode);
}
@Child(name="system", type=UriDt.class, order=0, min=0, max=1)
@Description(
@ -78,7 +97,7 @@ public class CodingDt
private BooleanDt myPrimary;
@Child(name="valueSet", order=5, min=0, max=1, type={
ValueSet.class,
ca.uhn.fhir.model.dstu.resource.ValueSet.class,
})
@Description(
shortDefinition="Set this coding was chosen from",
@ -91,6 +110,11 @@ public class CodingDt
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myVersion, myCode, myDisplay, myPrimary, myValueSet);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( mySystem, myVersion, myCode, myDisplay, myPrimary, myValueSet);
}
/**
* Gets the value(s) for <b>system</b> (Identity of the terminology system).
@ -339,6 +363,43 @@ public class CodingDt
/**
* Returns true if <code>this</code> Coding has the same {@link CodingDt#getCode() Code}
* and {@link CodingDt#getSystem() system} (as compared by simple equals comparison).
* Does not compare other Codes (e.g. {@link CodingDt#getUse() use}) or any extensions.
*/
public boolean matchesSystemAndCode(CodingDt theCoding) {
if (theCoding == null) {
return false;
}
return getCode().equals(theCoding.getCode()) && getSystem().equals(theCoding.getSystem());
}
/**
* {@inheritDoc}
*/
@Override
public String getValueAsQueryToken() {
if (org.apache.commons.lang3.StringUtils.isNotBlank(getSystem().getValueAsString())) {
return getSystem().getValueAsString() + '|' + getCode().getValueAsString();
} else {
return getCode().getValueAsString();
}
}
/**
* {@inheritDoc}
*/
@Override
public void setValueAsQueryToken(String theParameter) {
int barIndex = theParameter.indexOf('|');
if (barIndex != -1) {
setSystem(new UriDt(theParameter.substring(0, barIndex)));
setCode(theParameter.substring(barIndex + 1));
} else {
setCode(theParameter);
}
}
}

View File

@ -16,12 +16,17 @@
package ca.uhn.fhir.model.dstu.composite;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import ca.uhn.fhir.model.dstu.resource.*;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.ICompositeDatatype;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum;
import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.StringDt;
/**
* HAPI/FHIR <b>Contact</b> Datatype
@ -75,6 +80,11 @@ public class ContactDt
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myValue, myUse, myPeriod);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( mySystem, myValue, myUse, myPeriod);
}
/**
* Gets the value(s) for <b>system</b> (phone | fax | email | url).

View File

@ -1,5 +1,8 @@
package ca.uhn.fhir.model.dstu.composite;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
@DatatypeDef(name = "duration")
public class DurationDt extends QuantityDt {
// TODO: implement restricions

View File

@ -16,12 +16,16 @@
package ca.uhn.fhir.model.dstu.composite;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import ca.uhn.fhir.model.dstu.resource.*;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.ICompositeDatatype;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.dstu.valueset.NameUseEnum;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.StringDt;
/**
* HAPI/FHIR <b>HumanName</b> Datatype
@ -61,28 +65,28 @@ public class HumanNameDt
shortDefinition="Family name (often called 'Surname')",
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 List<StringDt> myFamily;
private java.util.List<StringDt> myFamily;
@Child(name="given", type=StringDt.class, order=3, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="Given names (not always 'first'). Includes middle names",
formalDefinition="Given name"
)
private List<StringDt> myGiven;
private java.util.List<StringDt> myGiven;
@Child(name="prefix", type=StringDt.class, order=4, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="Parts that come before the name",
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 List<StringDt> myPrefix;
private java.util.List<StringDt> myPrefix;
@Child(name="suffix", type=StringDt.class, order=5, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="Parts that come after the name",
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 List<StringDt> mySuffix;
private java.util.List<StringDt> mySuffix;
@Child(name="period", type=PeriodDt.class, order=6, min=0, max=1)
@Description(
@ -96,6 +100,11 @@ public class HumanNameDt
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myUse, myText, myFamily, myGiven, myPrefix, mySuffix, myPeriod);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myUse, myText, myFamily, myGiven, myPrefix, mySuffix, myPeriod);
}
/**
* Gets the value(s) for <b>use</b> (usual | official | temp | nickname | anonymous | old | maiden).
@ -193,9 +202,9 @@ public class HumanNameDt
* 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 List<StringDt> getFamily() {
public java.util.List<StringDt> getFamily() {
if (myFamily == null) {
myFamily = new ArrayList<StringDt>();
myFamily = new java.util.ArrayList<StringDt>();
}
return myFamily;
}
@ -208,7 +217,7 @@ public class HumanNameDt
* 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 void setFamily(List<StringDt> theValue) {
public void setFamily(java.util.List<StringDt> theValue) {
myFamily = theValue;
}
@ -236,7 +245,7 @@ public class HumanNameDt
*/
public void addFamily( String theString) {
if (myFamily == null) {
myFamily = new ArrayList<StringDt>();
myFamily = new java.util.ArrayList<StringDt>();
}
myFamily.add(new StringDt(theString));
}
@ -252,9 +261,9 @@ public class HumanNameDt
* Given name
* </p>
*/
public List<StringDt> getGiven() {
public java.util.List<StringDt> getGiven() {
if (myGiven == null) {
myGiven = new ArrayList<StringDt>();
myGiven = new java.util.ArrayList<StringDt>();
}
return myGiven;
}
@ -267,7 +276,7 @@ public class HumanNameDt
* Given name
* </p>
*/
public void setGiven(List<StringDt> theValue) {
public void setGiven(java.util.List<StringDt> theValue) {
myGiven = theValue;
}
@ -295,7 +304,7 @@ public class HumanNameDt
*/
public void addGiven( String theString) {
if (myGiven == null) {
myGiven = new ArrayList<StringDt>();
myGiven = new java.util.ArrayList<StringDt>();
}
myGiven.add(new StringDt(theString));
}
@ -311,9 +320,9 @@ public class HumanNameDt
* 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 List<StringDt> getPrefix() {
public java.util.List<StringDt> getPrefix() {
if (myPrefix == null) {
myPrefix = new ArrayList<StringDt>();
myPrefix = new java.util.ArrayList<StringDt>();
}
return myPrefix;
}
@ -326,7 +335,7 @@ public class HumanNameDt
* 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 void setPrefix(List<StringDt> theValue) {
public void setPrefix(java.util.List<StringDt> theValue) {
myPrefix = theValue;
}
@ -354,7 +363,7 @@ public class HumanNameDt
*/
public void addPrefix( String theString) {
if (myPrefix == null) {
myPrefix = new ArrayList<StringDt>();
myPrefix = new java.util.ArrayList<StringDt>();
}
myPrefix.add(new StringDt(theString));
}
@ -370,9 +379,9 @@ public class HumanNameDt
* 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 List<StringDt> getSuffix() {
public java.util.List<StringDt> getSuffix() {
if (mySuffix == null) {
mySuffix = new ArrayList<StringDt>();
mySuffix = new java.util.ArrayList<StringDt>();
}
return mySuffix;
}
@ -385,7 +394,7 @@ public class HumanNameDt
* 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 void setSuffix(List<StringDt> theValue) {
public void setSuffix(java.util.List<StringDt> theValue) {
mySuffix = theValue;
}
@ -413,7 +422,7 @@ public class HumanNameDt
*/
public void addSuffix( String theString) {
if (mySuffix == null) {
mySuffix = new ArrayList<StringDt>();
mySuffix = new java.util.ArrayList<StringDt>();
}
mySuffix.add(new StringDt(theString));
}

View File

@ -16,12 +16,18 @@
package ca.uhn.fhir.model.dstu.composite;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import ca.uhn.fhir.model.dstu.resource.*;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.ICompositeDatatype;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.IQueryParameterType;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.UriDt;
/**
* HAPI/FHIR <b>Identifier</b> Datatype
@ -92,7 +98,7 @@ public class IdentifierDt
private PeriodDt myPeriod;
@Child(name="assigner", order=5, min=0, max=1, type={
Organization.class,
ca.uhn.fhir.model.dstu.resource.Organization.class,
})
@Description(
shortDefinition="Organization that issued id (may be just text)",
@ -105,6 +111,11 @@ public class IdentifierDt
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myUse, myLabel, mySystem, myValue, myPeriod, myAssigner);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myUse, myLabel, mySystem, myValue, myPeriod, myAssigner);
}
/**
* Gets the value(s) for <b>use</b> (usual | official | temp | secondary (If known)).

View File

@ -16,12 +16,17 @@
package ca.uhn.fhir.model.dstu.composite;
import java.util.*;
import java.util.List;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.ICompositeDatatype;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.dstu.valueset.NarrativeStatusEnum;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.XhtmlDt;
/**
* HAPI/FHIR <b>Narrative</b> Datatype
@ -51,6 +56,11 @@ public class NarrativeDt extends BaseElement implements ICompositeDatatype {
return ca.uhn.fhir.util.ElementUtil.isEmpty( myStatus, myDiv );
}
@Override
public List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myStatus, myDiv );
}
/**
* Gets the value(s) for <b>status</b> (generated | extensions | additional).
* creating it if it does

View File

@ -16,12 +16,16 @@
package ca.uhn.fhir.model.dstu.composite;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import ca.uhn.fhir.model.dstu.resource.*;
import java.util.Date;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.ICompositeDatatype;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.primitive.DateTimeDt;
/**
* HAPI/FHIR <b>Period</b> Datatype
@ -61,6 +65,11 @@ public class PeriodDt
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myStart, myEnd);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myStart, myEnd);
}
/**
* Gets the value(s) for <b>start</b> (Starting time with inclusive boundary).
@ -100,8 +109,8 @@ public class PeriodDt
* The start of the period. The boundary is inclusive.
* </p>
*/
public void setStartWithSecondsPrecision( Date theDate) {
myStart = new DateTimeDt(theDate);
public void setStart( Date theDate, TemporalPrecisionEnum thePrecision) {
myStart = new DateTimeDt(theDate, thePrecision);
}
/**
@ -112,8 +121,8 @@ public class PeriodDt
* The start of the period. The boundary is inclusive.
* </p>
*/
public void setStart( Date theDate, TemporalPrecisionEnum thePrecision) {
myStart = new DateTimeDt(theDate, thePrecision);
public void setStartWithSecondsPrecision( Date theDate) {
myStart = new DateTimeDt(theDate);
}
@ -155,8 +164,8 @@ public class PeriodDt
* The end of the period. If the end of the period is missing, it means that the period is ongoing
* </p>
*/
public void setEndWithSecondsPrecision( Date theDate) {
myEnd = new DateTimeDt(theDate);
public void setEnd( Date theDate, TemporalPrecisionEnum thePrecision) {
myEnd = new DateTimeDt(theDate, thePrecision);
}
/**
@ -167,8 +176,8 @@ public class PeriodDt
* The end of the period. If the end of the period is missing, it means that the period is ongoing
* </p>
*/
public void setEnd( Date theDate, TemporalPrecisionEnum thePrecision) {
myEnd = new DateTimeDt(theDate, thePrecision);
public void setEndWithSecondsPrecision( Date theDate) {
myEnd = new DateTimeDt(theDate);
}

View File

@ -16,12 +16,18 @@
package ca.uhn.fhir.model.dstu.composite;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import ca.uhn.fhir.model.dstu.resource.*;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.ICompositeDatatype;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.DecimalDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.UriDt;
/**
* HAPI/FHIR <b>Quantity</b> Datatype
@ -82,6 +88,11 @@ public class QuantityDt
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myValue, myComparator, myUnits, mySystem, myCode);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myValue, myComparator, myUnits, mySystem, myCode);
}
/**
* Gets the value(s) for <b>value</b> (Numerical value (with implicit precision)).
@ -121,7 +132,7 @@ public class QuantityDt
* The value of the measured amount. The value includes an implicit precision in the presentation of the value
* </p>
*/
public void setValue( java.math.BigDecimal theValue) {
public void setValue( long theValue) {
myValue = new DecimalDt(theValue);
}
@ -145,7 +156,7 @@ public class QuantityDt
* The value of the measured amount. The value includes an implicit precision in the presentation of the value
* </p>
*/
public void setValue( long theValue) {
public void setValue( java.math.BigDecimal theValue) {
myValue = new DecimalDt(theValue);
}

View File

@ -16,12 +16,12 @@
package ca.uhn.fhir.model.dstu.composite;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import ca.uhn.fhir.model.dstu.resource.*;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.ICompositeDatatype;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Description;
/**
* HAPI/FHIR <b>Range</b> Datatype
@ -61,6 +61,11 @@ public class RangeDt
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myLow, myHigh);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myLow, myHigh);
}
/**
* Gets the value(s) for <b>low</b> (Low limit).

View File

@ -16,12 +16,12 @@
package ca.uhn.fhir.model.dstu.composite;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import ca.uhn.fhir.model.dstu.resource.*;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.ICompositeDatatype;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Description;
/**
* HAPI/FHIR <b>Ratio</b> Datatype
@ -61,6 +61,11 @@ public class RatioDt
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myNumerator, myDenominator);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myNumerator, myDenominator);
}
/**
* Gets the value(s) for <b>numerator</b> (Numerator value).

View File

@ -16,12 +16,13 @@
package ca.uhn.fhir.model.dstu.composite;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import ca.uhn.fhir.model.dstu.resource.*;
import ca.uhn.fhir.model.api.BaseResourceReference;
import ca.uhn.fhir.model.api.ICompositeDatatype;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.primitive.StringDt;
/**
* HAPI/FHIR <b>ResourceReference</b> Datatype
@ -61,6 +62,11 @@ public class ResourceReferenceDt
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myReference, myDisplay);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myReference, myDisplay);
}
/**
* Gets the value(s) for <b>reference</b> (Relative, internal or absolute URL reference).

View File

@ -16,12 +16,15 @@
package ca.uhn.fhir.model.dstu.composite;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import ca.uhn.fhir.model.dstu.resource.*;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.ICompositeDatatype;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.primitive.DecimalDt;
import ca.uhn.fhir.model.primitive.IntegerDt;
import ca.uhn.fhir.model.primitive.StringDt;
/**
* HAPI/FHIR <b>SampledData</b> Datatype
@ -96,6 +99,11 @@ public class SampledDataDt
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myOrigin, myPeriod, myFactor, myLowerLimit, myUpperLimit, myDimensions, myData);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myOrigin, myPeriod, myFactor, myLowerLimit, myUpperLimit, myDimensions, myData);
}
/**
* Gets the value(s) for <b>origin</b> (Zero value and units).
@ -166,7 +174,7 @@ public class SampledDataDt
* The length of time between sampling times, measured in milliseconds
* </p>
*/
public void setPeriod( java.math.BigDecimal theValue) {
public void setPeriod( long theValue) {
myPeriod = new DecimalDt(theValue);
}
@ -190,7 +198,7 @@ public class SampledDataDt
* The length of time between sampling times, measured in milliseconds
* </p>
*/
public void setPeriod( long theValue) {
public void setPeriod( java.math.BigDecimal theValue) {
myPeriod = new DecimalDt(theValue);
}
@ -233,7 +241,7 @@ public class SampledDataDt
* A correction factor that is applied to the sampled data points before they are added to the origin
* </p>
*/
public void setFactor( java.math.BigDecimal theValue) {
public void setFactor( long theValue) {
myFactor = new DecimalDt(theValue);
}
@ -257,7 +265,7 @@ public class SampledDataDt
* A correction factor that is applied to the sampled data points before they are added to the origin
* </p>
*/
public void setFactor( long theValue) {
public void setFactor( java.math.BigDecimal theValue) {
myFactor = new DecimalDt(theValue);
}
@ -300,7 +308,7 @@ public class SampledDataDt
* 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 void setLowerLimit( java.math.BigDecimal theValue) {
public void setLowerLimit( long theValue) {
myLowerLimit = new DecimalDt(theValue);
}
@ -324,7 +332,7 @@ public class SampledDataDt
* 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 void setLowerLimit( long theValue) {
public void setLowerLimit( java.math.BigDecimal theValue) {
myLowerLimit = new DecimalDt(theValue);
}
@ -367,7 +375,7 @@ public class SampledDataDt
* 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 void setUpperLimit( java.math.BigDecimal theValue) {
public void setUpperLimit( long theValue) {
myUpperLimit = new DecimalDt(theValue);
}
@ -391,7 +399,7 @@ public class SampledDataDt
* 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 void setUpperLimit( long theValue) {
public void setUpperLimit( java.math.BigDecimal theValue) {
myUpperLimit = new DecimalDt(theValue);
}

View File

@ -16,12 +16,24 @@
package ca.uhn.fhir.model.dstu.composite;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import ca.uhn.fhir.model.dstu.resource.*;
import java.util.Date;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.ICompositeDatatype;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.IResourceBlock;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.api.annotation.Block;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum;
import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum;
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.IntegerDt;
/**
* HAPI/FHIR <b>Schedule</b> Datatype
@ -47,7 +59,7 @@ public class ScheduleDt
shortDefinition="When the event occurs",
formalDefinition="Identifies specific time periods when the event should occur"
)
private List<PeriodDt> myEvent;
private java.util.List<PeriodDt> myEvent;
@Child(name="repeat", order=1, min=0, max=1)
@Description(
@ -61,6 +73,11 @@ public class ScheduleDt
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myEvent, myRepeat);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myEvent, myRepeat);
}
/**
* Gets the value(s) for <b>event</b> (When the event occurs).
@ -72,9 +89,9 @@ public class ScheduleDt
* Identifies specific time periods when the event should occur
* </p>
*/
public List<PeriodDt> getEvent() {
public java.util.List<PeriodDt> getEvent() {
if (myEvent == null) {
myEvent = new ArrayList<PeriodDt>();
myEvent = new java.util.ArrayList<PeriodDt>();
}
return myEvent;
}
@ -87,7 +104,7 @@ public class ScheduleDt
* Identifies specific time periods when the event should occur
* </p>
*/
public void setEvent(List<PeriodDt> theValue) {
public void setEvent(java.util.List<PeriodDt> theValue) {
myEvent = theValue;
}
@ -195,6 +212,11 @@ public class ScheduleDt
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myFrequency, myWhen, myDuration, myUnits, myCount, myEnd);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myFrequency, myWhen, myDuration, myUnits, myCount, myEnd);
}
/**
* Gets the value(s) for <b>frequency</b> (Event occurs frequency times per duration).
@ -320,7 +342,7 @@ public class ScheduleDt
* How long each repetition should last
* </p>
*/
public void setDuration( java.math.BigDecimal theValue) {
public void setDuration( long theValue) {
myDuration = new DecimalDt(theValue);
}
@ -344,7 +366,7 @@ public class ScheduleDt
* How long each repetition should last
* </p>
*/
public void setDuration( long theValue) {
public void setDuration( java.math.BigDecimal theValue) {
myDuration = new DecimalDt(theValue);
}
@ -473,8 +495,8 @@ public class ScheduleDt
* When to stop repeating the schedule
* </p>
*/
public void setEndWithSecondsPrecision( Date theDate) {
myEnd = new DateTimeDt(theDate);
public void setEnd( Date theDate, TemporalPrecisionEnum thePrecision) {
myEnd = new DateTimeDt(theDate, thePrecision);
}
/**
@ -485,8 +507,8 @@ public class ScheduleDt
* When to stop repeating the schedule
* </p>
*/
public void setEnd( Date theDate, TemporalPrecisionEnum thePrecision) {
myEnd = new DateTimeDt(theDate, thePrecision);
public void setEndWithSecondsPrecision( Date theDate) {
myEnd = new DateTimeDt(theDate);
}

View File

@ -1,10 +1,14 @@
package ca.uhn.fhir.model.dstu.resource;
import java.util.List;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
@ResourceDef(name="Binary", profile="http://hl7.org/fhir/profiles/Binary", id="binary")
public class Binary implements IResource {
public class Binary extends BaseElement implements IResource {
// TODO: implement binary
@ -13,4 +17,10 @@ public class Binary implements IResource {
return true;
}
@Override
public List<IElement> getAllPopulatedChildElements() {
// TODO Auto-generated method stub
return null;
}
}

View File

@ -16,12 +16,44 @@
package ca.uhn.fhir.model.dstu.resource;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.composite.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import java.util.Date;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.BaseResource;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.api.IResourceBlock;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.api.annotation.Block;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu.composite.CodingDt;
import ca.uhn.fhir.model.dstu.composite.ContactDt;
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum;
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum;
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
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.BoundCodeableConceptDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.DateTimeDt;
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>Conformance</b> Resource
@ -234,7 +266,7 @@ public class Conformance extends BaseResource implements IResource {
shortDefinition="Contacts for Organization",
formalDefinition="Contacts for Organization relevant to this conformance statement. The contacts may be a website, email, phone numbers, etc."
)
private List<ContactDt> myTelecom;
private java.util.List<ContactDt> myTelecom;
@Child(name="description", type=StringDt.class, order=5, min=0, max=1)
@Description(
@ -297,43 +329,48 @@ public class Conformance extends BaseResource implements IResource {
shortDefinition="formats supported (xml | json | mime type)",
formalDefinition="A list of the formats supported by this implementation"
)
private List<CodeDt> myFormat;
private java.util.List<CodeDt> myFormat;
@Child(name="profile", order=14, min=0, max=Child.MAX_UNLIMITED, type={
Profile.class,
ca.uhn.fhir.model.dstu.resource.Profile.class,
})
@Description(
shortDefinition="Profiles supported by the system",
formalDefinition="A list of profiles supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of recourses, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile."
)
private List<ResourceReferenceDt> myProfile;
private java.util.List<ResourceReferenceDt> myProfile;
@Child(name="rest", order=15, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="If the endpoint is a RESTful one",
formalDefinition="A definition of the restful capabilities of the solution, if any"
)
private List<Rest> myRest;
private java.util.List<Rest> myRest;
@Child(name="messaging", order=16, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="If messaging is supported",
formalDefinition="A description of the messaging capabilities of the solution"
)
private List<Messaging> myMessaging;
private java.util.List<Messaging> myMessaging;
@Child(name="document", order=17, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="Document definition",
formalDefinition="A document definition"
)
private List<Document> myDocument;
private java.util.List<Document> myDocument;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myVersion, myName, myPublisher, myTelecom, myDescription, myStatus, myExperimental, myDate, mySoftware, myImplementation, myFhirVersion, myAcceptUnknown, myFormat, myProfile, myRest, myMessaging, myDocument);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myIdentifier, myVersion, myName, myPublisher, myTelecom, myDescription, myStatus, myExperimental, myDate, mySoftware, myImplementation, myFhirVersion, myAcceptUnknown, myFormat, myProfile, myRest, myMessaging, myDocument);
}
/**
* Gets the value(s) for <b>identifier</b> (Logical id to reference this statement).
@ -517,9 +554,9 @@ public class Conformance extends BaseResource implements IResource {
* Contacts for Organization relevant to this conformance statement. The contacts may be a website, email, phone numbers, etc.
* </p>
*/
public List<ContactDt> getTelecom() {
public java.util.List<ContactDt> getTelecom() {
if (myTelecom == null) {
myTelecom = new ArrayList<ContactDt>();
myTelecom = new java.util.ArrayList<ContactDt>();
}
return myTelecom;
}
@ -532,7 +569,7 @@ public class Conformance extends BaseResource implements IResource {
* Contacts for Organization relevant to this conformance statement. The contacts may be a website, email, phone numbers, etc.
* </p>
*/
public void setTelecom(List<ContactDt> theValue) {
public void setTelecom(java.util.List<ContactDt> theValue) {
myTelecom = theValue;
}
@ -718,8 +755,8 @@ public class Conformance extends BaseResource implements IResource {
* The date when the conformance statement was published
* </p>
*/
public void setDateWithSecondsPrecision( Date theDate) {
myDate = new DateTimeDt(theDate);
public void setDate( Date theDate, TemporalPrecisionEnum thePrecision) {
myDate = new DateTimeDt(theDate, thePrecision);
}
/**
@ -730,8 +767,8 @@ public class Conformance extends BaseResource implements IResource {
* The date when the conformance statement was published
* </p>
*/
public void setDate( Date theDate, TemporalPrecisionEnum thePrecision) {
myDate = new DateTimeDt(theDate, thePrecision);
public void setDateWithSecondsPrecision( Date theDate) {
myDate = new DateTimeDt(theDate);
}
@ -893,9 +930,9 @@ public class Conformance extends BaseResource implements IResource {
* A list of the formats supported by this implementation
* </p>
*/
public List<CodeDt> getFormat() {
public java.util.List<CodeDt> getFormat() {
if (myFormat == null) {
myFormat = new ArrayList<CodeDt>();
myFormat = new java.util.ArrayList<CodeDt>();
}
return myFormat;
}
@ -908,7 +945,7 @@ public class Conformance extends BaseResource implements IResource {
* A list of the formats supported by this implementation
* </p>
*/
public void setFormat(List<CodeDt> theValue) {
public void setFormat(java.util.List<CodeDt> theValue) {
myFormat = theValue;
}
@ -936,7 +973,7 @@ public class Conformance extends BaseResource implements IResource {
*/
public void addFormat( String theCode) {
if (myFormat == null) {
myFormat = new ArrayList<CodeDt>();
myFormat = new java.util.ArrayList<CodeDt>();
}
myFormat.add(new CodeDt(theCode));
}
@ -952,9 +989,9 @@ public class Conformance extends BaseResource implements IResource {
* A list of profiles supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of recourses, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile.
* </p>
*/
public List<ResourceReferenceDt> getProfile() {
public java.util.List<ResourceReferenceDt> getProfile() {
if (myProfile == null) {
myProfile = new ArrayList<ResourceReferenceDt>();
myProfile = new java.util.ArrayList<ResourceReferenceDt>();
}
return myProfile;
}
@ -967,7 +1004,7 @@ public class Conformance extends BaseResource implements IResource {
* A list of profiles supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of recourses, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile.
* </p>
*/
public void setProfile(List<ResourceReferenceDt> theValue) {
public void setProfile(java.util.List<ResourceReferenceDt> theValue) {
myProfile = theValue;
}
@ -983,9 +1020,9 @@ public class Conformance extends BaseResource implements IResource {
* A definition of the restful capabilities of the solution, if any
* </p>
*/
public List<Rest> getRest() {
public java.util.List<Rest> getRest() {
if (myRest == null) {
myRest = new ArrayList<Rest>();
myRest = new java.util.ArrayList<Rest>();
}
return myRest;
}
@ -998,7 +1035,7 @@ public class Conformance extends BaseResource implements IResource {
* A definition of the restful capabilities of the solution, if any
* </p>
*/
public void setRest(List<Rest> theValue) {
public void setRest(java.util.List<Rest> theValue) {
myRest = theValue;
}
@ -1027,9 +1064,9 @@ public class Conformance extends BaseResource implements IResource {
* A description of the messaging capabilities of the solution
* </p>
*/
public List<Messaging> getMessaging() {
public java.util.List<Messaging> getMessaging() {
if (myMessaging == null) {
myMessaging = new ArrayList<Messaging>();
myMessaging = new java.util.ArrayList<Messaging>();
}
return myMessaging;
}
@ -1042,7 +1079,7 @@ public class Conformance extends BaseResource implements IResource {
* A description of the messaging capabilities of the solution
* </p>
*/
public void setMessaging(List<Messaging> theValue) {
public void setMessaging(java.util.List<Messaging> theValue) {
myMessaging = theValue;
}
@ -1071,9 +1108,9 @@ public class Conformance extends BaseResource implements IResource {
* A document definition
* </p>
*/
public List<Document> getDocument() {
public java.util.List<Document> getDocument() {
if (myDocument == null) {
myDocument = new ArrayList<Document>();
myDocument = new java.util.ArrayList<Document>();
}
return myDocument;
}
@ -1086,7 +1123,7 @@ public class Conformance extends BaseResource implements IResource {
* A document definition
* </p>
*/
public void setDocument(List<Document> theValue) {
public void setDocument(java.util.List<Document> theValue) {
myDocument = theValue;
}
@ -1142,6 +1179,11 @@ public class Conformance extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myVersion, myReleaseDate);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myName, myVersion, myReleaseDate);
}
/**
* Gets the value(s) for <b>name</b> (A name the software is known by).
@ -1267,8 +1309,8 @@ public class Conformance extends BaseResource implements IResource {
* Date this version of the software released
* </p>
*/
public void setReleaseDateWithSecondsPrecision( Date theDate) {
myReleaseDate = new DateTimeDt(theDate);
public void setReleaseDate( Date theDate, TemporalPrecisionEnum thePrecision) {
myReleaseDate = new DateTimeDt(theDate, thePrecision);
}
/**
@ -1279,8 +1321,8 @@ public class Conformance extends BaseResource implements IResource {
* Date this version of the software released
* </p>
*/
public void setReleaseDate( Date theDate, TemporalPrecisionEnum thePrecision) {
myReleaseDate = new DateTimeDt(theDate, thePrecision);
public void setReleaseDateWithSecondsPrecision( Date theDate) {
myReleaseDate = new DateTimeDt(theDate);
}
@ -1318,6 +1360,11 @@ public class Conformance extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDescription, myUrl);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myDescription, myUrl);
}
/**
* Gets the value(s) for <b>description</b> (Describes this specific instance).
@ -1446,34 +1493,39 @@ public class Conformance extends BaseResource implements IResource {
shortDefinition="Resource served on the REST interface",
formalDefinition="A specification of the restful capabilities of the solution for a specific resource type"
)
private List<RestResource> myResource;
private java.util.List<RestResource> myResource;
@Child(name="operation", order=4, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="What operations are supported?",
formalDefinition="A specification of restful operations supported by the system"
)
private List<RestOperation> myOperation;
private java.util.List<RestOperation> myOperation;
@Child(name="query", order=5, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="Definition of a named query",
formalDefinition="Definition of a named query and its parameters and their meaning"
)
private List<RestQuery> myQuery;
private java.util.List<RestQuery> myQuery;
@Child(name="documentMailbox", type=UriDt.class, order=6, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="How documents are accepted in /Mailbox",
formalDefinition="A list of profiles that this server implements for accepting documents in the mailbox. If this list is empty, then documents are not accepted. The base specification has the profile identifier \"http://hl7.org/fhir/documents/mailbox\". Other specifications can declare their own identifier for this purpose"
)
private List<UriDt> myDocumentMailbox;
private java.util.List<UriDt> myDocumentMailbox;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myMode, myDocumentation, mySecurity, myResource, myOperation, myQuery, myDocumentMailbox);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myMode, myDocumentation, mySecurity, myResource, myOperation, myQuery, myDocumentMailbox);
}
/**
* Gets the value(s) for <b>mode</b> (client | server).
@ -1602,9 +1654,9 @@ public class Conformance extends BaseResource implements IResource {
* A specification of the restful capabilities of the solution for a specific resource type
* </p>
*/
public List<RestResource> getResource() {
public java.util.List<RestResource> getResource() {
if (myResource == null) {
myResource = new ArrayList<RestResource>();
myResource = new java.util.ArrayList<RestResource>();
}
return myResource;
}
@ -1617,7 +1669,7 @@ public class Conformance extends BaseResource implements IResource {
* A specification of the restful capabilities of the solution for a specific resource type
* </p>
*/
public void setResource(List<RestResource> theValue) {
public void setResource(java.util.List<RestResource> theValue) {
myResource = theValue;
}
@ -1646,9 +1698,9 @@ public class Conformance extends BaseResource implements IResource {
* A specification of restful operations supported by the system
* </p>
*/
public List<RestOperation> getOperation() {
public java.util.List<RestOperation> getOperation() {
if (myOperation == null) {
myOperation = new ArrayList<RestOperation>();
myOperation = new java.util.ArrayList<RestOperation>();
}
return myOperation;
}
@ -1661,7 +1713,7 @@ public class Conformance extends BaseResource implements IResource {
* A specification of restful operations supported by the system
* </p>
*/
public void setOperation(List<RestOperation> theValue) {
public void setOperation(java.util.List<RestOperation> theValue) {
myOperation = theValue;
}
@ -1690,9 +1742,9 @@ public class Conformance extends BaseResource implements IResource {
* Definition of a named query and its parameters and their meaning
* </p>
*/
public List<RestQuery> getQuery() {
public java.util.List<RestQuery> getQuery() {
if (myQuery == null) {
myQuery = new ArrayList<RestQuery>();
myQuery = new java.util.ArrayList<RestQuery>();
}
return myQuery;
}
@ -1705,7 +1757,7 @@ public class Conformance extends BaseResource implements IResource {
* Definition of a named query and its parameters and their meaning
* </p>
*/
public void setQuery(List<RestQuery> theValue) {
public void setQuery(java.util.List<RestQuery> theValue) {
myQuery = theValue;
}
@ -1734,9 +1786,9 @@ public class Conformance extends BaseResource implements IResource {
* A list of profiles that this server implements for accepting documents in the mailbox. If this list is empty, then documents are not accepted. The base specification has the profile identifier \"http://hl7.org/fhir/documents/mailbox\". Other specifications can declare their own identifier for this purpose
* </p>
*/
public List<UriDt> getDocumentMailbox() {
public java.util.List<UriDt> getDocumentMailbox() {
if (myDocumentMailbox == null) {
myDocumentMailbox = new ArrayList<UriDt>();
myDocumentMailbox = new java.util.ArrayList<UriDt>();
}
return myDocumentMailbox;
}
@ -1749,7 +1801,7 @@ public class Conformance extends BaseResource implements IResource {
* A list of profiles that this server implements for accepting documents in the mailbox. If this list is empty, then documents are not accepted. The base specification has the profile identifier \"http://hl7.org/fhir/documents/mailbox\". Other specifications can declare their own identifier for this purpose
* </p>
*/
public void setDocumentMailbox(List<UriDt> theValue) {
public void setDocumentMailbox(java.util.List<UriDt> theValue) {
myDocumentMailbox = theValue;
}
@ -1777,7 +1829,7 @@ public class Conformance extends BaseResource implements IResource {
*/
public void addDocumentMailbox( String theUri) {
if (myDocumentMailbox == null) {
myDocumentMailbox = new ArrayList<UriDt>();
myDocumentMailbox = new java.util.ArrayList<UriDt>();
}
myDocumentMailbox.add(new UriDt(theUri));
}
@ -1809,7 +1861,7 @@ public class Conformance extends BaseResource implements IResource {
shortDefinition="OAuth | OAuth2 | NTLM | Basic | Kerberos",
formalDefinition="Types of security services are supported/required by the system"
)
private List<BoundCodeableConceptDt<RestfulSecurityServiceEnum>> myService;
private java.util.List<BoundCodeableConceptDt<RestfulSecurityServiceEnum>> myService;
@Child(name="description", type=StringDt.class, order=2, min=0, max=1)
@Description(
@ -1823,13 +1875,18 @@ public class Conformance extends BaseResource implements IResource {
shortDefinition="Certificates associated with security profiles",
formalDefinition="Certificates associated with security profiles"
)
private List<RestSecurityCertificate> myCertificate;
private java.util.List<RestSecurityCertificate> myCertificate;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCors, myService, myDescription, myCertificate);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myCors, myService, myDescription, myCertificate);
}
/**
* Gets the value(s) for <b>cors</b> (Adds CORS Headers (http://enable-cors.org/)).
@ -1884,9 +1941,9 @@ public class Conformance extends BaseResource implements IResource {
* Types of security services are supported/required by the system
* </p>
*/
public List<BoundCodeableConceptDt<RestfulSecurityServiceEnum>> getService() {
public java.util.List<BoundCodeableConceptDt<RestfulSecurityServiceEnum>> getService() {
if (myService == null) {
myService = new ArrayList<BoundCodeableConceptDt<RestfulSecurityServiceEnum>>();
myService = new java.util.ArrayList<BoundCodeableConceptDt<RestfulSecurityServiceEnum>>();
}
return myService;
}
@ -1899,7 +1956,7 @@ public class Conformance extends BaseResource implements IResource {
* Types of security services are supported/required by the system
* </p>
*/
public void setService(List<BoundCodeableConceptDt<RestfulSecurityServiceEnum>> theValue) {
public void setService(java.util.List<BoundCodeableConceptDt<RestfulSecurityServiceEnum>> theValue) {
myService = theValue;
}
@ -1983,9 +2040,9 @@ public class Conformance extends BaseResource implements IResource {
* Certificates associated with security profiles
* </p>
*/
public List<RestSecurityCertificate> getCertificate() {
public java.util.List<RestSecurityCertificate> getCertificate() {
if (myCertificate == null) {
myCertificate = new ArrayList<RestSecurityCertificate>();
myCertificate = new java.util.ArrayList<RestSecurityCertificate>();
}
return myCertificate;
}
@ -1998,7 +2055,7 @@ public class Conformance extends BaseResource implements IResource {
* Certificates associated with security profiles
* </p>
*/
public void setCertificate(List<RestSecurityCertificate> theValue) {
public void setCertificate(java.util.List<RestSecurityCertificate> theValue) {
myCertificate = theValue;
}
@ -2050,6 +2107,11 @@ public class Conformance extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myBlob);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myType, myBlob);
}
/**
* Gets the value(s) for <b>type</b> (Mime type for certificate).
@ -2161,7 +2223,7 @@ public class Conformance extends BaseResource implements IResource {
private BoundCodeDt<ResourceTypeEnum> myType;
@Child(name="profile", order=1, min=0, max=1, type={
Profile.class,
ca.uhn.fhir.model.dstu.resource.Profile.class,
})
@Description(
shortDefinition="What structural features are supported",
@ -2174,7 +2236,7 @@ public class Conformance extends BaseResource implements IResource {
shortDefinition="What operations are supported?",
formalDefinition="Identifies a restful operation supported by the solution"
)
private List<RestResourceOperation> myOperation;
private java.util.List<RestResourceOperation> myOperation;
@Child(name="readHistory", type=BooleanDt.class, order=3, min=0, max=1)
@Description(
@ -2195,20 +2257,25 @@ public class Conformance extends BaseResource implements IResource {
shortDefinition="_include values supported by the server",
formalDefinition="A list of _include values supported by the server"
)
private List<StringDt> mySearchInclude;
private java.util.List<StringDt> mySearchInclude;
@Child(name="searchParam", order=6, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="Additional search params defined",
formalDefinition="Additional search parameters for implementations to support and/or make use of"
)
private List<RestResourceSearchParam> mySearchParam;
private java.util.List<RestResourceSearchParam> mySearchParam;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myProfile, myOperation, myReadHistory, myUpdateCreate, mySearchInclude, mySearchParam);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myType, myProfile, myOperation, myReadHistory, myUpdateCreate, mySearchInclude, mySearchParam);
}
/**
* Gets the value(s) for <b>type</b> (A resource type that is supported).
@ -2294,9 +2361,9 @@ public class Conformance extends BaseResource implements IResource {
* Identifies a restful operation supported by the solution
* </p>
*/
public List<RestResourceOperation> getOperation() {
public java.util.List<RestResourceOperation> getOperation() {
if (myOperation == null) {
myOperation = new ArrayList<RestResourceOperation>();
myOperation = new java.util.ArrayList<RestResourceOperation>();
}
return myOperation;
}
@ -2309,7 +2376,7 @@ public class Conformance extends BaseResource implements IResource {
* Identifies a restful operation supported by the solution
* </p>
*/
public void setOperation(List<RestResourceOperation> theValue) {
public void setOperation(java.util.List<RestResourceOperation> theValue) {
myOperation = theValue;
}
@ -2424,9 +2491,9 @@ public class Conformance extends BaseResource implements IResource {
* A list of _include values supported by the server
* </p>
*/
public List<StringDt> getSearchInclude() {
public java.util.List<StringDt> getSearchInclude() {
if (mySearchInclude == null) {
mySearchInclude = new ArrayList<StringDt>();
mySearchInclude = new java.util.ArrayList<StringDt>();
}
return mySearchInclude;
}
@ -2439,7 +2506,7 @@ public class Conformance extends BaseResource implements IResource {
* A list of _include values supported by the server
* </p>
*/
public void setSearchInclude(List<StringDt> theValue) {
public void setSearchInclude(java.util.List<StringDt> theValue) {
mySearchInclude = theValue;
}
@ -2467,7 +2534,7 @@ public class Conformance extends BaseResource implements IResource {
*/
public void addSearchInclude( String theString) {
if (mySearchInclude == null) {
mySearchInclude = new ArrayList<StringDt>();
mySearchInclude = new java.util.ArrayList<StringDt>();
}
mySearchInclude.add(new StringDt(theString));
}
@ -2483,9 +2550,9 @@ public class Conformance extends BaseResource implements IResource {
* Additional search parameters for implementations to support and/or make use of
* </p>
*/
public List<RestResourceSearchParam> getSearchParam() {
public java.util.List<RestResourceSearchParam> getSearchParam() {
if (mySearchParam == null) {
mySearchParam = new ArrayList<RestResourceSearchParam>();
mySearchParam = new java.util.ArrayList<RestResourceSearchParam>();
}
return mySearchParam;
}
@ -2498,7 +2565,7 @@ public class Conformance extends BaseResource implements IResource {
* Additional search parameters for implementations to support and/or make use of
* </p>
*/
public void setSearchParam(List<RestResourceSearchParam> theValue) {
public void setSearchParam(java.util.List<RestResourceSearchParam> theValue) {
mySearchParam = theValue;
}
@ -2550,6 +2617,11 @@ public class Conformance extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myDocumentation);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myCode, myDocumentation);
}
/**
* Gets the value(s) for <b>code</b> (read | vread | update | delete | history-instance | validate | history-type | create | search-type).
@ -2685,20 +2757,25 @@ public class Conformance extends BaseResource implements IResource {
shortDefinition="Types of resource (if a resource reference)",
formalDefinition="Types of resource (if a resource is referenced)"
)
private List<BoundCodeDt<ResourceTypeEnum>> myTarget;
private java.util.List<BoundCodeDt<ResourceTypeEnum>> myTarget;
@Child(name="chain", type=StringDt.class, order=5, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="Chained names supported",
formalDefinition=""
)
private List<StringDt> myChain;
private java.util.List<StringDt> myChain;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myDefinition, myType, myDocumentation, myTarget, myChain);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myName, myDefinition, myType, myDocumentation, myTarget, myChain);
}
/**
* Gets the value(s) for <b>name</b> (Name of search parameter).
@ -2882,9 +2959,9 @@ public class Conformance extends BaseResource implements IResource {
* Types of resource (if a resource is referenced)
* </p>
*/
public List<BoundCodeDt<ResourceTypeEnum>> getTarget() {
public java.util.List<BoundCodeDt<ResourceTypeEnum>> getTarget() {
if (myTarget == null) {
myTarget = new ArrayList<BoundCodeDt<ResourceTypeEnum>>();
myTarget = new java.util.ArrayList<BoundCodeDt<ResourceTypeEnum>>();
}
return myTarget;
}
@ -2897,7 +2974,7 @@ public class Conformance extends BaseResource implements IResource {
* Types of resource (if a resource is referenced)
* </p>
*/
public void setTarget(List<BoundCodeDt<ResourceTypeEnum>> theValue) {
public void setTarget(java.util.List<BoundCodeDt<ResourceTypeEnum>> theValue) {
myTarget = theValue;
}
@ -2938,9 +3015,9 @@ public class Conformance extends BaseResource implements IResource {
*
* </p>
*/
public List<StringDt> getChain() {
public java.util.List<StringDt> getChain() {
if (myChain == null) {
myChain = new ArrayList<StringDt>();
myChain = new java.util.ArrayList<StringDt>();
}
return myChain;
}
@ -2953,7 +3030,7 @@ public class Conformance extends BaseResource implements IResource {
*
* </p>
*/
public void setChain(List<StringDt> theValue) {
public void setChain(java.util.List<StringDt> theValue) {
myChain = theValue;
}
@ -2981,7 +3058,7 @@ public class Conformance extends BaseResource implements IResource {
*/
public void addChain( String theString) {
if (myChain == null) {
myChain = new ArrayList<StringDt>();
myChain = new java.util.ArrayList<StringDt>();
}
myChain.add(new StringDt(theString));
}
@ -3022,6 +3099,11 @@ public class Conformance extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myDocumentation);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myCode, myDocumentation);
}
/**
* Gets the value(s) for <b>code</b> (transaction | search-system | history-system).
@ -3150,13 +3232,18 @@ public class Conformance extends BaseResource implements IResource {
shortDefinition="Parameter for the named query",
formalDefinition="Identifies which of the parameters for the named query are supported"
)
private List<RestResourceSearchParam> myParameter;
private java.util.List<RestResourceSearchParam> myParameter;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myDefinition, myDocumentation, myParameter);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myName, myDefinition, myDocumentation, myParameter);
}
/**
* Gets the value(s) for <b>name</b> (Special named queries (_query=)).
@ -3297,9 +3384,9 @@ public class Conformance extends BaseResource implements IResource {
* Identifies which of the parameters for the named query are supported
* </p>
*/
public List<RestResourceSearchParam> getParameter() {
public java.util.List<RestResourceSearchParam> getParameter() {
if (myParameter == null) {
myParameter = new ArrayList<RestResourceSearchParam>();
myParameter = new java.util.ArrayList<RestResourceSearchParam>();
}
return myParameter;
}
@ -3312,7 +3399,7 @@ public class Conformance extends BaseResource implements IResource {
* Identifies which of the parameters for the named query are supported
* </p>
*/
public void setParameter(List<RestResourceSearchParam> theValue) {
public void setParameter(java.util.List<RestResourceSearchParam> theValue) {
myParameter = theValue;
}
@ -3373,13 +3460,18 @@ public class Conformance extends BaseResource implements IResource {
shortDefinition="Declare support for this event",
formalDefinition="A description of the solution's support for an event at this end point."
)
private List<MessagingEvent> myEvent;
private java.util.List<MessagingEvent> myEvent;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myEndpoint, myReliableCache, myDocumentation, myEvent);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myEndpoint, myReliableCache, myDocumentation, myEvent);
}
/**
* Gets the value(s) for <b>endpoint</b> (Actual endpoint being described).
@ -3520,9 +3612,9 @@ public class Conformance extends BaseResource implements IResource {
* A description of the solution's support for an event at this end point.
* </p>
*/
public List<MessagingEvent> getEvent() {
public java.util.List<MessagingEvent> getEvent() {
if (myEvent == null) {
myEvent = new ArrayList<MessagingEvent>();
myEvent = new java.util.ArrayList<MessagingEvent>();
}
return myEvent;
}
@ -3535,7 +3627,7 @@ public class Conformance extends BaseResource implements IResource {
* A description of the solution's support for an event at this end point.
* </p>
*/
public void setEvent(List<MessagingEvent> theValue) {
public void setEvent(java.util.List<MessagingEvent> theValue) {
myEvent = theValue;
}
@ -3594,7 +3686,7 @@ public class Conformance extends BaseResource implements IResource {
shortDefinition="http | ftp | mllp +",
formalDefinition="A list of the messaging transport protocol(s) identifiers, supported by this endpoint"
)
private List<CodingDt> myProtocol;
private java.util.List<CodingDt> myProtocol;
@Child(name="focus", type=CodeDt.class, order=4, min=1, max=1)
@Description(
@ -3604,7 +3696,7 @@ public class Conformance extends BaseResource implements IResource {
private BoundCodeDt<ResourceTypeEnum> myFocus;
@Child(name="request", order=5, min=1, max=1, type={
Profile.class,
ca.uhn.fhir.model.dstu.resource.Profile.class,
})
@Description(
shortDefinition="Profile that describes the request",
@ -3613,7 +3705,7 @@ public class Conformance extends BaseResource implements IResource {
private ResourceReferenceDt myRequest;
@Child(name="response", order=6, min=1, max=1, type={
Profile.class,
ca.uhn.fhir.model.dstu.resource.Profile.class,
})
@Description(
shortDefinition="Profile that describes the response",
@ -3633,6 +3725,11 @@ public class Conformance extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myCategory, myMode, myProtocol, myFocus, myRequest, myResponse, myDocumentation);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myCode, myCategory, myMode, myProtocol, myFocus, myRequest, myResponse, myDocumentation);
}
/**
* Gets the value(s) for <b>code</b> (Event type).
@ -3761,9 +3858,9 @@ public class Conformance extends BaseResource implements IResource {
* A list of the messaging transport protocol(s) identifiers, supported by this endpoint
* </p>
*/
public List<CodingDt> getProtocol() {
public java.util.List<CodingDt> getProtocol() {
if (myProtocol == null) {
myProtocol = new ArrayList<CodingDt>();
myProtocol = new java.util.ArrayList<CodingDt>();
}
return myProtocol;
}
@ -3776,7 +3873,7 @@ public class Conformance extends BaseResource implements IResource {
* A list of the messaging transport protocol(s) identifiers, supported by this endpoint
* </p>
*/
public void setProtocol(List<CodingDt> theValue) {
public void setProtocol(java.util.List<CodingDt> theValue) {
myProtocol = theValue;
}
@ -3974,7 +4071,7 @@ public class Conformance extends BaseResource implements IResource {
private StringDt myDocumentation;
@Child(name="profile", order=2, min=1, max=1, type={
Profile.class,
ca.uhn.fhir.model.dstu.resource.Profile.class,
})
@Description(
shortDefinition="Constraint on a resource used in the document",
@ -3987,6 +4084,11 @@ public class Conformance extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myMode, myDocumentation, myProfile);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myMode, myDocumentation, myProfile);
}
/**
* Gets the value(s) for <b>mode</b> (producer | consumer).

View File

@ -16,12 +16,24 @@
package ca.uhn.fhir.model.dstu.resource;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.composite.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import java.util.Date;
import ca.uhn.fhir.model.api.BaseResource;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu.composite.ContactDt;
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.primitive.DateDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.UriDt;
/**
* HAPI/FHIR <b>Device</b> Resource
@ -126,7 +138,7 @@ public class Device extends BaseResource implements IResource {
shortDefinition="Instance id from manufacturer, owner and others",
formalDefinition="Identifiers assigned to this device by various organizations. The most likely organizations to assign identifiers are the manufacturer and the owner, though regulatory agencies may also assign an identifier. The identifiers identify the particular device, not the kind of device"
)
private List<IdentifierDt> myIdentifier;
private java.util.List<IdentifierDt> myIdentifier;
@Child(name="type", type=CodeableConceptDt.class, order=1, min=1, max=1)
@Description(
@ -178,7 +190,7 @@ public class Device extends BaseResource implements IResource {
private StringDt myLotNumber;
@Child(name="owner", order=8, min=0, max=1, type={
Organization.class,
ca.uhn.fhir.model.dstu.resource.Organization.class,
})
@Description(
shortDefinition="Organization responsible for device",
@ -187,7 +199,7 @@ public class Device extends BaseResource implements IResource {
private ResourceReferenceDt myOwner;
@Child(name="location", order=9, min=0, max=1, type={
Location.class,
ca.uhn.fhir.model.dstu.resource.Location.class,
})
@Description(
shortDefinition="Where the resource is found",
@ -196,7 +208,7 @@ public class Device extends BaseResource implements IResource {
private ResourceReferenceDt myLocation;
@Child(name="patient", order=10, min=0, max=1, type={
Patient.class,
ca.uhn.fhir.model.dstu.resource.Patient.class,
})
@Description(
shortDefinition="If the resource is affixed to a person",
@ -209,7 +221,7 @@ public class Device extends BaseResource implements IResource {
shortDefinition="Details for human/organization for support",
formalDefinition="Contact details for an organization or a particular human that is responsible for the device"
)
private List<ContactDt> myContact;
private java.util.List<ContactDt> myContact;
@Child(name="url", type=UriDt.class, order=12, min=0, max=1)
@Description(
@ -223,6 +235,11 @@ public class Device extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myType, myManufacturer, myModel, myVersion, myExpiry, myUdi, myLotNumber, myOwner, myLocation, myPatient, myContact, myUrl);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myIdentifier, myType, myManufacturer, myModel, myVersion, myExpiry, myUdi, myLotNumber, myOwner, myLocation, myPatient, myContact, myUrl);
}
/**
* Gets the value(s) for <b>identifier</b> (Instance id from manufacturer, owner and others).
@ -234,9 +251,9 @@ public class Device extends BaseResource implements IResource {
* Identifiers assigned to this device by various organizations. The most likely organizations to assign identifiers are the manufacturer and the owner, though regulatory agencies may also assign an identifier. The identifiers identify the particular device, not the kind of device
* </p>
*/
public List<IdentifierDt> getIdentifier() {
public java.util.List<IdentifierDt> getIdentifier() {
if (myIdentifier == null) {
myIdentifier = new ArrayList<IdentifierDt>();
myIdentifier = new java.util.ArrayList<IdentifierDt>();
}
return myIdentifier;
}
@ -249,7 +266,7 @@ public class Device extends BaseResource implements IResource {
* Identifiers assigned to this device by various organizations. The most likely organizations to assign identifiers are the manufacturer and the owner, though regulatory agencies may also assign an identifier. The identifiers identify the particular device, not the kind of device
* </p>
*/
public void setIdentifier(List<IdentifierDt> theValue) {
public void setIdentifier(java.util.List<IdentifierDt> theValue) {
myIdentifier = theValue;
}
@ -466,8 +483,8 @@ public class Device extends BaseResource implements IResource {
* Date of expiry of this device (if applicable)
* </p>
*/
public void setExpiry( Date theDate, TemporalPrecisionEnum thePrecision) {
myExpiry = new DateDt(theDate, thePrecision);
public void setExpiryWithDayPrecision( Date theDate) {
myExpiry = new DateDt(theDate);
}
/**
@ -478,8 +495,8 @@ public class Device extends BaseResource implements IResource {
* Date of expiry of this device (if applicable)
* </p>
*/
public void setExpiryWithDayPrecision( Date theDate) {
myExpiry = new DateDt(theDate);
public void setExpiry( Date theDate, TemporalPrecisionEnum thePrecision) {
myExpiry = new DateDt(theDate, thePrecision);
}
@ -672,9 +689,9 @@ public class Device extends BaseResource implements IResource {
* Contact details for an organization or a particular human that is responsible for the device
* </p>
*/
public List<ContactDt> getContact() {
public java.util.List<ContactDt> getContact() {
if (myContact == null) {
myContact = new ArrayList<ContactDt>();
myContact = new java.util.ArrayList<ContactDt>();
}
return myContact;
}
@ -687,7 +704,7 @@ public class Device extends BaseResource implements IResource {
* Contact details for an organization or a particular human that is responsible for the device
* </p>
*/
public void setContact(List<ContactDt> theValue) {
public void setContact(java.util.List<ContactDt> theValue) {
myContact = theValue;
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -16,12 +16,29 @@
package ca.uhn.fhir.model.dstu.resource;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.composite.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.BaseResource;
import ca.uhn.fhir.model.api.IDatatype;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.api.IResourceBlock;
import ca.uhn.fhir.model.api.annotation.Block;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
import ca.uhn.fhir.model.dstu.composite.RangeDt;
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
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.IntegerDt;
import ca.uhn.fhir.model.primitive.StringDt;
/**
* HAPI/FHIR <b>Group</b> Resource
@ -178,26 +195,31 @@ public class Group extends BaseResource implements IResource {
shortDefinition="Trait of group members",
formalDefinition="Identifies the traits shared by members of the group"
)
private List<Characteristic> myCharacteristic;
private java.util.List<Characteristic> myCharacteristic;
@Child(name="member", order=7, min=0, max=Child.MAX_UNLIMITED, type={
Patient.class,
Practitioner.class,
Device.class,
Medication.class,
Substance.class,
ca.uhn.fhir.model.dstu.resource.Patient.class,
ca.uhn.fhir.model.dstu.resource.Practitioner.class,
ca.uhn.fhir.model.dstu.resource.Device.class,
ca.uhn.fhir.model.dstu.resource.Medication.class,
ca.uhn.fhir.model.dstu.resource.Substance.class,
})
@Description(
shortDefinition="Who is in group",
formalDefinition="Identifies the resource instances that are members of the group."
)
private List<ResourceReferenceDt> myMember;
private java.util.List<ResourceReferenceDt> myMember;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myType, myActual, myCode, myName, myQuantity, myCharacteristic, myMember);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myIdentifier, myType, myActual, myCode, myName, myQuantity, myCharacteristic, myMember);
}
/**
* Gets the value(s) for <b>identifier</b> (Unique id).
@ -443,9 +465,9 @@ public class Group extends BaseResource implements IResource {
* Identifies the traits shared by members of the group
* </p>
*/
public List<Characteristic> getCharacteristic() {
public java.util.List<Characteristic> getCharacteristic() {
if (myCharacteristic == null) {
myCharacteristic = new ArrayList<Characteristic>();
myCharacteristic = new java.util.ArrayList<Characteristic>();
}
return myCharacteristic;
}
@ -458,7 +480,7 @@ public class Group extends BaseResource implements IResource {
* Identifies the traits shared by members of the group
* </p>
*/
public void setCharacteristic(List<Characteristic> theValue) {
public void setCharacteristic(java.util.List<Characteristic> theValue) {
myCharacteristic = theValue;
}
@ -487,7 +509,7 @@ public class Group extends BaseResource implements IResource {
* Identifies the resource instances that are members of the group.
* </p>
*/
public List<ResourceReferenceDt> getMember() {
public java.util.List<ResourceReferenceDt> getMember() {
return myMember;
}
@ -499,7 +521,7 @@ public class Group extends BaseResource implements IResource {
* Identifies the resource instances that are members of the group.
* </p>
*/
public void setMember(List<ResourceReferenceDt> theValue) {
public void setMember(java.util.List<ResourceReferenceDt> theValue) {
myMember = theValue;
}
@ -547,6 +569,11 @@ public class Group extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myValue, myExclude);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myCode, myValue, myExclude);
}
/**
* Gets the value(s) for <b>code</b> (Kind of characteristic).

File diff suppressed because it is too large Load Diff

View File

@ -16,12 +16,30 @@
package ca.uhn.fhir.model.dstu.resource;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.composite.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.BaseResource;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.api.IResourceBlock;
import ca.uhn.fhir.model.api.annotation.Block;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.dstu.composite.AddressDt;
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu.composite.ContactDt;
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum;
import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.DecimalDt;
import ca.uhn.fhir.model.primitive.StringDt;
/**
* HAPI/FHIR <b>Location</b> Resource
@ -154,7 +172,7 @@ public class Location extends BaseResource implements IResource {
shortDefinition="Contact details of the location",
formalDefinition="The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites"
)
private List<ContactDt> myTelecom;
private java.util.List<ContactDt> myTelecom;
@Child(name="address", type=AddressDt.class, order=5, min=0, max=1)
@Description(
@ -178,7 +196,7 @@ public class Location extends BaseResource implements IResource {
private Position myPosition;
@Child(name="managingOrganization", order=8, min=0, max=1, type={
Organization.class,
ca.uhn.fhir.model.dstu.resource.Organization.class,
})
@Description(
shortDefinition="The organization that is responsible for the provisioning and upkeep of the location",
@ -194,7 +212,7 @@ public class Location extends BaseResource implements IResource {
private BoundCodeDt<LocationStatusEnum> myStatus;
@Child(name="partOf", order=10, min=0, max=1, type={
Location.class,
ca.uhn.fhir.model.dstu.resource.Location.class,
})
@Description(
shortDefinition="Another Location which this Location is physically part of",
@ -214,6 +232,11 @@ public class Location extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myName, myDescription, myType, myTelecom, myAddress, myPhysicalType, myPosition, myManagingOrganization, myStatus, myPartOf, myMode);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myIdentifier, myName, myDescription, myType, myTelecom, myAddress, myPhysicalType, myPosition, myManagingOrganization, myStatus, myPartOf, myMode);
}
/**
* Gets the value(s) for <b>identifier</b> (Unique code or number identifying the location to its users).
@ -385,9 +408,9 @@ public class Location extends BaseResource implements IResource {
* The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites
* </p>
*/
public List<ContactDt> getTelecom() {
public java.util.List<ContactDt> getTelecom() {
if (myTelecom == null) {
myTelecom = new ArrayList<ContactDt>();
myTelecom = new java.util.ArrayList<ContactDt>();
}
return myTelecom;
}
@ -400,7 +423,7 @@ public class Location extends BaseResource implements IResource {
* The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites
* </p>
*/
public void setTelecom(List<ContactDt> theValue) {
public void setTelecom(java.util.List<ContactDt> theValue) {
myTelecom = theValue;
}
@ -697,6 +720,11 @@ public class Location extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myLongitude, myLatitude, myAltitude);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myLongitude, myLatitude, myAltitude);
}
/**
* Gets the value(s) for <b>longitude</b> (Longitude as expressed in KML).
@ -736,7 +764,7 @@ public class Location extends BaseResource implements IResource {
* Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below)
* </p>
*/
public void setLongitude( java.math.BigDecimal theValue) {
public void setLongitude( long theValue) {
myLongitude = new DecimalDt(theValue);
}
@ -760,7 +788,7 @@ public class Location extends BaseResource implements IResource {
* Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below)
* </p>
*/
public void setLongitude( long theValue) {
public void setLongitude( java.math.BigDecimal theValue) {
myLongitude = new DecimalDt(theValue);
}
@ -803,7 +831,7 @@ public class Location extends BaseResource implements IResource {
* Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below)
* </p>
*/
public void setLatitude( java.math.BigDecimal theValue) {
public void setLatitude( long theValue) {
myLatitude = new DecimalDt(theValue);
}
@ -827,7 +855,7 @@ public class Location extends BaseResource implements IResource {
* Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below)
* </p>
*/
public void setLatitude( long theValue) {
public void setLatitude( java.math.BigDecimal theValue) {
myLatitude = new DecimalDt(theValue);
}
@ -870,7 +898,7 @@ public class Location extends BaseResource implements IResource {
* Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below)
* </p>
*/
public void setAltitude( java.math.BigDecimal theValue) {
public void setAltitude( long theValue) {
myAltitude = new DecimalDt(theValue);
}
@ -894,7 +922,7 @@ public class Location extends BaseResource implements IResource {
* Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below)
* </p>
*/
public void setAltitude( long theValue) {
public void setAltitude( java.math.BigDecimal theValue) {
myAltitude = new DecimalDt(theValue);
}

View File

@ -0,0 +1,750 @@
package ca.uhn.fhir.model.dstu.resource;
import java.util.Date;
import ca.uhn.fhir.model.api.BaseResource;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
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.IntegerDt;
import ca.uhn.fhir.model.primitive.StringDt;
/**
* HAPI/FHIR <b>Media</b> Resource
* (A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference)
*
* <p>
* <b>Definition:</b>
* A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference
* </p>
*
* <p>
* <b>Requirements:</b>
*
* </p>
*/
@ResourceDef(name="Media", profile="http://hl7.org/fhir/profiles/Media", id="media")
public class Media extends BaseResource implements IResource {
/**
* Search parameter constant for <b>type</b>
* <p>
* Description: <b></b><br/>
* Type: <b>token</b><br/>
* Path: <b>Media.type</b><br/>
* </p>
*/
public static final String SP_TYPE = "type";
/**
* Search parameter constant for <b>subtype</b>
* <p>
* Description: <b></b><br/>
* Type: <b>token</b><br/>
* Path: <b>Media.subtype</b><br/>
* </p>
*/
public static final String SP_SUBTYPE = "subtype";
/**
* Search parameter constant for <b>identifier</b>
* <p>
* Description: <b></b><br/>
* Type: <b>token</b><br/>
* Path: <b>Media.identifier</b><br/>
* </p>
*/
public static final String SP_IDENTIFIER = "identifier";
/**
* Search parameter constant for <b>date</b>
* <p>
* Description: <b></b><br/>
* Type: <b>date</b><br/>
* Path: <b>Media.dateTime</b><br/>
* </p>
*/
public static final String SP_DATE = "date";
/**
* Search parameter constant for <b>subject</b>
* <p>
* Description: <b></b><br/>
* Type: <b>reference</b><br/>
* Path: <b>Media.subject</b><br/>
* </p>
*/
public static final String SP_SUBJECT = "subject";
/**
* Search parameter constant for <b>operator</b>
* <p>
* Description: <b></b><br/>
* Type: <b>reference</b><br/>
* Path: <b>Media.operator</b><br/>
* </p>
*/
public static final String SP_OPERATOR = "operator";
/**
* Search parameter constant for <b>view</b>
* <p>
* Description: <b></b><br/>
* Type: <b>token</b><br/>
* Path: <b>Media.view</b><br/>
* </p>
*/
public static final String SP_VIEW = "view";
@Child(name="type", type=CodeDt.class, order=0, min=1, max=1)
@Description(
shortDefinition="photo | video | audio",
formalDefinition="Whether the media is a photo (still image), an audio recording, or a video recording"
)
private BoundCodeDt<MediaTypeEnum> myType;
@Child(name="subtype", type=CodeableConceptDt.class, order=1, min=0, max=1)
@Description(
shortDefinition="The type of acquisition equipment/process",
formalDefinition="Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality"
)
private CodeableConceptDt mySubtype;
@Child(name="identifier", type=IdentifierDt.class, order=2, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="Identifier(s) for the image",
formalDefinition="Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers"
)
private java.util.List<IdentifierDt> myIdentifier;
@Child(name="dateTime", type=DateTimeDt.class, order=3, min=0, max=1)
@Description(
shortDefinition="When the media was taken/recorded (end)",
formalDefinition="When the media was originally recorded. For video and audio, if the length of the recording is not insignificant, this is the end of the recording"
)
private DateTimeDt myDateTime;
@Child(name="subject", order=4, min=0, max=1, type={
ca.uhn.fhir.model.dstu.resource.Patient.class,
ca.uhn.fhir.model.dstu.resource.Practitioner.class,
ca.uhn.fhir.model.dstu.resource.Group.class,
ca.uhn.fhir.model.dstu.resource.Device.class,
ca.uhn.fhir.model.dstu.resource.Specimen.class,
})
@Description(
shortDefinition="Who/What this Media is a record of",
formalDefinition="Who/What this Media is a record of"
)
private ResourceReferenceDt mySubject;
@Child(name="operator", order=5, min=0, max=1, type={
ca.uhn.fhir.model.dstu.resource.Practitioner.class,
})
@Description(
shortDefinition="The person who generated the image",
formalDefinition="The person who administered the collection of the image"
)
private ResourceReferenceDt myOperator;
@Child(name="view", type=CodeableConceptDt.class, order=6, min=0, max=1)
@Description(
shortDefinition="Imaging view e.g Lateral or Antero-posterior",
formalDefinition="The name of the imaging view e.g Lateral or Antero-posterior (AP)."
)
private CodeableConceptDt myView;
@Child(name="deviceName", type=StringDt.class, order=7, min=0, max=1)
@Description(
shortDefinition="Name of the device/manufacturer",
formalDefinition="The name of the device / manufacturer of the device that was used to make the recording"
)
private StringDt myDeviceName;
@Child(name="height", type=IntegerDt.class, order=8, min=0, max=1)
@Description(
shortDefinition="Height of the image in pixels(photo/video)",
formalDefinition="Height of the image in pixels(photo/video)"
)
private IntegerDt myHeight;
@Child(name="width", type=IntegerDt.class, order=9, min=0, max=1)
@Description(
shortDefinition="Width of the image in pixels (photo/video)",
formalDefinition="Width of the image in pixels (photo/video)"
)
private IntegerDt myWidth;
@Child(name="frames", type=IntegerDt.class, order=10, min=0, max=1)
@Description(
shortDefinition="Number of frames if > 1 (photo)",
formalDefinition="The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required"
)
private IntegerDt myFrames;
@Child(name="length", type=IntegerDt.class, order=11, min=0, max=1)
@Description(
shortDefinition="Length in seconds (audio / video)",
formalDefinition="The length of the recording in seconds - for audio and video"
)
private IntegerDt myLength;
@Child(name="content", type=AttachmentDt.class, order=12, min=1, max=1)
@Description(
shortDefinition="Actual Media - reference or data",
formalDefinition="The actual content of the media - inline or by direct reference to the media source file"
)
private AttachmentDt myContent;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, mySubtype, myIdentifier, myDateTime, mySubject, myOperator, myView, myDeviceName, myHeight, myWidth, myFrames, myLength, myContent);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myType, mySubtype, myIdentifier, myDateTime, mySubject, myOperator, myView, myDeviceName, myHeight, myWidth, myFrames, myLength, myContent);
}
/**
* Gets the value(s) for <b>type</b> (photo | video | audio).
* creating it if it does
* not exist. Will not return <code>null</code>.
*
* <p>
* <b>Definition:</b>
* Whether the media is a photo (still image), an audio recording, or a video recording
* </p>
*/
public BoundCodeDt<MediaTypeEnum> getType() {
if (myType == null) {
myType = new BoundCodeDt<MediaTypeEnum>(MediaTypeEnum.VALUESET_BINDER);
}
return myType;
}
/**
* Sets the value(s) for <b>type</b> (photo | video | audio)
*
* <p>
* <b>Definition:</b>
* Whether the media is a photo (still image), an audio recording, or a video recording
* </p>
*/
public void setType(BoundCodeDt<MediaTypeEnum> theValue) {
myType = theValue;
}
/**
* Sets the value(s) for <b>type</b> (photo | video | audio)
*
* <p>
* <b>Definition:</b>
* Whether the media is a photo (still image), an audio recording, or a video recording
* </p>
*/
public void setType(MediaTypeEnum theValue) {
getType().setValueAsEnum(theValue);
}
/**
* Gets the value(s) for <b>subtype</b> (The type of acquisition equipment/process).
* creating it if it does
* not exist. Will not return <code>null</code>.
*
* <p>
* <b>Definition:</b>
* Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality
* </p>
*/
public CodeableConceptDt getSubtype() {
if (mySubtype == null) {
mySubtype = new CodeableConceptDt();
}
return mySubtype;
}
/**
* Sets the value(s) for <b>subtype</b> (The type of acquisition equipment/process)
*
* <p>
* <b>Definition:</b>
* Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality
* </p>
*/
public void setSubtype(CodeableConceptDt theValue) {
mySubtype = theValue;
}
/**
* Gets the value(s) for <b>identifier</b> (Identifier(s) for the image).
* creating it if it does
* not exist. Will not return <code>null</code>.
*
* <p>
* <b>Definition:</b>
* Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers
* </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> (Identifier(s) for the image)
*
* <p>
* <b>Definition:</b>
* Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers
* </p>
*/
public void setIdentifier(java.util.List<IdentifierDt> theValue) {
myIdentifier = theValue;
}
/**
* Adds and returns a new value for <b>identifier</b> (Identifier(s) for the image)
*
* <p>
* <b>Definition:</b>
* Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers
* </p>
*/
public IdentifierDt addIdentifier() {
IdentifierDt newType = new IdentifierDt();
getIdentifier().add(newType);
return newType;
}
/**
* Gets the value(s) for <b>dateTime</b> (When the media was taken/recorded (end)).
* creating it if it does
* not exist. Will not return <code>null</code>.
*
* <p>
* <b>Definition:</b>
* When the media was originally recorded. For video and audio, if the length of the recording is not insignificant, this is the end of the recording
* </p>
*/
public DateTimeDt getDateTime() {
if (myDateTime == null) {
myDateTime = new DateTimeDt();
}
return myDateTime;
}
/**
* Sets the value(s) for <b>dateTime</b> (When the media was taken/recorded (end))
*
* <p>
* <b>Definition:</b>
* When the media was originally recorded. For video and audio, if the length of the recording is not insignificant, this is the end of the recording
* </p>
*/
public void setDateTime(DateTimeDt theValue) {
myDateTime = theValue;
}
/**
* Sets the value for <b>dateTime</b> (When the media was taken/recorded (end))
*
* <p>
* <b>Definition:</b>
* When the media was originally recorded. For video and audio, if the length of the recording is not insignificant, this is the end of the recording
* </p>
*/
public void setDateTime( Date theDate, TemporalPrecisionEnum thePrecision) {
myDateTime = new DateTimeDt(theDate, thePrecision);
}
/**
* Sets the value for <b>dateTime</b> (When the media was taken/recorded (end))
*
* <p>
* <b>Definition:</b>
* When the media was originally recorded. For video and audio, if the length of the recording is not insignificant, this is the end of the recording
* </p>
*/
public void setDateTimeWithSecondsPrecision( Date theDate) {
myDateTime = new DateTimeDt(theDate);
}
/**
* Gets the value(s) for <b>subject</b> (Who/What this Media is a record of).
* creating it if it does
* not exist. Will not return <code>null</code>.
*
* <p>
* <b>Definition:</b>
* Who/What this Media is a record of
* </p>
*/
public ResourceReferenceDt getSubject() {
return mySubject;
}
/**
* Sets the value(s) for <b>subject</b> (Who/What this Media is a record of)
*
* <p>
* <b>Definition:</b>
* Who/What this Media is a record of
* </p>
*/
public void setSubject(ResourceReferenceDt theValue) {
mySubject = theValue;
}
/**
* Gets the value(s) for <b>operator</b> (The person who generated the image).
* creating it if it does
* not exist. Will not return <code>null</code>.
*
* <p>
* <b>Definition:</b>
* The person who administered the collection of the image
* </p>
*/
public ResourceReferenceDt getOperator() {
if (myOperator == null) {
myOperator = new ResourceReferenceDt();
}
return myOperator;
}
/**
* Sets the value(s) for <b>operator</b> (The person who generated the image)
*
* <p>
* <b>Definition:</b>
* The person who administered the collection of the image
* </p>
*/
public void setOperator(ResourceReferenceDt theValue) {
myOperator = theValue;
}
/**
* Gets the value(s) for <b>view</b> (Imaging view e.g Lateral or Antero-posterior).
* creating it if it does
* not exist. Will not return <code>null</code>.
*
* <p>
* <b>Definition:</b>
* The name of the imaging view e.g Lateral or Antero-posterior (AP).
* </p>
*/
public CodeableConceptDt getView() {
if (myView == null) {
myView = new CodeableConceptDt();
}
return myView;
}
/**
* Sets the value(s) for <b>view</b> (Imaging view e.g Lateral or Antero-posterior)
*
* <p>
* <b>Definition:</b>
* The name of the imaging view e.g Lateral or Antero-posterior (AP).
* </p>
*/
public void setView(CodeableConceptDt theValue) {
myView = theValue;
}
/**
* Gets the value(s) for <b>deviceName</b> (Name of the device/manufacturer).
* creating it if it does
* not exist. Will not return <code>null</code>.
*
* <p>
* <b>Definition:</b>
* The name of the device / manufacturer of the device that was used to make the recording
* </p>
*/
public StringDt getDeviceName() {
if (myDeviceName == null) {
myDeviceName = new StringDt();
}
return myDeviceName;
}
/**
* Sets the value(s) for <b>deviceName</b> (Name of the device/manufacturer)
*
* <p>
* <b>Definition:</b>
* The name of the device / manufacturer of the device that was used to make the recording
* </p>
*/
public void setDeviceName(StringDt theValue) {
myDeviceName = theValue;
}
/**
* Sets the value for <b>deviceName</b> (Name of the device/manufacturer)
*
* <p>
* <b>Definition:</b>
* The name of the device / manufacturer of the device that was used to make the recording
* </p>
*/
public void setDeviceName( String theString) {
myDeviceName = new StringDt(theString);
}
/**
* Gets the value(s) for <b>height</b> (Height of the image in pixels(photo/video)).
* creating it if it does
* not exist. Will not return <code>null</code>.
*
* <p>
* <b>Definition:</b>
* Height of the image in pixels(photo/video)
* </p>
*/
public IntegerDt getHeight() {
if (myHeight == null) {
myHeight = new IntegerDt();
}
return myHeight;
}
/**
* Sets the value(s) for <b>height</b> (Height of the image in pixels(photo/video))
*
* <p>
* <b>Definition:</b>
* Height of the image in pixels(photo/video)
* </p>
*/
public void setHeight(IntegerDt theValue) {
myHeight = theValue;
}
/**
* Sets the value for <b>height</b> (Height of the image in pixels(photo/video))
*
* <p>
* <b>Definition:</b>
* Height of the image in pixels(photo/video)
* </p>
*/
public void setHeight( Integer theInteger) {
myHeight = new IntegerDt(theInteger);
}
/**
* Gets the value(s) for <b>width</b> (Width of the image in pixels (photo/video)).
* creating it if it does
* not exist. Will not return <code>null</code>.
*
* <p>
* <b>Definition:</b>
* Width of the image in pixels (photo/video)
* </p>
*/
public IntegerDt getWidth() {
if (myWidth == null) {
myWidth = new IntegerDt();
}
return myWidth;
}
/**
* Sets the value(s) for <b>width</b> (Width of the image in pixels (photo/video))
*
* <p>
* <b>Definition:</b>
* Width of the image in pixels (photo/video)
* </p>
*/
public void setWidth(IntegerDt theValue) {
myWidth = theValue;
}
/**
* Sets the value for <b>width</b> (Width of the image in pixels (photo/video))
*
* <p>
* <b>Definition:</b>
* Width of the image in pixels (photo/video)
* </p>
*/
public void setWidth( Integer theInteger) {
myWidth = new IntegerDt(theInteger);
}
/**
* Gets the value(s) for <b>frames</b> (Number of frames if > 1 (photo)).
* creating it if it does
* not exist. Will not return <code>null</code>.
*
* <p>
* <b>Definition:</b>
* The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required
* </p>
*/
public IntegerDt getFrames() {
if (myFrames == null) {
myFrames = new IntegerDt();
}
return myFrames;
}
/**
* Sets the value(s) for <b>frames</b> (Number of frames if > 1 (photo))
*
* <p>
* <b>Definition:</b>
* The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required
* </p>
*/
public void setFrames(IntegerDt theValue) {
myFrames = theValue;
}
/**
* Sets the value for <b>frames</b> (Number of frames if > 1 (photo))
*
* <p>
* <b>Definition:</b>
* The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required
* </p>
*/
public void setFrames( Integer theInteger) {
myFrames = new IntegerDt(theInteger);
}
/**
* Gets the value(s) for <b>length</b> (Length in seconds (audio / video)).
* creating it if it does
* not exist. Will not return <code>null</code>.
*
* <p>
* <b>Definition:</b>
* The length of the recording in seconds - for audio and video
* </p>
*/
public IntegerDt getLength() {
if (myLength == null) {
myLength = new IntegerDt();
}
return myLength;
}
/**
* Sets the value(s) for <b>length</b> (Length in seconds (audio / video))
*
* <p>
* <b>Definition:</b>
* The length of the recording in seconds - for audio and video
* </p>
*/
public void setLength(IntegerDt theValue) {
myLength = theValue;
}
/**
* Sets the value for <b>length</b> (Length in seconds (audio / video))
*
* <p>
* <b>Definition:</b>
* The length of the recording in seconds - for audio and video
* </p>
*/
public void setLength( Integer theInteger) {
myLength = new IntegerDt(theInteger);
}
/**
* Gets the value(s) for <b>content</b> (Actual Media - reference or data).
* creating it if it does
* not exist. Will not return <code>null</code>.
*
* <p>
* <b>Definition:</b>
* The actual content of the media - inline or by direct reference to the media source file
* </p>
*/
public AttachmentDt getContent() {
if (myContent == null) {
myContent = new AttachmentDt();
}
return myContent;
}
/**
* Sets the value(s) for <b>content</b> (Actual Media - reference or data)
*
* <p>
* <b>Definition:</b>
* The actual content of the media - inline or by direct reference to the media source file
* </p>
*/
public void setContent(AttachmentDt theValue) {
myContent = theValue;
}
}

View File

@ -16,12 +16,25 @@
package ca.uhn.fhir.model.dstu.resource;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.composite.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.BaseResource;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.api.IResourceBlock;
import ca.uhn.fhir.model.api.annotation.Block;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu.composite.RatioDt;
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
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.StringDt;
/**
* HAPI/FHIR <b>Medication</b> Resource
@ -133,7 +146,7 @@ public class Medication extends BaseResource implements IResource {
private BooleanDt myIsBrand;
@Child(name="manufacturer", order=3, min=0, max=1, type={
Organization.class,
ca.uhn.fhir.model.dstu.resource.Organization.class,
})
@Description(
shortDefinition="Manufacturer of the item",
@ -167,6 +180,11 @@ public class Medication extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myCode, myIsBrand, myManufacturer, myKind, myProduct, myPackage);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myName, myCode, myIsBrand, myManufacturer, myKind, myProduct, myPackage);
}
/**
* Gets the value(s) for <b>name</b> (Common / Commercial name).
@ -456,13 +474,18 @@ public class Medication extends BaseResource implements IResource {
shortDefinition="Active or inactive ingredient",
formalDefinition="Identifies a particular constituent of interest in the product"
)
private List<ProductIngredient> myIngredient;
private java.util.List<ProductIngredient> myIngredient;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myForm, myIngredient);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myForm, myIngredient);
}
/**
* Gets the value(s) for <b>form</b> (powder | tablets | carton +).
@ -505,9 +528,9 @@ public class Medication extends BaseResource implements IResource {
* Identifies a particular constituent of interest in the product
* </p>
*/
public List<ProductIngredient> getIngredient() {
public java.util.List<ProductIngredient> getIngredient() {
if (myIngredient == null) {
myIngredient = new ArrayList<ProductIngredient>();
myIngredient = new java.util.ArrayList<ProductIngredient>();
}
return myIngredient;
}
@ -520,7 +543,7 @@ public class Medication extends BaseResource implements IResource {
* Identifies a particular constituent of interest in the product
* </p>
*/
public void setIngredient(List<ProductIngredient> theValue) {
public void setIngredient(java.util.List<ProductIngredient> theValue) {
myIngredient = theValue;
}
@ -554,8 +577,8 @@ public class Medication extends BaseResource implements IResource {
public static class ProductIngredient extends BaseElement implements IResourceBlock {
@Child(name="item", order=0, min=1, max=1, type={
Substance.class,
Medication.class,
ca.uhn.fhir.model.dstu.resource.Substance.class,
ca.uhn.fhir.model.dstu.resource.Medication.class,
})
@Description(
shortDefinition="The product contained",
@ -575,6 +598,11 @@ public class Medication extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myItem, myAmount);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myItem, myAmount);
}
/**
* Gets the value(s) for <b>item</b> (The product contained).

View File

@ -16,12 +16,40 @@
package ca.uhn.fhir.model.dstu.resource;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.composite.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import java.util.Date;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.BaseResource;
import ca.uhn.fhir.model.api.IDatatype;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.api.IResourceBlock;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.api.annotation.Block;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
import ca.uhn.fhir.model.dstu.composite.RangeDt;
import ca.uhn.fhir.model.dstu.composite.RatioDt;
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu.composite.SampledDataDt;
import ca.uhn.fhir.model.dstu.valueset.ObservationInterpretationCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum;
import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.DateTimeDt;
import ca.uhn.fhir.model.primitive.InstantDt;
import ca.uhn.fhir.model.primitive.StringDt;
/**
* HAPI/FHIR <b>Observation</b> Resource
@ -280,10 +308,10 @@ public class Observation extends BaseResource implements IResource {
private IdentifierDt myIdentifier;
@Child(name="subject", order=11, min=0, max=1, type={
Patient.class,
Group.class,
Device.class,
Location.class,
ca.uhn.fhir.model.dstu.resource.Patient.class,
ca.uhn.fhir.model.dstu.resource.Group.class,
ca.uhn.fhir.model.dstu.resource.Device.class,
ca.uhn.fhir.model.dstu.resource.Location.class,
})
@Description(
shortDefinition="Who and/or what this is about",
@ -292,7 +320,7 @@ public class Observation extends BaseResource implements IResource {
private ResourceReferenceDt mySubject;
@Child(name="specimen", order=12, min=0, max=1, type={
Specimen.class,
ca.uhn.fhir.model.dstu.resource.Specimen.class,
})
@Description(
shortDefinition="Specimen used for this observation",
@ -301,35 +329,40 @@ public class Observation extends BaseResource implements IResource {
private ResourceReferenceDt mySpecimen;
@Child(name="performer", order=13, min=0, max=Child.MAX_UNLIMITED, type={
Practitioner.class,
Device.class,
Organization.class,
ca.uhn.fhir.model.dstu.resource.Practitioner.class,
ca.uhn.fhir.model.dstu.resource.Device.class,
ca.uhn.fhir.model.dstu.resource.Organization.class,
})
@Description(
shortDefinition="Who did the observation",
formalDefinition="Who was responsible for asserting the observed value as \"true\""
)
private List<ResourceReferenceDt> myPerformer;
private java.util.List<ResourceReferenceDt> myPerformer;
@Child(name="referenceRange", order=14, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="Provides guide for interpretation",
formalDefinition="Guidance on how to interpret the value by comparison to a normal or recommended range"
)
private List<ReferenceRange> myReferenceRange;
private java.util.List<ReferenceRange> myReferenceRange;
@Child(name="related", order=15, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="Observations related to this observation",
formalDefinition="Related observations - either components, or previous observations, or statements of derivation"
)
private List<Related> myRelated;
private java.util.List<Related> myRelated;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myValue, myInterpretation, myComments, myApplies, myIssued, myStatus, myReliability, myBodySite, myMethod, myIdentifier, mySubject, mySpecimen, myPerformer, myReferenceRange, myRelated);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myName, myValue, myInterpretation, myComments, myApplies, myIssued, myStatus, myReliability, myBodySite, myMethod, myIdentifier, mySubject, mySpecimen, myPerformer, myReferenceRange, myRelated);
}
/**
* Gets the value(s) for <b>name</b> (Type of observation (code / type)).
@ -542,8 +575,8 @@ public class Observation extends BaseResource implements IResource {
*
* </p>
*/
public void setIssuedWithMillisPrecision( Date theDate) {
myIssued = new InstantDt(theDate);
public void setIssued( Date theDate, TemporalPrecisionEnum thePrecision) {
myIssued = new InstantDt(theDate, thePrecision);
}
/**
@ -554,8 +587,8 @@ public class Observation extends BaseResource implements IResource {
*
* </p>
*/
public void setIssued( Date theDate, TemporalPrecisionEnum thePrecision) {
myIssued = new InstantDt(theDate, thePrecision);
public void setIssuedWithMillisPrecision( Date theDate) {
myIssued = new InstantDt(theDate);
}
@ -807,7 +840,7 @@ public class Observation extends BaseResource implements IResource {
* Who was responsible for asserting the observed value as \"true\"
* </p>
*/
public List<ResourceReferenceDt> getPerformer() {
public java.util.List<ResourceReferenceDt> getPerformer() {
return myPerformer;
}
@ -819,7 +852,7 @@ public class Observation extends BaseResource implements IResource {
* Who was responsible for asserting the observed value as \"true\"
* </p>
*/
public void setPerformer(List<ResourceReferenceDt> theValue) {
public void setPerformer(java.util.List<ResourceReferenceDt> theValue) {
myPerformer = theValue;
}
@ -835,9 +868,9 @@ public class Observation extends BaseResource implements IResource {
* Guidance on how to interpret the value by comparison to a normal or recommended range
* </p>
*/
public List<ReferenceRange> getReferenceRange() {
public java.util.List<ReferenceRange> getReferenceRange() {
if (myReferenceRange == null) {
myReferenceRange = new ArrayList<ReferenceRange>();
myReferenceRange = new java.util.ArrayList<ReferenceRange>();
}
return myReferenceRange;
}
@ -850,7 +883,7 @@ public class Observation extends BaseResource implements IResource {
* Guidance on how to interpret the value by comparison to a normal or recommended range
* </p>
*/
public void setReferenceRange(List<ReferenceRange> theValue) {
public void setReferenceRange(java.util.List<ReferenceRange> theValue) {
myReferenceRange = theValue;
}
@ -879,9 +912,9 @@ public class Observation extends BaseResource implements IResource {
* Related observations - either components, or previous observations, or statements of derivation
* </p>
*/
public List<Related> getRelated() {
public java.util.List<Related> getRelated() {
if (myRelated == null) {
myRelated = new ArrayList<Related>();
myRelated = new java.util.ArrayList<Related>();
}
return myRelated;
}
@ -894,7 +927,7 @@ public class Observation extends BaseResource implements IResource {
* Related observations - either components, or previous observations, or statements of derivation
* </p>
*/
public void setRelated(List<Related> theValue) {
public void setRelated(java.util.List<Related> theValue) {
myRelated = theValue;
}
@ -957,6 +990,11 @@ public class Observation extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myLow, myHigh, myMeaning, myAge);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myLow, myHigh, myMeaning, myAge);
}
/**
* Gets the value(s) for <b>low</b> (Low Range, if relevant).
@ -1105,7 +1143,7 @@ public class Observation extends BaseResource implements IResource {
private BoundCodeDt<ObservationRelationshipTypeEnum> myType;
@Child(name="target", order=1, min=1, max=1, type={
Observation.class,
ca.uhn.fhir.model.dstu.resource.Observation.class,
})
@Description(
shortDefinition="Observation that is related to this one",
@ -1118,6 +1156,11 @@ public class Observation extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myTarget);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myType, myTarget);
}
/**
* Gets the value(s) for <b>type</b> (has-component | has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by).

View File

@ -16,12 +16,28 @@
package ca.uhn.fhir.model.dstu.resource;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.composite.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.BaseResource;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.api.IResourceBlock;
import ca.uhn.fhir.model.api.annotation.Block;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.dstu.composite.AddressDt;
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu.composite.ContactDt;
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
import ca.uhn.fhir.model.primitive.BooleanDt;
import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt;
import ca.uhn.fhir.model.primitive.StringDt;
/**
* HAPI/FHIR <b>Organization</b> Resource
@ -116,7 +132,7 @@ public class Organization extends BaseResource implements IResource {
shortDefinition="Identifies this organization across multiple systems",
formalDefinition="Identifier for the organization that is used to identify the organization across multiple disparate systems"
)
private List<IdentifierDt> myIdentifier;
private java.util.List<IdentifierDt> myIdentifier;
@Child(name="name", type=StringDt.class, order=1, min=0, max=1)
@Description(
@ -137,17 +153,17 @@ public class Organization extends BaseResource implements IResource {
shortDefinition="A contact detail for the organization",
formalDefinition="A contact detail for the organization"
)
private List<ContactDt> myTelecom;
private java.util.List<ContactDt> myTelecom;
@Child(name="address", type=AddressDt.class, order=4, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="An address for the organization",
formalDefinition="An address for the organization"
)
private List<AddressDt> myAddress;
private java.util.List<AddressDt> myAddress;
@Child(name="partOf", order=5, min=0, max=1, type={
Organization.class,
ca.uhn.fhir.model.dstu.resource.Organization.class,
})
@Description(
shortDefinition="The organization of which this organization forms a part",
@ -160,16 +176,16 @@ public class Organization extends BaseResource implements IResource {
shortDefinition="Contact for the organization for a certain purpose",
formalDefinition=""
)
private List<Contact> myContact;
private java.util.List<Contact> myContact;
@Child(name="location", order=7, min=0, max=Child.MAX_UNLIMITED, type={
Location.class,
ca.uhn.fhir.model.dstu.resource.Location.class,
})
@Description(
shortDefinition="Location(s) the organization uses to provide services",
formalDefinition="Location(s) the organization uses to provide services"
)
private List<ResourceReferenceDt> myLocation;
private java.util.List<ResourceReferenceDt> myLocation;
@Child(name="active", type=BooleanDt.class, order=8, min=0, max=1)
@Description(
@ -183,6 +199,11 @@ public class Organization extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myName, myType, myTelecom, myAddress, myPartOf, myContact, myLocation, myActive);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myIdentifier, myName, myType, myTelecom, myAddress, myPartOf, myContact, myLocation, myActive);
}
/**
* Gets the value(s) for <b>identifier</b> (Identifies this organization across multiple systems).
@ -194,9 +215,9 @@ public class Organization extends BaseResource implements IResource {
* Identifier for the organization that is used to identify the organization across multiple disparate systems
* </p>
*/
public List<IdentifierDt> getIdentifier() {
public java.util.List<IdentifierDt> getIdentifier() {
if (myIdentifier == null) {
myIdentifier = new ArrayList<IdentifierDt>();
myIdentifier = new java.util.ArrayList<IdentifierDt>();
}
return myIdentifier;
}
@ -209,7 +230,7 @@ public class Organization extends BaseResource implements IResource {
* Identifier for the organization that is used to identify the organization across multiple disparate systems
* </p>
*/
public void setIdentifier(List<IdentifierDt> theValue) {
public void setIdentifier(java.util.List<IdentifierDt> theValue) {
myIdentifier = theValue;
}
@ -324,9 +345,9 @@ public class Organization extends BaseResource implements IResource {
* A contact detail for the organization
* </p>
*/
public List<ContactDt> getTelecom() {
public java.util.List<ContactDt> getTelecom() {
if (myTelecom == null) {
myTelecom = new ArrayList<ContactDt>();
myTelecom = new java.util.ArrayList<ContactDt>();
}
return myTelecom;
}
@ -339,7 +360,7 @@ public class Organization extends BaseResource implements IResource {
* A contact detail for the organization
* </p>
*/
public void setTelecom(List<ContactDt> theValue) {
public void setTelecom(java.util.List<ContactDt> theValue) {
myTelecom = theValue;
}
@ -368,9 +389,9 @@ public class Organization extends BaseResource implements IResource {
* An address for the organization
* </p>
*/
public List<AddressDt> getAddress() {
public java.util.List<AddressDt> getAddress() {
if (myAddress == null) {
myAddress = new ArrayList<AddressDt>();
myAddress = new java.util.ArrayList<AddressDt>();
}
return myAddress;
}
@ -383,7 +404,7 @@ public class Organization extends BaseResource implements IResource {
* An address for the organization
* </p>
*/
public void setAddress(List<AddressDt> theValue) {
public void setAddress(java.util.List<AddressDt> theValue) {
myAddress = theValue;
}
@ -443,9 +464,9 @@ public class Organization extends BaseResource implements IResource {
*
* </p>
*/
public List<Contact> getContact() {
public java.util.List<Contact> getContact() {
if (myContact == null) {
myContact = new ArrayList<Contact>();
myContact = new java.util.ArrayList<Contact>();
}
return myContact;
}
@ -458,7 +479,7 @@ public class Organization extends BaseResource implements IResource {
*
* </p>
*/
public void setContact(List<Contact> theValue) {
public void setContact(java.util.List<Contact> theValue) {
myContact = theValue;
}
@ -487,9 +508,9 @@ public class Organization extends BaseResource implements IResource {
* Location(s) the organization uses to provide services
* </p>
*/
public List<ResourceReferenceDt> getLocation() {
public java.util.List<ResourceReferenceDt> getLocation() {
if (myLocation == null) {
myLocation = new ArrayList<ResourceReferenceDt>();
myLocation = new java.util.ArrayList<ResourceReferenceDt>();
}
return myLocation;
}
@ -502,7 +523,7 @@ public class Organization extends BaseResource implements IResource {
* Location(s) the organization uses to provide services
* </p>
*/
public void setLocation(List<ResourceReferenceDt> theValue) {
public void setLocation(java.util.List<ResourceReferenceDt> theValue) {
myLocation = theValue;
}
@ -581,7 +602,7 @@ public class Organization extends BaseResource implements IResource {
shortDefinition="Contact details (telephone, email, etc) for a contact",
formalDefinition="A contact detail (e.g. a telephone number or an email address) by which the party may be contacted."
)
private List<ContactDt> myTelecom;
private java.util.List<ContactDt> myTelecom;
@Child(name="address", type=AddressDt.class, order=3, min=0, max=1)
@Description(
@ -602,6 +623,11 @@ public class Organization extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myPurpose, myName, myTelecom, myAddress, myGender);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myPurpose, myName, myTelecom, myAddress, myGender);
}
/**
* Gets the value(s) for <b>purpose</b> (The type of contact).
@ -675,9 +701,9 @@ public class Organization extends BaseResource implements IResource {
* A contact detail (e.g. a telephone number or an email address) by which the party may be contacted.
* </p>
*/
public List<ContactDt> getTelecom() {
public java.util.List<ContactDt> getTelecom() {
if (myTelecom == null) {
myTelecom = new ArrayList<ContactDt>();
myTelecom = new java.util.ArrayList<ContactDt>();
}
return myTelecom;
}
@ -690,7 +716,7 @@ public class Organization extends BaseResource implements IResource {
* A contact detail (e.g. a telephone number or an email address) by which the party may be contacted.
* </p>
*/
public void setTelecom(List<ContactDt> theValue) {
public void setTelecom(java.util.List<ContactDt> theValue) {
myTelecom = theValue;
}

View File

@ -16,12 +16,38 @@
package ca.uhn.fhir.model.dstu.resource;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.composite.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import java.util.Date;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.BaseResource;
import ca.uhn.fhir.model.api.IDatatype;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.api.IResourceBlock;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.api.annotation.Block;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.dstu.composite.AddressDt;
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu.composite.ContactDt;
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum;
import ca.uhn.fhir.model.primitive.BooleanDt;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.DateTimeDt;
import ca.uhn.fhir.model.primitive.IntegerDt;
/**
* HAPI/FHIR <b>Patient</b> Resource
@ -196,21 +222,21 @@ public class Patient extends BaseResource implements IResource {
shortDefinition="An identifier for the person as this patient",
formalDefinition="An identifier that applies to this person as a patient"
)
private List<IdentifierDt> myIdentifier;
private java.util.List<IdentifierDt> myIdentifier;
@Child(name="name", type=HumanNameDt.class, order=1, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="A name associated with the patient",
formalDefinition="A name associated with the individual."
)
private List<HumanNameDt> myName;
private java.util.List<HumanNameDt> myName;
@Child(name="telecom", type=ContactDt.class, order=2, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="A contact detail for the individual",
formalDefinition="A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted."
)
private List<ContactDt> myTelecom;
private java.util.List<ContactDt> myTelecom;
@Child(name="gender", type=CodeableConceptDt.class, order=3, min=0, max=1)
@Description(
@ -241,7 +267,7 @@ public class Patient extends BaseResource implements IResource {
shortDefinition="Addresses for the individual",
formalDefinition="Addresses for the individual"
)
private List<AddressDt> myAddress;
private java.util.List<AddressDt> myAddress;
@Child(name="maritalStatus", type=CodeableConceptDt.class, order=7, min=0, max=1)
@Description(
@ -265,14 +291,14 @@ public class Patient extends BaseResource implements IResource {
shortDefinition="Image of the person",
formalDefinition="Image of the person"
)
private List<AttachmentDt> myPhoto;
private java.util.List<AttachmentDt> myPhoto;
@Child(name="contact", order=10, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="A contact party (e.g. guardian, partner, friend) for the patient",
formalDefinition="A contact party (e.g. guardian, partner, friend) for the patient"
)
private List<Contact> myContact;
private java.util.List<Contact> myContact;
@Child(name="animal", order=11, min=0, max=1)
@Description(
@ -286,20 +312,20 @@ public class Patient extends BaseResource implements IResource {
shortDefinition="Languages which may be used to communicate with the patient about his or her health",
formalDefinition="Languages which may be used to communicate with the patient about his or her health"
)
private List<CodeableConceptDt> myCommunication;
private java.util.List<CodeableConceptDt> myCommunication;
@Child(name="careProvider", order=13, min=0, max=Child.MAX_UNLIMITED, type={
Organization.class,
Practitioner.class,
ca.uhn.fhir.model.dstu.resource.Organization.class,
ca.uhn.fhir.model.dstu.resource.Practitioner.class,
})
@Description(
shortDefinition="Patient's nominated care provider",
formalDefinition="Patient's nominated care provider"
)
private List<ResourceReferenceDt> myCareProvider;
private java.util.List<ResourceReferenceDt> myCareProvider;
@Child(name="managingOrganization", order=14, min=0, max=1, type={
Organization.class,
ca.uhn.fhir.model.dstu.resource.Organization.class,
})
@Description(
shortDefinition="Organization that is the custodian of the patient record",
@ -312,7 +338,7 @@ public class Patient extends BaseResource implements IResource {
shortDefinition="Link to another patient resource that concerns the same actual person",
formalDefinition="Link to another patient resource that concerns the same actual person"
)
private List<Link> myLink;
private java.util.List<Link> myLink;
@Child(name="active", type=BooleanDt.class, order=16, min=0, max=1)
@Description(
@ -326,6 +352,11 @@ public class Patient extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myName, myTelecom, myGender, myBirthDate, myDeceased, myAddress, myMaritalStatus, myMultipleBirth, myPhoto, myContact, myAnimal, myCommunication, myCareProvider, myManagingOrganization, myLink, myActive);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myIdentifier, myName, myTelecom, myGender, myBirthDate, myDeceased, myAddress, myMaritalStatus, myMultipleBirth, myPhoto, myContact, myAnimal, myCommunication, myCareProvider, myManagingOrganization, myLink, myActive);
}
/**
* Gets the value(s) for <b>identifier</b> (An identifier for the person as this patient).
@ -337,9 +368,9 @@ public class Patient extends BaseResource implements IResource {
* An identifier that applies to this person as a patient
* </p>
*/
public List<IdentifierDt> getIdentifier() {
public java.util.List<IdentifierDt> getIdentifier() {
if (myIdentifier == null) {
myIdentifier = new ArrayList<IdentifierDt>();
myIdentifier = new java.util.ArrayList<IdentifierDt>();
}
return myIdentifier;
}
@ -352,7 +383,7 @@ public class Patient extends BaseResource implements IResource {
* An identifier that applies to this person as a patient
* </p>
*/
public void setIdentifier(List<IdentifierDt> theValue) {
public void setIdentifier(java.util.List<IdentifierDt> theValue) {
myIdentifier = theValue;
}
@ -381,9 +412,9 @@ public class Patient extends BaseResource implements IResource {
* A name associated with the individual.
* </p>
*/
public List<HumanNameDt> getName() {
public java.util.List<HumanNameDt> getName() {
if (myName == null) {
myName = new ArrayList<HumanNameDt>();
myName = new java.util.ArrayList<HumanNameDt>();
}
return myName;
}
@ -396,7 +427,7 @@ public class Patient extends BaseResource implements IResource {
* A name associated with the individual.
* </p>
*/
public void setName(List<HumanNameDt> theValue) {
public void setName(java.util.List<HumanNameDt> theValue) {
myName = theValue;
}
@ -425,9 +456,9 @@ public class Patient extends BaseResource implements IResource {
* A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted.
* </p>
*/
public List<ContactDt> getTelecom() {
public java.util.List<ContactDt> getTelecom() {
if (myTelecom == null) {
myTelecom = new ArrayList<ContactDt>();
myTelecom = new java.util.ArrayList<ContactDt>();
}
return myTelecom;
}
@ -440,7 +471,7 @@ public class Patient extends BaseResource implements IResource {
* A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted.
* </p>
*/
public void setTelecom(List<ContactDt> theValue) {
public void setTelecom(java.util.List<ContactDt> theValue) {
myTelecom = theValue;
}
@ -540,8 +571,8 @@ public class Patient extends BaseResource implements IResource {
* The date and time of birth for the individual
* </p>
*/
public void setBirthDateWithSecondsPrecision( Date theDate) {
myBirthDate = new DateTimeDt(theDate);
public void setBirthDate( Date theDate, TemporalPrecisionEnum thePrecision) {
myBirthDate = new DateTimeDt(theDate, thePrecision);
}
/**
@ -552,8 +583,8 @@ public class Patient extends BaseResource implements IResource {
* The date and time of birth for the individual
* </p>
*/
public void setBirthDate( Date theDate, TemporalPrecisionEnum thePrecision) {
myBirthDate = new DateTimeDt(theDate, thePrecision);
public void setBirthDateWithSecondsPrecision( Date theDate) {
myBirthDate = new DateTimeDt(theDate);
}
@ -595,9 +626,9 @@ public class Patient extends BaseResource implements IResource {
* Addresses for the individual
* </p>
*/
public List<AddressDt> getAddress() {
public java.util.List<AddressDt> getAddress() {
if (myAddress == null) {
myAddress = new ArrayList<AddressDt>();
myAddress = new java.util.ArrayList<AddressDt>();
}
return myAddress;
}
@ -610,7 +641,7 @@ public class Patient extends BaseResource implements IResource {
* Addresses for the individual
* </p>
*/
public void setAddress(List<AddressDt> theValue) {
public void setAddress(java.util.List<AddressDt> theValue) {
myAddress = theValue;
}
@ -710,9 +741,9 @@ public class Patient extends BaseResource implements IResource {
* Image of the person
* </p>
*/
public List<AttachmentDt> getPhoto() {
public java.util.List<AttachmentDt> getPhoto() {
if (myPhoto == null) {
myPhoto = new ArrayList<AttachmentDt>();
myPhoto = new java.util.ArrayList<AttachmentDt>();
}
return myPhoto;
}
@ -725,7 +756,7 @@ public class Patient extends BaseResource implements IResource {
* Image of the person
* </p>
*/
public void setPhoto(List<AttachmentDt> theValue) {
public void setPhoto(java.util.List<AttachmentDt> theValue) {
myPhoto = theValue;
}
@ -754,9 +785,9 @@ public class Patient extends BaseResource implements IResource {
* A contact party (e.g. guardian, partner, friend) for the patient
* </p>
*/
public List<Contact> getContact() {
public java.util.List<Contact> getContact() {
if (myContact == null) {
myContact = new ArrayList<Contact>();
myContact = new java.util.ArrayList<Contact>();
}
return myContact;
}
@ -769,7 +800,7 @@ public class Patient extends BaseResource implements IResource {
* A contact party (e.g. guardian, partner, friend) for the patient
* </p>
*/
public void setContact(List<Contact> theValue) {
public void setContact(java.util.List<Contact> theValue) {
myContact = theValue;
}
@ -829,9 +860,9 @@ public class Patient extends BaseResource implements IResource {
* Languages which may be used to communicate with the patient about his or her health
* </p>
*/
public List<CodeableConceptDt> getCommunication() {
public java.util.List<CodeableConceptDt> getCommunication() {
if (myCommunication == null) {
myCommunication = new ArrayList<CodeableConceptDt>();
myCommunication = new java.util.ArrayList<CodeableConceptDt>();
}
return myCommunication;
}
@ -844,7 +875,7 @@ public class Patient extends BaseResource implements IResource {
* Languages which may be used to communicate with the patient about his or her health
* </p>
*/
public void setCommunication(List<CodeableConceptDt> theValue) {
public void setCommunication(java.util.List<CodeableConceptDt> theValue) {
myCommunication = theValue;
}
@ -873,7 +904,7 @@ public class Patient extends BaseResource implements IResource {
* Patient's nominated care provider
* </p>
*/
public List<ResourceReferenceDt> getCareProvider() {
public java.util.List<ResourceReferenceDt> getCareProvider() {
return myCareProvider;
}
@ -885,7 +916,7 @@ public class Patient extends BaseResource implements IResource {
* Patient's nominated care provider
* </p>
*/
public void setCareProvider(List<ResourceReferenceDt> theValue) {
public void setCareProvider(java.util.List<ResourceReferenceDt> theValue) {
myCareProvider = theValue;
}
@ -932,9 +963,9 @@ public class Patient extends BaseResource implements IResource {
* Link to another patient resource that concerns the same actual person
* </p>
*/
public List<Link> getLink() {
public java.util.List<Link> getLink() {
if (myLink == null) {
myLink = new ArrayList<Link>();
myLink = new java.util.ArrayList<Link>();
}
return myLink;
}
@ -947,7 +978,7 @@ public class Patient extends BaseResource implements IResource {
* Link to another patient resource that concerns the same actual person
* </p>
*/
public void setLink(List<Link> theValue) {
public void setLink(java.util.List<Link> theValue) {
myLink = theValue;
}
@ -1025,7 +1056,7 @@ public class Patient extends BaseResource implements IResource {
shortDefinition="The kind of relationship",
formalDefinition="The nature of the relationship between the patient and the contact person"
)
private List<CodeableConceptDt> myRelationship;
private java.util.List<CodeableConceptDt> myRelationship;
@Child(name="name", type=HumanNameDt.class, order=1, min=0, max=1)
@Description(
@ -1039,7 +1070,7 @@ public class Patient extends BaseResource implements IResource {
shortDefinition="A contact detail for the person",
formalDefinition="A contact detail for the person, e.g. a telephone number or an email address."
)
private List<ContactDt> myTelecom;
private java.util.List<ContactDt> myTelecom;
@Child(name="address", type=AddressDt.class, order=3, min=0, max=1)
@Description(
@ -1056,7 +1087,7 @@ public class Patient extends BaseResource implements IResource {
private BoundCodeableConceptDt<AdministrativeGenderCodesEnum> myGender;
@Child(name="organization", order=5, min=0, max=1, type={
Organization.class,
ca.uhn.fhir.model.dstu.resource.Organization.class,
})
@Description(
shortDefinition="Organization that is associated with the contact",
@ -1069,6 +1100,11 @@ public class Patient extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myRelationship, myName, myTelecom, myAddress, myGender, myOrganization);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myRelationship, myName, myTelecom, myAddress, myGender, myOrganization);
}
/**
* Gets the value(s) for <b>relationship</b> (The kind of relationship).
@ -1080,9 +1116,9 @@ public class Patient extends BaseResource implements IResource {
* The nature of the relationship between the patient and the contact person
* </p>
*/
public List<CodeableConceptDt> getRelationship() {
public java.util.List<CodeableConceptDt> getRelationship() {
if (myRelationship == null) {
myRelationship = new ArrayList<CodeableConceptDt>();
myRelationship = new java.util.ArrayList<CodeableConceptDt>();
}
return myRelationship;
}
@ -1095,7 +1131,7 @@ public class Patient extends BaseResource implements IResource {
* The nature of the relationship between the patient and the contact person
* </p>
*/
public void setRelationship(List<CodeableConceptDt> theValue) {
public void setRelationship(java.util.List<CodeableConceptDt> theValue) {
myRelationship = theValue;
}
@ -1155,9 +1191,9 @@ public class Patient extends BaseResource implements IResource {
* A contact detail for the person, e.g. a telephone number or an email address.
* </p>
*/
public List<ContactDt> getTelecom() {
public java.util.List<ContactDt> getTelecom() {
if (myTelecom == null) {
myTelecom = new ArrayList<ContactDt>();
myTelecom = new java.util.ArrayList<ContactDt>();
}
return myTelecom;
}
@ -1170,7 +1206,7 @@ public class Patient extends BaseResource implements IResource {
* A contact detail for the person, e.g. a telephone number or an email address.
* </p>
*/
public void setTelecom(List<ContactDt> theValue) {
public void setTelecom(java.util.List<ContactDt> theValue) {
myTelecom = theValue;
}
@ -1335,6 +1371,11 @@ public class Patient extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySpecies, myBreed, myGenderStatus);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( mySpecies, myBreed, myGenderStatus);
}
/**
* Gets the value(s) for <b>species</b> (E.g. Dog, Cow).
@ -1457,7 +1498,7 @@ public class Patient extends BaseResource implements IResource {
public static class Link extends BaseElement implements IResourceBlock {
@Child(name="other", order=0, min=1, max=1, type={
Patient.class,
ca.uhn.fhir.model.dstu.resource.Patient.class,
})
@Description(
shortDefinition="The other patient resource that the link refers to",
@ -1477,6 +1518,11 @@ public class Patient extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myOther, myType);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myOther, myType);
}
/**
* Gets the value(s) for <b>other</b> (The other patient resource that the link refers to).

View File

@ -16,12 +16,33 @@
package ca.uhn.fhir.model.dstu.resource;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.composite.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import java.util.Date;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.BaseResource;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.api.IResourceBlock;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.api.annotation.Block;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.dstu.composite.AddressDt;
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu.composite.ContactDt;
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum;
import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum;
import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt;
import ca.uhn.fhir.model.primitive.DateTimeDt;
/**
* HAPI/FHIR <b>Practitioner</b> Resource
@ -136,7 +157,7 @@ public class Practitioner extends BaseResource implements IResource {
shortDefinition="A identifier for the person as this agent",
formalDefinition="An identifier that applies to this person in this role"
)
private List<IdentifierDt> myIdentifier;
private java.util.List<IdentifierDt> myIdentifier;
@Child(name="name", type=HumanNameDt.class, order=1, min=0, max=1)
@Description(
@ -150,7 +171,7 @@ public class Practitioner extends BaseResource implements IResource {
shortDefinition="A contact detail for the practitioner",
formalDefinition="A contact detail for the practitioner, e.g. a telephone number or an email address."
)
private List<ContactDt> myTelecom;
private java.util.List<ContactDt> myTelecom;
@Child(name="address", type=AddressDt.class, order=3, min=0, max=1)
@Description(
@ -178,10 +199,10 @@ public class Practitioner extends BaseResource implements IResource {
shortDefinition="Image of the person",
formalDefinition="Image of the person"
)
private List<AttachmentDt> myPhoto;
private java.util.List<AttachmentDt> myPhoto;
@Child(name="organization", order=7, min=0, max=1, type={
Organization.class,
ca.uhn.fhir.model.dstu.resource.Organization.class,
})
@Description(
shortDefinition="The represented organization",
@ -194,14 +215,14 @@ public class Practitioner extends BaseResource implements IResource {
shortDefinition="Roles which this practitioner may perform",
formalDefinition="Roles which this practitioner is authorized to perform for the organization"
)
private List<BoundCodeableConceptDt<PractitionerRoleEnum>> myRole;
private java.util.List<BoundCodeableConceptDt<PractitionerRoleEnum>> myRole;
@Child(name="specialty", type=CodeableConceptDt.class, order=9, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="Specific specialty of the practitioner",
formalDefinition="Specific specialty of the practitioner"
)
private List<BoundCodeableConceptDt<PractitionerSpecialtyEnum>> mySpecialty;
private java.util.List<BoundCodeableConceptDt<PractitionerSpecialtyEnum>> mySpecialty;
@Child(name="period", type=PeriodDt.class, order=10, min=0, max=1)
@Description(
@ -211,33 +232,38 @@ public class Practitioner extends BaseResource implements IResource {
private PeriodDt myPeriod;
@Child(name="location", order=11, min=0, max=Child.MAX_UNLIMITED, type={
Location.class,
ca.uhn.fhir.model.dstu.resource.Location.class,
})
@Description(
shortDefinition="The location(s) at which this practitioner provides care",
formalDefinition="The location(s) at which this practitioner provides care"
)
private List<ResourceReferenceDt> myLocation;
private java.util.List<ResourceReferenceDt> myLocation;
@Child(name="qualification", order=12, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="Qualifications obtained by training and certification",
formalDefinition=""
)
private List<Qualification> myQualification;
private java.util.List<Qualification> myQualification;
@Child(name="communication", type=CodeableConceptDt.class, order=13, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="A language the practitioner is able to use in patient communication",
formalDefinition="A language the practitioner is able to use in patient communication"
)
private List<CodeableConceptDt> myCommunication;
private java.util.List<CodeableConceptDt> myCommunication;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myName, myTelecom, myAddress, myGender, myBirthDate, myPhoto, myOrganization, myRole, mySpecialty, myPeriod, myLocation, myQualification, myCommunication);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myIdentifier, myName, myTelecom, myAddress, myGender, myBirthDate, myPhoto, myOrganization, myRole, mySpecialty, myPeriod, myLocation, myQualification, myCommunication);
}
/**
* Gets the value(s) for <b>identifier</b> (A identifier for the person as this agent).
@ -249,9 +275,9 @@ public class Practitioner extends BaseResource implements IResource {
* An identifier that applies to this person in this role
* </p>
*/
public List<IdentifierDt> getIdentifier() {
public java.util.List<IdentifierDt> getIdentifier() {
if (myIdentifier == null) {
myIdentifier = new ArrayList<IdentifierDt>();
myIdentifier = new java.util.ArrayList<IdentifierDt>();
}
return myIdentifier;
}
@ -264,7 +290,7 @@ public class Practitioner extends BaseResource implements IResource {
* An identifier that applies to this person in this role
* </p>
*/
public void setIdentifier(List<IdentifierDt> theValue) {
public void setIdentifier(java.util.List<IdentifierDt> theValue) {
myIdentifier = theValue;
}
@ -324,9 +350,9 @@ public class Practitioner extends BaseResource implements IResource {
* A contact detail for the practitioner, e.g. a telephone number or an email address.
* </p>
*/
public List<ContactDt> getTelecom() {
public java.util.List<ContactDt> getTelecom() {
if (myTelecom == null) {
myTelecom = new ArrayList<ContactDt>();
myTelecom = new java.util.ArrayList<ContactDt>();
}
return myTelecom;
}
@ -339,7 +365,7 @@ public class Practitioner extends BaseResource implements IResource {
* A contact detail for the practitioner, e.g. a telephone number or an email address.
* </p>
*/
public void setTelecom(List<ContactDt> theValue) {
public void setTelecom(java.util.List<ContactDt> theValue) {
myTelecom = theValue;
}
@ -470,8 +496,8 @@ public class Practitioner extends BaseResource implements IResource {
* The date and time of birth for the practitioner
* </p>
*/
public void setBirthDateWithSecondsPrecision( Date theDate) {
myBirthDate = new DateTimeDt(theDate);
public void setBirthDate( Date theDate, TemporalPrecisionEnum thePrecision) {
myBirthDate = new DateTimeDt(theDate, thePrecision);
}
/**
@ -482,8 +508,8 @@ public class Practitioner extends BaseResource implements IResource {
* The date and time of birth for the practitioner
* </p>
*/
public void setBirthDate( Date theDate, TemporalPrecisionEnum thePrecision) {
myBirthDate = new DateTimeDt(theDate, thePrecision);
public void setBirthDateWithSecondsPrecision( Date theDate) {
myBirthDate = new DateTimeDt(theDate);
}
@ -497,9 +523,9 @@ public class Practitioner extends BaseResource implements IResource {
* Image of the person
* </p>
*/
public List<AttachmentDt> getPhoto() {
public java.util.List<AttachmentDt> getPhoto() {
if (myPhoto == null) {
myPhoto = new ArrayList<AttachmentDt>();
myPhoto = new java.util.ArrayList<AttachmentDt>();
}
return myPhoto;
}
@ -512,7 +538,7 @@ public class Practitioner extends BaseResource implements IResource {
* Image of the person
* </p>
*/
public void setPhoto(List<AttachmentDt> theValue) {
public void setPhoto(java.util.List<AttachmentDt> theValue) {
myPhoto = theValue;
}
@ -572,9 +598,9 @@ public class Practitioner extends BaseResource implements IResource {
* Roles which this practitioner is authorized to perform for the organization
* </p>
*/
public List<BoundCodeableConceptDt<PractitionerRoleEnum>> getRole() {
public java.util.List<BoundCodeableConceptDt<PractitionerRoleEnum>> getRole() {
if (myRole == null) {
myRole = new ArrayList<BoundCodeableConceptDt<PractitionerRoleEnum>>();
myRole = new java.util.ArrayList<BoundCodeableConceptDt<PractitionerRoleEnum>>();
}
return myRole;
}
@ -587,7 +613,7 @@ public class Practitioner extends BaseResource implements IResource {
* Roles which this practitioner is authorized to perform for the organization
* </p>
*/
public void setRole(List<BoundCodeableConceptDt<PractitionerRoleEnum>> theValue) {
public void setRole(java.util.List<BoundCodeableConceptDt<PractitionerRoleEnum>> theValue) {
myRole = theValue;
}
@ -628,9 +654,9 @@ public class Practitioner extends BaseResource implements IResource {
* Specific specialty of the practitioner
* </p>
*/
public List<BoundCodeableConceptDt<PractitionerSpecialtyEnum>> getSpecialty() {
public java.util.List<BoundCodeableConceptDt<PractitionerSpecialtyEnum>> getSpecialty() {
if (mySpecialty == null) {
mySpecialty = new ArrayList<BoundCodeableConceptDt<PractitionerSpecialtyEnum>>();
mySpecialty = new java.util.ArrayList<BoundCodeableConceptDt<PractitionerSpecialtyEnum>>();
}
return mySpecialty;
}
@ -643,7 +669,7 @@ public class Practitioner extends BaseResource implements IResource {
* Specific specialty of the practitioner
* </p>
*/
public void setSpecialty(List<BoundCodeableConceptDt<PractitionerSpecialtyEnum>> theValue) {
public void setSpecialty(java.util.List<BoundCodeableConceptDt<PractitionerSpecialtyEnum>> theValue) {
mySpecialty = theValue;
}
@ -715,9 +741,9 @@ public class Practitioner extends BaseResource implements IResource {
* The location(s) at which this practitioner provides care
* </p>
*/
public List<ResourceReferenceDt> getLocation() {
public java.util.List<ResourceReferenceDt> getLocation() {
if (myLocation == null) {
myLocation = new ArrayList<ResourceReferenceDt>();
myLocation = new java.util.ArrayList<ResourceReferenceDt>();
}
return myLocation;
}
@ -730,7 +756,7 @@ public class Practitioner extends BaseResource implements IResource {
* The location(s) at which this practitioner provides care
* </p>
*/
public void setLocation(List<ResourceReferenceDt> theValue) {
public void setLocation(java.util.List<ResourceReferenceDt> theValue) {
myLocation = theValue;
}
@ -746,9 +772,9 @@ public class Practitioner extends BaseResource implements IResource {
*
* </p>
*/
public List<Qualification> getQualification() {
public java.util.List<Qualification> getQualification() {
if (myQualification == null) {
myQualification = new ArrayList<Qualification>();
myQualification = new java.util.ArrayList<Qualification>();
}
return myQualification;
}
@ -761,7 +787,7 @@ public class Practitioner extends BaseResource implements IResource {
*
* </p>
*/
public void setQualification(List<Qualification> theValue) {
public void setQualification(java.util.List<Qualification> theValue) {
myQualification = theValue;
}
@ -790,9 +816,9 @@ public class Practitioner extends BaseResource implements IResource {
* A language the practitioner is able to use in patient communication
* </p>
*/
public List<CodeableConceptDt> getCommunication() {
public java.util.List<CodeableConceptDt> getCommunication() {
if (myCommunication == null) {
myCommunication = new ArrayList<CodeableConceptDt>();
myCommunication = new java.util.ArrayList<CodeableConceptDt>();
}
return myCommunication;
}
@ -805,7 +831,7 @@ public class Practitioner extends BaseResource implements IResource {
* A language the practitioner is able to use in patient communication
* </p>
*/
public void setCommunication(List<CodeableConceptDt> theValue) {
public void setCommunication(java.util.List<CodeableConceptDt> theValue) {
myCommunication = theValue;
}
@ -850,7 +876,7 @@ public class Practitioner extends BaseResource implements IResource {
private PeriodDt myPeriod;
@Child(name="issuer", order=2, min=0, max=1, type={
Organization.class,
ca.uhn.fhir.model.dstu.resource.Organization.class,
})
@Description(
shortDefinition="Organization that regulates and issues the qualification",
@ -863,6 +889,11 @@ public class Practitioner extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myPeriod, myIssuer);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myCode, myPeriod, myIssuer);
}
/**
* Gets the value(s) for <b>code</b> (Coded representation of the qualification).

View File

@ -16,12 +16,42 @@
package ca.uhn.fhir.model.dstu.resource;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.composite.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import java.util.Date;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.BaseResource;
import ca.uhn.fhir.model.api.IDatatype;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.api.IResourceBlock;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.api.annotation.Block;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.dstu.composite.CodingDt;
import ca.uhn.fhir.model.dstu.composite.ContactDt;
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
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.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>Profile</b> Resource
@ -184,7 +214,7 @@ public class Profile extends BaseResource implements IResource {
shortDefinition="Contact information of the publisher",
formalDefinition="Contact details to assist a user in finding and communicating with the publisher"
)
private List<ContactDt> myTelecom;
private java.util.List<ContactDt> myTelecom;
@Child(name="description", type=StringDt.class, order=5, min=0, max=1)
@Description(
@ -198,7 +228,7 @@ public class Profile extends BaseResource implements IResource {
shortDefinition="Assist with indexing and finding",
formalDefinition="A set of terms from external terminologies that may be used to assist with indexing and searching of templates."
)
private List<CodingDt> myCode;
private java.util.List<CodingDt> myCode;
@Child(name="status", type=CodeDt.class, order=7, min=1, max=1)
@Description(
@ -240,34 +270,39 @@ public class Profile extends BaseResource implements IResource {
shortDefinition="External specification that the content is mapped to",
formalDefinition="An external specification that the content is mapped to"
)
private List<Mapping> myMapping;
private java.util.List<Mapping> myMapping;
@Child(name="structure", order=13, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="A constraint on a resource or a data type",
formalDefinition="A constraint statement about what contents a resource or data type may have"
)
private List<Structure> myStructure;
private java.util.List<Structure> myStructure;
@Child(name="extensionDefn", order=14, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="Definition of an extension",
formalDefinition="An extension defined as part of the profile"
)
private List<ExtensionDefn> myExtensionDefn;
private java.util.List<ExtensionDefn> myExtensionDefn;
@Child(name="query", order=15, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="Definition of a named query",
formalDefinition="Definition of a named query and its parameters and their meaning"
)
private List<Query> myQuery;
private java.util.List<Query> myQuery;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myVersion, myName, myPublisher, myTelecom, myDescription, myCode, myStatus, myExperimental, myDate, myRequirements, myFhirVersion, myMapping, myStructure, myExtensionDefn, myQuery);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myIdentifier, myVersion, myName, myPublisher, myTelecom, myDescription, myCode, myStatus, myExperimental, myDate, myRequirements, myFhirVersion, myMapping, myStructure, myExtensionDefn, myQuery);
}
/**
* Gets the value(s) for <b>identifier</b> (Logical id to reference this profile).
@ -451,9 +486,9 @@ public class Profile extends BaseResource implements IResource {
* Contact details to assist a user in finding and communicating with the publisher
* </p>
*/
public List<ContactDt> getTelecom() {
public java.util.List<ContactDt> getTelecom() {
if (myTelecom == null) {
myTelecom = new ArrayList<ContactDt>();
myTelecom = new java.util.ArrayList<ContactDt>();
}
return myTelecom;
}
@ -466,7 +501,7 @@ public class Profile extends BaseResource implements IResource {
* Contact details to assist a user in finding and communicating with the publisher
* </p>
*/
public void setTelecom(List<ContactDt> theValue) {
public void setTelecom(java.util.List<ContactDt> theValue) {
myTelecom = theValue;
}
@ -538,9 +573,9 @@ public class Profile extends BaseResource implements IResource {
* A set of terms from external terminologies that may be used to assist with indexing and searching of templates.
* </p>
*/
public List<CodingDt> getCode() {
public java.util.List<CodingDt> getCode() {
if (myCode == null) {
myCode = new ArrayList<CodingDt>();
myCode = new java.util.ArrayList<CodingDt>();
}
return myCode;
}
@ -553,7 +588,7 @@ public class Profile extends BaseResource implements IResource {
* A set of terms from external terminologies that may be used to assist with indexing and searching of templates.
* </p>
*/
public void setCode(List<CodingDt> theValue) {
public void setCode(java.util.List<CodingDt> theValue) {
myCode = theValue;
}
@ -696,8 +731,8 @@ public class Profile extends BaseResource implements IResource {
* The date that this version of the profile was published
* </p>
*/
public void setDateWithSecondsPrecision( Date theDate) {
myDate = new DateTimeDt(theDate);
public void setDate( Date theDate, TemporalPrecisionEnum thePrecision) {
myDate = new DateTimeDt(theDate, thePrecision);
}
/**
@ -708,8 +743,8 @@ public class Profile extends BaseResource implements IResource {
* The date that this version of the profile was published
* </p>
*/
public void setDate( Date theDate, TemporalPrecisionEnum thePrecision) {
myDate = new DateTimeDt(theDate, thePrecision);
public void setDateWithSecondsPrecision( Date theDate) {
myDate = new DateTimeDt(theDate);
}
@ -809,9 +844,9 @@ public class Profile extends BaseResource implements IResource {
* An external specification that the content is mapped to
* </p>
*/
public List<Mapping> getMapping() {
public java.util.List<Mapping> getMapping() {
if (myMapping == null) {
myMapping = new ArrayList<Mapping>();
myMapping = new java.util.ArrayList<Mapping>();
}
return myMapping;
}
@ -824,7 +859,7 @@ public class Profile extends BaseResource implements IResource {
* An external specification that the content is mapped to
* </p>
*/
public void setMapping(List<Mapping> theValue) {
public void setMapping(java.util.List<Mapping> theValue) {
myMapping = theValue;
}
@ -853,9 +888,9 @@ public class Profile extends BaseResource implements IResource {
* A constraint statement about what contents a resource or data type may have
* </p>
*/
public List<Structure> getStructure() {
public java.util.List<Structure> getStructure() {
if (myStructure == null) {
myStructure = new ArrayList<Structure>();
myStructure = new java.util.ArrayList<Structure>();
}
return myStructure;
}
@ -868,7 +903,7 @@ public class Profile extends BaseResource implements IResource {
* A constraint statement about what contents a resource or data type may have
* </p>
*/
public void setStructure(List<Structure> theValue) {
public void setStructure(java.util.List<Structure> theValue) {
myStructure = theValue;
}
@ -897,9 +932,9 @@ public class Profile extends BaseResource implements IResource {
* An extension defined as part of the profile
* </p>
*/
public List<ExtensionDefn> getExtensionDefn() {
public java.util.List<ExtensionDefn> getExtensionDefn() {
if (myExtensionDefn == null) {
myExtensionDefn = new ArrayList<ExtensionDefn>();
myExtensionDefn = new java.util.ArrayList<ExtensionDefn>();
}
return myExtensionDefn;
}
@ -912,7 +947,7 @@ public class Profile extends BaseResource implements IResource {
* An extension defined as part of the profile
* </p>
*/
public void setExtensionDefn(List<ExtensionDefn> theValue) {
public void setExtensionDefn(java.util.List<ExtensionDefn> theValue) {
myExtensionDefn = theValue;
}
@ -941,9 +976,9 @@ public class Profile extends BaseResource implements IResource {
* Definition of a named query and its parameters and their meaning
* </p>
*/
public List<Query> getQuery() {
public java.util.List<Query> getQuery() {
if (myQuery == null) {
myQuery = new ArrayList<Query>();
myQuery = new java.util.ArrayList<Query>();
}
return myQuery;
}
@ -956,7 +991,7 @@ public class Profile extends BaseResource implements IResource {
* Definition of a named query and its parameters and their meaning
* </p>
*/
public void setQuery(List<Query> theValue) {
public void setQuery(java.util.List<Query> theValue) {
myQuery = theValue;
}
@ -1019,6 +1054,11 @@ public class Profile extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentity, myUri, myName, myComments);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myIdentity, myUri, myName, myComments);
}
/**
* Gets the value(s) for <b>identity</b> (Internal id when this mapping is used).
@ -1240,20 +1280,25 @@ public class Profile extends BaseResource implements IResource {
shortDefinition="Definition of elements in the resource (if no profile)",
formalDefinition="Captures constraints on each element within the resource"
)
private List<StructureElement> myElement;
private java.util.List<StructureElement> myElement;
@Child(name="searchParam", order=5, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="Search params defined",
formalDefinition="Additional search parameters for implementations to support and/or make use of"
)
private List<StructureSearchParam> mySearchParam;
private java.util.List<StructureSearchParam> mySearchParam;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myName, myPublish, myPurpose, myElement, mySearchParam);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myType, myName, myPublish, myPurpose, myElement, mySearchParam);
}
/**
* Gets the value(s) for <b>type</b> (The Resource or Data Type being described).
@ -1437,9 +1482,9 @@ public class Profile extends BaseResource implements IResource {
* Captures constraints on each element within the resource
* </p>
*/
public List<StructureElement> getElement() {
public java.util.List<StructureElement> getElement() {
if (myElement == null) {
myElement = new ArrayList<StructureElement>();
myElement = new java.util.ArrayList<StructureElement>();
}
return myElement;
}
@ -1452,7 +1497,7 @@ public class Profile extends BaseResource implements IResource {
* Captures constraints on each element within the resource
* </p>
*/
public void setElement(List<StructureElement> theValue) {
public void setElement(java.util.List<StructureElement> theValue) {
myElement = theValue;
}
@ -1481,9 +1526,9 @@ public class Profile extends BaseResource implements IResource {
* Additional search parameters for implementations to support and/or make use of
* </p>
*/
public List<StructureSearchParam> getSearchParam() {
public java.util.List<StructureSearchParam> getSearchParam() {
if (mySearchParam == null) {
mySearchParam = new ArrayList<StructureSearchParam>();
mySearchParam = new java.util.ArrayList<StructureSearchParam>();
}
return mySearchParam;
}
@ -1496,7 +1541,7 @@ public class Profile extends BaseResource implements IResource {
* Additional search parameters for implementations to support and/or make use of
* </p>
*/
public void setSearchParam(List<StructureSearchParam> theValue) {
public void setSearchParam(java.util.List<StructureSearchParam> theValue) {
mySearchParam = theValue;
}
@ -1541,7 +1586,7 @@ public class Profile extends BaseResource implements IResource {
shortDefinition="How this element is represented in instances",
formalDefinition="Codes that define how this element is represented in instances, when the deviation varies from the normal case"
)
private List<BoundCodeDt<PropertyRepresentationEnum>> myRepresentation;
private java.util.List<BoundCodeDt<PropertyRepresentationEnum>> myRepresentation;
@Child(name="name", type=StringDt.class, order=2, min=0, max=1)
@Description(
@ -1569,6 +1614,11 @@ public class Profile extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myPath, myRepresentation, myName, mySlicing, myDefinition);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myPath, myRepresentation, myName, mySlicing, myDefinition);
}
/**
* Gets the value(s) for <b>path</b> (The path of the element (see the formal definitions)).
@ -1623,9 +1673,9 @@ public class Profile extends BaseResource implements IResource {
* Codes that define how this element is represented in instances, when the deviation varies from the normal case
* </p>
*/
public List<BoundCodeDt<PropertyRepresentationEnum>> getRepresentation() {
public java.util.List<BoundCodeDt<PropertyRepresentationEnum>> getRepresentation() {
if (myRepresentation == null) {
myRepresentation = new ArrayList<BoundCodeDt<PropertyRepresentationEnum>>();
myRepresentation = new java.util.ArrayList<BoundCodeDt<PropertyRepresentationEnum>>();
}
return myRepresentation;
}
@ -1638,7 +1688,7 @@ public class Profile extends BaseResource implements IResource {
* Codes that define how this element is represented in instances, when the deviation varies from the normal case
* </p>
*/
public void setRepresentation(List<BoundCodeDt<PropertyRepresentationEnum>> theValue) {
public void setRepresentation(java.util.List<BoundCodeDt<PropertyRepresentationEnum>> theValue) {
myRepresentation = theValue;
}
@ -1814,6 +1864,11 @@ public class Profile extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDiscriminator, myOrdered, myRules);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myDiscriminator, myOrdered, myRules);
}
/**
* Gets the value(s) for <b>discriminator</b> (Element that used to distinguish the slices).
@ -1992,7 +2047,7 @@ public class Profile extends BaseResource implements IResource {
shortDefinition="Other names",
formalDefinition="Identifies additional names by which this element might also be known"
)
private List<StringDt> mySynonym;
private java.util.List<StringDt> mySynonym;
@Child(name="min", type=IntegerDt.class, order=5, min=1, max=1)
@Description(
@ -2013,7 +2068,7 @@ public class Profile extends BaseResource implements IResource {
shortDefinition="Data type and Profile for this element",
formalDefinition="The data type or resource that the value of this element is permitted to be"
)
private List<StructureElementDefinitionType> myType;
private java.util.List<StructureElementDefinitionType> myType;
@Child(name="nameReference", type=StringDt.class, order=8, min=0, max=1)
@Description(
@ -2048,14 +2103,14 @@ public class Profile extends BaseResource implements IResource {
shortDefinition="Reference to invariant about presence",
formalDefinition="A reference to an invariant that may make additional statements about the cardinality or value in the instance"
)
private List<IdDt> myCondition;
private java.util.List<IdDt> myCondition;
@Child(name="constraint", order=13, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="Condition that must evaluate to true",
formalDefinition="Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance"
)
private List<StructureElementDefinitionConstraint> myConstraint;
private java.util.List<StructureElementDefinitionConstraint> myConstraint;
@Child(name="mustSupport", type=BooleanDt.class, order=14, min=0, max=1)
@Description(
@ -2083,13 +2138,18 @@ public class Profile extends BaseResource implements IResource {
shortDefinition="Map element to another set of definitions",
formalDefinition="Identifies a concept from an external specification that roughly corresponds to this element"
)
private List<StructureElementDefinitionMapping> myMapping;
private java.util.List<StructureElementDefinitionMapping> myMapping;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myShort, myFormal, myComments, myRequirements, mySynonym, myMin, myMax, myType, myNameReference, myValue, myExample, myMaxLength, myCondition, myConstraint, myMustSupport, myIsModifier, myBinding, myMapping);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myShort, myFormal, myComments, myRequirements, mySynonym, myMin, myMax, myType, myNameReference, myValue, myExample, myMaxLength, myCondition, myConstraint, myMustSupport, myIsModifier, myBinding, myMapping);
}
/**
* Gets the value(s) for <b>short</b> (Concise definition for xml presentation).
@ -2273,9 +2333,9 @@ public class Profile extends BaseResource implements IResource {
* Identifies additional names by which this element might also be known
* </p>
*/
public List<StringDt> getSynonym() {
public java.util.List<StringDt> getSynonym() {
if (mySynonym == null) {
mySynonym = new ArrayList<StringDt>();
mySynonym = new java.util.ArrayList<StringDt>();
}
return mySynonym;
}
@ -2288,7 +2348,7 @@ public class Profile extends BaseResource implements IResource {
* Identifies additional names by which this element might also be known
* </p>
*/
public void setSynonym(List<StringDt> theValue) {
public void setSynonym(java.util.List<StringDt> theValue) {
mySynonym = theValue;
}
@ -2316,7 +2376,7 @@ public class Profile extends BaseResource implements IResource {
*/
public void addSynonym( String theString) {
if (mySynonym == null) {
mySynonym = new ArrayList<StringDt>();
mySynonym = new java.util.ArrayList<StringDt>();
}
mySynonym.add(new StringDt(theString));
}
@ -2418,9 +2478,9 @@ public class Profile extends BaseResource implements IResource {
* The data type or resource that the value of this element is permitted to be
* </p>
*/
public List<StructureElementDefinitionType> getType() {
public java.util.List<StructureElementDefinitionType> getType() {
if (myType == null) {
myType = new ArrayList<StructureElementDefinitionType>();
myType = new java.util.ArrayList<StructureElementDefinitionType>();
}
return myType;
}
@ -2433,7 +2493,7 @@ public class Profile extends BaseResource implements IResource {
* The data type or resource that the value of this element is permitted to be
* </p>
*/
public void setType(List<StructureElementDefinitionType> theValue) {
public void setType(java.util.List<StructureElementDefinitionType> theValue) {
myType = theValue;
}
@ -2604,9 +2664,9 @@ public class Profile extends BaseResource implements IResource {
* A reference to an invariant that may make additional statements about the cardinality or value in the instance
* </p>
*/
public List<IdDt> getCondition() {
public java.util.List<IdDt> getCondition() {
if (myCondition == null) {
myCondition = new ArrayList<IdDt>();
myCondition = new java.util.ArrayList<IdDt>();
}
return myCondition;
}
@ -2619,7 +2679,7 @@ public class Profile extends BaseResource implements IResource {
* A reference to an invariant that may make additional statements about the cardinality or value in the instance
* </p>
*/
public void setCondition(List<IdDt> theValue) {
public void setCondition(java.util.List<IdDt> theValue) {
myCondition = theValue;
}
@ -2647,7 +2707,7 @@ public class Profile extends BaseResource implements IResource {
*/
public void addCondition( String theId) {
if (myCondition == null) {
myCondition = new ArrayList<IdDt>();
myCondition = new java.util.ArrayList<IdDt>();
}
myCondition.add(new IdDt(theId));
}
@ -2663,9 +2723,9 @@ public class Profile extends BaseResource implements IResource {
* Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance
* </p>
*/
public List<StructureElementDefinitionConstraint> getConstraint() {
public java.util.List<StructureElementDefinitionConstraint> getConstraint() {
if (myConstraint == null) {
myConstraint = new ArrayList<StructureElementDefinitionConstraint>();
myConstraint = new java.util.ArrayList<StructureElementDefinitionConstraint>();
}
return myConstraint;
}
@ -2678,7 +2738,7 @@ public class Profile extends BaseResource implements IResource {
* Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance
* </p>
*/
public void setConstraint(List<StructureElementDefinitionConstraint> theValue) {
public void setConstraint(java.util.List<StructureElementDefinitionConstraint> theValue) {
myConstraint = theValue;
}
@ -2824,9 +2884,9 @@ public class Profile extends BaseResource implements IResource {
* Identifies a concept from an external specification that roughly corresponds to this element
* </p>
*/
public List<StructureElementDefinitionMapping> getMapping() {
public java.util.List<StructureElementDefinitionMapping> getMapping() {
if (myMapping == null) {
myMapping = new ArrayList<StructureElementDefinitionMapping>();
myMapping = new java.util.ArrayList<StructureElementDefinitionMapping>();
}
return myMapping;
}
@ -2839,7 +2899,7 @@ public class Profile extends BaseResource implements IResource {
* Identifies a concept from an external specification that roughly corresponds to this element
* </p>
*/
public void setMapping(List<StructureElementDefinitionMapping> theValue) {
public void setMapping(java.util.List<StructureElementDefinitionMapping> theValue) {
myMapping = theValue;
}
@ -2891,13 +2951,18 @@ public class Profile extends BaseResource implements IResource {
shortDefinition="contained | referenced | bundled - how aggregated",
formalDefinition="If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle"
)
private List<BoundCodeDt<AggregationModeEnum>> myAggregation;
private java.util.List<BoundCodeDt<AggregationModeEnum>> myAggregation;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myProfile, myAggregation);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myCode, myProfile, myAggregation);
}
/**
* Gets the value(s) for <b>code</b> (Name of Data type or Resource).
@ -2995,9 +3060,9 @@ public class Profile extends BaseResource implements IResource {
* If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle
* </p>
*/
public List<BoundCodeDt<AggregationModeEnum>> getAggregation() {
public java.util.List<BoundCodeDt<AggregationModeEnum>> getAggregation() {
if (myAggregation == null) {
myAggregation = new ArrayList<BoundCodeDt<AggregationModeEnum>>();
myAggregation = new java.util.ArrayList<BoundCodeDt<AggregationModeEnum>>();
}
return myAggregation;
}
@ -3010,7 +3075,7 @@ public class Profile extends BaseResource implements IResource {
* If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle
* </p>
*/
public void setAggregation(List<BoundCodeDt<AggregationModeEnum>> theValue) {
public void setAggregation(java.util.List<BoundCodeDt<AggregationModeEnum>> theValue) {
myAggregation = theValue;
}
@ -3096,6 +3161,11 @@ public class Profile extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myKey, myName, mySeverity, myHuman, myXpath);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myKey, myName, mySeverity, myHuman, myXpath);
}
/**
* Gets the value(s) for <b>key</b> (Target of 'condition' reference above).
@ -3370,6 +3440,11 @@ public class Profile extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myIsExtensible, myConformance, myDescription, myReference);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myName, myIsExtensible, myConformance, myDescription, myReference);
}
/**
* Gets the value(s) for <b>name</b> (Descriptive Name).
@ -3605,6 +3680,11 @@ public class Profile extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentity, myMap);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myIdentity, myMap);
}
/**
* Gets the value(s) for <b>identity</b> (Reference to mapping declaration).
@ -3742,13 +3822,18 @@ public class Profile extends BaseResource implements IResource {
shortDefinition="Types of resource (if a resource reference)",
formalDefinition="Types of resource (if a resource is referenced)"
)
private List<BoundCodeDt<ResourceTypeEnum>> myTarget;
private java.util.List<BoundCodeDt<ResourceTypeEnum>> myTarget;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myType, myDocumentation, myXpath, myTarget);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myName, myType, myDocumentation, myXpath, myTarget);
}
/**
* Gets the value(s) for <b>name</b> (Name of search parameter).
@ -3932,9 +4017,9 @@ public class Profile extends BaseResource implements IResource {
* Types of resource (if a resource is referenced)
* </p>
*/
public List<BoundCodeDt<ResourceTypeEnum>> getTarget() {
public java.util.List<BoundCodeDt<ResourceTypeEnum>> getTarget() {
if (myTarget == null) {
myTarget = new ArrayList<BoundCodeDt<ResourceTypeEnum>>();
myTarget = new java.util.ArrayList<BoundCodeDt<ResourceTypeEnum>>();
}
return myTarget;
}
@ -3947,7 +4032,7 @@ public class Profile extends BaseResource implements IResource {
* Types of resource (if a resource is referenced)
* </p>
*/
public void setTarget(List<BoundCodeDt<ResourceTypeEnum>> theValue) {
public void setTarget(java.util.List<BoundCodeDt<ResourceTypeEnum>> theValue) {
myTarget = theValue;
}
@ -4020,7 +4105,7 @@ public class Profile extends BaseResource implements IResource {
shortDefinition="Where the extension can be used in instances",
formalDefinition="Identifies the types of resource or data type elements to which the extension can be applied"
)
private List<StringDt> myContext;
private java.util.List<StringDt> myContext;
@Child(name="definition", type=StructureElementDefinition.class, order=4, min=1, max=1)
@Description(
@ -4034,6 +4119,11 @@ public class Profile extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myDisplay, myContextType, myContext, myDefinition);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myCode, myDisplay, myContextType, myContext, myDefinition);
}
/**
* Gets the value(s) for <b>code</b> (Identifies the extension in this profile).
@ -4174,9 +4264,9 @@ public class Profile extends BaseResource implements IResource {
* Identifies the types of resource or data type elements to which the extension can be applied
* </p>
*/
public List<StringDt> getContext() {
public java.util.List<StringDt> getContext() {
if (myContext == null) {
myContext = new ArrayList<StringDt>();
myContext = new java.util.ArrayList<StringDt>();
}
return myContext;
}
@ -4189,7 +4279,7 @@ public class Profile extends BaseResource implements IResource {
* Identifies the types of resource or data type elements to which the extension can be applied
* </p>
*/
public void setContext(List<StringDt> theValue) {
public void setContext(java.util.List<StringDt> theValue) {
myContext = theValue;
}
@ -4217,7 +4307,7 @@ public class Profile extends BaseResource implements IResource {
*/
public void addContext( String theString) {
if (myContext == null) {
myContext = new ArrayList<StringDt>();
myContext = new java.util.ArrayList<StringDt>();
}
myContext.add(new StringDt(theString));
}
@ -4288,13 +4378,18 @@ public class Profile extends BaseResource implements IResource {
shortDefinition="Parameter for the named query",
formalDefinition="A parameter of a named query"
)
private List<StructureSearchParam> myParameter;
private java.util.List<StructureSearchParam> myParameter;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myDocumentation, myParameter);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myName, myDocumentation, myParameter);
}
/**
* Gets the value(s) for <b>name</b> (Special named queries (_query=)).
@ -4392,9 +4487,9 @@ public class Profile extends BaseResource implements IResource {
* A parameter of a named query
* </p>
*/
public List<StructureSearchParam> getParameter() {
public java.util.List<StructureSearchParam> getParameter() {
if (myParameter == null) {
myParameter = new ArrayList<StructureSearchParam>();
myParameter = new java.util.ArrayList<StructureSearchParam>();
}
return myParameter;
}
@ -4407,7 +4502,7 @@ public class Profile extends BaseResource implements IResource {
* A parameter of a named query
* </p>
*/
public void setParameter(List<StructureSearchParam> theValue) {
public void setParameter(java.util.List<StructureSearchParam> theValue) {
myParameter = theValue;
}

View File

@ -0,0 +1,508 @@
package ca.uhn.fhir.model.dstu.resource;
import ca.uhn.fhir.model.api.BaseResource;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.dstu.composite.AddressDt;
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu.composite.ContactDt;
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum;
import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt;
/**
* HAPI/FHIR <b>RelatedPerson</b> Resource
* (An person that is related to a patient, but who is not a direct target of care)
*
* <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>
*/
@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>
*/
public static final String SP_IDENTIFIER = "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>
*/
public static final String SP_NAME = "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>
*/
public static final String SP_PHONETIC = "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>
*/
public static final String SP_TELECOM = "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>
*/
public static final String SP_ADDRESS = "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>
*/
public static final String SP_GENDER = "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>
*/
public static final String SP_PATIENT = "patient";
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="A Human identifier for this person",
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.dstu.resource.Patient.class,
})
@Description(
shortDefinition="The patient this person is related to",
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="The nature of the relationship",
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="A name associated with the person",
formalDefinition="A name associated with the person"
)
private HumanNameDt myName;
@Child(name="telecom", type=ContactDt.class, order=4, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="A contact detail for the person",
formalDefinition="A contact detail for the person, e.g. a telephone number or an email address."
)
private java.util.List<ContactDt> myTelecom;
@Child(name="gender", type=CodeableConceptDt.class, order=5, min=0, max=1)
@Description(
shortDefinition="Gender for administrative purposes",
formalDefinition="Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes."
)
private BoundCodeableConceptDt<AdministrativeGenderCodesEnum> myGender;
@Child(name="address", type=AddressDt.class, order=6, min=0, max=1)
@Description(
shortDefinition="Address where the related person can be contacted or visited",
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="Image of the person",
formalDefinition="Image of the person"
)
private java.util.List<AttachmentDt> myPhoto;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myPatient, myRelationship, myName, myTelecom, myGender, myAddress, myPhoto);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myIdentifier, myPatient, myRelationship, myName, myTelecom, myGender, myAddress, myPhoto);
}
/**
* Gets the value(s) for <b>identifier</b> (A Human identifier for this person).
* 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> (A Human identifier for this person)
*
* <p>
* <b>Definition:</b>
* Identifier for a person within a particular scope.
* </p>
*/
public void setIdentifier(java.util.List<IdentifierDt> theValue) {
myIdentifier = theValue;
}
/**
* Adds and returns a new value for <b>identifier</b> (A Human identifier for this person)
*
* <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 value(s) for <b>patient</b> (The patient this person is related to).
* 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> (The patient this person is related to)
*
* <p>
* <b>Definition:</b>
* The patient this person is related to
* </p>
*/
public void setPatient(ResourceReferenceDt theValue) {
myPatient = theValue;
}
/**
* Gets the value(s) for <b>relationship</b> (The nature of the relationship).
* 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> (The nature of the relationship)
*
* <p>
* <b>Definition:</b>
* The nature of the relationship between a patient and the related person
* </p>
*/
public void setRelationship(BoundCodeableConceptDt<PatientRelationshipTypeEnum> theValue) {
myRelationship = theValue;
}
/**
* Sets the value(s) for <b>relationship</b> (The nature of the relationship)
*
* <p>
* <b>Definition:</b>
* The nature of the relationship between a patient and the related person
* </p>
*/
public void setRelationship(PatientRelationshipTypeEnum theValue) {
getRelationship().setValueAsEnum(theValue);
}
/**
* Gets the value(s) for <b>name</b> (A name associated with the person).
* 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> (A name associated with the person)
*
* <p>
* <b>Definition:</b>
* A name associated with the person
* </p>
*/
public void setName(HumanNameDt theValue) {
myName = theValue;
}
/**
* Gets the value(s) for <b>telecom</b> (A contact detail for the person).
* 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<ContactDt> getTelecom() {
if (myTelecom == null) {
myTelecom = new java.util.ArrayList<ContactDt>();
}
return myTelecom;
}
/**
* Sets the value(s) for <b>telecom</b> (A contact detail for the person)
*
* <p>
* <b>Definition:</b>
* A contact detail for the person, e.g. a telephone number or an email address.
* </p>
*/
public void setTelecom(java.util.List<ContactDt> theValue) {
myTelecom = theValue;
}
/**
* Adds and returns a new value for <b>telecom</b> (A contact detail for the person)
*
* <p>
* <b>Definition:</b>
* A contact detail for the person, e.g. a telephone number or an email address.
* </p>
*/
public ContactDt addTelecom() {
ContactDt newType = new ContactDt();
getTelecom().add(newType);
return newType;
}
/**
* Gets the value(s) for <b>gender</b> (Gender for administrative purposes).
* 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 BoundCodeableConceptDt<AdministrativeGenderCodesEnum> getGender() {
if (myGender == null) {
myGender = new BoundCodeableConceptDt<AdministrativeGenderCodesEnum>(AdministrativeGenderCodesEnum.VALUESET_BINDER);
}
return myGender;
}
/**
* Sets the value(s) for <b>gender</b> (Gender for administrative purposes)
*
* <p>
* <b>Definition:</b>
* Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.
* </p>
*/
public void setGender(BoundCodeableConceptDt<AdministrativeGenderCodesEnum> theValue) {
myGender = theValue;
}
/**
* Sets the value(s) for <b>gender</b> (Gender for administrative purposes)
*
* <p>
* <b>Definition:</b>
* Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.
* </p>
*/
public void setGender(AdministrativeGenderCodesEnum theValue) {
getGender().setValueAsEnum(theValue);
}
/**
* Gets the value(s) for <b>address</b> (Address where the related person can be contacted or visited).
* 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> (Address where the related person can be contacted or visited)
*
* <p>
* <b>Definition:</b>
* Address where the related person can be contacted or visited
* </p>
*/
public void setAddress(AddressDt theValue) {
myAddress = theValue;
}
/**
* Gets the value(s) for <b>photo</b> (Image of the person).
* 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> (Image of the person)
*
* <p>
* <b>Definition:</b>
* Image of the person
* </p>
*/
public void setPhoto(java.util.List<AttachmentDt> theValue) {
myPhoto = theValue;
}
/**
* Adds and returns a new value for <b>photo</b> (Image of the person)
*
* <p>
* <b>Definition:</b>
* Image of the person
* </p>
*/
public AttachmentDt addPhoto() {
AttachmentDt newType = new AttachmentDt();
getPhoto().add(newType);
return newType;
}
}

View File

@ -16,12 +16,34 @@
package ca.uhn.fhir.model.dstu.resource;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.composite.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import java.util.Date;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.BaseResource;
import ca.uhn.fhir.model.api.IDatatype;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.api.IResourceBlock;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.api.annotation.Block;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum;
import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.DateTimeDt;
import ca.uhn.fhir.model.primitive.StringDt;
/**
* HAPI/FHIR <b>Specimen</b> Resource
@ -56,7 +78,7 @@ public class Specimen extends BaseResource implements IResource {
shortDefinition="External Identifier",
formalDefinition="Id for specimen"
)
private List<IdentifierDt> myIdentifier;
private java.util.List<IdentifierDt> myIdentifier;
@Child(name="type", type=CodeableConceptDt.class, order=1, min=0, max=1)
@Description(
@ -70,13 +92,13 @@ public class Specimen extends BaseResource implements IResource {
shortDefinition="Parent of specimen",
formalDefinition="Parent specimen from which the focal specimen was a component"
)
private List<Source> mySource;
private java.util.List<Source> mySource;
@Child(name="subject", order=3, min=1, max=1, type={
Patient.class,
Group.class,
Device.class,
Substance.class,
ca.uhn.fhir.model.dstu.resource.Patient.class,
ca.uhn.fhir.model.dstu.resource.Group.class,
ca.uhn.fhir.model.dstu.resource.Device.class,
ca.uhn.fhir.model.dstu.resource.Substance.class,
})
@Description(
shortDefinition="Where the specimen came from. This may be the patient(s) or from the environment or a device",
@ -110,20 +132,25 @@ public class Specimen extends BaseResource implements IResource {
shortDefinition="Treatment and processing step details",
formalDefinition="Details concerning treatment and processing steps for the specimen"
)
private List<Treatment> myTreatment;
private java.util.List<Treatment> myTreatment;
@Child(name="container", order=8, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="Direct container of specimen (tube/slide, etc)",
formalDefinition="The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here."
)
private List<Container> myContainer;
private java.util.List<Container> myContainer;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myType, mySource, mySubject, myAccessionIdentifier, myReceivedTime, myCollection, myTreatment, myContainer);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myIdentifier, myType, mySource, mySubject, myAccessionIdentifier, myReceivedTime, myCollection, myTreatment, myContainer);
}
/**
* Gets the value(s) for <b>identifier</b> (External Identifier).
@ -135,9 +162,9 @@ public class Specimen extends BaseResource implements IResource {
* Id for specimen
* </p>
*/
public List<IdentifierDt> getIdentifier() {
public java.util.List<IdentifierDt> getIdentifier() {
if (myIdentifier == null) {
myIdentifier = new ArrayList<IdentifierDt>();
myIdentifier = new java.util.ArrayList<IdentifierDt>();
}
return myIdentifier;
}
@ -150,7 +177,7 @@ public class Specimen extends BaseResource implements IResource {
* Id for specimen
* </p>
*/
public void setIdentifier(List<IdentifierDt> theValue) {
public void setIdentifier(java.util.List<IdentifierDt> theValue) {
myIdentifier = theValue;
}
@ -210,9 +237,9 @@ public class Specimen extends BaseResource implements IResource {
* Parent specimen from which the focal specimen was a component
* </p>
*/
public List<Source> getSource() {
public java.util.List<Source> getSource() {
if (mySource == null) {
mySource = new ArrayList<Source>();
mySource = new java.util.ArrayList<Source>();
}
return mySource;
}
@ -225,7 +252,7 @@ public class Specimen extends BaseResource implements IResource {
* Parent specimen from which the focal specimen was a component
* </p>
*/
public void setSource(List<Source> theValue) {
public void setSource(java.util.List<Source> theValue) {
mySource = theValue;
}
@ -341,8 +368,8 @@ public class Specimen extends BaseResource implements IResource {
* Time when specimen was received for processing or testing
* </p>
*/
public void setReceivedTimeWithSecondsPrecision( Date theDate) {
myReceivedTime = new DateTimeDt(theDate);
public void setReceivedTime( Date theDate, TemporalPrecisionEnum thePrecision) {
myReceivedTime = new DateTimeDt(theDate, thePrecision);
}
/**
@ -353,8 +380,8 @@ public class Specimen extends BaseResource implements IResource {
* Time when specimen was received for processing or testing
* </p>
*/
public void setReceivedTime( Date theDate, TemporalPrecisionEnum thePrecision) {
myReceivedTime = new DateTimeDt(theDate, thePrecision);
public void setReceivedTimeWithSecondsPrecision( Date theDate) {
myReceivedTime = new DateTimeDt(theDate);
}
@ -399,9 +426,9 @@ public class Specimen extends BaseResource implements IResource {
* Details concerning treatment and processing steps for the specimen
* </p>
*/
public List<Treatment> getTreatment() {
public java.util.List<Treatment> getTreatment() {
if (myTreatment == null) {
myTreatment = new ArrayList<Treatment>();
myTreatment = new java.util.ArrayList<Treatment>();
}
return myTreatment;
}
@ -414,7 +441,7 @@ public class Specimen extends BaseResource implements IResource {
* Details concerning treatment and processing steps for the specimen
* </p>
*/
public void setTreatment(List<Treatment> theValue) {
public void setTreatment(java.util.List<Treatment> theValue) {
myTreatment = theValue;
}
@ -443,9 +470,9 @@ public class Specimen extends BaseResource implements IResource {
* The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.
* </p>
*/
public List<Container> getContainer() {
public java.util.List<Container> getContainer() {
if (myContainer == null) {
myContainer = new ArrayList<Container>();
myContainer = new java.util.ArrayList<Container>();
}
return myContainer;
}
@ -458,7 +485,7 @@ public class Specimen extends BaseResource implements IResource {
* The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here.
* </p>
*/
public void setContainer(List<Container> theValue) {
public void setContainer(java.util.List<Container> theValue) {
myContainer = theValue;
}
@ -496,19 +523,24 @@ public class Specimen extends BaseResource implements IResource {
private BoundCodeDt<HierarchicalRelationshipTypeEnum> myRelationship;
@Child(name="target", order=1, min=0, max=Child.MAX_UNLIMITED, type={
Specimen.class,
ca.uhn.fhir.model.dstu.resource.Specimen.class,
})
@Description(
shortDefinition="The subject of the relationship",
formalDefinition="The specimen resource that is the target of this relationship"
)
private List<ResourceReferenceDt> myTarget;
private java.util.List<ResourceReferenceDt> myTarget;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myRelationship, myTarget);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myRelationship, myTarget);
}
/**
* Gets the value(s) for <b>relationship</b> (parent | child).
@ -563,9 +595,9 @@ public class Specimen extends BaseResource implements IResource {
* The specimen resource that is the target of this relationship
* </p>
*/
public List<ResourceReferenceDt> getTarget() {
public java.util.List<ResourceReferenceDt> getTarget() {
if (myTarget == null) {
myTarget = new ArrayList<ResourceReferenceDt>();
myTarget = new java.util.ArrayList<ResourceReferenceDt>();
}
return myTarget;
}
@ -578,7 +610,7 @@ public class Specimen extends BaseResource implements IResource {
* The specimen resource that is the target of this relationship
* </p>
*/
public void setTarget(List<ResourceReferenceDt> theValue) {
public void setTarget(java.util.List<ResourceReferenceDt> theValue) {
myTarget = theValue;
}
@ -600,7 +632,7 @@ public class Specimen extends BaseResource implements IResource {
public static class Collection extends BaseElement implements IResourceBlock {
@Child(name="collector", order=0, min=0, max=1, type={
Practitioner.class,
ca.uhn.fhir.model.dstu.resource.Practitioner.class,
})
@Description(
shortDefinition="Who collected the specimen",
@ -613,7 +645,7 @@ public class Specimen extends BaseResource implements IResource {
shortDefinition="Collector comments",
formalDefinition="To communicate any details or issues encountered during the specimen collection procedure."
)
private List<StringDt> myComment;
private java.util.List<StringDt> myComment;
@Child(name="collected", order=2, min=0, max=1, type={
DateTimeDt.class,
@ -651,6 +683,11 @@ public class Specimen extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCollector, myComment, myCollected, myQuantity, myMethod, mySourceSite);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myCollector, myComment, myCollected, myQuantity, myMethod, mySourceSite);
}
/**
* Gets the value(s) for <b>collector</b> (Who collected the specimen).
@ -693,9 +730,9 @@ public class Specimen extends BaseResource implements IResource {
* To communicate any details or issues encountered during the specimen collection procedure.
* </p>
*/
public List<StringDt> getComment() {
public java.util.List<StringDt> getComment() {
if (myComment == null) {
myComment = new ArrayList<StringDt>();
myComment = new java.util.ArrayList<StringDt>();
}
return myComment;
}
@ -708,7 +745,7 @@ public class Specimen extends BaseResource implements IResource {
* To communicate any details or issues encountered during the specimen collection procedure.
* </p>
*/
public void setComment(List<StringDt> theValue) {
public void setComment(java.util.List<StringDt> theValue) {
myComment = theValue;
}
@ -736,7 +773,7 @@ public class Specimen extends BaseResource implements IResource {
*/
public void addComment( String theString) {
if (myComment == null) {
myComment = new ArrayList<StringDt>();
myComment = new java.util.ArrayList<StringDt>();
}
myComment.add(new StringDt(theString));
}
@ -905,19 +942,24 @@ public class Specimen extends BaseResource implements IResource {
private BoundCodeableConceptDt<SpecimenTreatmentProcedureEnum> myProcedure;
@Child(name="additive", order=2, min=0, max=Child.MAX_UNLIMITED, type={
Substance.class,
ca.uhn.fhir.model.dstu.resource.Substance.class,
})
@Description(
shortDefinition="Material used in the processing step",
formalDefinition=""
)
private List<ResourceReferenceDt> myAdditive;
private java.util.List<ResourceReferenceDt> myAdditive;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myDescription, myProcedure, myAdditive);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myDescription, myProcedure, myAdditive);
}
/**
* Gets the value(s) for <b>description</b> (Textual description of procedure).
@ -1015,9 +1057,9 @@ public class Specimen extends BaseResource implements IResource {
*
* </p>
*/
public List<ResourceReferenceDt> getAdditive() {
public java.util.List<ResourceReferenceDt> getAdditive() {
if (myAdditive == null) {
myAdditive = new ArrayList<ResourceReferenceDt>();
myAdditive = new java.util.ArrayList<ResourceReferenceDt>();
}
return myAdditive;
}
@ -1030,7 +1072,7 @@ public class Specimen extends BaseResource implements IResource {
*
* </p>
*/
public void setAdditive(List<ResourceReferenceDt> theValue) {
public void setAdditive(java.util.List<ResourceReferenceDt> theValue) {
myAdditive = theValue;
}
@ -1056,7 +1098,7 @@ public class Specimen extends BaseResource implements IResource {
shortDefinition="Id for the container",
formalDefinition="Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances"
)
private List<IdentifierDt> myIdentifier;
private java.util.List<IdentifierDt> myIdentifier;
@Child(name="description", type=StringDt.class, order=1, min=0, max=1)
@Description(
@ -1087,7 +1129,7 @@ public class Specimen extends BaseResource implements IResource {
private QuantityDt mySpecimenQuantity;
@Child(name="additive", order=5, min=0, max=1, type={
Substance.class,
ca.uhn.fhir.model.dstu.resource.Substance.class,
})
@Description(
shortDefinition="Additive associated with container",
@ -1100,6 +1142,11 @@ public class Specimen extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myDescription, myType, myCapacity, mySpecimenQuantity, myAdditive);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myIdentifier, myDescription, myType, myCapacity, mySpecimenQuantity, myAdditive);
}
/**
* Gets the value(s) for <b>identifier</b> (Id for the container).
@ -1111,9 +1158,9 @@ public class Specimen extends BaseResource implements IResource {
* Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances
* </p>
*/
public List<IdentifierDt> getIdentifier() {
public java.util.List<IdentifierDt> getIdentifier() {
if (myIdentifier == null) {
myIdentifier = new ArrayList<IdentifierDt>();
myIdentifier = new java.util.ArrayList<IdentifierDt>();
}
return myIdentifier;
}
@ -1126,7 +1173,7 @@ public class Specimen extends BaseResource implements IResource {
* Id for container. There may be multiple; a manufacturer's bar code, lab assigned identifier, etc. The container ID may differ from the specimen id in some circumstances
* </p>
*/
public void setIdentifier(List<IdentifierDt> theValue) {
public void setIdentifier(java.util.List<IdentifierDt> theValue) {
myIdentifier = theValue;
}

View File

@ -16,12 +16,29 @@
package ca.uhn.fhir.model.dstu.resource;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.composite.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import java.util.Date;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.BaseResource;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.api.IResourceBlock;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.api.annotation.Block;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
import ca.uhn.fhir.model.dstu.composite.RatioDt;
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum;
import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt;
import ca.uhn.fhir.model.primitive.DateTimeDt;
import ca.uhn.fhir.model.primitive.StringDt;
/**
* HAPI/FHIR <b>Substance</b> Resource
@ -117,13 +134,18 @@ public class Substance extends BaseResource implements IResource {
shortDefinition="Composition information about the substance",
formalDefinition="A substance can be composed of other substances"
)
private List<Ingredient> myIngredient;
private java.util.List<Ingredient> myIngredient;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, myDescription, myInstance, myIngredient);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myType, myDescription, myInstance, myIngredient);
}
/**
* Gets the value(s) for <b>type</b> (What kind of substance this is).
@ -252,9 +274,9 @@ public class Substance extends BaseResource implements IResource {
* A substance can be composed of other substances
* </p>
*/
public List<Ingredient> getIngredient() {
public java.util.List<Ingredient> getIngredient() {
if (myIngredient == null) {
myIngredient = new ArrayList<Ingredient>();
myIngredient = new java.util.ArrayList<Ingredient>();
}
return myIngredient;
}
@ -267,7 +289,7 @@ public class Substance extends BaseResource implements IResource {
* A substance can be composed of other substances
* </p>
*/
public void setIngredient(List<Ingredient> theValue) {
public void setIngredient(java.util.List<Ingredient> theValue) {
myIngredient = theValue;
}
@ -323,6 +345,11 @@ public class Substance extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myExpiry, myQuantity);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myIdentifier, myExpiry, myQuantity);
}
/**
* Gets the value(s) for <b>identifier</b> (Identifier of the package/container).
@ -393,8 +420,8 @@ public class Substance extends BaseResource implements IResource {
* When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.
* </p>
*/
public void setExpiryWithSecondsPrecision( Date theDate) {
myExpiry = new DateTimeDt(theDate);
public void setExpiry( Date theDate, TemporalPrecisionEnum thePrecision) {
myExpiry = new DateTimeDt(theDate, thePrecision);
}
/**
@ -405,8 +432,8 @@ public class Substance extends BaseResource implements IResource {
* When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.
* </p>
*/
public void setExpiry( Date theDate, TemporalPrecisionEnum thePrecision) {
myExpiry = new DateTimeDt(theDate, thePrecision);
public void setExpiryWithSecondsPrecision( Date theDate) {
myExpiry = new DateTimeDt(theDate);
}
@ -464,7 +491,7 @@ public class Substance extends BaseResource implements IResource {
private RatioDt myQuantity;
@Child(name="substance", order=1, min=1, max=1, type={
Substance.class,
ca.uhn.fhir.model.dstu.resource.Substance.class,
})
@Description(
shortDefinition="A component of the substance",
@ -477,6 +504,11 @@ public class Substance extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myQuantity, mySubstance);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myQuantity, mySubstance);
}
/**
* Gets the value(s) for <b>quantity</b> (Optional amount (concentration)).

View File

@ -16,12 +16,31 @@
package ca.uhn.fhir.model.dstu.resource;
import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.model.primitive.*;
import ca.uhn.fhir.model.dstu.composite.*;
import ca.uhn.fhir.model.dstu.valueset.*;
import java.util.Date;
import ca.uhn.fhir.model.api.BaseElement;
import ca.uhn.fhir.model.api.BaseResource;
import ca.uhn.fhir.model.api.IElement;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.api.IResourceBlock;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.api.annotation.Block;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.dstu.composite.ContactDt;
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
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.InstantDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.UriDt;
/**
* HAPI/FHIR <b>ValueSet</b> Resource
@ -184,7 +203,7 @@ public class ValueSet extends BaseResource implements IResource {
shortDefinition="Contact information of the publisher",
formalDefinition="Contacts of the publisher to assist a user in finding and communicating with the publisher"
)
private List<ContactDt> myTelecom;
private java.util.List<ContactDt> myTelecom;
@Child(name="description", type=StringDt.class, order=5, min=1, max=1)
@Description(
@ -254,6 +273,11 @@ public class ValueSet extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myVersion, myName, myPublisher, myTelecom, myDescription, myCopyright, myStatus, myExperimental, myExtensible, myDate, myDefine, myCompose, myExpansion);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myIdentifier, myVersion, myName, myPublisher, myTelecom, myDescription, myCopyright, myStatus, myExperimental, myExtensible, myDate, myDefine, myCompose, myExpansion);
}
/**
* Gets the value(s) for <b>identifier</b> (Logical id to reference this value set).
@ -437,9 +461,9 @@ public class ValueSet extends BaseResource implements IResource {
* Contacts of the publisher to assist a user in finding and communicating with the publisher
* </p>
*/
public List<ContactDt> getTelecom() {
public java.util.List<ContactDt> getTelecom() {
if (myTelecom == null) {
myTelecom = new ArrayList<ContactDt>();
myTelecom = new java.util.ArrayList<ContactDt>();
}
return myTelecom;
}
@ -452,7 +476,7 @@ public class ValueSet extends BaseResource implements IResource {
* Contacts of the publisher to assist a user in finding and communicating with the publisher
* </p>
*/
public void setTelecom(List<ContactDt> theValue) {
public void setTelecom(java.util.List<ContactDt> theValue) {
myTelecom = theValue;
}
@ -724,8 +748,8 @@ public class ValueSet extends BaseResource implements IResource {
* The date that the value set status was last changed
* </p>
*/
public void setDateWithSecondsPrecision( Date theDate) {
myDate = new DateTimeDt(theDate);
public void setDate( Date theDate, TemporalPrecisionEnum thePrecision) {
myDate = new DateTimeDt(theDate, thePrecision);
}
/**
@ -736,8 +760,8 @@ public class ValueSet extends BaseResource implements IResource {
* The date that the value set status was last changed
* </p>
*/
public void setDate( Date theDate, TemporalPrecisionEnum thePrecision) {
myDate = new DateTimeDt(theDate, thePrecision);
public void setDateWithSecondsPrecision( Date theDate) {
myDate = new DateTimeDt(theDate);
}
@ -871,13 +895,18 @@ public class ValueSet extends BaseResource implements IResource {
shortDefinition="Concepts in the code system",
formalDefinition=""
)
private List<DefineConcept> myConcept;
private java.util.List<DefineConcept> myConcept;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myVersion, myCaseSensitive, myConcept);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( mySystem, myVersion, myCaseSensitive, myConcept);
}
/**
* Gets the value(s) for <b>system</b> (URI to identify the code system).
@ -1018,9 +1047,9 @@ public class ValueSet extends BaseResource implements IResource {
*
* </p>
*/
public List<DefineConcept> getConcept() {
public java.util.List<DefineConcept> getConcept() {
if (myConcept == null) {
myConcept = new ArrayList<DefineConcept>();
myConcept = new java.util.ArrayList<DefineConcept>();
}
return myConcept;
}
@ -1033,7 +1062,7 @@ public class ValueSet extends BaseResource implements IResource {
*
* </p>
*/
public void setConcept(List<DefineConcept> theValue) {
public void setConcept(java.util.List<DefineConcept> theValue) {
myConcept = theValue;
}
@ -1099,13 +1128,18 @@ public class ValueSet extends BaseResource implements IResource {
shortDefinition="Child Concepts (is-a / contains)",
formalDefinition=""
)
private List<DefineConcept> myConcept;
private java.util.List<DefineConcept> myConcept;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myCode, myAbstract, myDisplay, myDefinition, myConcept);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myCode, myAbstract, myDisplay, myDefinition, myConcept);
}
/**
* Gets the value(s) for <b>code</b> (Code that identifies concept).
@ -1289,9 +1323,9 @@ public class ValueSet extends BaseResource implements IResource {
*
* </p>
*/
public List<DefineConcept> getConcept() {
public java.util.List<DefineConcept> getConcept() {
if (myConcept == null) {
myConcept = new ArrayList<DefineConcept>();
myConcept = new java.util.ArrayList<DefineConcept>();
}
return myConcept;
}
@ -1304,7 +1338,7 @@ public class ValueSet extends BaseResource implements IResource {
*
* </p>
*/
public void setConcept(List<DefineConcept> theValue) {
public void setConcept(java.util.List<DefineConcept> theValue) {
myConcept = theValue;
}
@ -1344,27 +1378,32 @@ public class ValueSet extends BaseResource implements IResource {
shortDefinition="Import the contents of another value set",
formalDefinition="Includes the contents of the referenced value set as a part of the contents of this value set"
)
private List<UriDt> myImport;
private java.util.List<UriDt> myImport;
@Child(name="include", order=1, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="Include one or more codes from a code system",
formalDefinition="Include one or more codes from a code system"
)
private List<ComposeInclude> myInclude;
private java.util.List<ComposeInclude> myInclude;
@Child(name="exclude", type=ComposeInclude.class, order=2, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="Explicitly exclude codes",
formalDefinition="Exclude one or more codes from the value set"
)
private List<ComposeInclude> myExclude;
private java.util.List<ComposeInclude> myExclude;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myImport, myInclude, myExclude);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myImport, myInclude, myExclude);
}
/**
* Gets the value(s) for <b>import</b> (Import the contents of another value set).
@ -1376,9 +1415,9 @@ public class ValueSet extends BaseResource implements IResource {
* Includes the contents of the referenced value set as a part of the contents of this value set
* </p>
*/
public List<UriDt> getImport() {
public java.util.List<UriDt> getImport() {
if (myImport == null) {
myImport = new ArrayList<UriDt>();
myImport = new java.util.ArrayList<UriDt>();
}
return myImport;
}
@ -1391,7 +1430,7 @@ public class ValueSet extends BaseResource implements IResource {
* Includes the contents of the referenced value set as a part of the contents of this value set
* </p>
*/
public void setImport(List<UriDt> theValue) {
public void setImport(java.util.List<UriDt> theValue) {
myImport = theValue;
}
@ -1419,7 +1458,7 @@ public class ValueSet extends BaseResource implements IResource {
*/
public void addImport( String theUri) {
if (myImport == null) {
myImport = new ArrayList<UriDt>();
myImport = new java.util.ArrayList<UriDt>();
}
myImport.add(new UriDt(theUri));
}
@ -1435,9 +1474,9 @@ public class ValueSet extends BaseResource implements IResource {
* Include one or more codes from a code system
* </p>
*/
public List<ComposeInclude> getInclude() {
public java.util.List<ComposeInclude> getInclude() {
if (myInclude == null) {
myInclude = new ArrayList<ComposeInclude>();
myInclude = new java.util.ArrayList<ComposeInclude>();
}
return myInclude;
}
@ -1450,7 +1489,7 @@ public class ValueSet extends BaseResource implements IResource {
* Include one or more codes from a code system
* </p>
*/
public void setInclude(List<ComposeInclude> theValue) {
public void setInclude(java.util.List<ComposeInclude> theValue) {
myInclude = theValue;
}
@ -1479,9 +1518,9 @@ public class ValueSet extends BaseResource implements IResource {
* Exclude one or more codes from the value set
* </p>
*/
public List<ComposeInclude> getExclude() {
public java.util.List<ComposeInclude> getExclude() {
if (myExclude == null) {
myExclude = new ArrayList<ComposeInclude>();
myExclude = new java.util.ArrayList<ComposeInclude>();
}
return myExclude;
}
@ -1494,7 +1533,7 @@ public class ValueSet extends BaseResource implements IResource {
* Exclude one or more codes from the value set
* </p>
*/
public void setExclude(List<ComposeInclude> theValue) {
public void setExclude(java.util.List<ComposeInclude> theValue) {
myExclude = theValue;
}
@ -1546,20 +1585,25 @@ public class ValueSet extends BaseResource implements IResource {
shortDefinition="Code or concept from system",
formalDefinition="Specifies a code or concept to be included or excluded. The list of codes is considered ordered, though the order may not have any particular significance"
)
private List<CodeDt> myCode;
private java.util.List<CodeDt> myCode;
@Child(name="filter", order=3, min=0, max=Child.MAX_UNLIMITED)
@Description(
shortDefinition="Select codes/concepts by their properties (including relationships)",
formalDefinition="Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true."
)
private List<ComposeIncludeFilter> myFilter;
private java.util.List<ComposeIncludeFilter> myFilter;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myVersion, myCode, myFilter);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( mySystem, myVersion, myCode, myFilter);
}
/**
* Gets the value(s) for <b>system</b> (The system the codes come from).
@ -1657,9 +1701,9 @@ public class ValueSet extends BaseResource implements IResource {
* Specifies a code or concept to be included or excluded. The list of codes is considered ordered, though the order may not have any particular significance
* </p>
*/
public List<CodeDt> getCode() {
public java.util.List<CodeDt> getCode() {
if (myCode == null) {
myCode = new ArrayList<CodeDt>();
myCode = new java.util.ArrayList<CodeDt>();
}
return myCode;
}
@ -1672,7 +1716,7 @@ public class ValueSet extends BaseResource implements IResource {
* Specifies a code or concept to be included or excluded. The list of codes is considered ordered, though the order may not have any particular significance
* </p>
*/
public void setCode(List<CodeDt> theValue) {
public void setCode(java.util.List<CodeDt> theValue) {
myCode = theValue;
}
@ -1700,7 +1744,7 @@ public class ValueSet extends BaseResource implements IResource {
*/
public void addCode( String theCode) {
if (myCode == null) {
myCode = new ArrayList<CodeDt>();
myCode = new java.util.ArrayList<CodeDt>();
}
myCode.add(new CodeDt(theCode));
}
@ -1716,9 +1760,9 @@ public class ValueSet extends BaseResource implements IResource {
* Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true.
* </p>
*/
public List<ComposeIncludeFilter> getFilter() {
public java.util.List<ComposeIncludeFilter> getFilter() {
if (myFilter == null) {
myFilter = new ArrayList<ComposeIncludeFilter>();
myFilter = new java.util.ArrayList<ComposeIncludeFilter>();
}
return myFilter;
}
@ -1731,7 +1775,7 @@ public class ValueSet extends BaseResource implements IResource {
* Select concepts by specify a matching criteria based on the properties (including relationships) defined by the system. If multiple filters are specified, they SHALL all be true.
* </p>
*/
public void setFilter(List<ComposeIncludeFilter> theValue) {
public void setFilter(java.util.List<ComposeIncludeFilter> theValue) {
myFilter = theValue;
}
@ -1790,6 +1834,11 @@ public class ValueSet extends BaseResource implements IResource {
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myProperty, myOp, myValue);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myProperty, myOp, myValue);
}
/**
* Gets the value(s) for <b>property</b> ().
@ -1956,13 +2005,18 @@ public class ValueSet extends BaseResource implements IResource {
shortDefinition="Codes in the value set",
formalDefinition=""
)
private List<ExpansionContains> myContains;
private java.util.List<ExpansionContains> myContains;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myTimestamp, myContains);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( myIdentifier, myTimestamp, myContains);
}
/**
* Gets the value(s) for <b>identifier</b> (Uniquely identifies this expansion).
@ -2033,8 +2087,8 @@ public class ValueSet extends BaseResource implements IResource {
*
* </p>
*/
public void setTimestampWithMillisPrecision( Date theDate) {
myTimestamp = new InstantDt(theDate);
public void setTimestamp( Date theDate, TemporalPrecisionEnum thePrecision) {
myTimestamp = new InstantDt(theDate, thePrecision);
}
/**
@ -2045,8 +2099,8 @@ public class ValueSet extends BaseResource implements IResource {
*
* </p>
*/
public void setTimestamp( Date theDate, TemporalPrecisionEnum thePrecision) {
myTimestamp = new InstantDt(theDate, thePrecision);
public void setTimestampWithMillisPrecision( Date theDate) {
myTimestamp = new InstantDt(theDate);
}
@ -2060,9 +2114,9 @@ public class ValueSet extends BaseResource implements IResource {
*
* </p>
*/
public List<ExpansionContains> getContains() {
public java.util.List<ExpansionContains> getContains() {
if (myContains == null) {
myContains = new ArrayList<ExpansionContains>();
myContains = new java.util.ArrayList<ExpansionContains>();
}
return myContains;
}
@ -2075,7 +2129,7 @@ public class ValueSet extends BaseResource implements IResource {
*
* </p>
*/
public void setContains(List<ExpansionContains> theValue) {
public void setContains(java.util.List<ExpansionContains> theValue) {
myContains = theValue;
}
@ -2134,13 +2188,18 @@ public class ValueSet extends BaseResource implements IResource {
shortDefinition="Codes contained in this concept",
formalDefinition=""
)
private List<ExpansionContains> myContains;
private java.util.List<ExpansionContains> myContains;
@Override
public boolean isEmpty() {
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySystem, myCode, myDisplay, myContains);
}
public java.util.List<IElement> getAllPopulatedChildElements() {
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements( mySystem, myCode, myDisplay, myContains);
}
/**
* Gets the value(s) for <b>system</b> (System value for the code).
@ -2281,9 +2340,9 @@ public class ValueSet extends BaseResource implements IResource {
*
* </p>
*/
public List<ExpansionContains> getContains() {
public java.util.List<ExpansionContains> getContains() {
if (myContains == null) {
myContains = new ArrayList<ExpansionContains>();
myContains = new java.util.ArrayList<ExpansionContains>();
}
return myContains;
}
@ -2296,7 +2355,7 @@ public class ValueSet extends BaseResource implements IResource {
*
* </p>
*/
public void setContains(List<ExpansionContains> theValue) {
public void setContains(java.util.List<ExpansionContains> theValue) {
myContains = theValue;
}

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum AddressUseEnum {
/**

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum AdministrativeGenderCodesEnum {
/**

View File

@ -0,0 +1,163 @@
package ca.uhn.fhir.model.dstu.valueset;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum AdmitSourceEnum {
/**
* Display: <b>Transferred from other hospital</b><br/>
* Code Value: <b>hosp-trans</b>
*/
TRANSFERRED_FROM_OTHER_HOSPITAL("hosp-trans", "http://hl7.org/fhir/admit-source"),
/**
* Display: <b>From accident/emergency department</b><br/>
* Code Value: <b>emd</b>
*/
FROM_ACCIDENT_EMERGENCY_DEPARTMENT("emd", "http://hl7.org/fhir/admit-source"),
/**
* Display: <b>From outpatient department</b><br/>
* Code Value: <b>outp</b>
*/
FROM_OUTPATIENT_DEPARTMENT("outp", "http://hl7.org/fhir/admit-source"),
/**
* Display: <b>Born in hospital</b><br/>
* Code Value: <b>born</b>
*/
BORN_IN_HOSPITAL("born", "http://hl7.org/fhir/admit-source"),
/**
* Display: <b>General Practitioner referral</b><br/>
* Code Value: <b>gp</b>
*/
GENERAL_PRACTITIONER_REFERRAL("gp", "http://hl7.org/fhir/admit-source"),
/**
* Display: <b>Medical Practitioner/physician referral</b><br/>
* Code Value: <b>mp</b>
*/
MEDICAL_PRACTITIONER_PHYSICIAN_REFERRAL("mp", "http://hl7.org/fhir/admit-source"),
/**
* Display: <b>From nursing home</b><br/>
* Code Value: <b>nursing</b>
*/
FROM_NURSING_HOME("nursing", "http://hl7.org/fhir/admit-source"),
/**
* Display: <b>From psychiatric hospital</b><br/>
* Code Value: <b>psych</b>
*/
FROM_PSYCHIATRIC_HOSPITAL("psych", "http://hl7.org/fhir/admit-source"),
/**
* Display: <b>From rehabilitation facility</b><br/>
* Code Value: <b>rehab</b>
*/
FROM_REHABILITATION_FACILITY("rehab", "http://hl7.org/fhir/admit-source"),
/**
* Display: <b>Other</b><br/>
* Code Value: <b>other</b>
*/
OTHER("other", "http://hl7.org/fhir/admit-source"),
;
/**
* Identifier for this Value Set:
* http://hl7.org/fhir/vs/encounter-admit-source
*/
public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-admit-source";
/**
* Name for this Value Set:
* AdmitSource
*/
public static final String VALUESET_NAME = "AdmitSource";
private static Map<String, AdmitSourceEnum> CODE_TO_ENUM = new HashMap<String, AdmitSourceEnum>();
private static Map<String, Map<String, AdmitSourceEnum>> SYSTEM_TO_CODE_TO_ENUM = new HashMap<String, Map<String, AdmitSourceEnum>>();
private final String myCode;
private final String mySystem;
static {
for (AdmitSourceEnum next : AdmitSourceEnum.values()) {
CODE_TO_ENUM.put(next.getCode(), next);
if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) {
SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap<String, AdmitSourceEnum>());
}
SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next);
}
}
/**
* Returns the code associated with this enumerated value
*/
public String getCode() {
return myCode;
}
/**
* Returns the code system associated with this enumerated value
*/
public String getSystem() {
return mySystem;
}
/**
* Returns the enumerated value associated with this code
*/
public AdmitSourceEnum forCode(String theCode) {
AdmitSourceEnum retVal = CODE_TO_ENUM.get(theCode);
return retVal;
}
/**
* Converts codes to their respective enumerated values
*/
public static final IValueSetEnumBinder<AdmitSourceEnum> VALUESET_BINDER = new IValueSetEnumBinder<AdmitSourceEnum>() {
@Override
public String toCodeString(AdmitSourceEnum theEnum) {
return theEnum.getCode();
}
@Override
public String toSystemString(AdmitSourceEnum theEnum) {
return theEnum.getSystem();
}
@Override
public AdmitSourceEnum fromCodeString(String theCodeString) {
return CODE_TO_ENUM.get(theCodeString);
}
@Override
public AdmitSourceEnum fromCodeString(String theCodeString, String theSystemString) {
Map<String, AdmitSourceEnum> map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString);
if (map == null) {
return null;
}
return map.get(theCodeString);
}
};
/**
* Constructor
*/
AdmitSourceEnum(String theCode, String theSystem) {
myCode = theCode;
mySystem = theSystem;
}
}

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum AggregationModeEnum {
/**

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum AnimalSpeciesEnum {
/**

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum BindingConformanceEnum {
/**

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum ConformanceEventModeEnum {
/**

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum ConformanceStatementStatusEnum {
/**

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum ConstraintSeverityEnum {
/**

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum ContactSystemEnum {
/**

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum ContactUseEnum {
/**

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum DataTypeEnum {
/**

View File

@ -0,0 +1,135 @@
package ca.uhn.fhir.model.dstu.valueset;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum DiagnosticOrderPriorityEnum {
/**
* Display: <b>Routine</b><br/>
* Code Value: <b>routine</b>
*
* The order has a normal priority.
*/
ROUTINE("routine", "http://hl7.org/fhir/diagnostic-order-priority"),
/**
* Display: <b>Urgent</b><br/>
* Code Value: <b>urgent</b>
*
* The order should be urgently.
*/
URGENT("urgent", "http://hl7.org/fhir/diagnostic-order-priority"),
/**
* Display: <b>Stat</b><br/>
* Code Value: <b>stat</b>
*
* The order is time-critical.
*/
STAT("stat", "http://hl7.org/fhir/diagnostic-order-priority"),
/**
* Display: <b>ASAP</b><br/>
* Code Value: <b>asap</b>
*
* The order should be acted on as soon as possible.
*/
ASAP("asap", "http://hl7.org/fhir/diagnostic-order-priority"),
;
/**
* Identifier for this Value Set:
* http://hl7.org/fhir/vs/diagnostic-order-priority
*/
public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/diagnostic-order-priority";
/**
* Name for this Value Set:
* DiagnosticOrderPriority
*/
public static final String VALUESET_NAME = "DiagnosticOrderPriority";
private static Map<String, DiagnosticOrderPriorityEnum> CODE_TO_ENUM = new HashMap<String, DiagnosticOrderPriorityEnum>();
private static Map<String, Map<String, DiagnosticOrderPriorityEnum>> SYSTEM_TO_CODE_TO_ENUM = new HashMap<String, Map<String, DiagnosticOrderPriorityEnum>>();
private final String myCode;
private final String mySystem;
static {
for (DiagnosticOrderPriorityEnum next : DiagnosticOrderPriorityEnum.values()) {
CODE_TO_ENUM.put(next.getCode(), next);
if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) {
SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap<String, DiagnosticOrderPriorityEnum>());
}
SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next);
}
}
/**
* Returns the code associated with this enumerated value
*/
public String getCode() {
return myCode;
}
/**
* Returns the code system associated with this enumerated value
*/
public String getSystem() {
return mySystem;
}
/**
* Returns the enumerated value associated with this code
*/
public DiagnosticOrderPriorityEnum forCode(String theCode) {
DiagnosticOrderPriorityEnum retVal = CODE_TO_ENUM.get(theCode);
return retVal;
}
/**
* Converts codes to their respective enumerated values
*/
public static final IValueSetEnumBinder<DiagnosticOrderPriorityEnum> VALUESET_BINDER = new IValueSetEnumBinder<DiagnosticOrderPriorityEnum>() {
@Override
public String toCodeString(DiagnosticOrderPriorityEnum theEnum) {
return theEnum.getCode();
}
@Override
public String toSystemString(DiagnosticOrderPriorityEnum theEnum) {
return theEnum.getSystem();
}
@Override
public DiagnosticOrderPriorityEnum fromCodeString(String theCodeString) {
return CODE_TO_ENUM.get(theCodeString);
}
@Override
public DiagnosticOrderPriorityEnum fromCodeString(String theCodeString, String theSystemString) {
Map<String, DiagnosticOrderPriorityEnum> map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString);
if (map == null) {
return null;
}
return map.get(theCodeString);
}
};
/**
* Constructor
*/
DiagnosticOrderPriorityEnum(String theCode, String theSystem) {
myCode = theCode;
mySystem = theSystem;
}
}

View File

@ -0,0 +1,166 @@
package ca.uhn.fhir.model.dstu.valueset;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum DiagnosticOrderStatusEnum {
/**
* Code Value: <b>requested</b>
*
* The request has been placed.
*/
REQUESTED("requested", "http://hl7.org/fhir/diagnostic-order-status"),
/**
* Code Value: <b>received</b>
*
* The receiving system has received the order, but not yet decided whether it will be performed.
*/
RECEIVED("received", "http://hl7.org/fhir/diagnostic-order-status"),
/**
* Code Value: <b>accepted</b>
*
* The receiving system has accepted the order, but work has not yet commenced.
*/
ACCEPTED("accepted", "http://hl7.org/fhir/diagnostic-order-status"),
/**
* Code Value: <b>in progress</b>
*
* The work to fulfill the order is happening.
*/
IN_PROGRESS("in progress", "http://hl7.org/fhir/diagnostic-order-status"),
/**
* Code Value: <b>review</b>
*
* The work is complete, and the outcomes are being reviewed for approval.
*/
REVIEW("review", "http://hl7.org/fhir/diagnostic-order-status"),
/**
* Code Value: <b>completed</b>
*
* The work has been complete, the report(s) released, and no further work is planned.
*/
COMPLETED("completed", "http://hl7.org/fhir/diagnostic-order-status"),
/**
* Code Value: <b>suspended</b>
*
* The request has been held by originating system/user request.
*/
SUSPENDED("suspended", "http://hl7.org/fhir/diagnostic-order-status"),
/**
* Code Value: <b>rejected</b>
*
* The receiving system has declined to fulfill the request.
*/
REJECTED("rejected", "http://hl7.org/fhir/diagnostic-order-status"),
/**
* Code Value: <b>failed</b>
*
* The diagnostic investigation was attempted, but due to some procedural error, it could not be completed.
*/
FAILED("failed", "http://hl7.org/fhir/diagnostic-order-status"),
;
/**
* Identifier for this Value Set:
* http://hl7.org/fhir/vs/diagnostic-order-status
*/
public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/diagnostic-order-status";
/**
* Name for this Value Set:
* DiagnosticOrderStatus
*/
public static final String VALUESET_NAME = "DiagnosticOrderStatus";
private static Map<String, DiagnosticOrderStatusEnum> CODE_TO_ENUM = new HashMap<String, DiagnosticOrderStatusEnum>();
private static Map<String, Map<String, DiagnosticOrderStatusEnum>> SYSTEM_TO_CODE_TO_ENUM = new HashMap<String, Map<String, DiagnosticOrderStatusEnum>>();
private final String myCode;
private final String mySystem;
static {
for (DiagnosticOrderStatusEnum next : DiagnosticOrderStatusEnum.values()) {
CODE_TO_ENUM.put(next.getCode(), next);
if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) {
SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap<String, DiagnosticOrderStatusEnum>());
}
SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next);
}
}
/**
* Returns the code associated with this enumerated value
*/
public String getCode() {
return myCode;
}
/**
* Returns the code system associated with this enumerated value
*/
public String getSystem() {
return mySystem;
}
/**
* Returns the enumerated value associated with this code
*/
public DiagnosticOrderStatusEnum forCode(String theCode) {
DiagnosticOrderStatusEnum retVal = CODE_TO_ENUM.get(theCode);
return retVal;
}
/**
* Converts codes to their respective enumerated values
*/
public static final IValueSetEnumBinder<DiagnosticOrderStatusEnum> VALUESET_BINDER = new IValueSetEnumBinder<DiagnosticOrderStatusEnum>() {
@Override
public String toCodeString(DiagnosticOrderStatusEnum theEnum) {
return theEnum.getCode();
}
@Override
public String toSystemString(DiagnosticOrderStatusEnum theEnum) {
return theEnum.getSystem();
}
@Override
public DiagnosticOrderStatusEnum fromCodeString(String theCodeString) {
return CODE_TO_ENUM.get(theCodeString);
}
@Override
public DiagnosticOrderStatusEnum fromCodeString(String theCodeString, String theSystemString) {
Map<String, DiagnosticOrderStatusEnum> map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString);
if (map == null) {
return null;
}
return map.get(theCodeString);
}
};
/**
* Constructor
*/
DiagnosticOrderStatusEnum(String theCode, String theSystem) {
myCode = theCode;
mySystem = theSystem;
}
}

View File

@ -0,0 +1,159 @@
package ca.uhn.fhir.model.dstu.valueset;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum DiagnosticReportStatusEnum {
/**
* Code Value: <b>registered</b>
*
* The existence of the report is registered, but there is nothing yet available.
*/
REGISTERED("registered", "http://hl7.org/fhir/diagnostic-report-status"),
/**
* Code Value: <b>partial</b>
*
* This is a partial (e.g. initial, interim or preliminary) report: data in the report may be incomplete or unverified.
*/
PARTIAL("partial", "http://hl7.org/fhir/diagnostic-report-status"),
/**
* Code Value: <b>final</b>
*
* The report is complete and verified by an authorized person.
*/
FINAL("final", "http://hl7.org/fhir/diagnostic-report-status"),
/**
* Code Value: <b>corrected</b>
*
* The report has been modified subsequent to being Final, and is complete and verified by an authorized person.
*/
CORRECTED("corrected", "http://hl7.org/fhir/diagnostic-report-status"),
/**
* Code Value: <b>amended</b>
*
* The report has been modified subsequent to being Final, and is complete and verified by an authorized person, and data has been changed.
*/
AMENDED("amended", "http://hl7.org/fhir/diagnostic-report-status"),
/**
* Code Value: <b>appended</b>
*
* The report has been modified subsequent to being Final, and is complete and verified by an authorized person. New content has been added, but existing content hasn't changed.
*/
APPENDED("appended", "http://hl7.org/fhir/diagnostic-report-status"),
/**
* Code Value: <b>cancelled</b>
*
* The report is unavailable because the measurement was not started or not completed (also sometimes called "aborted").
*/
CANCELLED("cancelled", "http://hl7.org/fhir/diagnostic-report-status"),
/**
* Code Value: <b>entered in error</b>
*
* The report has been withdrawn following previous Final release.
*/
ENTERED_IN_ERROR("entered in error", "http://hl7.org/fhir/diagnostic-report-status"),
;
/**
* Identifier for this Value Set:
* http://hl7.org/fhir/vs/diagnostic-report-status
*/
public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/diagnostic-report-status";
/**
* Name for this Value Set:
* DiagnosticReportStatus
*/
public static final String VALUESET_NAME = "DiagnosticReportStatus";
private static Map<String, DiagnosticReportStatusEnum> CODE_TO_ENUM = new HashMap<String, DiagnosticReportStatusEnum>();
private static Map<String, Map<String, DiagnosticReportStatusEnum>> SYSTEM_TO_CODE_TO_ENUM = new HashMap<String, Map<String, DiagnosticReportStatusEnum>>();
private final String myCode;
private final String mySystem;
static {
for (DiagnosticReportStatusEnum next : DiagnosticReportStatusEnum.values()) {
CODE_TO_ENUM.put(next.getCode(), next);
if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) {
SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap<String, DiagnosticReportStatusEnum>());
}
SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next);
}
}
/**
* Returns the code associated with this enumerated value
*/
public String getCode() {
return myCode;
}
/**
* Returns the code system associated with this enumerated value
*/
public String getSystem() {
return mySystem;
}
/**
* Returns the enumerated value associated with this code
*/
public DiagnosticReportStatusEnum forCode(String theCode) {
DiagnosticReportStatusEnum retVal = CODE_TO_ENUM.get(theCode);
return retVal;
}
/**
* Converts codes to their respective enumerated values
*/
public static final IValueSetEnumBinder<DiagnosticReportStatusEnum> VALUESET_BINDER = new IValueSetEnumBinder<DiagnosticReportStatusEnum>() {
@Override
public String toCodeString(DiagnosticReportStatusEnum theEnum) {
return theEnum.getCode();
}
@Override
public String toSystemString(DiagnosticReportStatusEnum theEnum) {
return theEnum.getSystem();
}
@Override
public DiagnosticReportStatusEnum fromCodeString(String theCodeString) {
return CODE_TO_ENUM.get(theCodeString);
}
@Override
public DiagnosticReportStatusEnum fromCodeString(String theCodeString, String theSystemString) {
Map<String, DiagnosticReportStatusEnum> map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString);
if (map == null) {
return null;
}
return map.get(theCodeString);
}
};
/**
* Constructor
*/
DiagnosticReportStatusEnum(String theCode, String theSystem) {
myCode = theCode;
mySystem = theSystem;
}
}

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum DocumentModeEnum {
/**

View File

@ -0,0 +1,159 @@
package ca.uhn.fhir.model.dstu.valueset;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum EncounterClassEnum {
/**
* Code Value: <b>inpatient</b>
*
* An encounter during which the patient is hospitalized and stays overnight.
*/
INPATIENT("inpatient", "http://hl7.org/fhir/encounter-class"),
/**
* Code Value: <b>outpatient</b>
*
* An encounter during which the patient is not hospitalized overnight.
*/
OUTPATIENT("outpatient", "http://hl7.org/fhir/encounter-class"),
/**
* Code Value: <b>ambulatory</b>
*
* An encounter where the patient visits the practitioner in his/her office, e.g. a G.P. visit.
*/
AMBULATORY("ambulatory", "http://hl7.org/fhir/encounter-class"),
/**
* Code Value: <b>emergency</b>
*
* An encounter where the patient needs urgent care.
*/
EMERGENCY("emergency", "http://hl7.org/fhir/encounter-class"),
/**
* Code Value: <b>home</b>
*
* An encounter where the practitioner visits the patient at his/her home.
*/
HOME("home", "http://hl7.org/fhir/encounter-class"),
/**
* Code Value: <b>field</b>
*
* An encounter taking place outside the regular environment for giving care.
*/
FIELD("field", "http://hl7.org/fhir/encounter-class"),
/**
* Code Value: <b>daytime</b>
*
* An encounter where the patient needs more prolonged treatment or investigations than outpatients, but who do not need to stay in the hospital overnight.
*/
DAYTIME("daytime", "http://hl7.org/fhir/encounter-class"),
/**
* Code Value: <b>virtual</b>
*
* An encounter that takes place where the patient and practitioner do not physically meet but use electronic means for contact.
*/
VIRTUAL("virtual", "http://hl7.org/fhir/encounter-class"),
;
/**
* Identifier for this Value Set:
* http://hl7.org/fhir/vs/encounter-class
*/
public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-class";
/**
* Name for this Value Set:
* EncounterClass
*/
public static final String VALUESET_NAME = "EncounterClass";
private static Map<String, EncounterClassEnum> CODE_TO_ENUM = new HashMap<String, EncounterClassEnum>();
private static Map<String, Map<String, EncounterClassEnum>> SYSTEM_TO_CODE_TO_ENUM = new HashMap<String, Map<String, EncounterClassEnum>>();
private final String myCode;
private final String mySystem;
static {
for (EncounterClassEnum next : EncounterClassEnum.values()) {
CODE_TO_ENUM.put(next.getCode(), next);
if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) {
SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap<String, EncounterClassEnum>());
}
SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next);
}
}
/**
* Returns the code associated with this enumerated value
*/
public String getCode() {
return myCode;
}
/**
* Returns the code system associated with this enumerated value
*/
public String getSystem() {
return mySystem;
}
/**
* Returns the enumerated value associated with this code
*/
public EncounterClassEnum forCode(String theCode) {
EncounterClassEnum retVal = CODE_TO_ENUM.get(theCode);
return retVal;
}
/**
* Converts codes to their respective enumerated values
*/
public static final IValueSetEnumBinder<EncounterClassEnum> VALUESET_BINDER = new IValueSetEnumBinder<EncounterClassEnum>() {
@Override
public String toCodeString(EncounterClassEnum theEnum) {
return theEnum.getCode();
}
@Override
public String toSystemString(EncounterClassEnum theEnum) {
return theEnum.getSystem();
}
@Override
public EncounterClassEnum fromCodeString(String theCodeString) {
return CODE_TO_ENUM.get(theCodeString);
}
@Override
public EncounterClassEnum fromCodeString(String theCodeString, String theSystemString) {
Map<String, EncounterClassEnum> map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString);
if (map == null) {
return null;
}
return map.get(theCodeString);
}
};
/**
* Constructor
*/
EncounterClassEnum(String theCode, String theSystem) {
myCode = theCode;
mySystem = theSystem;
}
}

View File

@ -0,0 +1,103 @@
package ca.uhn.fhir.model.dstu.valueset;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum EncounterReasonCodesEnum {
;
/**
* Identifier for this Value Set:
* http://hl7.org/fhir/vs/encounter-reason
*/
public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-reason";
/**
* Name for this Value Set:
* Encounter Reason Codes
*/
public static final String VALUESET_NAME = "Encounter Reason Codes";
private static Map<String, EncounterReasonCodesEnum> CODE_TO_ENUM = new HashMap<String, EncounterReasonCodesEnum>();
private static Map<String, Map<String, EncounterReasonCodesEnum>> SYSTEM_TO_CODE_TO_ENUM = new HashMap<String, Map<String, EncounterReasonCodesEnum>>();
private final String myCode;
private final String mySystem;
static {
for (EncounterReasonCodesEnum next : EncounterReasonCodesEnum.values()) {
CODE_TO_ENUM.put(next.getCode(), next);
if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) {
SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap<String, EncounterReasonCodesEnum>());
}
SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next);
}
}
/**
* Returns the code associated with this enumerated value
*/
public String getCode() {
return myCode;
}
/**
* Returns the code system associated with this enumerated value
*/
public String getSystem() {
return mySystem;
}
/**
* Returns the enumerated value associated with this code
*/
public EncounterReasonCodesEnum forCode(String theCode) {
EncounterReasonCodesEnum retVal = CODE_TO_ENUM.get(theCode);
return retVal;
}
/**
* Converts codes to their respective enumerated values
*/
public static final IValueSetEnumBinder<EncounterReasonCodesEnum> VALUESET_BINDER = new IValueSetEnumBinder<EncounterReasonCodesEnum>() {
@Override
public String toCodeString(EncounterReasonCodesEnum theEnum) {
return theEnum.getCode();
}
@Override
public String toSystemString(EncounterReasonCodesEnum theEnum) {
return theEnum.getSystem();
}
@Override
public EncounterReasonCodesEnum fromCodeString(String theCodeString) {
return CODE_TO_ENUM.get(theCodeString);
}
@Override
public EncounterReasonCodesEnum fromCodeString(String theCodeString, String theSystemString) {
Map<String, EncounterReasonCodesEnum> map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString);
if (map == null) {
return null;
}
return map.get(theCodeString);
}
};
/**
* Constructor
*/
EncounterReasonCodesEnum(String theCode, String theSystem) {
myCode = theCode;
mySystem = theSystem;
}
}

View File

@ -0,0 +1,138 @@
package ca.uhn.fhir.model.dstu.valueset;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum EncounterStateEnum {
/**
* Code Value: <b>planned</b>
*
* The Encounter has not yet started.
*/
PLANNED("planned", "http://hl7.org/fhir/encounter-state"),
/**
* Code Value: <b>in progress</b>
*
* The Encounter has begun and the patient is present / the practitioner and the patient are meeting.
*/
IN_PROGRESS("in progress", "http://hl7.org/fhir/encounter-state"),
/**
* Code Value: <b>onleave</b>
*
* The Encounter has begun, but the patient is temporarily on leave.
*/
ONLEAVE("onleave", "http://hl7.org/fhir/encounter-state"),
/**
* Code Value: <b>finished</b>
*
* The Encounter has ended.
*/
FINISHED("finished", "http://hl7.org/fhir/encounter-state"),
/**
* Code Value: <b>cancelled</b>
*
* The Encounter has ended before it has begun.
*/
CANCELLED("cancelled", "http://hl7.org/fhir/encounter-state"),
;
/**
* Identifier for this Value Set:
* http://hl7.org/fhir/vs/encounter-state
*/
public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-state";
/**
* Name for this Value Set:
* EncounterState
*/
public static final String VALUESET_NAME = "EncounterState";
private static Map<String, EncounterStateEnum> CODE_TO_ENUM = new HashMap<String, EncounterStateEnum>();
private static Map<String, Map<String, EncounterStateEnum>> SYSTEM_TO_CODE_TO_ENUM = new HashMap<String, Map<String, EncounterStateEnum>>();
private final String myCode;
private final String mySystem;
static {
for (EncounterStateEnum next : EncounterStateEnum.values()) {
CODE_TO_ENUM.put(next.getCode(), next);
if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) {
SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap<String, EncounterStateEnum>());
}
SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next);
}
}
/**
* Returns the code associated with this enumerated value
*/
public String getCode() {
return myCode;
}
/**
* Returns the code system associated with this enumerated value
*/
public String getSystem() {
return mySystem;
}
/**
* Returns the enumerated value associated with this code
*/
public EncounterStateEnum forCode(String theCode) {
EncounterStateEnum retVal = CODE_TO_ENUM.get(theCode);
return retVal;
}
/**
* Converts codes to their respective enumerated values
*/
public static final IValueSetEnumBinder<EncounterStateEnum> VALUESET_BINDER = new IValueSetEnumBinder<EncounterStateEnum>() {
@Override
public String toCodeString(EncounterStateEnum theEnum) {
return theEnum.getCode();
}
@Override
public String toSystemString(EncounterStateEnum theEnum) {
return theEnum.getSystem();
}
@Override
public EncounterStateEnum fromCodeString(String theCodeString) {
return CODE_TO_ENUM.get(theCodeString);
}
@Override
public EncounterStateEnum fromCodeString(String theCodeString, String theSystemString) {
Map<String, EncounterStateEnum> map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString);
if (map == null) {
return null;
}
return map.get(theCodeString);
}
};
/**
* Constructor
*/
EncounterStateEnum(String theCode, String theSystem) {
myCode = theCode;
mySystem = theSystem;
}
}

View File

@ -0,0 +1,127 @@
package ca.uhn.fhir.model.dstu.valueset;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum EncounterTypeEnum {
/**
* Display: <b>Annual diabetes mellitus screening</b><br/>
* Code Value: <b>ADMS</b>
*/
ANNUAL_DIABETES_MELLITUS_SCREENING("ADMS", "http://hl7.org/fhir/encounter-type"),
/**
* Display: <b>Bone drilling/bone marrow punction in clinic</b><br/>
* Code Value: <b>BD/BM-clin</b>
*/
BONE_DRILLING_BONE_MARROW_PUNCTION_IN_CLINIC("BD/BM-clin", "http://hl7.org/fhir/encounter-type"),
/**
* Display: <b>Infant colon screening - 60 minutes</b><br/>
* Code Value: <b>CCS60</b>
*/
INFANT_COLON_SCREENING___60_MINUTES("CCS60", "http://hl7.org/fhir/encounter-type"),
/**
* Display: <b>Outpatient Kenacort injection</b><br/>
* Code Value: <b>OKI</b>
*/
OUTPATIENT_KENACORT_INJECTION("OKI", "http://hl7.org/fhir/encounter-type"),
;
/**
* Identifier for this Value Set:
* http://hl7.org/fhir/vs/encounter-type
*/
public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/encounter-type";
/**
* Name for this Value Set:
* EncounterType
*/
public static final String VALUESET_NAME = "EncounterType";
private static Map<String, EncounterTypeEnum> CODE_TO_ENUM = new HashMap<String, EncounterTypeEnum>();
private static Map<String, Map<String, EncounterTypeEnum>> SYSTEM_TO_CODE_TO_ENUM = new HashMap<String, Map<String, EncounterTypeEnum>>();
private final String myCode;
private final String mySystem;
static {
for (EncounterTypeEnum next : EncounterTypeEnum.values()) {
CODE_TO_ENUM.put(next.getCode(), next);
if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) {
SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap<String, EncounterTypeEnum>());
}
SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next);
}
}
/**
* Returns the code associated with this enumerated value
*/
public String getCode() {
return myCode;
}
/**
* Returns the code system associated with this enumerated value
*/
public String getSystem() {
return mySystem;
}
/**
* Returns the enumerated value associated with this code
*/
public EncounterTypeEnum forCode(String theCode) {
EncounterTypeEnum retVal = CODE_TO_ENUM.get(theCode);
return retVal;
}
/**
* Converts codes to their respective enumerated values
*/
public static final IValueSetEnumBinder<EncounterTypeEnum> VALUESET_BINDER = new IValueSetEnumBinder<EncounterTypeEnum>() {
@Override
public String toCodeString(EncounterTypeEnum theEnum) {
return theEnum.getCode();
}
@Override
public String toSystemString(EncounterTypeEnum theEnum) {
return theEnum.getSystem();
}
@Override
public EncounterTypeEnum fromCodeString(String theCodeString) {
return CODE_TO_ENUM.get(theCodeString);
}
@Override
public EncounterTypeEnum fromCodeString(String theCodeString, String theSystemString) {
Map<String, EncounterTypeEnum> map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString);
if (map == null) {
return null;
}
return map.get(theCodeString);
}
};
/**
* Constructor
*/
EncounterTypeEnum(String theCode, String theSystem) {
myCode = theCode;
mySystem = theSystem;
}
}

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum EventTimingEnum {
/**

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum ExtensionContextEnum {
/**

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum FHIRDefinedTypeEnum {
/**

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum FilterOperatorEnum {
/**

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum GroupTypeEnum {
/**

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum HierarchicalRelationshipTypeEnum {
/**

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum IdentifierUseEnum {
/**

View File

@ -0,0 +1,283 @@
package ca.uhn.fhir.model.dstu.valueset;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum ImagingModalityEnum {
/**
* Code Value: <b>AR</b>
*/
AR("AR", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>BMD</b>
*/
BMD("BMD", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>BDUS</b>
*/
BDUS("BDUS", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>EPS</b>
*/
EPS("EPS", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>CR</b>
*/
CR("CR", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>CT</b>
*/
CT("CT", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>DX</b>
*/
DX("DX", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>ECG</b>
*/
ECG("ECG", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>ES</b>
*/
ES("ES", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>XC</b>
*/
XC("XC", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>GM</b>
*/
GM("GM", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>HD</b>
*/
HD("HD", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>IO</b>
*/
IO("IO", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>IVOCT</b>
*/
IVOCT("IVOCT", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>IVUS</b>
*/
IVUS("IVUS", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>KER</b>
*/
KER("KER", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>LEN</b>
*/
LEN("LEN", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>MR</b>
*/
MR("MR", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>MG</b>
*/
MG("MG", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>NM</b>
*/
NM("NM", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>OAM</b>
*/
OAM("OAM", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>OCT</b>
*/
OCT("OCT", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>OPM</b>
*/
OPM("OPM", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>OP</b>
*/
OP("OP", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>OPR</b>
*/
OPR("OPR", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>OPT</b>
*/
OPT("OPT", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>OPV</b>
*/
OPV("OPV", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>PX</b>
*/
PX("PX", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>PT</b>
*/
PT("PT", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>RF</b>
*/
RF("RF", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>RG</b>
*/
RG("RG", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>SM</b>
*/
SM("SM", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>SRF</b>
*/
SRF("SRF", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>US</b>
*/
US("US", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>VA</b>
*/
VA("VA", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>XA</b>
*/
XA("XA", "http://nema.org/dicom/dcid"),
;
/**
* Identifier for this Value Set:
* http://hl7.org/fhir/vs/imaging-modality
*/
public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/imaging-modality";
/**
* Name for this Value Set:
* ImagingModality
*/
public static final String VALUESET_NAME = "ImagingModality";
private static Map<String, ImagingModalityEnum> CODE_TO_ENUM = new HashMap<String, ImagingModalityEnum>();
private static Map<String, Map<String, ImagingModalityEnum>> SYSTEM_TO_CODE_TO_ENUM = new HashMap<String, Map<String, ImagingModalityEnum>>();
private final String myCode;
private final String mySystem;
static {
for (ImagingModalityEnum next : ImagingModalityEnum.values()) {
CODE_TO_ENUM.put(next.getCode(), next);
if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) {
SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap<String, ImagingModalityEnum>());
}
SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next);
}
}
/**
* Returns the code associated with this enumerated value
*/
public String getCode() {
return myCode;
}
/**
* Returns the code system associated with this enumerated value
*/
public String getSystem() {
return mySystem;
}
/**
* Returns the enumerated value associated with this code
*/
public ImagingModalityEnum forCode(String theCode) {
ImagingModalityEnum retVal = CODE_TO_ENUM.get(theCode);
return retVal;
}
/**
* Converts codes to their respective enumerated values
*/
public static final IValueSetEnumBinder<ImagingModalityEnum> VALUESET_BINDER = new IValueSetEnumBinder<ImagingModalityEnum>() {
@Override
public String toCodeString(ImagingModalityEnum theEnum) {
return theEnum.getCode();
}
@Override
public String toSystemString(ImagingModalityEnum theEnum) {
return theEnum.getSystem();
}
@Override
public ImagingModalityEnum fromCodeString(String theCodeString) {
return CODE_TO_ENUM.get(theCodeString);
}
@Override
public ImagingModalityEnum fromCodeString(String theCodeString, String theSystemString) {
Map<String, ImagingModalityEnum> map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString);
if (map == null) {
return null;
}
return map.get(theCodeString);
}
};
/**
* Constructor
*/
ImagingModalityEnum(String theCode, String theSystem) {
myCode = theCode;
mySystem = theSystem;
}
}

View File

@ -0,0 +1,123 @@
package ca.uhn.fhir.model.dstu.valueset;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum InstanceAvailabilityEnum {
/**
* Code Value: <b>ONLINE</b>
*/
ONLINE("ONLINE", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>OFFLINE</b>
*/
OFFLINE("OFFLINE", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>NEARLINE</b>
*/
NEARLINE("NEARLINE", "http://nema.org/dicom/dcid"),
/**
* Code Value: <b>UNAVAILABLE</b>
*/
UNAVAILABLE("UNAVAILABLE", "http://nema.org/dicom/dcid"),
;
/**
* Identifier for this Value Set:
* http://hl7.org/fhir/vs/instance-availability
*/
public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/instance-availability";
/**
* Name for this Value Set:
* InstanceAvailability
*/
public static final String VALUESET_NAME = "InstanceAvailability";
private static Map<String, InstanceAvailabilityEnum> CODE_TO_ENUM = new HashMap<String, InstanceAvailabilityEnum>();
private static Map<String, Map<String, InstanceAvailabilityEnum>> SYSTEM_TO_CODE_TO_ENUM = new HashMap<String, Map<String, InstanceAvailabilityEnum>>();
private final String myCode;
private final String mySystem;
static {
for (InstanceAvailabilityEnum next : InstanceAvailabilityEnum.values()) {
CODE_TO_ENUM.put(next.getCode(), next);
if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) {
SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap<String, InstanceAvailabilityEnum>());
}
SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next);
}
}
/**
* Returns the code associated with this enumerated value
*/
public String getCode() {
return myCode;
}
/**
* Returns the code system associated with this enumerated value
*/
public String getSystem() {
return mySystem;
}
/**
* Returns the enumerated value associated with this code
*/
public InstanceAvailabilityEnum forCode(String theCode) {
InstanceAvailabilityEnum retVal = CODE_TO_ENUM.get(theCode);
return retVal;
}
/**
* Converts codes to their respective enumerated values
*/
public static final IValueSetEnumBinder<InstanceAvailabilityEnum> VALUESET_BINDER = new IValueSetEnumBinder<InstanceAvailabilityEnum>() {
@Override
public String toCodeString(InstanceAvailabilityEnum theEnum) {
return theEnum.getCode();
}
@Override
public String toSystemString(InstanceAvailabilityEnum theEnum) {
return theEnum.getSystem();
}
@Override
public InstanceAvailabilityEnum fromCodeString(String theCodeString) {
return CODE_TO_ENUM.get(theCodeString);
}
@Override
public InstanceAvailabilityEnum fromCodeString(String theCodeString, String theSystemString) {
Map<String, InstanceAvailabilityEnum> map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString);
if (map == null) {
return null;
}
return map.get(theCodeString);
}
};
/**
* Constructor
*/
InstanceAvailabilityEnum(String theCode, String theSystem) {
myCode = theCode;
mySystem = theSystem;
}
}

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum LinkTypeEnum {
/**

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum LocationModeEnum {
/**

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum LocationStatusEnum {
/**

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum LocationTypeEnum {
/**

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum MaritalStatusCodesEnum {
/**

View File

@ -0,0 +1,124 @@
package ca.uhn.fhir.model.dstu.valueset;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum MediaTypeEnum {
/**
* Code Value: <b>photo</b>
*
* The media consists of one or more unmoving images, including photographs, computer-generated graphs and charts, and scanned documents.
*/
PHOTO("photo", "http://hl7.org/fhir/media-type"),
/**
* Code Value: <b>video</b>
*
* The media consists of a series of frames that capture a moving image.
*/
VIDEO("video", "http://hl7.org/fhir/media-type"),
/**
* Code Value: <b>audio</b>
*
* The media consists of a sound recording.
*/
AUDIO("audio", "http://hl7.org/fhir/media-type"),
;
/**
* Identifier for this Value Set:
* http://hl7.org/fhir/vs/media-type
*/
public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/media-type";
/**
* Name for this Value Set:
* MediaType
*/
public static final String VALUESET_NAME = "MediaType";
private static Map<String, MediaTypeEnum> CODE_TO_ENUM = new HashMap<String, MediaTypeEnum>();
private static Map<String, Map<String, MediaTypeEnum>> SYSTEM_TO_CODE_TO_ENUM = new HashMap<String, Map<String, MediaTypeEnum>>();
private final String myCode;
private final String mySystem;
static {
for (MediaTypeEnum next : MediaTypeEnum.values()) {
CODE_TO_ENUM.put(next.getCode(), next);
if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) {
SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap<String, MediaTypeEnum>());
}
SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next);
}
}
/**
* Returns the code associated with this enumerated value
*/
public String getCode() {
return myCode;
}
/**
* Returns the code system associated with this enumerated value
*/
public String getSystem() {
return mySystem;
}
/**
* Returns the enumerated value associated with this code
*/
public MediaTypeEnum forCode(String theCode) {
MediaTypeEnum retVal = CODE_TO_ENUM.get(theCode);
return retVal;
}
/**
* Converts codes to their respective enumerated values
*/
public static final IValueSetEnumBinder<MediaTypeEnum> VALUESET_BINDER = new IValueSetEnumBinder<MediaTypeEnum>() {
@Override
public String toCodeString(MediaTypeEnum theEnum) {
return theEnum.getCode();
}
@Override
public String toSystemString(MediaTypeEnum theEnum) {
return theEnum.getSystem();
}
@Override
public MediaTypeEnum fromCodeString(String theCodeString) {
return CODE_TO_ENUM.get(theCodeString);
}
@Override
public MediaTypeEnum fromCodeString(String theCodeString, String theSystemString) {
Map<String, MediaTypeEnum> map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString);
if (map == null) {
return null;
}
return map.get(theCodeString);
}
};
/**
* Constructor
*/
MediaTypeEnum(String theCode, String theSystem) {
myCode = theCode;
mySystem = theSystem;
}
}

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum MedicationKindEnum {
/**

View File

@ -0,0 +1,180 @@
package ca.uhn.fhir.model.dstu.valueset;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum MessageEventEnum {
/**
* Code Value: <b>MedicationAdministration-Complete</b>
*
* Change the status of a Medication Administration to show that it is complete.
*/
MEDICATIONADMINISTRATION_COMPLETE("MedicationAdministration-Complete", "http://hl7.org/fhir/message-events"),
/**
* Code Value: <b>MedicationAdministration-Nullification</b>
*
* Someone wishes to record that the record of administration of a medication is in error and should be ignored.
*/
MEDICATIONADMINISTRATION_NULLIFICATION("MedicationAdministration-Nullification", "http://hl7.org/fhir/message-events"),
/**
* Code Value: <b>MedicationAdministration-Recording</b>
*
* Indicates that a medication has been recorded against the patient's record.
*/
MEDICATIONADMINISTRATION_RECORDING("MedicationAdministration-Recording", "http://hl7.org/fhir/message-events"),
/**
* Code Value: <b>MedicationAdministration-Update</b>
*
* Update a Medication Administration record.
*/
MEDICATIONADMINISTRATION_UPDATE("MedicationAdministration-Update", "http://hl7.org/fhir/message-events"),
/**
* Code Value: <b>admin-notify</b>
*
* Notification that a patient or other administrative resource as been created or updated.
*/
ADMIN_NOTIFY("admin-notify", "http://hl7.org/fhir/message-events"),
/**
* Code Value: <b>diagnosticreport-provide</b>
*
* Provide a diagnostic report, or update a previously provided diagnostic report.
*/
DIAGNOSTICREPORT_PROVIDE("diagnosticreport-provide", "http://hl7.org/fhir/message-events"),
/**
* Code Value: <b>observation-provide</b>
*
* Provide a simple observation or update a previously provided simple observation.
*/
OBSERVATION_PROVIDE("observation-provide", "http://hl7.org/fhir/message-events"),
/**
* Code Value: <b>patient-link</b>
*
* Notification that two patient records actually identify the same patient.
*/
PATIENT_LINK("patient-link", "http://hl7.org/fhir/message-events"),
/**
* Code Value: <b>patient-unlink</b>
*
* Notification that previous advice that two patient records concern the same patient is now considered incorrect.
*/
PATIENT_UNLINK("patient-unlink", "http://hl7.org/fhir/message-events"),
/**
* Code Value: <b>query</b>
*
* Request to perform a query according to the attached query resource.
*/
QUERY("query", "http://hl7.org/fhir/message-events"),
/**
* Code Value: <b>query-response</b>
*
* Response with the result of processing the query.
*/
QUERY_RESPONSE("query-response", "http://hl7.org/fhir/message-events"),
;
/**
* Identifier for this Value Set:
* http://hl7.org/fhir/vs/message-events
*/
public static final String VALUESET_IDENTIFIER = "http://hl7.org/fhir/vs/message-events";
/**
* Name for this Value Set:
* MessageEvent
*/
public static final String VALUESET_NAME = "MessageEvent";
private static Map<String, MessageEventEnum> CODE_TO_ENUM = new HashMap<String, MessageEventEnum>();
private static Map<String, Map<String, MessageEventEnum>> SYSTEM_TO_CODE_TO_ENUM = new HashMap<String, Map<String, MessageEventEnum>>();
private final String myCode;
private final String mySystem;
static {
for (MessageEventEnum next : MessageEventEnum.values()) {
CODE_TO_ENUM.put(next.getCode(), next);
if (!SYSTEM_TO_CODE_TO_ENUM.containsKey(next.getSystem())) {
SYSTEM_TO_CODE_TO_ENUM.put(next.getSystem(), new HashMap<String, MessageEventEnum>());
}
SYSTEM_TO_CODE_TO_ENUM.get(next.getSystem()).put(next.getCode(), next);
}
}
/**
* Returns the code associated with this enumerated value
*/
public String getCode() {
return myCode;
}
/**
* Returns the code system associated with this enumerated value
*/
public String getSystem() {
return mySystem;
}
/**
* Returns the enumerated value associated with this code
*/
public MessageEventEnum forCode(String theCode) {
MessageEventEnum retVal = CODE_TO_ENUM.get(theCode);
return retVal;
}
/**
* Converts codes to their respective enumerated values
*/
public static final IValueSetEnumBinder<MessageEventEnum> VALUESET_BINDER = new IValueSetEnumBinder<MessageEventEnum>() {
@Override
public String toCodeString(MessageEventEnum theEnum) {
return theEnum.getCode();
}
@Override
public String toSystemString(MessageEventEnum theEnum) {
return theEnum.getSystem();
}
@Override
public MessageEventEnum fromCodeString(String theCodeString) {
return CODE_TO_ENUM.get(theCodeString);
}
@Override
public MessageEventEnum fromCodeString(String theCodeString, String theSystemString) {
Map<String, MessageEventEnum> map = SYSTEM_TO_CODE_TO_ENUM.get(theSystemString);
if (map == null) {
return null;
}
return map.get(theCodeString);
}
};
/**
* Constructor
*/
MessageEventEnum(String theCode, String theSystem) {
myCode = theCode;
mySystem = theSystem;
}
}

View File

@ -1,10 +1,11 @@
package ca.uhn.fhir.model.dstu.valueset;
import ca.uhn.fhir.model.api.*;
import java.util.HashMap;
import java.util.Map;
import ca.uhn.fhir.model.api.IValueSetEnumBinder;
public enum MessageSignificanceCategoryEnum {
/**

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