mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-03-25 01:18:37 +00:00
Merge remote-tracking branch 'origin/master'
Conflicts: hapi-fhir-base/src/main/java/ca/uhn/fhir/model/dstu/resource/Patient.java
This commit is contained in:
commit
19184bbb58
@ -1,14 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<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="src" path="src/test/java"/>
|
||||
<classpathentry kind="src" path="src/test/resources"/>
|
||||
<classpathentry kind="src" path="src/main/java"/>
|
||||
<classpathentry kind="src" path="src/main/resources"/>
|
||||
<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!/"/>
|
||||
<attribute name="javadoc_location" value="jar:file:/Users/james/.m2/repository/javax/servlet/javax.servlet-api/3.0.1/javax.servlet-api-3.0.1-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"/>
|
||||
@ -29,6 +29,7 @@
|
||||
<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/commons-lang/commons-lang/2.5/commons-lang-2.5.jar" sourcepath="M2_REPO/commons-lang/commons-lang/2.5/commons-lang-2.5-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:/Users/james/.m2/repository/org/apache/commons/commons-lang3/3.2.1/commons-lang3-3.2.1-javadoc.jar!/"/>
|
||||
@ -36,6 +37,11 @@
|
||||
</classpathentry>
|
||||
<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-all/1.3/hamcrest-all-1.3.jar" sourcepath="M2_REPO/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3-sources.jar">
|
||||
<attributes>
|
||||
<attribute name="javadoc_location" value="jar:file:/Users/james/.m2/repository/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3-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:/Users/james/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-javadoc.jar!/"/>
|
||||
@ -43,6 +49,7 @@
|
||||
</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/org/javassist/javassist/3.16.1-GA/javassist-3.16.1-GA.jar" sourcepath="M2_REPO/org/javassist/javassist/3.16.1-GA/javassist-3.16.1-GA-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"/>
|
||||
@ -76,22 +83,24 @@
|
||||
</classpathentry>
|
||||
<classpathentry kind="var" path="M2_REPO/directory-naming/naming-core/0.8/naming-core-0.8.jar"/>
|
||||
<classpathentry kind="var" path="M2_REPO/directory-naming/naming-java/0.8/naming-java-0.8.jar"/>
|
||||
<classpathentry kind="var" path="M2_REPO/ognl/ognl/3.0.6/ognl-3.0.6.jar" sourcepath="M2_REPO/ognl/ognl/3.0.6/ognl-3.0.6-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">
|
||||
<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/org/thymeleaf/thymeleaf/2.1.2.RELEASE/thymeleaf-2.1.2.RELEASE.jar" sourcepath="/M2_REPO/org/thymeleaf/thymeleaf/2.1.2.RELEASE/thymeleaf-2.1.2.RELEASE-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">
|
||||
<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"/>
|
||||
<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="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
@ -33,15 +33,11 @@
|
||||
|
||||
* Support "Binary" resource, which is a special resource type
|
||||
|
||||
* Submit "_pretty" as possible parameter to HL7
|
||||
|
||||
---------
|
||||
Issues:
|
||||
* Need to be able to bind Identifier.system to a set of allowable values in a profile. Graeme
|
||||
has suggested making value[x] repeatable in the profile definition
|
||||
|
||||
* 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.
|
||||
|
||||
* Would like a standardized (but optional) HTTP parameter for pretty-printing. Suggest: _pretty=true
|
||||
* Would like a standardized (but optional) HTTP parameter for pretty-printing. Suggest: _pretty=true
|
||||
|
||||
* Example-patient-general.xml/json has <reference value="Organization/1"/> but "resource":"Organization/1"
|
110
hapi-fhir-base/build.xml
Normal file
110
hapi-fhir-base/build.xml
Normal file
@ -0,0 +1,110 @@
|
||||
<project name="MyProject" basedir=".">
|
||||
<target name="urchin">
|
||||
<echo>Adding Google analytics in target/site for <body></echo>
|
||||
<replace dir="target/site" summary="true">
|
||||
<include name="**/*.html"></include>
|
||||
<replacefilter token="#build#" value="${label}"/>
|
||||
<replacefilter token="#version#" value="${version}"/>
|
||||
<replacetoken><![CDATA[</body>]]></replacetoken>
|
||||
<replacevalue><![CDATA[
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', 'UA-1395874-5', 'sourceforge.net');
|
||||
ga('send', 'pageview');
|
||||
|
||||
</script>
|
||||
</body >
|
||||
]]></replacevalue>
|
||||
</replace>
|
||||
<echo>Adding Google analytics in target/site for <BODY></echo>
|
||||
<replace dir="target/site" summary="true">
|
||||
<include name="**/*.html"></include>
|
||||
<replacetoken><![CDATA[</BODY>]]></replacetoken>
|
||||
<replacevalue><![CDATA[
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', 'UA-1395874-5', 'sourceforge.net');
|
||||
ga('send', 'pageview');
|
||||
|
||||
</script>
|
||||
</BODY >
|
||||
]]></replacevalue>
|
||||
</replace>
|
||||
<echo>Adding Google analytics in target/site for <FRAMESET></echo>
|
||||
<replace dir="target/site" summary="true">
|
||||
<include name="**/*.html"></include>
|
||||
<replacetoken><![CDATA[</HEAD>
|
||||
<FRAMESET]]></replacetoken>
|
||||
<replacevalue><![CDATA[
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', 'UA-1395874-5', 'sourceforge.net');
|
||||
ga('send', 'pageview');
|
||||
|
||||
</script>
|
||||
</HEAD >
|
||||
<FRAMESET]]></replacevalue>
|
||||
</replace>
|
||||
<echo>Adding Google analytics in target/site for <frameset></echo>
|
||||
<replace dir="target/site" summary="true">
|
||||
<include name="**/*.html"></include>
|
||||
<replacetoken><![CDATA[</head>
|
||||
<frameset]]></replacetoken>
|
||||
<replacevalue><![CDATA[
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', 'UA-1395874-5', 'sourceforge.net');
|
||||
ga('send', 'pageview');
|
||||
|
||||
</script>
|
||||
</head >
|
||||
<frameset]]></replacevalue>
|
||||
</replace>
|
||||
<echo>Adding social plugins for HAPI</echo>
|
||||
<replace dir="target/site/" summary="true">
|
||||
<include name="**/*.html"></include>
|
||||
<replacetoken><![CDATA[SOCIALPLUGINSHEREFHIR]]></replacetoken>
|
||||
<replacevalue><![CDATA[
|
||||
<table cellpadding="0" cellspacing="0" border="0"><tr>
|
||||
<td><div class="g-plusone" data-annotation="inline" data-width="300" data-href="http://hl7api.sourceforge.net/"></div></td>
|
||||
<td><div class="fb-like" data-href="http://hl7api.sourceforge.net/" data-send="false" data-layout="button_count" data-width="450" data-show-faces="true"></div></td>
|
||||
</tr></table>
|
||||
|
||||
</p><p>
|
||||
<!-- Place this tag after the last +1 button tag. -->
|
||||
<script type="text/javascript">
|
||||
(function() {
|
||||
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
|
||||
po.src = 'https://apis.google.com/js/plusone.js';
|
||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
|
||||
})();
|
||||
</script>
|
||||
<div id="fb-root"></div>
|
||||
<script>(function(d, s, id) {
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) return;
|
||||
js = d.createElement(s); js.id = id;
|
||||
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));</script>
|
||||
]]></replacevalue>
|
||||
</replace>
|
||||
|
||||
</target>
|
||||
</project>
|
@ -1,5 +1,4 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
@ -12,30 +11,32 @@
|
||||
<groupId>ca.uhn.hapi.fhir</groupId>
|
||||
<artifactId>hapi-fhir-base</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<url>http://hl7api.sourceforge.net/hapi-fhir/</url>
|
||||
|
||||
<name>HAPI FHIR Base Library</name>
|
||||
|
||||
<distributionManagement>
|
||||
<site>
|
||||
<id>hl7api.sf.net</id>
|
||||
<url>scp://shell.sourceforge.net/home/project-web/hl7api/htdocs/hapi-fhir</url>
|
||||
</site>
|
||||
</distributionManagement>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<!-- JSON -->
|
||||
<!--
|
||||
<!-- <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>2.2.4</version> </dependency> -->
|
||||
<dependency>
|
||||
<groupId>com.google.code.gson</groupId>
|
||||
<artifactId>gson</artifactId>
|
||||
<version>2.2.4</version>
|
||||
<groupId>javax.json</groupId>
|
||||
<artifactId>javax.json-api</artifactId>
|
||||
<version>1.0</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>
|
||||
|
||||
<groupId>org.glassfish</groupId>
|
||||
<artifactId>javax.json</artifactId>
|
||||
<version>1.0.4</version>
|
||||
</dependency>
|
||||
|
||||
<!-- XML -->
|
||||
<dependency>
|
||||
<groupId>org.codehaus.woodstox</groupId>
|
||||
@ -43,8 +44,14 @@
|
||||
<version>4.2.0</version>
|
||||
</dependency>
|
||||
|
||||
<!-- <dependency> <groupId>org.codehaus.woodstox</groupId> <artifactId>stax2-api</artifactId>
|
||||
<version>3.1.3</version> </dependency> -->
|
||||
<!-- <dependency> <groupId>org.codehaus.woodstox</groupId> <artifactId>stax2-api</artifactId> <version>3.1.3</version> </dependency> -->
|
||||
|
||||
<dependency>
|
||||
<groupId>org.thymeleaf</groupId>
|
||||
<artifactId>thymeleaf</artifactId>
|
||||
<version>2.1.2.RELEASE</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
|
||||
<!-- General -->
|
||||
<dependency>
|
||||
@ -128,18 +135,18 @@
|
||||
<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>
|
||||
<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>
|
||||
<groupId>net.sf.json-lib</groupId>
|
||||
<artifactId>json-lib</artifactId>
|
||||
<version>2.4</version>
|
||||
<classifier>jdk15-sources</classifier>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
@ -168,12 +175,12 @@
|
||||
<version>0.8</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hamcrest</groupId>
|
||||
<artifactId>hamcrest-all</artifactId>
|
||||
<version>${hamcrest_version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hamcrest</groupId>
|
||||
<artifactId>hamcrest-all</artifactId>
|
||||
<version>${hamcrest_version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
@ -183,8 +190,6 @@
|
||||
<artifactId>maven-site-plugin</artifactId>
|
||||
<version>3.3</version>
|
||||
</plugin>
|
||||
<!--
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-report-plugin</artifactId>
|
||||
@ -210,7 +215,6 @@
|
||||
<artifactId>maven-jxr-plugin</artifactId>
|
||||
<version>2.3</version>
|
||||
</plugin>
|
||||
-->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-project-info-reports-plugin</artifactId>
|
||||
@ -235,6 +239,123 @@
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<version>1.7</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>post-site</phase>
|
||||
<configuration>
|
||||
<target>
|
||||
<echo>Adding Google analytics in target/site for <body></echo>
|
||||
<replace dir="target/site" summary="true">
|
||||
<include name="**/*.html"></include>
|
||||
<replacefilter token="#build#" value="${label}" />
|
||||
<replacefilter token="#version#" value="${version}" />
|
||||
<replacetoken><![CDATA[</body>]]></replacetoken>
|
||||
<replacevalue><![CDATA[
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', 'UA-1395874-5', 'sourceforge.net');
|
||||
ga('send', 'pageview');
|
||||
|
||||
</script>
|
||||
</body >
|
||||
]]></replacevalue>
|
||||
</replace>
|
||||
<echo>Adding Google analytics in target/site for <BODY></echo>
|
||||
<replace dir="target/site" summary="true">
|
||||
<include name="**/*.html"></include>
|
||||
<replacetoken><![CDATA[</BODY>]]></replacetoken>
|
||||
<replacevalue><![CDATA[
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', 'UA-1395874-5', 'sourceforge.net');
|
||||
ga('send', 'pageview');
|
||||
|
||||
</script>
|
||||
</BODY >
|
||||
]]></replacevalue>
|
||||
</replace>
|
||||
<echo>Adding social plugins for HAPI</echo>
|
||||
<replace dir="target/site/" summary="true">
|
||||
<include name="**/*.html"></include>
|
||||
<replacetoken><![CDATA[SOCIALPLUGINSHEREFHIR]]></replacetoken>
|
||||
<replacevalue><![CDATA[
|
||||
<table cellpadding="0" cellspacing="0" border="0"><tr>
|
||||
<td><div class="g-plusone" data-annotation="inline" data-width="300" data-href="http://hl7api.sourceforge.net/"></div></td>
|
||||
<td><div class="fb-like" data-href="http://hl7api.sourceforge.net/" data-send="false" data-layout="button_count" data-width="450" data-show-faces="true"></div></td>
|
||||
</tr></table>
|
||||
|
||||
</p><p>
|
||||
<!-- Place this tag after the last +1 button tag. -->
|
||||
<script type="text/javascript">
|
||||
(function() {
|
||||
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
|
||||
po.src = 'https://apis.google.com/js/plusone.js';
|
||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
|
||||
})();
|
||||
</script>
|
||||
<div id="fb-root"></div>
|
||||
<script>(function(d, s, id) {
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) return;
|
||||
js = d.createElement(s); js.id = id;
|
||||
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));</script>
|
||||
]]></replacevalue>
|
||||
</replace>
|
||||
|
||||
|
||||
</target>
|
||||
</configuration>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<inherited>true</inherited>
|
||||
<configuration>
|
||||
<minmemory>128m</minmemory>
|
||||
<maxmemory>1g</maxmemory>
|
||||
<linksource>true</linksource>
|
||||
<verbose>false</verbose>
|
||||
<debug>false</debug>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>jar</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>jar-no-fork</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
@ -10,26 +10,30 @@ import java.util.Map;
|
||||
import ca.uhn.fhir.model.api.IElement;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dstu.resource.Patient;
|
||||
import ca.uhn.fhir.narrative.INarrativeGenerator;
|
||||
import ca.uhn.fhir.parser.IParser;
|
||||
import ca.uhn.fhir.parser.JsonParser;
|
||||
import ca.uhn.fhir.parser.XmlParser;
|
||||
import ca.uhn.fhir.rest.client.IRestfulClientFactory;
|
||||
import ca.uhn.fhir.rest.client.RestfulClientFactory;
|
||||
import ca.uhn.fhir.rest.client.api.IRestfulClient;
|
||||
|
||||
public class FhirContext {
|
||||
|
||||
private volatile Map<Class<? extends IElement>, BaseRuntimeElementDefinition<?>> myClassToElementDefinition = Collections.emptyMap();
|
||||
private volatile Map<String, RuntimeResourceDefinition> myIdToResourceDefinition = Collections.emptyMap();
|
||||
private volatile Map<String, RuntimeResourceDefinition> myNameToElementDefinition = Collections.emptyMap();
|
||||
private INarrativeGenerator myNarrativeGenerator;
|
||||
private IRestfulClientFactory myRestfulClientFactory;
|
||||
private volatile RuntimeChildUndeclaredExtensionDefinition myRuntimeChildUndeclaredExtensionDefinition;
|
||||
|
||||
public FhirContext() {
|
||||
}
|
||||
|
||||
public FhirContext(Class<? extends IResource> theResourceType) {
|
||||
this(toCollection(theResourceType));
|
||||
}
|
||||
|
||||
public FhirContext() {
|
||||
}
|
||||
|
||||
public FhirContext(Class<?>... theResourceTypes) {
|
||||
this(toCollection(theResourceTypes));
|
||||
}
|
||||
@ -37,11 +41,15 @@ public class FhirContext {
|
||||
public FhirContext(Collection<Class<? extends IResource>> theResourceTypes) {
|
||||
scanResourceTypes(theResourceTypes);
|
||||
}
|
||||
|
||||
|
||||
public BaseRuntimeElementDefinition<?> getElementDefinition(Class<? extends IElement> theElementType) {
|
||||
return myClassToElementDefinition.get(theElementType);
|
||||
}
|
||||
|
||||
|
||||
public INarrativeGenerator getNarrativeGenerator() {
|
||||
return myNarrativeGenerator;
|
||||
}
|
||||
|
||||
public RuntimeResourceDefinition getResourceDefinition(Class<? extends IResource> theResourceType) {
|
||||
RuntimeResourceDefinition retVal = (RuntimeResourceDefinition) myClassToElementDefinition.get(theResourceType);
|
||||
if (retVal == null) {
|
||||
@ -49,7 +57,7 @@ public class FhirContext {
|
||||
}
|
||||
return retVal;
|
||||
}
|
||||
|
||||
|
||||
public RuntimeResourceDefinition getResourceDefinition(IResource theResource) {
|
||||
return getResourceDefinition(theResource.getClass());
|
||||
}
|
||||
@ -81,6 +89,13 @@ public class FhirContext {
|
||||
return myIdToResourceDefinition.values();
|
||||
}
|
||||
|
||||
public IRestfulClientFactory getRestfulClientFactory() {
|
||||
if (myRestfulClientFactory==null) {
|
||||
myRestfulClientFactory = new RestfulClientFactory(this);
|
||||
}
|
||||
return myRestfulClientFactory;
|
||||
}
|
||||
|
||||
public RuntimeChildUndeclaredExtensionDefinition getRuntimeChildUndeclaredExtensionDefinition() {
|
||||
return myRuntimeChildUndeclaredExtensionDefinition;
|
||||
}
|
||||
@ -89,14 +104,29 @@ public class FhirContext {
|
||||
return new JsonParser(this);
|
||||
}
|
||||
|
||||
public IRestfulClientFactory newRestfulClientFactory() {
|
||||
return new RestfulClientFactory(this);
|
||||
/**
|
||||
* Instantiates a new client instance
|
||||
*
|
||||
* @param theClientType
|
||||
* The client type, which is an interface type to be instantiated
|
||||
* @param theServerBase
|
||||
* The URL of the base for the restful FHIR server to connect to
|
||||
* @return A newly created client
|
||||
* @throws ConfigurationException
|
||||
* If the interface type is not an interface
|
||||
*/
|
||||
public <T extends IRestfulClient> T newRestfulClient(Class<T> theClientType, String theServerBase) {
|
||||
return getRestfulClientFactory().newClient(theClientType, theServerBase);
|
||||
}
|
||||
|
||||
public IParser newXmlParser() {
|
||||
return new XmlParser(this);
|
||||
}
|
||||
|
||||
public void setNarrativeGenerator(INarrativeGenerator theNarrativeGenerator) {
|
||||
myNarrativeGenerator = theNarrativeGenerator;
|
||||
}
|
||||
|
||||
private RuntimeResourceDefinition scanResourceType(Class<? extends IResource> theResourceType) {
|
||||
ArrayList<Class<? extends IResource>> resourceTypes = new ArrayList<Class<? extends IResource>>();
|
||||
resourceTypes.add(theResourceType);
|
||||
|
@ -36,6 +36,7 @@ import ca.uhn.fhir.model.api.annotation.Description;
|
||||
import ca.uhn.fhir.model.api.annotation.Extension;
|
||||
import ca.uhn.fhir.model.api.annotation.ResourceDef;
|
||||
import ca.uhn.fhir.model.dstu.composite.ContainedDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.NarrativeDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeDt;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt;
|
||||
@ -221,7 +222,7 @@ class ModelScanner {
|
||||
RuntimeResourceBlockDefinition resourceDef = new RuntimeResourceBlockDefinition(resourceName, theClass);
|
||||
myClassToElementDefinitions.put(theClass, resourceDef);
|
||||
|
||||
scanCompositeElementForChildren(theClass, resourceDef, null);
|
||||
scanCompositeElementForChildren(theClass, resourceDef);
|
||||
}
|
||||
|
||||
private String scanCodeTable(Class<? extends ICodeEnum> theCodeType, CodeTableDef theCodeTableDefinition) {
|
||||
@ -233,11 +234,11 @@ class ModelScanner {
|
||||
|
||||
RuntimeCompositeDatatypeDefinition resourceDef = new RuntimeCompositeDatatypeDefinition(theDatatypeDefinition, theClass);
|
||||
myClassToElementDefinitions.put(theClass, resourceDef);
|
||||
scanCompositeElementForChildren(theClass, resourceDef, null);
|
||||
scanCompositeElementForChildren(theClass, resourceDef);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private void scanCompositeElementForChildren(Class<? extends ICompositeElement> theClass, BaseRuntimeElementCompositeDefinition<?> theDefinition, Integer theIdentifierOrder) {
|
||||
private void scanCompositeElementForChildren(Class<? extends ICompositeElement> theClass, BaseRuntimeElementCompositeDefinition<?> theDefinition) {
|
||||
Set<String> elementNames = new HashSet<String>();
|
||||
TreeMap<Integer, BaseRuntimeDeclaredChildDefinition> orderToElementDef = new TreeMap<Integer, BaseRuntimeDeclaredChildDefinition>();
|
||||
TreeMap<Integer, BaseRuntimeDeclaredChildDefinition> orderToExtensionDef = new TreeMap<Integer, BaseRuntimeDeclaredChildDefinition>();
|
||||
@ -302,7 +303,13 @@ class ModelScanner {
|
||||
Description descriptionAnnotation = next.getAnnotation(Description.class);
|
||||
|
||||
String elementName = childAnnotation.name();
|
||||
int order = childAnnotation.order() + baseElementOrder;
|
||||
int order = childAnnotation.order();
|
||||
if (order < 0 && order != Child.ORDER_UNKNOWN) {
|
||||
throw new ConfigurationException("Invalid order '" + order +"' on @Child for field '" + next.getName()+ "' on target type: " + theClass);
|
||||
}
|
||||
if (order != Child.ORDER_UNKNOWN) {
|
||||
order = order + baseElementOrder;
|
||||
}
|
||||
int min = childAnnotation.min();
|
||||
int max = childAnnotation.max();
|
||||
TreeMap<Integer, BaseRuntimeDeclaredChildDefinition> orderMap = theOrderToElementDef;
|
||||
@ -370,7 +377,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() + "' in class '" + next.getDeclaringClass().getSimpleName() + "' is of type " + ResourceReferenceDt.class + " but contains a non-resource type: " + nextType.getCanonicalName());
|
||||
throw new ConfigurationException("Field '" + next.getName() + "' in class '" + next.getDeclaringClass().getCanonicalName() + "' is of type " + ResourceReferenceDt.class + " but contains a non-resource type: " + nextType.getCanonicalName());
|
||||
}
|
||||
refTypesList.add((Class<? extends IResource>) nextType);
|
||||
addScanAlso(nextType);
|
||||
@ -410,6 +417,8 @@ class ModelScanner {
|
||||
if (nextElementType.equals(BoundCodeableConceptDt.class)) {
|
||||
IValueSetEnumBinder<Enum<?>> binder = getBoundCodeBinder(next);
|
||||
def = new RuntimeChildCompositeBoundDatatypeDefinition(next, elementName, childAnnotation, descriptionAnnotation, nextDatatype, binder);
|
||||
} else if (NarrativeDt.class.getSimpleName().equals(nextElementType.getSimpleName())) {
|
||||
def = new RuntimeChildNarrativeDefinition(next, elementName, childAnnotation, descriptionAnnotation, nextDatatype);
|
||||
} else {
|
||||
def = new RuntimeChildCompositeDatatypeDefinition(next, elementName, childAnnotation, descriptionAnnotation, nextDatatype);
|
||||
}
|
||||
@ -495,7 +504,7 @@ class ModelScanner {
|
||||
myClassToElementDefinitions.put(theClass, resourceDef);
|
||||
myNameToResourceDefinitions.put(resourceName, resourceDef);
|
||||
|
||||
scanCompositeElementForChildren(theClass, resourceDef, resourceDefinition.identifierOrder());
|
||||
scanCompositeElementForChildren(theClass, resourceDef);
|
||||
|
||||
myIdToResourceDefinition.put(resourceId, resourceDef);
|
||||
return resourceName;
|
||||
|
@ -103,5 +103,9 @@ public class RuntimeChildChoiceDefinition extends BaseRuntimeDeclaredChildDefini
|
||||
return myDatatypeToElementDefinition.get(theDatatype);
|
||||
}
|
||||
|
||||
public Set<Class<? extends IElement>> getValidChildTypes() {
|
||||
return Collections.unmodifiableSet((myDatatypeToElementDefinition.keySet()));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,16 @@
|
||||
package ca.uhn.fhir.context;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
import ca.uhn.fhir.model.api.IDatatype;
|
||||
import ca.uhn.fhir.model.api.annotation.Child;
|
||||
import ca.uhn.fhir.model.api.annotation.Description;
|
||||
|
||||
public class RuntimeChildNarrativeDefinition extends RuntimeChildCompositeDatatypeDefinition {
|
||||
|
||||
public RuntimeChildNarrativeDefinition(Field theField, String theElementName, Child theChildAnnotation, Description theDescriptionAnnotation, Class<? extends IDatatype> theDatatype) {
|
||||
super(theField, theElementName, theChildAnnotation,theDescriptionAnnotation, theDatatype);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -56,6 +56,7 @@ public class RuntimeChildUndeclaredExtensionDefinition extends BaseRuntimeChildD
|
||||
if (!((IRuntimeDatatypeDefinition) next).isSpecialization()) {
|
||||
String attrName = "value" + next.getName().substring(0, 1).toUpperCase() + next.getName().substring(1);
|
||||
datatypeAttributeNameToDefinition.put(attrName, next);
|
||||
datatypeAttributeNameToDefinition.put(attrName.toLowerCase(), next);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ import java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
|
||||
public abstract class BaseElement implements IElement, ISupportsUndeclaredExtensions {
|
||||
public abstract class BaseElement implements IIdentifiableElement, ISupportsUndeclaredExtensions {
|
||||
|
||||
private IdDt myId;
|
||||
private List<UndeclaredExtension> myUndeclaredExtensions;
|
||||
|
@ -61,7 +61,12 @@ public abstract class BaseResourceReference extends BaseElement {
|
||||
HttpClient httpClient = theClient.getHttpClient();
|
||||
FhirContext context = theClient.getFhirContext();
|
||||
|
||||
HttpGet get = new HttpGet(getResourceUrl());
|
||||
String resourceUrl = getResourceUrl();
|
||||
if (!resourceUrl.startsWith("http")) {
|
||||
resourceUrl = theClient.getServerBase() + resourceUrl;
|
||||
}
|
||||
|
||||
HttpGet get = new HttpGet(resourceUrl);
|
||||
HttpResponse response = httpClient.execute(get);
|
||||
try {
|
||||
// TODO: choose appropriate parser based on response CT
|
||||
|
@ -8,7 +8,7 @@ import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.util.ElementUtil;
|
||||
|
||||
public class Bundle extends BaseBundle implements IElement {
|
||||
public class Bundle extends BaseBundle /*implements IElement*/ {
|
||||
|
||||
//@formatter:off
|
||||
/* ****************************************************
|
||||
|
@ -2,7 +2,7 @@ package ca.uhn.fhir.model.api;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ICompositeElement extends IElement {
|
||||
public interface ICompositeElement extends IIdentifiableElement {
|
||||
|
||||
/**
|
||||
* Returns a list containing all child elements
|
||||
|
@ -1,5 +1,5 @@
|
||||
package ca.uhn.fhir.model.api;
|
||||
|
||||
public interface IDatatype extends IElement {
|
||||
public interface IDatatype extends IIdentifiableElement {
|
||||
|
||||
}
|
||||
|
@ -1,14 +1,11 @@
|
||||
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();
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,12 @@
|
||||
package ca.uhn.fhir.model.api;
|
||||
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
|
||||
public interface IIdentifiableElement extends IElement {
|
||||
|
||||
public void setId(IdDt theId);
|
||||
|
||||
public IdDt getId();
|
||||
|
||||
|
||||
}
|
@ -24,7 +24,7 @@ public @interface Child {
|
||||
|
||||
String name();
|
||||
|
||||
int order();
|
||||
int order() default ORDER_UNKNOWN;
|
||||
|
||||
int min() default 0;
|
||||
|
||||
|
@ -19,7 +19,6 @@ public @interface Extension {
|
||||
* this option for extension defintions that you have added locally (i.e.
|
||||
* within your own organization)
|
||||
* </p>
|
||||
* <p>
|
||||
*
|
||||
* <p>
|
||||
* If set to <b><code>false</code></b>, the resource is taken to be a remote
|
||||
|
@ -9,14 +9,13 @@ import java.lang.annotation.Target;
|
||||
@Target(value= {ElementType.TYPE})
|
||||
public @interface ResourceDef {
|
||||
|
||||
int ORDER_NOT_SPECIFIED = -1;
|
||||
|
||||
/**
|
||||
* The name of the resource (e.g. "Patient" or "DiagnosticReport")
|
||||
*/
|
||||
String name();
|
||||
|
||||
String id() default "";
|
||||
|
||||
String profile() default "";
|
||||
|
||||
int identifierOrder() default ORDER_NOT_SPECIFIED;
|
||||
|
||||
}
|
||||
|
@ -16,33 +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 java.util.List;
|
||||
|
||||
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.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
import ca.uhn.fhir.model.primitive.BooleanDt;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeDt;
|
||||
import ca.uhn.fhir.model.primitive.CodeDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>Address</b> Datatype
|
||||
@ -62,6 +47,13 @@ import ca.uhn.fhir.model.primitive.UriDt;
|
||||
public class AddressDt
|
||||
extends BaseElement implements ICompositeDatatype {
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public AddressDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
|
||||
@Child(name="use", type=CodeDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
@ -160,11 +152,11 @@ public class AddressDt
|
||||
* The purpose of this address
|
||||
* </p>
|
||||
*/
|
||||
public void setUse(BoundCodeDt<AddressUseEnum> theValue) {
|
||||
public AddressDt setUse(BoundCodeDt<AddressUseEnum> theValue) {
|
||||
myUse = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>use</b> (home | work | temp | old - purpose of this address)
|
||||
*
|
||||
@ -173,8 +165,9 @@ public class AddressDt
|
||||
* The purpose of this address
|
||||
* </p>
|
||||
*/
|
||||
public void setUse(AddressUseEnum theValue) {
|
||||
public AddressDt setUse(AddressUseEnum theValue) {
|
||||
getUse().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -203,11 +196,11 @@ public class AddressDt
|
||||
* A full text representation of the address
|
||||
* </p>
|
||||
*/
|
||||
public void setText(StringDt theValue) {
|
||||
public AddressDt setText(StringDt theValue) {
|
||||
myText = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>text</b> (Text representation of the address)
|
||||
*
|
||||
@ -216,8 +209,9 @@ public class AddressDt
|
||||
* A full text representation of the address
|
||||
* </p>
|
||||
*/
|
||||
public void setText( String theString) {
|
||||
public AddressDt setText( String theString) {
|
||||
myText = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -246,8 +240,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 void setLine(java.util.List<StringDt> theValue) {
|
||||
public AddressDt setLine(java.util.List<StringDt> theValue) {
|
||||
myLine = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -264,6 +259,21 @@ public class AddressDt
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>line</b> (Street name, number, direction & P.O. Box etc),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getLineFirstRep() {
|
||||
if (getLine().isEmpty()) {
|
||||
return addLine();
|
||||
}
|
||||
return getLine().get(0);
|
||||
}
|
||||
/**
|
||||
* Adds a new value for <b>line</b> (Street name, number, direction & P.O. Box etc)
|
||||
*
|
||||
@ -271,12 +281,15 @@ public class AddressDt
|
||||
* <b>Definition:</b>
|
||||
* This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information
|
||||
* </p>
|
||||
*
|
||||
* @return Returns a reference to this object, to allow for simple chaining.
|
||||
*/
|
||||
public void addLine( String theString) {
|
||||
public AddressDt addLine( String theString) {
|
||||
if (myLine == null) {
|
||||
myLine = new java.util.ArrayList<StringDt>();
|
||||
}
|
||||
myLine.add(new StringDt(theString));
|
||||
myLine.add(new StringDt(theString));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -305,11 +318,11 @@ public class AddressDt
|
||||
* The name of the city, town, village or other community or delivery center.
|
||||
* </p>
|
||||
*/
|
||||
public void setCity(StringDt theValue) {
|
||||
public AddressDt setCity(StringDt theValue) {
|
||||
myCity = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>city</b> (Name of city, town etc.)
|
||||
*
|
||||
@ -318,8 +331,9 @@ public class AddressDt
|
||||
* The name of the city, town, village or other community or delivery center.
|
||||
* </p>
|
||||
*/
|
||||
public void setCity( String theString) {
|
||||
public AddressDt setCity( String theString) {
|
||||
myCity = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -348,11 +362,11 @@ public class AddressDt
|
||||
* Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes).
|
||||
* </p>
|
||||
*/
|
||||
public void setState(StringDt theValue) {
|
||||
public AddressDt setState(StringDt theValue) {
|
||||
myState = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>state</b> (Sub-unit of country (abreviations ok))
|
||||
*
|
||||
@ -361,8 +375,9 @@ public class AddressDt
|
||||
* Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes).
|
||||
* </p>
|
||||
*/
|
||||
public void setState( String theString) {
|
||||
public AddressDt setState( String theString) {
|
||||
myState = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -391,11 +406,11 @@ public class AddressDt
|
||||
* A postal code designating a region defined by the postal service.
|
||||
* </p>
|
||||
*/
|
||||
public void setZip(StringDt theValue) {
|
||||
public AddressDt setZip(StringDt theValue) {
|
||||
myZip = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>zip</b> (Postal code for area)
|
||||
*
|
||||
@ -404,8 +419,9 @@ public class AddressDt
|
||||
* A postal code designating a region defined by the postal service.
|
||||
* </p>
|
||||
*/
|
||||
public void setZip( String theString) {
|
||||
public AddressDt setZip( String theString) {
|
||||
myZip = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -434,11 +450,11 @@ public class AddressDt
|
||||
* Country - a nation as commonly understood or generally accepted
|
||||
* </p>
|
||||
*/
|
||||
public void setCountry(StringDt theValue) {
|
||||
public AddressDt setCountry(StringDt theValue) {
|
||||
myCountry = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>country</b> (Country (can be ISO 3166 3 letter code))
|
||||
*
|
||||
@ -447,8 +463,9 @@ public class AddressDt
|
||||
* Country - a nation as commonly understood or generally accepted
|
||||
* </p>
|
||||
*/
|
||||
public void setCountry( String theString) {
|
||||
public AddressDt setCountry( String theString) {
|
||||
myCountry = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -477,11 +494,11 @@ public class AddressDt
|
||||
* Time period when address was/is in use
|
||||
* </p>
|
||||
*/
|
||||
public void setPeriod(PeriodDt theValue) {
|
||||
public AddressDt setPeriod(PeriodDt theValue) {
|
||||
myPeriod = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -16,30 +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 java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.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.api.annotation.Description;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
import ca.uhn.fhir.model.primitive.BooleanDt;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeDt;
|
||||
import ca.uhn.fhir.model.primitive.CodeDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
@ -62,6 +48,13 @@ import ca.uhn.fhir.model.primitive.UriDt;
|
||||
public class AttachmentDt
|
||||
extends BaseElement implements ICompositeDatatype {
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public AttachmentDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
|
||||
@Child(name="contentType", type=CodeDt.class, order=0, min=1, max=1)
|
||||
@Description(
|
||||
@ -153,11 +146,11 @@ public class AttachmentDt
|
||||
* Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate
|
||||
* </p>
|
||||
*/
|
||||
public void setContentType(CodeDt theValue) {
|
||||
public AttachmentDt setContentType(CodeDt theValue) {
|
||||
myContentType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>contentType</b> (Mime type of the content, with charset etc.)
|
||||
*
|
||||
@ -166,8 +159,9 @@ public class AttachmentDt
|
||||
* Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate
|
||||
* </p>
|
||||
*/
|
||||
public void setContentType( String theCode) {
|
||||
public AttachmentDt setContentType( String theCode) {
|
||||
myContentType = new CodeDt(theCode);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -196,11 +190,11 @@ public class AttachmentDt
|
||||
* The human language of the content. The value can be any valid value according to BCP 47
|
||||
* </p>
|
||||
*/
|
||||
public void setLanguage(CodeDt theValue) {
|
||||
public AttachmentDt setLanguage(CodeDt theValue) {
|
||||
myLanguage = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>language</b> (Human language of the content (BCP-47))
|
||||
*
|
||||
@ -209,8 +203,9 @@ public class AttachmentDt
|
||||
* The human language of the content. The value can be any valid value according to BCP 47
|
||||
* </p>
|
||||
*/
|
||||
public void setLanguage( String theCode) {
|
||||
public AttachmentDt setLanguage( String theCode) {
|
||||
myLanguage = new CodeDt(theCode);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -239,11 +234,11 @@ public class AttachmentDt
|
||||
* The actual data of the attachment - a sequence of bytes. In XML, represented using base64
|
||||
* </p>
|
||||
*/
|
||||
public void setData(Base64BinaryDt theValue) {
|
||||
public AttachmentDt setData(Base64BinaryDt theValue) {
|
||||
myData = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>data</b> (Data inline, base64ed)
|
||||
*
|
||||
@ -252,8 +247,9 @@ public class AttachmentDt
|
||||
* The actual data of the attachment - a sequence of bytes. In XML, represented using base64
|
||||
* </p>
|
||||
*/
|
||||
public void setData( byte[] theBytes) {
|
||||
public AttachmentDt setData( byte[] theBytes) {
|
||||
myData = new Base64BinaryDt(theBytes);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -282,11 +278,11 @@ public class AttachmentDt
|
||||
* An alternative location where the data can be accessed
|
||||
* </p>
|
||||
*/
|
||||
public void setUrl(UriDt theValue) {
|
||||
public AttachmentDt setUrl(UriDt theValue) {
|
||||
myUrl = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>url</b> (Uri where the data can be found)
|
||||
*
|
||||
@ -295,8 +291,9 @@ public class AttachmentDt
|
||||
* An alternative location where the data can be accessed
|
||||
* </p>
|
||||
*/
|
||||
public void setUrl( String theUri) {
|
||||
public AttachmentDt setUrl( String theUri) {
|
||||
myUrl = new UriDt(theUri);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -325,11 +322,11 @@ public class AttachmentDt
|
||||
* The number of bytes of data that make up this attachment.
|
||||
* </p>
|
||||
*/
|
||||
public void setSize(IntegerDt theValue) {
|
||||
public AttachmentDt setSize(IntegerDt theValue) {
|
||||
mySize = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>size</b> (Number of bytes of content (if url provided))
|
||||
*
|
||||
@ -338,8 +335,9 @@ public class AttachmentDt
|
||||
* The number of bytes of data that make up this attachment.
|
||||
* </p>
|
||||
*/
|
||||
public void setSize( Integer theInteger) {
|
||||
public AttachmentDt setSize( Integer theInteger) {
|
||||
mySize = new IntegerDt(theInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -368,11 +366,11 @@ public class AttachmentDt
|
||||
* The calculated hash of the data using SHA-1. Represented using base64
|
||||
* </p>
|
||||
*/
|
||||
public void setHash(Base64BinaryDt theValue) {
|
||||
public AttachmentDt setHash(Base64BinaryDt theValue) {
|
||||
myHash = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>hash</b> (Hash of the data (sha-1, base64ed ))
|
||||
*
|
||||
@ -381,8 +379,9 @@ public class AttachmentDt
|
||||
* The calculated hash of the data using SHA-1. Represented using base64
|
||||
* </p>
|
||||
*/
|
||||
public void setHash( byte[] theBytes) {
|
||||
public AttachmentDt setHash( byte[] theBytes) {
|
||||
myHash = new Base64BinaryDt(theBytes);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -411,11 +410,11 @@ public class AttachmentDt
|
||||
* A label or set of text to display in place of the data
|
||||
* </p>
|
||||
*/
|
||||
public void setTitle(StringDt theValue) {
|
||||
public AttachmentDt setTitle(StringDt theValue) {
|
||||
myTitle = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>title</b> (Label to display in place of the data)
|
||||
*
|
||||
@ -424,8 +423,9 @@ public class AttachmentDt
|
||||
* A label or set of text to display in place of the data
|
||||
* </p>
|
||||
*/
|
||||
public void setTitle( String theString) {
|
||||
public AttachmentDt setTitle( String theString) {
|
||||
myTitle = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
@ -16,33 +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 java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
import ca.uhn.fhir.model.primitive.BooleanDt;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeDt;
|
||||
import ca.uhn.fhir.model.primitive.CodeDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
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;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>CodeableConcept</b> Datatype
|
||||
@ -62,6 +44,13 @@ import ca.uhn.fhir.model.primitive.UriDt;
|
||||
public class CodeableConceptDt
|
||||
extends BaseElement implements ICompositeDatatype {
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public CodeableConceptDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
|
||||
@Child(name="coding", type=CodingDt.class, order=0, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
@ -118,8 +107,9 @@ public class CodeableConceptDt
|
||||
* A reference to a code defined by a terminology system
|
||||
* </p>
|
||||
*/
|
||||
public void setCoding(java.util.List<CodingDt> theValue) {
|
||||
public CodeableConceptDt setCoding(java.util.List<CodingDt> theValue) {
|
||||
myCoding = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -136,6 +126,21 @@ public class CodeableConceptDt
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>coding</b> (Code defined by a terminology system),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A reference to a code defined by a terminology system
|
||||
* </p>
|
||||
*/
|
||||
public CodingDt getCodingFirstRep() {
|
||||
if (getCoding().isEmpty()) {
|
||||
return addCoding();
|
||||
}
|
||||
return getCoding().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>text</b> (Plain text representation of the concept).
|
||||
@ -162,11 +167,11 @@ public class CodeableConceptDt
|
||||
* A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user
|
||||
* </p>
|
||||
*/
|
||||
public void setText(StringDt theValue) {
|
||||
public CodeableConceptDt setText(StringDt theValue) {
|
||||
myText = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>text</b> (Plain text representation of the concept)
|
||||
*
|
||||
@ -175,8 +180,9 @@ public class CodeableConceptDt
|
||||
* A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user
|
||||
* </p>
|
||||
*/
|
||||
public void setText( String theString) {
|
||||
public CodeableConceptDt setText( String theString) {
|
||||
myText = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
@ -16,31 +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 java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.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;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
@ -63,7 +49,7 @@ public class CodingDt
|
||||
extends BaseElement implements ICompositeDatatype , IQueryParameterType {
|
||||
|
||||
/**
|
||||
* Creates a new Coding
|
||||
* Constructor
|
||||
*/
|
||||
public CodingDt() {
|
||||
// nothing
|
||||
@ -162,11 +148,11 @@ public class CodingDt
|
||||
* The identification of the code system that defines the meaning of the symbol in the code.
|
||||
* </p>
|
||||
*/
|
||||
public void setSystem(UriDt theValue) {
|
||||
public CodingDt setSystem(UriDt theValue) {
|
||||
mySystem = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>system</b> (Identity of the terminology system)
|
||||
*
|
||||
@ -175,8 +161,9 @@ public class CodingDt
|
||||
* The identification of the code system that defines the meaning of the symbol in the code.
|
||||
* </p>
|
||||
*/
|
||||
public void setSystem( String theUri) {
|
||||
public CodingDt setSystem( String theUri) {
|
||||
mySystem = new UriDt(theUri);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -205,11 +192,11 @@ public class CodingDt
|
||||
* The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and When the meaning is not guaranteed to be consistent, the version SHOULD be exchanged
|
||||
* </p>
|
||||
*/
|
||||
public void setVersion(StringDt theValue) {
|
||||
public CodingDt setVersion(StringDt theValue) {
|
||||
myVersion = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>version</b> (Version of the system - if relevant)
|
||||
*
|
||||
@ -218,8 +205,9 @@ public class CodingDt
|
||||
* The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and When the meaning is not guaranteed to be consistent, the version SHOULD be exchanged
|
||||
* </p>
|
||||
*/
|
||||
public void setVersion( String theString) {
|
||||
public CodingDt setVersion( String theString) {
|
||||
myVersion = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -248,11 +236,11 @@ public class CodingDt
|
||||
* A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)
|
||||
* </p>
|
||||
*/
|
||||
public void setCode(CodeDt theValue) {
|
||||
public CodingDt setCode(CodeDt theValue) {
|
||||
myCode = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>code</b> (Symbol in syntax defined by the system)
|
||||
*
|
||||
@ -261,8 +249,9 @@ public class CodingDt
|
||||
* A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)
|
||||
* </p>
|
||||
*/
|
||||
public void setCode( String theCode) {
|
||||
public CodingDt setCode( String theCode) {
|
||||
myCode = new CodeDt(theCode);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -291,11 +280,11 @@ public class CodingDt
|
||||
* A representation of the meaning of the code in the system, following the rules of the system.
|
||||
* </p>
|
||||
*/
|
||||
public void setDisplay(StringDt theValue) {
|
||||
public CodingDt setDisplay(StringDt theValue) {
|
||||
myDisplay = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>display</b> (Representation defined by the system)
|
||||
*
|
||||
@ -304,8 +293,9 @@ public class CodingDt
|
||||
* A representation of the meaning of the code in the system, following the rules of the system.
|
||||
* </p>
|
||||
*/
|
||||
public void setDisplay( String theString) {
|
||||
public CodingDt setDisplay( String theString) {
|
||||
myDisplay = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -334,11 +324,11 @@ public class CodingDt
|
||||
* Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays)
|
||||
* </p>
|
||||
*/
|
||||
public void setPrimary(BooleanDt theValue) {
|
||||
public CodingDt setPrimary(BooleanDt theValue) {
|
||||
myPrimary = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>primary</b> (If this code was chosen directly by the user)
|
||||
*
|
||||
@ -347,8 +337,9 @@ public class CodingDt
|
||||
* Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays)
|
||||
* </p>
|
||||
*/
|
||||
public void setPrimary( Boolean theBoolean) {
|
||||
public CodingDt setPrimary( Boolean theBoolean) {
|
||||
myPrimary = new BooleanDt(theBoolean);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -377,11 +368,11 @@ public class CodingDt
|
||||
* The set of possible coded values this coding was chosen from or constrained by
|
||||
* </p>
|
||||
*/
|
||||
public void setValueSet(ResourceReferenceDt theValue) {
|
||||
public CodingDt setValueSet(ResourceReferenceDt theValue) {
|
||||
myValueSet = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
@ -16,33 +16,19 @@
|
||||
|
||||
package ca.uhn.fhir.model.dstu.composite;
|
||||
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
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.dstu.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
import ca.uhn.fhir.model.primitive.BooleanDt;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeDt;
|
||||
import ca.uhn.fhir.model.primitive.CodeDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>Contact</b> Datatype
|
||||
@ -62,6 +48,13 @@ import ca.uhn.fhir.model.primitive.UriDt;
|
||||
public class ContactDt
|
||||
extends BaseElement implements ICompositeDatatype {
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public ContactDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
|
||||
@Child(name="system", type=CodeDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
@ -132,11 +125,11 @@ public class ContactDt
|
||||
* Telecommunications form for contact - what communications system is required to make use of the contact
|
||||
* </p>
|
||||
*/
|
||||
public void setSystem(BoundCodeDt<ContactSystemEnum> theValue) {
|
||||
public ContactDt setSystem(BoundCodeDt<ContactSystemEnum> theValue) {
|
||||
mySystem = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>system</b> (phone | fax | email | url)
|
||||
*
|
||||
@ -145,8 +138,9 @@ public class ContactDt
|
||||
* Telecommunications form for contact - what communications system is required to make use of the contact
|
||||
* </p>
|
||||
*/
|
||||
public void setSystem(ContactSystemEnum theValue) {
|
||||
public ContactDt setSystem(ContactSystemEnum theValue) {
|
||||
getSystem().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -175,11 +169,11 @@ public class ContactDt
|
||||
* The actual contact details, in a form that is meaningful to the designated communication system (i.e. phone number or email address).
|
||||
* </p>
|
||||
*/
|
||||
public void setValue(StringDt theValue) {
|
||||
public ContactDt setValue(StringDt theValue) {
|
||||
myValue = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>value</b> (The actual contact details)
|
||||
*
|
||||
@ -188,8 +182,9 @@ public class ContactDt
|
||||
* The actual contact details, in a form that is meaningful to the designated communication system (i.e. phone number or email address).
|
||||
* </p>
|
||||
*/
|
||||
public void setValue( String theString) {
|
||||
public ContactDt setValue( String theString) {
|
||||
myValue = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -218,11 +213,11 @@ public class ContactDt
|
||||
* Identifies the purpose for the address
|
||||
* </p>
|
||||
*/
|
||||
public void setUse(BoundCodeDt<ContactUseEnum> theValue) {
|
||||
public ContactDt setUse(BoundCodeDt<ContactUseEnum> theValue) {
|
||||
myUse = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>use</b> (home | work | temp | old | mobile - purpose of this address)
|
||||
*
|
||||
@ -231,8 +226,9 @@ public class ContactDt
|
||||
* Identifies the purpose for the address
|
||||
* </p>
|
||||
*/
|
||||
public void setUse(ContactUseEnum theValue) {
|
||||
public ContactDt setUse(ContactUseEnum theValue) {
|
||||
getUse().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -261,11 +257,11 @@ public class ContactDt
|
||||
* Time period when the contact was/is in use
|
||||
* </p>
|
||||
*/
|
||||
public void setPeriod(PeriodDt theValue) {
|
||||
public ContactDt setPeriod(PeriodDt theValue) {
|
||||
myPeriod = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -3,14 +3,14 @@ package ca.uhn.fhir.model.dstu.composite;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.api.IElement;
|
||||
import ca.uhn.fhir.model.api.IDatatype;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.api.annotation.Child;
|
||||
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
|
||||
@DatatypeDef(name = "duration")
|
||||
public class ContainedDt implements IElement {
|
||||
public class ContainedDt implements IDatatype {
|
||||
|
||||
@Child(name = "resource", type = IResource.class, order = 0, min = 0, max = Child.MAX_UNLIMITED)
|
||||
private List<IResource> myContainedResources;
|
||||
|
@ -16,33 +16,19 @@
|
||||
|
||||
package ca.uhn.fhir.model.dstu.composite;
|
||||
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum;
|
||||
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.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
import ca.uhn.fhir.model.primitive.BooleanDt;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeDt;
|
||||
import ca.uhn.fhir.model.primitive.CodeDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
import ca.uhn.fhir.util.DatatypeUtil;
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>HumanName</b> Datatype
|
||||
@ -62,6 +48,13 @@ import ca.uhn.fhir.model.primitive.UriDt;
|
||||
public class HumanNameDt
|
||||
extends BaseElement implements ICompositeDatatype {
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public HumanNameDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
|
||||
@Child(name="use", type=CodeDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
@ -153,11 +146,11 @@ public class HumanNameDt
|
||||
* Identifies the purpose for this name
|
||||
* </p>
|
||||
*/
|
||||
public void setUse(BoundCodeDt<NameUseEnum> theValue) {
|
||||
public HumanNameDt setUse(BoundCodeDt<NameUseEnum> theValue) {
|
||||
myUse = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>use</b> (usual | official | temp | nickname | anonymous | old | maiden)
|
||||
*
|
||||
@ -166,8 +159,9 @@ public class HumanNameDt
|
||||
* Identifies the purpose for this name
|
||||
* </p>
|
||||
*/
|
||||
public void setUse(NameUseEnum theValue) {
|
||||
public HumanNameDt setUse(NameUseEnum theValue) {
|
||||
getUse().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -196,11 +190,11 @@ public class HumanNameDt
|
||||
* A full text representation of the name
|
||||
* </p>
|
||||
*/
|
||||
public void setText(StringDt theValue) {
|
||||
public HumanNameDt setText(StringDt theValue) {
|
||||
myText = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>text</b> (Text representation of the full name)
|
||||
*
|
||||
@ -209,8 +203,9 @@ public class HumanNameDt
|
||||
* A full text representation of the name
|
||||
* </p>
|
||||
*/
|
||||
public void setText( String theString) {
|
||||
public HumanNameDt setText( String theString) {
|
||||
myText = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -239,8 +234,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 void setFamily(java.util.List<StringDt> theValue) {
|
||||
public HumanNameDt setFamily(java.util.List<StringDt> theValue) {
|
||||
myFamily = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -257,6 +253,21 @@ public class HumanNameDt
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>family</b> (Family name (often called 'Surname')),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getFamilyFirstRep() {
|
||||
if (getFamily().isEmpty()) {
|
||||
return addFamily();
|
||||
}
|
||||
return getFamily().get(0);
|
||||
}
|
||||
/**
|
||||
* Adds a new value for <b>family</b> (Family name (often called 'Surname'))
|
||||
*
|
||||
@ -264,12 +275,15 @@ public class HumanNameDt
|
||||
* <b>Definition:</b>
|
||||
* The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father.
|
||||
* </p>
|
||||
*
|
||||
* @return Returns a reference to this object, to allow for simple chaining.
|
||||
*/
|
||||
public void addFamily( String theString) {
|
||||
public HumanNameDt addFamily( String theString) {
|
||||
if (myFamily == null) {
|
||||
myFamily = new java.util.ArrayList<StringDt>();
|
||||
}
|
||||
myFamily.add(new StringDt(theString));
|
||||
myFamily.add(new StringDt(theString));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -298,8 +312,9 @@ public class HumanNameDt
|
||||
* Given name
|
||||
* </p>
|
||||
*/
|
||||
public void setGiven(java.util.List<StringDt> theValue) {
|
||||
public HumanNameDt setGiven(java.util.List<StringDt> theValue) {
|
||||
myGiven = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -316,6 +331,21 @@ public class HumanNameDt
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>given</b> (Given names (not always 'first'). Includes middle names),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Given name
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getGivenFirstRep() {
|
||||
if (getGiven().isEmpty()) {
|
||||
return addGiven();
|
||||
}
|
||||
return getGiven().get(0);
|
||||
}
|
||||
/**
|
||||
* Adds a new value for <b>given</b> (Given names (not always 'first'). Includes middle names)
|
||||
*
|
||||
@ -323,12 +353,15 @@ public class HumanNameDt
|
||||
* <b>Definition:</b>
|
||||
* Given name
|
||||
* </p>
|
||||
*
|
||||
* @return Returns a reference to this object, to allow for simple chaining.
|
||||
*/
|
||||
public void addGiven( String theString) {
|
||||
public HumanNameDt addGiven( String theString) {
|
||||
if (myGiven == null) {
|
||||
myGiven = new java.util.ArrayList<StringDt>();
|
||||
}
|
||||
myGiven.add(new StringDt(theString));
|
||||
myGiven.add(new StringDt(theString));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -357,8 +390,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 void setPrefix(java.util.List<StringDt> theValue) {
|
||||
public HumanNameDt setPrefix(java.util.List<StringDt> theValue) {
|
||||
myPrefix = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -375,6 +409,21 @@ public class HumanNameDt
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>prefix</b> (Parts that come before the name),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getPrefixFirstRep() {
|
||||
if (getPrefix().isEmpty()) {
|
||||
return addPrefix();
|
||||
}
|
||||
return getPrefix().get(0);
|
||||
}
|
||||
/**
|
||||
* Adds a new value for <b>prefix</b> (Parts that come before the name)
|
||||
*
|
||||
@ -382,12 +431,15 @@ public class HumanNameDt
|
||||
* <b>Definition:</b>
|
||||
* Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name
|
||||
* </p>
|
||||
*
|
||||
* @return Returns a reference to this object, to allow for simple chaining.
|
||||
*/
|
||||
public void addPrefix( String theString) {
|
||||
public HumanNameDt addPrefix( String theString) {
|
||||
if (myPrefix == null) {
|
||||
myPrefix = new java.util.ArrayList<StringDt>();
|
||||
}
|
||||
myPrefix.add(new StringDt(theString));
|
||||
myPrefix.add(new StringDt(theString));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -416,8 +468,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 void setSuffix(java.util.List<StringDt> theValue) {
|
||||
public HumanNameDt setSuffix(java.util.List<StringDt> theValue) {
|
||||
mySuffix = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -434,6 +487,21 @@ public class HumanNameDt
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>suffix</b> (Parts that come after the name),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getSuffixFirstRep() {
|
||||
if (getSuffix().isEmpty()) {
|
||||
return addSuffix();
|
||||
}
|
||||
return getSuffix().get(0);
|
||||
}
|
||||
/**
|
||||
* Adds a new value for <b>suffix</b> (Parts that come after the name)
|
||||
*
|
||||
@ -441,12 +509,15 @@ public class HumanNameDt
|
||||
* <b>Definition:</b>
|
||||
* Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name
|
||||
* </p>
|
||||
*
|
||||
* @return Returns a reference to this object, to allow for simple chaining.
|
||||
*/
|
||||
public void addSuffix( String theString) {
|
||||
public HumanNameDt addSuffix( String theString) {
|
||||
if (mySuffix == null) {
|
||||
mySuffix = new java.util.ArrayList<StringDt>();
|
||||
}
|
||||
mySuffix.add(new StringDt(theString));
|
||||
mySuffix.add(new StringDt(theString));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -475,13 +546,48 @@ public class HumanNameDt
|
||||
* Indicates the period of time when this name was valid for the named person.
|
||||
* </p>
|
||||
*/
|
||||
public void setPeriod(PeriodDt theValue) {
|
||||
public HumanNameDt setPeriod(PeriodDt theValue) {
|
||||
myPeriod = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Returns all repetitions of {@link #getFamily() family name} as a space separated string
|
||||
*
|
||||
* @see DatatypeUtil#joinStringsSpaceSeparated(List)
|
||||
*/
|
||||
public String getFamilyAsSingleString() {
|
||||
return ca.uhn.fhir.util.DatatypeUtil.joinStringsSpaceSeparated(getFamily());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all repetitions of {@link #getGiven() given name} as a space separated string
|
||||
*
|
||||
* @see DatatypeUtil#joinStringsSpaceSeparated(List)
|
||||
*/
|
||||
public String getGivenAsSingleString() {
|
||||
return ca.uhn.fhir.util.DatatypeUtil.joinStringsSpaceSeparated(getGiven());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all repetitions of {@link #getPrefix() prefix name} as a space separated string
|
||||
*
|
||||
* @see DatatypeUtil#joinStringsSpaceSeparated(List)
|
||||
*/
|
||||
public String getPrefixAsSingleString() {
|
||||
return ca.uhn.fhir.util.DatatypeUtil.joinStringsSpaceSeparated(getPrefix());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all repetitions of {@link #Suffix() suffix} as a space separated string
|
||||
*
|
||||
* @see DatatypeUtil#joinStringsSpaceSeparated(List)
|
||||
*/
|
||||
public String getSuffixAsSingleString() {
|
||||
return ca.uhn.fhir.util.DatatypeUtil.joinStringsSpaceSeparated(getSuffix());
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -16,31 +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 java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum;
|
||||
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.dstu.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
import ca.uhn.fhir.model.primitive.BooleanDt;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeDt;
|
||||
import ca.uhn.fhir.model.primitive.CodeDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
@ -63,7 +50,7 @@ public class IdentifierDt
|
||||
extends BaseElement implements ICompositeDatatype , IQueryParameterType {
|
||||
|
||||
/**
|
||||
* Creates a new identifier
|
||||
* Constructor
|
||||
*/
|
||||
public IdentifierDt() {
|
||||
// nothing
|
||||
@ -162,11 +149,11 @@ public class IdentifierDt
|
||||
* The purpose of this identifier
|
||||
* </p>
|
||||
*/
|
||||
public void setUse(BoundCodeDt<IdentifierUseEnum> theValue) {
|
||||
public IdentifierDt setUse(BoundCodeDt<IdentifierUseEnum> theValue) {
|
||||
myUse = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>use</b> (usual | official | temp | secondary (If known))
|
||||
*
|
||||
@ -175,8 +162,9 @@ public class IdentifierDt
|
||||
* The purpose of this identifier
|
||||
* </p>
|
||||
*/
|
||||
public void setUse(IdentifierUseEnum theValue) {
|
||||
public IdentifierDt setUse(IdentifierUseEnum theValue) {
|
||||
getUse().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -205,11 +193,11 @@ public class IdentifierDt
|
||||
* A text string for the identifier that can be displayed to a human so they can recognize the identifier
|
||||
* </p>
|
||||
*/
|
||||
public void setLabel(StringDt theValue) {
|
||||
public IdentifierDt setLabel(StringDt theValue) {
|
||||
myLabel = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>label</b> (Description of identifier)
|
||||
*
|
||||
@ -218,8 +206,9 @@ public class IdentifierDt
|
||||
* A text string for the identifier that can be displayed to a human so they can recognize the identifier
|
||||
* </p>
|
||||
*/
|
||||
public void setLabel( String theString) {
|
||||
public IdentifierDt setLabel( String theString) {
|
||||
myLabel = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -248,11 +237,11 @@ public class IdentifierDt
|
||||
* Establishes the namespace in which set of possible id values is unique.
|
||||
* </p>
|
||||
*/
|
||||
public void setSystem(UriDt theValue) {
|
||||
public IdentifierDt setSystem(UriDt theValue) {
|
||||
mySystem = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>system</b> (The namespace for the identifier)
|
||||
*
|
||||
@ -261,8 +250,9 @@ public class IdentifierDt
|
||||
* Establishes the namespace in which set of possible id values is unique.
|
||||
* </p>
|
||||
*/
|
||||
public void setSystem( String theUri) {
|
||||
public IdentifierDt setSystem( String theUri) {
|
||||
mySystem = new UriDt(theUri);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -291,11 +281,11 @@ public class IdentifierDt
|
||||
* The portion of the identifier typically displayed to the user and which is unique within the context of the system.
|
||||
* </p>
|
||||
*/
|
||||
public void setValue(StringDt theValue) {
|
||||
public IdentifierDt setValue(StringDt theValue) {
|
||||
myValue = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>value</b> (The value that is unique)
|
||||
*
|
||||
@ -304,8 +294,9 @@ public class IdentifierDt
|
||||
* The portion of the identifier typically displayed to the user and which is unique within the context of the system.
|
||||
* </p>
|
||||
*/
|
||||
public void setValue( String theString) {
|
||||
public IdentifierDt setValue( String theString) {
|
||||
myValue = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -334,11 +325,11 @@ public class IdentifierDt
|
||||
* Time period during which identifier is/was valid for use
|
||||
* </p>
|
||||
*/
|
||||
public void setPeriod(PeriodDt theValue) {
|
||||
public IdentifierDt setPeriod(PeriodDt theValue) {
|
||||
myPeriod = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>assigner</b> (Organization that issued id (may be just text)).
|
||||
@ -365,11 +356,11 @@ public class IdentifierDt
|
||||
* Organization that issued/manages the identifier
|
||||
* </p>
|
||||
*/
|
||||
public void setAssigner(ResourceReferenceDt theValue) {
|
||||
public IdentifierDt setAssigner(ResourceReferenceDt theValue) {
|
||||
myAssigner = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
@ -51,6 +51,15 @@ public class NarrativeDt extends BaseElement implements ICompositeDatatype {
|
||||
@Child(name="div", type=XhtmlDt.class, order=1, min=1, max=1)
|
||||
private XhtmlDt myDiv;
|
||||
|
||||
public NarrativeDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
public NarrativeDt(XhtmlDt theDiv, NarrativeStatusEnum theStatus) {
|
||||
setDiv(theDiv);
|
||||
setStatus(theStatus);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return ca.uhn.fhir.util.ElementUtil.isEmpty( myStatus, myDiv );
|
||||
|
@ -16,33 +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 java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
import ca.uhn.fhir.model.primitive.BooleanDt;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeDt;
|
||||
import ca.uhn.fhir.model.primitive.CodeDt;
|
||||
import ca.uhn.fhir.model.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;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>Period</b> Datatype
|
||||
@ -62,6 +46,13 @@ import ca.uhn.fhir.model.primitive.UriDt;
|
||||
public class PeriodDt
|
||||
extends BaseElement implements ICompositeDatatype {
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public PeriodDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
|
||||
@Child(name="start", type=DateTimeDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
@ -118,11 +109,11 @@ public class PeriodDt
|
||||
* The start of the period. The boundary is inclusive.
|
||||
* </p>
|
||||
*/
|
||||
public void setStart(DateTimeDt theValue) {
|
||||
public PeriodDt setStart(DateTimeDt theValue) {
|
||||
myStart = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>start</b> (Starting time with inclusive boundary)
|
||||
*
|
||||
@ -131,8 +122,9 @@ public class PeriodDt
|
||||
* The start of the period. The boundary is inclusive.
|
||||
* </p>
|
||||
*/
|
||||
public void setStart( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
public PeriodDt setStart( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myStart = new DateTimeDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -143,8 +135,9 @@ public class PeriodDt
|
||||
* The start of the period. The boundary is inclusive.
|
||||
* </p>
|
||||
*/
|
||||
public void setStartWithSecondsPrecision( Date theDate) {
|
||||
public PeriodDt setStartWithSecondsPrecision( Date theDate) {
|
||||
myStart = new DateTimeDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -173,11 +166,11 @@ 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(DateTimeDt theValue) {
|
||||
public PeriodDt setEnd(DateTimeDt theValue) {
|
||||
myEnd = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>end</b> (End time with inclusive boundary, if not ongoing)
|
||||
*
|
||||
@ -186,8 +179,9 @@ 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) {
|
||||
public PeriodDt setEnd( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myEnd = new DateTimeDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -198,8 +192,9 @@ 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) {
|
||||
public PeriodDt setEndWithSecondsPrecision( Date theDate) {
|
||||
myEnd = new DateTimeDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
@ -16,31 +16,19 @@
|
||||
|
||||
package ca.uhn.fhir.model.dstu.composite;
|
||||
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
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.api.annotation.SimpleSetter;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
import ca.uhn.fhir.model.primitive.BooleanDt;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeDt;
|
||||
import ca.uhn.fhir.model.primitive.CodeDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
@ -62,6 +50,48 @@ import ca.uhn.fhir.model.primitive.UriDt;
|
||||
public class QuantityDt
|
||||
extends BaseElement implements ICompositeDatatype {
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public QuantityDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
@SimpleSetter
|
||||
public QuantityDt(@SimpleSetter.Parameter(name="theValue") double theValue) {
|
||||
setValue(theValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
@SimpleSetter
|
||||
public QuantityDt(@SimpleSetter.Parameter(name="theValue") long theValue) {
|
||||
setValue(theValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
@SimpleSetter
|
||||
public QuantityDt(@SimpleSetter.Parameter(name="theComparator") QuantityCompararatorEnum theComparator, @SimpleSetter.Parameter(name="theValue") double theValue, @SimpleSetter.Parameter(name="theUnits") String theUnits) {
|
||||
setValue(theValue);
|
||||
setComparator(theComparator);
|
||||
setUnits(theUnits);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
@SimpleSetter
|
||||
public QuantityDt(@SimpleSetter.Parameter(name="theComparator") QuantityCompararatorEnum theComparator, @SimpleSetter.Parameter(name="theValue") long theValue, @SimpleSetter.Parameter(name="theUnits") String theUnits) {
|
||||
setValue(theValue);
|
||||
setComparator(theComparator);
|
||||
setUnits(theUnits);
|
||||
}
|
||||
|
||||
@Child(name="value", type=DecimalDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
@ -139,11 +169,11 @@ 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(DecimalDt theValue) {
|
||||
public QuantityDt setValue(DecimalDt theValue) {
|
||||
myValue = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>value</b> (Numerical value (with implicit precision))
|
||||
*
|
||||
@ -152,8 +182,9 @@ 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 QuantityDt setValue( long theValue) {
|
||||
myValue = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -164,8 +195,9 @@ 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( double theValue) {
|
||||
public QuantityDt setValue( double theValue) {
|
||||
myValue = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -176,8 +208,9 @@ 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 QuantityDt setValue( java.math.BigDecimal theValue) {
|
||||
myValue = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -206,11 +239,11 @@ public class QuantityDt
|
||||
* How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value
|
||||
* </p>
|
||||
*/
|
||||
public void setComparator(BoundCodeDt<QuantityCompararatorEnum> theValue) {
|
||||
public QuantityDt setComparator(BoundCodeDt<QuantityCompararatorEnum> theValue) {
|
||||
myComparator = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>comparator</b> (< | <= | >= | > - how to understand the value)
|
||||
*
|
||||
@ -219,8 +252,9 @@ public class QuantityDt
|
||||
* How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value
|
||||
* </p>
|
||||
*/
|
||||
public void setComparator(QuantityCompararatorEnum theValue) {
|
||||
public QuantityDt setComparator(QuantityCompararatorEnum theValue) {
|
||||
getComparator().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -249,11 +283,11 @@ public class QuantityDt
|
||||
* A human-readable form of the units
|
||||
* </p>
|
||||
*/
|
||||
public void setUnits(StringDt theValue) {
|
||||
public QuantityDt setUnits(StringDt theValue) {
|
||||
myUnits = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>units</b> (Unit representation)
|
||||
*
|
||||
@ -262,8 +296,9 @@ public class QuantityDt
|
||||
* A human-readable form of the units
|
||||
* </p>
|
||||
*/
|
||||
public void setUnits( String theString) {
|
||||
public QuantityDt setUnits( String theString) {
|
||||
myUnits = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -292,11 +327,11 @@ public class QuantityDt
|
||||
* The identification of the system that provides the coded form of the unit
|
||||
* </p>
|
||||
*/
|
||||
public void setSystem(UriDt theValue) {
|
||||
public QuantityDt setSystem(UriDt theValue) {
|
||||
mySystem = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>system</b> (System that defines coded unit form)
|
||||
*
|
||||
@ -305,8 +340,9 @@ public class QuantityDt
|
||||
* The identification of the system that provides the coded form of the unit
|
||||
* </p>
|
||||
*/
|
||||
public void setSystem( String theUri) {
|
||||
public QuantityDt setSystem( String theUri) {
|
||||
mySystem = new UriDt(theUri);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -335,11 +371,11 @@ public class QuantityDt
|
||||
* A computer processable form of the units in some unit representation system
|
||||
* </p>
|
||||
*/
|
||||
public void setCode(CodeDt theValue) {
|
||||
public QuantityDt setCode(CodeDt theValue) {
|
||||
myCode = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>code</b> (Coded form of the unit)
|
||||
*
|
||||
@ -348,8 +384,9 @@ public class QuantityDt
|
||||
* A computer processable form of the units in some unit representation system
|
||||
* </p>
|
||||
*/
|
||||
public void setCode( String theCode) {
|
||||
public QuantityDt setCode( String theCode) {
|
||||
myCode = new CodeDt(theCode);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
@ -16,33 +16,14 @@
|
||||
|
||||
package ca.uhn.fhir.model.dstu.composite;
|
||||
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
import ca.uhn.fhir.model.primitive.BooleanDt;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeDt;
|
||||
import ca.uhn.fhir.model.primitive.CodeDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
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
|
||||
@ -62,6 +43,13 @@ import ca.uhn.fhir.model.primitive.UriDt;
|
||||
public class RangeDt
|
||||
extends BaseElement implements ICompositeDatatype {
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public RangeDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
|
||||
@Child(name="low", type=QuantityDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
@ -118,11 +106,11 @@ public class RangeDt
|
||||
* The low limit. The boundary is inclusive.
|
||||
* </p>
|
||||
*/
|
||||
public void setLow(QuantityDt theValue) {
|
||||
public RangeDt setLow(QuantityDt theValue) {
|
||||
myLow = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>high</b> (High limit).
|
||||
@ -149,11 +137,11 @@ public class RangeDt
|
||||
* The high limit. The boundary is inclusive.
|
||||
* </p>
|
||||
*/
|
||||
public void setHigh(QuantityDt theValue) {
|
||||
public RangeDt setHigh(QuantityDt theValue) {
|
||||
myHigh = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -16,33 +16,14 @@
|
||||
|
||||
package ca.uhn.fhir.model.dstu.composite;
|
||||
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
import ca.uhn.fhir.model.primitive.BooleanDt;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeDt;
|
||||
import ca.uhn.fhir.model.primitive.CodeDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
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
|
||||
@ -62,6 +43,13 @@ import ca.uhn.fhir.model.primitive.UriDt;
|
||||
public class RatioDt
|
||||
extends BaseElement implements ICompositeDatatype {
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public RatioDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
|
||||
@Child(name="numerator", type=QuantityDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
@ -118,11 +106,11 @@ public class RatioDt
|
||||
* The value of the numerator
|
||||
* </p>
|
||||
*/
|
||||
public void setNumerator(QuantityDt theValue) {
|
||||
public RatioDt setNumerator(QuantityDt theValue) {
|
||||
myNumerator = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>denominator</b> (Denominator value).
|
||||
@ -149,11 +137,11 @@ public class RatioDt
|
||||
* The value of the denominator
|
||||
* </p>
|
||||
*/
|
||||
public void setDenominator(QuantityDt theValue) {
|
||||
public RatioDt setDenominator(QuantityDt theValue) {
|
||||
myDenominator = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -16,33 +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 java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
import ca.uhn.fhir.model.primitive.BooleanDt;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeDt;
|
||||
import ca.uhn.fhir.model.primitive.CodeDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
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;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>ResourceReference</b> Datatype
|
||||
@ -62,6 +44,13 @@ import ca.uhn.fhir.model.primitive.UriDt;
|
||||
public class ResourceReferenceDt
|
||||
extends BaseResourceReference implements ICompositeDatatype {
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public ResourceReferenceDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
|
||||
@Child(name="reference", type=StringDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
@ -118,11 +107,11 @@ public class ResourceReferenceDt
|
||||
* A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources
|
||||
* </p>
|
||||
*/
|
||||
public void setReference(StringDt theValue) {
|
||||
public ResourceReferenceDt setReference(StringDt theValue) {
|
||||
myReference = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>reference</b> (Relative, internal or absolute URL reference)
|
||||
*
|
||||
@ -131,8 +120,9 @@ public class ResourceReferenceDt
|
||||
* A reference to a location at which the other resource is found. The reference may a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources
|
||||
* </p>
|
||||
*/
|
||||
public void setReference( String theString) {
|
||||
public ResourceReferenceDt setReference( String theString) {
|
||||
myReference = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -161,11 +151,11 @@ public class ResourceReferenceDt
|
||||
* Plain text narrative that identifies the resource in addition to the resource reference
|
||||
* </p>
|
||||
*/
|
||||
public void setDisplay(StringDt theValue) {
|
||||
public ResourceReferenceDt setDisplay(StringDt theValue) {
|
||||
myDisplay = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>display</b> (Text alternative for the resource)
|
||||
*
|
||||
@ -174,8 +164,9 @@ public class ResourceReferenceDt
|
||||
* Plain text narrative that identifies the resource in addition to the resource reference
|
||||
* </p>
|
||||
*/
|
||||
public void setDisplay( String theString) {
|
||||
public ResourceReferenceDt setDisplay( String theString) {
|
||||
myDisplay = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
@ -16,33 +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 java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EventTimingEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
import ca.uhn.fhir.model.primitive.BooleanDt;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeDt;
|
||||
import ca.uhn.fhir.model.primitive.CodeDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.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;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>SampledData</b> Datatype
|
||||
@ -62,6 +46,13 @@ import ca.uhn.fhir.model.primitive.UriDt;
|
||||
public class SampledDataDt
|
||||
extends BaseElement implements ICompositeDatatype {
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public SampledDataDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
|
||||
@Child(name="origin", type=QuantityDt.class, order=0, min=1, max=1)
|
||||
@Description(
|
||||
@ -153,11 +144,11 @@ public class SampledDataDt
|
||||
* The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series
|
||||
* </p>
|
||||
*/
|
||||
public void setOrigin(QuantityDt theValue) {
|
||||
public SampledDataDt setOrigin(QuantityDt theValue) {
|
||||
myOrigin = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>period</b> (Number of milliseconds between samples).
|
||||
@ -184,11 +175,11 @@ public class SampledDataDt
|
||||
* The length of time between sampling times, measured in milliseconds
|
||||
* </p>
|
||||
*/
|
||||
public void setPeriod(DecimalDt theValue) {
|
||||
public SampledDataDt setPeriod(DecimalDt theValue) {
|
||||
myPeriod = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>period</b> (Number of milliseconds between samples)
|
||||
*
|
||||
@ -197,8 +188,9 @@ public class SampledDataDt
|
||||
* The length of time between sampling times, measured in milliseconds
|
||||
* </p>
|
||||
*/
|
||||
public void setPeriod( long theValue) {
|
||||
public SampledDataDt setPeriod( long theValue) {
|
||||
myPeriod = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -209,8 +201,9 @@ public class SampledDataDt
|
||||
* The length of time between sampling times, measured in milliseconds
|
||||
* </p>
|
||||
*/
|
||||
public void setPeriod( double theValue) {
|
||||
public SampledDataDt setPeriod( double theValue) {
|
||||
myPeriod = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -221,8 +214,9 @@ public class SampledDataDt
|
||||
* The length of time between sampling times, measured in milliseconds
|
||||
* </p>
|
||||
*/
|
||||
public void setPeriod( java.math.BigDecimal theValue) {
|
||||
public SampledDataDt setPeriod( java.math.BigDecimal theValue) {
|
||||
myPeriod = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -251,11 +245,11 @@ 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(DecimalDt theValue) {
|
||||
public SampledDataDt setFactor(DecimalDt theValue) {
|
||||
myFactor = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>factor</b> (Multiply data by this before adding to origin)
|
||||
*
|
||||
@ -264,8 +258,9 @@ 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 SampledDataDt setFactor( long theValue) {
|
||||
myFactor = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -276,8 +271,9 @@ 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( double theValue) {
|
||||
public SampledDataDt setFactor( double theValue) {
|
||||
myFactor = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -288,8 +284,9 @@ 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 SampledDataDt setFactor( java.math.BigDecimal theValue) {
|
||||
myFactor = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -318,11 +315,11 @@ 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(DecimalDt theValue) {
|
||||
public SampledDataDt setLowerLimit(DecimalDt theValue) {
|
||||
myLowerLimit = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>lowerLimit</b> (Lower limit of detection)
|
||||
*
|
||||
@ -331,8 +328,9 @@ 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 SampledDataDt setLowerLimit( long theValue) {
|
||||
myLowerLimit = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -343,8 +341,9 @@ 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( double theValue) {
|
||||
public SampledDataDt setLowerLimit( double theValue) {
|
||||
myLowerLimit = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -355,8 +354,9 @@ 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 SampledDataDt setLowerLimit( java.math.BigDecimal theValue) {
|
||||
myLowerLimit = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -385,11 +385,11 @@ 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(DecimalDt theValue) {
|
||||
public SampledDataDt setUpperLimit(DecimalDt theValue) {
|
||||
myUpperLimit = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>upperLimit</b> (Upper limit of detection)
|
||||
*
|
||||
@ -398,8 +398,9 @@ 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 SampledDataDt setUpperLimit( long theValue) {
|
||||
myUpperLimit = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -410,8 +411,9 @@ 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( double theValue) {
|
||||
public SampledDataDt setUpperLimit( double theValue) {
|
||||
myUpperLimit = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -422,8 +424,9 @@ 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 SampledDataDt setUpperLimit( java.math.BigDecimal theValue) {
|
||||
myUpperLimit = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -452,11 +455,11 @@ public class SampledDataDt
|
||||
* The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once
|
||||
* </p>
|
||||
*/
|
||||
public void setDimensions(IntegerDt theValue) {
|
||||
public SampledDataDt setDimensions(IntegerDt theValue) {
|
||||
myDimensions = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>dimensions</b> (Number of sample points at each time point)
|
||||
*
|
||||
@ -465,8 +468,9 @@ public class SampledDataDt
|
||||
* The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once
|
||||
* </p>
|
||||
*/
|
||||
public void setDimensions( Integer theInteger) {
|
||||
public SampledDataDt setDimensions( Integer theInteger) {
|
||||
myDimensions = new IntegerDt(theInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -495,11 +499,11 @@ public class SampledDataDt
|
||||
* A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value
|
||||
* </p>
|
||||
*/
|
||||
public void setData(StringDt theValue) {
|
||||
public SampledDataDt setData(StringDt theValue) {
|
||||
myData = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>data</b> (Decimal values with spaces, or \"E\" | \"U\" | \"L\")
|
||||
*
|
||||
@ -508,8 +512,9 @@ public class SampledDataDt
|
||||
* A series of data points which are decimal values separated by a single space (character u20). The special values \"E\" (error), \"L\" (below detection limit) and \"U\" (above detection limit) can also be used in place of a decimal value
|
||||
* </p>
|
||||
*/
|
||||
public void setData( String theString) {
|
||||
public SampledDataDt setData( String theString) {
|
||||
myData = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
@ -16,33 +16,25 @@
|
||||
|
||||
package ca.uhn.fhir.model.dstu.composite;
|
||||
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.valueset.AddressUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactSystemEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum;
|
||||
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.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.NameUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.UnitsOfTimeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
import ca.uhn.fhir.model.primitive.BooleanDt;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeDt;
|
||||
import ca.uhn.fhir.model.primitive.CodeDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>Schedule</b> Datatype
|
||||
@ -62,6 +54,13 @@ import ca.uhn.fhir.model.primitive.UriDt;
|
||||
public class ScheduleDt
|
||||
extends BaseElement implements ICompositeDatatype {
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public ScheduleDt() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
|
||||
@Child(name="event", type=PeriodDt.class, order=0, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
@ -118,8 +117,9 @@ public class ScheduleDt
|
||||
* Identifies specific time periods when the event should occur
|
||||
* </p>
|
||||
*/
|
||||
public void setEvent(java.util.List<PeriodDt> theValue) {
|
||||
public ScheduleDt setEvent(java.util.List<PeriodDt> theValue) {
|
||||
myEvent = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -136,6 +136,21 @@ public class ScheduleDt
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>event</b> (When the event occurs),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies specific time periods when the event should occur
|
||||
* </p>
|
||||
*/
|
||||
public PeriodDt getEventFirstRep() {
|
||||
if (getEvent().isEmpty()) {
|
||||
return addEvent();
|
||||
}
|
||||
return getEvent().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>repeat</b> (Only if there is none or one event).
|
||||
@ -162,11 +177,11 @@ public class ScheduleDt
|
||||
* Identifies a repeating pattern to the intended time periods.
|
||||
* </p>
|
||||
*/
|
||||
public void setRepeat(Repeat theValue) {
|
||||
public ScheduleDt setRepeat(Repeat theValue) {
|
||||
myRepeat = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Block class for child element: <b>Schedule.repeat</b> (Only if there is none or one event)
|
||||
@ -262,11 +277,11 @@ public class ScheduleDt
|
||||
* Indicates how often the event should occur.
|
||||
* </p>
|
||||
*/
|
||||
public void setFrequency(IntegerDt theValue) {
|
||||
public Repeat setFrequency(IntegerDt theValue) {
|
||||
myFrequency = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>frequency</b> (Event occurs frequency times per duration)
|
||||
*
|
||||
@ -275,8 +290,9 @@ public class ScheduleDt
|
||||
* Indicates how often the event should occur.
|
||||
* </p>
|
||||
*/
|
||||
public void setFrequency( Integer theInteger) {
|
||||
public Repeat setFrequency( Integer theInteger) {
|
||||
myFrequency = new IntegerDt(theInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -305,11 +321,11 @@ public class ScheduleDt
|
||||
* Identifies the occurrence of daily life that determines timing
|
||||
* </p>
|
||||
*/
|
||||
public void setWhen(BoundCodeDt<EventTimingEnum> theValue) {
|
||||
public Repeat setWhen(BoundCodeDt<EventTimingEnum> theValue) {
|
||||
myWhen = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>when</b> (HS | WAKE | AC | ACM | ACD | ACV | PC | PCM | PCD | PCV - common life events)
|
||||
*
|
||||
@ -318,8 +334,9 @@ public class ScheduleDt
|
||||
* Identifies the occurrence of daily life that determines timing
|
||||
* </p>
|
||||
*/
|
||||
public void setWhen(EventTimingEnum theValue) {
|
||||
public Repeat setWhen(EventTimingEnum theValue) {
|
||||
getWhen().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -348,11 +365,11 @@ public class ScheduleDt
|
||||
* How long each repetition should last
|
||||
* </p>
|
||||
*/
|
||||
public void setDuration(DecimalDt theValue) {
|
||||
public Repeat setDuration(DecimalDt theValue) {
|
||||
myDuration = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>duration</b> (Repeating or event-related duration)
|
||||
*
|
||||
@ -361,8 +378,9 @@ public class ScheduleDt
|
||||
* How long each repetition should last
|
||||
* </p>
|
||||
*/
|
||||
public void setDuration( long theValue) {
|
||||
public Repeat setDuration( long theValue) {
|
||||
myDuration = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -373,8 +391,9 @@ public class ScheduleDt
|
||||
* How long each repetition should last
|
||||
* </p>
|
||||
*/
|
||||
public void setDuration( double theValue) {
|
||||
public Repeat setDuration( double theValue) {
|
||||
myDuration = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -385,8 +404,9 @@ public class ScheduleDt
|
||||
* How long each repetition should last
|
||||
* </p>
|
||||
*/
|
||||
public void setDuration( java.math.BigDecimal theValue) {
|
||||
public Repeat setDuration( java.math.BigDecimal theValue) {
|
||||
myDuration = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -415,11 +435,11 @@ public class ScheduleDt
|
||||
* The units of time for the duration
|
||||
* </p>
|
||||
*/
|
||||
public void setUnits(BoundCodeDt<UnitsOfTimeEnum> theValue) {
|
||||
public Repeat setUnits(BoundCodeDt<UnitsOfTimeEnum> theValue) {
|
||||
myUnits = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>units</b> (s | min | h | d | wk | mo | a - unit of time (UCUM))
|
||||
*
|
||||
@ -428,8 +448,9 @@ public class ScheduleDt
|
||||
* The units of time for the duration
|
||||
* </p>
|
||||
*/
|
||||
public void setUnits(UnitsOfTimeEnum theValue) {
|
||||
public Repeat setUnits(UnitsOfTimeEnum theValue) {
|
||||
getUnits().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -458,11 +479,11 @@ public class ScheduleDt
|
||||
* A total count of the desired number of repetitions
|
||||
* </p>
|
||||
*/
|
||||
public void setCount(IntegerDt theValue) {
|
||||
public Repeat setCount(IntegerDt theValue) {
|
||||
myCount = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>count</b> (Number of times to repeat)
|
||||
*
|
||||
@ -471,8 +492,9 @@ public class ScheduleDt
|
||||
* A total count of the desired number of repetitions
|
||||
* </p>
|
||||
*/
|
||||
public void setCount( Integer theInteger) {
|
||||
public Repeat setCount( Integer theInteger) {
|
||||
myCount = new IntegerDt(theInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -501,11 +523,11 @@ public class ScheduleDt
|
||||
* When to stop repeating the schedule
|
||||
* </p>
|
||||
*/
|
||||
public void setEnd(DateTimeDt theValue) {
|
||||
public Repeat setEnd(DateTimeDt theValue) {
|
||||
myEnd = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>end</b> (When to stop repeats)
|
||||
*
|
||||
@ -514,8 +536,9 @@ public class ScheduleDt
|
||||
* When to stop repeating the schedule
|
||||
* </p>
|
||||
*/
|
||||
public void setEnd( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
public Repeat setEnd( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myEnd = new DateTimeDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -526,8 +549,9 @@ public class ScheduleDt
|
||||
* When to stop repeating the schedule
|
||||
* </p>
|
||||
*/
|
||||
public void setEndWithSecondsPrecision( Date theDate) {
|
||||
public Repeat setEndWithSecondsPrecision( Date theDate) {
|
||||
myEnd = new DateTimeDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -17,111 +17,21 @@
|
||||
package ca.uhn.fhir.model.dstu.resource;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ContactDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Device;
|
||||
import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Group;
|
||||
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Location;
|
||||
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.dstu.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Media;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Medication;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Observation;
|
||||
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.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Patient;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
|
||||
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.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
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.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Substance;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
|
||||
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.dstu.composite.DurationDt;
|
||||
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.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.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
@ -362,8 +272,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 void setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
public Device setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -380,6 +291,21 @@ public class Device extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>identifier</b> (Instance id from manufacturer, owner and others),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* 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 IdentifierDt getIdentifierFirstRep() {
|
||||
if (getIdentifier().isEmpty()) {
|
||||
return addIdentifier();
|
||||
}
|
||||
return getIdentifier().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>type</b> (What kind of device this is).
|
||||
@ -406,11 +332,11 @@ public class Device extends BaseResource implements IResource {
|
||||
* A kind of this device
|
||||
* </p>
|
||||
*/
|
||||
public void setType(CodeableConceptDt theValue) {
|
||||
public Device setType(CodeableConceptDt theValue) {
|
||||
myType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>manufacturer</b> (Name of device manufacturer).
|
||||
@ -437,11 +363,11 @@ public class Device extends BaseResource implements IResource {
|
||||
* A name of the manufacturer
|
||||
* </p>
|
||||
*/
|
||||
public void setManufacturer(StringDt theValue) {
|
||||
public Device setManufacturer(StringDt theValue) {
|
||||
myManufacturer = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>manufacturer</b> (Name of device manufacturer)
|
||||
*
|
||||
@ -450,8 +376,9 @@ public class Device extends BaseResource implements IResource {
|
||||
* A name of the manufacturer
|
||||
* </p>
|
||||
*/
|
||||
public void setManufacturer( String theString) {
|
||||
public Device setManufacturer( String theString) {
|
||||
myManufacturer = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -480,11 +407,11 @@ public class Device extends BaseResource implements IResource {
|
||||
* The \"model\" - an identifier assigned by the manufacturer to identify the product by its type. This number is shared by the all devices sold as the same type
|
||||
* </p>
|
||||
*/
|
||||
public void setModel(StringDt theValue) {
|
||||
public Device setModel(StringDt theValue) {
|
||||
myModel = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>model</b> (Model id assigned by the manufacturer)
|
||||
*
|
||||
@ -493,8 +420,9 @@ public class Device extends BaseResource implements IResource {
|
||||
* The \"model\" - an identifier assigned by the manufacturer to identify the product by its type. This number is shared by the all devices sold as the same type
|
||||
* </p>
|
||||
*/
|
||||
public void setModel( String theString) {
|
||||
public Device setModel( String theString) {
|
||||
myModel = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -523,11 +451,11 @@ public class Device extends BaseResource implements IResource {
|
||||
* The version of the device, if the device has multiple releases under the same model, or if the device is software or carries firmware
|
||||
* </p>
|
||||
*/
|
||||
public void setVersion(StringDt theValue) {
|
||||
public Device setVersion(StringDt theValue) {
|
||||
myVersion = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>version</b> (Version number (i.e. software))
|
||||
*
|
||||
@ -536,8 +464,9 @@ public class Device extends BaseResource implements IResource {
|
||||
* The version of the device, if the device has multiple releases under the same model, or if the device is software or carries firmware
|
||||
* </p>
|
||||
*/
|
||||
public void setVersion( String theString) {
|
||||
public Device setVersion( String theString) {
|
||||
myVersion = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -566,11 +495,11 @@ public class Device extends BaseResource implements IResource {
|
||||
* Date of expiry of this device (if applicable)
|
||||
* </p>
|
||||
*/
|
||||
public void setExpiry(DateDt theValue) {
|
||||
public Device setExpiry(DateDt theValue) {
|
||||
myExpiry = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>expiry</b> (Date of expiry of this device (if applicable))
|
||||
*
|
||||
@ -579,8 +508,9 @@ 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 Device setExpiry( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myExpiry = new DateDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -591,8 +521,9 @@ 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 Device setExpiryWithDayPrecision( Date theDate) {
|
||||
myExpiry = new DateDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -621,11 +552,11 @@ public class Device extends BaseResource implements IResource {
|
||||
* FDA Mandated Unique Device Identifier. Use the human readable information (the content that the user sees, which is sometimes different to the exact syntax represented in the barcode) - see http://www.fda.gov/MedicalDevices/DeviceRegulationandGuidance/UniqueDeviceIdentification/default.htm
|
||||
* </p>
|
||||
*/
|
||||
public void setUdi(StringDt theValue) {
|
||||
public Device setUdi(StringDt theValue) {
|
||||
myUdi = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>udi</b> (FDA Mandated Unique Device Identifier)
|
||||
*
|
||||
@ -634,8 +565,9 @@ public class Device extends BaseResource implements IResource {
|
||||
* FDA Mandated Unique Device Identifier. Use the human readable information (the content that the user sees, which is sometimes different to the exact syntax represented in the barcode) - see http://www.fda.gov/MedicalDevices/DeviceRegulationandGuidance/UniqueDeviceIdentification/default.htm
|
||||
* </p>
|
||||
*/
|
||||
public void setUdi( String theString) {
|
||||
public Device setUdi( String theString) {
|
||||
myUdi = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -664,11 +596,11 @@ public class Device extends BaseResource implements IResource {
|
||||
* Lot number assigned by the manufacturer
|
||||
* </p>
|
||||
*/
|
||||
public void setLotNumber(StringDt theValue) {
|
||||
public Device setLotNumber(StringDt theValue) {
|
||||
myLotNumber = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>lotNumber</b> (Lot number of manufacture)
|
||||
*
|
||||
@ -677,8 +609,9 @@ public class Device extends BaseResource implements IResource {
|
||||
* Lot number assigned by the manufacturer
|
||||
* </p>
|
||||
*/
|
||||
public void setLotNumber( String theString) {
|
||||
public Device setLotNumber( String theString) {
|
||||
myLotNumber = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -707,11 +640,11 @@ public class Device extends BaseResource implements IResource {
|
||||
* An organization that is responsible for the provision and ongoing maintenance of the device
|
||||
* </p>
|
||||
*/
|
||||
public void setOwner(ResourceReferenceDt theValue) {
|
||||
public Device setOwner(ResourceReferenceDt theValue) {
|
||||
myOwner = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>location</b> (Where the resource is found).
|
||||
@ -738,11 +671,11 @@ public class Device extends BaseResource implements IResource {
|
||||
* The resource may be found in a literal location (i.e. GPS coordinates), a logical place (i.e. \"in/with the patient\"), or a coded location
|
||||
* </p>
|
||||
*/
|
||||
public void setLocation(ResourceReferenceDt theValue) {
|
||||
public Device setLocation(ResourceReferenceDt theValue) {
|
||||
myLocation = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>patient</b> (If the resource is affixed to a person).
|
||||
@ -769,11 +702,11 @@ public class Device extends BaseResource implements IResource {
|
||||
* Patient information, if the resource is affixed to a person
|
||||
* </p>
|
||||
*/
|
||||
public void setPatient(ResourceReferenceDt theValue) {
|
||||
public Device setPatient(ResourceReferenceDt theValue) {
|
||||
myPatient = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>contact</b> (Details for human/organization for support).
|
||||
@ -800,8 +733,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 void setContact(java.util.List<ContactDt> theValue) {
|
||||
public Device setContact(java.util.List<ContactDt> theValue) {
|
||||
myContact = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -818,6 +752,21 @@ public class Device extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>contact</b> (Details for human/organization for support),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Contact details for an organization or a particular human that is responsible for the device
|
||||
* </p>
|
||||
*/
|
||||
public ContactDt getContactFirstRep() {
|
||||
if (getContact().isEmpty()) {
|
||||
return addContact();
|
||||
}
|
||||
return getContact().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>url</b> (Network address to contact device).
|
||||
@ -844,11 +793,11 @@ public class Device extends BaseResource implements IResource {
|
||||
* A network address on which the device may be contacted directly
|
||||
* </p>
|
||||
*/
|
||||
public void setUrl(UriDt theValue) {
|
||||
public Device setUrl(UriDt theValue) {
|
||||
myUrl = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>url</b> (Network address to contact device)
|
||||
*
|
||||
@ -857,8 +806,9 @@ public class Device extends BaseResource implements IResource {
|
||||
* A network address on which the device may be contacted directly
|
||||
* </p>
|
||||
*/
|
||||
public void setUrl( String theUri) {
|
||||
public Device setUrl( String theUri) {
|
||||
myUrl = new UriDt(theUri);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
@ -17,113 +17,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 java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
|
||||
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.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ContactDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Device;
|
||||
import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Group;
|
||||
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Location;
|
||||
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.dstu.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Media;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Medication;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Observation;
|
||||
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.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Patient;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
|
||||
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.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
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.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Substance;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dstu.composite.DurationDt;
|
||||
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.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
@ -423,11 +338,11 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans)
|
||||
* </p>
|
||||
*/
|
||||
public void setSubject(ResourceReferenceDt theValue) {
|
||||
public DiagnosticOrder setSubject(ResourceReferenceDt theValue) {
|
||||
mySubject = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>orderer</b> (Who ordered the test).
|
||||
@ -454,11 +369,11 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* The practitioner that holds legal responsibility for ordering the investigation
|
||||
* </p>
|
||||
*/
|
||||
public void setOrderer(ResourceReferenceDt theValue) {
|
||||
public DiagnosticOrder setOrderer(ResourceReferenceDt theValue) {
|
||||
myOrderer = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>identifier</b> (Identifiers assigned to this order).
|
||||
@ -485,8 +400,9 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* Identifiers assigned to this order by the order or by the receiver
|
||||
* </p>
|
||||
*/
|
||||
public void setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
public DiagnosticOrder setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -503,6 +419,21 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>identifier</b> (Identifiers assigned to this order),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifiers assigned to this order by the order or by the receiver
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt getIdentifierFirstRep() {
|
||||
if (getIdentifier().isEmpty()) {
|
||||
return addIdentifier();
|
||||
}
|
||||
return getIdentifier().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>encounter</b> (The encounter that this diagnostic order is associated with).
|
||||
@ -529,11 +460,11 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* An encounter that provides additional informaton about the healthcare context in which this request is made
|
||||
* </p>
|
||||
*/
|
||||
public void setEncounter(ResourceReferenceDt theValue) {
|
||||
public DiagnosticOrder setEncounter(ResourceReferenceDt theValue) {
|
||||
myEncounter = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>clinicalNotes</b> (Explanation/Justification for test).
|
||||
@ -560,11 +491,11 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* An explanation or justification for why this diagnostic investigation is being requested
|
||||
* </p>
|
||||
*/
|
||||
public void setClinicalNotes(StringDt theValue) {
|
||||
public DiagnosticOrder setClinicalNotes(StringDt theValue) {
|
||||
myClinicalNotes = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>clinicalNotes</b> (Explanation/Justification for test)
|
||||
*
|
||||
@ -573,8 +504,9 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* An explanation or justification for why this diagnostic investigation is being requested
|
||||
* </p>
|
||||
*/
|
||||
public void setClinicalNotes( String theString) {
|
||||
public DiagnosticOrder setClinicalNotes( String theString) {
|
||||
myClinicalNotes = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -603,11 +535,24 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* One or more specimens that the diagnostic investigation is about
|
||||
* </p>
|
||||
*/
|
||||
public void setSpecimen(java.util.List<ResourceReferenceDt> theValue) {
|
||||
public DiagnosticOrder setSpecimen(java.util.List<ResourceReferenceDt> theValue) {
|
||||
mySpecimen = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>specimen</b> (If the whole order relates to specific specimens)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* One or more specimens that the diagnostic investigation is about
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt addSpecimen() {
|
||||
ResourceReferenceDt newType = new ResourceReferenceDt();
|
||||
getSpecimen().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>status</b> (requested | received | accepted | in progress | review | completed | suspended | rejected | failed).
|
||||
@ -634,11 +579,11 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* The status of the order
|
||||
* </p>
|
||||
*/
|
||||
public void setStatus(BoundCodeDt<DiagnosticOrderStatusEnum> theValue) {
|
||||
public DiagnosticOrder setStatus(BoundCodeDt<DiagnosticOrderStatusEnum> theValue) {
|
||||
myStatus = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>status</b> (requested | received | accepted | in progress | review | completed | suspended | rejected | failed)
|
||||
*
|
||||
@ -647,8 +592,9 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* The status of the order
|
||||
* </p>
|
||||
*/
|
||||
public void setStatus(DiagnosticOrderStatusEnum theValue) {
|
||||
public DiagnosticOrder setStatus(DiagnosticOrderStatusEnum theValue) {
|
||||
getStatus().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -677,11 +623,11 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* The clinical priority associated with this order
|
||||
* </p>
|
||||
*/
|
||||
public void setPriority(BoundCodeDt<DiagnosticOrderPriorityEnum> theValue) {
|
||||
public DiagnosticOrder setPriority(BoundCodeDt<DiagnosticOrderPriorityEnum> theValue) {
|
||||
myPriority = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>priority</b> (routine | urgent | stat | asap)
|
||||
*
|
||||
@ -690,8 +636,9 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* The clinical priority associated with this order
|
||||
* </p>
|
||||
*/
|
||||
public void setPriority(DiagnosticOrderPriorityEnum theValue) {
|
||||
public DiagnosticOrder setPriority(DiagnosticOrderPriorityEnum theValue) {
|
||||
getPriority().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -720,8 +667,9 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* A summary of the events of interest that have occurred as the request is processed. E.g. when the order was made, various processing steps (specimens received), when it was completed
|
||||
* </p>
|
||||
*/
|
||||
public void setEvent(java.util.List<Event> theValue) {
|
||||
public DiagnosticOrder setEvent(java.util.List<Event> theValue) {
|
||||
myEvent = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -738,6 +686,21 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>event</b> (A list of events of interest in the lifecycle),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A summary of the events of interest that have occurred as the request is processed. E.g. when the order was made, various processing steps (specimens received), when it was completed
|
||||
* </p>
|
||||
*/
|
||||
public Event getEventFirstRep() {
|
||||
if (getEvent().isEmpty()) {
|
||||
return addEvent();
|
||||
}
|
||||
return getEvent().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>item</b> (The items the orderer requested).
|
||||
@ -764,8 +727,9 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* The specific diagnostic investigations that are requested as part of this request. Sometimes, there can only be one item per request, but in most contexts, more than one investigation can be requested
|
||||
* </p>
|
||||
*/
|
||||
public void setItem(java.util.List<Item> theValue) {
|
||||
public DiagnosticOrder setItem(java.util.List<Item> theValue) {
|
||||
myItem = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -782,6 +746,21 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>item</b> (The items the orderer requested),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The specific diagnostic investigations that are requested as part of this request. Sometimes, there can only be one item per request, but in most contexts, more than one investigation can be requested
|
||||
* </p>
|
||||
*/
|
||||
public Item getItemFirstRep() {
|
||||
if (getItem().isEmpty()) {
|
||||
return addItem();
|
||||
}
|
||||
return getItem().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Block class for child element: <b>DiagnosticOrder.event</b> (A list of events of interest in the lifecycle)
|
||||
@ -866,11 +845,11 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* The status for the event
|
||||
* </p>
|
||||
*/
|
||||
public void setStatus(BoundCodeDt<DiagnosticOrderStatusEnum> theValue) {
|
||||
public Event setStatus(BoundCodeDt<DiagnosticOrderStatusEnum> theValue) {
|
||||
myStatus = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>status</b> (requested | received | accepted | in progress | review | completed | suspended | rejected | failed)
|
||||
*
|
||||
@ -879,8 +858,9 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* The status for the event
|
||||
* </p>
|
||||
*/
|
||||
public void setStatus(DiagnosticOrderStatusEnum theValue) {
|
||||
public Event setStatus(DiagnosticOrderStatusEnum theValue) {
|
||||
getStatus().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -909,11 +889,11 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* Additional information about the event that occurred - e.g. if the status remained unchanged
|
||||
* </p>
|
||||
*/
|
||||
public void setDescription(CodeableConceptDt theValue) {
|
||||
public Event setDescription(CodeableConceptDt theValue) {
|
||||
myDescription = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>dateTime</b> (The date at which the event happened).
|
||||
@ -940,11 +920,11 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* The date/time at which the event occurred
|
||||
* </p>
|
||||
*/
|
||||
public void setDateTime(DateTimeDt theValue) {
|
||||
public Event setDateTime(DateTimeDt theValue) {
|
||||
myDateTime = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>dateTime</b> (The date at which the event happened)
|
||||
*
|
||||
@ -953,8 +933,9 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* The date/time at which the event occurred
|
||||
* </p>
|
||||
*/
|
||||
public void setDateTime( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
public Event setDateTime( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myDateTime = new DateTimeDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -965,8 +946,9 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* The date/time at which the event occurred
|
||||
* </p>
|
||||
*/
|
||||
public void setDateTimeWithSecondsPrecision( Date theDate) {
|
||||
public Event setDateTimeWithSecondsPrecision( Date theDate) {
|
||||
myDateTime = new DateTimeDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -992,11 +974,11 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* The person who was responsible for performing or recording the action
|
||||
* </p>
|
||||
*/
|
||||
public void setActor(ResourceReferenceDt theValue) {
|
||||
public Event setActor(ResourceReferenceDt theValue) {
|
||||
myActor = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -1091,11 +1073,11 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* A code that identifies a particular diagnostic investigation, or panel of investigations, that have been requested
|
||||
* </p>
|
||||
*/
|
||||
public void setCode(CodeableConceptDt theValue) {
|
||||
public Item setCode(CodeableConceptDt theValue) {
|
||||
myCode = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>specimen</b> (If this item relates to specific specimens).
|
||||
@ -1122,11 +1104,24 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* If the item is related to a specific speciment
|
||||
* </p>
|
||||
*/
|
||||
public void setSpecimen(java.util.List<ResourceReferenceDt> theValue) {
|
||||
public Item setSpecimen(java.util.List<ResourceReferenceDt> theValue) {
|
||||
mySpecimen = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>specimen</b> (If this item relates to specific specimens)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* If the item is related to a specific speciment
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt addSpecimen() {
|
||||
ResourceReferenceDt newType = new ResourceReferenceDt();
|
||||
getSpecimen().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>bodySite</b> (Location of requested test (if applicable)).
|
||||
@ -1153,11 +1148,11 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* Anatomical location where the request test should be performed
|
||||
* </p>
|
||||
*/
|
||||
public void setBodySite(CodeableConceptDt theValue) {
|
||||
public Item setBodySite(CodeableConceptDt theValue) {
|
||||
myBodySite = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>status</b> (requested | received | accepted | in progress | review | completed | suspended | rejected | failed).
|
||||
@ -1184,11 +1179,11 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* The status of this individual item within the order
|
||||
* </p>
|
||||
*/
|
||||
public void setStatus(BoundCodeDt<DiagnosticOrderStatusEnum> theValue) {
|
||||
public Item setStatus(BoundCodeDt<DiagnosticOrderStatusEnum> theValue) {
|
||||
myStatus = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>status</b> (requested | received | accepted | in progress | review | completed | suspended | rejected | failed)
|
||||
*
|
||||
@ -1197,8 +1192,9 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* The status of this individual item within the order
|
||||
* </p>
|
||||
*/
|
||||
public void setStatus(DiagnosticOrderStatusEnum theValue) {
|
||||
public Item setStatus(DiagnosticOrderStatusEnum theValue) {
|
||||
getStatus().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1227,8 +1223,9 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
* A summary of the events of interest that have occurred as this item of the request is processed
|
||||
* </p>
|
||||
*/
|
||||
public void setEvent(java.util.List<Event> theValue) {
|
||||
public Item setEvent(java.util.List<Event> theValue) {
|
||||
myEvent = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1245,6 +1242,21 @@ public class DiagnosticOrder extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>event</b> (Events specific to this item),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A summary of the events of interest that have occurred as this item of the request is processed
|
||||
* </p>
|
||||
*/
|
||||
public Event getEventFirstRep() {
|
||||
if (getEvent().isEmpty()) {
|
||||
return addEvent();
|
||||
}
|
||||
return getEvent().get(0);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,113 +17,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 java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ContactDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Device;
|
||||
import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Group;
|
||||
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Location;
|
||||
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.dstu.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Media;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Medication;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Observation;
|
||||
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.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Patient;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
|
||||
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.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
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.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Substance;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
|
||||
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.dstu.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
import ca.uhn.fhir.model.primitive.BooleanDt;
|
||||
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.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
|
||||
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.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
@ -296,10 +213,10 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
private DateTimeDt myIssued;
|
||||
|
||||
@Child(name="subject", order=3, min=1, 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="The subject of the report, usually, but not always, the patient",
|
||||
@ -308,8 +225,8 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
private ResourceReferenceDt mySubject;
|
||||
|
||||
@Child(name="performer", order=4, min=1, max=1, type={
|
||||
Practitioner.class,
|
||||
Organization.class,
|
||||
ca.uhn.fhir.model.dstu.resource.Practitioner.class,
|
||||
ca.uhn.fhir.model.dstu.resource.Organization.class,
|
||||
})
|
||||
@Description(
|
||||
shortDefinition="Responsible Diagnostic Service",
|
||||
@ -325,7 +242,7 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
private IdentifierDt myIdentifier;
|
||||
|
||||
@Child(name="requestDetail", order=6, min=0, max=Child.MAX_UNLIMITED, type={
|
||||
DiagnosticOrder.class,
|
||||
ca.uhn.fhir.model.dstu.resource.DiagnosticOrder.class,
|
||||
})
|
||||
@Description(
|
||||
shortDefinition="What was requested",
|
||||
@ -351,7 +268,7 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
private IDatatype myDiagnostic;
|
||||
|
||||
@Child(name="specimen", order=9, min=0, max=Child.MAX_UNLIMITED, type={
|
||||
Specimen.class,
|
||||
ca.uhn.fhir.model.dstu.resource.Specimen.class,
|
||||
})
|
||||
@Description(
|
||||
shortDefinition="Specimens this report is based on",
|
||||
@ -360,7 +277,7 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
private java.util.List<ResourceReferenceDt> mySpecimen;
|
||||
|
||||
@Child(name="result", order=10, min=0, max=Child.MAX_UNLIMITED, type={
|
||||
Observation.class,
|
||||
ca.uhn.fhir.model.dstu.resource.Observation.class,
|
||||
})
|
||||
@Description(
|
||||
shortDefinition="Observations - simple, or complex nested groups",
|
||||
@ -369,7 +286,7 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
private java.util.List<ResourceReferenceDt> myResult;
|
||||
|
||||
@Child(name="imagingStudy", order=11, min=0, max=Child.MAX_UNLIMITED, type={
|
||||
ImagingStudy.class,
|
||||
ca.uhn.fhir.model.dstu.resource.ImagingStudy.class,
|
||||
})
|
||||
@Description(
|
||||
shortDefinition="Reference to full details of imaging associated with the diagnostic report",
|
||||
@ -446,8 +363,9 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
* A code or name that describes this diagnostic report
|
||||
* </p>
|
||||
*/
|
||||
public void setName(CodeableConceptDt theValue) {
|
||||
public DiagnosticReport setName(CodeableConceptDt theValue) {
|
||||
myName = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -476,8 +394,9 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
* The status of the diagnostic report as a whole
|
||||
* </p>
|
||||
*/
|
||||
public void setStatus(BoundCodeDt<DiagnosticReportStatusEnum> theValue) {
|
||||
public DiagnosticReport setStatus(BoundCodeDt<DiagnosticReportStatusEnum> theValue) {
|
||||
myStatus = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -488,8 +407,9 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
* The status of the diagnostic report as a whole
|
||||
* </p>
|
||||
*/
|
||||
public void setStatus(DiagnosticReportStatusEnum theValue) {
|
||||
public DiagnosticReport setStatus(DiagnosticReportStatusEnum theValue) {
|
||||
getStatus().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -518,8 +438,9 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
* The date and/or time that this version of the report was released from the source diagnostic service
|
||||
* </p>
|
||||
*/
|
||||
public void setIssued(DateTimeDt theValue) {
|
||||
public DiagnosticReport setIssued(DateTimeDt theValue) {
|
||||
myIssued = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -530,8 +451,9 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
* The date and/or time that this version of the report was released from the source diagnostic service
|
||||
* </p>
|
||||
*/
|
||||
public void setIssuedWithSecondsPrecision( Date theDate) {
|
||||
myIssued = new DateTimeDt(theDate);
|
||||
public DiagnosticReport setIssued( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myIssued = new DateTimeDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -542,8 +464,9 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
* The date and/or time that this version of the report was released from the source diagnostic service
|
||||
* </p>
|
||||
*/
|
||||
public void setIssued( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myIssued = new DateTimeDt(theDate, thePrecision);
|
||||
public DiagnosticReport setIssuedWithSecondsPrecision( Date theDate) {
|
||||
myIssued = new DateTimeDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -569,8 +492,9 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
* The subject of the report. Usually, but not always, this is a patient. However diagnostic services also perform analyses on specimens collected from a variety of other sources
|
||||
* </p>
|
||||
*/
|
||||
public void setSubject(ResourceReferenceDt theValue) {
|
||||
public DiagnosticReport setSubject(ResourceReferenceDt theValue) {
|
||||
mySubject = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -596,8 +520,9 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
* The diagnostic service that is responsible for issuing the report
|
||||
* </p>
|
||||
*/
|
||||
public void setPerformer(ResourceReferenceDt theValue) {
|
||||
public DiagnosticReport setPerformer(ResourceReferenceDt theValue) {
|
||||
myPerformer = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -626,8 +551,9 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
* The local ID assigned to the report by the order filler, usually by the Information System of the diagnostic service provider
|
||||
* </p>
|
||||
*/
|
||||
public void setIdentifier(IdentifierDt theValue) {
|
||||
public DiagnosticReport setIdentifier(IdentifierDt theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -656,8 +582,9 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
* Details concerning a test requested.
|
||||
* </p>
|
||||
*/
|
||||
public void setRequestDetail(java.util.List<ResourceReferenceDt> theValue) {
|
||||
public DiagnosticReport setRequestDetail(java.util.List<ResourceReferenceDt> theValue) {
|
||||
myRequestDetail = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -699,8 +626,9 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
* The section of the diagnostic service that performs the examination e.g. biochemistry, hematology, MRI
|
||||
* </p>
|
||||
*/
|
||||
public void setServiceCategory(CodeableConceptDt theValue) {
|
||||
public DiagnosticReport setServiceCategory(CodeableConceptDt theValue) {
|
||||
myServiceCategory = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -726,8 +654,9 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
* The time or time-period the observed values are related to. This is usually either the time of the procedure or of specimen collection(s), but very often the source of the date/time is not known, only the date/time itself
|
||||
* </p>
|
||||
*/
|
||||
public void setDiagnostic(IDatatype theValue) {
|
||||
public DiagnosticReport setDiagnostic(IDatatype theValue) {
|
||||
myDiagnostic = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -756,8 +685,9 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
* Details about the specimens on which this Disagnostic report is based
|
||||
* </p>
|
||||
*/
|
||||
public void setSpecimen(java.util.List<ResourceReferenceDt> theValue) {
|
||||
public DiagnosticReport setSpecimen(java.util.List<ResourceReferenceDt> theValue) {
|
||||
mySpecimen = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -799,8 +729,9 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
* Observations that are part of this diagnostic report. Observations can be simple name/value pairs (e.g. \"atomic\" results), or they can be grouping observations that include references to other members of the group (e.g. \"panels\")
|
||||
* </p>
|
||||
*/
|
||||
public void setResult(java.util.List<ResourceReferenceDt> theValue) {
|
||||
public DiagnosticReport setResult(java.util.List<ResourceReferenceDt> theValue) {
|
||||
myResult = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -842,8 +773,9 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
* One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images
|
||||
* </p>
|
||||
*/
|
||||
public void setImagingStudy(java.util.List<ResourceReferenceDt> theValue) {
|
||||
public DiagnosticReport setImagingStudy(java.util.List<ResourceReferenceDt> theValue) {
|
||||
myImagingStudy = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -885,8 +817,9 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
* A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest)
|
||||
* </p>
|
||||
*/
|
||||
public void setImage(java.util.List<Image> theValue) {
|
||||
public DiagnosticReport setImage(java.util.List<Image> theValue) {
|
||||
myImage = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -902,6 +835,22 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
getImage().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>image</b> (Key images associated with this report),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest)
|
||||
* </p>
|
||||
*/
|
||||
public Image getImageFirstRep() {
|
||||
if (getImage().isEmpty()) {
|
||||
return addImage();
|
||||
}
|
||||
return getImage().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>conclusion</b> (Clinical Interpretation of test results).
|
||||
@ -928,8 +877,9 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
* Concise and clinically contextualized narrative interpretation of the diagnostic report
|
||||
* </p>
|
||||
*/
|
||||
public void setConclusion(StringDt theValue) {
|
||||
public DiagnosticReport setConclusion(StringDt theValue) {
|
||||
myConclusion = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -940,8 +890,9 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
* Concise and clinically contextualized narrative interpretation of the diagnostic report
|
||||
* </p>
|
||||
*/
|
||||
public void setConclusion( String theString) {
|
||||
public DiagnosticReport setConclusion( String theString) {
|
||||
myConclusion = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -970,8 +921,9 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setCodedDiagnosis(java.util.List<CodeableConceptDt> theValue) {
|
||||
public DiagnosticReport setCodedDiagnosis(java.util.List<CodeableConceptDt> theValue) {
|
||||
myCodedDiagnosis = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -987,6 +939,22 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
getCodedDiagnosis().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>codedDiagnosis</b> (Codes for the conclusion),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public CodeableConceptDt getCodedDiagnosisFirstRep() {
|
||||
if (getCodedDiagnosis().isEmpty()) {
|
||||
return addCodedDiagnosis();
|
||||
}
|
||||
return getCodedDiagnosis().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>presentedForm</b> (Entire Report as issued).
|
||||
@ -1013,8 +981,9 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
* Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent.
|
||||
* </p>
|
||||
*/
|
||||
public void setPresentedForm(java.util.List<AttachmentDt> theValue) {
|
||||
public DiagnosticReport setPresentedForm(java.util.List<AttachmentDt> theValue) {
|
||||
myPresentedForm = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1030,6 +999,22 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
getPresentedForm().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>presentedForm</b> (Entire Report as issued),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent.
|
||||
* </p>
|
||||
*/
|
||||
public AttachmentDt getPresentedFormFirstRep() {
|
||||
if (getPresentedForm().isEmpty()) {
|
||||
return addPresentedForm();
|
||||
}
|
||||
return getPresentedForm().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Block class for child element: <b>DiagnosticReport.image</b> (Key images associated with this report)
|
||||
@ -1050,7 +1035,7 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
private StringDt myComment;
|
||||
|
||||
@Child(name="link", order=1, min=1, max=1, type={
|
||||
Media.class,
|
||||
ca.uhn.fhir.model.dstu.resource.Media.class,
|
||||
})
|
||||
@Description(
|
||||
shortDefinition="Reference to the image source",
|
||||
@ -1099,8 +1084,9 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
* A comment about the image. Typically, this is used to provide an explanation for why the image is included, or to draw the viewer's attention to important features
|
||||
* </p>
|
||||
*/
|
||||
public void setComment(StringDt theValue) {
|
||||
public Image setComment(StringDt theValue) {
|
||||
myComment = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1111,8 +1097,9 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
* A comment about the image. Typically, this is used to provide an explanation for why the image is included, or to draw the viewer's attention to important features
|
||||
* </p>
|
||||
*/
|
||||
public void setComment( String theString) {
|
||||
public Image setComment( String theString) {
|
||||
myComment = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1141,8 +1128,9 @@ public class DiagnosticReport extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setLink(ResourceReferenceDt theValue) {
|
||||
public Image setLink(ResourceReferenceDt theValue) {
|
||||
myLink = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
@ -17,113 +17,32 @@
|
||||
package ca.uhn.fhir.model.dstu.resource;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
|
||||
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.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ContactDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Device;
|
||||
import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dstu.composite.DurationDt;
|
||||
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.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Group;
|
||||
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Location;
|
||||
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.dstu.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Media;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Medication;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Observation;
|
||||
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.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Patient;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
|
||||
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.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
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.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Substance;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dstu.composite.DurationDt;
|
||||
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.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
@ -388,8 +307,9 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
public Encounter setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -406,6 +326,21 @@ public class Encounter extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>identifier</b> (Identifier(s) by which this encounter is known),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt getIdentifierFirstRep() {
|
||||
if (getIdentifier().isEmpty()) {
|
||||
return addIdentifier();
|
||||
}
|
||||
return getIdentifier().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>status</b> (planned | in progress | onleave | finished | cancelled).
|
||||
@ -432,11 +367,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setStatus(BoundCodeDt<EncounterStateEnum> theValue) {
|
||||
public Encounter setStatus(BoundCodeDt<EncounterStateEnum> theValue) {
|
||||
myStatus = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>status</b> (planned | in progress | onleave | finished | cancelled)
|
||||
*
|
||||
@ -445,8 +380,9 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setStatus(EncounterStateEnum theValue) {
|
||||
public Encounter setStatus(EncounterStateEnum theValue) {
|
||||
getStatus().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -475,11 +411,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setClassElement(BoundCodeDt<EncounterClassEnum> theValue) {
|
||||
public Encounter setClassElement(BoundCodeDt<EncounterClassEnum> theValue) {
|
||||
myClassElement = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>class</b> (inpatient | outpatient | ambulatory | emergency +)
|
||||
*
|
||||
@ -488,8 +424,9 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setClassElement(EncounterClassEnum theValue) {
|
||||
public Encounter setClassElement(EncounterClassEnum theValue) {
|
||||
getClassElement().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -518,11 +455,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
* Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation)
|
||||
* </p>
|
||||
*/
|
||||
public void setType(java.util.List<BoundCodeableConceptDt<EncounterTypeEnum>> theValue) {
|
||||
public Encounter setType(java.util.List<BoundCodeableConceptDt<EncounterTypeEnum>> theValue) {
|
||||
myType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add a value for <b>type</b> (Specific type of encounter)
|
||||
*
|
||||
@ -543,9 +480,10 @@ public class Encounter extends BaseResource implements IResource {
|
||||
* Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation)
|
||||
* </p>
|
||||
*/
|
||||
public void setType(EncounterTypeEnum theValue) {
|
||||
public Encounter setType(EncounterTypeEnum theValue) {
|
||||
getType().clear();
|
||||
addType(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -574,11 +512,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setSubject(ResourceReferenceDt theValue) {
|
||||
public Encounter setSubject(ResourceReferenceDt theValue) {
|
||||
mySubject = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>participant</b> (List of participants involved in the encounter).
|
||||
@ -605,8 +543,9 @@ public class Encounter extends BaseResource implements IResource {
|
||||
* The main practitioner responsible for providing the service
|
||||
* </p>
|
||||
*/
|
||||
public void setParticipant(java.util.List<Participant> theValue) {
|
||||
public Encounter setParticipant(java.util.List<Participant> theValue) {
|
||||
myParticipant = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -623,6 +562,21 @@ public class Encounter extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>participant</b> (List of participants involved in the encounter),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The main practitioner responsible for providing the service
|
||||
* </p>
|
||||
*/
|
||||
public Participant getParticipantFirstRep() {
|
||||
if (getParticipant().isEmpty()) {
|
||||
return addParticipant();
|
||||
}
|
||||
return getParticipant().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>period</b> (The start and end time of the encounter).
|
||||
@ -649,11 +603,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
* The start and end time of the encounter
|
||||
* </p>
|
||||
*/
|
||||
public void setPeriod(PeriodDt theValue) {
|
||||
public Encounter setPeriod(PeriodDt theValue) {
|
||||
myPeriod = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>length</b> (Quantity of time the encounter lasted).
|
||||
@ -680,11 +634,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
* Quantity of time the encounter lasted. This excludes the time during leaves of absence.
|
||||
* </p>
|
||||
*/
|
||||
public void setLength(DurationDt theValue) {
|
||||
public Encounter setLength(DurationDt theValue) {
|
||||
myLength = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>reason</b> (Reason the encounter takes place (code)).
|
||||
@ -711,11 +665,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
* Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis.
|
||||
* </p>
|
||||
*/
|
||||
public void setReason(BoundCodeableConceptDt<EncounterReasonCodesEnum> theValue) {
|
||||
public Encounter setReason(BoundCodeableConceptDt<EncounterReasonCodesEnum> theValue) {
|
||||
myReason = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>reason</b> (Reason the encounter takes place (code))
|
||||
*
|
||||
@ -724,8 +678,9 @@ public class Encounter extends BaseResource implements IResource {
|
||||
* Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis.
|
||||
* </p>
|
||||
*/
|
||||
public void setReason(EncounterReasonCodesEnum theValue) {
|
||||
public Encounter setReason(EncounterReasonCodesEnum theValue) {
|
||||
getReason().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -754,11 +709,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
* Reason the encounter takes place, as specified using information from another resource. For admissions, this is the admission diagnosis.
|
||||
* </p>
|
||||
*/
|
||||
public void setIndication(ResourceReferenceDt theValue) {
|
||||
public Encounter setIndication(ResourceReferenceDt theValue) {
|
||||
myIndication = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>priority</b> (Indicates the urgency of the encounter).
|
||||
@ -785,11 +740,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setPriority(CodeableConceptDt theValue) {
|
||||
public Encounter setPriority(CodeableConceptDt theValue) {
|
||||
myPriority = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>hospitalization</b> (Details about an admission to a clinic).
|
||||
@ -816,11 +771,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
* Details about an admission to a clinic
|
||||
* </p>
|
||||
*/
|
||||
public void setHospitalization(Hospitalization theValue) {
|
||||
public Encounter setHospitalization(Hospitalization theValue) {
|
||||
myHospitalization = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>location</b> (List of locations the patient has been at).
|
||||
@ -847,8 +802,9 @@ public class Encounter extends BaseResource implements IResource {
|
||||
* List of locations at which the patient has been
|
||||
* </p>
|
||||
*/
|
||||
public void setLocation(java.util.List<Location> theValue) {
|
||||
public Encounter setLocation(java.util.List<Location> theValue) {
|
||||
myLocation = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -865,6 +821,21 @@ public class Encounter extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>location</b> (List of locations the patient has been at),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* List of locations at which the patient has been
|
||||
* </p>
|
||||
*/
|
||||
public Location getLocationFirstRep() {
|
||||
if (getLocation().isEmpty()) {
|
||||
return addLocation();
|
||||
}
|
||||
return getLocation().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>serviceProvider</b> (Department or team providing care).
|
||||
@ -891,11 +862,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setServiceProvider(ResourceReferenceDt theValue) {
|
||||
public Encounter setServiceProvider(ResourceReferenceDt theValue) {
|
||||
myServiceProvider = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>partOf</b> (Another Encounter this encounter is part of).
|
||||
@ -922,11 +893,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
* Another Encounter of which this encounter is a part of (administratively or in time).
|
||||
* </p>
|
||||
*/
|
||||
public void setPartOf(ResourceReferenceDt theValue) {
|
||||
public Encounter setPartOf(ResourceReferenceDt theValue) {
|
||||
myPartOf = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Block class for child element: <b>Encounter.participant</b> (List of participants involved in the encounter)
|
||||
@ -997,11 +968,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setType(java.util.List<BoundCodeableConceptDt<ParticipantTypeEnum>> theValue) {
|
||||
public Participant setType(java.util.List<BoundCodeableConceptDt<ParticipantTypeEnum>> theValue) {
|
||||
myType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add a value for <b>type</b> (Role of participant in encounter)
|
||||
*
|
||||
@ -1022,9 +993,10 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setType(ParticipantTypeEnum theValue) {
|
||||
public Participant setType(ParticipantTypeEnum theValue) {
|
||||
getType().clear();
|
||||
addType(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1050,11 +1022,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setIndividual(ResourceReferenceDt theValue) {
|
||||
public Participant setIndividual(ResourceReferenceDt theValue) {
|
||||
myIndividual = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -1202,11 +1174,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setPreAdmissionIdentifier(IdentifierDt theValue) {
|
||||
public Hospitalization setPreAdmissionIdentifier(IdentifierDt theValue) {
|
||||
myPreAdmissionIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>origin</b> (The location from which the patient came before admission).
|
||||
@ -1233,11 +1205,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setOrigin(ResourceReferenceDt theValue) {
|
||||
public Hospitalization setOrigin(ResourceReferenceDt theValue) {
|
||||
myOrigin = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>admitSource</b> (From where patient was admitted (physician referral, transfer)).
|
||||
@ -1264,11 +1236,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setAdmitSource(BoundCodeableConceptDt<AdmitSourceEnum> theValue) {
|
||||
public Hospitalization setAdmitSource(BoundCodeableConceptDt<AdmitSourceEnum> theValue) {
|
||||
myAdmitSource = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>admitSource</b> (From where patient was admitted (physician referral, transfer))
|
||||
*
|
||||
@ -1277,8 +1249,9 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setAdmitSource(AdmitSourceEnum theValue) {
|
||||
public Hospitalization setAdmitSource(AdmitSourceEnum theValue) {
|
||||
getAdmitSource().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1307,11 +1280,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
* Period during which the patient was admitted
|
||||
* </p>
|
||||
*/
|
||||
public void setPeriod(PeriodDt theValue) {
|
||||
public Hospitalization setPeriod(PeriodDt theValue) {
|
||||
myPeriod = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>accomodation</b> (Where the patient stays during this encounter).
|
||||
@ -1338,8 +1311,9 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setAccomodation(java.util.List<HospitalizationAccomodation> theValue) {
|
||||
public Hospitalization setAccomodation(java.util.List<HospitalizationAccomodation> theValue) {
|
||||
myAccomodation = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1356,6 +1330,21 @@ public class Encounter extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>accomodation</b> (Where the patient stays during this encounter),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public HospitalizationAccomodation getAccomodationFirstRep() {
|
||||
if (getAccomodation().isEmpty()) {
|
||||
return addAccomodation();
|
||||
}
|
||||
return getAccomodation().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>diet</b> (Dietary restrictions for the patient).
|
||||
@ -1382,11 +1371,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
* Dietary restrictions for the patient
|
||||
* </p>
|
||||
*/
|
||||
public void setDiet(CodeableConceptDt theValue) {
|
||||
public Hospitalization setDiet(CodeableConceptDt theValue) {
|
||||
myDiet = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>specialCourtesy</b> (Special courtesies (VIP, board member)).
|
||||
@ -1413,8 +1402,9 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setSpecialCourtesy(java.util.List<CodeableConceptDt> theValue) {
|
||||
public Hospitalization setSpecialCourtesy(java.util.List<CodeableConceptDt> theValue) {
|
||||
mySpecialCourtesy = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1431,6 +1421,21 @@ public class Encounter extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>specialCourtesy</b> (Special courtesies (VIP, board member)),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public CodeableConceptDt getSpecialCourtesyFirstRep() {
|
||||
if (getSpecialCourtesy().isEmpty()) {
|
||||
return addSpecialCourtesy();
|
||||
}
|
||||
return getSpecialCourtesy().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>specialArrangement</b> (Wheelchair, translator, stretcher, etc).
|
||||
@ -1457,8 +1462,9 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setSpecialArrangement(java.util.List<CodeableConceptDt> theValue) {
|
||||
public Hospitalization setSpecialArrangement(java.util.List<CodeableConceptDt> theValue) {
|
||||
mySpecialArrangement = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1475,6 +1481,21 @@ public class Encounter extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>specialArrangement</b> (Wheelchair, translator, stretcher, etc),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public CodeableConceptDt getSpecialArrangementFirstRep() {
|
||||
if (getSpecialArrangement().isEmpty()) {
|
||||
return addSpecialArrangement();
|
||||
}
|
||||
return getSpecialArrangement().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>destination</b> (Location to which the patient is discharged).
|
||||
@ -1501,11 +1522,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setDestination(ResourceReferenceDt theValue) {
|
||||
public Hospitalization setDestination(ResourceReferenceDt theValue) {
|
||||
myDestination = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>dischargeDisposition</b> (Category or kind of location after discharge).
|
||||
@ -1532,11 +1553,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setDischargeDisposition(CodeableConceptDt theValue) {
|
||||
public Hospitalization setDischargeDisposition(CodeableConceptDt theValue) {
|
||||
myDischargeDisposition = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>dischargeDiagnosis</b> (The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete).
|
||||
@ -1563,11 +1584,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setDischargeDiagnosis(ResourceReferenceDt theValue) {
|
||||
public Hospitalization setDischargeDiagnosis(ResourceReferenceDt theValue) {
|
||||
myDischargeDiagnosis = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>reAdmission</b> (Is this hospitalization a readmission?).
|
||||
@ -1594,11 +1615,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
* Whether this hospitalization is a readmission
|
||||
* </p>
|
||||
*/
|
||||
public void setReAdmission(BooleanDt theValue) {
|
||||
public Hospitalization setReAdmission(BooleanDt theValue) {
|
||||
myReAdmission = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>reAdmission</b> (Is this hospitalization a readmission?)
|
||||
*
|
||||
@ -1607,8 +1628,9 @@ public class Encounter extends BaseResource implements IResource {
|
||||
* Whether this hospitalization is a readmission
|
||||
* </p>
|
||||
*/
|
||||
public void setReAdmission( Boolean theBoolean) {
|
||||
public Hospitalization setReAdmission( Boolean theBoolean) {
|
||||
myReAdmission = new BooleanDt(theBoolean);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1683,11 +1705,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setBed(ResourceReferenceDt theValue) {
|
||||
public HospitalizationAccomodation setBed(ResourceReferenceDt theValue) {
|
||||
myBed = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>period</b> (Period during which the patient was assigned the bed).
|
||||
@ -1714,11 +1736,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setPeriod(PeriodDt theValue) {
|
||||
public HospitalizationAccomodation setPeriod(PeriodDt theValue) {
|
||||
myPeriod = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -1793,11 +1815,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
* The location where the encounter takes place
|
||||
* </p>
|
||||
*/
|
||||
public void setLocation(ResourceReferenceDt theValue) {
|
||||
public Location setLocation(ResourceReferenceDt theValue) {
|
||||
myLocation = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>period</b> (Time period during which the patient was present at the location).
|
||||
@ -1824,11 +1846,11 @@ public class Encounter extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setPeriod(PeriodDt theValue) {
|
||||
public Location setPeriod(PeriodDt theValue) {
|
||||
myPeriod = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,113 +17,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 java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
|
||||
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.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ContactDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Device;
|
||||
import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Group;
|
||||
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Location;
|
||||
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.dstu.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Media;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Medication;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Observation;
|
||||
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.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Patient;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
|
||||
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.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
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.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Substance;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dstu.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.BoundCodeableConceptDt;
|
||||
import ca.uhn.fhir.model.primitive.CodeDt;
|
||||
import ca.uhn.fhir.model.primitive.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
@ -337,11 +253,11 @@ public class Group extends BaseResource implements IResource {
|
||||
* A unique business identifier for this group
|
||||
* </p>
|
||||
*/
|
||||
public void setIdentifier(IdentifierDt theValue) {
|
||||
public Group setIdentifier(IdentifierDt theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>type</b> (person | animal | practitioner | device | medication | substance).
|
||||
@ -368,11 +284,11 @@ public class Group extends BaseResource implements IResource {
|
||||
* Identifies the broad classification of the kind of resources the group includes
|
||||
* </p>
|
||||
*/
|
||||
public void setType(BoundCodeDt<GroupTypeEnum> theValue) {
|
||||
public Group setType(BoundCodeDt<GroupTypeEnum> theValue) {
|
||||
myType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>type</b> (person | animal | practitioner | device | medication | substance)
|
||||
*
|
||||
@ -381,8 +297,9 @@ public class Group extends BaseResource implements IResource {
|
||||
* Identifies the broad classification of the kind of resources the group includes
|
||||
* </p>
|
||||
*/
|
||||
public void setType(GroupTypeEnum theValue) {
|
||||
public Group setType(GroupTypeEnum theValue) {
|
||||
getType().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -411,11 +328,11 @@ public class Group extends BaseResource implements IResource {
|
||||
* If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals
|
||||
* </p>
|
||||
*/
|
||||
public void setActual(BooleanDt theValue) {
|
||||
public Group setActual(BooleanDt theValue) {
|
||||
myActual = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>actual</b> (Descriptive or actual)
|
||||
*
|
||||
@ -424,8 +341,9 @@ public class Group extends BaseResource implements IResource {
|
||||
* If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals
|
||||
* </p>
|
||||
*/
|
||||
public void setActual( Boolean theBoolean) {
|
||||
public Group setActual( Boolean theBoolean) {
|
||||
myActual = new BooleanDt(theBoolean);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -454,11 +372,11 @@ public class Group extends BaseResource implements IResource {
|
||||
* Provides a specific type of resource the group includes. E.g. \"cow\", \"syringe\", etc.
|
||||
* </p>
|
||||
*/
|
||||
public void setCode(CodeableConceptDt theValue) {
|
||||
public Group setCode(CodeableConceptDt theValue) {
|
||||
myCode = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>name</b> (Label for Group).
|
||||
@ -485,11 +403,11 @@ public class Group extends BaseResource implements IResource {
|
||||
* A label assigned to the group for human identification and communication
|
||||
* </p>
|
||||
*/
|
||||
public void setName(StringDt theValue) {
|
||||
public Group setName(StringDt theValue) {
|
||||
myName = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>name</b> (Label for Group)
|
||||
*
|
||||
@ -498,8 +416,9 @@ public class Group extends BaseResource implements IResource {
|
||||
* A label assigned to the group for human identification and communication
|
||||
* </p>
|
||||
*/
|
||||
public void setName( String theString) {
|
||||
public Group setName( String theString) {
|
||||
myName = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -528,11 +447,11 @@ public class Group extends BaseResource implements IResource {
|
||||
* A count of the number of resource instances that are part of the group
|
||||
* </p>
|
||||
*/
|
||||
public void setQuantity(IntegerDt theValue) {
|
||||
public Group setQuantity(IntegerDt theValue) {
|
||||
myQuantity = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>quantity</b> (Number of members)
|
||||
*
|
||||
@ -541,8 +460,9 @@ public class Group extends BaseResource implements IResource {
|
||||
* A count of the number of resource instances that are part of the group
|
||||
* </p>
|
||||
*/
|
||||
public void setQuantity( Integer theInteger) {
|
||||
public Group setQuantity( Integer theInteger) {
|
||||
myQuantity = new IntegerDt(theInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -571,8 +491,9 @@ public class Group extends BaseResource implements IResource {
|
||||
* Identifies the traits shared by members of the group
|
||||
* </p>
|
||||
*/
|
||||
public void setCharacteristic(java.util.List<Characteristic> theValue) {
|
||||
public Group setCharacteristic(java.util.List<Characteristic> theValue) {
|
||||
myCharacteristic = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -589,6 +510,21 @@ public class Group extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>characteristic</b> (Trait of group members),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies the traits shared by members of the group
|
||||
* </p>
|
||||
*/
|
||||
public Characteristic getCharacteristicFirstRep() {
|
||||
if (getCharacteristic().isEmpty()) {
|
||||
return addCharacteristic();
|
||||
}
|
||||
return getCharacteristic().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>member</b> (Who is in group).
|
||||
@ -612,11 +548,24 @@ public class Group extends BaseResource implements IResource {
|
||||
* Identifies the resource instances that are members of the group.
|
||||
* </p>
|
||||
*/
|
||||
public void setMember(java.util.List<ResourceReferenceDt> theValue) {
|
||||
public Group setMember(java.util.List<ResourceReferenceDt> theValue) {
|
||||
myMember = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>member</b> (Who is in group)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies the resource instances that are members of the group.
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt addMember() {
|
||||
ResourceReferenceDt newType = new ResourceReferenceDt();
|
||||
getMember().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Block class for child element: <b>Group.characteristic</b> (Trait of group members)
|
||||
@ -696,11 +645,11 @@ public class Group extends BaseResource implements IResource {
|
||||
* A code that identifies the kind of trait being asserted
|
||||
* </p>
|
||||
*/
|
||||
public void setCode(CodeableConceptDt theValue) {
|
||||
public Characteristic setCode(CodeableConceptDt theValue) {
|
||||
myCode = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>value[x]</b> (Value held by characteristic).
|
||||
@ -724,11 +673,11 @@ public class Group extends BaseResource implements IResource {
|
||||
* The value of the trait that holds (or does not hold - see 'exclude') for members of the group
|
||||
* </p>
|
||||
*/
|
||||
public void setValue(IDatatype theValue) {
|
||||
public Characteristic setValue(IDatatype theValue) {
|
||||
myValue = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>exclude</b> (Group includes or excludes).
|
||||
@ -755,11 +704,11 @@ public class Group extends BaseResource implements IResource {
|
||||
* If true, indicates the characteristic is one that is NOT held by members of the group
|
||||
* </p>
|
||||
*/
|
||||
public void setExclude(BooleanDt theValue) {
|
||||
public Characteristic setExclude(BooleanDt theValue) {
|
||||
myExclude = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>exclude</b> (Group includes or excludes)
|
||||
*
|
||||
@ -768,8 +717,9 @@ public class Group extends BaseResource implements IResource {
|
||||
* If true, indicates the characteristic is one that is NOT held by members of the group
|
||||
* </p>
|
||||
*/
|
||||
public void setExclude( Boolean theBoolean) {
|
||||
public Characteristic setExclude( Boolean theBoolean) {
|
||||
myExclude = new BooleanDt(theBoolean);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
@ -17,109 +17,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 java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ContactDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Device;
|
||||
import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Group;
|
||||
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Location;
|
||||
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.dstu.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Media;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Medication;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Observation;
|
||||
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.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Patient;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
|
||||
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.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
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.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Substance;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
|
||||
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.dstu.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
import ca.uhn.fhir.model.primitive.BooleanDt;
|
||||
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.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
|
||||
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.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
@ -412,11 +331,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Date and Time the study took place
|
||||
* </p>
|
||||
*/
|
||||
public void setDateTime(DateTimeDt theValue) {
|
||||
public ImagingStudy setDateTime(DateTimeDt theValue) {
|
||||
myDateTime = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>dateTime</b> (When the study was performed)
|
||||
*
|
||||
@ -425,8 +344,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Date and Time the study took place
|
||||
* </p>
|
||||
*/
|
||||
public void setDateTime( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
public ImagingStudy setDateTime( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myDateTime = new DateTimeDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -437,8 +357,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Date and Time the study took place
|
||||
* </p>
|
||||
*/
|
||||
public void setDateTimeWithSecondsPrecision( Date theDate) {
|
||||
public ImagingStudy setDateTimeWithSecondsPrecision( Date theDate) {
|
||||
myDateTime = new DateTimeDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -467,11 +388,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Who the images are of
|
||||
* </p>
|
||||
*/
|
||||
public void setSubject(ResourceReferenceDt theValue) {
|
||||
public ImagingStudy setSubject(ResourceReferenceDt theValue) {
|
||||
mySubject = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>uid</b> (Formal identifier for the study (0020,000D)).
|
||||
@ -498,11 +419,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Formal identifier for the study
|
||||
* </p>
|
||||
*/
|
||||
public void setUid(OidDt theValue) {
|
||||
public ImagingStudy setUid(OidDt theValue) {
|
||||
myUid = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>accessionNo</b> (Accession Number (0008,0050)).
|
||||
@ -529,11 +450,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Accession Number
|
||||
* </p>
|
||||
*/
|
||||
public void setAccessionNo(IdentifierDt theValue) {
|
||||
public ImagingStudy setAccessionNo(IdentifierDt theValue) {
|
||||
myAccessionNo = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>identifier</b> (Other identifiers for the study (0020,0010)).
|
||||
@ -560,8 +481,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Other identifiers for the study
|
||||
* </p>
|
||||
*/
|
||||
public void setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
public ImagingStudy setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -578,6 +500,21 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>identifier</b> (Other identifiers for the study (0020,0010)),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Other identifiers for the study
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt getIdentifierFirstRep() {
|
||||
if (getIdentifier().isEmpty()) {
|
||||
return addIdentifier();
|
||||
}
|
||||
return getIdentifier().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>order</b> (Order(s) that caused this study to be performed).
|
||||
@ -604,11 +541,24 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* A list of the diagnostic orders that resulted in this imaging study being performed
|
||||
* </p>
|
||||
*/
|
||||
public void setOrder(java.util.List<ResourceReferenceDt> theValue) {
|
||||
public ImagingStudy setOrder(java.util.List<ResourceReferenceDt> theValue) {
|
||||
myOrder = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>order</b> (Order(s) that caused this study to be performed)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A list of the diagnostic orders that resulted in this imaging study being performed
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt addOrder() {
|
||||
ResourceReferenceDt newType = new ResourceReferenceDt();
|
||||
getOrder().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>modality</b> (All series.modality if actual acquisition modalities).
|
||||
@ -635,11 +585,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19)
|
||||
* </p>
|
||||
*/
|
||||
public void setModality(java.util.List<BoundCodeDt<ImagingModalityEnum>> theValue) {
|
||||
public ImagingStudy setModality(java.util.List<BoundCodeDt<ImagingModalityEnum>> theValue) {
|
||||
myModality = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add a value for <b>modality</b> (All series.modality if actual acquisition modalities)
|
||||
*
|
||||
@ -660,9 +610,10 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19)
|
||||
* </p>
|
||||
*/
|
||||
public void setModality(ImagingModalityEnum theValue) {
|
||||
public ImagingStudy setModality(ImagingModalityEnum theValue) {
|
||||
getModality().clear();
|
||||
addModality(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -691,11 +642,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* The requesting/referring physician
|
||||
* </p>
|
||||
*/
|
||||
public void setReferrer(ResourceReferenceDt theValue) {
|
||||
public ImagingStudy setReferrer(ResourceReferenceDt theValue) {
|
||||
myReferrer = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>availability</b> (ONLINE | OFFLINE | NEARLINE | UNAVAILABLE (0008,0056)).
|
||||
@ -722,11 +673,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Availability of study (online, offline or nearline)
|
||||
* </p>
|
||||
*/
|
||||
public void setAvailability(BoundCodeDt<InstanceAvailabilityEnum> theValue) {
|
||||
public ImagingStudy setAvailability(BoundCodeDt<InstanceAvailabilityEnum> theValue) {
|
||||
myAvailability = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>availability</b> (ONLINE | OFFLINE | NEARLINE | UNAVAILABLE (0008,0056))
|
||||
*
|
||||
@ -735,8 +686,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Availability of study (online, offline or nearline)
|
||||
* </p>
|
||||
*/
|
||||
public void setAvailability(InstanceAvailabilityEnum theValue) {
|
||||
public ImagingStudy setAvailability(InstanceAvailabilityEnum theValue) {
|
||||
getAvailability().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -765,11 +717,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* WADO-RS URI where Study is available
|
||||
* </p>
|
||||
*/
|
||||
public void setUrl(UriDt theValue) {
|
||||
public ImagingStudy setUrl(UriDt theValue) {
|
||||
myUrl = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>url</b> (Retrieve URI (0008,1190))
|
||||
*
|
||||
@ -778,8 +730,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* WADO-RS URI where Study is available
|
||||
* </p>
|
||||
*/
|
||||
public void setUrl( String theUri) {
|
||||
public ImagingStudy setUrl( String theUri) {
|
||||
myUrl = new UriDt(theUri);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -808,11 +761,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Number of Series in Study
|
||||
* </p>
|
||||
*/
|
||||
public void setNumberOfSeries(IntegerDt theValue) {
|
||||
public ImagingStudy setNumberOfSeries(IntegerDt theValue) {
|
||||
myNumberOfSeries = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>numberOfSeries</b> (Number of Study Related Series (0020,1206))
|
||||
*
|
||||
@ -821,8 +774,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Number of Series in Study
|
||||
* </p>
|
||||
*/
|
||||
public void setNumberOfSeries( Integer theInteger) {
|
||||
public ImagingStudy setNumberOfSeries( Integer theInteger) {
|
||||
myNumberOfSeries = new IntegerDt(theInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -851,11 +805,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Number of SOP Instances in Study
|
||||
* </p>
|
||||
*/
|
||||
public void setNumberOfInstances(IntegerDt theValue) {
|
||||
public ImagingStudy setNumberOfInstances(IntegerDt theValue) {
|
||||
myNumberOfInstances = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>numberOfInstances</b> (Number of Study Related Instances (0020,1208))
|
||||
*
|
||||
@ -864,8 +818,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Number of SOP Instances in Study
|
||||
* </p>
|
||||
*/
|
||||
public void setNumberOfInstances( Integer theInteger) {
|
||||
public ImagingStudy setNumberOfInstances( Integer theInteger) {
|
||||
myNumberOfInstances = new IntegerDt(theInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -894,11 +849,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Diagnoses etc provided with request
|
||||
* </p>
|
||||
*/
|
||||
public void setClinicalInformation(StringDt theValue) {
|
||||
public ImagingStudy setClinicalInformation(StringDt theValue) {
|
||||
myClinicalInformation = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>clinicalInformation</b> (Diagnoses etc with request (0040,1002))
|
||||
*
|
||||
@ -907,8 +862,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Diagnoses etc provided with request
|
||||
* </p>
|
||||
*/
|
||||
public void setClinicalInformation( String theString) {
|
||||
public ImagingStudy setClinicalInformation( String theString) {
|
||||
myClinicalInformation = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -937,8 +893,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Type of procedure performed
|
||||
* </p>
|
||||
*/
|
||||
public void setProcedure(java.util.List<CodingDt> theValue) {
|
||||
public ImagingStudy setProcedure(java.util.List<CodingDt> theValue) {
|
||||
myProcedure = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -955,6 +912,21 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>procedure</b> (Type of procedure performed (0008,1032)),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Type of procedure performed
|
||||
* </p>
|
||||
*/
|
||||
public CodingDt getProcedureFirstRep() {
|
||||
if (getProcedure().isEmpty()) {
|
||||
return addProcedure();
|
||||
}
|
||||
return getProcedure().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>interpreter</b> (Who interpreted images (0008,1060)).
|
||||
@ -981,11 +953,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Who read study and interpreted the images
|
||||
* </p>
|
||||
*/
|
||||
public void setInterpreter(ResourceReferenceDt theValue) {
|
||||
public ImagingStudy setInterpreter(ResourceReferenceDt theValue) {
|
||||
myInterpreter = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>description</b> (Institution-generated description (0008,1030)).
|
||||
@ -1012,11 +984,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Institution-generated description or classification of the Study (component) performed
|
||||
* </p>
|
||||
*/
|
||||
public void setDescription(StringDt theValue) {
|
||||
public ImagingStudy setDescription(StringDt theValue) {
|
||||
myDescription = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>description</b> (Institution-generated description (0008,1030))
|
||||
*
|
||||
@ -1025,8 +997,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Institution-generated description or classification of the Study (component) performed
|
||||
* </p>
|
||||
*/
|
||||
public void setDescription( String theString) {
|
||||
public ImagingStudy setDescription( String theString) {
|
||||
myDescription = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1055,8 +1028,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Each study has one or more series of image instances
|
||||
* </p>
|
||||
*/
|
||||
public void setSeries(java.util.List<Series> theValue) {
|
||||
public ImagingStudy setSeries(java.util.List<Series> theValue) {
|
||||
mySeries = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1073,6 +1047,21 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>series</b> (Each study has one or more series of instances),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Each study has one or more series of image instances
|
||||
* </p>
|
||||
*/
|
||||
public Series getSeriesFirstRep() {
|
||||
if (getSeries().isEmpty()) {
|
||||
return addSeries();
|
||||
}
|
||||
return getSeries().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Block class for child element: <b>ImagingStudy.series</b> (Each study has one or more series of instances)
|
||||
@ -1196,11 +1185,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* The number of this series in the overall sequence
|
||||
* </p>
|
||||
*/
|
||||
public void setNumber(IntegerDt theValue) {
|
||||
public Series setNumber(IntegerDt theValue) {
|
||||
myNumber = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>number</b> (Number of this series in overall sequence (0020,0011))
|
||||
*
|
||||
@ -1209,8 +1198,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* The number of this series in the overall sequence
|
||||
* </p>
|
||||
*/
|
||||
public void setNumber( Integer theInteger) {
|
||||
public Series setNumber( Integer theInteger) {
|
||||
myNumber = new IntegerDt(theInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1239,11 +1229,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* The modality of this series sequence
|
||||
* </p>
|
||||
*/
|
||||
public void setModality(BoundCodeDt<ModalityEnum> theValue) {
|
||||
public Series setModality(BoundCodeDt<ModalityEnum> theValue) {
|
||||
myModality = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>modality</b> (The modality of the instances in the series (0008,0060))
|
||||
*
|
||||
@ -1252,8 +1242,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* The modality of this series sequence
|
||||
* </p>
|
||||
*/
|
||||
public void setModality(ModalityEnum theValue) {
|
||||
public Series setModality(ModalityEnum theValue) {
|
||||
getModality().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1282,11 +1273,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Formal identifier for this series
|
||||
* </p>
|
||||
*/
|
||||
public void setUid(OidDt theValue) {
|
||||
public Series setUid(OidDt theValue) {
|
||||
myUid = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>description</b> (A description of the series (0008,103E)).
|
||||
@ -1313,11 +1304,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* A description of the series
|
||||
* </p>
|
||||
*/
|
||||
public void setDescription(StringDt theValue) {
|
||||
public Series setDescription(StringDt theValue) {
|
||||
myDescription = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>description</b> (A description of the series (0008,103E))
|
||||
*
|
||||
@ -1326,8 +1317,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* A description of the series
|
||||
* </p>
|
||||
*/
|
||||
public void setDescription( String theString) {
|
||||
public Series setDescription( String theString) {
|
||||
myDescription = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1356,11 +1348,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Sequence that contains attributes from the
|
||||
* </p>
|
||||
*/
|
||||
public void setNumberOfInstances(IntegerDt theValue) {
|
||||
public Series setNumberOfInstances(IntegerDt theValue) {
|
||||
myNumberOfInstances = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>numberOfInstances</b> (Number of Series Related Instances (0020,1209))
|
||||
*
|
||||
@ -1369,8 +1361,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Sequence that contains attributes from the
|
||||
* </p>
|
||||
*/
|
||||
public void setNumberOfInstances( Integer theInteger) {
|
||||
public Series setNumberOfInstances( Integer theInteger) {
|
||||
myNumberOfInstances = new IntegerDt(theInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1399,11 +1392,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Availability of series (online, offline or nearline)
|
||||
* </p>
|
||||
*/
|
||||
public void setAvailability(BoundCodeDt<InstanceAvailabilityEnum> theValue) {
|
||||
public Series setAvailability(BoundCodeDt<InstanceAvailabilityEnum> theValue) {
|
||||
myAvailability = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>availability</b> (ONLINE | OFFLINE | NEARLINE | UNAVAILABLE (0008,0056))
|
||||
*
|
||||
@ -1412,8 +1405,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Availability of series (online, offline or nearline)
|
||||
* </p>
|
||||
*/
|
||||
public void setAvailability(InstanceAvailabilityEnum theValue) {
|
||||
public Series setAvailability(InstanceAvailabilityEnum theValue) {
|
||||
getAvailability().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1442,11 +1436,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* WADO-RS URI where Series is available
|
||||
* </p>
|
||||
*/
|
||||
public void setUrl(UriDt theValue) {
|
||||
public Series setUrl(UriDt theValue) {
|
||||
myUrl = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>url</b> (Retrieve URI (0008,1115 > 0008,1190))
|
||||
*
|
||||
@ -1455,8 +1449,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* WADO-RS URI where Series is available
|
||||
* </p>
|
||||
*/
|
||||
public void setUrl( String theUri) {
|
||||
public Series setUrl( String theUri) {
|
||||
myUrl = new UriDt(theUri);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1485,11 +1480,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Body part examined. See DICOM Part 16 Annex L for the mapping from DICOM to Snomed
|
||||
* </p>
|
||||
*/
|
||||
public void setBodySite(CodingDt theValue) {
|
||||
public Series setBodySite(CodingDt theValue) {
|
||||
myBodySite = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>dateTime</b> (When the series started).
|
||||
@ -1516,11 +1511,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setDateTime(DateTimeDt theValue) {
|
||||
public Series setDateTime(DateTimeDt theValue) {
|
||||
myDateTime = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>dateTime</b> (When the series started)
|
||||
*
|
||||
@ -1529,8 +1524,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setDateTime( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
public Series setDateTime( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myDateTime = new DateTimeDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1541,8 +1537,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setDateTimeWithSecondsPrecision( Date theDate) {
|
||||
public Series setDateTimeWithSecondsPrecision( Date theDate) {
|
||||
myDateTime = new DateTimeDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1571,8 +1568,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* A single image taken from a patient
|
||||
* </p>
|
||||
*/
|
||||
public void setInstance(java.util.List<SeriesInstance> theValue) {
|
||||
public Series setInstance(java.util.List<SeriesInstance> theValue) {
|
||||
myInstance = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1589,6 +1587,21 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>instance</b> (A single instance taken from a patient (image or other)),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A single image taken from a patient
|
||||
* </p>
|
||||
*/
|
||||
public SeriesInstance getInstanceFirstRep() {
|
||||
if (getInstance().isEmpty()) {
|
||||
return addInstance();
|
||||
}
|
||||
return getInstance().get(0);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -1696,11 +1709,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* The number of this image in the series
|
||||
* </p>
|
||||
*/
|
||||
public void setNumber(IntegerDt theValue) {
|
||||
public SeriesInstance setNumber(IntegerDt theValue) {
|
||||
myNumber = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>number</b> (The number of this instance in the series (0020,0013))
|
||||
*
|
||||
@ -1709,8 +1722,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* The number of this image in the series
|
||||
* </p>
|
||||
*/
|
||||
public void setNumber( Integer theInteger) {
|
||||
public SeriesInstance setNumber( Integer theInteger) {
|
||||
myNumber = new IntegerDt(theInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1739,11 +1753,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* Formal identifier for this image
|
||||
* </p>
|
||||
*/
|
||||
public void setUid(OidDt theValue) {
|
||||
public SeriesInstance setUid(OidDt theValue) {
|
||||
myUid = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>sopclass</b> (DICOM class type (0008,0016)).
|
||||
@ -1770,11 +1784,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* DICOM Image type
|
||||
* </p>
|
||||
*/
|
||||
public void setSopclass(OidDt theValue) {
|
||||
public SeriesInstance setSopclass(OidDt theValue) {
|
||||
mySopclass = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>type </b> (Type of instance (image etc) (0004,1430)).
|
||||
@ -1801,11 +1815,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setType(StringDt theValue) {
|
||||
public SeriesInstance setType(StringDt theValue) {
|
||||
myType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>type </b> (Type of instance (image etc) (0004,1430))
|
||||
*
|
||||
@ -1814,8 +1828,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setType( String theString) {
|
||||
public SeriesInstance setType( String theString) {
|
||||
myType = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1844,11 +1859,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setTitle(StringDt theValue) {
|
||||
public SeriesInstance setTitle(StringDt theValue) {
|
||||
myTitle = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>title</b> (Description (0070,0080 | 0040,A043 > 0008,0104 | 0042,0010 | 0008,0008))
|
||||
*
|
||||
@ -1857,8 +1872,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setTitle( String theString) {
|
||||
public SeriesInstance setTitle( String theString) {
|
||||
myTitle = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1887,11 +1903,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* WADO-RS url where image is available
|
||||
* </p>
|
||||
*/
|
||||
public void setUrl(UriDt theValue) {
|
||||
public SeriesInstance setUrl(UriDt theValue) {
|
||||
myUrl = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>url</b> (WADO-RS service where instance is available (0008,1199 > 0008,1190))
|
||||
*
|
||||
@ -1900,8 +1916,9 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
* WADO-RS url where image is available
|
||||
* </p>
|
||||
*/
|
||||
public void setUrl( String theUri) {
|
||||
public SeriesInstance setUrl( String theUri) {
|
||||
myUrl = new UriDt(theUri);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1930,11 +1947,11 @@ public class ImagingStudy extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setAttachment(ResourceReferenceDt theValue) {
|
||||
public SeriesInstance setAttachment(ResourceReferenceDt theValue) {
|
||||
myAttachment = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,113 +17,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 java.util.List;
|
||||
|
||||
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.valueset.AdministrativeGenderCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ContactDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Device;
|
||||
import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Group;
|
||||
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Location;
|
||||
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.dstu.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Media;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Medication;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Observation;
|
||||
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.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Patient;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
|
||||
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.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
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.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Substance;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dstu.composite.DurationDt;
|
||||
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.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
@ -353,11 +270,11 @@ public class Location extends BaseResource implements IResource {
|
||||
* Unique code or number identifying the location to its users
|
||||
* </p>
|
||||
*/
|
||||
public void setIdentifier(IdentifierDt theValue) {
|
||||
public Location setIdentifier(IdentifierDt theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>name</b> (Name of the location as used by humans).
|
||||
@ -384,11 +301,11 @@ public class Location extends BaseResource implements IResource {
|
||||
* Name of the location as used by humans. Does not need to be unique.
|
||||
* </p>
|
||||
*/
|
||||
public void setName(StringDt theValue) {
|
||||
public Location setName(StringDt theValue) {
|
||||
myName = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>name</b> (Name of the location as used by humans)
|
||||
*
|
||||
@ -397,8 +314,9 @@ public class Location extends BaseResource implements IResource {
|
||||
* Name of the location as used by humans. Does not need to be unique.
|
||||
* </p>
|
||||
*/
|
||||
public void setName( String theString) {
|
||||
public Location setName( String theString) {
|
||||
myName = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -427,11 +345,11 @@ public class Location extends BaseResource implements IResource {
|
||||
* Description of the Location, which helps in finding or referencing the place
|
||||
* </p>
|
||||
*/
|
||||
public void setDescription(StringDt theValue) {
|
||||
public Location setDescription(StringDt theValue) {
|
||||
myDescription = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>description</b> (Description of the Location, which helps in finding or referencing the place)
|
||||
*
|
||||
@ -440,8 +358,9 @@ public class Location extends BaseResource implements IResource {
|
||||
* Description of the Location, which helps in finding or referencing the place
|
||||
* </p>
|
||||
*/
|
||||
public void setDescription( String theString) {
|
||||
public Location setDescription( String theString) {
|
||||
myDescription = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -470,11 +389,11 @@ public class Location extends BaseResource implements IResource {
|
||||
* Indicates the type of function performed at the location
|
||||
* </p>
|
||||
*/
|
||||
public void setType(BoundCodeableConceptDt<LocationTypeEnum> theValue) {
|
||||
public Location setType(BoundCodeableConceptDt<LocationTypeEnum> theValue) {
|
||||
myType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>type</b> (Indicates the type of function performed at the location)
|
||||
*
|
||||
@ -483,8 +402,9 @@ public class Location extends BaseResource implements IResource {
|
||||
* Indicates the type of function performed at the location
|
||||
* </p>
|
||||
*/
|
||||
public void setType(LocationTypeEnum theValue) {
|
||||
public Location setType(LocationTypeEnum theValue) {
|
||||
getType().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -513,8 +433,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 void setTelecom(java.util.List<ContactDt> theValue) {
|
||||
public Location setTelecom(java.util.List<ContactDt> theValue) {
|
||||
myTelecom = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -531,6 +452,21 @@ public class Location extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>telecom</b> (Contact details of the location),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* 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 ContactDt getTelecomFirstRep() {
|
||||
if (getTelecom().isEmpty()) {
|
||||
return addTelecom();
|
||||
}
|
||||
return getTelecom().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>address</b> (Physical location).
|
||||
@ -557,11 +493,11 @@ public class Location extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setAddress(AddressDt theValue) {
|
||||
public Location setAddress(AddressDt theValue) {
|
||||
myAddress = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>physicalType</b> (Physical form of the location).
|
||||
@ -588,11 +524,11 @@ public class Location extends BaseResource implements IResource {
|
||||
* Physical form of the location, e.g. building, room, vehicle, road
|
||||
* </p>
|
||||
*/
|
||||
public void setPhysicalType(CodeableConceptDt theValue) {
|
||||
public Location setPhysicalType(CodeableConceptDt theValue) {
|
||||
myPhysicalType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>position</b> (The absolute geographic location).
|
||||
@ -619,11 +555,11 @@ public class Location extends BaseResource implements IResource {
|
||||
* The absolute geographic location of the Location, expressed in a KML compatible manner (see notes below for KML)
|
||||
* </p>
|
||||
*/
|
||||
public void setPosition(Position theValue) {
|
||||
public Location setPosition(Position theValue) {
|
||||
myPosition = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>managingOrganization</b> (The organization that is responsible for the provisioning and upkeep of the location).
|
||||
@ -650,11 +586,11 @@ public class Location extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setManagingOrganization(ResourceReferenceDt theValue) {
|
||||
public Location setManagingOrganization(ResourceReferenceDt theValue) {
|
||||
myManagingOrganization = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>status</b> (active | suspended | inactive).
|
||||
@ -681,11 +617,11 @@ public class Location extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setStatus(BoundCodeDt<LocationStatusEnum> theValue) {
|
||||
public Location setStatus(BoundCodeDt<LocationStatusEnum> theValue) {
|
||||
myStatus = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>status</b> (active | suspended | inactive)
|
||||
*
|
||||
@ -694,8 +630,9 @@ public class Location extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setStatus(LocationStatusEnum theValue) {
|
||||
public Location setStatus(LocationStatusEnum theValue) {
|
||||
getStatus().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -724,11 +661,11 @@ public class Location extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setPartOf(ResourceReferenceDt theValue) {
|
||||
public Location setPartOf(ResourceReferenceDt theValue) {
|
||||
myPartOf = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>mode</b> (instance | kind).
|
||||
@ -755,11 +692,11 @@ public class Location extends BaseResource implements IResource {
|
||||
* Indicates whether a resource instance represents a specific location or a class of locations
|
||||
* </p>
|
||||
*/
|
||||
public void setMode(BoundCodeDt<LocationModeEnum> theValue) {
|
||||
public Location setMode(BoundCodeDt<LocationModeEnum> theValue) {
|
||||
myMode = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>mode</b> (instance | kind)
|
||||
*
|
||||
@ -768,8 +705,9 @@ public class Location extends BaseResource implements IResource {
|
||||
* Indicates whether a resource instance represents a specific location or a class of locations
|
||||
* </p>
|
||||
*/
|
||||
public void setMode(LocationModeEnum theValue) {
|
||||
public Location setMode(LocationModeEnum theValue) {
|
||||
getMode().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -846,11 +784,11 @@ 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(DecimalDt theValue) {
|
||||
public Position setLongitude(DecimalDt theValue) {
|
||||
myLongitude = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>longitude</b> (Longitude as expressed in KML)
|
||||
*
|
||||
@ -859,8 +797,9 @@ 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 Position setLongitude( long theValue) {
|
||||
myLongitude = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -871,8 +810,9 @@ 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( double theValue) {
|
||||
public Position setLongitude( double theValue) {
|
||||
myLongitude = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -883,8 +823,9 @@ 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 Position setLongitude( java.math.BigDecimal theValue) {
|
||||
myLongitude = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -913,11 +854,11 @@ 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(DecimalDt theValue) {
|
||||
public Position setLatitude(DecimalDt theValue) {
|
||||
myLatitude = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>latitude</b> (Latitude as expressed in KML)
|
||||
*
|
||||
@ -926,8 +867,9 @@ 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 Position setLatitude( long theValue) {
|
||||
myLatitude = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -938,8 +880,9 @@ 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( double theValue) {
|
||||
public Position setLatitude( double theValue) {
|
||||
myLatitude = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -950,8 +893,9 @@ 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 Position setLatitude( java.math.BigDecimal theValue) {
|
||||
myLatitude = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -980,11 +924,11 @@ 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(DecimalDt theValue) {
|
||||
public Position setAltitude(DecimalDt theValue) {
|
||||
myAltitude = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>altitude</b> (Altitude as expressed in KML)
|
||||
*
|
||||
@ -993,8 +937,9 @@ 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 Position setAltitude( long theValue) {
|
||||
myAltitude = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1005,8 +950,9 @@ 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( double theValue) {
|
||||
public Position setAltitude( double theValue) {
|
||||
myAltitude = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1017,8 +963,9 @@ 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 Position setAltitude( java.math.BigDecimal theValue) {
|
||||
myAltitude = new DecimalDt(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
@ -17,113 +17,26 @@
|
||||
package ca.uhn.fhir.model.dstu.resource;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ContactDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Device;
|
||||
import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Group;
|
||||
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Location;
|
||||
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.dstu.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Media;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Medication;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Observation;
|
||||
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.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Patient;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
|
||||
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.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
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.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Substance;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
|
||||
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.dstu.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
import ca.uhn.fhir.model.primitive.BooleanDt;
|
||||
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.BoundCodeableConceptDt;
|
||||
import ca.uhn.fhir.model.primitive.CodeDt;
|
||||
import ca.uhn.fhir.model.primitive.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
@ -354,11 +267,11 @@ public class Media extends BaseResource implements IResource {
|
||||
* Whether the media is a photo (still image), an audio recording, or a video recording
|
||||
* </p>
|
||||
*/
|
||||
public void setType(BoundCodeDt<MediaTypeEnum> theValue) {
|
||||
public Media setType(BoundCodeDt<MediaTypeEnum> theValue) {
|
||||
myType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>type</b> (photo | video | audio)
|
||||
*
|
||||
@ -367,8 +280,9 @@ public class Media extends BaseResource implements IResource {
|
||||
* Whether the media is a photo (still image), an audio recording, or a video recording
|
||||
* </p>
|
||||
*/
|
||||
public void setType(MediaTypeEnum theValue) {
|
||||
public Media setType(MediaTypeEnum theValue) {
|
||||
getType().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -397,11 +311,11 @@ public class Media extends BaseResource implements IResource {
|
||||
* 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) {
|
||||
public Media setSubtype(CodeableConceptDt theValue) {
|
||||
mySubtype = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>identifier</b> (Identifier(s) for the image).
|
||||
@ -428,8 +342,9 @@ public class Media extends BaseResource implements IResource {
|
||||
* 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) {
|
||||
public Media setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -446,6 +361,21 @@ public class Media extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>identifier</b> (Identifier(s) for the image),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <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 getIdentifierFirstRep() {
|
||||
if (getIdentifier().isEmpty()) {
|
||||
return addIdentifier();
|
||||
}
|
||||
return getIdentifier().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>dateTime</b> (When the media was taken/recorded (end)).
|
||||
@ -472,11 +402,11 @@ public class Media extends BaseResource implements IResource {
|
||||
* 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) {
|
||||
public Media setDateTime(DateTimeDt theValue) {
|
||||
myDateTime = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>dateTime</b> (When the media was taken/recorded (end))
|
||||
*
|
||||
@ -485,8 +415,9 @@ public class Media extends BaseResource implements IResource {
|
||||
* 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) {
|
||||
public Media setDateTime( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myDateTime = new DateTimeDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -497,8 +428,9 @@ public class Media extends BaseResource implements IResource {
|
||||
* 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) {
|
||||
public Media setDateTimeWithSecondsPrecision( Date theDate) {
|
||||
myDateTime = new DateTimeDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -524,11 +456,11 @@ public class Media extends BaseResource implements IResource {
|
||||
* Who/What this Media is a record of
|
||||
* </p>
|
||||
*/
|
||||
public void setSubject(ResourceReferenceDt theValue) {
|
||||
public Media setSubject(ResourceReferenceDt theValue) {
|
||||
mySubject = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>operator</b> (The person who generated the image).
|
||||
@ -555,11 +487,11 @@ public class Media extends BaseResource implements IResource {
|
||||
* The person who administered the collection of the image
|
||||
* </p>
|
||||
*/
|
||||
public void setOperator(ResourceReferenceDt theValue) {
|
||||
public Media setOperator(ResourceReferenceDt theValue) {
|
||||
myOperator = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>view</b> (Imaging view e.g Lateral or Antero-posterior).
|
||||
@ -586,11 +518,11 @@ public class Media extends BaseResource implements IResource {
|
||||
* The name of the imaging view e.g Lateral or Antero-posterior (AP).
|
||||
* </p>
|
||||
*/
|
||||
public void setView(CodeableConceptDt theValue) {
|
||||
public Media setView(CodeableConceptDt theValue) {
|
||||
myView = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>deviceName</b> (Name of the device/manufacturer).
|
||||
@ -617,11 +549,11 @@ public class Media extends BaseResource implements IResource {
|
||||
* The name of the device / manufacturer of the device that was used to make the recording
|
||||
* </p>
|
||||
*/
|
||||
public void setDeviceName(StringDt theValue) {
|
||||
public Media setDeviceName(StringDt theValue) {
|
||||
myDeviceName = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>deviceName</b> (Name of the device/manufacturer)
|
||||
*
|
||||
@ -630,8 +562,9 @@ public class Media extends BaseResource implements IResource {
|
||||
* The name of the device / manufacturer of the device that was used to make the recording
|
||||
* </p>
|
||||
*/
|
||||
public void setDeviceName( String theString) {
|
||||
public Media setDeviceName( String theString) {
|
||||
myDeviceName = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -660,11 +593,11 @@ public class Media extends BaseResource implements IResource {
|
||||
* Height of the image in pixels(photo/video)
|
||||
* </p>
|
||||
*/
|
||||
public void setHeight(IntegerDt theValue) {
|
||||
public Media setHeight(IntegerDt theValue) {
|
||||
myHeight = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>height</b> (Height of the image in pixels(photo/video))
|
||||
*
|
||||
@ -673,8 +606,9 @@ public class Media extends BaseResource implements IResource {
|
||||
* Height of the image in pixels(photo/video)
|
||||
* </p>
|
||||
*/
|
||||
public void setHeight( Integer theInteger) {
|
||||
public Media setHeight( Integer theInteger) {
|
||||
myHeight = new IntegerDt(theInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -703,11 +637,11 @@ public class Media extends BaseResource implements IResource {
|
||||
* Width of the image in pixels (photo/video)
|
||||
* </p>
|
||||
*/
|
||||
public void setWidth(IntegerDt theValue) {
|
||||
public Media setWidth(IntegerDt theValue) {
|
||||
myWidth = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>width</b> (Width of the image in pixels (photo/video))
|
||||
*
|
||||
@ -716,8 +650,9 @@ public class Media extends BaseResource implements IResource {
|
||||
* Width of the image in pixels (photo/video)
|
||||
* </p>
|
||||
*/
|
||||
public void setWidth( Integer theInteger) {
|
||||
public Media setWidth( Integer theInteger) {
|
||||
myWidth = new IntegerDt(theInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -746,11 +681,11 @@ public class Media extends BaseResource implements IResource {
|
||||
* 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) {
|
||||
public Media setFrames(IntegerDt theValue) {
|
||||
myFrames = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>frames</b> (Number of frames if > 1 (photo))
|
||||
*
|
||||
@ -759,8 +694,9 @@ public class Media extends BaseResource implements IResource {
|
||||
* 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) {
|
||||
public Media setFrames( Integer theInteger) {
|
||||
myFrames = new IntegerDt(theInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -789,11 +725,11 @@ public class Media extends BaseResource implements IResource {
|
||||
* The length of the recording in seconds - for audio and video
|
||||
* </p>
|
||||
*/
|
||||
public void setLength(IntegerDt theValue) {
|
||||
public Media setLength(IntegerDt theValue) {
|
||||
myLength = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>length</b> (Length in seconds (audio / video))
|
||||
*
|
||||
@ -802,8 +738,9 @@ public class Media extends BaseResource implements IResource {
|
||||
* The length of the recording in seconds - for audio and video
|
||||
* </p>
|
||||
*/
|
||||
public void setLength( Integer theInteger) {
|
||||
public Media setLength( Integer theInteger) {
|
||||
myLength = new IntegerDt(theInteger);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -832,11 +769,11 @@ public class Media extends BaseResource implements IResource {
|
||||
* The actual content of the media - inline or by direct reference to the media source file
|
||||
* </p>
|
||||
*/
|
||||
public void setContent(AttachmentDt theValue) {
|
||||
public Media setContent(AttachmentDt theValue) {
|
||||
myContent = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -17,113 +17,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 java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ContactDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Device;
|
||||
import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Group;
|
||||
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Location;
|
||||
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.dstu.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Media;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Medication;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Observation;
|
||||
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.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Patient;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
|
||||
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.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
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.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Substance;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
|
||||
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.dstu.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.BoundCodeableConceptDt;
|
||||
import ca.uhn.fhir.model.primitive.CodeDt;
|
||||
import ca.uhn.fhir.model.primitive.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
@ -306,11 +218,11 @@ public class Medication extends BaseResource implements IResource {
|
||||
* The common/commercial name of the medication absent information such as strength, form, etc. E.g. Acetaminophen, Tylenol 3, etc. The fully coordinated name is communicated as the display of Medication.code
|
||||
* </p>
|
||||
*/
|
||||
public void setName(StringDt theValue) {
|
||||
public Medication setName(StringDt theValue) {
|
||||
myName = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>name</b> (Common / Commercial name)
|
||||
*
|
||||
@ -319,8 +231,9 @@ public class Medication extends BaseResource implements IResource {
|
||||
* The common/commercial name of the medication absent information such as strength, form, etc. E.g. Acetaminophen, Tylenol 3, etc. The fully coordinated name is communicated as the display of Medication.code
|
||||
* </p>
|
||||
*/
|
||||
public void setName( String theString) {
|
||||
public Medication setName( String theString) {
|
||||
myName = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -349,11 +262,11 @@ public class Medication extends BaseResource implements IResource {
|
||||
* A code (or set of codes) that identify this medication. Usage note: This could be a standard drug code such as a drug regulator code, RxNorm code, SNOMED CT code, etc. It could also be a local formulary code, optionally with translations to the standard drug codes
|
||||
* </p>
|
||||
*/
|
||||
public void setCode(CodeableConceptDt theValue) {
|
||||
public Medication setCode(CodeableConceptDt theValue) {
|
||||
myCode = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>isBrand</b> (True if a brand).
|
||||
@ -380,11 +293,11 @@ public class Medication extends BaseResource implements IResource {
|
||||
* Set to true if the item is attributable to a specific manufacturer (even if we don't know who that is)
|
||||
* </p>
|
||||
*/
|
||||
public void setIsBrand(BooleanDt theValue) {
|
||||
public Medication setIsBrand(BooleanDt theValue) {
|
||||
myIsBrand = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>isBrand</b> (True if a brand)
|
||||
*
|
||||
@ -393,8 +306,9 @@ public class Medication extends BaseResource implements IResource {
|
||||
* Set to true if the item is attributable to a specific manufacturer (even if we don't know who that is)
|
||||
* </p>
|
||||
*/
|
||||
public void setIsBrand( Boolean theBoolean) {
|
||||
public Medication setIsBrand( Boolean theBoolean) {
|
||||
myIsBrand = new BooleanDt(theBoolean);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -423,11 +337,11 @@ public class Medication extends BaseResource implements IResource {
|
||||
* Describes the details of the manufacturer
|
||||
* </p>
|
||||
*/
|
||||
public void setManufacturer(ResourceReferenceDt theValue) {
|
||||
public Medication setManufacturer(ResourceReferenceDt theValue) {
|
||||
myManufacturer = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>kind</b> (product | package).
|
||||
@ -454,11 +368,11 @@ public class Medication extends BaseResource implements IResource {
|
||||
* Medications are either a single administrable product or a package that contains one or more products.
|
||||
* </p>
|
||||
*/
|
||||
public void setKind(BoundCodeDt<MedicationKindEnum> theValue) {
|
||||
public Medication setKind(BoundCodeDt<MedicationKindEnum> theValue) {
|
||||
myKind = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>kind</b> (product | package)
|
||||
*
|
||||
@ -467,8 +381,9 @@ public class Medication extends BaseResource implements IResource {
|
||||
* Medications are either a single administrable product or a package that contains one or more products.
|
||||
* </p>
|
||||
*/
|
||||
public void setKind(MedicationKindEnum theValue) {
|
||||
public Medication setKind(MedicationKindEnum theValue) {
|
||||
getKind().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -497,11 +412,11 @@ public class Medication extends BaseResource implements IResource {
|
||||
* Information that only applies to products (not packages)
|
||||
* </p>
|
||||
*/
|
||||
public void setProduct(Product theValue) {
|
||||
public Medication setProduct(Product theValue) {
|
||||
myProduct = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>package</b> (Details about packaged medications).
|
||||
@ -528,11 +443,11 @@ public class Medication extends BaseResource implements IResource {
|
||||
* Information that only applies to packages (not products)
|
||||
* </p>
|
||||
*/
|
||||
public void setPackage(CodeDt theValue) {
|
||||
public Medication setPackage(CodeDt theValue) {
|
||||
myPackage = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>package</b> (Details about packaged medications)
|
||||
*
|
||||
@ -541,8 +456,9 @@ public class Medication extends BaseResource implements IResource {
|
||||
* Information that only applies to packages (not products)
|
||||
* </p>
|
||||
*/
|
||||
public void setPackage( String theCode) {
|
||||
public Medication setPackage( String theCode) {
|
||||
myPackage = new CodeDt(theCode);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -612,11 +528,11 @@ public class Medication extends BaseResource implements IResource {
|
||||
* Describes the form of the item. Powder; tables; carton
|
||||
* </p>
|
||||
*/
|
||||
public void setForm(CodeableConceptDt theValue) {
|
||||
public Product setForm(CodeableConceptDt theValue) {
|
||||
myForm = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>ingredient</b> (Active or inactive ingredient).
|
||||
@ -643,8 +559,9 @@ public class Medication extends BaseResource implements IResource {
|
||||
* Identifies a particular constituent of interest in the product
|
||||
* </p>
|
||||
*/
|
||||
public void setIngredient(java.util.List<ProductIngredient> theValue) {
|
||||
public Product setIngredient(java.util.List<ProductIngredient> theValue) {
|
||||
myIngredient = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -661,6 +578,21 @@ public class Medication extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>ingredient</b> (Active or inactive ingredient),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies a particular constituent of interest in the product
|
||||
* </p>
|
||||
*/
|
||||
public ProductIngredient getIngredientFirstRep() {
|
||||
if (getIngredient().isEmpty()) {
|
||||
return addIngredient();
|
||||
}
|
||||
return getIngredient().get(0);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -731,11 +663,11 @@ public class Medication extends BaseResource implements IResource {
|
||||
* The actual ingredient - either a substance (simple ingredient) or another medication
|
||||
* </p>
|
||||
*/
|
||||
public void setItem(ResourceReferenceDt theValue) {
|
||||
public ProductIngredient setItem(ResourceReferenceDt theValue) {
|
||||
myItem = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>amount</b> (How much ingredient in product).
|
||||
@ -762,11 +694,11 @@ public class Medication extends BaseResource implements IResource {
|
||||
* Specifies how many (or how much) of the items there are in this Medication. E.g. 250 mg per tablet
|
||||
* </p>
|
||||
*/
|
||||
public void setAmount(RatioDt theValue) {
|
||||
public ProductIngredient setAmount(RatioDt theValue) {
|
||||
myAmount = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,113 +17,39 @@
|
||||
package ca.uhn.fhir.model.dstu.resource;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
|
||||
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.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ContactDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Device;
|
||||
import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Group;
|
||||
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Location;
|
||||
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.dstu.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Media;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Medication;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Observation;
|
||||
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.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Patient;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
|
||||
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.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
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.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Substance;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dstu.composite.DurationDt;
|
||||
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.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
@ -469,11 +395,11 @@ public class Observation extends BaseResource implements IResource {
|
||||
* Describes what was observed. Sometimes this is called the observation \"code\"
|
||||
* </p>
|
||||
*/
|
||||
public void setName(CodeableConceptDt theValue) {
|
||||
public Observation setName(CodeableConceptDt theValue) {
|
||||
myName = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>value[x]</b> (Actual result).
|
||||
@ -497,11 +423,11 @@ public class Observation extends BaseResource implements IResource {
|
||||
* The information determined as a result of making the observation, if the information has a simple value
|
||||
* </p>
|
||||
*/
|
||||
public void setValue(IDatatype theValue) {
|
||||
public Observation setValue(IDatatype theValue) {
|
||||
myValue = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>interpretation</b> (High, low, normal, etc.).
|
||||
@ -528,11 +454,11 @@ public class Observation extends BaseResource implements IResource {
|
||||
* The assessment made based on the result of the observation.
|
||||
* </p>
|
||||
*/
|
||||
public void setInterpretation(BoundCodeableConceptDt<ObservationInterpretationCodesEnum> theValue) {
|
||||
public Observation setInterpretation(BoundCodeableConceptDt<ObservationInterpretationCodesEnum> theValue) {
|
||||
myInterpretation = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>interpretation</b> (High, low, normal, etc.)
|
||||
*
|
||||
@ -541,8 +467,9 @@ public class Observation extends BaseResource implements IResource {
|
||||
* The assessment made based on the result of the observation.
|
||||
* </p>
|
||||
*/
|
||||
public void setInterpretation(ObservationInterpretationCodesEnum theValue) {
|
||||
public Observation setInterpretation(ObservationInterpretationCodesEnum theValue) {
|
||||
getInterpretation().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -571,11 +498,11 @@ public class Observation extends BaseResource implements IResource {
|
||||
* May include statements about significant, unexpected or unreliable values, or information about the source of the value where this may be relevant to the interpretation of the result.
|
||||
* </p>
|
||||
*/
|
||||
public void setComments(StringDt theValue) {
|
||||
public Observation setComments(StringDt theValue) {
|
||||
myComments = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>comments</b> (Comments about result)
|
||||
*
|
||||
@ -584,8 +511,9 @@ public class Observation extends BaseResource implements IResource {
|
||||
* May include statements about significant, unexpected or unreliable values, or information about the source of the value where this may be relevant to the interpretation of the result.
|
||||
* </p>
|
||||
*/
|
||||
public void setComments( String theString) {
|
||||
public Observation setComments( String theString) {
|
||||
myComments = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -611,11 +539,11 @@ public class Observation extends BaseResource implements IResource {
|
||||
* The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself
|
||||
* </p>
|
||||
*/
|
||||
public void setApplies(IDatatype theValue) {
|
||||
public Observation setApplies(IDatatype theValue) {
|
||||
myApplies = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>issued</b> (Date/Time this was made available).
|
||||
@ -642,11 +570,11 @@ public class Observation extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setIssued(InstantDt theValue) {
|
||||
public Observation setIssued(InstantDt theValue) {
|
||||
myIssued = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>issued</b> (Date/Time this was made available)
|
||||
*
|
||||
@ -655,8 +583,9 @@ public class Observation extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setIssued( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myIssued = new InstantDt(theDate, thePrecision);
|
||||
public Observation setIssuedWithMillisPrecision( Date theDate) {
|
||||
myIssued = new InstantDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -667,8 +596,9 @@ public class Observation extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setIssuedWithMillisPrecision( Date theDate) {
|
||||
myIssued = new InstantDt(theDate);
|
||||
public Observation setIssued( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myIssued = new InstantDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -697,11 +627,11 @@ public class Observation extends BaseResource implements IResource {
|
||||
* The status of the result value
|
||||
* </p>
|
||||
*/
|
||||
public void setStatus(BoundCodeDt<ObservationStatusEnum> theValue) {
|
||||
public Observation setStatus(BoundCodeDt<ObservationStatusEnum> theValue) {
|
||||
myStatus = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>status</b> (registered | preliminary | final | amended +)
|
||||
*
|
||||
@ -710,8 +640,9 @@ public class Observation extends BaseResource implements IResource {
|
||||
* The status of the result value
|
||||
* </p>
|
||||
*/
|
||||
public void setStatus(ObservationStatusEnum theValue) {
|
||||
public Observation setStatus(ObservationStatusEnum theValue) {
|
||||
getStatus().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -740,11 +671,11 @@ public class Observation extends BaseResource implements IResource {
|
||||
* An estimate of the degree to which quality issues have impacted on the value reported
|
||||
* </p>
|
||||
*/
|
||||
public void setReliability(BoundCodeDt<ObservationReliabilityEnum> theValue) {
|
||||
public Observation setReliability(BoundCodeDt<ObservationReliabilityEnum> theValue) {
|
||||
myReliability = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>reliability</b> (ok | ongoing | early | questionable | calibrating | error +)
|
||||
*
|
||||
@ -753,8 +684,9 @@ public class Observation extends BaseResource implements IResource {
|
||||
* An estimate of the degree to which quality issues have impacted on the value reported
|
||||
* </p>
|
||||
*/
|
||||
public void setReliability(ObservationReliabilityEnum theValue) {
|
||||
public Observation setReliability(ObservationReliabilityEnum theValue) {
|
||||
getReliability().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -783,11 +715,11 @@ public class Observation extends BaseResource implements IResource {
|
||||
* Indicates where on the subject's body the observation was made.
|
||||
* </p>
|
||||
*/
|
||||
public void setBodySite(CodeableConceptDt theValue) {
|
||||
public Observation setBodySite(CodeableConceptDt theValue) {
|
||||
myBodySite = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>method</b> (How it was done).
|
||||
@ -814,11 +746,11 @@ public class Observation extends BaseResource implements IResource {
|
||||
* Indicates the mechanism used to perform the observation
|
||||
* </p>
|
||||
*/
|
||||
public void setMethod(CodeableConceptDt theValue) {
|
||||
public Observation setMethod(CodeableConceptDt theValue) {
|
||||
myMethod = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>identifier</b> (Unique Id for this particular observation).
|
||||
@ -845,11 +777,11 @@ public class Observation extends BaseResource implements IResource {
|
||||
* A unique identifier for the simple observation
|
||||
* </p>
|
||||
*/
|
||||
public void setIdentifier(IdentifierDt theValue) {
|
||||
public Observation setIdentifier(IdentifierDt theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>subject</b> (Who and/or what this is about).
|
||||
@ -873,11 +805,11 @@ public class Observation extends BaseResource implements IResource {
|
||||
* The thing the observation is being made about
|
||||
* </p>
|
||||
*/
|
||||
public void setSubject(ResourceReferenceDt theValue) {
|
||||
public Observation setSubject(ResourceReferenceDt theValue) {
|
||||
mySubject = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>specimen</b> (Specimen used for this observation).
|
||||
@ -904,11 +836,11 @@ public class Observation extends BaseResource implements IResource {
|
||||
* The specimen that was used when this observation was made
|
||||
* </p>
|
||||
*/
|
||||
public void setSpecimen(ResourceReferenceDt theValue) {
|
||||
public Observation setSpecimen(ResourceReferenceDt theValue) {
|
||||
mySpecimen = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>performer</b> (Who did the observation).
|
||||
@ -932,11 +864,24 @@ public class Observation extends BaseResource implements IResource {
|
||||
* Who was responsible for asserting the observed value as \"true\"
|
||||
* </p>
|
||||
*/
|
||||
public void setPerformer(java.util.List<ResourceReferenceDt> theValue) {
|
||||
public Observation setPerformer(java.util.List<ResourceReferenceDt> theValue) {
|
||||
myPerformer = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>performer</b> (Who did the observation)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Who was responsible for asserting the observed value as \"true\"
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt addPerformer() {
|
||||
ResourceReferenceDt newType = new ResourceReferenceDt();
|
||||
getPerformer().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>referenceRange</b> (Provides guide for interpretation).
|
||||
@ -963,8 +908,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 void setReferenceRange(java.util.List<ReferenceRange> theValue) {
|
||||
public Observation setReferenceRange(java.util.List<ReferenceRange> theValue) {
|
||||
myReferenceRange = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -981,6 +927,21 @@ public class Observation extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>referenceRange</b> (Provides guide for interpretation),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Guidance on how to interpret the value by comparison to a normal or recommended range
|
||||
* </p>
|
||||
*/
|
||||
public ReferenceRange getReferenceRangeFirstRep() {
|
||||
if (getReferenceRange().isEmpty()) {
|
||||
return addReferenceRange();
|
||||
}
|
||||
return getReferenceRange().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>related</b> (Observations related to this observation).
|
||||
@ -1007,8 +968,9 @@ public class Observation extends BaseResource implements IResource {
|
||||
* Related observations - either components, or previous observations, or statements of derivation
|
||||
* </p>
|
||||
*/
|
||||
public void setRelated(java.util.List<Related> theValue) {
|
||||
public Observation setRelated(java.util.List<Related> theValue) {
|
||||
myRelated = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1025,6 +987,21 @@ public class Observation extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>related</b> (Observations related to this observation),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Related observations - either components, or previous observations, or statements of derivation
|
||||
* </p>
|
||||
*/
|
||||
public Related getRelatedFirstRep() {
|
||||
if (getRelated().isEmpty()) {
|
||||
return addRelated();
|
||||
}
|
||||
return getRelated().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Block class for child element: <b>Observation.referenceRange</b> (Provides guide for interpretation)
|
||||
@ -1106,11 +1083,11 @@ public class Observation extends BaseResource implements IResource {
|
||||
* The value of the low bound of the reference range. If this is omitted, the low bound of the reference range is assumed to be meaningless. E.g. <2.3
|
||||
* </p>
|
||||
*/
|
||||
public void setLow(QuantityDt theValue) {
|
||||
public ReferenceRange setLow(QuantityDt theValue) {
|
||||
myLow = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>high</b> (High Range, if relevant).
|
||||
@ -1137,11 +1114,11 @@ public class Observation extends BaseResource implements IResource {
|
||||
* The value of the high bound of the reference range. If this is omitted, the high bound of the reference range is assumed to be meaningless. E.g. >5
|
||||
* </p>
|
||||
*/
|
||||
public void setHigh(QuantityDt theValue) {
|
||||
public ReferenceRange setHigh(QuantityDt theValue) {
|
||||
myHigh = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>meaning</b> (Indicates the meaning/use of this range of this range).
|
||||
@ -1168,11 +1145,11 @@ public class Observation extends BaseResource implements IResource {
|
||||
* Code for the meaning of the reference range
|
||||
* </p>
|
||||
*/
|
||||
public void setMeaning(CodeableConceptDt theValue) {
|
||||
public ReferenceRange setMeaning(CodeableConceptDt theValue) {
|
||||
myMeaning = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>age</b> (Applicable age range, if relevant).
|
||||
@ -1199,11 +1176,11 @@ public class Observation extends BaseResource implements IResource {
|
||||
* The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so
|
||||
* </p>
|
||||
*/
|
||||
public void setAge(RangeDt theValue) {
|
||||
public ReferenceRange setAge(RangeDt theValue) {
|
||||
myAge = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -1277,11 +1254,11 @@ public class Observation extends BaseResource implements IResource {
|
||||
* A code specifying the kind of relationship that exists with the target observation
|
||||
* </p>
|
||||
*/
|
||||
public void setType(BoundCodeDt<ObservationRelationshipTypeEnum> theValue) {
|
||||
public Related setType(BoundCodeDt<ObservationRelationshipTypeEnum> theValue) {
|
||||
myType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>type</b> (has-component | has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by)
|
||||
*
|
||||
@ -1290,8 +1267,9 @@ public class Observation extends BaseResource implements IResource {
|
||||
* A code specifying the kind of relationship that exists with the target observation
|
||||
* </p>
|
||||
*/
|
||||
public void setType(ObservationRelationshipTypeEnum theValue) {
|
||||
public Related setType(ObservationRelationshipTypeEnum theValue) {
|
||||
getType().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1320,11 +1298,11 @@ public class Observation extends BaseResource implements IResource {
|
||||
* A reference to the observation that is related to this observation
|
||||
* </p>
|
||||
*/
|
||||
public void setTarget(ResourceReferenceDt theValue) {
|
||||
public Related setTarget(ResourceReferenceDt theValue) {
|
||||
myTarget = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,113 +17,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 java.util.List;
|
||||
|
||||
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.valueset.AdministrativeGenderCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ContactDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Device;
|
||||
import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Group;
|
||||
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Location;
|
||||
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.dstu.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Media;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Medication;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Observation;
|
||||
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.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Patient;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
|
||||
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.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
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.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Substance;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dstu.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.BoundCodeDt;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt;
|
||||
import ca.uhn.fhir.model.primitive.CodeDt;
|
||||
import ca.uhn.fhir.model.primitive.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
@ -322,8 +237,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 void setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
public Organization setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -340,6 +256,21 @@ public class Organization extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>identifier</b> (Identifies this organization across multiple systems),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifier for the organization that is used to identify the organization across multiple disparate systems
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt getIdentifierFirstRep() {
|
||||
if (getIdentifier().isEmpty()) {
|
||||
return addIdentifier();
|
||||
}
|
||||
return getIdentifier().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>name</b> (Name used for the organization).
|
||||
@ -366,11 +297,11 @@ public class Organization extends BaseResource implements IResource {
|
||||
* A name associated with the organization
|
||||
* </p>
|
||||
*/
|
||||
public void setName(StringDt theValue) {
|
||||
public Organization setName(StringDt theValue) {
|
||||
myName = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>name</b> (Name used for the organization)
|
||||
*
|
||||
@ -379,8 +310,9 @@ public class Organization extends BaseResource implements IResource {
|
||||
* A name associated with the organization
|
||||
* </p>
|
||||
*/
|
||||
public void setName( String theString) {
|
||||
public Organization setName( String theString) {
|
||||
myName = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -409,11 +341,11 @@ public class Organization extends BaseResource implements IResource {
|
||||
* The kind of organization that this is
|
||||
* </p>
|
||||
*/
|
||||
public void setType(BoundCodeableConceptDt<OrganizationTypeEnum> theValue) {
|
||||
public Organization setType(BoundCodeableConceptDt<OrganizationTypeEnum> theValue) {
|
||||
myType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>type</b> (Kind of organization)
|
||||
*
|
||||
@ -422,8 +354,9 @@ public class Organization extends BaseResource implements IResource {
|
||||
* The kind of organization that this is
|
||||
* </p>
|
||||
*/
|
||||
public void setType(OrganizationTypeEnum theValue) {
|
||||
public Organization setType(OrganizationTypeEnum theValue) {
|
||||
getType().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -452,8 +385,9 @@ public class Organization extends BaseResource implements IResource {
|
||||
* A contact detail for the organization
|
||||
* </p>
|
||||
*/
|
||||
public void setTelecom(java.util.List<ContactDt> theValue) {
|
||||
public Organization setTelecom(java.util.List<ContactDt> theValue) {
|
||||
myTelecom = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -470,6 +404,21 @@ public class Organization extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>telecom</b> (A contact detail for the organization),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A contact detail for the organization
|
||||
* </p>
|
||||
*/
|
||||
public ContactDt getTelecomFirstRep() {
|
||||
if (getTelecom().isEmpty()) {
|
||||
return addTelecom();
|
||||
}
|
||||
return getTelecom().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>address</b> (An address for the organization).
|
||||
@ -496,8 +445,9 @@ public class Organization extends BaseResource implements IResource {
|
||||
* An address for the organization
|
||||
* </p>
|
||||
*/
|
||||
public void setAddress(java.util.List<AddressDt> theValue) {
|
||||
public Organization setAddress(java.util.List<AddressDt> theValue) {
|
||||
myAddress = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -514,6 +464,21 @@ public class Organization extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>address</b> (An address for the organization),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* An address for the organization
|
||||
* </p>
|
||||
*/
|
||||
public AddressDt getAddressFirstRep() {
|
||||
if (getAddress().isEmpty()) {
|
||||
return addAddress();
|
||||
}
|
||||
return getAddress().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>partOf</b> (The organization of which this organization forms a part).
|
||||
@ -540,11 +505,11 @@ public class Organization extends BaseResource implements IResource {
|
||||
* The organization of which this organization forms a part
|
||||
* </p>
|
||||
*/
|
||||
public void setPartOf(ResourceReferenceDt theValue) {
|
||||
public Organization setPartOf(ResourceReferenceDt theValue) {
|
||||
myPartOf = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>contact</b> (Contact for the organization for a certain purpose).
|
||||
@ -571,8 +536,9 @@ public class Organization extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setContact(java.util.List<Contact> theValue) {
|
||||
public Organization setContact(java.util.List<Contact> theValue) {
|
||||
myContact = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -589,6 +555,21 @@ public class Organization extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>contact</b> (Contact for the organization for a certain purpose),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Contact getContactFirstRep() {
|
||||
if (getContact().isEmpty()) {
|
||||
return addContact();
|
||||
}
|
||||
return getContact().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>location</b> (Location(s) the organization uses to provide services).
|
||||
@ -615,11 +596,24 @@ public class Organization extends BaseResource implements IResource {
|
||||
* Location(s) the organization uses to provide services
|
||||
* </p>
|
||||
*/
|
||||
public void setLocation(java.util.List<ResourceReferenceDt> theValue) {
|
||||
public Organization setLocation(java.util.List<ResourceReferenceDt> theValue) {
|
||||
myLocation = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>location</b> (Location(s) the organization uses to provide services)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Location(s) the organization uses to provide services
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt addLocation() {
|
||||
ResourceReferenceDt newType = new ResourceReferenceDt();
|
||||
getLocation().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>active</b> (Whether the organization's record is still in active use).
|
||||
@ -646,11 +640,11 @@ public class Organization extends BaseResource implements IResource {
|
||||
* Whether the organization's record is still in active use
|
||||
* </p>
|
||||
*/
|
||||
public void setActive(BooleanDt theValue) {
|
||||
public Organization setActive(BooleanDt theValue) {
|
||||
myActive = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>active</b> (Whether the organization's record is still in active use)
|
||||
*
|
||||
@ -659,8 +653,9 @@ public class Organization extends BaseResource implements IResource {
|
||||
* Whether the organization's record is still in active use
|
||||
* </p>
|
||||
*/
|
||||
public void setActive( Boolean theBoolean) {
|
||||
public Organization setActive( Boolean theBoolean) {
|
||||
myActive = new BooleanDt(theBoolean);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -751,11 +746,11 @@ public class Organization extends BaseResource implements IResource {
|
||||
* Indicates a purpose for which the contact can be reached
|
||||
* </p>
|
||||
*/
|
||||
public void setPurpose(CodeableConceptDt theValue) {
|
||||
public Contact setPurpose(CodeableConceptDt theValue) {
|
||||
myPurpose = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>name</b> (A name associated with the contact).
|
||||
@ -782,11 +777,11 @@ public class Organization extends BaseResource implements IResource {
|
||||
* A name associated with the contact
|
||||
* </p>
|
||||
*/
|
||||
public void setName(HumanNameDt theValue) {
|
||||
public Contact setName(HumanNameDt theValue) {
|
||||
myName = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>telecom</b> (Contact details (telephone, email, etc) for a contact).
|
||||
@ -813,8 +808,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 void setTelecom(java.util.List<ContactDt> theValue) {
|
||||
public Contact setTelecom(java.util.List<ContactDt> theValue) {
|
||||
myTelecom = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -831,6 +827,21 @@ public class Organization extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>telecom</b> (Contact details (telephone, email, etc) for a contact),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A contact detail (e.g. a telephone number or an email address) by which the party may be contacted.
|
||||
* </p>
|
||||
*/
|
||||
public ContactDt getTelecomFirstRep() {
|
||||
if (getTelecom().isEmpty()) {
|
||||
return addTelecom();
|
||||
}
|
||||
return getTelecom().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>address</b> (Visiting or postal addresses for the contact).
|
||||
@ -857,11 +868,11 @@ public class Organization extends BaseResource implements IResource {
|
||||
* Visiting or postal addresses for the contact
|
||||
* </p>
|
||||
*/
|
||||
public void setAddress(AddressDt theValue) {
|
||||
public Contact setAddress(AddressDt theValue) {
|
||||
myAddress = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>gender</b> (Gender for administrative purposes).
|
||||
@ -888,11 +899,11 @@ public class Organization extends BaseResource implements IResource {
|
||||
* Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.
|
||||
* </p>
|
||||
*/
|
||||
public void setGender(BoundCodeableConceptDt<AdministrativeGenderCodesEnum> theValue) {
|
||||
public Contact setGender(BoundCodeableConceptDt<AdministrativeGenderCodesEnum> theValue) {
|
||||
myGender = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>gender</b> (Gender for administrative purposes)
|
||||
*
|
||||
@ -901,8 +912,9 @@ public class Organization extends BaseResource implements IResource {
|
||||
* Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.
|
||||
* </p>
|
||||
*/
|
||||
public void setGender(AdministrativeGenderCodesEnum theValue) {
|
||||
public Contact setGender(AdministrativeGenderCodesEnum theValue) {
|
||||
getGender().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
@ -17,114 +17,37 @@
|
||||
package ca.uhn.fhir.model.dstu.resource;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
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.valueset.AdministrativeGenderCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ContactDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Device;
|
||||
import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Group;
|
||||
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Location;
|
||||
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.dstu.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Media;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Medication;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Observation;
|
||||
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.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Patient;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
|
||||
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.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
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.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Substance;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dstu.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
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.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
import com.sun.org.apache.bcel.internal.classfile.Code;
|
||||
|
||||
|
||||
/**
|
||||
@ -424,18 +347,11 @@ public class Patient extends BaseResource implements IResource {
|
||||
formalDefinition="Whether this patient record is in active use"
|
||||
)
|
||||
private BooleanDt myActive;
|
||||
|
||||
@Child(name="cautionNote", type=StringDt.class, order=17, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition = "Complete caution note",
|
||||
formalDefinition = "List of substances that may elicit a response from the patient."
|
||||
)
|
||||
private List<StringDt> myCautionNote;
|
||||
|
||||
|
||||
@Override
|
||||
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, myCautionNote);
|
||||
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);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -445,7 +361,7 @@ public class Patient extends BaseResource implements IResource {
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myName, myTelecom, myGender, myBirthDate, myDeceased, myAddress, myMaritalStatus, myMultipleBirth, myPhoto, myContact, myAnimal, myCommunication, myCareProvider, myManagingOrganization, myLink, myActive, myCautionNote);
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myName, myTelecom, myGender, myBirthDate, myDeceased, myAddress, myMaritalStatus, myMultipleBirth, myPhoto, myContact, myAnimal, myCommunication, myCareProvider, myManagingOrganization, myLink, myActive);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -473,8 +389,9 @@ public class Patient extends BaseResource implements IResource {
|
||||
* An identifier that applies to this person as a patient
|
||||
* </p>
|
||||
*/
|
||||
public void setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
public Patient setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -491,6 +408,21 @@ public class Patient extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>identifier</b> (An identifier for the person as this patient),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* An identifier that applies to this person as a patient
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt getIdentifierFirstRep() {
|
||||
if (getIdentifier().isEmpty()) {
|
||||
return addIdentifier();
|
||||
}
|
||||
return getIdentifier().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>name</b> (A name associated with the patient).
|
||||
@ -517,8 +449,9 @@ public class Patient extends BaseResource implements IResource {
|
||||
* A name associated with the individual.
|
||||
* </p>
|
||||
*/
|
||||
public void setName(java.util.List<HumanNameDt> theValue) {
|
||||
public Patient setName(java.util.List<HumanNameDt> theValue) {
|
||||
myName = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -535,6 +468,21 @@ public class Patient extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>name</b> (A name associated with the patient),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A name associated with the individual.
|
||||
* </p>
|
||||
*/
|
||||
public HumanNameDt getNameFirstRep() {
|
||||
if (getName().isEmpty()) {
|
||||
return addName();
|
||||
}
|
||||
return getName().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>telecom</b> (A contact detail for the individual).
|
||||
@ -561,8 +509,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 void setTelecom(java.util.List<ContactDt> theValue) {
|
||||
public Patient setTelecom(java.util.List<ContactDt> theValue) {
|
||||
myTelecom = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -579,6 +528,21 @@ public class Patient extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>telecom</b> (A contact detail for the individual),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted.
|
||||
* </p>
|
||||
*/
|
||||
public ContactDt getTelecomFirstRep() {
|
||||
if (getTelecom().isEmpty()) {
|
||||
return addTelecom();
|
||||
}
|
||||
return getTelecom().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>gender</b> (Gender for administrative purposes).
|
||||
@ -605,11 +569,11 @@ public class Patient extends BaseResource implements IResource {
|
||||
* Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes.
|
||||
* </p>
|
||||
*/
|
||||
public void setGender(BoundCodeableConceptDt<AdministrativeGenderCodesEnum> theValue) {
|
||||
public Patient setGender(BoundCodeableConceptDt<AdministrativeGenderCodesEnum> theValue) {
|
||||
myGender = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>gender</b> (Gender for administrative purposes)
|
||||
*
|
||||
@ -618,8 +582,9 @@ public class Patient extends BaseResource implements IResource {
|
||||
* Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes.
|
||||
* </p>
|
||||
*/
|
||||
public void setGender(AdministrativeGenderCodesEnum theValue) {
|
||||
public Patient setGender(AdministrativeGenderCodesEnum theValue) {
|
||||
getGender().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -648,11 +613,11 @@ public class Patient extends BaseResource implements IResource {
|
||||
* The date and time of birth for the individual
|
||||
* </p>
|
||||
*/
|
||||
public void setBirthDate(DateTimeDt theValue) {
|
||||
public Patient setBirthDate(DateTimeDt theValue) {
|
||||
myBirthDate = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>birthDate</b> (The date and time of birth for the individual)
|
||||
*
|
||||
@ -661,8 +626,9 @@ public class Patient extends BaseResource implements IResource {
|
||||
* The date and time of birth for the individual
|
||||
* </p>
|
||||
*/
|
||||
public void setBirthDate( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
public Patient setBirthDate( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myBirthDate = new DateTimeDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -673,8 +639,9 @@ public class Patient extends BaseResource implements IResource {
|
||||
* The date and time of birth for the individual
|
||||
* </p>
|
||||
*/
|
||||
public void setBirthDateWithSecondsPrecision( Date theDate) {
|
||||
public Patient setBirthDateWithSecondsPrecision( Date theDate) {
|
||||
myBirthDate = new DateTimeDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -700,11 +667,11 @@ public class Patient extends BaseResource implements IResource {
|
||||
* Indicates if the individual is deceased or not
|
||||
* </p>
|
||||
*/
|
||||
public void setDeceased(IDatatype theValue) {
|
||||
public Patient setDeceased(IDatatype theValue) {
|
||||
myDeceased = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>address</b> (Addresses for the individual).
|
||||
@ -731,8 +698,9 @@ public class Patient extends BaseResource implements IResource {
|
||||
* Addresses for the individual
|
||||
* </p>
|
||||
*/
|
||||
public void setAddress(java.util.List<AddressDt> theValue) {
|
||||
public Patient setAddress(java.util.List<AddressDt> theValue) {
|
||||
myAddress = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -749,6 +717,21 @@ public class Patient extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>address</b> (Addresses for the individual),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Addresses for the individual
|
||||
* </p>
|
||||
*/
|
||||
public AddressDt getAddressFirstRep() {
|
||||
if (getAddress().isEmpty()) {
|
||||
return addAddress();
|
||||
}
|
||||
return getAddress().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>maritalStatus</b> (Marital (civil) status of a person).
|
||||
@ -775,11 +758,11 @@ public class Patient extends BaseResource implements IResource {
|
||||
* This field contains a patient's most recent marital (civil) status.
|
||||
* </p>
|
||||
*/
|
||||
public void setMaritalStatus(BoundCodeableConceptDt<MaritalStatusCodesEnum> theValue) {
|
||||
public Patient setMaritalStatus(BoundCodeableConceptDt<MaritalStatusCodesEnum> theValue) {
|
||||
myMaritalStatus = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>maritalStatus</b> (Marital (civil) status of a person)
|
||||
*
|
||||
@ -788,8 +771,9 @@ public class Patient extends BaseResource implements IResource {
|
||||
* This field contains a patient's most recent marital (civil) status.
|
||||
* </p>
|
||||
*/
|
||||
public void setMaritalStatus(MaritalStatusCodesEnum theValue) {
|
||||
public Patient setMaritalStatus(MaritalStatusCodesEnum theValue) {
|
||||
getMaritalStatus().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -815,11 +799,11 @@ public class Patient extends BaseResource implements IResource {
|
||||
* Indicates whether the patient is part of a multiple or indicates the actual birth order.
|
||||
* </p>
|
||||
*/
|
||||
public void setMultipleBirth(IDatatype theValue) {
|
||||
public Patient setMultipleBirth(IDatatype theValue) {
|
||||
myMultipleBirth = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>photo</b> (Image of the person).
|
||||
@ -846,8 +830,9 @@ public class Patient extends BaseResource implements IResource {
|
||||
* Image of the person
|
||||
* </p>
|
||||
*/
|
||||
public void setPhoto(java.util.List<AttachmentDt> theValue) {
|
||||
public Patient setPhoto(java.util.List<AttachmentDt> theValue) {
|
||||
myPhoto = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -864,6 +849,21 @@ public class Patient extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>photo</b> (Image of the person),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Image of the person
|
||||
* </p>
|
||||
*/
|
||||
public AttachmentDt getPhotoFirstRep() {
|
||||
if (getPhoto().isEmpty()) {
|
||||
return addPhoto();
|
||||
}
|
||||
return getPhoto().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>contact</b> (A contact party (e.g. guardian, partner, friend) for the patient).
|
||||
@ -890,8 +890,9 @@ public class Patient extends BaseResource implements IResource {
|
||||
* A contact party (e.g. guardian, partner, friend) for the patient
|
||||
* </p>
|
||||
*/
|
||||
public void setContact(java.util.List<Contact> theValue) {
|
||||
public Patient setContact(java.util.List<Contact> theValue) {
|
||||
myContact = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -908,6 +909,21 @@ public class Patient extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>contact</b> (A contact party (e.g. guardian, partner, friend) for the patient),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A contact party (e.g. guardian, partner, friend) for the patient
|
||||
* </p>
|
||||
*/
|
||||
public Contact getContactFirstRep() {
|
||||
if (getContact().isEmpty()) {
|
||||
return addContact();
|
||||
}
|
||||
return getContact().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>animal</b> (If this patient is an animal (non-human)).
|
||||
@ -934,11 +950,11 @@ public class Patient extends BaseResource implements IResource {
|
||||
* This element has a value if the patient is an animal
|
||||
* </p>
|
||||
*/
|
||||
public void setAnimal(Animal theValue) {
|
||||
public Patient setAnimal(Animal theValue) {
|
||||
myAnimal = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>communication</b> (Languages which may be used to communicate with the patient about his or her health).
|
||||
@ -965,8 +981,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 void setCommunication(java.util.List<CodeableConceptDt> theValue) {
|
||||
public Patient setCommunication(java.util.List<CodeableConceptDt> theValue) {
|
||||
myCommunication = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -983,6 +1000,21 @@ public class Patient extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>communication</b> (Languages which may be used to communicate with the patient about his or her health),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Languages which may be used to communicate with the patient about his or her health
|
||||
* </p>
|
||||
*/
|
||||
public CodeableConceptDt getCommunicationFirstRep() {
|
||||
if (getCommunication().isEmpty()) {
|
||||
return addCommunication();
|
||||
}
|
||||
return getCommunication().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>careProvider</b> (Patient's nominated care provider).
|
||||
@ -1006,11 +1038,24 @@ public class Patient extends BaseResource implements IResource {
|
||||
* Patient's nominated care provider
|
||||
* </p>
|
||||
*/
|
||||
public void setCareProvider(java.util.List<ResourceReferenceDt> theValue) {
|
||||
public Patient setCareProvider(java.util.List<ResourceReferenceDt> theValue) {
|
||||
myCareProvider = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>careProvider</b> (Patient's nominated care provider)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Patient's nominated care provider
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt addCareProvider() {
|
||||
ResourceReferenceDt newType = new ResourceReferenceDt();
|
||||
getCareProvider().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>managingOrganization</b> (Organization that is the custodian of the patient record).
|
||||
@ -1037,11 +1082,11 @@ public class Patient extends BaseResource implements IResource {
|
||||
* Organization that is the custodian of the patient record
|
||||
* </p>
|
||||
*/
|
||||
public void setManagingOrganization(ResourceReferenceDt theValue) {
|
||||
public Patient setManagingOrganization(ResourceReferenceDt theValue) {
|
||||
myManagingOrganization = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>link</b> (Link to another patient resource that concerns the same actual person).
|
||||
@ -1068,8 +1113,9 @@ public class Patient extends BaseResource implements IResource {
|
||||
* Link to another patient resource that concerns the same actual person
|
||||
* </p>
|
||||
*/
|
||||
public void setLink(java.util.List<Link> theValue) {
|
||||
public Patient setLink(java.util.List<Link> theValue) {
|
||||
myLink = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1086,6 +1132,21 @@ public class Patient extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>link</b> (Link to another patient resource that concerns the same actual person),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Link to another patient resource that concerns the same actual person
|
||||
* </p>
|
||||
*/
|
||||
public Link getLinkFirstRep() {
|
||||
if (getLink().isEmpty()) {
|
||||
return addLink();
|
||||
}
|
||||
return getLink().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>active</b> (Whether this patient's record is in active use).
|
||||
@ -1112,11 +1173,11 @@ public class Patient extends BaseResource implements IResource {
|
||||
* Whether this patient record is in active use
|
||||
* </p>
|
||||
*/
|
||||
public void setActive(BooleanDt theValue) {
|
||||
public Patient setActive(BooleanDt theValue) {
|
||||
myActive = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>active</b> (Whether this patient's record is in active use)
|
||||
*
|
||||
@ -1125,29 +1186,11 @@ public class Patient extends BaseResource implements IResource {
|
||||
* Whether this patient record is in active use
|
||||
* </p>
|
||||
*/
|
||||
public void setActive( Boolean theBoolean) {
|
||||
public Patient setActive( Boolean theBoolean) {
|
||||
myActive = new BooleanDt(theBoolean);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the complete caution note (a list of substances and the responses a patient elicits)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Complete caution note
|
||||
* </p>
|
||||
*/
|
||||
public List<StringDt> getCautionNote(){ return myCautionNote; }
|
||||
|
||||
/**
|
||||
* Sets the value for the caution note
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Complete caution note
|
||||
* </p>
|
||||
*/
|
||||
public void setMyCautionNote(List<StringDt> theValue){ myCautionNote = theValue; }
|
||||
|
||||
/**
|
||||
* Block class for child element: <b>Patient.contact</b> (A contact party (e.g. guardian, partner, friend) for the patient)
|
||||
@ -1245,8 +1288,9 @@ public class Patient extends BaseResource implements IResource {
|
||||
* The nature of the relationship between the patient and the contact person
|
||||
* </p>
|
||||
*/
|
||||
public void setRelationship(java.util.List<CodeableConceptDt> theValue) {
|
||||
public Contact setRelationship(java.util.List<CodeableConceptDt> theValue) {
|
||||
myRelationship = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1263,6 +1307,21 @@ public class Patient extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>relationship</b> (The kind of relationship),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The nature of the relationship between the patient and the contact person
|
||||
* </p>
|
||||
*/
|
||||
public CodeableConceptDt getRelationshipFirstRep() {
|
||||
if (getRelationship().isEmpty()) {
|
||||
return addRelationship();
|
||||
}
|
||||
return getRelationship().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>name</b> (A name associated with the person).
|
||||
@ -1289,11 +1348,11 @@ public class Patient extends BaseResource implements IResource {
|
||||
* A name associated with the person
|
||||
* </p>
|
||||
*/
|
||||
public void setName(HumanNameDt theValue) {
|
||||
public Contact setName(HumanNameDt theValue) {
|
||||
myName = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>telecom</b> (A contact detail for the person).
|
||||
@ -1320,8 +1379,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 void setTelecom(java.util.List<ContactDt> theValue) {
|
||||
public Contact setTelecom(java.util.List<ContactDt> theValue) {
|
||||
myTelecom = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1338,6 +1398,21 @@ public class Patient extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>telecom</b> (A contact detail for the person),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A contact detail for the person, e.g. a telephone number or an email address.
|
||||
* </p>
|
||||
*/
|
||||
public ContactDt getTelecomFirstRep() {
|
||||
if (getTelecom().isEmpty()) {
|
||||
return addTelecom();
|
||||
}
|
||||
return getTelecom().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>address</b> (Address for the contact person).
|
||||
@ -1364,11 +1439,11 @@ public class Patient extends BaseResource implements IResource {
|
||||
* Address for the contact person
|
||||
* </p>
|
||||
*/
|
||||
public void setAddress(AddressDt theValue) {
|
||||
public Contact setAddress(AddressDt theValue) {
|
||||
myAddress = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>gender</b> (Gender for administrative purposes).
|
||||
@ -1395,11 +1470,11 @@ public class Patient extends BaseResource implements IResource {
|
||||
* Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.
|
||||
* </p>
|
||||
*/
|
||||
public void setGender(BoundCodeableConceptDt<AdministrativeGenderCodesEnum> theValue) {
|
||||
public Contact setGender(BoundCodeableConceptDt<AdministrativeGenderCodesEnum> theValue) {
|
||||
myGender = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>gender</b> (Gender for administrative purposes)
|
||||
*
|
||||
@ -1408,8 +1483,9 @@ public class Patient extends BaseResource implements IResource {
|
||||
* Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.
|
||||
* </p>
|
||||
*/
|
||||
public void setGender(AdministrativeGenderCodesEnum theValue) {
|
||||
public Contact setGender(AdministrativeGenderCodesEnum theValue) {
|
||||
getGender().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1438,11 +1514,11 @@ public class Patient extends BaseResource implements IResource {
|
||||
* Organization on behalf of which the contact is acting or for which the contact is working.
|
||||
* </p>
|
||||
*/
|
||||
public void setOrganization(ResourceReferenceDt theValue) {
|
||||
public Contact setOrganization(ResourceReferenceDt theValue) {
|
||||
myOrganization = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -1521,11 +1597,11 @@ public class Patient extends BaseResource implements IResource {
|
||||
* Identifies the high level categorization of the kind of animal
|
||||
* </p>
|
||||
*/
|
||||
public void setSpecies(BoundCodeableConceptDt<AnimalSpeciesEnum> theValue) {
|
||||
public Animal setSpecies(BoundCodeableConceptDt<AnimalSpeciesEnum> theValue) {
|
||||
mySpecies = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>species</b> (E.g. Dog, Cow)
|
||||
*
|
||||
@ -1534,8 +1610,9 @@ public class Patient extends BaseResource implements IResource {
|
||||
* Identifies the high level categorization of the kind of animal
|
||||
* </p>
|
||||
*/
|
||||
public void setSpecies(AnimalSpeciesEnum theValue) {
|
||||
public Animal setSpecies(AnimalSpeciesEnum theValue) {
|
||||
getSpecies().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1564,11 +1641,11 @@ public class Patient extends BaseResource implements IResource {
|
||||
* Identifies the detailed categorization of the kind of animal.
|
||||
* </p>
|
||||
*/
|
||||
public void setBreed(CodeableConceptDt theValue) {
|
||||
public Animal setBreed(CodeableConceptDt theValue) {
|
||||
myBreed = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>genderStatus</b> (E.g. Neutered, Intact).
|
||||
@ -1595,11 +1672,11 @@ public class Patient extends BaseResource implements IResource {
|
||||
* Indicates the current state of the animal's reproductive organs
|
||||
* </p>
|
||||
*/
|
||||
public void setGenderStatus(CodeableConceptDt theValue) {
|
||||
public Animal setGenderStatus(CodeableConceptDt theValue) {
|
||||
myGenderStatus = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -1673,11 +1750,11 @@ public class Patient extends BaseResource implements IResource {
|
||||
* The other patient resource that the link refers to
|
||||
* </p>
|
||||
*/
|
||||
public void setOther(ResourceReferenceDt theValue) {
|
||||
public Link setOther(ResourceReferenceDt theValue) {
|
||||
myOther = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>type</b> (replace | refer | seealso - type of link).
|
||||
@ -1704,11 +1781,11 @@ public class Patient extends BaseResource implements IResource {
|
||||
* The type of link between this patient resource and another patient resource.
|
||||
* </p>
|
||||
*/
|
||||
public void setType(BoundCodeDt<LinkTypeEnum> theValue) {
|
||||
public Link setType(BoundCodeDt<LinkTypeEnum> theValue) {
|
||||
myType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>type</b> (replace | refer | seealso - type of link)
|
||||
*
|
||||
@ -1717,11 +1794,12 @@ public class Patient extends BaseResource implements IResource {
|
||||
* The type of link between this patient resource and another patient resource.
|
||||
* </p>
|
||||
*/
|
||||
public void setType(LinkTypeEnum theValue) {
|
||||
public Link setType(LinkTypeEnum theValue) {
|
||||
getType().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@ -17,113 +17,32 @@
|
||||
package ca.uhn.fhir.model.dstu.resource;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
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.valueset.AdministrativeGenderCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ContactDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Device;
|
||||
import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Group;
|
||||
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Location;
|
||||
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.dstu.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Media;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Medication;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Observation;
|
||||
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.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Patient;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Practitioner;
|
||||
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.dstu.resource.Profile;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
|
||||
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.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
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.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Substance;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dstu.composite.DurationDt;
|
||||
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.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
@ -377,8 +296,9 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
* An identifier that applies to this person in this role
|
||||
* </p>
|
||||
*/
|
||||
public void setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
public Practitioner setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -395,6 +315,21 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>identifier</b> (A identifier for the person as this agent),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* An identifier that applies to this person in this role
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt getIdentifierFirstRep() {
|
||||
if (getIdentifier().isEmpty()) {
|
||||
return addIdentifier();
|
||||
}
|
||||
return getIdentifier().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>name</b> (A name associated with the person).
|
||||
@ -421,11 +356,11 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
* A name associated with the person
|
||||
* </p>
|
||||
*/
|
||||
public void setName(HumanNameDt theValue) {
|
||||
public Practitioner setName(HumanNameDt theValue) {
|
||||
myName = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>telecom</b> (A contact detail for the practitioner).
|
||||
@ -452,8 +387,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 void setTelecom(java.util.List<ContactDt> theValue) {
|
||||
public Practitioner setTelecom(java.util.List<ContactDt> theValue) {
|
||||
myTelecom = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -470,6 +406,21 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>telecom</b> (A contact detail for the practitioner),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A contact detail for the practitioner, e.g. a telephone number or an email address.
|
||||
* </p>
|
||||
*/
|
||||
public ContactDt getTelecomFirstRep() {
|
||||
if (getTelecom().isEmpty()) {
|
||||
return addTelecom();
|
||||
}
|
||||
return getTelecom().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>address</b> (Where practitioner can be found/visited).
|
||||
@ -496,11 +447,11 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
* The postal address where the practitioner can be found or visited or to which mail can be delivered
|
||||
* </p>
|
||||
*/
|
||||
public void setAddress(AddressDt theValue) {
|
||||
public Practitioner setAddress(AddressDt theValue) {
|
||||
myAddress = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>gender</b> (Gender for administrative purposes).
|
||||
@ -527,11 +478,11 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
* Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.
|
||||
* </p>
|
||||
*/
|
||||
public void setGender(BoundCodeableConceptDt<AdministrativeGenderCodesEnum> theValue) {
|
||||
public Practitioner setGender(BoundCodeableConceptDt<AdministrativeGenderCodesEnum> theValue) {
|
||||
myGender = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>gender</b> (Gender for administrative purposes)
|
||||
*
|
||||
@ -540,8 +491,9 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
* Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.
|
||||
* </p>
|
||||
*/
|
||||
public void setGender(AdministrativeGenderCodesEnum theValue) {
|
||||
public Practitioner setGender(AdministrativeGenderCodesEnum theValue) {
|
||||
getGender().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -570,11 +522,11 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
* The date and time of birth for the practitioner
|
||||
* </p>
|
||||
*/
|
||||
public void setBirthDate(DateTimeDt theValue) {
|
||||
public Practitioner setBirthDate(DateTimeDt theValue) {
|
||||
myBirthDate = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>birthDate</b> (The date and time of birth for the practitioner)
|
||||
*
|
||||
@ -583,8 +535,9 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
* The date and time of birth for the practitioner
|
||||
* </p>
|
||||
*/
|
||||
public void setBirthDate( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
public Practitioner setBirthDate( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myBirthDate = new DateTimeDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -595,8 +548,9 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
* The date and time of birth for the practitioner
|
||||
* </p>
|
||||
*/
|
||||
public void setBirthDateWithSecondsPrecision( Date theDate) {
|
||||
public Practitioner setBirthDateWithSecondsPrecision( Date theDate) {
|
||||
myBirthDate = new DateTimeDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -625,8 +579,9 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
* Image of the person
|
||||
* </p>
|
||||
*/
|
||||
public void setPhoto(java.util.List<AttachmentDt> theValue) {
|
||||
public Practitioner setPhoto(java.util.List<AttachmentDt> theValue) {
|
||||
myPhoto = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -643,6 +598,21 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>photo</b> (Image of the person),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Image of the person
|
||||
* </p>
|
||||
*/
|
||||
public AttachmentDt getPhotoFirstRep() {
|
||||
if (getPhoto().isEmpty()) {
|
||||
return addPhoto();
|
||||
}
|
||||
return getPhoto().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>organization</b> (The represented organization).
|
||||
@ -669,11 +639,11 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
* The organization that the practitioner represents
|
||||
* </p>
|
||||
*/
|
||||
public void setOrganization(ResourceReferenceDt theValue) {
|
||||
public Practitioner setOrganization(ResourceReferenceDt theValue) {
|
||||
myOrganization = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>role</b> (Roles which this practitioner may perform).
|
||||
@ -700,11 +670,11 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
* Roles which this practitioner is authorized to perform for the organization
|
||||
* </p>
|
||||
*/
|
||||
public void setRole(java.util.List<BoundCodeableConceptDt<PractitionerRoleEnum>> theValue) {
|
||||
public Practitioner setRole(java.util.List<BoundCodeableConceptDt<PractitionerRoleEnum>> theValue) {
|
||||
myRole = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add a value for <b>role</b> (Roles which this practitioner may perform)
|
||||
*
|
||||
@ -725,9 +695,10 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
* Roles which this practitioner is authorized to perform for the organization
|
||||
* </p>
|
||||
*/
|
||||
public void setRole(PractitionerRoleEnum theValue) {
|
||||
public Practitioner setRole(PractitionerRoleEnum theValue) {
|
||||
getRole().clear();
|
||||
addRole(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -756,11 +727,11 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
* Specific specialty of the practitioner
|
||||
* </p>
|
||||
*/
|
||||
public void setSpecialty(java.util.List<BoundCodeableConceptDt<PractitionerSpecialtyEnum>> theValue) {
|
||||
public Practitioner setSpecialty(java.util.List<BoundCodeableConceptDt<PractitionerSpecialtyEnum>> theValue) {
|
||||
mySpecialty = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add a value for <b>specialty</b> (Specific specialty of the practitioner)
|
||||
*
|
||||
@ -781,9 +752,10 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
* Specific specialty of the practitioner
|
||||
* </p>
|
||||
*/
|
||||
public void setSpecialty(PractitionerSpecialtyEnum theValue) {
|
||||
public Practitioner setSpecialty(PractitionerSpecialtyEnum theValue) {
|
||||
getSpecialty().clear();
|
||||
addSpecialty(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -812,11 +784,11 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
* The period during which the person is authorized to act as a practitioner in these role(s) for the organization
|
||||
* </p>
|
||||
*/
|
||||
public void setPeriod(PeriodDt theValue) {
|
||||
public Practitioner setPeriod(PeriodDt theValue) {
|
||||
myPeriod = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>location</b> (The location(s) at which this practitioner provides care).
|
||||
@ -843,11 +815,24 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
* The location(s) at which this practitioner provides care
|
||||
* </p>
|
||||
*/
|
||||
public void setLocation(java.util.List<ResourceReferenceDt> theValue) {
|
||||
public Practitioner setLocation(java.util.List<ResourceReferenceDt> theValue) {
|
||||
myLocation = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>location</b> (The location(s) at which this practitioner provides care)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The location(s) at which this practitioner provides care
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt addLocation() {
|
||||
ResourceReferenceDt newType = new ResourceReferenceDt();
|
||||
getLocation().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>qualification</b> (Qualifications obtained by training and certification).
|
||||
@ -874,8 +859,9 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setQualification(java.util.List<Qualification> theValue) {
|
||||
public Practitioner setQualification(java.util.List<Qualification> theValue) {
|
||||
myQualification = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -892,6 +878,21 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>qualification</b> (Qualifications obtained by training and certification),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Qualification getQualificationFirstRep() {
|
||||
if (getQualification().isEmpty()) {
|
||||
return addQualification();
|
||||
}
|
||||
return getQualification().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>communication</b> (A language the practitioner is able to use in patient communication).
|
||||
@ -918,8 +919,9 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
* A language the practitioner is able to use in patient communication
|
||||
* </p>
|
||||
*/
|
||||
public void setCommunication(java.util.List<CodeableConceptDt> theValue) {
|
||||
public Practitioner setCommunication(java.util.List<CodeableConceptDt> theValue) {
|
||||
myCommunication = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -936,6 +938,21 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>communication</b> (A language the practitioner is able to use in patient communication),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A language the practitioner is able to use in patient communication
|
||||
* </p>
|
||||
*/
|
||||
public CodeableConceptDt getCommunicationFirstRep() {
|
||||
if (getCommunication().isEmpty()) {
|
||||
return addCommunication();
|
||||
}
|
||||
return getCommunication().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Block class for child element: <b>Practitioner.qualification</b> (Qualifications obtained by training and certification)
|
||||
@ -1012,11 +1029,11 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setCode(CodeableConceptDt theValue) {
|
||||
public Qualification setCode(CodeableConceptDt theValue) {
|
||||
myCode = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>period</b> (Period during which the qualification is valid).
|
||||
@ -1043,11 +1060,11 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
* Period during which the qualification is valid
|
||||
* </p>
|
||||
*/
|
||||
public void setPeriod(PeriodDt theValue) {
|
||||
public Qualification setPeriod(PeriodDt theValue) {
|
||||
myPeriod = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>issuer</b> (Organization that regulates and issues the qualification).
|
||||
@ -1074,11 +1091,11 @@ public class Practitioner extends BaseResource implements IResource {
|
||||
* Organization that regulates and issues the qualification
|
||||
* </p>
|
||||
*/
|
||||
public void setIssuer(ResourceReferenceDt theValue) {
|
||||
public Qualification setIssuer(ResourceReferenceDt theValue) {
|
||||
myIssuer = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -17,113 +17,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 java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.api.BaseResource;
|
||||
import ca.uhn.fhir.model.api.IElement;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.api.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.valueset.AdministrativeGenderCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ContactDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Device;
|
||||
import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Group;
|
||||
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Location;
|
||||
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.dstu.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Media;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Medication;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Observation;
|
||||
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.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Patient;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
|
||||
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.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
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.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Substance;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dstu.composite.DurationDt;
|
||||
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.dstu.valueset.AdministrativeGenderCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt;
|
||||
import ca.uhn.fhir.model.primitive.CodeDt;
|
||||
import ca.uhn.fhir.model.primitive.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
@ -313,8 +224,9 @@ public class RelatedPerson extends BaseResource implements IResource {
|
||||
* Identifier for a person within a particular scope.
|
||||
* </p>
|
||||
*/
|
||||
public void setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
public RelatedPerson setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -331,6 +243,21 @@ public class RelatedPerson extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>identifier</b> (A Human identifier for this person),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifier for a person within a particular scope.
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt getIdentifierFirstRep() {
|
||||
if (getIdentifier().isEmpty()) {
|
||||
return addIdentifier();
|
||||
}
|
||||
return getIdentifier().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>patient</b> (The patient this person is related to).
|
||||
@ -357,11 +284,11 @@ public class RelatedPerson extends BaseResource implements IResource {
|
||||
* The patient this person is related to
|
||||
* </p>
|
||||
*/
|
||||
public void setPatient(ResourceReferenceDt theValue) {
|
||||
public RelatedPerson setPatient(ResourceReferenceDt theValue) {
|
||||
myPatient = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>relationship</b> (The nature of the relationship).
|
||||
@ -388,11 +315,11 @@ public class RelatedPerson extends BaseResource implements IResource {
|
||||
* The nature of the relationship between a patient and the related person
|
||||
* </p>
|
||||
*/
|
||||
public void setRelationship(BoundCodeableConceptDt<PatientRelationshipTypeEnum> theValue) {
|
||||
public RelatedPerson setRelationship(BoundCodeableConceptDt<PatientRelationshipTypeEnum> theValue) {
|
||||
myRelationship = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>relationship</b> (The nature of the relationship)
|
||||
*
|
||||
@ -401,8 +328,9 @@ public class RelatedPerson extends BaseResource implements IResource {
|
||||
* The nature of the relationship between a patient and the related person
|
||||
* </p>
|
||||
*/
|
||||
public void setRelationship(PatientRelationshipTypeEnum theValue) {
|
||||
public RelatedPerson setRelationship(PatientRelationshipTypeEnum theValue) {
|
||||
getRelationship().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -431,11 +359,11 @@ public class RelatedPerson extends BaseResource implements IResource {
|
||||
* A name associated with the person
|
||||
* </p>
|
||||
*/
|
||||
public void setName(HumanNameDt theValue) {
|
||||
public RelatedPerson setName(HumanNameDt theValue) {
|
||||
myName = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>telecom</b> (A contact detail for the person).
|
||||
@ -462,8 +390,9 @@ public class RelatedPerson extends BaseResource implements IResource {
|
||||
* A contact detail for the person, e.g. a telephone number or an email address.
|
||||
* </p>
|
||||
*/
|
||||
public void setTelecom(java.util.List<ContactDt> theValue) {
|
||||
public RelatedPerson setTelecom(java.util.List<ContactDt> theValue) {
|
||||
myTelecom = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -480,6 +409,21 @@ public class RelatedPerson extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>telecom</b> (A contact detail for the person),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A contact detail for the person, e.g. a telephone number or an email address.
|
||||
* </p>
|
||||
*/
|
||||
public ContactDt getTelecomFirstRep() {
|
||||
if (getTelecom().isEmpty()) {
|
||||
return addTelecom();
|
||||
}
|
||||
return getTelecom().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>gender</b> (Gender for administrative purposes).
|
||||
@ -506,11 +450,11 @@ public class RelatedPerson extends BaseResource implements IResource {
|
||||
* Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.
|
||||
* </p>
|
||||
*/
|
||||
public void setGender(BoundCodeableConceptDt<AdministrativeGenderCodesEnum> theValue) {
|
||||
public RelatedPerson setGender(BoundCodeableConceptDt<AdministrativeGenderCodesEnum> theValue) {
|
||||
myGender = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>gender</b> (Gender for administrative purposes)
|
||||
*
|
||||
@ -519,8 +463,9 @@ public class RelatedPerson extends BaseResource implements IResource {
|
||||
* Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.
|
||||
* </p>
|
||||
*/
|
||||
public void setGender(AdministrativeGenderCodesEnum theValue) {
|
||||
public RelatedPerson setGender(AdministrativeGenderCodesEnum theValue) {
|
||||
getGender().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -549,11 +494,11 @@ public class RelatedPerson extends BaseResource implements IResource {
|
||||
* Address where the related person can be contacted or visited
|
||||
* </p>
|
||||
*/
|
||||
public void setAddress(AddressDt theValue) {
|
||||
public RelatedPerson setAddress(AddressDt theValue) {
|
||||
myAddress = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>photo</b> (Image of the person).
|
||||
@ -580,8 +525,9 @@ public class RelatedPerson extends BaseResource implements IResource {
|
||||
* Image of the person
|
||||
* </p>
|
||||
*/
|
||||
public void setPhoto(java.util.List<AttachmentDt> theValue) {
|
||||
public RelatedPerson setPhoto(java.util.List<AttachmentDt> theValue) {
|
||||
myPhoto = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -598,6 +544,21 @@ public class RelatedPerson extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>photo</b> (Image of the person),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Image of the person
|
||||
* </p>
|
||||
*/
|
||||
public AttachmentDt getPhotoFirstRep() {
|
||||
if (getPhoto().isEmpty()) {
|
||||
return addPhoto();
|
||||
}
|
||||
return getPhoto().get(0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -17,113 +17,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 java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
|
||||
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.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ContactDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Device;
|
||||
import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Group;
|
||||
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Location;
|
||||
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.dstu.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Media;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Medication;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Observation;
|
||||
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.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Patient;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
|
||||
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.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
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.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Specimen;
|
||||
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.dstu.resource.Substance;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dstu.composite.DurationDt;
|
||||
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.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
@ -263,8 +183,9 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* Id for specimen
|
||||
* </p>
|
||||
*/
|
||||
public void setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
public Specimen setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -281,6 +202,21 @@ public class Specimen extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>identifier</b> (External Identifier),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Id for specimen
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt getIdentifierFirstRep() {
|
||||
if (getIdentifier().isEmpty()) {
|
||||
return addIdentifier();
|
||||
}
|
||||
return getIdentifier().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>type</b> (Kind of material that forms the specimen).
|
||||
@ -307,11 +243,11 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* Kind of material that forms the specimen
|
||||
* </p>
|
||||
*/
|
||||
public void setType(CodeableConceptDt theValue) {
|
||||
public Specimen setType(CodeableConceptDt theValue) {
|
||||
myType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>source</b> (Parent of specimen).
|
||||
@ -338,8 +274,9 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* Parent specimen from which the focal specimen was a component
|
||||
* </p>
|
||||
*/
|
||||
public void setSource(java.util.List<Source> theValue) {
|
||||
public Specimen setSource(java.util.List<Source> theValue) {
|
||||
mySource = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -356,6 +293,21 @@ public class Specimen extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>source</b> (Parent of specimen),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Parent specimen from which the focal specimen was a component
|
||||
* </p>
|
||||
*/
|
||||
public Source getSourceFirstRep() {
|
||||
if (getSource().isEmpty()) {
|
||||
return addSource();
|
||||
}
|
||||
return getSource().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>subject</b> (Where the specimen came from. This may be the patient(s) or from the environment or a device).
|
||||
@ -379,11 +331,11 @@ public class Specimen extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setSubject(ResourceReferenceDt theValue) {
|
||||
public Specimen setSubject(ResourceReferenceDt theValue) {
|
||||
mySubject = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>accessionIdentifier</b> (Identifier assigned by the lab).
|
||||
@ -410,11 +362,11 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* The identifier assigned by the lab when accessioning specimen(s). This is not necessarily the same as the specimen identifier, depending on local lab procedures.
|
||||
* </p>
|
||||
*/
|
||||
public void setAccessionIdentifier(IdentifierDt theValue) {
|
||||
public Specimen setAccessionIdentifier(IdentifierDt theValue) {
|
||||
myAccessionIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>receivedTime</b> (The time when specimen was received for processing).
|
||||
@ -441,11 +393,11 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* Time when specimen was received for processing or testing
|
||||
* </p>
|
||||
*/
|
||||
public void setReceivedTime(DateTimeDt theValue) {
|
||||
public Specimen setReceivedTime(DateTimeDt theValue) {
|
||||
myReceivedTime = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>receivedTime</b> (The time when specimen was received for processing)
|
||||
*
|
||||
@ -454,8 +406,9 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* Time when specimen was received for processing or testing
|
||||
* </p>
|
||||
*/
|
||||
public void setReceivedTime( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
public Specimen setReceivedTime( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myReceivedTime = new DateTimeDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -466,8 +419,9 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* Time when specimen was received for processing or testing
|
||||
* </p>
|
||||
*/
|
||||
public void setReceivedTimeWithSecondsPrecision( Date theDate) {
|
||||
public Specimen setReceivedTimeWithSecondsPrecision( Date theDate) {
|
||||
myReceivedTime = new DateTimeDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -496,11 +450,11 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* Details concerning the specimen collection
|
||||
* </p>
|
||||
*/
|
||||
public void setCollection(Collection theValue) {
|
||||
public Specimen setCollection(Collection theValue) {
|
||||
myCollection = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>treatment</b> (Treatment and processing step details).
|
||||
@ -527,8 +481,9 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* Details concerning treatment and processing steps for the specimen
|
||||
* </p>
|
||||
*/
|
||||
public void setTreatment(java.util.List<Treatment> theValue) {
|
||||
public Specimen setTreatment(java.util.List<Treatment> theValue) {
|
||||
myTreatment = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -545,6 +500,21 @@ public class Specimen extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>treatment</b> (Treatment and processing step details),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Details concerning treatment and processing steps for the specimen
|
||||
* </p>
|
||||
*/
|
||||
public Treatment getTreatmentFirstRep() {
|
||||
if (getTreatment().isEmpty()) {
|
||||
return addTreatment();
|
||||
}
|
||||
return getTreatment().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>container</b> (Direct container of specimen (tube/slide, etc)).
|
||||
@ -571,8 +541,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 void setContainer(java.util.List<Container> theValue) {
|
||||
public Specimen setContainer(java.util.List<Container> theValue) {
|
||||
myContainer = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -589,6 +560,21 @@ public class Specimen extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>container</b> (Direct container of specimen (tube/slide, etc)),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* 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 Container getContainerFirstRep() {
|
||||
if (getContainer().isEmpty()) {
|
||||
return addContainer();
|
||||
}
|
||||
return getContainer().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Block class for child element: <b>Specimen.source</b> (Parent of specimen)
|
||||
@ -658,11 +644,11 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* Whether this relationship is to a parent or to a child
|
||||
* </p>
|
||||
*/
|
||||
public void setRelationship(BoundCodeDt<HierarchicalRelationshipTypeEnum> theValue) {
|
||||
public Source setRelationship(BoundCodeDt<HierarchicalRelationshipTypeEnum> theValue) {
|
||||
myRelationship = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>relationship</b> (parent | child)
|
||||
*
|
||||
@ -671,8 +657,9 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* Whether this relationship is to a parent or to a child
|
||||
* </p>
|
||||
*/
|
||||
public void setRelationship(HierarchicalRelationshipTypeEnum theValue) {
|
||||
public Source setRelationship(HierarchicalRelationshipTypeEnum theValue) {
|
||||
getRelationship().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -701,11 +688,24 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* The specimen resource that is the target of this relationship
|
||||
* </p>
|
||||
*/
|
||||
public void setTarget(java.util.List<ResourceReferenceDt> theValue) {
|
||||
public Source setTarget(java.util.List<ResourceReferenceDt> theValue) {
|
||||
myTarget = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>target</b> (The subject of the relationship)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The specimen resource that is the target of this relationship
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt addTarget() {
|
||||
ResourceReferenceDt newType = new ResourceReferenceDt();
|
||||
getTarget().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -810,11 +810,11 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* Person who collected the specimen
|
||||
* </p>
|
||||
*/
|
||||
public void setCollector(ResourceReferenceDt theValue) {
|
||||
public Collection setCollector(ResourceReferenceDt theValue) {
|
||||
myCollector = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>comment</b> (Collector comments).
|
||||
@ -841,8 +841,9 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* To communicate any details or issues encountered during the specimen collection procedure.
|
||||
* </p>
|
||||
*/
|
||||
public void setComment(java.util.List<StringDt> theValue) {
|
||||
public Collection setComment(java.util.List<StringDt> theValue) {
|
||||
myComment = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -859,6 +860,21 @@ public class Specimen extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>comment</b> (Collector comments),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* To communicate any details or issues encountered during the specimen collection procedure.
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getCommentFirstRep() {
|
||||
if (getComment().isEmpty()) {
|
||||
return addComment();
|
||||
}
|
||||
return getComment().get(0);
|
||||
}
|
||||
/**
|
||||
* Adds a new value for <b>comment</b> (Collector comments)
|
||||
*
|
||||
@ -866,12 +882,15 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* <b>Definition:</b>
|
||||
* To communicate any details or issues encountered during the specimen collection procedure.
|
||||
* </p>
|
||||
*
|
||||
* @return Returns a reference to this object, to allow for simple chaining.
|
||||
*/
|
||||
public void addComment( String theString) {
|
||||
public Collection addComment( String theString) {
|
||||
if (myComment == null) {
|
||||
myComment = new java.util.ArrayList<StringDt>();
|
||||
}
|
||||
myComment.add(new StringDt(theString));
|
||||
myComment.add(new StringDt(theString));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -897,11 +916,11 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* Time when specimen was collected from subject - the physiologically relevant time
|
||||
* </p>
|
||||
*/
|
||||
public void setCollected(IDatatype theValue) {
|
||||
public Collection setCollected(IDatatype theValue) {
|
||||
myCollected = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>quantity</b> (The quantity of specimen collected).
|
||||
@ -928,11 +947,11 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* The quantity of specimen collected; for instance the volume of a blood sample, or the physical measurement of an anatomic pathology sample
|
||||
* </p>
|
||||
*/
|
||||
public void setQuantity(QuantityDt theValue) {
|
||||
public Collection setQuantity(QuantityDt theValue) {
|
||||
myQuantity = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>method</b> (Technique used to perform collection).
|
||||
@ -959,11 +978,11 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* A coded value specifying the technique that is used to perform the procedure
|
||||
* </p>
|
||||
*/
|
||||
public void setMethod(BoundCodeableConceptDt<SpecimenCollectionMethodEnum> theValue) {
|
||||
public Collection setMethod(BoundCodeableConceptDt<SpecimenCollectionMethodEnum> theValue) {
|
||||
myMethod = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>method</b> (Technique used to perform collection)
|
||||
*
|
||||
@ -972,8 +991,9 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* A coded value specifying the technique that is used to perform the procedure
|
||||
* </p>
|
||||
*/
|
||||
public void setMethod(SpecimenCollectionMethodEnum theValue) {
|
||||
public Collection setMethod(SpecimenCollectionMethodEnum theValue) {
|
||||
getMethod().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1002,11 +1022,11 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* Anatomical location from which the specimen should be collected (if subject is a patient). This element is not used for environmental specimens.
|
||||
* </p>
|
||||
*/
|
||||
public void setSourceSite(CodeableConceptDt theValue) {
|
||||
public Collection setSourceSite(CodeableConceptDt theValue) {
|
||||
mySourceSite = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -1087,11 +1107,11 @@ public class Specimen extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setDescription(StringDt theValue) {
|
||||
public Treatment setDescription(StringDt theValue) {
|
||||
myDescription = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>description</b> (Textual description of procedure)
|
||||
*
|
||||
@ -1100,8 +1120,9 @@ public class Specimen extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setDescription( String theString) {
|
||||
public Treatment setDescription( String theString) {
|
||||
myDescription = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1130,11 +1151,11 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* A coded value specifying the procedure used to process the specimen
|
||||
* </p>
|
||||
*/
|
||||
public void setProcedure(BoundCodeableConceptDt<SpecimenTreatmentProcedureEnum> theValue) {
|
||||
public Treatment setProcedure(BoundCodeableConceptDt<SpecimenTreatmentProcedureEnum> theValue) {
|
||||
myProcedure = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>procedure</b> (Indicates the treatment or processing step applied to the specimen)
|
||||
*
|
||||
@ -1143,8 +1164,9 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* A coded value specifying the procedure used to process the specimen
|
||||
* </p>
|
||||
*/
|
||||
public void setProcedure(SpecimenTreatmentProcedureEnum theValue) {
|
||||
public Treatment setProcedure(SpecimenTreatmentProcedureEnum theValue) {
|
||||
getProcedure().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1173,11 +1195,24 @@ public class Specimen extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setAdditive(java.util.List<ResourceReferenceDt> theValue) {
|
||||
public Treatment setAdditive(java.util.List<ResourceReferenceDt> theValue) {
|
||||
myAdditive = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>additive</b> (Material used in the processing step)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt addAdditive() {
|
||||
ResourceReferenceDt newType = new ResourceReferenceDt();
|
||||
getAdditive().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -1279,8 +1314,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 void setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
public Container setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1297,6 +1333,21 @@ public class Specimen extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>identifier</b> (Id for the container),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* 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 IdentifierDt getIdentifierFirstRep() {
|
||||
if (getIdentifier().isEmpty()) {
|
||||
return addIdentifier();
|
||||
}
|
||||
return getIdentifier().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>description</b> (Textual description of the container).
|
||||
@ -1323,11 +1374,11 @@ public class Specimen extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setDescription(StringDt theValue) {
|
||||
public Container setDescription(StringDt theValue) {
|
||||
myDescription = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>description</b> (Textual description of the container)
|
||||
*
|
||||
@ -1336,8 +1387,9 @@ public class Specimen extends BaseResource implements IResource {
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public void setDescription( String theString) {
|
||||
public Container setDescription( String theString) {
|
||||
myDescription = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -1366,11 +1418,11 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* The type of container associated with the specimen (e.g. slide, aliquot, etc)
|
||||
* </p>
|
||||
*/
|
||||
public void setType(CodeableConceptDt theValue) {
|
||||
public Container setType(CodeableConceptDt theValue) {
|
||||
myType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>capacity</b> (Container volume or size).
|
||||
@ -1397,11 +1449,11 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* The capacity (volume or other measure) the container may contain.
|
||||
* </p>
|
||||
*/
|
||||
public void setCapacity(QuantityDt theValue) {
|
||||
public Container setCapacity(QuantityDt theValue) {
|
||||
myCapacity = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>specimenQuantity</b> (Quantity of specimen within container).
|
||||
@ -1428,11 +1480,11 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* The quantity of specimen in the container; may be volume, dimensions, or other appropriate measurements, depending on the specimen type
|
||||
* </p>
|
||||
*/
|
||||
public void setSpecimenQuantity(QuantityDt theValue) {
|
||||
public Container setSpecimenQuantity(QuantityDt theValue) {
|
||||
mySpecimenQuantity = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>additive</b> (Additive associated with container).
|
||||
@ -1459,11 +1511,11 @@ public class Specimen extends BaseResource implements IResource {
|
||||
* Additive associated with the container
|
||||
* </p>
|
||||
*/
|
||||
public void setAdditive(ResourceReferenceDt theValue) {
|
||||
public Container setAdditive(ResourceReferenceDt theValue) {
|
||||
myAdditive = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,113 +17,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 java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.dstu.composite.AddressDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ContactDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Device;
|
||||
import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Encounter;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Group;
|
||||
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Location;
|
||||
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.dstu.valueset.MaritalStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Media;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Medication;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Observation;
|
||||
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.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Patient;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PatientRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Practitioner;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
|
||||
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.resource.RelatedPerson;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
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.composite.SampledDataDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Specimen;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SpecimenTreatmentProcedureEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Substance;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SubstanceTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
|
||||
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.dstu.composite.DurationDt;
|
||||
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.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.CodeDt;
|
||||
import ca.uhn.fhir.model.primitive.DateDt;
|
||||
import ca.uhn.fhir.model.primitive.DateTimeDt;
|
||||
import ca.uhn.fhir.model.primitive.DecimalDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.model.primitive.InstantDt;
|
||||
import ca.uhn.fhir.model.primitive.IntegerDt;
|
||||
import ca.uhn.fhir.model.primitive.OidDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
|
||||
|
||||
/**
|
||||
@ -263,11 +178,11 @@ public class Substance extends BaseResource implements IResource {
|
||||
* A code (or set of codes) that identify this substance
|
||||
* </p>
|
||||
*/
|
||||
public void setType(BoundCodeableConceptDt<SubstanceTypeEnum> theValue) {
|
||||
public Substance setType(BoundCodeableConceptDt<SubstanceTypeEnum> theValue) {
|
||||
myType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>type</b> (What kind of substance this is)
|
||||
*
|
||||
@ -276,8 +191,9 @@ public class Substance extends BaseResource implements IResource {
|
||||
* A code (or set of codes) that identify this substance
|
||||
* </p>
|
||||
*/
|
||||
public void setType(SubstanceTypeEnum theValue) {
|
||||
public Substance setType(SubstanceTypeEnum theValue) {
|
||||
getType().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -306,11 +222,11 @@ public class Substance extends BaseResource implements IResource {
|
||||
* A description of the substance - its appearance, handling requirements, and other usage notes
|
||||
* </p>
|
||||
*/
|
||||
public void setDescription(StringDt theValue) {
|
||||
public Substance setDescription(StringDt theValue) {
|
||||
myDescription = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>description</b> (Textual description of the substance, comments)
|
||||
*
|
||||
@ -319,8 +235,9 @@ public class Substance extends BaseResource implements IResource {
|
||||
* A description of the substance - its appearance, handling requirements, and other usage notes
|
||||
* </p>
|
||||
*/
|
||||
public void setDescription( String theString) {
|
||||
public Substance setDescription( String theString) {
|
||||
myDescription = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -349,11 +266,11 @@ public class Substance extends BaseResource implements IResource {
|
||||
* Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance
|
||||
* </p>
|
||||
*/
|
||||
public void setInstance(Instance theValue) {
|
||||
public Substance setInstance(Instance theValue) {
|
||||
myInstance = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>ingredient</b> (Composition information about the substance).
|
||||
@ -380,8 +297,9 @@ public class Substance extends BaseResource implements IResource {
|
||||
* A substance can be composed of other substances
|
||||
* </p>
|
||||
*/
|
||||
public void setIngredient(java.util.List<Ingredient> theValue) {
|
||||
public Substance setIngredient(java.util.List<Ingredient> theValue) {
|
||||
myIngredient = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -398,6 +316,21 @@ public class Substance extends BaseResource implements IResource {
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>ingredient</b> (Composition information about the substance),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A substance can be composed of other substances
|
||||
* </p>
|
||||
*/
|
||||
public Ingredient getIngredientFirstRep() {
|
||||
if (getIngredient().isEmpty()) {
|
||||
return addIngredient();
|
||||
}
|
||||
return getIngredient().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Block class for child element: <b>Substance.instance</b> (If this describes a specific package/container of the substance)
|
||||
@ -472,11 +405,11 @@ public class Substance extends BaseResource implements IResource {
|
||||
* Identifier associated with the package/container (usually a label affixed directly)
|
||||
* </p>
|
||||
*/
|
||||
public void setIdentifier(IdentifierDt theValue) {
|
||||
public Instance setIdentifier(IdentifierDt theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>expiry</b> (When no longer valid to use).
|
||||
@ -503,11 +436,11 @@ 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(DateTimeDt theValue) {
|
||||
public Instance setExpiry(DateTimeDt theValue) {
|
||||
myExpiry = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets the value for <b>expiry</b> (When no longer valid to use)
|
||||
*
|
||||
@ -516,8 +449,9 @@ 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) {
|
||||
public Instance setExpiry( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myExpiry = new DateTimeDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -528,8 +462,9 @@ 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) {
|
||||
public Instance setExpiryWithSecondsPrecision( Date theDate) {
|
||||
myExpiry = new DateTimeDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@ -558,11 +493,11 @@ public class Substance extends BaseResource implements IResource {
|
||||
* The amount of the substance
|
||||
* </p>
|
||||
*/
|
||||
public void setQuantity(QuantityDt theValue) {
|
||||
public Instance setQuantity(QuantityDt theValue) {
|
||||
myQuantity = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -636,11 +571,11 @@ public class Substance extends BaseResource implements IResource {
|
||||
* The amount of the ingredient in the substance - a concentration ratio
|
||||
* </p>
|
||||
*/
|
||||
public void setQuantity(RatioDt theValue) {
|
||||
public Ingredient setQuantity(RatioDt theValue) {
|
||||
myQuantity = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>substance</b> (A component of the substance).
|
||||
@ -667,11 +602,11 @@ public class Substance extends BaseResource implements IResource {
|
||||
* Another substance that is a component of this substance
|
||||
* </p>
|
||||
*/
|
||||
public void setSubstance(ResourceReferenceDt theValue) {
|
||||
public Ingredient setSubstance(ResourceReferenceDt theValue) {
|
||||
mySubstance = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 AdmitSourceEnum {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 DiagnosticOrderPriorityEnum {
|
||||
|
||||
/**
|
||||
|
@ -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 DiagnosticOrderStatusEnum {
|
||||
|
||||
/**
|
||||
|
@ -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 DiagnosticReportStatusEnum {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 EncounterClassEnum {
|
||||
|
||||
/**
|
||||
|
@ -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 EncounterReasonCodesEnum {
|
||||
|
||||
;
|
||||
|
@ -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 EncounterStateEnum {
|
||||
|
||||
/**
|
||||
|
@ -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 EncounterTypeEnum {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 ImagingModalityEnum {
|
||||
|
||||
/**
|
||||
|
@ -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 InstanceAvailabilityEnum {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 MediaTypeEnum {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 MessageEventEnum {
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
||||
/**
|
||||
|
@ -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 MessageTransportEnum {
|
||||
|
||||
/**
|
||||
|
@ -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 ModalityEnum {
|
||||
|
||||
/**
|
||||
|
@ -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 NameUseEnum {
|
||||
|
||||
/**
|
||||
|
@ -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 ObservationInterpretationCodesEnum {
|
||||
|
||||
;
|
||||
|
@ -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 ObservationRelationshipTypeEnum {
|
||||
|
||||
/**
|
||||
|
@ -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 ObservationReliabilityEnum {
|
||||
|
||||
/**
|
||||
|
@ -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 ObservationStatusEnum {
|
||||
|
||||
/**
|
||||
|
@ -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 OrganizationTypeEnum {
|
||||
|
||||
/**
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user